-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
170 lines (170 loc) · 5.25 KB
/
Copy pathpackage.json
File metadata and controls
170 lines (170 loc) · 5.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"name": "vscode-codex-tracker",
"displayName": "VSCode Codex Tracker",
"description": "Shows Codex rolling-window usage and local prompt token history.",
"version": "1.6.0",
"publisher": "ITFinesse",
"icon": "resources/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/ITFinesse/VSCode-Codex-Tracker.git"
},
"engines": {
"vscode": "^1.95.0"
},
"categories": [
"Other",
"Visualization"
],
"keywords": [
"Codex",
"OpenAI",
"usage",
"tokens",
"dashboard"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "codexUsage.showPanel",
"title": "Codex Usage: Show Panel"
},
{
"command": "codexUsage.refresh",
"title": "Codex Usage: Refresh"
},
{
"command": "codexUsage.showOutput",
"title": "Codex Usage: Show Output"
}
],
"viewsContainers": {
"panel": [
{
"id": "codexUsage",
"title": "VSCode Codex Tracker",
"icon": "resources/codex-usage.svg"
}
]
},
"views": {
"codexUsage": [
{
"type": "webview",
"id": "codexUsage.panel",
"name": "VSCode Codex Tracker",
"visibility": "visible"
}
]
},
"configuration": {
"title": "VSCode Codex Tracker",
"properties": {
"codexUsage.sessionsPath": {
"type": "string",
"default": "",
"description": "Codex session directory. Empty uses ~/.codex/sessions."
},
"codexUsage.codexPath": {
"type": "string",
"default": "",
"description": "Optional path to the Codex executable. Empty automatically uses the OpenAI VS Code extension's bundled executable, then PATH."
},
"codexUsage.historyLimit": {
"type": "number",
"default": 100,
"minimum": 10,
"maximum": 500,
"description": "Maximum number of recent prompts to show."
},
"codexUsage.outputDebug": {
"type": "boolean",
"default": false,
"description": "Log detailed app-server commands, responses, pricing, and cost calculations."
},
"codexUsage.warningThresholdPercent": {
"type": "number",
"default": 40,
"minimum": 0,
"maximum": 100,
"description": "Show orange status text when either remaining usage window reaches this percentage."
},
"codexUsage.criticalThresholdPercent": {
"type": "number",
"default": 30,
"minimum": 0,
"maximum": 100,
"description": "Show red status text when either remaining usage window reaches this percentage."
},
"codexUsage.warningColor": {
"type": "string",
"default": "#d97706",
"description": "Status-bar color used at the warning threshold."
},
"codexUsage.criticalColor": {
"type": "string",
"default": "#dc2626",
"description": "Status-bar color used at the critical threshold."
},
"codexUsage.belowFullColor": {
"type": "string",
"default": "#cccccc",
"description": "Status-bar color used when remaining usage is below 100% but above warning."
},
"codexUsage.chartOrganisation": {
"type": "string",
"enum": [
"global",
"workspace"
],
"enumDescriptions": [
"Share chart order and sizes across all VS Code windows.",
"Keep chart order and sizes specific to this workspace."
],
"default": "global",
"description": "Controls whether dashboard chart organisation is stored globally or per workspace."
},
"codexUsage.leaderboardEnabled": {
"type": "boolean",
"default": true,
"description": "Submit aggregate input-token totals to your configured leaderboard."
},
"codexUsage.leaderboardName": {
"type": "string",
"default": "Anonymous",
"description": "Public leaderboard name. Names other than Anonymous must be available."
}
}
}
},
"scripts": {
"compile": "npm run prepare-resources && tsc -p .",
"test": "npm run compile && node --test tests/*.test.js",
"lint": "eslint src",
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.js\" \"*.json\" \"*.md\"",
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.js\" \"*.json\" \"*.md\"",
"validate:package": "npm pack --dry-run",
"audit": "npm audit --omit=dev",
"verify": "npm run lint && npm run format:check && npm test && npm run validate:package && npm run audit",
"prepare-resources": "node scripts/copy-chartjs.cjs",
"watch": "tsc -watch -p .",
"package": "node scripts/package-vsix.cjs"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.61.1",
"@types/node": "^22.10.2",
"@types/vscode": "^1.95.0",
"eslint": "^10.7.0",
"prettier": "^3.9.5",
"typescript": "^5.7.2",
"typescript-eslint": "^8.64.0"
},
"dependencies": {
"chart.js": "^4.5.1"
}
}