@vscode/chat-lib 0.2.1-25 → 0.2.1-27

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 (59) hide show
  1. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/streamedCompletionSplitter.js +3 -1
  2. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/ghostText/streamedCompletionSplitter.js.map +1 -1
  3. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/stream.js +1 -1
  4. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/stream.js.map +1 -1
  5. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts.map +1 -1
  6. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js +2 -0
  7. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js.map +1 -1
  8. package/dist/src/_internal/extension/xtab/common/lintErrors.d.ts +2 -0
  9. package/dist/src/_internal/extension/xtab/common/lintErrors.d.ts.map +1 -1
  10. package/dist/src/_internal/extension/xtab/common/lintErrors.js +31 -7
  11. package/dist/src/_internal/extension/xtab/common/lintErrors.js.map +1 -1
  12. package/dist/src/_internal/platform/chat/common/chatMLFetcher.js +1 -1
  13. package/dist/src/_internal/platform/chat/common/chatMLFetcher.js.map +1 -1
  14. package/dist/src/_internal/platform/chat/common/commonTypes.d.ts +5 -1
  15. package/dist/src/_internal/platform/chat/common/commonTypes.d.ts.map +1 -1
  16. package/dist/src/_internal/platform/chat/common/commonTypes.js +4 -0
  17. package/dist/src/_internal/platform/chat/common/commonTypes.js.map +1 -1
  18. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +1 -1
  19. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -1
  20. package/dist/src/_internal/platform/configuration/common/configurationService.js +5 -5
  21. package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -1
  22. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts.map +1 -1
  23. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js +4 -8
  24. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js.map +1 -1
  25. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js +1 -1
  26. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js.map +1 -1
  27. package/dist/src/_internal/platform/endpoint/node/messagesApi.d.ts +4 -2
  28. package/dist/src/_internal/platform/endpoint/node/messagesApi.d.ts.map +1 -1
  29. package/dist/src/_internal/platform/endpoint/node/messagesApi.js +31 -6
  30. package/dist/src/_internal/platform/endpoint/node/messagesApi.js.map +1 -1
  31. package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts +2 -0
  32. package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts.map +1 -1
  33. package/dist/src/_internal/platform/endpoint/node/responsesApi.js +20 -1
  34. package/dist/src/_internal/platform/endpoint/node/responsesApi.js.map +1 -1
  35. package/dist/src/_internal/platform/github/common/githubService.d.ts +30 -0
  36. package/dist/src/_internal/platform/github/common/githubService.d.ts.map +1 -1
  37. package/dist/src/_internal/platform/github/common/githubService.js +60 -0
  38. package/dist/src/_internal/platform/github/common/githubService.js.map +1 -1
  39. package/dist/src/_internal/platform/networking/common/anthropic.js +2 -2
  40. package/dist/src/_internal/platform/networking/common/anthropic.js.map +1 -1
  41. package/dist/src/_internal/platform/networking/common/fetch.d.ts +7 -0
  42. package/dist/src/_internal/platform/networking/common/fetch.d.ts.map +1 -1
  43. package/dist/src/_internal/platform/networking/common/fetch.js.map +1 -1
  44. package/dist/src/_internal/platform/networking/node/stream.d.ts.map +1 -1
  45. package/dist/src/_internal/platform/networking/node/stream.js +36 -8
  46. package/dist/src/_internal/platform/networking/node/stream.js.map +1 -1
  47. package/dist/src/_internal/util/common/test/shims/chatTypes.d.ts +0 -7
  48. package/dist/src/_internal/util/common/test/shims/chatTypes.d.ts.map +1 -1
  49. package/dist/src/_internal/util/common/test/shims/chatTypes.js +2 -11
  50. package/dist/src/_internal/util/common/test/shims/chatTypes.js.map +1 -1
  51. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts.map +1 -1
  52. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js +0 -1
  53. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js.map +1 -1
  54. package/dist/src/_internal/vscodeTypes.d.ts +0 -1
  55. package/dist/src/_internal/vscodeTypes.d.ts.map +1 -1
  56. package/dist/src/_internal/vscodeTypes.js +2 -3
  57. package/dist/src/_internal/vscodeTypes.js.map +1 -1
  58. package/dist/src/package.json +55 -17
  59. package/package.json +2 -2
@@ -23,7 +23,7 @@
23
23
  "icon": "assets/copilot.png",
24
24
  "pricing": "Trial",
25
25
  "engines": {
26
- "vscode": "^1.109.0",
26
+ "vscode": "^1.109.0-20260115",
27
27
  "npm": ">=9.0.0",
28
28
  "node": ">=22.14.0"
29
29
  },
@@ -164,6 +164,40 @@
164
164
  ]
165
165
  }
166
166
  },
167
+ {
168
+ "name": "search_subagent",
169
+ "toolReferenceName": "searchSubagent",
170
+ "displayName": "%copilot.tools.searchSubagent.name%",
171
+ "icon": "$(search)",
172
+ "canBeReferencedInPrompt": true,
173
+ "userDescription": "%copilot.tools.searchSubagent.description%",
174
+ "modelDescription": "Launch an iterative search-focused subagent that orchestrates semantic_search, grep_search, file_search and read_file tool calls to explore and gather relevant workspace code for a natural language query.\n CALL THIS FOR ANY TASK THAT REQUIRES CODEBASE EXPLORATION!\n\nRemember:\n1. Perform tool calls in parallel whenever possible\n2. Avoid redundant calls -- don't repeat identical searches.\n3. Stop once you have high-confidence, non-duplicative snippets covering the query scope.\n\nReturns: A list of relevant files/snippet locations in the workspace.\n\nInput fields:\n- query: Natural language description of what to search for.\n- description: Short user-visible invocation message. \n- details: 2-3 sentences detailing the objective of the search agent.",
175
+ "tags": [
176
+ "vscode_codesearch"
177
+ ],
178
+ "inputSchema": {
179
+ "type": "object",
180
+ "properties": {
181
+ "query": {
182
+ "type": "string",
183
+ "description": "Natural language description of what to search for."
184
+ },
185
+ "description": {
186
+ "type": "string",
187
+ "description": "A short (3-5 word) description of the task."
188
+ },
189
+ "details": {
190
+ "type": "string",
191
+ "description": "A more detailed description of the objective for the search subagent. This helps the sub-agent remain on task and understand its purpose."
192
+ }
193
+ },
194
+ "required": [
195
+ "query",
196
+ "description",
197
+ "details"
198
+ ]
199
+ }
200
+ },
167
201
  {
168
202
  "name": "copilot_searchWorkspaceSymbols",
169
203
  "toolReferenceName": "symbols",
@@ -1234,7 +1268,8 @@
1234
1268
  "listDirectory",
1235
1269
  "searchResults",
1236
1270
  "textSearch",
1237
- "usages"
1271
+ "usages",
1272
+ "searchSubagent"
1238
1273
  ]
1239
1274
  },
1240
1275
  {
@@ -3268,7 +3303,7 @@
3268
3303
  },
3269
3304
  "github.copilot.chat.anthropic.contextEditing.enabled": {
3270
3305
  "type": "boolean",
3271
- "default": false,
3306
+ "default": true,
3272
3307
  "markdownDescription": "%github.copilot.config.anthropic.contextEditing.enabled%",
3273
3308
  "tags": [
3274
3309
  "experimental",
@@ -3915,20 +3950,21 @@
3915
3950
  },
3916
3951
  "github.copilot.chat.cli.autoCommit.enabled": {
3917
3952
  "type": "boolean",
3918
- "default": false,
3953
+ "default": true,
3919
3954
  "markdownDescription": "%github.copilot.config.cli.autoCommit.enabled%",
3920
3955
  "tags": [
3921
3956
  "advanced",
3922
3957
  "experimental"
3923
3958
  ]
3924
3959
  },
3925
- "github.copilot.chat.CCAPartnerAgents.enabled": {
3960
+ "github.copilot.chat.searchSubagent.enabled": {
3926
3961
  "type": "boolean",
3927
3962
  "default": false,
3928
- "markdownDescription": "Enable partner agents for Copilot Coding Agent (CCA) sessions. Reload VS Code to apply.",
3963
+ "markdownDescription": "%github.copilot.config.searchSubagent.enabled%",
3929
3964
  "tags": [
3930
3965
  "advanced",
3931
- "experimental"
3966
+ "experimental",
3967
+ "onExp"
3932
3968
  ]
3933
3969
  }
3934
3970
  }
@@ -4924,13 +4960,13 @@
4924
4960
  {
4925
4961
  "type": "claude-code",
4926
4962
  "name": "claude",
4927
- "displayName": "Claude Code CLI Agent",
4963
+ "displayName": "Claude Agent",
4928
4964
  "icon": "$(sparkle)",
4929
- "welcomeTitle": "Claude Code Agent",
4930
- "welcomeMessage": "Run local background tasks",
4931
- "inputPlaceholder": "Run local tasks with Claude Code, type `#` for adding context",
4965
+ "welcomeTitle": "Claude Agent",
4966
+ "welcomeMessage": "Powered by the same agent as Claude Code",
4967
+ "inputPlaceholder": "Run local tasks with Claude, type `#` for adding context",
4932
4968
  "order": 3,
4933
- "description": "The Claude Code Agent works on your local machine",
4969
+ "description": "The Claude Agent works on your local machine",
4934
4970
  "when": "config.github.copilot.chat.claudeCode.enabled",
4935
4971
  "canDelegate": true,
4936
4972
  "capabilities": {
@@ -4963,7 +4999,7 @@
4963
4999
  "type": "copilotcli",
4964
5000
  "name": "cli",
4965
5001
  "displayName": "Background Agent",
4966
- "icon": "$(collection)",
5002
+ "icon": "$(worktree)",
4967
5003
  "welcomeTitle": "Background Agent",
4968
5004
  "welcomeMessage": "Run tasks in the background",
4969
5005
  "inputPlaceholder": "Run tasks in the background, type `#` for adding context",
@@ -5197,10 +5233,10 @@
5197
5233
  "yargs": "^17.7.2"
5198
5234
  },
5199
5235
  "dependencies": {
5200
- "@anthropic-ai/claude-agent-sdk": "0.1.55",
5201
- "@anthropic-ai/sdk": "^0.68.0",
5236
+ "@anthropic-ai/claude-agent-sdk": "0.2.5",
5237
+ "@anthropic-ai/sdk": "^0.71.2",
5202
5238
  "@github/blackbird-external-ingest-utils": "^0.1.0",
5203
- "@github/copilot": "^0.0.366",
5239
+ "@github/copilot": "^0.0.381",
5204
5240
  "@google/genai": "^1.22.0",
5205
5241
  "@humanwhocodes/gitignore-to-minimatch": "1.0.2",
5206
5242
  "@microsoft/tiktokenizer": "^1.0.10",
@@ -5214,6 +5250,7 @@
5214
5250
  "@xterm/headless": "^5.5.0",
5215
5251
  "ajv": "^8.17.1",
5216
5252
  "applicationinsights": "^2.9.7",
5253
+ "best-effort-json-parser": "^1.2.1",
5217
5254
  "diff": "^8.0.2",
5218
5255
  "dompurify": "^3.3.0",
5219
5256
  "ignore": "^7.0.5",
@@ -5229,6 +5266,7 @@
5229
5266
  "overrides": {
5230
5267
  "@aminya/node-gyp-build": "npm:node-gyp-build@4.8.1",
5231
5268
  "string_decoder": "npm:string_decoder@1.2.0",
5232
- "node-gyp": "npm:node-gyp@10.3.1"
5269
+ "node-gyp": "npm:node-gyp@10.3.1",
5270
+ "zod": "3.25.76"
5233
5271
  }
5234
5272
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/chat-lib",
3
- "version": "0.2.1-25",
3
+ "version": "0.2.1-27",
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",
@@ -30,7 +30,7 @@
30
30
  "yaml": "^2.8.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@anthropic-ai/sdk": "^0.68.0",
33
+ "@anthropic-ai/sdk": "^0.71.2",
34
34
  "@octokit/types": "^14.1.0",
35
35
  "@types/node": "^22.16.3",
36
36
  "@types/vscode": "^1.102.0",