Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
396 lines (396 loc) · 11.8 KB
/
Copy pathpackage.json
File metadata and controls
396 lines (396 loc) · 11.8 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
{
"name": "antigravity-dashboard",
"displayName": "Antigravity Dashboard: Quota & Toolkit",
"description": "100% local quota monitor, cockpit dashboard, cache manager, and auto-accept agent for Antigravity IDE",
"version": "2.0.0",
"publisher": "nextcortex",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/nextcortex/antigravity-dashboard.git"
},
"homepage": "https://github.com/nextcortex/antigravity-dashboard",
"engines": {
"vscode": "^1.90.0"
},
"icon": "assets/icon.png",
"categories": [
"Other",
"Machine Learning",
"Visualization"
],
"keywords": [
"antigravity",
"quota",
"dashboard",
"cockpit",
"toolkit",
"monitor",
"auto-accept"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "agd-sidebar",
"title": "Antigravity Dashboard",
"icon": "assets/icon.svg"
}
]
},
"views": {
"agd-sidebar": [
{
"type": "webview",
"id": "agd.sidebar",
"name": "Monitor",
"icon": "assets/icon.svg"
}
]
},
"commands": [
{
"command": "agd.openPanel",
"title": "Antigravity Dashboard: Open Panel"
},
{
"command": "agd.refreshQuota",
"title": "Antigravity Dashboard: Refresh Quota",
"icon": "$(refresh)"
},
{
"command": "agd.showCacheSize",
"title": "Antigravity Dashboard: Show Cache Size"
},
{
"command": "agd.cleanCache",
"title": "Antigravity Dashboard: Clean Cache",
"icon": "$(trash)"
},
{
"command": "agd.openSettings",
"title": "Antigravity Dashboard: Open Settings",
"icon": "$(settings-gear)"
},
{
"command": "agd.restartLanguageServer",
"title": "Antigravity Dashboard: Restart Agent Service",
"icon": "$(sync)"
},
{
"command": "agd.resetStatus",
"title": "Antigravity Dashboard: Reset Status",
"icon": "$(refresh)"
},
{
"command": "agd.runDiagnostics",
"title": "Antigravity Dashboard: Run Diagnostics",
"icon": "$(pulse)"
},
{
"command": "agd.showLogs",
"title": "Antigravity Dashboard: Show Logs",
"icon": "$(output)"
},
{
"command": "agd.toggleAutoAccept",
"title": "Antigravity Dashboard: Toggle Auto-Accept",
"icon": "$(check-all)"
},
{
"command": "agd.showQuickPick",
"title": "Antigravity Dashboard: Show Quota Details",
"icon": "$(rocket)"
}
],
"keybindings": [
{
"command": "agd.showQuickPick",
"key": "ctrl+shift+q",
"mac": "cmd+shift+q"
},
{
"command": "agd.toggleAutoAccept",
"key": "ctrl+shift+a",
"mac": "cmd+shift+a"
}
],
"menus": {
"view/title": [
{
"command": "agd.refreshQuota",
"when": "view == agd.sidebar",
"group": "navigation@1"
},
{
"command": "agd.openSettings",
"when": "view == agd.sidebar",
"group": "navigation@2"
}
]
},
"configuration": [
{
"title": "AGM: Dashboard",
"properties": {
"agd.dashboard.gaugeStyle": {
"type": "string",
"default": "semi-arc",
"enum": [
"semi-arc",
"classic-donut"
],
"description": "Visual style for quota gauges"
},
"agd.dashboard.viewMode": {
"type": "string",
"default": "groups",
"enum": [
"groups",
"models"
],
"description": "Show by model groups or individual models"
},
"agd.dashboard.historyRange": {
"type": "number",
"default": 90,
"minimum": 10,
"maximum": 120,
"description": "Time range for usage chart in minutes"
},
"agd.dashboard.refreshRate": {
"type": "number",
"default": 90,
"minimum": 30,
"description": "Auto-refresh interval in seconds (minimum 30s)"
},
"agd.dashboard.uiScale": {
"type": "number",
"default": 1,
"minimum": 0.8,
"maximum": 2,
"description": "UI scale factor for sidebar elements"
},
"agd.dashboard.showUserInfoCard": {
"type": "boolean",
"default": true,
"description": "Show user profile card in sidebar"
},
"agd.dashboard.showCreditsCard": {
"type": "boolean",
"default": true,
"description": "Show credits usage card in sidebar"
}
}
},
{
"title": "AGM: Status Bar",
"properties": {
"agd.status.showQuota": {
"type": "boolean",
"default": true,
"description": "Show quota in status bar"
},
"agd.status.showCache": {
"type": "boolean",
"default": true,
"description": "Show cache size in status bar"
},
"agd.status.displayFormat": {
"type": "string",
"default": "percentage",
"enum": [
"percentage",
"resetTime",
"resetTimestamp",
"used",
"remaining"
],
"description": "Status bar display format"
},
"agd.status.scope": {
"type": "string",
"default": "all",
"enum": [
"primary",
"all"
],
"description": "Show only primary model or all model groups"
},
"agd.status.warningThreshold": {
"type": "number",
"default": 30,
"minimum": 5,
"maximum": 80,
"description": "Quota below this % shows yellow warning (5-80)"
},
"agd.status.criticalThreshold": {
"type": "number",
"default": 10,
"minimum": 1,
"maximum": 50,
"description": "Quota below this % shows red danger alert (1-50)"
},
"agd.status.notificationsEnabled": {
"type": "boolean",
"default": true,
"description": "Show notifications when quota drops below critical threshold"
}
}
},
{
"title": "AGM: Cache",
"properties": {
"agd.cache.autoClean": {
"type": "boolean",
"default": false,
"description": "Auto-clean old brain tasks when cache exceeds threshold"
},
"agd.cache.autoCleanKeepCount": {
"type": "number",
"default": 5,
"minimum": 1,
"maximum": 50,
"description": "Number of newest tasks to keep during auto-clean"
},
"agd.cache.scanInterval": {
"type": "number",
"default": 120,
"minimum": 30,
"maximum": 600,
"description": "Cache check interval in seconds"
},
"agd.cache.warningSize": {
"type": "number",
"default": 500,
"minimum": 100,
"description": "Cache warning size threshold in MB"
},
"agd.cache.hideEmptyFolders": {
"type": "boolean",
"default": false,
"description": "Hide empty folders in cache tree views"
}
}
},
{
"title": "AGM: System",
"properties": {
"agd.system.serverHost": {
"type": "string",
"default": "127.0.0.1",
"description": "Local language server host (always 127.0.0.1)"
},
"agd.system.apiPath": {
"type": "string",
"default": "/exa.language_server_pb.LanguageServerService/GetUserStatus",
"description": "API path for quota metrics"
},
"agd.system.debugMode": {
"type": "boolean",
"default": false,
"description": "Enable debug logging"
},
"agd.system.autoAccept": {
"type": "boolean",
"default": false,
"description": "Auto-accept agent commands and file edits"
},
"agd.system.autoAcceptInterval": {
"type": "number",
"default": 800,
"minimum": 200,
"maximum": 5000,
"description": "Auto-accept check interval in ms"
},
"agd.system.autoAcceptCommands": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"antigravity.agent.acceptAgentStep",
"antigravity.terminalCommand.accept",
"antigravity.command.accept",
"antigravity.acceptCompletion",
"antigravity.prioritized.agentAcceptAllInFile",
"antigravity.prioritized.agentAcceptFocusedHunk",
"antigravity.prioritized.supercompleteAccept",
"antigravity.prioritized.terminalSuggestion.accept"
],
"description": "VS Code commands to fire each auto-accept tick"
},
"agd.system.autoAcceptSettings": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"antigravity.agent.terminal.autoExecutionPolicy",
"antigravity.agent.terminal.confirmCommands",
"antigravity.agent.terminal.allowedCommands",
"antigravity.terminal.autoRun",
"cortex.agent.autoRun",
"geminicodeassist.agentYoloMode",
"gemini.cli.yoloMode"
],
"description": "Setting keys to auto-enable when auto-accept is ON"
},
"agd.system.autoAcceptKeywords": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"accept",
"run",
"retry",
"apply",
"execute",
"confirm",
"allow once",
"allow"
],
"description": "CDP button text keywords to auto-click (accept list)"
},
"agd.system.autoAcceptRejectKeywords": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"skip",
"reject",
"cancel",
"close",
"refine",
"always",
"agd:"
],
"description": "CDP button text keywords to never auto-click (reject list)"
}
}
}
]
},
"scripts": {
"build": "node esbuild.js",
"watch": "node esbuild.js --watch",
"package": "npm run build && npx @vscode/vsce package --no-dependencies"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@types/vscode": "^1.90.0",
"@types/ws": "^8.18.1",
"@vscode/vsce": "^3.2.0",
"esbuild": "^0.21.0",
"typescript": "^5.3.0"
},
"dependencies": {
"ws": "^8.19.0"
}
}