-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
558 lines (558 loc) · 17.4 KB
/
package.json
File metadata and controls
558 lines (558 loc) · 17.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
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
{
"name": "cline-token-manager-beta",
"displayName": "Cline Token Manager v3.17.11 - Universal Context Optimizer",
"description": "Universal context optimization engine that reduces AI token usage by 76% + WORLD'S FIRST Auto-Fix for Cline Token Limits (One-Click Solution) - Compatible with Cline v3.17.11 and Claude Code",
"version": "1.1.10",
"publisher": "webwerkstatt",
"author": "Joseph Kisler - Webwerkstatt",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/web-werkstatt/ai-context-optimizer.git"
},
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Machine Learning",
"Programming Languages",
"Other"
],
"keywords": [
"cline",
"claude",
"ai",
"context",
"optimization",
"tokens",
"cursor",
"copilot",
"performance",
"cost-reduction"
],
"main": "./dist/extension.js",
"activationEvents": [
"*"
],
"contributes": {
"commands": [
{
"command": "cline-token-manager.optimizeContext",
"title": "Optimize Context",
"category": "Cline Token Manager",
"icon": "$(zap)"
},
{
"command": "cline-token-manager.generateOptimizationReport",
"title": "Generate Optimization Report",
"category": "Cline Token Manager",
"icon": "$(file-text)"
},
{
"command": "cline-token-manager.showDashboard",
"title": "Show Token Manager Dashboard",
"category": "Cline Token Manager",
"icon": "$(dashboard)"
},
{
"command": "cline-token-manager.toggleAutoOptimize",
"title": "Toggle Auto-Optimization",
"category": "Cline Token Manager",
"icon": "$(sync)"
},
{
"command": "cline-token-manager.resetStatistics",
"title": "Reset Statistics",
"category": "Cline Token Manager",
"icon": "$(refresh)"
},
{
"command": "cline-token-manager.showContextAnalysis",
"title": "Show Context Analysis",
"category": "Cline Token Manager",
"icon": "$(graph)"
},
{
"command": "cline-token-manager.showContextOptimization",
"title": "Show Context Optimization",
"category": "Cline Token Manager",
"icon": "$(rocket)"
},
{
"command": "cline-token-manager.emergencyOptimization",
"title": "Emergency Context Optimization",
"category": "Cline Token Manager",
"icon": "$(warning)"
},
{
"command": "cline-token-manager.generateContextReport",
"title": "Generate Context Report",
"category": "Cline Token Manager",
"icon": "$(file-text)"
},
{
"command": "cline-token-manager.debugTokenScan",
"title": "Debug Token Scan",
"category": "Cline Token Manager",
"icon": "$(debug)"
},
{
"command": "cline-token-manager.analyzeClineCache",
"title": "Analyze Cline Cache",
"category": "Cline Token Manager",
"icon": "$(search)"
},
{
"command": "cline-token-manager.smartCacheTrimming",
"title": "Smart Cache Trimming",
"category": "Cline Token Manager",
"icon": "$(scissors)"
},
{
"command": "cline-token-manager.emergencyCacheClear",
"title": "Emergency Cache Clear",
"category": "Cline Token Manager",
"icon": "$(trash)"
},
{
"command": "cline-token-manager.cacheMonitorDashboard",
"title": "Cache Monitor Dashboard",
"category": "Cline Token Manager",
"icon": "$(pulse)"
},
{
"command": "cline-token-manager.smartFileSelection",
"title": "Smart File Selection",
"category": "Cline Token Manager",
"icon": "$(files)"
},
{
"command": "cline-token-manager.smartSelectionDashboard",
"title": "Smart Selection Dashboard",
"category": "Cline Token Manager",
"icon": "$(dashboard)"
},
{
"command": "cline-token-manager.optimizeForCost",
"title": "Optimize for Cost",
"category": "Cline Token Manager",
"icon": "$(symbol-currency)"
},
{
"command": "cline-token-manager.optimizeForPerformance",
"title": "Optimize for Performance",
"category": "Cline Token Manager",
"icon": "$(zap)"
},
{
"command": "cline-token-manager.testPythonGateway",
"title": "Test Python Gateway",
"category": "Cline Token Manager",
"icon": "$(beaker)"
},
{
"command": "cline-token-manager.optimizeWithPython",
"title": "Optimize with Python Engine",
"category": "Cline Token Manager",
"icon": "$(symbol-class)"
},
{
"command": "cline-token-manager.showOptimizationStats",
"title": "Show Optimization Statistics",
"category": "Cline Token Manager",
"icon": "$(graph)"
},
{
"command": "cline-token-manager.pythonGatewayInfo",
"title": "Python Gateway Information",
"category": "Cline Token Manager",
"icon": "$(info)"
},
{
"command": "cline-token-manager.showAdminDashboard",
"title": "Admin Dashboard",
"category": "Cline Token Manager",
"icon": "$(dashboard)"
},
{
"command": "cline-token-manager.systemHealthCheck",
"title": "System Health Check",
"category": "Cline Token Manager",
"icon": "$(pulse)"
},
{
"command": "cline-token-manager.exportAnalytics",
"title": "Export Analytics Data",
"category": "Cline Token Manager",
"icon": "$(export)"
},
{
"command": "cline-token-manager.businessIntelligence",
"title": "Business Intelligence Dashboard",
"category": "Cline Token Manager",
"icon": "$(chart)"
},
{
"command": "universalAI.startProxy",
"title": "🚀 Start Universal AI Proxy",
"category": "Universal AI Platform",
"icon": "$(play)"
},
{
"command": "universalAI.stopProxy",
"title": "🛑 Stop Universal AI Proxy",
"category": "Universal AI Platform",
"icon": "$(stop)"
},
{
"command": "universalAI.showStats",
"title": "📊 Universal AI Statistics",
"category": "Universal AI Platform",
"icon": "$(graph)"
},
{
"command": "universalAI.costDashboard",
"title": "💰 Cost Dashboard",
"category": "Universal AI Platform",
"icon": "$(credit-card)"
},
{
"command": "cursorKiller.start",
"title": "🎯 Activate Cursor Killer",
"category": "Cursor Killer",
"icon": "$(target)"
},
{
"command": "cursorKiller.stop",
"title": "🛑 Stop Cursor Killer",
"category": "Cursor Killer",
"icon": "$(stop)"
},
{
"command": "cursorKiller.showStats",
"title": "📈 Cursor Killer Stats",
"category": "Cursor Killer",
"icon": "$(graph)"
},
{
"command": "cline-token-manager.checkTokenLimits",
"title": "Check Cline Token Limits",
"category": "Cline Token Manager",
"icon": "$(warning)"
},
{
"command": "cline-token-manager.showTokenLimitFix",
"title": "Show Token Limit Fix Instructions",
"category": "Cline Token Manager",
"icon": "$(tools)"
},
{
"command": "cline-token-manager.activateLicense",
"title": "🔑 Activate Pro License",
"category": "Cline Token Manager Pro",
"icon": "$(key)"
},
{
"command": "cline-token-manager.deactivateLicense",
"title": "🔓 Deactivate License",
"category": "Cline Token Manager Pro",
"icon": "$(unlock)"
},
{
"command": "cline-token-manager.startTrial",
"title": "🚀 Start 14-Day Trial",
"category": "Cline Token Manager Pro",
"icon": "$(rocket)"
},
{
"command": "cline-token-manager.upgradeToPro",
"title": "⭐ Upgrade to Pro",
"category": "Cline Token Manager Pro",
"icon": "$(star)"
},
{
"command": "cline-token-manager.showUsageStats",
"title": "📊 Show Usage Stats",
"category": "Cline Token Manager Pro",
"icon": "$(graph)"
},
{
"command": "cline-token-manager.showLicenseDashboard",
"title": "🎛️ License Dashboard",
"category": "Cline Token Manager Pro",
"icon": "$(dashboard)"
},
{
"command": "cline-token-manager.autoFixTokenLimits",
"title": "Auto-Fix Cline Token Limits",
"category": "Cline Token Manager",
"icon": "$(wrench)"
},
{
"command": "cline-token-manager.showAutoApproveStatus",
"title": "Show Auto-Approve Status",
"category": "Cline Token Manager",
"icon": "$(pulse)"
},
{
"command": "cline-token-manager.showAutoApproveLogs",
"title": "Show Auto-Approve Logs",
"category": "Cline Token Manager",
"icon": "$(output)"
},
{
"command": "cline-token-manager.injectRules",
"title": "Inject Custom Rules into Cline",
"category": "Cline Token Manager",
"icon": "$(run)"
},
{
"command": "cline-token-manager.reloadRules",
"title": "Reload Custom Rules",
"category": "Cline Token Manager",
"icon": "$(refresh)"
},
{
"command": "cline-token-manager.showRuleStatus",
"title": "Show Custom Rules Status",
"category": "Cline Token Manager",
"icon": "$(list-flat)"
},
{
"command": "cline-token-manager.manageRules",
"title": "🔧 Manage Custom Rules",
"category": "Cline Token Manager",
"icon": "$(settings-gear)"
},
{
"command": "clineTokenManager.freemius.account",
"title": "Account Management",
"category": "License",
"icon": "$(account)"
},
{
"command": "clineTokenManager.freemius.enterLicense",
"title": "Enter License Key",
"category": "License",
"icon": "$(key)"
},
{
"command": "clineTokenManager.freemius.upgrade",
"title": "Upgrade to Professional",
"category": "License",
"icon": "$(arrow-up)"
},
{
"command": "clineTokenManager.freemius.startTrial",
"title": "Start Free Trial",
"category": "License",
"icon": "$(star)"
},
{
"command": "clineTokenManager.freemius.deactivate",
"title": "Deactivate License",
"category": "License",
"icon": "$(circle-slash)"
},
{
"command": "clineTokenManager.freemius.info",
"title": "License Information",
"category": "License",
"icon": "$(info)"
},
{
"command": "clineTokenManager.freemius.dashboard",
"title": "License Dashboard",
"category": "License",
"icon": "$(dashboard)"
}
],
"configuration": {
"title": "Cline Token Manager",
"properties": {
"clineTokenManager.autoOptimize": {
"type": "boolean",
"default": true,
"description": "Enable Auto-Approve: Automatically optimize Cline's context before API calls"
},
"clineTokenManager.autoApprove.fileCountThreshold": {
"type": "number",
"default": 15,
"description": "Auto-Approve when more than X files are in context"
},
"clineTokenManager.autoApprove.reductionThreshold": {
"type": "number",
"default": 20,
"description": "Minimum % reduction required to apply auto-optimization"
},
"clineTokenManager.autoApprove.aggressiveMode": {
"type": "boolean",
"default": false,
"description": "Aggressive mode: Optimize even smaller contexts (5k+ tokens)"
},
"clineTokenManager.autoApprove.preserveFileTypes": {
"type": "array",
"default": ["package.json", "*.config.*", ".env"],
"description": "File patterns to never optimize (preserve exactly)"
},
"clineTokenManager.showStatusBar": {
"type": "boolean",
"default": true,
"description": "Show token count in status bar"
},
"clineTokenManager.optimizeThreshold": {
"type": "number",
"default": 10000,
"description": "Minimum tokens before suggesting optimization"
},
"clineTokenManager.compressionLevel": {
"type": "string",
"default": "smart",
"enum": ["conservative", "smart", "aggressive"],
"description": "Context compression level"
},
"clineTokenManager.fileTypes": {
"type": "object",
"default": {
"typescript": { "enabled": true, "compressionRatio": 0.85 },
"python": { "enabled": true, "compressionRatio": 0.82 },
"json": { "enabled": true, "compressionRatio": 0.71 },
"markdown": { "enabled": true, "compressionRatio": 0.65 }
},
"description": "File type specific optimization settings"
},
"cline-token-manager.ruleInjection.enabled": {
"type": "boolean",
"default": true,
"description": "Enable automatic custom rule injection into Cline conversations"
},
"cline-token-manager.ruleInjection.maxRuleTokens": {
"type": "number",
"default": 4000,
"description": "Maximum tokens to allocate for custom rules"
},
"cline-token-manager.ruleInjection.rulePaths": {
"type": "array",
"default": [".clinerules", ".cline/rules"],
"description": "Paths to search for rule files (relative to workspace or absolute)"
},
"cline-token-manager.ruleInjection.injectionMode": {
"type": "string",
"default": "smart",
"enum": ["prepend", "append", "smart"],
"description": "How to inject rules: prepend (start), append (end), smart (auto)"
},
"cline-token-manager.ruleInjection.autoReload": {
"type": "boolean",
"default": true,
"description": "Automatically reload rules when files change"
},
"clineTokenManager.excludePatterns": {
"type": "array",
"default": [
"**/node_modules/**",
"**/dist/**",
"**/.git/**",
"**/build/**",
"**/*.min.js"
],
"description": "File patterns to exclude from optimization"
},
"clineTokenManager.freemius.hasShownWelcome": {
"type": "boolean",
"default": false,
"description": "Whether the welcome message has been shown to the user"
},
"clineTokenManager.freemius.debugMode": {
"type": "boolean",
"default": false,
"description": "Enable debug logging for Freemius integration"
},
"clineTokenManager.freemius.sandboxMode": {
"type": "boolean",
"default": false,
"description": "Use Freemius sandbox environment for testing"
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "cline-token-manager",
"title": "Token Manager",
"icon": "$(graph-line)"
}
]
},
"views": {
"cline-token-manager": [
{
"type": "webview",
"id": "cline-token-manager.dashboard",
"name": "Optimization Dashboard",
"contextualTitle": "Token Optimization Dashboard"
}
]
},
"menus": {
"commandPalette": [
{
"command": "cline-token-manager.optimizeContext",
"when": "editorIsOpen"
},
{
"command": "cline-token-manager.generateOptimizationReport"
},
{
"command": "cline-token-manager.showDashboard"
}
],
"editor/context": [
{
"command": "cline-token-manager.optimizeContext",
"group": "1_modification",
"when": "editorTextFocus"
}
]
},
"keybindings": [
{
"command": "cline-token-manager.optimizeContext",
"key": "ctrl+shift+o",
"mac": "cmd+shift+o",
"when": "editorTextFocus"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack --mode development",
"watch": "webpack --mode development --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p ./",
"test-watch": "tsc -watch -p ./",
"pretest": "npm run test-compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"build": "npm run package"
},
"devDependencies": {
"@types/vscode": "^1.74.0",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "18.x",
"@typescript-eslint/eslint-plugin": "^6.13.0",
"@typescript-eslint/parser": "^6.13.0",
"eslint": "^8.54.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"typescript": "^5.3.0",
"ts-loader": "^9.5.1",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"@vscode/test-electron": "^2.3.8"
},
"dependencies": {
"tiktoken": "^1.0.10"
}
}