-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
264 lines (264 loc) · 6.95 KB
/
package.json
File metadata and controls
264 lines (264 loc) · 6.95 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
{
"name": "precogs-ai",
"displayName": "Precogs - AI-native Code Security",
"description": "Proactive Code Quality & Security Analysis. Detect bugs and vulnerabilities in your code before you run it.",
"version": "1.1.0",
"publisher": "precogs-ai",
"license": "MIT",
"icon": "assets/logo.png",
"categories": [
"AI",
"Linters",
"Programming Languages",
"Testing"
],
"keywords": [
"security",
"vulnerability",
"scanner",
"AI",
"code quality",
"binary security",
"predictive",
"sast",
"code analysis",
"sql injection",
"xss",
"secrets"
],
"repository": {
"type": "git",
"url": "https://github.com/precogs-ai/vscode-extension"
},
"homepage": "https://precogs.ai",
"bugs": {
"url": "https://github.com/precogs-ai/vscode-extension/issues"
},
"galleryBanner": {
"color": "#0f172a",
"theme": "dark"
},
"badges": [
{
"url": "https://img.shields.io/badge/AI-Powered-8B5CF6",
"href": "https://precogs.ai",
"description": "AI-Powered Security"
}
],
"engines": {
"vscode": "^1.85.0"
},
"activationEvents": [
"onLanguage:python",
"onLanguage:javascript",
"onLanguage:typescript",
"onLanguage:java",
"onLanguage:go",
"onLanguage:c",
"onLanguage:cpp",
"onLanguage:rust"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "precogs.signIn",
"title": "Sign In with GitHub",
"category": "Precogs AI"
},
{
"command": "precogs.signOut",
"title": "Sign Out",
"category": "Precogs AI"
},
{
"command": "precogs.scanFile",
"title": "Precogs AI: Scan Current File",
"category": "Precogs AI",
"icon": "$(search)"
},
{
"command": "precogs.scanWorkspace",
"title": "Scan Entire Workspace",
"category": "Precogs AI"
},
{
"command": "precogs.applyFix",
"title": "Apply AI Security Fix",
"category": "Precogs AI"
},
{
"command": "precogs.showPanel",
"title": "Show Security Panel",
"category": "Precogs AI"
},
{
"command": "precogs.fixAll",
"title": "Fix All Vulnerabilities",
"category": "Precogs AI",
"icon": "$(check-all)"
},
{
"command": "precogs.applyFixFromTree",
"title": "Apply Fix",
"category": "Precogs AI",
"icon": "$(check)"
},
{
"command": "precogs.ignoreFromTree",
"title": "Ignore",
"category": "Precogs AI",
"icon": "$(x)"
},
{
"command": "precogs.upgrade",
"title": "Precogs AI: Upgrade Plan",
"category": "Precogs AI",
"icon": "$(star-full)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "precogs-security",
"title": "Precogs AI",
"icon": "assets/precogs-ai–icon-primary.svg"
}
]
},
"views": {
"precogs-security": [
{
"id": "precogs.summary",
"name": "Summary",
"type": "webview",
"icon": "assets/precogs-ai–icon-primary.svg"
},
{
"id": "precogs.vulnerabilities",
"name": "Findings",
"icon": "assets/precogs-ai–icon-primary.svg"
}
]
},
"configuration": {
"title": "Precogs AI",
"properties": {
"precogs.apiKey": {
"type": "string",
"default": "",
"description": "Your Precogs AI API key"
},
"precogs.apiEndpoint": {
"type": "string",
"default": "https://api.precogs.ai/api/v1",
"description": "Precogs API endpoint URL"
},
"precogs.scanOnSave": {
"type": "boolean",
"default": false,
"description": "Automatically scan files when saved"
},
"precogs.severityFilter": {
"type": "string",
"enum": [
"all",
"high",
"critical"
],
"default": "all",
"description": "Minimum severity level to display"
},
"precogs.enableStatusBar": {
"type": "boolean",
"default": true,
"description": "Show vulnerability count in status bar"
},
"precogs.mockMode": {
"type": "boolean",
"default": false,
"description": "Enable mock mode for demo/testing without API connection"
},
"precogs.geminiApiKey": {
"type": "string",
"default": "",
"description": "Gemini API key for AI-powered vulnerability scanning"
},
"precogs.privacyMode": {
"type": "boolean",
"default": false,
"markdownDescription": "🔒 **Privacy Mode**: When enabled, scan results are NOT sent to Precogs servers. Only local diagnostics are shown. Your token is still used for authentication and rate limiting."
},
"precogs.darkMode": {
"type": "boolean",
"default": true,
"markdownDescription": "🌙 **Dark Mode**: Toggle between dark and light themes for the Precogs AI sidebar."
}
}
},
"menus": {
"view/title": [
{
"command": "precogs.scanFile",
"when": "view == precogs.summary",
"group": "navigation"
},
{
"command": "precogs.signIn",
"when": "view == precogs.summary",
"group": "navigation"
},
{
"command": "precogs.fixAll",
"when": "view == precogs.vulnerabilities",
"group": "navigation"
},
{
"command": "precogs.scanFile",
"when": "view == precogs.vulnerabilities",
"group": "navigation"
}
],
"editor/context": [
{
"command": "precogs.scanFile",
"group": "precogs",
"when": "editorTextFocus"
}
],
"view/item/context": [
{
"command": "precogs.applyFixFromTree",
"when": "view == precogs.vulnerabilities && viewItem == vulnerability",
"group": "inline"
},
{
"command": "precogs.ignoreFromTree",
"when": "view == precogs.vulnerabilities && viewItem == vulnerability",
"group": "inline"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js",
"lint": "eslint src --ext ts",
"package": "vsce package"
},
"devDependencies": {
"@types/node": "^20.10.0",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.13.0",
"@typescript-eslint/parser": "^6.13.0",
"@vscode/test-electron": "^2.3.8",
"eslint": "^8.54.0",
"typescript": "^5.3.0"
},
"dependencies": {
"axios": "^1.6.0"
}
}