-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
261 lines (261 loc) · 7.84 KB
/
package.json
File metadata and controls
261 lines (261 loc) · 7.84 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
{
"name": "claude-code-prism",
"displayName": "Claude Code Prism — Token Usage & Cost HUD",
"description": "Real-time token usage, cost, context window and model info HUD for Claude Code. Shows live stats as you work — input/output tokens, cache hits, total cost, and current context size.",
"version": "0.5.6",
"publisher": "myoontyee",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other",
"Visualization"
],
"keywords": [
"claude",
"claude-code",
"anthropic",
"hud",
"dashboard",
"token",
"cost",
"context-window",
"status",
"ai",
"cursor",
"prism",
"monitor",
"usage",
"sidecar"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"icon": "images/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/Myoontyee/claude-code-prism"
},
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "prism-panel",
"title": "Claude Code Prism",
"icon": "images/prism-icon-mono.svg"
}
]
},
"views": {
"prism-panel": [
{
"type": "webview",
"id": "claudeCodePrism.settingsView",
"name": "Prism Settings"
}
],
"claude-sidebar": [
{
"type": "webview",
"id": "claudeCodePrism.hudView",
"name": "Prism HUD",
"when": "claude-code:doesNotSupportSecondarySidebar",
"visibility": "visible",
"initialSize": 1
}
],
"claude-sidebar-secondary": [
{
"type": "webview",
"id": "claudeCodePrism.hudViewSecondary",
"name": "Prism HUD",
"when": "!claude-code:doesNotSupportSecondarySidebar",
"visibility": "visible",
"initialSize": 1
}
]
},
"commands": [
{
"command": "claude-prism.openSettings",
"title": "Prism: Open Settings",
"icon": "$(gear)"
},
{
"command": "claude-prism.showCost",
"title": "Prism: Session Cost",
"icon": "$(graph)"
},
{
"command": "claude-prism.exportSession",
"title": "Prism: Export Session",
"icon": "$(export)"
},
{
"command": "claude-prism.showStatus",
"title": "Prism: Status",
"icon": "$(info)"
},
{
"command": "claude-prism.injectCommands",
"title": "Prism: Inject Slash Commands into Claude Config"
},
{
"command": "claude-prism.diagnose",
"title": "Prism: Diagnose (why idle?)",
"icon": "$(search)"
},
{
"command": "claude-prism.showLog",
"title": "Prism: Show Debug Log",
"icon": "$(output)"
}
],
"menus": {
"view/title": [
{
"command": "claude-prism.showCost",
"when": "view == claudeVSCodeSidebar || view == claudeVSCodeSidebarSecondary",
"group": "navigation@1"
},
{
"command": "claude-prism.exportSession",
"when": "view == claudeVSCodeSidebar || view == claudeVSCodeSidebarSecondary",
"group": "navigation@2"
},
{
"command": "claude-prism.showStatus",
"when": "view == claudeVSCodeSidebar || view == claudeVSCodeSidebarSecondary",
"group": "navigation@3"
}
],
"commandPalette": [
{
"command": "claude-prism.showCost"
},
{
"command": "claude-prism.exportSession"
},
{
"command": "claude-prism.showStatus"
},
{
"command": "claude-prism.injectCommands"
},
{
"command": "claude-prism.diagnose"
},
{
"command": "claude-prism.showLog"
}
]
},
"configuration": {
"title": "Claude Code Prism",
"properties": {
"claudePrism.hudStyle": {
"type": "string",
"default": "compact",
"enum": [
"compact",
"glass"
],
"enumDescriptions": [
"Ultra-slim single-line strip (22px height)",
"Frosted glass dashboard with gradient bar and stats grid"
],
"markdownDescription": "HUD display style. **compact**: minimal one-liner. **glass**: full dashboard card."
},
"claudePrism.claudeProjectsDir": {
"type": "string",
"default": "",
"description": "Custom Claude projects directory (default: ~/.claude/projects)"
},
"claudePrism.customPricing": {
"type": "object",
"default": null,
"markdownDescription": "Custom per-model pricing ($/M tokens). Example:\n```json\n{\n \"claude-opus-4-6\": { \"input\": 7.5, \"output\": 37.5, \"cacheWrite\": 9.375, \"cacheRead\": 0.75 }\n}\n```"
},
"claudePrism.pricingMultiplier": {
"type": "number",
"default": 1,
"markdownDescription": "Global pricing multiplier applied to all models. `0.5` = 50% discount, `1.2` = 20% markup. Useful for third-party API providers."
},
"claudePrism.pricingMode": {
"type": "string",
"default": "token",
"enum": ["token", "perCall"],
"enumDescriptions": [
"Standard per-token pricing (input/output/cache rates)",
"Per-call flat fee — each API call costs a fixed amount (次卡模式)"
],
"markdownDescription": "Pricing mode. `token` = standard per-token. `perCall` = flat fee per API call (次卡/per-call card)."
},
"claudePrism.perCallCost": {
"type": "number",
"default": 0.03,
"markdownDescription": "Cost per API call in USD (only used when `pricingMode` is `perCall`). Default: $0.03/call."
},
"claudePrism.customContextWindows": {
"type": "object",
"default": null,
"markdownDescription": "Custom context window sizes per model. Example:\n```json\n{ \"claude-sonnet-4-6\": 128000 }\n```"
},
"claudePrism.providerProfiles": {
"type": "object",
"default": {},
"markdownDescription": "Saved pricing profiles per provider. Auto-managed by the Settings UI. Each key is a provider hostname, value contains pricingMode, perCallCost, pricingMultiplier, customPricing."
},
"claudePrism.activeProvider": {
"type": "string",
"default": "",
"markdownDescription": "Last detected provider hostname. Used internally."
},
"claudePrism.activeProfile": {
"type": "string",
"default": "",
"markdownDescription": "Currently active pricing profile name. Manually selectable in Settings UI."
},
"claudePrism.language": {
"type": "string",
"default": "zh-CN",
"enum": ["zh-CN", "en"],
"enumDescriptions": [
"中文",
"English"
],
"markdownDescription": "Settings panel language / 设置面板语言"
},
"claudePrism.currency": {
"type": "string",
"default": "¥",
"enum": ["¥", "$"],
"enumDescriptions": [
"人民币 (CNY)",
"美元 (USD)"
],
"markdownDescription": "Currency symbol shown in HUD and Settings / 显示的货币符号"
}
}
},
"keybindings": [
{
"command": "claude-prism.showCost",
"key": "ctrl+shift+alt+c",
"mac": "cmd+shift+alt+c"
}
]
},
"scripts": {
"build": "node esbuild.js --production",
"watch": "node esbuild.js --watch",
"vscode:prepublish": "npm run build"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@types/vscode": "^1.85.0",
"esbuild": "^0.21.0",
"typescript": "^5.4.0"
}
}