Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
549 lines (549 loc) · 19.8 KB
/
Copy pathpackage.json
File metadata and controls
549 lines (549 loc) · 19.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
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
{
"name": "deepsec-security",
"displayName": "DeepSec",
"description": "DeepSec Shield and Spear security auditing for AI-generated code.",
"version": "0.2.0",
"publisher": "unclecheng",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Unclecheng-li/DeepSec.git"
},
"private": true,
"type": "commonjs",
"icon": "media/deepsec-icon.png",
"main": "./dist/extension.js",
"bin": {
"deepsec-vscode": "./dist/cli.js",
"deepsec-lsp": "./dist/lspServer.js"
},
"engines": {
"vscode": "^1.92.0"
},
"categories": [
"Linters",
"Programming Languages",
"Other"
],
"extensionKind": [
"workspace"
],
"activationEvents": [
"onStartupFinished",
"onCommand:deepsec.scanCurrentFile",
"onCommand:deepsec.scanWorkspace",
"onCommand:deepsec.scanWithAi",
"onCommand:deepsec.spearRun",
"onCommand:deepsec.syncPackageCache",
"onCommand:deepsec.exportDashboard",
"onCommand:deepsec.setLlmApiKey",
"onCommand:deepsec.deleteLlmApiKey",
"onCommand:deepsec.showLlmStatus",
"onCommand:deepsec.showSubscriptionStatus",
"onCommand:deepsec.applyFix",
"onCommand:deepsec.applyFindingFix",
"onCommand:deepsec.applyAllSafeFixes",
"onCommand:deepsec.applyAllProFixes",
"onView:deepsecFindings",
"onView:deepsecL3Panel"
],
"contributes": {
"commands": [
{
"command": "deepsec.scanCurrentFile",
"title": "DeepSec: Scan Current File"
},
{
"command": "deepsec.scanWorkspace",
"title": "DeepSec: Scan Workspace"
},
{
"command": "deepsec.scanWithAi",
"title": "DeepSec: Scan with AI",
"icon": "$(sparkle)"
},
{
"command": "deepsec.spearRun",
"title": "DeepSec: Run Spear",
"icon": "$(beaker)"
},
{
"command": "deepsec.clearFindings",
"title": "DeepSec: Clear Findings"
},
{
"command": "deepsec.openReport",
"title": "DeepSec: Open Findings Report"
},
{
"command": "deepsec.exportDashboard",
"title": "DeepSec: Export Findings Dashboard"
},
{
"command": "deepsec.openIgnoreRules",
"title": "DeepSec: Open Ignore Rules"
},
{
"command": "deepsec.syncPackageCache",
"title": "DeepSec: Sync Package Cache"
},
{
"command": "deepsec.setLlmApiKey",
"title": "DeepSec: Set LLM API Key"
},
{
"command": "deepsec.deleteLlmApiKey",
"title": "DeepSec: Delete LLM API Key"
},
{
"command": "deepsec.showLlmStatus",
"title": "DeepSec: Show LLM Status"
},
{
"command": "deepsec.showSubscriptionStatus",
"title": "DeepSec: Show Pro Subscription Status"
},
{
"command": "deepsec.ignoreFinding",
"title": "DeepSec: Ignore This Finding"
},
{
"command": "deepsec.ignoreRuleInFile",
"title": "DeepSec: Ignore Rule in This File"
},
{
"command": "deepsec.ignoreRuleGlobally",
"title": "DeepSec: Ignore Rule Globally"
},
{
"command": "deepsec.ignorePackage",
"title": "DeepSec: Ignore Package"
},
{
"command": "deepsec.applyFix",
"title": "DeepSec: Apply Fix"
},
{
"command": "deepsec.applyFindingFix",
"title": "DeepSec: Apply Finding Fix"
},
{
"command": "deepsec.applyAllSafeFixes",
"title": "DeepSec: Apply All Safe Fixes in Current File"
},
{
"command": "deepsec.applyAllProFixes",
"title": "DeepSec: Review and Apply All Pro Fixes in Current File"
}
],
"menus": {
"view/item/context": [
{
"command": "deepsec.applyFindingFix",
"when": "view == deepsecFindings && viewItem == deepsecFindingFixable",
"group": "inline@1"
},
{
"command": "deepsec.ignoreFinding",
"when": "view == deepsecFindings && (viewItem == deepsecFinding || viewItem == deepsecFindingFixable)",
"group": "inline"
},
{
"command": "deepsec.ignoreRuleInFile",
"when": "view == deepsecFindings && (viewItem == deepsecFinding || viewItem == deepsecFindingFixable)",
"group": "navigation"
},
{
"command": "deepsec.ignoreRuleGlobally",
"when": "view == deepsecFindings && (viewItem == deepsecFinding || viewItem == deepsecFindingFixable)",
"group": "navigation"
},
{
"command": "deepsec.ignorePackage",
"when": "view == deepsecFindings && (viewItem == deepsecFinding || viewItem == deepsecFindingFixable)",
"group": "navigation"
}
]
},
"configuration": {
"title": "DeepSec",
"properties": {
"deepsec.enabled": {
"type": "boolean",
"default": true,
"description": "Enable DeepSec security scanning."
},
"deepsec.scanOnChange": {
"type": "boolean",
"default": true,
"description": "Scan supported documents shortly after edits."
},
"deepsec.scanOnSave": {
"type": "boolean",
"default": true,
"description": "Scan supported documents when they are saved."
},
"deepsec.packageVerification": {
"type": "string",
"enum": [
"seed",
"remote",
"off"
],
"default": "remote",
"description": "How VSCode verifies package names. Remote mode keeps edit-time diagnostics non-blocking by checking the local seed/index first, then verifies unknown packages against npm, PyPI, Cargo, Go modules, and Maven Central."
},
"deepsec.configPath": {
"type": "string",
"default": "",
"description": "Path to config.json. Defaults to ~/.vibeguard/config.json."
},
"deepsec.deepsecPythonPath": {
"type": "string",
"default": "",
"description": "Optional Python interpreter for DeepSec Shield scanning. When empty, the bundled DeepSec TypeScript engine remains active."
},
"deepsec.autoSyncPackageCache": {
"type": "boolean",
"default": true,
"description": "Automatically sync the local package-name cache in the background when VSCode starts."
},
"deepsec.packageCacheLanguages": {
"type": "array",
"items": {
"type": "string",
"enum": [
"npm",
"pypi",
"cargo",
"gomod",
"maven"
]
},
"default": [
"npm",
"pypi"
],
"description": "Package registries to keep in the local package-name cache. Explicit VSCode settings override config.json package_cache.languages."
},
"deepsec.packageCacheUpdateInterval": {
"type": "string",
"enum": [
"daily",
"weekly"
],
"default": "daily",
"description": "How often VSCode background sync refreshes package-name indexes."
},
"deepsec.packageCacheLightweightMode": {
"type": "boolean",
"default": true,
"description": "Use lightweight partial package-name indexes for faster cold starts."
},
"deepsec.packageCacheBackgroundFullSync": {
"type": "boolean",
"default": true,
"description": "After the quick package-name index is ready, continue refreshing a full index in the background. Disable to keep lightweight partial indexes only."
},
"deepsec.enableL2": {
"type": "boolean",
"default": true,
"description": "Enable lightweight asynchronous SAST rules for SQL injection, XSS, SSRF, path traversal, unsafe deserialization, and command injection."
},
"deepsec.l2DebounceMs": {
"type": "number",
"default": 500,
"minimum": 0,
"maximum": 30000,
"description": "Delay in milliseconds before VSCode runs L2 SAST analysis after edits. L1 diagnostics still run immediately."
},
"deepsec.enableL3": {
"type": "boolean",
"default": false,
"description": "Enable L3 semantic security checks. When an LLM provider and credential are available, DeepSec uses them; otherwise it falls back to local endpoint heuristics."
},
"deepsec.l3DebounceMs": {
"type": "number",
"default": 2000,
"minimum": 0,
"maximum": 30000,
"description": "Delay in milliseconds before VSCode runs L3 semantic analysis after edits. Saves and manual scans run L3 immediately."
},
"deepsec.llmProvider": {
"type": "string",
"enum": [
"deepseek",
"claude",
"openai",
"local",
"vibeguard"
],
"default": "deepseek",
"description": "LLM provider for DeepSec L3 semantic analysis. API keys are stored with VSCode SecretStorage or read from environment variables."
},
"deepsec.llmModel": {
"type": "string",
"default": "",
"description": "Optional model override for L3 semantic analysis."
},
"deepsec.llmBaseUrl": {
"type": "string",
"default": "",
"description": "Optional provider base URL override for L3 semantic analysis. Remote endpoints must use HTTPS; HTTP is allowed only for loopback local development hosts."
},
"deepsec.dedupWithExistingTools": {
"type": "boolean",
"default": true,
"description": "Dismiss duplicate L2 findings when nearby SonarQube, Snyk, Semgrep, or CodeQL annotations already cover the same issue."
},
"deepsec.storeFindings": {
"type": "boolean",
"default": true,
"description": "Store scan runs and findings in a local SQLite database."
},
"deepsec.findingsDbPath": {
"type": "string",
"default": "",
"description": "Path to findings.db. Defaults to ~/.vibeguard/findings.db."
},
"deepsec.ignoredFindings": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Exact finding IDs to dismiss in addition to config.json ignored_findings."
},
"deepsec.customRules": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Paths to custom DeepSec YAML rule files. Relative paths resolve from the workspace folder."
},
"deepsec.showCriticalPopups": {
"type": "boolean",
"default": true,
"description": "Show warning popups for newly detected critical findings."
},
"deepsec.ignoreRulesPath": {
"type": "string",
"default": "",
"description": "Path to ignore-rules.yml. Defaults to ~/.vibeguard/ignore-rules.yml."
},
"vibeguard.enabled": {
"type": "boolean",
"default": true,
"description": "[Deprecated; use deepsec.enabled] Enable DeepSec security scanning."
},
"vibeguard.scanOnChange": {
"type": "boolean",
"default": true,
"description": "[Deprecated; use deepsec.scanOnChange] Scan supported documents shortly after edits."
},
"vibeguard.scanOnSave": {
"type": "boolean",
"default": true,
"description": "[Deprecated; use deepsec.scanOnSave] Scan supported documents when they are saved."
},
"vibeguard.packageVerification": {
"type": "string",
"enum": [
"seed",
"remote",
"off"
],
"default": "remote",
"description": "[Deprecated; use deepsec.packageVerification] How VSCode verifies package names. Remote mode keeps edit-time diagnostics non-blocking by checking the local seed/index first, then verifies unknown packages against npm, PyPI, Cargo, Go modules, and Maven Central."
},
"vibeguard.configPath": {
"type": "string",
"default": "",
"description": "[Deprecated; use deepsec.configPath] Path to config.json. Defaults to ~/.vibeguard/config.json."
},
"vibeguard.deepsecPythonPath": {
"type": "string",
"default": "",
"description": "[Deprecated; use deepsec.deepsecPythonPath] Optional Python interpreter for DeepSec Shield scanning. When empty, the bundled DeepSec TypeScript engine remains active."
},
"vibeguard.autoSyncPackageCache": {
"type": "boolean",
"default": true,
"description": "[Deprecated; use deepsec.autoSyncPackageCache] Automatically sync the local package-name cache in the background when VSCode starts."
},
"vibeguard.packageCacheLanguages": {
"type": "array",
"items": {
"type": "string",
"enum": [
"npm",
"pypi",
"cargo",
"gomod",
"maven"
]
},
"default": [
"npm",
"pypi"
],
"description": "[Deprecated; use deepsec.packageCacheLanguages] Package registries to keep in the local package-name cache. Explicit VSCode settings override config.json package_cache.languages."
},
"vibeguard.packageCacheUpdateInterval": {
"type": "string",
"enum": [
"daily",
"weekly"
],
"default": "daily",
"description": "[Deprecated; use deepsec.packageCacheUpdateInterval] How often VSCode background sync refreshes package-name indexes."
},
"vibeguard.packageCacheLightweightMode": {
"type": "boolean",
"default": true,
"description": "[Deprecated; use deepsec.packageCacheLightweightMode] Use lightweight partial package-name indexes for faster cold starts."
},
"vibeguard.packageCacheBackgroundFullSync": {
"type": "boolean",
"default": true,
"description": "[Deprecated; use deepsec.packageCacheBackgroundFullSync] After the quick package-name index is ready, continue refreshing a full index in the background. Disable to keep lightweight partial indexes only."
},
"vibeguard.enableL2": {
"type": "boolean",
"default": true,
"description": "[Deprecated; use deepsec.enableL2] Enable lightweight asynchronous SAST rules for SQL injection, XSS, SSRF, path traversal, unsafe deserialization, and command injection."
},
"vibeguard.l2DebounceMs": {
"type": "number",
"default": 500,
"minimum": 0,
"maximum": 30000,
"description": "[Deprecated; use deepsec.l2DebounceMs] Delay in milliseconds before VSCode runs L2 SAST analysis after edits. L1 diagnostics still run immediately."
},
"vibeguard.enableL3": {
"type": "boolean",
"default": false,
"description": "[Deprecated; use deepsec.enableL3] Enable L3 semantic security checks. When an LLM provider and credential are available, DeepSec uses them; otherwise it falls back to local endpoint heuristics."
},
"vibeguard.l3DebounceMs": {
"type": "number",
"default": 2000,
"minimum": 0,
"maximum": 30000,
"description": "[Deprecated; use deepsec.l3DebounceMs] Delay in milliseconds before VSCode runs L3 semantic analysis after edits. Saves and manual scans run L3 immediately."
},
"vibeguard.llmProvider": {
"type": "string",
"enum": [
"deepseek",
"claude",
"openai",
"local",
"vibeguard"
],
"default": "deepseek",
"description": "[Deprecated; use deepsec.llmProvider] LLM provider for DeepSec L3 semantic analysis. API keys are stored with VSCode SecretStorage or read from environment variables."
},
"vibeguard.llmModel": {
"type": "string",
"default": "",
"description": "[Deprecated; use deepsec.llmModel] Optional model override for L3 semantic analysis."
},
"vibeguard.llmBaseUrl": {
"type": "string",
"default": "",
"description": "[Deprecated; use deepsec.llmBaseUrl] Optional provider base URL override for L3 semantic analysis. Remote endpoints must use HTTPS; HTTP is allowed only for loopback local development hosts."
},
"vibeguard.dedupWithExistingTools": {
"type": "boolean",
"default": true,
"description": "[Deprecated; use deepsec.dedupWithExistingTools] Dismiss duplicate L2 findings when nearby SonarQube, Snyk, Semgrep, or CodeQL annotations already cover the same issue."
},
"vibeguard.storeFindings": {
"type": "boolean",
"default": true,
"description": "[Deprecated; use deepsec.storeFindings] Store scan runs and findings in a local SQLite database."
},
"vibeguard.findingsDbPath": {
"type": "string",
"default": "",
"description": "[Deprecated; use deepsec.findingsDbPath] Path to findings.db. Defaults to ~/.vibeguard/findings.db."
},
"vibeguard.ignoredFindings": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "[Deprecated; use deepsec.ignoredFindings] Exact finding IDs to dismiss in addition to config.json ignored_findings."
},
"vibeguard.customRules": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "[Deprecated; use deepsec.customRules] Paths to custom DeepSec YAML rule files. Relative paths resolve from the workspace folder."
},
"vibeguard.showCriticalPopups": {
"type": "boolean",
"default": true,
"description": "[Deprecated; use deepsec.showCriticalPopups] Show warning popups for newly detected critical findings."
},
"vibeguard.ignoreRulesPath": {
"type": "string",
"default": "",
"description": "[Deprecated; use deepsec.ignoreRulesPath] Path to ignore-rules.yml. Defaults to ~/.vibeguard/ignore-rules.yml."
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "deepsec",
"title": "DeepSec",
"icon": "$(shield)"
}
]
},
"views": {
"deepsec": [
{
"id": "deepsecFindings",
"name": "Findings"
},
{
"id": "deepsecL3Panel",
"name": "AI Deep Scan",
"type": "webview"
}
]
}
},
"scripts": {
"compile": "tsc -p ./",
"build": "node scripts/build.js",
"watch": "tsc -watch -p ./",
"test": "node scripts/assert-node-lts.js && npm run compile && node --test \"out/tests/**/*.test.js\"",
"lint": "tsc --noEmit -p ./",
"benchmark:cold-start": "npm run build && node scripts/benchmark-cold-start.js",
"vscode:prepublish": "npm run build",
"package:vsix": "node scripts/package-vsix.js"
},
"devDependencies": {
"@types/node": "^24.0.0",
"@types/vscode": "^1.92.0",
"@vscode/vsce": "^3.9.2",
"esbuild": "^0.28.1",
"typescript": "^5.5.4"
},
"dependencies": {
"minimatch": "^10.2.5",
"tree-sitter-wasms": "^0.1.13",
"vscode-languageserver": "^10.1.0",
"vscode-languageserver-textdocument": "^1.0.12",
"web-tree-sitter": "^0.20.8",
"yaml": "^2.9.0"
}
}