-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
421 lines (421 loc) · 14.6 KB
/
package.json
File metadata and controls
421 lines (421 loc) · 14.6 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
{
"name": "copilot-cli-extension",
"displayName": "Copilot CLI Chat",
"description": "Interactive chat panel for GitHub Copilot CLI with session management and markdown rendering",
"version": "3.7.1",
"publisher": "darthmolen",
"author": {
"name": "darthmolen"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/darthmolen/vscode-extension-copilot-cli.git"
},
"bugs": {
"url": "https://github.com/darthmolen/vscode-extension-copilot-cli/issues"
},
"homepage": "https://github.com/darthmolen/vscode-extension-copilot-cli#readme",
"keywords": [
"copilot",
"ai",
"chat",
"cli",
"assistant",
"github",
"coding",
"agent"
],
"icon": "images/icon.png",
"engines": {
"vscode": "^1.108.1",
"node": ">=24.0.0"
},
"categories": [
"AI",
"Chat"
],
"activationEvents": [
"*"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "copilot-cli-sidebar",
"title": "Copilot CLI",
"icon": "images/sidebar-icon.svg"
}
]
},
"views": {
"copilot-cli-sidebar": [
{
"type": "webview",
"id": "copilot-cli.chatView",
"name": "Chat"
}
]
},
"commands": [
{
"command": "copilot-cli-extension.openChat",
"title": "Copilot CLI: Open Chat",
"icon": "$(comment-discussion)"
},
{
"command": "copilot-cli-extension.startChat",
"title": "Copilot CLI: Start Chat Session"
},
{
"command": "copilot-cli-extension.newSession",
"title": "Copilot CLI: New Session",
"icon": "$(add)"
},
{
"command": "copilot-cli-extension.stopChat",
"title": "Copilot CLI: Stop Chat Session"
},
{
"command": "copilot-cli-extension.compactSession",
"title": "Copilot CLI: Compact Session Context"
},
{
"command": "copilot-cli-extension.refreshPanel",
"title": "Copilot CLI: Refresh Chat Panel",
"icon": "$(refresh)"
},
{
"command": "copilot-cli-extension.openAnimationTestLight",
"title": "Copilot CLI: Animation Test (Light)"
},
{
"command": "copilot-cli-extension.openAnimationTestDark",
"title": "Copilot CLI: Animation Test (Dark)"
},
{
"command": "copilot-cli-extension.forkSession",
"title": "Copilot CLI: Fork Session"
}
],
"menus": {
"editor/title": [
{
"command": "copilot-cli-extension.openChat",
"group": "navigation",
"when": "editorFocus"
}
],
"commandPalette": [
{
"command": "copilot-cli-extension.openAnimationTestLight",
"when": "config.copilotCLI.devMode"
},
{
"command": "copilot-cli-extension.openAnimationTestDark",
"when": "config.copilotCLI.devMode"
}
],
"view/title": [
{
"command": "copilot-cli-extension.newSession",
"when": "view == copilot-cli.chatView",
"group": "navigation"
},
{
"command": "copilot-cli-extension.refreshPanel",
"when": "view == copilot-cli.chatView",
"group": "navigation"
}
]
},
"configuration": {
"title": "Copilot CLI",
"properties": {
"copilotCLI.devMode": {
"type": "boolean",
"default": false,
"description": "Enable developer mode (shows animation test commands and other dev tools)"
},
"copilotCLI.cliPath": {
"type": "string",
"default": "copilot",
"description": "Path to Copilot CLI executable"
},
"copilotCLI.yolo": {
"type": "boolean",
"default": true,
"description": "Enable YOLO mode (all permissions: --allow-all-tools --allow-all-paths --allow-all-urls). Recommended for development."
},
"copilotCLI.resumeLastSession": {
"type": "boolean",
"default": true,
"description": "Automatically resume the last session when opening the chat panel"
},
"copilotCLI.filterSessionsByFolder": {
"type": "boolean",
"default": true,
"description": "Filter sessions by workspace folder when resuming (only shows sessions created in the current folder)"
},
"copilotCLI.includeActiveFile": {
"type": "boolean",
"default": true,
"description": "Automatically include the currently active file and selection as context in messages"
},
"copilotCLI.resolveFileReferences": {
"type": "boolean",
"default": true,
"description": "Automatically resolve @file_name references to relative paths"
},
"copilotCLI.allowAllTools": {
"type": "boolean",
"default": false,
"description": "Allow all tools to run automatically without confirmation (overridden by yolo)"
},
"copilotCLI.allowAllPaths": {
"type": "boolean",
"default": false,
"description": "Disable file path verification and allow access to any path"
},
"copilotCLI.allowAllUrls": {
"type": "boolean",
"default": false,
"description": "Allow access to all URLs without confirmation"
},
"copilotCLI.allowTools": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Specific tools to allow (e.g., 'shell(git)', 'write', 'MyMCP(tool_name)')"
},
"copilotCLI.denyTools": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Specific tools to deny (takes precedence over allow)"
},
"copilotCLI.allowUrls": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Specific URLs or domains to allow"
},
"copilotCLI.denyUrls": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Specific URLs or domains to deny (takes precedence over allow)"
},
"copilotCLI.addDirs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional directories to add to the allowed list for file access"
},
"copilotCLI.agent": {
"type": "string",
"default": "",
"description": "Custom agent to use"
},
"copilotCLI.model": {
"type": "string",
"enum": [
"",
"claude-sonnet-4.6",
"claude-sonnet-4.5",
"claude-haiku-4.5",
"claude-opus-4.6",
"claude-opus-4.6-fast",
"claude-opus-4.5",
"claude-sonnet-4",
"gpt-5.2-codex",
"gpt-5.1-codex-max",
"gpt-5.1-codex",
"gpt-5.2",
"gpt-5.1",
"gpt-5",
"gpt-5.1-codex-mini",
"gpt-5-mini",
"gpt-4.1",
"gemini-3-pro-preview"
],
"default": "",
"description": "AI model to use (empty = default: claude-sonnet-4.6)"
},
"copilotCLI.planModel": {
"type": "string",
"enum": [
"",
"claude-sonnet-4.6",
"claude-sonnet-4.5",
"claude-haiku-4.5",
"claude-opus-4.6",
"claude-opus-4.6-fast",
"claude-opus-4.5",
"claude-sonnet-4",
"gpt-5.2-codex",
"gpt-5.1-codex-max",
"gpt-5.1-codex",
"gpt-5.2",
"gpt-5.1",
"gpt-5",
"gpt-5.1-codex-mini",
"gpt-5-mini",
"gpt-4.1",
"gemini-3-pro-preview"
],
"default": "",
"description": "AI model for planning mode (empty = use same as work mode)"
},
"copilotCLI.ghSsoEnterpriseSlug": {
"type": "string",
"default": "",
"markdownDescription": "GitHub Enterprise slug for **SSO-enabled organizations only** (e.g., `acme` for `https://github.com/enterprises/acme/sso`).\n\n**When to use**: Only if your enterprise has SSO enabled and requires the `/enterprises/{slug}/sso` path for authentication.\n\n**Leave empty if**:\n- Using github.com (public GitHub)\n- Using GitHub Enterprise Server (self-hosted)\n- Using GitHub Enterprise Cloud without SSO\n\n**How it works**: When authentication fails and this is set, the extension will auto-generate the SSO login command:\n```\ncopilot login --host https://github.com/enterprises/{slug}/sso\n```\n\nExample: Set to `acme` for the Acme Corp enterprise with SSO enabled.",
"pattern": "^[a-z0-9]([a-z0-9-]*[a-z0-9])?$",
"patternErrorMessage": "Slug must contain only lowercase letters, numbers, and hyphens (cannot start/end with hyphen)"
},
"copilotCLI.noAskUser": {
"type": "boolean",
"default": false,
"description": "Disable ask_user tool (agent works autonomously without asking questions)"
},
"copilotCLI.startNewSessionInPlanning": {
"type": "boolean",
"default": false,
"description": "Automatically enable plan mode when starting a new session. Has no effect on resumed sessions."
},
"copilotCLI.mcpServers": {
"type": "object",
"default": {},
"markdownDescription": "MCP (Model Context Protocol) server configurations. [Learn more about MCP servers](https://github.com/modelcontextprotocol/servers)\n\n**Note**: GitHub MCP Server is built-in and enabled by default.\n\nExample configuration:\n```json\n{\n \"filesystem\": {\n \"type\": \"local\",\n \"command\": \"npx\",\n \"args\": [\"-y\", \"@modelcontextprotocol/server-filesystem\", \"${workspaceFolder}\"],\n \"tools\": [\"*\"]\n }\n}\n```",
"additionalProperties": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"local",
"stdio",
"http",
"sse"
],
"default": "local",
"description": "Server type: local/stdio for subprocess, http/sse for remote"
},
"command": {
"type": "string",
"description": "Command to execute (for local servers)"
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"description": "Command arguments (for local servers)"
},
"url": {
"type": "string",
"description": "Server URL (for remote servers)"
},
"tools": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"*"
],
"description": "Tools to enable: ['*'] for all, or specific tool names"
},
"env": {
"type": "object",
"description": "Environment variables (for local servers)"
},
"cwd": {
"type": "string",
"description": "Working directory (for local servers)"
},
"enabled": {
"type": "boolean",
"default": true,
"description": "Whether this server is enabled"
}
}
}
},
"copilotCLI.showReasoning": {
"type": "boolean",
"default": false,
"description": "Automatically enable 'Show Reasoning' on startup to display the model's reasoning process"
},
"copilotCLI.streaming": {
"type": "boolean",
"default": true,
"description": "Enable streaming delta events for assistant responses and reasoning (disable to show responses only when complete)"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"build": "npm run compile",
"build:extension": "node esbuild.js",
"build:webview": "echo 'Webview build placeholder - will be used in Phase 1'",
"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": "npx mocha \"tests/unit/**/*.test.js\" \"tests/integration/**/*.test.js\" --recursive --timeout 10000",
"test:unit": "npx mocha \"tests/unit/**/*.test.js\" --recursive --timeout 10000",
"test:integration": "npx mocha \"tests/integration/**/*.test.js\" --recursive --timeout 10000",
"test:spike": "node tests/harness/sdk-spike.mjs",
"test:spike:streaming": "node tests/harness/sdk-spike.mjs run --analyze-streaming tests/prompts/sub-agent-streaming/",
"test:spike:interactive": "node tests/harness/sdk-spike.mjs interactive",
"test:e2e:plan-mode": "npm run compile && node tests/e2e/plan-mode/plan-mode-integration.test.js",
"test:e2e:session": "npm run compile && node tests/e2e/session/webview-lifecycle-integration.test.js",
"test:verify": "node tests/helpers/verify-setup.js"
},
"devDependencies": {
"@types/chai": "^5.2.3",
"@types/js-yaml": "^4.0.9",
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"@types/vscode": "^1.108.1",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"chai": "^6.2.2",
"esbuild": "^0.27.2",
"eslint": "^9.39.2",
"jsdom": "^28.0.0",
"mocha": "^11.7.5",
"npm-run-all": "^4.1.5",
"ts-node": "^10.9.2",
"typescript": "^5.9.3",
"typescript-eslint": "^8.52.0"
},
"dependencies": {
"@github/copilot-sdk": "^0.2.1",
"dompurify": "^3.3.1",
"js-yaml": "^4.1.0",
"marked": "^17.0.1",
"vscode-jsonrpc": "^8.2.1"
}
}