@vscode/chat-lib 0.0.5-11 → 0.0.5-13

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 (57) hide show
  1. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts.map +1 -1
  2. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js +7 -4
  3. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js.map +1 -1
  4. package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts +4 -6
  5. package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts.map +1 -1
  6. package/dist/src/_internal/extension/xtab/common/promptCrafting.js +6 -4
  7. package/dist/src/_internal/extension/xtab/common/promptCrafting.js.map +1 -1
  8. package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts +0 -1
  9. package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts.map +1 -1
  10. package/dist/src/_internal/extension/xtab/node/xtabProvider.js +15 -37
  11. package/dist/src/_internal/extension/xtab/node/xtabProvider.js.map +1 -1
  12. package/dist/src/_internal/platform/chat/common/commonTypes.d.ts +16 -0
  13. package/dist/src/_internal/platform/chat/common/commonTypes.d.ts.map +1 -1
  14. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +15 -8
  15. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -1
  16. package/dist/src/_internal/platform/configuration/common/configurationService.js +10 -8
  17. package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -1
  18. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts +9 -3
  19. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts.map +1 -1
  20. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js +51 -9
  21. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js.map +1 -1
  22. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js +1 -1
  23. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js.map +1 -1
  24. package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts +2 -3
  25. package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts.map +1 -1
  26. package/dist/src/_internal/platform/endpoint/node/responsesApi.js +5 -2
  27. package/dist/src/_internal/platform/endpoint/node/responsesApi.js.map +1 -1
  28. package/dist/src/_internal/platform/github/common/githubAPI.d.ts +1 -1
  29. package/dist/src/_internal/platform/github/common/githubAPI.d.ts.map +1 -1
  30. package/dist/src/_internal/platform/github/common/githubAPI.js +5 -1
  31. package/dist/src/_internal/platform/github/common/githubAPI.js.map +1 -1
  32. package/dist/src/_internal/platform/github/common/githubService.d.ts +5 -17
  33. package/dist/src/_internal/platform/github/common/githubService.d.ts.map +1 -1
  34. package/dist/src/_internal/platform/github/common/githubService.js +1 -5
  35. package/dist/src/_internal/platform/github/common/githubService.js.map +1 -1
  36. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts +2 -2
  37. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts.map +1 -1
  38. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js.map +1 -1
  39. package/dist/src/_internal/platform/log/common/logService.d.ts +1 -0
  40. package/dist/src/_internal/platform/log/common/logService.d.ts.map +1 -1
  41. package/dist/src/_internal/platform/log/common/logService.js +20 -0
  42. package/dist/src/_internal/platform/log/common/logService.js.map +1 -1
  43. package/dist/src/_internal/platform/networking/common/networking.d.ts +3 -0
  44. package/dist/src/_internal/platform/networking/common/networking.d.ts.map +1 -1
  45. package/dist/src/_internal/platform/networking/common/networking.js.map +1 -1
  46. package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.d.ts +4 -0
  47. package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.d.ts.map +1 -1
  48. package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.js.map +1 -1
  49. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts.map +1 -1
  50. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js +0 -1
  51. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js.map +1 -1
  52. package/dist/src/_internal/vscodeTypes.d.ts +0 -1
  53. package/dist/src/_internal/vscodeTypes.d.ts.map +1 -1
  54. package/dist/src/_internal/vscodeTypes.js +1 -2
  55. package/dist/src/_internal/vscodeTypes.js.map +1 -1
  56. package/dist/src/package.json +101 -53
  57. package/package.json +1 -1
@@ -163,33 +163,6 @@
163
163
  ]
164
164
  }
165
165
  },
166
- {
167
- "name": "runSubagent",
168
- "toolReferenceName": "runSubagent",
169
- "displayName": "%copilot.tools.runSubagent.name%",
170
- "canBeReferencedInPrompt": true,
171
- "userDescription": "%copilot.tools.runSubagent.description%",
172
- "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",
173
- "tags": [],
174
- "when": "!config.chat.experimental.runSubagent2",
175
- "inputSchema": {
176
- "type": "object",
177
- "properties": {
178
- "prompt": {
179
- "type": "string",
180
- "description": "A detailed description of the task for the agent to perform"
181
- },
182
- "description": {
183
- "type": "string",
184
- "description": "A short (3-5 word) description of the task"
185
- }
186
- },
187
- "required": [
188
- "prompt",
189
- "description"
190
- ]
191
- }
192
- },
193
166
  {
194
167
  "name": "copilot_searchWorkspaceSymbols",
195
168
  "toolReferenceName": "symbols",
@@ -1099,46 +1072,48 @@
1099
1072
  "delete",
1100
1073
  "rename"
1101
1074
  ],
1102
- "description": "The memory operation to perform: view (list/read), create (new file), str_replace (edit), insert (add content), delete (remove), rename (change filename)"
1075
+ "description": "The memory operation to perform:\n- view: Show directory contents or file contents (optional line ranges)\n- create: Create or overwrite a file\n- str_replace: Replace text in a file\n- insert: Insert text at a specific line\n- delete: Delete a file or directory\n- rename: Rename or move a file or directory"
1103
1076
  },
1104
1077
  "path": {
1105
1078
  "type": "string",
1106
- "description": "The path to the memory file (must start with /memories, e.g., /memories/notes.md or /memories/project/info.txt)"
1079
+ "description": "Path to the memory file or directory. Must start with /memories.\n- For view: /memories or /memories/file.md\n- For create/str_replace/insert/delete: /memories/file.md\n- Not used for rename (use old_path/new_path instead)"
1107
1080
  },
1108
1081
  "view_range": {
1109
1082
  "type": "array",
1110
1083
  "items": {
1111
1084
  "type": "number"
1112
1085
  },
1113
- "description": "Optional: view specific line range [start, end] for view command"
1086
+ "minItems": 2,
1087
+ "maxItems": 2,
1088
+ "description": "[view only] Optional line range [start, end] to view specific lines. Example: [1, 10]"
1114
1089
  },
1115
1090
  "file_text": {
1116
1091
  "type": "string",
1117
- "description": "Content for create operation"
1092
+ "description": "[create only] Content to write to the file. Required for create command."
1118
1093
  },
1119
1094
  "old_str": {
1120
1095
  "type": "string",
1121
- "description": "String to replace in str_replace operation"
1096
+ "description": "[str_replace only] The exact literal text to find and replace. Must be unique in the file. Required for str_replace command."
1122
1097
  },
1123
1098
  "new_str": {
1124
1099
  "type": "string",
1125
- "description": "Replacement string in str_replace operation"
1100
+ "description": "[str_replace only] The exact literal text to replace old_str with. Can be empty string. Required for str_replace command."
1126
1101
  },
1127
1102
  "insert_line": {
1128
1103
  "type": "number",
1129
- "description": "Line number for insert operation"
1104
+ "description": "[insert only] Line number at which to insert text (0-indexed, 0 = before first line). Required for insert command."
1130
1105
  },
1131
1106
  "insert_text": {
1132
1107
  "type": "string",
1133
- "description": "Text to insert at specified line for insert operation"
1108
+ "description": "[insert only] Text to insert at the specified line. Required for insert command."
1134
1109
  },
1135
1110
  "old_path": {
1136
1111
  "type": "string",
1137
- "description": "Source path for rename operation"
1112
+ "description": "[rename only] Current path of the file or directory. Must start with /memories. Required for rename command."
1138
1113
  },
1139
1114
  "new_path": {
1140
1115
  "type": "string",
1141
- "description": "Destination path for rename operation"
1116
+ "description": "[rename only] New path for the file or directory. Must start with /memories. Required for rename command."
1142
1117
  }
1143
1118
  },
1144
1119
  "required": [
@@ -1980,6 +1955,12 @@
1980
1955
  "category": "Chat",
1981
1956
  "enablement": "config.github.copilot.chat.enableUserPreferences"
1982
1957
  },
1958
+ {
1959
+ "command": "github.copilot.chat.tools.memory.openFolder",
1960
+ "title": "%github.copilot.command.openMemoryFolder%",
1961
+ "category": "Chat",
1962
+ "enablement": "config.github.copilot.chat.tools.memory.enabled"
1963
+ },
1983
1964
  {
1984
1965
  "command": "github.copilot.chat.review.markUnhelpful",
1985
1966
  "title": "%github.copilot.command.unhelpfulReviewSuggestion%",
@@ -2293,21 +2274,27 @@
2293
2274
  },
2294
2275
  {
2295
2276
  "command": "github.copilot.chat.completions.disable",
2296
- "title": "Disable Completions",
2277
+ "title": "Disable Inline Suggestions",
2297
2278
  "enablement": "github.copilot.extensionUnification.activated && github.copilot.activated && config.editor.inlineSuggest.enabled && github.copilot.completions.enabled",
2298
2279
  "category": "GitHub Copilot"
2299
2280
  },
2300
2281
  {
2301
2282
  "command": "github.copilot.chat.completions.enable",
2302
- "title": "Enable Completions",
2283
+ "title": "Enable Inline Suggestions",
2303
2284
  "enablement": "github.copilot.extensionUnification.activated && github.copilot.activated && !(config.editor.inlineSuggest.enabled && github.copilot.completions.enabled)",
2304
2285
  "category": "GitHub Copilot"
2305
2286
  },
2306
2287
  {
2307
2288
  "command": "github.copilot.chat.completions.toggle",
2308
- "title": "Toggle (Enable/Disable) Completions",
2289
+ "title": "Toggle (Enable/Disable) Inline Suggestions",
2309
2290
  "enablement": "github.copilot.extensionUnification.activated && github.copilot.activated",
2310
2291
  "category": "GitHub Copilot"
2292
+ },
2293
+ {
2294
+ "command": "github.copilot.chat.openModelPicker",
2295
+ "title": "Change Completions Model",
2296
+ "category": "GitHub Copilot",
2297
+ "enablement": "github.copilot.extensionUnification.activated && !isWeb"
2311
2298
  }
2312
2299
  ],
2313
2300
  "configuration": [
@@ -2455,6 +2442,11 @@
2455
2442
  "type": "boolean"
2456
2443
  },
2457
2444
  "markdownDescription": "Enable or disable auto triggering of Copilot completions for specified [languages](https://code.visualstudio.com/docs/languages/identifiers). You can still trigger suggestions manually using `Alt + \\`"
2445
+ },
2446
+ "github.copilot.selectedCompletionModel": {
2447
+ "type": "string",
2448
+ "default": "",
2449
+ "markdownDescription": "The currently selected completion model ID. To select from a list of available models, use the __\"Change Completions Model\"__ command or open the model picker (from the Copilot menu in the VS Code title bar, select __\"Configure Code Completions\"__ then __\"Change Completions Model\"__. The value must be a valid model ID. An empty value indicates that the default model will be used."
2458
2450
  }
2459
2451
  }
2460
2452
  },
@@ -3161,14 +3153,6 @@
3161
3153
  ],
3162
3154
  "description": "%github.copilot.config.alternateGptPrompt.enabled%"
3163
3155
  },
3164
- "github.copilot.chat.gpt5AlternatePrompt": {
3165
- "type": "string",
3166
- "default": "default",
3167
- "tags": [
3168
- "experimental"
3169
- ],
3170
- "description": "%github.copilot.config.gpt5AlternatePrompt%"
3171
- },
3172
3156
  "github.copilot.chat.useResponsesApi": {
3173
3157
  "type": "boolean",
3174
3158
  "default": true,
@@ -3238,6 +3222,67 @@
3238
3222
  "onExp"
3239
3223
  ]
3240
3224
  },
3225
+ "github.copilot.chat.anthropic.tools.websearch.maxUses": {
3226
+ "type": "number",
3227
+ "default": 5,
3228
+ "markdownDescription": "%github.copilot.config.anthropic.tools.websearch.maxUses%",
3229
+ "minimum": 1,
3230
+ "maximum": 20,
3231
+ "tags": [
3232
+ "experimental"
3233
+ ]
3234
+ },
3235
+ "github.copilot.chat.anthropic.tools.websearch.allowedDomains": {
3236
+ "type": "array",
3237
+ "default": [],
3238
+ "markdownDescription": "%github.copilot.config.anthropic.tools.websearch.allowedDomains%",
3239
+ "items": {
3240
+ "type": "string"
3241
+ },
3242
+ "tags": [
3243
+ "experimental"
3244
+ ]
3245
+ },
3246
+ "github.copilot.chat.anthropic.tools.websearch.blockedDomains": {
3247
+ "type": "array",
3248
+ "default": [],
3249
+ "markdownDescription": "%github.copilot.config.anthropic.tools.websearch.blockedDomains%",
3250
+ "items": {
3251
+ "type": "string"
3252
+ },
3253
+ "tags": [
3254
+ "experimental"
3255
+ ]
3256
+ },
3257
+ "github.copilot.chat.anthropic.tools.websearch.userLocation": {
3258
+ "type": [
3259
+ "object",
3260
+ "null"
3261
+ ],
3262
+ "default": null,
3263
+ "markdownDescription": "%github.copilot.config.anthropic.tools.websearch.userLocation%",
3264
+ "properties": {
3265
+ "city": {
3266
+ "type": "string",
3267
+ "description": "City name (e.g., 'San Francisco')"
3268
+ },
3269
+ "region": {
3270
+ "type": "string",
3271
+ "description": "State or region (e.g., 'California')"
3272
+ },
3273
+ "country": {
3274
+ "type": "string",
3275
+ "description": "ISO country code (e.g., 'US')"
3276
+ },
3277
+ "timezone": {
3278
+ "type": "string",
3279
+ "description": "IANA timezone identifier (e.g., 'America/Los_Angeles')"
3280
+ }
3281
+ },
3282
+ "tags": [
3283
+ "experimental"
3284
+ ]
3285
+ },
3241
3286
  "github.copilot.chat.tools.memory.enabled": {
3242
3287
  "type": "boolean",
3243
3288
  "default": false,
@@ -3898,7 +3943,7 @@
3898
3943
  {
3899
3944
  "command": "github.copilot.cloud.sessions.openInBrowser",
3900
3945
  "when": "chatSessionType == copilot-cloud-agent",
3901
- "group": "context"
3946
+ "group": "navigation@10"
3902
3947
  },
3903
3948
  {
3904
3949
  "command": "github.copilot.cloud.sessions.proxy.closeChatSessionPullRequest",
@@ -4038,7 +4083,7 @@
4038
4083
  {
4039
4084
  "id": "codex-placeholder",
4040
4085
  "name": "OpenAI Codex",
4041
- "when": "github.copilot.chat.codex.showPlaceholder && config.chat.experimental.codex.enabled",
4086
+ "when": "github.copilot.chat.codex.showPlaceholder",
4042
4087
  "icon": "$(file)"
4043
4088
  },
4044
4089
  {
@@ -4394,7 +4439,7 @@
4394
4439
  "watch:tsc-extension": "tsc --noEmit --watch --project tsconfig.json",
4395
4440
  "watch:tsc-extension-web": "tsc --noEmit --watch --project tsconfig.worker.json",
4396
4441
  "watch:tsc-simulation-workbench": "tsc --noEmit --watch --project test/simulation/workbench/tsconfig.json",
4397
- "typecheck": "tsc --noEmit --project tsconfig.json && tsc --noEmit --project test/simulation/workbench/tsconfig.json && tsc --noEmit --project tsconfig.worker.json",
4442
+ "typecheck": "tsc --noEmit --project tsconfig.json && tsc --noEmit --project test/simulation/workbench/tsconfig.json && tsc --noEmit --project tsconfig.worker.json && tsc --noEmit --project src/extension/completions-core/vscode-node/extension/src/copilotPanel/webView/tsconfig.json",
4398
4443
  "lint": "eslint . --max-warnings=0",
4399
4444
  "lint-staged": "eslint --max-warnings=0",
4400
4445
  "tsfmt": "npx tsfmt -r --verify",
@@ -4453,6 +4498,7 @@
4453
4498
  "@types/vinyl": "^2.0.12",
4454
4499
  "@types/vscode": "^1.102.0",
4455
4500
  "@types/yargs": "^17.0.24",
4501
+ "@types/vscode-webview": "^1.57.4",
4456
4502
  "@typescript-eslint/eslint-plugin": "^8.35.0",
4457
4503
  "@typescript-eslint/parser": "^8.32.0",
4458
4504
  "@typescript-eslint/typescript-estree": "^8.26.1",
@@ -4532,6 +4578,7 @@
4532
4578
  "@vscode/l10n": "^0.0.18",
4533
4579
  "@vscode/prompt-tsx": "^0.4.0-alpha.5",
4534
4580
  "@vscode/tree-sitter-wasm": "0.0.5-php.2",
4581
+ "@vscode/webview-ui-toolkit": "^1.3.1",
4535
4582
  "@xterm/headless": "^5.5.0",
4536
4583
  "ajv": "^8.17.1",
4537
4584
  "applicationinsights": "^2.9.7",
@@ -4544,11 +4591,12 @@
4544
4591
  "minimatch": "^10.0.3",
4545
4592
  "undici": "^7.11.0",
4546
4593
  "vscode-tas-client": "^0.1.84",
4547
- "web-tree-sitter": "^0.23.0"
4594
+ "web-tree-sitter": "^0.23.0",
4595
+ "dompurify": "^3.3.0"
4548
4596
  },
4549
4597
  "overrides": {
4550
4598
  "@aminya/node-gyp-build": "npm:node-gyp-build@4.8.1",
4551
4599
  "string_decoder": "npm:string_decoder@1.2.0",
4552
4600
  "node-gyp": "npm:node-gyp@10.3.1"
4553
4601
  }
4554
- }
4602
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/chat-lib",
3
- "version": "0.0.5-11",
3
+ "version": "0.0.5-13",
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",