@vscode/chat-lib 0.0.4 → 0.0.5-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/src/_internal/extension/byok/node/openAIEndpoint.d.ts +9 -0
  2. package/dist/src/_internal/extension/byok/node/openAIEndpoint.d.ts.map +1 -1
  3. package/dist/src/_internal/extension/byok/node/openAIEndpoint.js +136 -1
  4. package/dist/src/_internal/extension/byok/node/openAIEndpoint.js.map +1 -1
  5. package/dist/src/_internal/extension/common/constants.d.ts +0 -1
  6. package/dist/src/_internal/extension/common/constants.d.ts.map +1 -1
  7. package/dist/src/_internal/extension/common/constants.js +0 -1
  8. package/dist/src/_internal/extension/common/constants.js.map +1 -1
  9. package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.d.ts +0 -4
  10. package/dist/src/_internal/extension/inlineEdits/node/nesConfigs.d.ts.map +1 -1
  11. package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.d.ts +4 -2
  12. package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.d.ts.map +1 -1
  13. package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js +15 -8
  14. package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js.map +1 -1
  15. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts +0 -1
  16. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts.map +1 -1
  17. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js +9 -60
  18. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js.map +1 -1
  19. package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.d.ts.map +1 -1
  20. package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.js +7 -3
  21. package/dist/src/_internal/extension/inlineEdits/node/nextEditProviderTelemetry.js.map +1 -1
  22. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts.map +1 -1
  23. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js +46 -5
  24. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js.map +1 -1
  25. package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts +25 -26
  26. package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts.map +1 -1
  27. package/dist/src/_internal/extension/xtab/common/promptCrafting.js +47 -37
  28. package/dist/src/_internal/extension/xtab/common/promptCrafting.js.map +1 -1
  29. package/dist/src/_internal/extension/xtab/common/xtabCurrentDocument.d.ts +16 -0
  30. package/dist/src/_internal/extension/xtab/common/xtabCurrentDocument.d.ts.map +1 -0
  31. package/dist/src/_internal/extension/xtab/common/xtabCurrentDocument.js +19 -0
  32. package/dist/src/_internal/extension/xtab/common/xtabCurrentDocument.js.map +1 -0
  33. package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts +22 -4
  34. package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts.map +1 -1
  35. package/dist/src/_internal/extension/xtab/node/xtabProvider.js +361 -111
  36. package/dist/src/_internal/extension/xtab/node/xtabProvider.js.map +1 -1
  37. package/dist/src/_internal/platform/authentication/common/copilotToken.d.ts +1 -0
  38. package/dist/src/_internal/platform/authentication/common/copilotToken.d.ts.map +1 -1
  39. package/dist/src/_internal/platform/authentication/common/copilotToken.js +3 -0
  40. package/dist/src/_internal/platform/authentication/common/copilotToken.js.map +1 -1
  41. package/dist/src/_internal/platform/authentication/node/copilotTokenManager.d.ts +13 -1
  42. package/dist/src/_internal/platform/authentication/node/copilotTokenManager.d.ts.map +1 -1
  43. package/dist/src/_internal/platform/authentication/node/copilotTokenManager.js +39 -9
  44. package/dist/src/_internal/platform/authentication/node/copilotTokenManager.js.map +1 -1
  45. package/dist/src/_internal/platform/chat/common/chatMLFetcher.d.ts +0 -1
  46. package/dist/src/_internal/platform/chat/common/chatMLFetcher.d.ts.map +1 -1
  47. package/dist/src/_internal/platform/chat/common/chatMLFetcher.js +1 -1
  48. package/dist/src/_internal/platform/chat/common/chatMLFetcher.js.map +1 -1
  49. package/dist/src/_internal/platform/chat/common/commonTypes.d.ts.map +1 -1
  50. package/dist/src/_internal/platform/chat/common/commonTypes.js +3 -1
  51. package/dist/src/_internal/platform/chat/common/commonTypes.js.map +1 -1
  52. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +19 -11
  53. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -1
  54. package/dist/src/_internal/platform/configuration/common/configurationService.js +21 -15
  55. package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -1
  56. package/dist/src/_internal/platform/configuration/common/validator.d.ts +6 -0
  57. package/dist/src/_internal/platform/configuration/common/validator.d.ts.map +1 -1
  58. package/dist/src/_internal/platform/configuration/common/validator.js +41 -4
  59. package/dist/src/_internal/platform/configuration/common/validator.js.map +1 -1
  60. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts.map +1 -1
  61. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js +10 -5
  62. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js.map +1 -1
  63. package/dist/src/_internal/platform/endpoint/common/endpointProvider.d.ts +2 -1
  64. package/dist/src/_internal/platform/endpoint/common/endpointProvider.d.ts.map +1 -1
  65. package/dist/src/_internal/platform/endpoint/common/endpointProvider.js.map +1 -1
  66. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.d.ts.map +1 -1
  67. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js +2 -1
  68. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js.map +1 -1
  69. package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts +6 -0
  70. package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts.map +1 -1
  71. package/dist/src/_internal/platform/endpoint/node/responsesApi.js +161 -3
  72. package/dist/src/_internal/platform/endpoint/node/responsesApi.js.map +1 -1
  73. package/dist/src/_internal/platform/env/common/envService.d.ts +2 -0
  74. package/dist/src/_internal/platform/env/common/envService.d.ts.map +1 -1
  75. package/dist/src/_internal/platform/env/common/envService.js.map +1 -1
  76. package/dist/src/_internal/platform/env/common/nullEnvService.d.ts +1 -0
  77. package/dist/src/_internal/platform/env/common/nullEnvService.d.ts.map +1 -1
  78. package/dist/src/_internal/platform/env/common/nullEnvService.js +3 -0
  79. package/dist/src/_internal/platform/env/common/nullEnvService.js.map +1 -1
  80. package/dist/src/_internal/platform/github/common/githubAPI.d.ts +67 -0
  81. package/dist/src/_internal/platform/github/common/githubAPI.d.ts.map +1 -1
  82. package/dist/src/_internal/platform/github/common/githubAPI.js +120 -3
  83. package/dist/src/_internal/platform/github/common/githubAPI.js.map +1 -1
  84. package/dist/src/_internal/platform/github/common/githubService.d.ts +171 -1
  85. package/dist/src/_internal/platform/github/common/githubService.d.ts.map +1 -1
  86. package/dist/src/_internal/platform/github/common/githubService.js +34 -1
  87. package/dist/src/_internal/platform/github/common/githubService.js.map +1 -1
  88. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts +11 -0
  89. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts.map +1 -1
  90. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js +8 -1
  91. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js.map +1 -1
  92. package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.js +2 -2
  93. package/dist/src/_internal/platform/inlineEdits/common/inlineEditLogContext.js.map +1 -1
  94. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts +12 -2
  95. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts.map +1 -1
  96. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js +13 -0
  97. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js.map +1 -1
  98. package/dist/src/_internal/platform/networking/common/fetch.d.ts +2 -1
  99. package/dist/src/_internal/platform/networking/common/fetch.d.ts.map +1 -1
  100. package/dist/src/_internal/platform/networking/common/fetch.js +1 -0
  101. package/dist/src/_internal/platform/networking/common/fetch.js.map +1 -1
  102. package/dist/src/_internal/platform/networking/common/fetcherService.d.ts +2 -0
  103. package/dist/src/_internal/platform/networking/common/fetcherService.d.ts.map +1 -1
  104. package/dist/src/_internal/platform/networking/common/fetcherService.js.map +1 -1
  105. package/dist/src/_internal/platform/networking/common/networking.d.ts +6 -2
  106. package/dist/src/_internal/platform/networking/common/networking.d.ts.map +1 -1
  107. package/dist/src/_internal/platform/networking/common/networking.js +4 -3
  108. package/dist/src/_internal/platform/networking/common/networking.js.map +1 -1
  109. package/dist/src/_internal/platform/networking/node/stream.d.ts.map +1 -1
  110. package/dist/src/_internal/platform/networking/node/stream.js +5 -3
  111. package/dist/src/_internal/platform/networking/node/stream.js.map +1 -1
  112. package/dist/src/_internal/platform/openai/node/fetch.d.ts +2 -1
  113. package/dist/src/_internal/platform/openai/node/fetch.d.ts.map +1 -1
  114. package/dist/src/_internal/platform/openai/node/fetch.js +20 -20
  115. package/dist/src/_internal/platform/openai/node/fetch.js.map +1 -1
  116. package/dist/src/_internal/util/common/cache.d.ts +1 -0
  117. package/dist/src/_internal/util/common/cache.d.ts.map +1 -1
  118. package/dist/src/_internal/util/common/cache.js +9 -0
  119. package/dist/src/_internal/util/common/cache.js.map +1 -1
  120. package/dist/src/package.json +225 -118
  121. package/package.json +3 -3
@@ -2,11 +2,11 @@
2
2
  "name": "copilot-chat",
3
3
  "displayName": "GitHub Copilot Chat",
4
4
  "description": "AI chat features powered by Copilot",
5
- "version": "0.32.0",
5
+ "version": "0.33.0",
6
6
  "build": "1",
7
7
  "internalAIKey": "1058ec22-3c95-4951-8443-f26c1f325911",
8
- "completionsCore": "3acd8894289d201737afff63c5183b567e6e2774",
9
- "completionsCoreVersion": "1.372.0",
8
+ "completionsCore": "b90dd24adc81d9d2d9b64817dd37638854201fc3",
9
+ "completionsCoreVersion": "1.378.1798",
10
10
  "internalLargeStorageAriaKey": "ec712b3202c5462fb6877acae7f1f9d7-c19ad55e-3e3c-4f99-984b-827f6d95bd9e-6917",
11
11
  "ariaKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
12
12
  "buildType": "dev",
@@ -24,7 +24,7 @@
24
24
  "icon": "assets/copilot.png",
25
25
  "pricing": "Trial",
26
26
  "engines": {
27
- "vscode": "^1.105.0-20250905",
27
+ "vscode": "^1.106.0",
28
28
  "npm": ">=9.0.0",
29
29
  "node": ">=22.14.0"
30
30
  },
@@ -117,7 +117,7 @@
117
117
  "authLearnMore",
118
118
  "testObserver",
119
119
  "aiTextSearchProvider@2",
120
- "chatParticipantPrivate@10",
120
+ "chatParticipantPrivate@11",
121
121
  "chatProvider@4",
122
122
  "contribDebugCreateConfiguration",
123
123
  "chatReferenceDiagnostic",
@@ -126,7 +126,6 @@
126
126
  "languageModelSystem",
127
127
  "languageModelCapabilities",
128
128
  "inlineCompletionsAdditions",
129
- "languageModelDataPart@3",
130
129
  "chatStatusItem",
131
130
  "taskProblemMatcherStatus",
132
131
  "contribLanguageModelToolSets",
@@ -166,12 +165,12 @@
166
165
  }
167
166
  },
168
167
  {
169
- "name": "execute_prompt",
170
- "toolReferenceName": "executePrompt",
171
- "displayName": "Execute Prompt",
172
- "when": "config.github.copilot.chat.executePrompt.enabled",
168
+ "name": "runSubagent",
169
+ "toolReferenceName": "runSubagent",
170
+ "displayName": "%copilot.tools.runSubagent.name%",
173
171
  "canBeReferencedInPrompt": true,
174
- "modelDescription": "Launch a new agent to handle complex, multi-step tasks autonomously. This tool is good at researching complex questions, searching for code, and executing multi-step tasks. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries, use this agent to perform the search for you.\n\n- When the agent is done, it will return a single message back to you. The result returned by the agent is not visible to the user. To show the user the result, you should send a text message back to the user with a concise summary of the result.\n - Each agent invocation is stateless. You will not be able to send additional messages to the agent, nor will the agent be able to communicate with you outside of its final report. Therefore, your prompt should contain a highly detailed task description for the agent to perform autonomously and you should specify exactly what information the agent should return back to you in its final and only message to you.\n - The agent's outputs should generally be trusted\n - Clearly tell the agent whether you expect it to write code or just to do research (search, file reads, web fetches, etc.), since it is not aware of the user's intent",
172
+ "userDescription": "%copilot.tools.runSubagent.description%",
173
+ "modelDescription": "Launch a new agent to handle complex, multi-step tasks autonomously. This tool is good at researching complex questions, searching for code, and executing multi-step tasks. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries, use this agent to perform the search for you.\n\n- Agents do not run async or in the background, you will wait for the agent's result.\n- When the agent is done, it will return a single message back to you. The result returned by the agent is not visible to the user. To show the user the result, you should send a text message back to the user with a concise summary of the result.\n - Each agent invocation is stateless. You will not be able to send additional messages to the agent, nor will the agent be able to communicate with you outside of its final report. Therefore, your prompt should contain a highly detailed task description for the agent to perform autonomously and you should specify exactly what information the agent should return back to you in its final and only message to you.\n - The agent's outputs should generally be trusted\n - Clearly tell the agent whether you expect it to write code or just to do research (search, file reads, web fetches, etc.), since it is not aware of the user's intent",
175
174
  "tags": [],
176
175
  "inputSchema": {
177
176
  "type": "object",
@@ -267,27 +266,6 @@
267
266
  "tags": [],
268
267
  "canBeReferencedInPrompt": true
269
268
  },
270
- {
271
- "displayName": "%copilot.tools.think.name%",
272
- "name": "copilot_think",
273
- "tags": [],
274
- "canBeReferencedInPrompt": true,
275
- "toolReferenceName": "think",
276
- "when": "config.github.copilot.chat.agent.thinkingTool",
277
- "modelDescription": "Use this tool to think deeply about the user's request and organize your thoughts. This tool helps improve response quality by allowing the model to consider the request carefully, brainstorm solutions, and plan complex tasks. It's particularly useful for:\n\n1. Exploring repository issues and brainstorming bug fixes\n2. Analyzing test results and planning fixes\n3. Planning complex refactoring approaches\n4. Designing new features and architecture\n5. Organizing debugging hypotheses\n\nThe tool logs your thought process for transparency but doesn't execute any code or make changes.",
278
- "inputSchema": {
279
- "type": "object",
280
- "properties": {
281
- "thoughts": {
282
- "type": "string",
283
- "description": "Your thoughts about the current task or problem. This should be a clear, structured explanation of your reasoning, analysis, or planning process."
284
- }
285
- },
286
- "required": [
287
- "thoughts"
288
- ]
289
- }
290
- },
291
269
  {
292
270
  "name": "copilot_findFiles",
293
271
  "toolReferenceName": "fileSearch",
@@ -436,7 +414,7 @@
436
414
  "type": "object",
437
415
  "properties": {
438
416
  "filePaths": {
439
- "description": "The absolute paths to the files to check for errors. Omit 'filePaths' when retrieving all errors.",
417
+ "description": "The absolute paths to the files or folders to check for errors. Omit 'filePaths' when retrieving all errors.",
440
418
  "type": "array",
441
419
  "items": {
442
420
  "type": "string"
@@ -1214,8 +1192,7 @@
1214
1192
  "isDefault": true,
1215
1193
  "when": "config.inlineChat.enableV2 || config.github.copilot.chat.advanced.inlineChat2",
1216
1194
  "locations": [
1217
- "editor",
1218
- "notebook"
1195
+ "editor"
1219
1196
  ],
1220
1197
  "commands": [
1221
1198
  {
@@ -1416,7 +1393,7 @@
1416
1393
  "locations": [
1417
1394
  "notebook"
1418
1395
  ],
1419
- "when": "!config.inlineChat.enableV2 && !config.github.copilot.chat.advanced.inlineChat2",
1396
+ "when": "!config.inlineChat.notebookAgent",
1420
1397
  "commands": [
1421
1398
  {
1422
1399
  "name": "fix",
@@ -1437,7 +1414,7 @@
1437
1414
  "locations": [
1438
1415
  "notebook"
1439
1416
  ],
1440
- "when": "config.inlineChat.enableV2",
1417
+ "when": "config.inlineChat.notebookAgent",
1441
1418
  "commands": [
1442
1419
  {
1443
1420
  "name": "fix",
@@ -1598,12 +1575,6 @@
1598
1575
  "name": "search",
1599
1576
  "description": "%copilot.vscode.search.description%",
1600
1577
  "sampleRequest": "%copilot.vscode.search.sampleRequest%"
1601
- },
1602
- {
1603
- "name": "startDebugging",
1604
- "description": "%copilot.vscode.startDebugging.description%",
1605
- "sampleRequest": "%copilot.vscode.startDebugging.sampleRequest%",
1606
- "when": "config.github.copilot.chat.startDebugging.enabled"
1607
1578
  }
1608
1579
  ]
1609
1580
  },
@@ -1779,6 +1750,30 @@
1779
1750
  "icon": "$(refresh)",
1780
1751
  "category": "Claude Code"
1781
1752
  },
1753
+ {
1754
+ "command": "github.copilot.cli.sessions.refresh",
1755
+ "title": "Refresh Copilot CLI Agent Sessions",
1756
+ "icon": "$(refresh)",
1757
+ "category": "Copilot CLI"
1758
+ },
1759
+ {
1760
+ "command": "github.copilot.cli.sessions.delete",
1761
+ "title": "Delete Copilot CLI Agent Session",
1762
+ "icon": "$(close)",
1763
+ "category": "Copilot CLI"
1764
+ },
1765
+ {
1766
+ "command": "github.copilot.cli.sessions.resumeInTerminal",
1767
+ "title": "Resume Agent Session in Terminal",
1768
+ "icon": "$(terminal)",
1769
+ "category": "Copilot CLI"
1770
+ },
1771
+ {
1772
+ "command": "github.copilot.cli.sessions.newTerminalSession",
1773
+ "title": "New Agent Session in Terminal",
1774
+ "icon": "$(terminal)",
1775
+ "category": "Copilot CLI"
1776
+ },
1782
1777
  {
1783
1778
  "command": "github.copilot.chat.replay",
1784
1779
  "title": "Start Chat Replay",
@@ -2002,7 +1997,7 @@
2002
1997
  "title": "%github.copilot.git.resolveMergeConflicts%",
2003
1998
  "icon": "$(chat-sparkle)",
2004
1999
  "enablement": "!github.copilot.interactiveSession.disabled",
2005
- "category": "GitHub Copilot"
2000
+ "category": "Chat"
2006
2001
  },
2007
2002
  {
2008
2003
  "command": "github.copilot.devcontainer.generateDevContainerConfig",
@@ -2023,7 +2018,7 @@
2023
2018
  {
2024
2019
  "command": "github.copilot.chat.attachFile",
2025
2020
  "title": "%github.copilot.chat.attachFile%",
2026
- "category": "GitHub Copilot"
2021
+ "category": "Chat"
2027
2022
  },
2028
2023
  {
2029
2024
  "command": "github.copilot.chat.attachSelection",
@@ -2045,7 +2040,7 @@
2045
2040
  "command": "github.copilot.debug.inlineEdit.reportNotebookNESIssue",
2046
2041
  "title": "%github.copilot.command.inlineEdit.reportNotebookNESIssue%",
2047
2042
  "enablement": "config.github.copilot.chat.advanced.notebook.alternativeNESFormat.enabled || github.copilot.chat.enableEnhancedNotebookNES",
2048
- "category": "GitHub Copilot Developer"
2043
+ "category": "Developer"
2049
2044
  },
2050
2045
  {
2051
2046
  "command": "github.copilot.debug.generateSTest",
@@ -2053,15 +2048,6 @@
2053
2048
  "enablement": "github.copilot.debugReportFeedback",
2054
2049
  "category": "Developer"
2055
2050
  },
2056
- {
2057
- "command": "github.copilot.debug.generateConfiguration",
2058
- "title": "%github.copilot.command.generateConfiguration%",
2059
- "category": "Chat",
2060
- "enablement": "config.github.copilot.chat.startDebugging.enabled",
2061
- "tags": [
2062
- "experimental"
2063
- ]
2064
- },
2065
2051
  {
2066
2052
  "command": "github.copilot.open.walkthrough",
2067
2053
  "title": "%github.copilot.command.openWalkthrough%",
@@ -2207,6 +2193,21 @@
2207
2193
  "command": "github.copilot.chat.manageBYOK",
2208
2194
  "title": "Manage Bring Your Own Key Vendor",
2209
2195
  "enablement": "false"
2196
+ },
2197
+ {
2198
+ "command": "github.copilot.chat.manageBYOKAPIKey",
2199
+ "title": "Manage Bring Your Own Key API Key",
2200
+ "enablement": "false"
2201
+ },
2202
+ {
2203
+ "command": "github.copilot.cloud.sessions.refresh",
2204
+ "title": "%github.copilot.command.refreshCopilotAgentSessions%",
2205
+ "icon": "$(refresh)"
2206
+ },
2207
+ {
2208
+ "command": "github.copilot.cloud.sessions.openInBrowser",
2209
+ "title": "%github.copilot.command.openCopilotAgentSessionsInBrowser%",
2210
+ "icon": "$(link-external)"
2210
2211
  }
2211
2212
  ],
2212
2213
  "configuration": [
@@ -2326,7 +2327,10 @@
2326
2327
  "github.copilot.chat.agent.autoFix": {
2327
2328
  "type": "boolean",
2328
2329
  "default": true,
2329
- "description": "%github.copilot.config.autoFix%"
2330
+ "description": "%github.copilot.config.autoFix%",
2331
+ "tags": [
2332
+ "onExp"
2333
+ ]
2330
2334
  },
2331
2335
  "github.copilot.chat.customInstructionsInSystemMessage": {
2332
2336
  "type": "boolean",
@@ -2341,17 +2345,8 @@
2341
2345
  }
2342
2346
  },
2343
2347
  {
2344
- "title": "Preview",
2345
2348
  "id": "preview",
2346
2349
  "properties": {
2347
- "github.copilot.chat.startDebugging.enabled": {
2348
- "type": "boolean",
2349
- "default": true,
2350
- "markdownDescription": "%github.copilot.config.startDebugging.enabled%",
2351
- "tags": [
2352
- "preview"
2353
- ]
2354
- },
2355
2350
  "github.copilot.chat.reviewAgent.enabled": {
2356
2351
  "type": "boolean",
2357
2352
  "default": true,
@@ -2466,17 +2461,8 @@
2466
2461
  }
2467
2462
  },
2468
2463
  {
2469
- "title": "Experimental",
2470
2464
  "id": "experimental",
2471
2465
  "properties": {
2472
- "github.copilot.chat.agent.thinkingTool": {
2473
- "type": "boolean",
2474
- "default": false,
2475
- "tags": [
2476
- "experimental"
2477
- ],
2478
- "markdownDescription": "%github.copilot.config.agent.thinkingTool%"
2479
- },
2480
2466
  "github.copilot.chat.imageUpload.enabled": {
2481
2467
  "type": "boolean",
2482
2468
  "default": true,
@@ -2955,6 +2941,13 @@
2955
2941
  "type": "boolean",
2956
2942
  "default": false,
2957
2943
  "description": "Whether the model supports thinking capabilities"
2944
+ },
2945
+ "requestHeaders": {
2946
+ "type": "object",
2947
+ "description": "Additional HTTP headers to include with requests to this model. These reserved headers are not allowed and ignored if present: forbidden request headers (https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_request_header), forwarding headers ('forwarded', 'x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto'), and others ('api-key', 'authorization', 'content-type', 'openai-intent', 'x-github-api-version', 'x-initiator', 'x-interaction-id', 'x-interaction-type', 'x-onbehalf-extension-id', 'x-request-id', 'x-vscode-user-agent-library-version'). Pattern-based forbidden headers ('proxy-*', 'sec-*', 'x-http-method*' with forbidden methods) are also blocked.",
2948
+ "additionalProperties": {
2949
+ "type": "string"
2950
+ }
2958
2951
  }
2959
2952
  },
2960
2953
  "required": [
@@ -3024,6 +3017,13 @@
3024
3017
  "type": "boolean",
3025
3018
  "default": false,
3026
3019
  "description": "Whether the model supports thinking capabilities"
3020
+ },
3021
+ "requestHeaders": {
3022
+ "type": "object",
3023
+ "description": "Additional HTTP headers to include with requests to this model. These reserved headers are not allowed and ignored if present: forbidden request headers (https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_request_header), forwarding headers ('forwarded', 'x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto'), and others ('api-key', 'authorization', 'content-type', 'openai-intent', 'x-github-api-version', 'x-initiator', 'x-interaction-id', 'x-interaction-type', 'x-onbehalf-extension-id', 'x-request-id', 'x-vscode-user-agent-library-version'). Pattern-based forbidden headers ('proxy-*', 'sec-*', 'x-http-method*' with forbidden methods) are also blocked.",
3024
+ "additionalProperties": {
3025
+ "type": "string"
3026
+ }
3027
3027
  }
3028
3028
  },
3029
3029
  "required": [
@@ -3055,30 +3055,25 @@
3055
3055
  ],
3056
3056
  "description": "%github.copilot.config.gpt5AlternatePrompt%"
3057
3057
  },
3058
- "github.copilot.chat.gpt5CodexAlternatePrompt": {
3058
+ "github.copilot.chat.grokCodeAlternatePrompt": {
3059
3059
  "type": "string",
3060
- "default": "codex",
3060
+ "default": "default",
3061
3061
  "tags": [
3062
- "experimental",
3063
- "onExp"
3064
- ],
3065
- "enum": [
3066
- "default",
3067
- "codex"
3062
+ "experimental"
3068
3063
  ],
3069
- "description": "%github.copilot.config.gpt5CodexAlternatePrompt%"
3064
+ "description": "%github.copilot.config.grokCodeAlternatePrompt%"
3070
3065
  },
3071
- "github.copilot.chat.grokCodeAlternatePrompt": {
3066
+ "github.copilot.chat.claudeSonnet45AlternatePrompt": {
3072
3067
  "type": "string",
3073
3068
  "default": "default",
3074
3069
  "tags": [
3075
3070
  "experimental"
3076
3071
  ],
3077
- "description": "%github.copilot.config.grokCodeAlternatePrompt%"
3072
+ "description": "%github.copilot.config.claudeSonnet45AlternatePrompt%"
3078
3073
  },
3079
3074
  "github.copilot.chat.useResponsesApi": {
3080
3075
  "type": "boolean",
3081
- "default": false,
3076
+ "default": true,
3082
3077
  "markdownDescription": "%github.copilot.config.useResponsesApi%",
3083
3078
  "tags": [
3084
3079
  "experimental",
@@ -3113,12 +3108,34 @@
3113
3108
  "detailed"
3114
3109
  ]
3115
3110
  },
3116
- "github.copilot.chat.executePrompt.enabled": {
3117
- "type": "boolean",
3118
- "default": false,
3119
- "markdownDescription": "%github.copilot.config.executePrompt.enabled%",
3111
+ "github.copilot.chat.completionsFetcher": {
3112
+ "type": [
3113
+ "string",
3114
+ "null"
3115
+ ],
3116
+ "markdownDescription": "%github.copilot.config.completionsFetcher%",
3120
3117
  "tags": [
3121
- "experimental"
3118
+ "experimental",
3119
+ "onExp"
3120
+ ],
3121
+ "enum": [
3122
+ "electron-fetch",
3123
+ "node-fetch"
3124
+ ]
3125
+ },
3126
+ "github.copilot.chat.nesFetcher": {
3127
+ "type": [
3128
+ "string",
3129
+ "null"
3130
+ ],
3131
+ "markdownDescription": "%github.copilot.config.nesFetcher%",
3132
+ "tags": [
3133
+ "experimental",
3134
+ "onExp"
3135
+ ],
3136
+ "enum": [
3137
+ "electron-fetch",
3138
+ "node-fetch"
3122
3139
  ]
3123
3140
  }
3124
3141
  }
@@ -3393,6 +3410,30 @@
3393
3410
  {
3394
3411
  "command": "github.copilot.debug.showOutputChannel",
3395
3412
  "when": "false"
3413
+ },
3414
+ {
3415
+ "command": "github.copilot.cli.sessions.delete",
3416
+ "when": "false"
3417
+ },
3418
+ {
3419
+ "command": "github.copilot.cli.sessions.refresh",
3420
+ "when": "false"
3421
+ },
3422
+ {
3423
+ "command": "github.copilot.cli.sessions.resumeInTerminal",
3424
+ "when": "false"
3425
+ },
3426
+ {
3427
+ "command": "github.copilot.cli.sessions.newTerminalSession",
3428
+ "when": "false"
3429
+ },
3430
+ {
3431
+ "command": "github.copilot.cloud.sessions.refresh",
3432
+ "when": "false"
3433
+ },
3434
+ {
3435
+ "command": "github.copilot.cloud.sessions.openInBrowser",
3436
+ "when": "false"
3396
3437
  }
3397
3438
  ],
3398
3439
  "view/title": [
@@ -3401,6 +3442,11 @@
3401
3442
  "when": "view == workbench.view.chat.sessions.claude-code",
3402
3443
  "group": "navigation@1"
3403
3444
  },
3445
+ {
3446
+ "command": "github.copilot.cli.sessions.refresh",
3447
+ "when": "view == workbench.view.chat.sessions.copilotcli",
3448
+ "group": "navigation@1"
3449
+ },
3404
3450
  {
3405
3451
  "submenu": "github.copilot.chat.debug.filter",
3406
3452
  "when": "view == copilot-chat",
@@ -3420,6 +3466,11 @@
3420
3466
  "command": "github.copilot.debug.showChatLogView",
3421
3467
  "when": "view == workbench.panel.chat.view.copilot",
3422
3468
  "group": "3_show"
3469
+ },
3470
+ {
3471
+ "command": "github.copilot.cloud.sessions.refresh",
3472
+ "when": "view == workbench.view.chat.sessions.copilot-cloud-agent",
3473
+ "group": "navigation@1"
3423
3474
  }
3424
3475
  ],
3425
3476
  "view/item/context": [
@@ -3624,13 +3675,6 @@
3624
3675
  "group": "inline@1"
3625
3676
  }
3626
3677
  ],
3627
- "debug/createConfiguration": [
3628
- {
3629
- "command": "github.copilot.debug.generateConfiguration",
3630
- "group": "z_commands",
3631
- "when": "config.github.copilot.chat.startDebugging.enabled"
3632
- }
3633
- ],
3634
3678
  "issue/reporter": [
3635
3679
  {
3636
3680
  "command": "github.copilot.report"
@@ -3686,6 +3730,33 @@
3686
3730
  "group": "z_chat@1",
3687
3731
  "when": "config.git.enabled && !git.missing && !isInDiffEditor && !isMergeEditor && resource in git.mergeChanges && git.activeResourceHasMergeConflicts"
3688
3732
  }
3733
+ ],
3734
+ "chat/chatSessions": [
3735
+ {
3736
+ "command": "github.copilot.cli.sessions.resumeInTerminal",
3737
+ "when": "chatSessionType == copilotcli",
3738
+ "group": "inline@1"
3739
+ },
3740
+ {
3741
+ "command": "github.copilot.cli.sessions.delete",
3742
+ "when": "chatSessionType == copilotcli",
3743
+ "group": "inline@2"
3744
+ },
3745
+ {
3746
+ "command": "github.copilot.cli.sessions.newTerminalSession",
3747
+ "when": "view == workbench.view.chat.sessions.copilotcli",
3748
+ "group": "submenu"
3749
+ },
3750
+ {
3751
+ "command": "github.copilot.cli.sessions.refresh",
3752
+ "when": "view == workbench.view.chat.sessions.copilotcli",
3753
+ "group": "navigation@1"
3754
+ },
3755
+ {
3756
+ "command": "github.copilot.cloud.sessions.openInBrowser",
3757
+ "when": "chatSessionType == copilot-cloud-agent",
3758
+ "group": "context"
3759
+ }
3689
3760
  ]
3690
3761
  },
3691
3762
  "icons": {
@@ -3802,7 +3873,7 @@
3802
3873
  "copilot-chat": [
3803
3874
  {
3804
3875
  "id": "copilot-chat",
3805
- "name": "Copilot Chat Debug",
3876
+ "name": "Chat Debug",
3806
3877
  "icon": "assets/debug-icon.svg",
3807
3878
  "when": "github.copilot.chat.showLogView"
3808
3879
  }
@@ -3820,7 +3891,7 @@
3820
3891
  "activitybar": [
3821
3892
  {
3822
3893
  "id": "copilot-chat",
3823
- "title": "Copilot Chat Debug",
3894
+ "title": "Chat Debug",
3824
3895
  "icon": "assets/debug-icon.svg"
3825
3896
  },
3826
3897
  {
@@ -4019,12 +4090,15 @@
4019
4090
  {
4020
4091
  "type": "claude-code",
4021
4092
  "name": "claude",
4022
- "displayName": "Claude Code",
4023
- "description": "The Claude Code agent",
4093
+ "displayName": "Claude Code CLI Agent",
4094
+ "icon": "$(sparkle)",
4095
+ "welcomeTitle": "Claude Code Agent",
4096
+ "welcomeMessage": "Run local background tasks",
4097
+ "inputPlaceholder": "Describe your task, type `#` for adding context",
4098
+ "description": "The Claude Code Agent works on your local machine",
4024
4099
  "when": "config.github.copilot.chat.advanced.claudeCode.enabled",
4025
4100
  "capabilities": {
4026
- "supportsFileAttachments": true,
4027
- "supportsToolAttachments": false
4101
+ "supportsFileAttachments": true
4028
4102
  },
4029
4103
  "commands": [
4030
4104
  {
@@ -4048,6 +4122,35 @@
4048
4122
  "description": "Complete a security review of the pending changes on the current branch"
4049
4123
  }
4050
4124
  ]
4125
+ },
4126
+ {
4127
+ "type": "copilotcli",
4128
+ "name": "GitHub Copilot CLI Agent",
4129
+ "displayName": "GitHub Copilot CLI Agent",
4130
+ "icon": "$(copilot)",
4131
+ "welcomeTitle": "GitHub Copilot CLI Agent",
4132
+ "welcomeMessage": "Run local background tasks",
4133
+ "inputPlaceholder": "Describe your task, type `#` for adding context",
4134
+ "description": "The Copilot CLI Agent works on your local machine",
4135
+ "when": "config.github.copilot.chat.advanced.copilotCLI.enabled",
4136
+ "capabilities": {
4137
+ "supportsFileAttachments": true,
4138
+ "supportsProblemAttachments": true
4139
+ }
4140
+ },
4141
+ {
4142
+ "type": "copilot-cloud-agent",
4143
+ "name": "GitHub Copilot Cloud Agent",
4144
+ "displayName": "GitHub Copilot Cloud Agent",
4145
+ "icon": "$(cloud)",
4146
+ "welcomeTitle": "GitHub Copilot Cloud Agent",
4147
+ "welcomeMessage": "Delegate tasks to the cloud",
4148
+ "inputPlaceholder": "Describe your task, type `#` for adding context",
4149
+ "description": "Delegate tasks to the GitHub Copilot Cloud Agent. The agent works asynchronously in the cloud to implement changes, iterates via chat, and can create or update pull requests as needed.",
4150
+ "when": "config.github.copilot.chat.advanced.copilotCodingAgent.enabled",
4151
+ "capabilities": {
4152
+ "supportsFileAttachments": true
4153
+ }
4051
4154
  }
4052
4155
  ],
4053
4156
  "debuggers": [
@@ -4075,16 +4178,14 @@
4075
4178
  "program"
4076
4179
  ]
4077
4180
  }
4078
- },
4079
- "initialConfigurations": [
4080
- {
4081
- "type": "vscode-chat-replay",
4082
- "request": "launch",
4083
- "name": "Debug Chat Replay",
4084
- "program": "${file}",
4085
- "stopOnEntry": true
4086
- }
4087
- ]
4181
+ }
4182
+ }
4183
+ ],
4184
+ "chatAgents": [
4185
+ {
4186
+ "name": "Plan",
4187
+ "path": "./assets/agents/Plan.vscode-agent.md",
4188
+ "description": "Researches a task to create multi-step plans"
4088
4189
  }
4089
4190
  ]
4090
4191
  },
@@ -4130,12 +4231,13 @@
4130
4231
  "setup:dotnet": "run-script-os",
4131
4232
  "setup:dotnet:darwin:linux": "curl -O https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.sh && chmod u+x dotnet-install.sh && ./dotnet-install.sh --channel 10.0 && rm dotnet-install.sh",
4132
4233
  "setup:dotnet:win32": "powershell.exe -NoProfile -ExecutionPolicy Bypass -Command \"Invoke-WebRequest -Uri https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.ps1 -OutFile dotnet-install.ps1; ./dotnet-install.ps1 -channel 10.0; Remove-Item dotnet-install.ps1\"",
4234
+ "analyze-edits": "tsx script/analyzeEdits.ts",
4133
4235
  "extract-chat-lib": "tsx script/build/extractChatLib.ts",
4134
4236
  "create_venv": "tsx script/setup/createVenv.mts",
4135
4237
  "package": "vsce package",
4136
4238
  "web": "vscode-test-web --headless --extensionDevelopmentPath=. .",
4137
4239
  "test:prompt": "mocha \"src/extension/completions-core/prompt/**/test/**/*.test.{ts,tsx}\"",
4138
- "test:lib": "mocha \"src/extension/completions-core/lib/src/**/*.test.{ts,tsx}\""
4240
+ "test:completions-core": "tsx src/extension/completions-core/extension/test/runTest.ts"
4139
4241
  },
4140
4242
  "devDependencies": {
4141
4243
  "@azure/identity": "4.9.1",
@@ -4165,6 +4267,7 @@
4165
4267
  "@types/tar": "^6.1.13",
4166
4268
  "@types/vinyl": "^2.0.12",
4167
4269
  "@types/vscode": "^1.102.0",
4270
+ "@types/yargs": "^17.0.24",
4168
4271
  "@typescript-eslint/eslint-plugin": "^8.35.0",
4169
4272
  "@typescript-eslint/parser": "^8.32.0",
4170
4273
  "@typescript-eslint/typescript-estree": "^8.26.1",
@@ -4214,6 +4317,7 @@
4214
4317
  "react-dom": "17.0.2",
4215
4318
  "rimraf": "^6.0.1",
4216
4319
  "run-script-os": "^1.1.6",
4320
+ "shiki": "~1.15.0",
4217
4321
  "sinon": "^21.0.0",
4218
4322
  "source-map-support": "^0.5.21",
4219
4323
  "tar": "^7.4.3",
@@ -4228,14 +4332,17 @@
4228
4332
  "vscode-languageserver-protocol": "^3.17.5",
4229
4333
  "vscode-languageserver-textdocument": "^1.0.12",
4230
4334
  "vscode-languageserver-types": "^3.17.5",
4231
- "yaml": "^2.8.0"
4335
+ "yaml": "^2.8.0",
4336
+ "yargs": "^17.7.2"
4232
4337
  },
4233
4338
  "dependencies": {
4234
4339
  "@anthropic-ai/claude-code": "^1.0.120",
4235
4340
  "@anthropic-ai/sdk": "^0.63.0",
4341
+ "@github/copilot": "^0.0.343",
4342
+ "@google/genai": "^1.22.0",
4236
4343
  "@humanwhocodes/gitignore-to-minimatch": "1.0.2",
4237
4344
  "@microsoft/tiktokenizer": "^1.0.10",
4238
- "@vscode/copilot-api": "^0.1.10",
4345
+ "@vscode/copilot-api": "^0.1.12",
4239
4346
  "@vscode/extension-telemetry": "^1.0.0",
4240
4347
  "@vscode/l10n": "^0.0.18",
4241
4348
  "@vscode/prompt-tsx": "^0.4.0-alpha.5",
@@ -4259,4 +4366,4 @@
4259
4366
  "string_decoder": "npm:string_decoder@1.2.0",
4260
4367
  "node-gyp": "npm:node-gyp@10.3.1"
4261
4368
  }
4262
- }
4369
+ }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@vscode/chat-lib",
3
- "version": "0.0.4",
3
+ "version": "0.0.5-0",
4
4
  "description": "Chat and inline editing SDK extracted from VS Code Copilot Chat",
5
5
  "main": "dist/src/main.js",
6
6
  "types": "dist/src/main.d.ts",
7
7
  "author": "Microsoft Corporation",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "https://github.com/microsoft/vscode-remote-containers.git"
10
+ "url": "https://github.com/microsoft/vscode-copilot-chat.git"
11
11
  },
12
12
  "license": "SEE LICENSE IN LICENSE.txt",
13
13
  "engines": {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@microsoft/tiktokenizer": "^1.0.10",
18
- "@vscode/copilot-api": "^0.1.10",
18
+ "@vscode/copilot-api": "^0.1.12",
19
19
  "@vscode/l10n": "^0.0.18",
20
20
  "@vscode/prompt-tsx": "^0.4.0-alpha.5",
21
21
  "jsonc-parser": "^3.3.1",