-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
321 lines (321 loc) · 9.02 KB
/
package.json
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
{
"name": "poiex",
"displayName": "PoiEx",
"description": "Point of Intersection Explorer",
"version": "1.0.0",
"publisher": "doyensec",
"contributors": [
{
"name": "Michele Lizzit",
"email": "[email protected]",
"url": "https://lizzit.it/"
},
{
"name": "Francesco Lacerenza",
"email": "[email protected]",
"url": "https://doyensec.com/"
}
],
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished",
"onView:poiex"
],
"extensionDependencies": [
"mindaro-dev.file-downloader"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "poiex.readSemgrepJson",
"title": "Read Semgrep Json"
},
{
"command": "poiex.create_note",
"title": "Create new comment",
"enablement": "!commentIsEmpty"
},
{
"command": "poiex.replyNote",
"title": "Reply",
"enablement": "!commentIsEmpty"
},
{
"command": "poiex.editNote",
"title": "Edit"
},
{
"command": "poiex.deleteNote",
"title": "Delete"
},
{
"command": "poiex.deleteNoteComment",
"title": "Delete"
},
{
"command": "poiex.saveNote",
"title": "Save"
},
{
"command": "poiex.cancelsaveNote",
"title": "Cancel"
},
{
"command": "poiex.dispose",
"title": "Remove All Notes (DANGER)"
},
{
"command": "iacAudit.refreshProjectTree",
"title": "Refresh",
"icon": {
"light": "media/refresh-dark.svg",
"dark": "media/refresh-light.svg"
}
},
{
"command": "iacAudit.deleteTreeProject",
"title": "Delete project",
"icon": {
"light": "media/remove-dark.svg",
"dark": "media/remove-light.svg"
}
}
],
"configuration": {
"title": "PoiEx",
"properties": {
"poiex.authorName": {
"type": "string",
"description": "Author name for comments.",
"default": "No-name"
},
"poiex.semgrepArgs": {
"type": "string",
"description": "Semgrep command line arguments.",
"default": "--config auto"
},
"poiex.semgrepTimeout": {
"type": "number",
"description": "Semgrep execution timeout in seconds.",
"default": 240,
"minimum": 10,
"maximum": 7200
},
"poiex.enableIaC": {
"type": "boolean",
"description": "Enable IaC-specific features.",
"default": false
},
"poiex.collab.enabled": {
"type": "boolean",
"description": "Enable collaboration via MongoDB.",
"default": false
},
"poiex.collab.uri": {
"type": "string",
"description": "URI of the remote MongoDB server.",
"default": "mongodb://localhost:27017/"
},
"poiex.collab.database": {
"type": "string",
"description": "Name of the MongoDB database.",
"default": "poiex"
},
"poiex.collab.expireAfter": {
"type": "string",
"description": "Auto-delete comments on remote database after a certain amount of seconds. (Set to 0 to disable)",
"default": "0"
}
}
},
"menus": {
"comments/commentThread/title": [
{
"command": "poiex.deleteNote",
"group": "navigation",
"when": "commentController == poiex && !commentThreadIsEmpty"
}
],
"comments/commentThread/context": [
{
"command": "poiex.create_note",
"group": "inline",
"when": "commentController == poiex && commentThreadIsEmpty"
},
{
"command": "poiex.replyNote",
"group": "inline",
"when": "commentController == poiex && !commentThreadIsEmpty"
}
],
"comments/comment/title": [
{
"command": "poiex.editNote",
"group": "group@1",
"when": "commentController == poiex"
},
{
"command": "poiex.deleteNoteComment",
"group": "group@2",
"when": "commentController == poiex && comment == canDelete"
}
],
"comments/comment/context": [
{
"command": "poiex.cancelsaveNote",
"group": "inline@1",
"when": "commentController == poiex"
},
{
"command": "poiex.saveNote",
"group": "inline@2",
"when": "commentController == poiex"
}
],
"view/title": [
{
"command": "iacAudit.refreshProjectTree",
"when": "view == iacAudit && workspaceFolderCount > 0 && iacAudit.isProjectOpen == false",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "iacAudit.deleteTreeProject",
"when": "view == iacAudit && workspaceFolderCount > 0 && iacAudit.isProjectOpen == false",
"group": "inline"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "poiex",
"title": "PoiEx",
"icon": "media/infrastructure.svg"
}
]
},
"views": {
"poiex": [
{
"id": "iacAudit",
"name": "PoiEx - Semgrep",
"contextualTitle": "Explore Semgrep Findings"
},
{
"id": "iacProjectManager",
"name": "PoiEx - Manage projects",
"contextualTitle": "Manage IaC Audit projects"
}
]
},
"viewsWelcome": [
{
"view": "iacAudit",
"contents": "Automatically run Semgrep on the currently open workspace folder.\n[Run Semgrep on current Workspace](command:poiex.runSemgrep)\nManually provide a Semgrep JSON file. Make sure that you run Semgrep relative to the currently open workspace directory.\n[Provide Semgrep Json File](command:poiex.readSemgrepJson)\nDelete all findings generated with this extension.\n[Delete all diagnostics](command:poiex.deleteAllDiagnostics)",
"when": "workspaceFolderCount == 1 && iacAudit.isProjectOpen == true"
},
{
"view": "iacAudit",
"contents": "Analyze the current project and show IaC-specific diagram.\n[Show IaC diagram](command:poiex.showIaCwebview)",
"when": "workspaceFolderCount == 1 && iacAudit.isProjectOpen == true && config.poiex.enableIaC == true"
},
{
"view": "iacAudit",
"contents": "In order to use PoiEx open a workspace folder.\n[Open Folder](command:vscode.openFolder)",
"when": "workspaceFolderCount == 0"
},
{
"view": "iacAudit",
"contents": "Please open a project to use this extension.",
"when": "workspaceFolderCount > 0 && iacAudit.isProjectOpen == false"
},
{
"view": "iacAudit",
"contents": "This extension only works when a single workspace folder is open. Please close all other workspace folders.",
"when": "workspaceFolderCount > 1"
},
{
"view": "iacProjectManager",
"contents": "In order to use PoiEx open a workspace folder.\n[Open Folder](command:vscode.openFolder)",
"when": "workspaceFolderCount == 0"
},
{
"view": "iacProjectManager",
"contents": "This extension only works when a single workspace folder is open. Please close all other workspace folders.",
"when": "workspaceFolderCount > 1"
},
{
"view": "iacProjectManager",
"contents": "Initialize a new project on current Workspace.\n[Init project](command:poiex.initProject)\nOpen existing project from remote database.\n[Open existing project](command:poiex.openProject)",
"when": "workspaceFolderCount == 1 && iacAudit.isProjectOpen == false"
},
{
"view": "iacProjectManager",
"contents": "Close current project.\n[Close project](command:poiex.closeProject)\nExport currently open project to a file.\n[Export project](command:poiex.exportProject)\nDestroy current project on local database only.\n[Destroy local project](command:poiex.destroyLocalProject)",
"when": "workspaceFolderCount == 1 && iacAudit.isProjectOpen == true"
},
{
"view": "iacProjectManager",
"contents": "Destroy current project on local and remote database.\n[Destroy project](command:poiex.destroyProject)",
"when": "workspaceFolderCount == 1 && iacAudit.isProjectOpen == true && iacAudit.isProjectCreator == true"
},
{
"view": "iacProjectManager",
"contents": "Copy encryption key to clipboard.\n[Copy key to clipboard](command:poiex.copyKey)",
"when": "workspaceFolderCount == 1 && iacAudit.isProjectOpen == true && iacAudit.isProjectEncrypted == true"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.6",
"@types/node": "^16.18.70",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vscode/test-electron": "^2.3.8",
"@vscode/vsce": "^2.22.0",
"electron": "^26.6.4",
"electron-rebuild": "^3.2.9",
"eslint": "^8.56.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"typescript": "^4.9.5"
},
"dependencies": {
"@microsoft/vscode-file-downloader-api": "^1.0.1",
"@types/sqlite3": "^3.1.11",
"@types/ssri": "^7.1.5",
"@types/tar": "^6.1.10",
"@types/url-parse": "^1.4.11",
"@types/which": "^3.0.3",
"jose": "^4.15.4",
"mongodb": "^5.9.2",
"sqlite": "^4.2.1",
"sqlite3": "=5.1.6",
"ssri": "^10.0.5",
"tar": "^6.2.0",
"url-parse": "^1.5.10",
"which": "^3.0.1"
},
"repository": {
"type": "git",
"url": "https://github.com/doyensec/poiex.git"
}
}