-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
640 lines (640 loc) · 23 KB
/
package.json
File metadata and controls
640 lines (640 loc) · 23 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
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
{
"name": "copilot-cockpit",
"displayName": "Copilot Cockpit",
"description": "The AI control layer for GitHub Copilot — a persistent AI workflow cockpit inside VS Code with planning, review gates, and an agent crew for the heavy lifting.",
"version": "2.1.6",
"publisher": "local-dev",
"license": "SEE LICENSE IN LICENSE",
"icon": "images/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/goodguy1963/Copilot-Cockpit"
},
"bugs": {
"url": "https://github.com/goodguy1963/Copilot-Cockpit/issues"
},
"homepage": "https://github.com/goodguy1963/Copilot-Cockpit#readme",
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Other"
],
"keywords": [
"copilot",
"cockpit",
"scheduler",
"cron",
"automation",
"prompt"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "copilotCockpit.createTask",
"title": "%command.createTask%",
"category": "%extension.title%"
},
{
"command": "copilotCockpit.createTaskGui",
"title": "%command.createTaskGui%",
"category": "%extension.title%",
"icon": "$(add)"
},
{
"command": "copilotCockpit.listTasks",
"title": "%command.listTasks%",
"category": "%extension.title%"
},
{
"command": "copilotCockpit.openCockpit",
"title": "%command.openCockpit%",
"category": "%extension.title%",
"icon": {
"light": "images/activity-todo-list-command-light.svg",
"dark": "images/activity-todo-list-command-dark.svg"
}
},
{
"command": "copilotCockpit.deleteTask",
"title": "%command.deleteTask%",
"category": "%extension.title%",
"icon": "$(trash)"
},
{
"command": "copilotCockpit.toggleTask",
"title": "%command.toggleTask%",
"category": "%extension.title%",
"icon": "$(debug-pause)"
},
{
"command": "copilotCockpit.enableTask",
"title": "%command.enableTask%",
"category": "%extension.title%",
"icon": "$(play-circle)"
},
{
"command": "copilotCockpit.disableTask",
"title": "%command.disableTask%",
"category": "%extension.title%",
"icon": "$(stop-circle)"
},
{
"command": "copilotCockpit.runNow",
"title": "%command.runNow%",
"category": "%extension.title%",
"icon": "$(play)"
},
{
"command": "copilotCockpit.copyPrompt",
"title": "%command.copyPrompt%",
"category": "%extension.title%",
"icon": "$(copy)"
},
{
"command": "copilotCockpit.editTask",
"title": "%command.editTask%",
"category": "%extension.title%",
"icon": "$(edit)"
},
{
"command": "copilotCockpit.duplicateTask",
"title": "%command.duplicateTask%",
"category": "%extension.title%"
},
{
"command": "copilotCockpit.moveToCurrentWorkspace",
"title": "%command.moveToCurrentWorkspace%",
"category": "%extension.title%",
"icon": "$(pin)"
},
{
"command": "copilotCockpit.openSettings",
"title": "%command.openSettings%",
"category": "%extension.title%",
"icon": "$(settings-gear)"
},
{
"command": "copilotCockpit.showVersion",
"title": "%command.showVersion%",
"category": "%extension.title%",
"icon": "$(info)"
},
{
"command": "copilotCockpit.setupMcp",
"title": "%command.setupMcp%",
"category": "%extension.title%",
"icon": "$(plug)"
},
{
"command": "copilotCockpit.syncBundledSkills",
"title": "%command.syncBundledSkills%",
"category": "%extension.title%",
"icon": "$(sync)"
},
{
"command": "copilotCockpit.enableExternalAgentAccess",
"title": "%command.enableExternalAgentAccess%",
"category": "%extension.title%",
"icon": "$(shield)"
},
{
"command": "copilotCockpit.disableExternalAgentAccess",
"title": "%command.disableExternalAgentAccess%",
"category": "%extension.title%",
"icon": "$(shield-notification)"
},
{
"command": "copilotCockpit.rotateExternalAgentKey",
"title": "%command.rotateExternalAgentKey%",
"category": "%extension.title%",
"icon": "$(key)"
},
{
"command": "copilotCockpit.copyExternalAgentSetupInfo",
"title": "%command.copyExternalAgentSetupInfo%",
"category": "%extension.title%",
"icon": "$(copy)"
}
],
"configuration": {
"title": "%extension.title%",
"properties": {
"copilotCockpit.enabled": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "%config.enabled%"
},
"copilotCockpit.autoShowOnStartup": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "%config.autoShowOnStartup%"
},
"copilotCockpit.showNotifications": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "%config.showNotifications%"
},
"copilotCockpit.notificationMode": {
"type": "string",
"default": "sound",
"scope": "resource",
"enum": [
"sound",
"silentToast",
"silentStatus"
],
"enumDescriptions": [
"%config.notificationMode.sound%",
"%config.notificationMode.silentToast%",
"%config.notificationMode.silentStatus%"
],
"description": "%config.notificationMode%"
},
"copilotCockpit.logLevel": {
"type": "string",
"scope": "resource",
"default": "info",
"enum": [
"none",
"error",
"info",
"debug"
],
"enumDescriptions": [
"%config.logLevel.none%",
"%config.logLevel.error%",
"%config.logLevel.info%",
"%config.logLevel.debug%"
],
"description": "%config.logLevel%"
},
"copilotCockpit.language": {
"type": "string",
"default": "auto",
"scope": "resource",
"enum": [
"auto",
"en",
"ja",
"de"
],
"enumDescriptions": [
"%config.language.auto%",
"%config.language.en%",
"%config.language.ja%",
"%config.language.de%"
],
"description": "%config.language%"
},
"copilotCockpit.timezone": {
"type": "string",
"default": "",
"description": "%config.timezone%"
},
"copilotCockpit.chatSession": {
"type": "string",
"default": "new",
"enum": [
"new",
"continue"
],
"enumDescriptions": [
"%config.chatSession.new%",
"%config.chatSession.continue%"
],
"description": "%config.chatSession%"
},
"copilotCockpit.defaultAgent": {
"type": "string",
"default": "agent",
"scope": "resource",
"description": "%config.defaultAgent%"
},
"copilotCockpit.defaultModel": {
"type": "string",
"default": "",
"scope": "resource",
"description": "%config.defaultModel%"
},
"copilotCockpit.needsBotReviewCommentTemplate": {
"type": "string",
"default": "Needs bot review: clarify the goal, surface the missing decisions, and give concise options before anything moves to ready.",
"scope": "resource",
"description": "%config.needsBotReviewCommentTemplate%"
},
"copilotCockpit.needsBotReviewPromptTemplate": {
"type": "string",
"default": "You are handling a Todo that just entered needs-bot-review.\n\n{{todo_context}}\n\n{{mcp_skill_guidance}}\n\nResearch only what is needed to clarify the user's goal and the safest path forward. If the user or request already includes a URL, inspect it with built-in tools first before using external research providers, especially Google grounded research, to minimize API calls. Use VS Code built-in web search for lightweight external search. Use no dedicated external research provider for deeper research only when the Todo actually needs outside evidence.\nDo not rewrite the Todo into a different request or pretend implementation is approved.\nReturn a longer clarification comment ready for direct Todo writeback. Use readable markdown because the Todo comment section now supports basic markdown such as #, ##, and ### headings, bullet and numbered lists, **bold**, *italic*, blockquotes, and inline `code`. Emojis are allowed when they improve scanning, but keep them sparse and purposeful.\nPrefer a clearly structured response over a one-line reply.\nGoal Clarification:\n- 1-2 bullets restating the likely user goal and current repo state without expanding scope\nQuestions:\n- 1-3 concise missing decisions or blockers the user should answer before implementation\nOptions:\n- 2 compact implementation options or paths when a real choice exists; if there is only one sensible path, say that directly\nRecommendation:\n- one compact recommended next step for the user, such as answer the questions or choose option 1 or 2 before moving this Todo to ready\nUse real line breaks. Do not emit JSON or escaped newline sequences such as \\n.\nWhen the review is complete, add that comment to this Todo using the cockpit MCP tools and set the flag to needs-user-review.",
"scope": "resource",
"description": "%config.needsBotReviewPromptTemplate%"
},
"copilotCockpit.needsBotReviewAgent": {
"type": "string",
"default": "agent",
"scope": "resource",
"description": "%config.needsBotReviewAgent%"
},
"copilotCockpit.needsBotReviewModel": {
"type": "string",
"default": "",
"scope": "resource",
"description": "%config.needsBotReviewModel%"
},
"copilotCockpit.needsBotReviewChatSession": {
"type": "string",
"default": "new",
"scope": "resource",
"enum": [
"new",
"continue"
],
"enumDescriptions": [
"%config.chatSession.new%",
"%config.chatSession.continue%"
],
"description": "%config.needsBotReviewChatSession%"
},
"copilotCockpit.readyPromptTemplate": {
"type": "string",
"default": "You are handling a Todo that is now ready for implementation.\n\n{{todo_context}}\n\n{{mcp_skill_guidance}}\n\nAnalyze this Todo using the Todo Cockpit skill and implement what the user decided in the last comment or the latest bot recommendation.\nIf there is no recent user comment, proceed with the bot's recommendation.\nAdd one compact Todo comment covering implementation changes, validation, and any remaining follow-up before or as you update the Todo to the correct workflow state.\nCheck the cockpit-todo-agent and cockpit-scheduler-router skills to determine the correct post-implementation state, and tell the user whether that guidance was found.\nIf the expected post-implementation state is not documented in the skills, add it there so the next editable default flag in settings has clear guidance.",
"scope": "resource",
"description": "%config.readyPromptTemplate%"
},
"copilotCockpit.defaultScope": {
"type": "string",
"default": "workspace",
"enum": [
"global",
"workspace"
],
"enumDescriptions": [
"%config.defaultScope.global%",
"%config.defaultScope.workspace%"
],
"description": "%config.defaultScope%"
},
"copilotCockpit.jitterSeconds": {
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 1800,
"description": "%config.jitterSeconds%"
},
"copilotCockpit.maxDailyExecutions": {
"type": "number",
"default": 24,
"minimum": 0,
"maximum": 100,
"description": "%config.maxDailyExecutions%"
},
"copilotCockpit.maxNewChatSessionsPerHour": {
"type": "number",
"default": 20,
"minimum": 0,
"maximum": 100,
"description": "%config.maxNewChatSessionsPerHour%"
},
"copilotCockpit.minimumIntervalWarning": {
"type": "boolean",
"default": true,
"description": "%config.minimumIntervalWarning%"
},
"copilotCockpit.globalPromptsPath": {
"type": "string",
"default": "",
"description": "%config.globalPromptsPath%"
},
"copilotCockpit.globalAgentsPath": {
"type": "string",
"default": "",
"description": "%config.globalAgentsPath%"
},
"copilotCockpit.storageMode": {
"type": "string",
"default": "sqlite",
"scope": "resource",
"enum": [
"json",
"sqlite"
],
"enumDescriptions": [
"%config.storageMode.json%",
"%config.storageMode.sqlite%"
],
"description": "%config.storageMode%"
},
"copilotCockpit.sqliteJsonMirror": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "%config.sqliteJsonMirror%"
},
"copilotCockpit.autoIgnorePrivateFiles": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "%config.autoIgnorePrivateFiles%"
},
"copilotCockpit.searchProvider": {
"type": "string",
"default": "built-in",
"scope": "resource",
"enum": [
"built-in",
"tavily"
],
"enumDescriptions": [
"%config.searchProvider.builtIn%",
"%config.searchProvider.tavily%"
],
"description": "%config.searchProvider%"
},
"copilotCockpit.researchProvider": {
"type": "string",
"default": "none",
"scope": "resource",
"enum": [
"none",
"perplexity",
"tavily",
"google-grounded"
],
"enumDescriptions": [
"%config.researchProvider.none%",
"%config.researchProvider.perplexity%",
"%config.researchProvider.tavily%",
"%config.researchProvider.googleGrounded%"
],
"description": "%config.researchProvider%"
},
"copilotCockpit.deterministicCockpitStateMode": {
"type": "string",
"default": "canonical-primary",
"scope": "resource",
"enum": [
"off",
"shadow",
"dual-write",
"canonical-primary"
],
"enumDescriptions": [
"%config.deterministicCockpitStateMode.off%",
"%config.deterministicCockpitStateMode.shadow%",
"%config.deterministicCockpitStateMode.dualWrite%",
"%config.deterministicCockpitStateMode.canonicalPrimary%"
],
"description": "%config.deterministicCockpitStateMode%"
},
"copilotCockpit.legacyFallbackOnError": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "%config.legacyFallbackOnError%"
},
"copilotCockpit.approvalMode": {
"type": "string",
"default": "default",
"scope": "application",
"enum": [
"default",
"auto-approve",
"autopilot",
"yolo"
],
"enumDescriptions": [
"%config.approvalMode.default%",
"%config.approvalMode.autoApprove%",
"%config.approvalMode.autopilot%",
"%config.approvalMode.yolo%"
],
"description": "%config.approvalMode%"
},
"copilotCockpit.reportIssue": {
"type": "null",
"markdownDescription": "%config.reportIssue%"
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "copilotCockpit",
"title": "%extension.title%",
"icon": "images/activity-todo-list.svg"
}
]
},
"views": {
"copilotCockpit": [
{
"id": "copilotCockpitTasks",
"name": "%view.tasks%",
"icon": "images/activity-todo-list.svg"
}
]
},
"menus": {
"editor/title": [
{
"command": "copilotCockpit.openCockpit",
"group": "navigation@9"
}
],
"view/title": [
{
"command": "copilotCockpit.createTaskGui",
"when": "view == copilotCockpitTasks",
"group": "navigation@1"
},
{
"command": "copilotCockpit.openSettings",
"when": "view == copilotCockpitTasks",
"group": "navigation@2"
},
{
"command": "copilotCockpit.showVersion",
"when": "view == copilotCockpitTasks",
"group": "navigation@3"
}
],
"view/item/context": [
{
"command": "copilotCockpit.disableTask",
"when": "view == copilotCockpitTasks && (viewItem == enabledTask || viewItem == enabledWorkspaceTask || viewItem == enabledOtherWorkspaceTask)",
"group": "inline@1"
},
{
"command": "copilotCockpit.enableTask",
"when": "view == copilotCockpitTasks && (viewItem == disabledTask || viewItem == disabledWorkspaceTask || viewItem == disabledOtherWorkspaceTask)",
"group": "inline@1"
},
{
"command": "copilotCockpit.runNow",
"when": "view == copilotCockpitTasks && viewItem =~ /Task$/",
"group": "inline@2"
},
{
"command": "copilotCockpit.copyPrompt",
"when": "view == copilotCockpitTasks && viewItem =~ /Task$/",
"group": "inline@3"
},
{
"command": "copilotCockpit.editTask",
"when": "view == copilotCockpitTasks && viewItem =~ /Task$/",
"group": "inline@4"
},
{
"command": "copilotCockpit.moveToCurrentWorkspace",
"when": "view == copilotCockpitTasks && (viewItem == enabledOtherWorkspaceTask || viewItem == disabledOtherWorkspaceTask)",
"group": "inline@4.5"
},
{
"command": "copilotCockpit.deleteTask",
"when": "view == copilotCockpitTasks && (viewItem == enabledTask || viewItem == disabledTask || viewItem == enabledWorkspaceTask || viewItem == disabledWorkspaceTask)",
"group": "inline@5"
},
{
"command": "copilotCockpit.runNow",
"when": "view == copilotCockpitTasks && viewItem =~ /Task$/",
"group": "1_actions@1"
},
{
"command": "copilotCockpit.toggleTask",
"when": "view == copilotCockpitTasks && viewItem =~ /Task$/",
"group": "1_actions@2"
},
{
"command": "copilotCockpit.editTask",
"when": "view == copilotCockpitTasks && viewItem =~ /Task$/",
"group": "2_edit@1"
},
{
"command": "copilotCockpit.duplicateTask",
"when": "view == copilotCockpitTasks && viewItem =~ /Task$/",
"group": "2_edit@2"
},
{
"command": "copilotCockpit.moveToCurrentWorkspace",
"when": "view == copilotCockpitTasks && (viewItem == enabledOtherWorkspaceTask || viewItem == disabledOtherWorkspaceTask)",
"group": "2_edit@3"
},
{
"command": "copilotCockpit.deleteTask",
"when": "view == copilotCockpitTasks && (viewItem == enabledTask || viewItem == disabledTask || viewItem == enabledWorkspaceTask || viewItem == disabledWorkspaceTask)",
"group": "3_delete@1"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run clean:out && npm run esbuild-base -- --minify && npm run esbuild-server -- --minify && npm run esbuild-webview -- --minify && npm run copy:sql-wasm && npm run prepare:bundled-agents",
"copy:sql-wasm": "node ./scripts/copy-sql-wasm.js",
"prepare:bundled-agents": "node ./scripts/prepare-bundled-agents.js",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild-server": "esbuild ./src/server.ts --bundle --outfile=out/server.js --external:vscode --platform=node --format=cjs",
"esbuild-webview": "esbuild ./media/cockpitWebview.entry.js --bundle --outfile=media/generated/cockpitWebview.js --format=iife --platform=browser",
"compile": "npm run esbuild-base -- --sourcemap && npm run esbuild-server -- --sourcemap && npm run esbuild-webview -- --sourcemap && npm run copy:sql-wasm",
"watch": "npm run esbuild-base -- --sourcemap --watch",
"watch:server": "npm run esbuild-server -- --sourcemap --watch",
"watch:webview": "npm run esbuild-webview -- --sourcemap --watch",
"package:vsix": "node ./scripts/package-vsix.js",
"install:vsix": "node ./scripts/install-vsix.js stable",
"install:vsix:insiders": "node ./scripts/install-vsix.js insiders",
"install:vsix:both": "node ./scripts/install-vsix.js both",
"clean:out": "node -e \"require('node:fs').rmSync('out', { recursive: true, force: true })\"",
"pretest": "npm run clean:out && npm run esbuild-webview && tsc -p ./ && npm run copy:sql-wasm",
"test": "node ./out/test/runTest.js",
"lint": "eslint src --ext ts",
"analyze:overlap": "node ./analysis_tools/analyze.js"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.27.1",
"cron-parser": "^4.9.0",
"sql.js": "^1.14.1",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.0",
"@types/node": "^20.0.0",
"@types/vscode": "^1.80.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vscode/test-electron": "^2.3.0",
"esbuild": "^0.27.2",
"eslint": "^8.0.0",
"glob": "^10.0.0",
"mocha": "^10.2.0",
"typescript": "^5.0.0"
},
"overrides": {
"flatted": ">=3.4.0",
"@typescript-eslint/typescript-estree": {
"minimatch": "9.0.7"
},
"@eslint/eslintrc": {
"minimatch": "3.1.4"
},
"@humanwhocodes/config-array": {
"minimatch": "3.1.4"
},
"eslint": {
"minimatch": "3.1.4"
},
"glob": {
"minimatch": "9.0.7"
},
"mocha": {
"minimatch": "5.1.8",
"serialize-javascript": "7.0.5"
}
}
}