-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
178 lines (178 loc) · 5.22 KB
/
package.json
File metadata and controls
178 lines (178 loc) · 5.22 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
{
"name": "codemeter",
"displayName": "CodeMeter - AI Coding Cost Tracker",
"description": "Track AI coding agent usage and costs across projects and IDEs",
"version": "0.1.14",
"publisher": "BhavishyaPandit9",
"repository": {
"type": "git",
"url": "https://github.com/bhav09/codemeter"
},
"icon": "assets/codemeter.png",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Other",
"Data Science"
],
"keywords": [
"ai",
"cost",
"tracking",
"cursor",
"usage",
"budget"
],
"activationEvents": [
"onStartupFinished",
"onView:codemeter.dashboard"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "codemeter",
"title": "CodeMeter",
"icon": "assets/codemeter.png"
}
]
},
"commands": [
{
"command": "codemeter.showDashboard",
"title": "CodeMeter: Show Cost Dashboard"
},
{
"command": "codemeter.connectCursor",
"title": "CodeMeter: Connect Cursor Account"
},
{
"command": "codemeter.disconnectCursor",
"title": "CodeMeter: Disconnect Cursor Account"
},
{
"command": "codemeter.refreshData",
"title": "CodeMeter: Refresh Usage Data"
},
{
"command": "codemeter.setProjectBudget",
"title": "CodeMeter: Set Project Monthly Budget"
},
{
"command": "codemeter.setAdminApiKey",
"title": "CodeMeter: Set Cursor Admin API Key (Teams/Enterprise)"
},
{
"command": "codemeter.reviewAttribution",
"title": "CodeMeter: Review Unattributed / Low-Confidence Events"
},
{
"command": "codemeter.showStoragePath",
"title": "CodeMeter: Show Storage Path"
}
],
"views": {
"codemeter": [
{
"type": "webview",
"id": "codemeter.dashboard",
"name": "Dashboard"
}
]
},
"configuration": {
"title": "CodeMeter",
"properties": {
"codemeter.enableTracking": {
"type": "boolean",
"default": true,
"description": "Enable project session tracking"
},
"codemeter.pollInterval": {
"type": "number",
"default": 60,
"description": "Usage data poll interval in minutes (minimum 60)"
},
"codemeter.budgetAlerts": {
"type": "boolean",
"default": true,
"description": "Enable budget alerts/notifications"
},
"codemeter.assumedModel": {
"type": "string",
"default": "claude-sonnet-4.6",
"enum": [
"claude-sonnet-4.6",
"claude-opus-4.6",
"claude-haiku-4.5",
"claude-sonnet-4.5",
"claude-opus-4.5",
"claude-sonnet-4",
"claude-haiku-3.5",
"gpt-4.1",
"gpt-4.1-mini",
"gpt-4.1-nano",
"gpt-4o",
"gpt-4o-mini",
"gpt-5.4",
"o3-pro",
"o4-mini",
"cursor-small"
],
"enumDescriptions": [
"Claude Sonnet 4.6 — $3/$15 per 1M tokens (default)",
"Claude Opus 4.6 — $5/$25 per 1M tokens",
"Claude Haiku 4.5 — $1/$5 per 1M tokens",
"Claude Sonnet 4.5 — $3/$15 per 1M tokens",
"Claude Opus 4.5 — $5/$25 per 1M tokens",
"Claude Sonnet 4 — $3/$15 per 1M tokens",
"Claude Haiku 3.5 — $0.80/$4 per 1M tokens",
"GPT-4.1 — $2/$8 per 1M tokens",
"GPT-4.1 Mini — $0.40/$1.60 per 1M tokens",
"GPT-4.1 Nano — $0.10/$0.40 per 1M tokens",
"GPT-4o — $2.50/$10 per 1M tokens",
"GPT-4o Mini — $0.15/$0.60 per 1M tokens",
"GPT-5.4 — $2.50/$15 per 1M tokens",
"o3-pro — $20/$80 per 1M tokens",
"o4-mini — $1.10/$4.40 per 1M tokens",
"cursor-small — Free (Cursor built-in)"
],
"description": "The AI model your IDE is using. Costs are calculated based on this model's per-token pricing. Prices update automatically via live fetch; this setting controls which model to look up."
},
"codemeter.codemeterPath": {
"type": "string",
"default": "",
"description": "Optional override path for CodeMeter storage. Supports ${workspaceFolder}, ${home}, and ${env:VAR}."
}
}
}
},
"scripts": {
"bundle": "node ./scripts/bundle.mjs",
"build": "npm run bundle && npm run package",
"package": "npx @vscode/vsce package --no-dependencies",
"clean": "rm -rf dist"
},
"dependencies": {
"@codemeter/core": "^0.1.0",
"@codemeter/cursor-admin": "^0.1.0",
"@codemeter/cursor-dashboard": "^0.1.0",
"@codemeter/database": "^0.1.0",
"@codemeter/protocol": "^0.1.0",
"axios": "^1.13.5",
"express": "^4.18.0",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/express": "^4.17.0",
"@types/node": "^20.0.0",
"@types/uuid": "^9.0.0",
"@types/vscode": "^1.74.0",
"@vscode/vsce": "^3.7.1",
"esbuild": "^0.20.2",
"typescript": "^5.0.0",
"vsce": "^2.15.0"
}
}