-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
387 lines (387 loc) · 13.2 KB
/
package.json
File metadata and controls
387 lines (387 loc) · 13.2 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
{
"name": "issuetriage",
"displayName": "IssueTriage",
"description": "An automated issue triage for risk and readiness assessment",
"publisher": "PredictabilityAtScale",
"version": "0.1.3",
"icon": "resources/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/PredictabilityAtScale/IssueTriage.git"
},
"engines": {
"vscode": "^1.95.0"
},
"categories": [
"SCM Providers",
"Machine Learning",
"Other"
],
"keywords": [
"github",
"issue",
"triage",
"risk",
"automation",
"ai"
],
"galleryBanner": {
"color": "#1e1e1e",
"theme": "dark"
},
"qna": "marketplace",
"homepage": "https://github.com/PredictabilityAtScale/IssueTriage#readme",
"bugs": {
"url": "https://github.com/PredictabilityAtScale/IssueTriage/issues"
},
"main": "./dist/extension.js",
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "issuetriage.openPanel",
"title": "Issue Triage: Open Panel",
"category": "Issue Triage",
"icon": "$(layout-sidebar-right)"
},
{
"command": "issuetriage.connectRepository",
"title": "Issue Triage: Connect Repository",
"category": "Issue Triage",
"icon": "$(plug)"
},
{
"command": "issuetriage.changeRepository",
"title": "Issue Triage: Change Repository",
"category": "Issue Triage",
"icon": "$(repo)"
},
{
"command": "issuetriage.refreshIssues",
"title": "Issue Triage: Refresh Issues",
"category": "Issue Triage",
"icon": "$(refresh)"
},
{
"command": "issuetriage.assessIssue",
"title": "Issue Triage: Assess Selected Issue",
"category": "Issue Triage",
"icon": "$(pulse)"
},
{
"command": "issuetriage.runContextTool",
"title": "Issue Triage: Run Context Tool",
"category": "Issue Triage",
"icon": "$(terminal)"
},
{
"command": "issuetriage.backfillKeywords",
"title": "Issue Triage: Backfill Keywords",
"category": "Issue Triage",
"icon": "$(history)"
},
{
"command": "issuetriage.trainModel",
"title": "Issue Triage: Export Training Dataset",
"category": "Issue Triage",
"icon": "$(cloud-upload)"
},
{
"command": "issuetriage.signOut",
"title": "Issue Triage: Sign Out",
"category": "Issue Triage",
"icon": "$(sign-out)"
},
{
"command": "issuetriage.sendToAutomation",
"title": "Issue Triage: Send to Automation",
"category": "Issue Triage",
"icon": "$(rocket)"
},
{
"command": "issuetriage.filterByReadiness",
"title": "Issue Triage: Toggle Readiness Filter",
"category": "Issue Triage",
"icon": "$(filter)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "issuetriage",
"title": "Issue Triage",
"icon": "resources/icon-activity.svg"
}
]
},
"views": {
"issuetriage": [
{
"id": "issuetriage.issuesView",
"name": "Issues",
"contextualTitle": "Issue Triage"
},
{
"id": "issuetriage.matrixOverview",
"name": "Opportunity Mix",
"contextualTitle": "Opportunity Mix",
"type": "webview",
"icon": "resources/icon-activity.svg"
},
{
"id": "issuetriage.usageView",
"name": "LLM Usage",
"contextualTitle": "LLM Usage",
"type": "webview",
"icon": "resources/icon-activity.svg"
}
]
},
"menus": {
"view/title": [
{
"command": "issuetriage.connectRepository",
"when": "view == issuetriage.issuesView && (!issuetriage.hasSession || !issuetriage.hasRepository)",
"group": "navigation@0",
"icon": "$(plug)"
},
{
"command": "issuetriage.openPanel",
"when": "view == issuetriage.issuesView",
"group": "navigation@1",
"icon": "$(open-preview)"
},
{
"command": "issuetriage.refreshIssues",
"when": "view == issuetriage.issuesView",
"group": "navigation@2",
"icon": "$(refresh)"
}
],
"view/item/context": [
{
"command": "issuetriage.assessIssue",
"when": "view == issuetriage.issuesView && viewItem == issueNotAssessed && !issuetriage.assessmentInProgress",
"group": "inline@1",
"icon": "$(pulse)"
},
{
"command": "issuetriage.sendToAutomation",
"when": "view == issuetriage.issuesView && viewItem == issueReady",
"group": "inline@1",
"icon": "$(rocket)"
}
]
},
"configuration": {
"title": "IssueTriage",
"properties": {
"issuetriage.telemetry.enabled": {
"type": "boolean",
"default": true,
"description": "Enable IssueTriage telemetry collection to improve automation readiness insights."
},
"issuetriage.telemetry.usagetapDebug": {
"type": "boolean",
"default": false,
"markdownDescription": "Write verbose UsageTap integration logs to the `IssueTriage UsageTap` output channel. Alternatively set the `ISSUETRIAGE_USAGETAP_DEBUG` environment variable to `1`."
},
"issuetriage.github.defaultRepository": {
"type": "string",
"default": "",
"description": "Default owner/repository slug to preload when connecting to GitHub."
},
"issuetriage.github.orgFilter": {
"type": "string",
"default": "",
"description": "Optional organization login used to filter the repository list when connecting to GitHub."
},
"issuetriage.assessment.apiKey": {
"type": "string",
"default": "",
"markdownDescription": "OpenRouter API key used for assessments. Prefer the `ISSUETRIAGE_OPENROUTER_API_KEY` environment variable for local development."
},
"issuetriage.assessment.llmMode": {
"type": "string",
"enum": [
"local",
"remote"
],
"default": "remote",
"markdownDescription": "Controls whether IssueTriage calls OpenRouter directly (`local`) or routes requests through the configured proxy (`remote`). Override via the `ISSUETRIAGE_LLM_MODE` environment variable."
},
"issuetriage.assessment.remoteEndpoint": {
"type": "string",
"default": "",
"markdownDescription": "Base URL for the IssueTriage LLM proxy when `llmMode` is set to `remote` (for example, `https://issue-triage-worker.troy-magennis.workers.dev`). Override via the `ISSUETRIAGE_LLM_REMOTE_URL` environment variable."
},
"issuetriage.assessment.standardModel": {
"type": "string",
"default": "openai/gpt-5-mini",
"description": "Model identifier used for standard assessments (OpenAI or OpenRouter-formatted)."
},
"issuetriage.assessment.premiumModel": {
"type": "string",
"default": "openai/gpt-5",
"description": "Model identifier used when premium mode is enabled (OpenAI or OpenRouter-formatted)."
},
"issuetriage.assessment.usePremiumModel": {
"type": "boolean",
"default": false,
"description": "When true, use the premium assessment model (requires appropriate OpenRouter access)."
},
"issuetriage.assessment.publishComments": {
"type": "boolean",
"default": true,
"markdownDescription": "Post or update a single IssueTriage assessment comment on the GitHub issue after each run."
},
"issuetriage.assessment.preferredModel": {
"type": "string",
"default": "openai/gpt-5-mini",
"markdownDescription": "Preferred OpenRouter model identifier used for initial assessments."
},
"issuetriage.risk.lookbackDays": {
"type": "number",
"default": 180,
"minimum": 7,
"description": "Number of days of history IssueTriage analyzes when computing risk intelligence."
},
"issuetriage.risk.labelFilters": {
"type": "array",
"default": [],
"markdownDescription": "Only hydrate risk intelligence for issues containing one of the provided labels. Leave empty to include all issues.",
"items": {
"type": "string"
}
},
"issuetriage.risk.publishComments": {
"type": "boolean",
"default": true,
"markdownDescription": "Post or update a single IssueTriage risk intelligence comment on the GitHub issue after each analysis."
},
"issuetriage.cliTools": {
"type": "array",
"default": [],
"markdownDescription": "Configure additional CLI context tools IssueTriage can execute. Values support ${workspaceRoot}, ${workspaceFolder}, and ${extensionRoot} tokens.",
"items": {
"type": "object",
"required": [
"id",
"command"
],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"description": "Unique identifier used to reference the tool."
},
"title": {
"type": "string",
"description": "Friendly name displayed in QuickPick lists."
},
"description": {
"type": "string",
"description": "Optional description for the run picker."
},
"command": {
"type": "string",
"description": "Executable or script to run."
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"description": "Arguments passed to the command."
},
"cwd": {
"type": "string",
"description": "Working directory for the process. Defaults to the workspace root."
},
"env": {
"type": "object",
"description": "Environment variables injected into the process. Values support token replacement.",
"additionalProperties": {
"type": "string"
}
},
"enabled": {
"type": "boolean",
"default": true,
"description": "Disable the tool without removing its configuration."
},
"autoRun": {
"type": "boolean",
"description": "Automatically run the tool before assessments."
},
"refreshIntervalMs": {
"type": "number",
"minimum": 0,
"description": "Minimum milliseconds between automatic runs."
},
"timeoutMs": {
"type": "number",
"minimum": 0,
"description": "Maximum runtime (milliseconds) before IssueTriage terminates the process."
},
"shell": {
"type": "boolean",
"description": "Run the command through the system shell."
},
"outputType": {
"type": "string",
"enum": [
"text",
"json"
],
"default": "text",
"description": "Treat stdout as plain text or JSON for parsing."
}
}
}
},
"issuetriage.automation.launchEnabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable guarded automation launch workflows once automation configuration is complete."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && npm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test"
},
"dependencies": {
"@octokit/core": "^6.1.2",
"@octokit/plugin-paginate-rest": "^11.4.0",
"@usagetap/sdk": "^0.8.0",
"dotenv": "^16.4.5",
"sql.js": "^1.9.0"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"@types/vscode": "^1.95.0",
"@typescript-eslint/eslint-plugin": "^8.45.0",
"@typescript-eslint/parser": "^8.45.0",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"esbuild": "^0.25.10",
"eslint": "^9.36.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.9.3"
}
}