@vscode/chat-lib 0.3.1-15 → 0.3.1-16
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.
- package/dist/src/_internal/extension/common/constants.d.ts.map +1 -1
- package/dist/src/_internal/extension/common/constants.js +1 -0
- package/dist/src/_internal/extension/common/constants.js.map +1 -1
- package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/fetch.d.ts.map +1 -1
- package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/fetch.js +86 -70
- package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/fetch.js.map +1 -1
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +2 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -1
- package/dist/src/_internal/platform/configuration/common/configurationService.js +2 -0
- package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts +1 -0
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js +12 -2
- package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js +2 -2
- package/dist/src/_internal/platform/endpoint/node/chatEndpoint.js.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/messagesApi.d.ts.map +1 -1
- package/dist/src/_internal/platform/endpoint/node/messagesApi.js +10 -1
- package/dist/src/_internal/platform/endpoint/node/messagesApi.js.map +1 -1
- package/dist/src/_internal/platform/networking/common/anthropic.d.ts +1 -0
- package/dist/src/_internal/platform/networking/common/anthropic.d.ts.map +1 -1
- package/dist/src/_internal/platform/networking/common/anthropic.js +8 -0
- package/dist/src/_internal/platform/networking/common/anthropic.js.map +1 -1
- package/dist/src/package.json +152 -60
- package/package.json +1 -1
package/dist/src/package.json
CHANGED
|
@@ -513,48 +513,6 @@
|
|
|
513
513
|
"enable_other_tool_copilot_runTests"
|
|
514
514
|
]
|
|
515
515
|
},
|
|
516
|
-
{
|
|
517
|
-
"name": "copilot_memory",
|
|
518
|
-
"toolReferenceName": "memory",
|
|
519
|
-
"displayName": "%copilot.tools.memory.name%",
|
|
520
|
-
"userDescription": "%copilot.tools.memory.description%",
|
|
521
|
-
"modelDescription": "Store a fact about the codebase in memory, so that it can be used in future code generation or review tasks. The fact should be a clear and concise statement about the codebase conventions, structure, logic, or usage. It may be based on the code itself, or on information provided by the user.",
|
|
522
|
-
"canBeReferencedInPrompt": true,
|
|
523
|
-
"when": "config.github.copilot.chat.copilotMemory.enabled",
|
|
524
|
-
"tags": [],
|
|
525
|
-
"inputSchema": {
|
|
526
|
-
"type": "object",
|
|
527
|
-
"properties": {
|
|
528
|
-
"subject": {
|
|
529
|
-
"type": "string",
|
|
530
|
-
"description": "The topic to which this memory relates. 1-2 words. Examples: naming conventions, testing practices, documentation, logging, authentication, sanitization, error handling."
|
|
531
|
-
},
|
|
532
|
-
"fact": {
|
|
533
|
-
"type": "string",
|
|
534
|
-
"description": "A clear and short description of a fact about the codebase or a convention used in the codebase. Must be less than 200 characters. Examples: Use JWT for authentication. Follow PEP 257 docstring conventions. Use single quotes for strings in Python. Use Winston for logging."
|
|
535
|
-
},
|
|
536
|
-
"citations": {
|
|
537
|
-
"type": "string",
|
|
538
|
-
"description": "The source of this fact, such as a file and line number in the codebase (e.g., path/file.go:123). If the convention is not explicitly stated in the codebase, you can point at several examples that illustrate it, selecting the most diverse set of examples you can find (e.g. from multiple files or contexts). If the fact is based on user input, the citations should be User input: followed by the contents of the input."
|
|
539
|
-
},
|
|
540
|
-
"reason": {
|
|
541
|
-
"type": "string",
|
|
542
|
-
"description": "A clear and detailed explanation of the reason behind storing this fact. Must be at least 2-3 sentences long, and include which future tasks this fact will be useful for and why it is important to remember this fact."
|
|
543
|
-
},
|
|
544
|
-
"category": {
|
|
545
|
-
"type": "string",
|
|
546
|
-
"description": "The type of memory being stored. This can be bootstrap_and_build (info about how to bootstrap and build the project), user_preferences (preferences of the user, such as coding style, tabs vs. spaces, favorite libraries, etc.), general (file independent facts), or file_specific (information about a specific file in the codebase)."
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
|
-
"required": [
|
|
550
|
-
"subject",
|
|
551
|
-
"fact",
|
|
552
|
-
"citations",
|
|
553
|
-
"reason",
|
|
554
|
-
"category"
|
|
555
|
-
]
|
|
556
|
-
}
|
|
557
|
-
},
|
|
558
516
|
{
|
|
559
517
|
"name": "copilot_createNewWorkspace",
|
|
560
518
|
"displayName": "%github.copilot.tools.createNewWorkspace.name%",
|
|
@@ -1263,6 +1221,76 @@
|
|
|
1263
1221
|
]
|
|
1264
1222
|
}
|
|
1265
1223
|
},
|
|
1224
|
+
{
|
|
1225
|
+
"name": "copilot_memory",
|
|
1226
|
+
"displayName": "Memory",
|
|
1227
|
+
"toolReferenceName": "memory",
|
|
1228
|
+
"canBeReferencedInPrompt": true,
|
|
1229
|
+
"userDescription": "Manage persistent memory across conversations",
|
|
1230
|
+
"when": "config.github.copilot.chat.tools.memory.enabled",
|
|
1231
|
+
"modelDescription": "Manage a persistent memory directory for storing notes, ideas, and information across conversations. The memory is organized as files in a directory structure under /memories/.\n\nIMPORTANT: Before creating new memory files, first view the /memories/ directory to understand what already exists. This helps avoid duplicates and maintain organized notes.\n\nCommands:\n- `view`: View contents of a file or list directory contents. Can be used on files or directories (e.g., \"/memories/\" to see all top-level items).\n- `create`: Create a new file at the specified path with the given content. Fails if the file already exists.\n- `str_replace`: Replace an exact string in a file with a new string. The old_str must appear exactly once in the file.\n- `insert`: Insert text at a specific line number in a file. Line 0 inserts at the beginning.\n- `delete`: Delete a file or directory (and all its contents).\n- `rename`: Rename or move a file or directory from path to new_path.",
|
|
1232
|
+
"inputSchema": {
|
|
1233
|
+
"type": "object",
|
|
1234
|
+
"properties": {
|
|
1235
|
+
"command": {
|
|
1236
|
+
"type": "string",
|
|
1237
|
+
"enum": [
|
|
1238
|
+
"view",
|
|
1239
|
+
"create",
|
|
1240
|
+
"str_replace",
|
|
1241
|
+
"insert",
|
|
1242
|
+
"delete",
|
|
1243
|
+
"rename"
|
|
1244
|
+
],
|
|
1245
|
+
"description": "The operation to perform on the memory file system."
|
|
1246
|
+
},
|
|
1247
|
+
"path": {
|
|
1248
|
+
"type": "string",
|
|
1249
|
+
"description": "The absolute path to the file or directory inside /memories/, e.g. \"/memories/notes.md\". Used by all commands except `rename`."
|
|
1250
|
+
},
|
|
1251
|
+
"file_text": {
|
|
1252
|
+
"type": "string",
|
|
1253
|
+
"description": "Required for `create`. The content of the file to create."
|
|
1254
|
+
},
|
|
1255
|
+
"old_str": {
|
|
1256
|
+
"type": "string",
|
|
1257
|
+
"description": "Required for `str_replace`. The exact string in the file to replace. Must appear exactly once."
|
|
1258
|
+
},
|
|
1259
|
+
"new_str": {
|
|
1260
|
+
"type": "string",
|
|
1261
|
+
"description": "Required for `str_replace`. The new string to replace old_str with."
|
|
1262
|
+
},
|
|
1263
|
+
"insert_line": {
|
|
1264
|
+
"type": "number",
|
|
1265
|
+
"description": "Required for `insert`. The 0-based line number to insert text at. 0 inserts before the first line."
|
|
1266
|
+
},
|
|
1267
|
+
"insert_text": {
|
|
1268
|
+
"type": "string",
|
|
1269
|
+
"description": "Required for `insert`. The text to insert at the specified line."
|
|
1270
|
+
},
|
|
1271
|
+
"view_range": {
|
|
1272
|
+
"type": "array",
|
|
1273
|
+
"items": {
|
|
1274
|
+
"type": "number"
|
|
1275
|
+
},
|
|
1276
|
+
"minItems": 2,
|
|
1277
|
+
"maxItems": 2,
|
|
1278
|
+
"description": "Optional for `view`. A two-element array [start_line, end_line] (1-indexed) to view a specific range of lines."
|
|
1279
|
+
},
|
|
1280
|
+
"old_path": {
|
|
1281
|
+
"type": "string",
|
|
1282
|
+
"description": "Required for `rename`. The current path of the file or directory to rename."
|
|
1283
|
+
},
|
|
1284
|
+
"new_path": {
|
|
1285
|
+
"type": "string",
|
|
1286
|
+
"description": "Required for `rename`. The new path for the file or directory."
|
|
1287
|
+
}
|
|
1288
|
+
},
|
|
1289
|
+
"required": [
|
|
1290
|
+
"command"
|
|
1291
|
+
]
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1266
1294
|
{
|
|
1267
1295
|
"name": "copilot_editFiles",
|
|
1268
1296
|
"modelDescription": "This is a placeholder tool, do not use",
|
|
@@ -1328,6 +1356,7 @@
|
|
|
1328
1356
|
"tools": [
|
|
1329
1357
|
"getProjectSetupInfo",
|
|
1330
1358
|
"installExtension",
|
|
1359
|
+
"memory",
|
|
1331
1360
|
"newWorkspace",
|
|
1332
1361
|
"openSimpleBrowser",
|
|
1333
1362
|
"runCommand",
|
|
@@ -1596,9 +1625,8 @@
|
|
|
1596
1625
|
"when": "github.copilot.chat.debug"
|
|
1597
1626
|
},
|
|
1598
1627
|
{
|
|
1599
|
-
"name": "
|
|
1600
|
-
"description": "%copilot.agent.
|
|
1601
|
-
"when": "config.github.copilot.chat.summarizeAgentConversationHistory.enabled"
|
|
1628
|
+
"name": "compact",
|
|
1629
|
+
"description": "%copilot.agent.compact.description%"
|
|
1602
1630
|
},
|
|
1603
1631
|
{
|
|
1604
1632
|
"name": "explain",
|
|
@@ -2805,6 +2833,23 @@
|
|
|
2805
2833
|
"icon": "$(git-stash-pop)",
|
|
2806
2834
|
"category": "GitHub Copilot"
|
|
2807
2835
|
},
|
|
2836
|
+
{
|
|
2837
|
+
"command": "github.copilot.chat.copilotCLI.addFileReference",
|
|
2838
|
+
"title": "%github.copilot.command.chat.copilotCLI.addFileReference%",
|
|
2839
|
+
"category": "Copilot CLI"
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
"command": "github.copilot.chat.copilotCLI.acceptDiff",
|
|
2843
|
+
"title": "%github.copilot.command.chat.copilotCLI.acceptDiff%",
|
|
2844
|
+
"icon": "$(check)",
|
|
2845
|
+
"category": "Copilot CLI"
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
"command": "github.copilot.chat.copilotCLI.rejectDiff",
|
|
2849
|
+
"title": "%github.copilot.command.chat.copilotCLI.rejectDiff%",
|
|
2850
|
+
"icon": "$(close)",
|
|
2851
|
+
"category": "Copilot CLI"
|
|
2852
|
+
},
|
|
2808
2853
|
{
|
|
2809
2854
|
"command": "github.copilot.chat.checkoutPullRequestReroute",
|
|
2810
2855
|
"title": "%github.copilot.command.checkoutPullRequestReroute.title%",
|
|
@@ -3006,6 +3051,16 @@
|
|
|
3006
3051
|
"type": "string",
|
|
3007
3052
|
"default": "",
|
|
3008
3053
|
"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."
|
|
3054
|
+
},
|
|
3055
|
+
"github.copilot.chat.claudeAgent.enabled": {
|
|
3056
|
+
"type": "boolean",
|
|
3057
|
+
"default": true,
|
|
3058
|
+
"markdownDescription": "%github.copilot.config.claudeAgent.enabled%"
|
|
3059
|
+
},
|
|
3060
|
+
"github.copilot.chat.claudeAgent.allowDangerouslySkipPermissions": {
|
|
3061
|
+
"type": "boolean",
|
|
3062
|
+
"default": false,
|
|
3063
|
+
"markdownDescription": "%github.copilot.config.claudeAgent.allowDangerouslySkipPermissions%"
|
|
3009
3064
|
}
|
|
3010
3065
|
}
|
|
3011
3066
|
},
|
|
@@ -3115,26 +3170,18 @@
|
|
|
3115
3170
|
],
|
|
3116
3171
|
"markdownDescription": "%github.copilot.config.codesearch.enabled%"
|
|
3117
3172
|
},
|
|
3118
|
-
"github.copilot.chat.
|
|
3119
|
-
"type": "boolean",
|
|
3120
|
-
"default": true,
|
|
3121
|
-
"markdownDescription": "%github.copilot.config.claudeAgent.enabled%",
|
|
3122
|
-
"tags": [
|
|
3123
|
-
"preview"
|
|
3124
|
-
]
|
|
3125
|
-
},
|
|
3126
|
-
"github.copilot.chat.claudeAgent.allowDangerouslySkipPermissions": {
|
|
3173
|
+
"github.copilot.chat.copilotMemory.enabled": {
|
|
3127
3174
|
"type": "boolean",
|
|
3128
3175
|
"default": false,
|
|
3129
|
-
"markdownDescription": "%github.copilot.config.
|
|
3176
|
+
"markdownDescription": "%github.copilot.config.copilotMemory.enabled%",
|
|
3130
3177
|
"tags": [
|
|
3131
3178
|
"preview"
|
|
3132
3179
|
]
|
|
3133
3180
|
},
|
|
3134
|
-
"github.copilot.chat.
|
|
3181
|
+
"github.copilot.chat.tools.memory.enabled": {
|
|
3135
3182
|
"type": "boolean",
|
|
3136
3183
|
"default": false,
|
|
3137
|
-
"markdownDescription": "%github.copilot.config.
|
|
3184
|
+
"markdownDescription": "%github.copilot.config.tools.memory.enabled%",
|
|
3138
3185
|
"tags": [
|
|
3139
3186
|
"preview"
|
|
3140
3187
|
]
|
|
@@ -4350,6 +4397,15 @@
|
|
|
4350
4397
|
"experimental"
|
|
4351
4398
|
]
|
|
4352
4399
|
},
|
|
4400
|
+
"github.copilot.chat.cli.integration.enabled": {
|
|
4401
|
+
"type": "boolean",
|
|
4402
|
+
"default": false,
|
|
4403
|
+
"markdownDescription": "%github.copilot.config.cli.integration.enabled%",
|
|
4404
|
+
"tags": [
|
|
4405
|
+
"advanced",
|
|
4406
|
+
"experimental"
|
|
4407
|
+
]
|
|
4408
|
+
},
|
|
4353
4409
|
"github.copilot.chat.cli.mcp.enabled": {
|
|
4354
4410
|
"type": "boolean",
|
|
4355
4411
|
"default": false,
|
|
@@ -4458,6 +4514,23 @@
|
|
|
4458
4514
|
"command": "github.copilot.chat.showAsChatSession",
|
|
4459
4515
|
"group": "navigation@9",
|
|
4460
4516
|
"when": "resourceFilename === 'benchRun.chatReplay.json' || resourceFilename === 'chat-export-logs.json'"
|
|
4517
|
+
},
|
|
4518
|
+
{
|
|
4519
|
+
"command": "github.copilot.chat.copilotCLI.acceptDiff",
|
|
4520
|
+
"group": "navigation@1",
|
|
4521
|
+
"when": "github.copilot.chat.copilotCLI.hasActiveDiff"
|
|
4522
|
+
},
|
|
4523
|
+
{
|
|
4524
|
+
"command": "github.copilot.chat.copilotCLI.rejectDiff",
|
|
4525
|
+
"group": "navigation@2",
|
|
4526
|
+
"when": "github.copilot.chat.copilotCLI.hasActiveDiff"
|
|
4527
|
+
}
|
|
4528
|
+
],
|
|
4529
|
+
"editor/title/context": [
|
|
4530
|
+
{
|
|
4531
|
+
"command": "github.copilot.chat.copilotCLI.addFileReference",
|
|
4532
|
+
"group": "copilot",
|
|
4533
|
+
"when": "config.github.copilot.chat.cli.integration.enabled && !inOutput && resourceScheme != 'vscode-webview' && resourceScheme != 'webview-panel'"
|
|
4461
4534
|
}
|
|
4462
4535
|
],
|
|
4463
4536
|
"explorer/context": [
|
|
@@ -4465,6 +4538,11 @@
|
|
|
4465
4538
|
"command": "github.copilot.chat.showAsChatSession",
|
|
4466
4539
|
"when": "resourceFilename === 'benchRun.chatReplay.json' || resourceFilename === 'chat-export-logs.json'",
|
|
4467
4540
|
"group": "2_copilot@1"
|
|
4541
|
+
},
|
|
4542
|
+
{
|
|
4543
|
+
"command": "github.copilot.chat.copilotCLI.addFileReference",
|
|
4544
|
+
"group": "copilot",
|
|
4545
|
+
"when": "config.github.copilot.chat.cli.integration.enabled && !explorerResourceIsFolder"
|
|
4468
4546
|
}
|
|
4469
4547
|
],
|
|
4470
4548
|
"editor/context": [
|
|
@@ -4472,6 +4550,11 @@
|
|
|
4472
4550
|
"command": "github.copilot.chat.explain",
|
|
4473
4551
|
"when": "!github.copilot.interactiveSession.disabled",
|
|
4474
4552
|
"group": "1_chat@4"
|
|
4553
|
+
},
|
|
4554
|
+
{
|
|
4555
|
+
"command": "github.copilot.chat.copilotCLI.addFileReference",
|
|
4556
|
+
"group": "copilot",
|
|
4557
|
+
"when": "!inOutput && resourceScheme != 'vscode-webview' && resourceScheme != 'webview-panel'"
|
|
4475
4558
|
}
|
|
4476
4559
|
],
|
|
4477
4560
|
"editor/context/chat": [
|
|
@@ -5286,6 +5369,12 @@
|
|
|
5286
5369
|
}
|
|
5287
5370
|
},
|
|
5288
5371
|
"keybindings": [
|
|
5372
|
+
{
|
|
5373
|
+
"command": "github.copilot.chat.copilotCLI.addFileReference",
|
|
5374
|
+
"key": "ctrl+shift+.",
|
|
5375
|
+
"mac": "cmd+shift+.",
|
|
5376
|
+
"when": "editorTextFocus"
|
|
5377
|
+
},
|
|
5289
5378
|
{
|
|
5290
5379
|
"command": "github.copilot.chat.rerunWithCopilotDebug",
|
|
5291
5380
|
"key": "ctrl+alt+.",
|
|
@@ -5493,7 +5582,7 @@
|
|
|
5493
5582
|
"inputPlaceholder": "Run local tasks with Claude, type `#` for adding context",
|
|
5494
5583
|
"order": 3,
|
|
5495
5584
|
"description": "%github.copilot.session.providerDescription.claude%",
|
|
5496
|
-
"when": "config.github.copilot.chat.claudeAgent.enabled
|
|
5585
|
+
"when": "config.github.copilot.chat.claudeAgent.enabled",
|
|
5497
5586
|
"canDelegate": true,
|
|
5498
5587
|
"capabilities": {
|
|
5499
5588
|
"supportsFileAttachments": true
|
|
@@ -5693,6 +5782,7 @@
|
|
|
5693
5782
|
"@types/google-protobuf": "^3.15.12",
|
|
5694
5783
|
"@types/js-yaml": "^4.0.9",
|
|
5695
5784
|
"@types/markdown-it": "^14.0.0",
|
|
5785
|
+
"@types/express": "^5.0.6",
|
|
5696
5786
|
"@types/minimist": "^1.2.5",
|
|
5697
5787
|
"@types/mocha": "^10.0.10",
|
|
5698
5788
|
"@types/node": "^22.16.3",
|
|
@@ -5802,7 +5892,9 @@
|
|
|
5802
5892
|
"minimatch": "^10.0.3",
|
|
5803
5893
|
"undici": "^7.18.2",
|
|
5804
5894
|
"vscode-tas-client": "^0.1.84",
|
|
5805
|
-
"web-tree-sitter": "^0.23.0"
|
|
5895
|
+
"web-tree-sitter": "^0.23.0",
|
|
5896
|
+
"express": "^5.2.1",
|
|
5897
|
+
"@modelcontextprotocol/sdk": "^1.25.2"
|
|
5806
5898
|
},
|
|
5807
5899
|
"overrides": {
|
|
5808
5900
|
"@aminya/node-gyp-build": "npm:node-gyp-build@4.8.1",
|
|
@@ -5810,4 +5902,4 @@
|
|
|
5810
5902
|
"node-gyp": "npm:node-gyp@10.3.1",
|
|
5811
5903
|
"zod": "3.25.76"
|
|
5812
5904
|
}
|
|
5813
|
-
}
|
|
5905
|
+
}
|