This repository was archived by the owner on Mar 8, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathpackage.json
More file actions
418 lines (418 loc) · 12.4 KB
/
Copy pathpackage.json
File metadata and controls
418 lines (418 loc) · 12.4 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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
{
"name": "cursor-stats",
"displayName": "Cursor Stats",
"description": "A Cursor extension for monitoring usage.",
"version": "1.1.6",
"publisher": "Dwtexe",
"icon": "images/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/Dwtexe/cursor-stats"
},
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Other",
"Visualization"
],
"keywords": [
"cursor",
"cursor.com",
"cursor-ide",
"statistics",
"monitoring",
"usage",
"analytics"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "cursor-stats.refreshStats",
"title": "Cursor Stats: Refresh Statistics",
"icon": "$(sync)"
},
{
"command": "cursor-stats.openSettings",
"title": "Cursor Stats: Open Settings",
"icon": "$(gear)"
},
{
"command": "cursor-stats.setLimit",
"title": "Cursor Stats: Usage Based Pricing Settings",
"icon": "$(dollar)"
},
{
"command": "cursor-stats.selectCurrency",
"title": "Cursor Stats: Select Display Currency"
},
{
"command": "cursor-stats.createReport",
"title": "Cursor Stats: Generate Diagnostic Report",
"icon": "$(notebook)"
},
{
"command": "cursor-stats.selectLanguage",
"title": "Cursor Stats: Select Language"
}
],
"configuration": [
{
"title": "Cursor Stats",
"properties": {
"cursorStats.enableLogging": {
"type": "boolean",
"default": true,
"description": "Enable detailed logging for debugging purposes.",
"scope": "window"
},
"cursorStats.enableStatusBarColors": {
"type": "boolean",
"default": true,
"description": "Enable colored status bar based on usage percentage.",
"scope": "window"
},
"cursorStats.statusBarColorThresholds": {
"type": "array",
"description": "Customize status bar text color based on usage percentage. Define thresholds (min percentage) and colors (theme ID or hex). Defaults replicate original behavior.",
"scope": "window",
"default": [
{
"percentage": 95,
"color": "#CC0000"
},
{
"percentage": 90,
"color": "#FF3333"
},
{
"percentage": 85,
"color": "#FF4D4D"
},
{
"percentage": 80,
"color": "#FF6600"
},
{
"percentage": 75,
"color": "#FF8800"
},
{
"percentage": 70,
"color": "#FFAA00"
},
{
"percentage": 65,
"color": "#FFCC00"
},
{
"percentage": 60,
"color": "#FFE066"
},
{
"percentage": 50,
"color": "#DCE775"
},
{
"percentage": 40,
"color": "#66BB6A"
},
{
"percentage": 30,
"color": "#81C784"
},
{
"percentage": 20,
"color": "#B3E6B3"
},
{
"percentage": 10,
"color": "#E8F5E9"
},
{
"percentage": 0,
"color": "#FFFFFF"
}
],
"items": {
"type": "object",
"required": [
"percentage",
"color"
],
"properties": {
"percentage": {
"type": "number",
"description": "Minimum percentage threshold (0-100).",
"minimum": 0,
"maximum": 100
},
"color": {
"type": "string",
"description": "Color to use. Can be a theme color ID (e.g., 'charts.red', 'statusBarItem.foreground') or a hex color code (e.g., '#FF0000')."
}
}
}
},
"cursorStats.enableAlerts": {
"type": "boolean",
"default": true,
"description": "Enable usage alert notifications.",
"scope": "window"
},
"cursorStats.usageAlertThresholds": {
"type": "array",
"default": [
10,
30,
50,
75,
90,
100
],
"description": "Percentage thresholds at which to show usage alerts.",
"items": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"scope": "window"
},
"cursorStats.refreshInterval": {
"type": "number",
"default": 60,
"minimum": 10,
"description": "How often to refresh the stats (in seconds). Minimum 10 seconds.",
"scope": "window"
},
"cursorStats.showTotalRequests": {
"type": "boolean",
"default": false,
"description": "Show total requests (fast requests + usage-based requests) in the status bar.",
"scope": "window"
},
"cursorStats.spendingAlertThreshold": {
"type": "number",
"default": 1,
"minimum": 0,
"description": "Dollar amount threshold for spending notifications (0 to disable, any positive amount in dollars).",
"scope": "window"
},
"cursorStats.currency": {
"type": "string",
"default": "USD",
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"AUD",
"CAD",
"CHF",
"CNY",
"INR",
"MXN",
"BRL",
"RUB",
"KRW",
"SGD",
"NZD",
"TRY",
"ZAR",
"SEK",
"NOK",
"DKK",
"HKD",
"TWD",
"PHP",
"THB",
"IDR",
"VND",
"ILS",
"AED",
"SAR",
"MYR",
"PLN",
"CZK",
"HUF",
"RON",
"BGN",
"HRK",
"EGP",
"QAR",
"KWD",
"MAD"
],
"enumDescriptions": [
"US Dollar",
"Euro",
"British Pound",
"Japanese Yen",
"Australian Dollar",
"Canadian Dollar",
"Swiss Franc",
"Chinese Yuan",
"Indian Rupee",
"Mexican Peso",
"Brazilian Real",
"Russian Ruble",
"South Korean Won",
"Singapore Dollar",
"New Zealand Dollar",
"Turkish Lira",
"South African Rand",
"Swedish Krona",
"Norwegian Krone",
"Danish Krone",
"Hong Kong Dollar",
"Taiwan Dollar",
"Philippine Peso",
"Thai Baht",
"Indonesian Rupiah",
"Vietnamese Dong",
"Israeli Shekel",
"UAE Dirham",
"Saudi Riyal",
"Malaysian Ringgit",
"Polish Złoty",
"Czech Koruna",
"Hungarian Forint",
"Romanian Leu",
"Bulgarian Lev",
"Croatian Kuna",
"Egyptian Pound",
"Qatari Riyal",
"Kuwaiti Dinar",
"Moroccan Dirham"
],
"description": "Currency to display monetary values in (default: USD)"
},
"cursorStats.showProgressBars": {
"type": "boolean",
"default": false,
"description": "Show emoji-based progress bars in the tooltip for premium requests and usage-based pricing.",
"scope": "window"
},
"cursorStats.progressBarLength": {
"type": "number",
"default": 10,
"minimum": 5,
"maximum": 20,
"description": "Length of the progress bars (number of characters).",
"scope": "window"
},
"cursorStats.progressBarWarningThreshold": {
"type": "number",
"default": 50,
"minimum": 0,
"maximum": 100,
"description": "Percentage threshold at which progress bars turn yellow (warning).",
"scope": "window"
},
"cursorStats.progressBarCriticalThreshold": {
"type": "number",
"default": 75,
"minimum": 0,
"maximum": 100,
"description": "Percentage threshold at which progress bars turn red (critical).",
"scope": "window"
},
"cursorStats.customDatabasePath": {
"type": "string",
"default": "",
"description": "Custom path to the Cursor database file. Leave empty to use default location.",
"scope": "window"
},
"cursorStats.excludeWeekends": {
"type": "boolean",
"default": false,
"description": "Exclude weekends from period progress calculations and daily remaining requests.",
"scope": "window"
},
"cursorStats.showDailyRemaining": {
"type": "boolean",
"default": false,
"description": "Show estimated fast requests remaining per day in the tooltip.",
"scope": "window"
},
"cursorStats.language": {
"type": "string",
"default": "en",
"enum": [
"en",
"de",
"ru",
"zh",
"ko",
"ja",
"kk"
],
"enumDescriptions": [
"English",
"Deutsch (German)",
"Русский (Russian)",
"中文 (Chinese)",
"한국어 (Korean)",
"日本語 (Japanese)",
"Қазақша (Kazakh)"
],
"description": "Language for the extension interface and messages."
},
"cursorStats.showChangelogOnUpdate": {
"type": "boolean",
"default": true,
"description": "Show changelog popup and update notifications when the extension is updated to a new version.",
"scope": "window"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./ && npm run copy-locales",
"copy-locales": "node -e \"const fs=require('fs'),path=require('path'); const src='src/locales',dest='out/locales'; if(fs.existsSync(src)){fs.mkdirSync(dest,{recursive:true}); fs.readdirSync(src).forEach(file=>fs.copyFileSync(path.join(src,file),path.join(dest,file))); console.log('Locales copied to out/locales');}\"",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test",
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\""
},
"devDependencies": {
"@types/jsonwebtoken": "9.0.9",
"@types/mocha": "10.0.10",
"@types/node": "22.15.20",
"@types/semver": "7.7.0",
"@types/sql.js": "1.4.9",
"@types/vscode": "1.96.0",
"@typescript-eslint/eslint-plugin": "8.32.1",
"@typescript-eslint/parser": "8.32.1",
"@vscode/test-cli": "^0.0.10",
"eslint": "9.27.0",
"typescript": "5.8.3",
"prettier": "^3.3.2"
},
"dependencies": {
"axios": "1.9.0",
"glob": "^11.0.2",
"jsonwebtoken": "^9.0.2",
"lru-cache": "^11.1.0",
"marked": "15.0.12",
"semver": "7.7.2",
"sql.js": "^1.13.0"
},
"extensionKind": [
"ui"
],
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"tabWidth": 2,
"semi": true
}
}