@vscode/chat-lib 0.0.5-12 → 0.0.5-14

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 (67) hide show
  1. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts +25 -8
  2. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts.map +1 -1
  3. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js +415 -175
  4. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js.map +1 -1
  5. package/dist/src/_internal/extension/prompt/node/chatMLFetcherTelemetry.d.ts +42 -0
  6. package/dist/src/_internal/extension/prompt/node/chatMLFetcherTelemetry.d.ts.map +1 -0
  7. package/dist/src/_internal/extension/prompt/node/chatMLFetcherTelemetry.js +171 -0
  8. package/dist/src/_internal/extension/prompt/node/chatMLFetcherTelemetry.js.map +1 -0
  9. package/dist/src/_internal/extension/xtab/common/tags.d.ts +13 -0
  10. package/dist/src/_internal/extension/xtab/common/tags.d.ts.map +1 -1
  11. package/dist/src/_internal/extension/xtab/common/tags.js +15 -1
  12. package/dist/src/_internal/extension/xtab/common/tags.js.map +1 -1
  13. package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts +0 -1
  14. package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts.map +1 -1
  15. package/dist/src/_internal/extension/xtab/node/xtabProvider.js +10 -50
  16. package/dist/src/_internal/extension/xtab/node/xtabProvider.js.map +1 -1
  17. package/dist/src/_internal/platform/chat/common/commonTypes.d.ts +16 -0
  18. package/dist/src/_internal/platform/chat/common/commonTypes.d.ts.map +1 -1
  19. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +1 -6
  20. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -1
  21. package/dist/src/_internal/platform/configuration/common/configurationService.js +1 -6
  22. package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -1
  23. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts +8 -3
  24. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts.map +1 -1
  25. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js +45 -8
  26. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js.map +1 -1
  27. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js +1 -1
  28. package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js.map +1 -1
  29. package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts +2 -3
  30. package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts.map +1 -1
  31. package/dist/src/_internal/platform/endpoint/node/responsesApi.js +5 -2
  32. package/dist/src/_internal/platform/endpoint/node/responsesApi.js.map +1 -1
  33. package/dist/src/_internal/platform/github/common/githubAPI.d.ts +1 -1
  34. package/dist/src/_internal/platform/github/common/githubAPI.d.ts.map +1 -1
  35. package/dist/src/_internal/platform/github/common/githubAPI.js +5 -1
  36. package/dist/src/_internal/platform/github/common/githubAPI.js.map +1 -1
  37. package/dist/src/_internal/platform/github/common/githubService.d.ts +5 -17
  38. package/dist/src/_internal/platform/github/common/githubService.d.ts.map +1 -1
  39. package/dist/src/_internal/platform/github/common/githubService.js +1 -5
  40. package/dist/src/_internal/platform/github/common/githubService.js.map +1 -1
  41. package/dist/src/_internal/platform/log/common/logService.d.ts +1 -0
  42. package/dist/src/_internal/platform/log/common/logService.d.ts.map +1 -1
  43. package/dist/src/_internal/platform/log/common/logService.js +20 -0
  44. package/dist/src/_internal/platform/log/common/logService.js.map +1 -1
  45. package/dist/src/_internal/platform/networking/common/fetch.d.ts +0 -1
  46. package/dist/src/_internal/platform/networking/common/fetch.d.ts.map +1 -1
  47. package/dist/src/_internal/platform/networking/common/fetch.js +0 -8
  48. package/dist/src/_internal/platform/networking/common/fetch.js.map +1 -1
  49. package/dist/src/_internal/platform/networking/common/networking.d.ts +3 -0
  50. package/dist/src/_internal/platform/networking/common/networking.d.ts.map +1 -1
  51. package/dist/src/_internal/platform/networking/common/networking.js.map +1 -1
  52. package/dist/src/_internal/platform/openai/node/fetch.d.ts +2 -33
  53. package/dist/src/_internal/platform/openai/node/fetch.d.ts.map +1 -1
  54. package/dist/src/_internal/platform/openai/node/fetch.js +0 -401
  55. package/dist/src/_internal/platform/openai/node/fetch.js.map +1 -1
  56. package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.d.ts +4 -0
  57. package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.d.ts.map +1 -1
  58. package/dist/src/_internal/platform/workspaceRecorder/common/workspaceLog.js.map +1 -1
  59. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts.map +1 -1
  60. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js +0 -1
  61. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js.map +1 -1
  62. package/dist/src/_internal/vscodeTypes.d.ts +0 -1
  63. package/dist/src/_internal/vscodeTypes.d.ts.map +1 -1
  64. package/dist/src/_internal/vscodeTypes.js +1 -2
  65. package/dist/src/_internal/vscodeTypes.js.map +1 -1
  66. package/dist/src/package.json +49 -46
  67. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  "name": "copilot-chat",
3
3
  "displayName": "GitHub Copilot Chat",
4
4
  "description": "AI chat features powered by Copilot",
5
- "version": "0.33.0",
5
+ "version": "0.34.0",
6
6
  "build": "1",
7
7
  "internalAIKey": "1058ec22-3c95-4951-8443-f26c1f325911",
8
8
  "completionsCoreVersion": "1.378.1799",
@@ -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": [
@@ -1739,6 +1714,11 @@
1739
1714
  "when": "true",
1740
1715
  "contents": "%github.copilot.viewsWelcome.agentsPlaceholder%"
1741
1716
  },
1717
+ {
1718
+ "view": "workbench.view.chat.sessions.copilot-cloud-agent",
1719
+ "when": "github.copilot.auth.missingPermissiveSession",
1720
+ "contents": "%github.copilot.viewsWelcome.noPermissiveToken.contents%"
1721
+ },
1742
1722
  {
1743
1723
  "view": "workbench.view.chat.sessions.copilot-cloud-agent",
1744
1724
  "when": "workspaceFolderCount == 0",
@@ -1810,6 +1790,10 @@
1810
1790
  }
1811
1791
  ],
1812
1792
  "commands": [
1793
+ {
1794
+ "command": "github.copilot.chat.triggerPermissiveSignIn",
1795
+ "title": "%github.copilot.command.triggerPermissiveSignIn%"
1796
+ },
1813
1797
  {
1814
1798
  "command": "github.copilot.claude.sessions.refresh",
1815
1799
  "title": "%github.copilot.command.refreshClaudeCodeSessions%",
@@ -1980,6 +1964,12 @@
1980
1964
  "category": "Chat",
1981
1965
  "enablement": "config.github.copilot.chat.enableUserPreferences"
1982
1966
  },
1967
+ {
1968
+ "command": "github.copilot.chat.tools.memory.openFolder",
1969
+ "title": "%github.copilot.command.openMemoryFolder%",
1970
+ "category": "Chat",
1971
+ "enablement": "config.github.copilot.chat.tools.memory.enabled"
1972
+ },
1983
1973
  {
1984
1974
  "command": "github.copilot.chat.review.markUnhelpful",
1985
1975
  "title": "%github.copilot.command.unhelpfulReviewSuggestion%",
@@ -2293,21 +2283,27 @@
2293
2283
  },
2294
2284
  {
2295
2285
  "command": "github.copilot.chat.completions.disable",
2296
- "title": "Disable Completions",
2286
+ "title": "Disable Inline Suggestions",
2297
2287
  "enablement": "github.copilot.extensionUnification.activated && github.copilot.activated && config.editor.inlineSuggest.enabled && github.copilot.completions.enabled",
2298
2288
  "category": "GitHub Copilot"
2299
2289
  },
2300
2290
  {
2301
2291
  "command": "github.copilot.chat.completions.enable",
2302
- "title": "Enable Completions",
2292
+ "title": "Enable Inline Suggestions",
2303
2293
  "enablement": "github.copilot.extensionUnification.activated && github.copilot.activated && !(config.editor.inlineSuggest.enabled && github.copilot.completions.enabled)",
2304
2294
  "category": "GitHub Copilot"
2305
2295
  },
2306
2296
  {
2307
2297
  "command": "github.copilot.chat.completions.toggle",
2308
- "title": "Toggle (Enable/Disable) Completions",
2298
+ "title": "Toggle (Enable/Disable) Inline Suggestions",
2309
2299
  "enablement": "github.copilot.extensionUnification.activated && github.copilot.activated",
2310
2300
  "category": "GitHub Copilot"
2301
+ },
2302
+ {
2303
+ "command": "github.copilot.chat.openModelPicker",
2304
+ "title": "Change Completions Model",
2305
+ "category": "GitHub Copilot",
2306
+ "enablement": "github.copilot.extensionUnification.activated && !isWeb"
2311
2307
  }
2312
2308
  ],
2313
2309
  "configuration": [
@@ -2455,6 +2451,11 @@
2455
2451
  "type": "boolean"
2456
2452
  },
2457
2453
  "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 + \\`"
2454
+ },
2455
+ "github.copilot.selectedCompletionModel": {
2456
+ "type": "string",
2457
+ "default": "",
2458
+ "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
2459
  }
2459
2460
  }
2460
2461
  },
@@ -3423,6 +3424,10 @@
3423
3424
  }
3424
3425
  ],
3425
3426
  "commandPalette": [
3427
+ {
3428
+ "command": "github.copilot.chat.triggerPermissiveSignIn",
3429
+ "when": "false"
3430
+ },
3426
3431
  {
3427
3432
  "command": "github.copilot.interactiveSession.feedback",
3428
3433
  "when": "github.copilot-chat.activated && !github.copilot.interactiveSession.disabled"
@@ -3951,7 +3956,7 @@
3951
3956
  {
3952
3957
  "command": "github.copilot.cloud.sessions.openInBrowser",
3953
3958
  "when": "chatSessionType == copilot-cloud-agent",
3954
- "group": "context"
3959
+ "group": "navigation@10"
3955
3960
  },
3956
3961
  {
3957
3962
  "command": "github.copilot.cloud.sessions.proxy.closeChatSessionPullRequest",
@@ -4091,7 +4096,7 @@
4091
4096
  {
4092
4097
  "id": "codex-placeholder",
4093
4098
  "name": "OpenAI Codex",
4094
- "when": "github.copilot.chat.codex.showPlaceholder && config.chat.experimental.codex.enabled",
4099
+ "when": "github.copilot.chat.codex.showPlaceholder",
4095
4100
  "icon": "$(file)"
4096
4101
  },
4097
4102
  {
@@ -4349,7 +4354,6 @@
4349
4354
  "inputPlaceholder": "Describe your task, type `#` for adding context",
4350
4355
  "order": 2,
4351
4356
  "description": "The GitHub Copilot CLI Agent works on your local machine",
4352
- "when": "!chatEntitlementSignedOut && chatIsEnabled",
4353
4357
  "capabilities": {
4354
4358
  "supportsFileAttachments": true,
4355
4359
  "supportsProblemAttachments": true,
@@ -4378,7 +4382,6 @@
4378
4382
  "inputPlaceholder": "Describe your task, type `#` for adding context",
4379
4383
  "order": 1,
4380
4384
  "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.",
4381
- "when": "!chatEntitlementSignedOut && chatIsEnabled",
4382
4385
  "capabilities": {
4383
4386
  "supportsFileAttachments": true
4384
4387
  }
@@ -4577,7 +4580,7 @@
4577
4580
  "dependencies": {
4578
4581
  "@anthropic-ai/claude-code": "^1.0.120",
4579
4582
  "@anthropic-ai/sdk": "^0.68.0",
4580
- "@github/copilot": "^0.0.343",
4583
+ "@github/copilot": "^0.0.354",
4581
4584
  "@google/genai": "^1.22.0",
4582
4585
  "@humanwhocodes/gitignore-to-minimatch": "1.0.2",
4583
4586
  "@microsoft/tiktokenizer": "^1.0.10",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/chat-lib",
3
- "version": "0.0.5-12",
3
+ "version": "0.0.5-14",
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",