@vscode/chat-lib 0.4.1-0 → 0.4.1-2

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 (42) hide show
  1. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts.map +1 -1
  2. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js +3 -2
  3. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js.map +1 -1
  4. package/dist/src/_internal/extension/power/common/powerService.d.ts +11 -0
  5. package/dist/src/_internal/extension/power/common/powerService.d.ts.map +1 -1
  6. package/dist/src/_internal/extension/power/common/powerService.js +5 -0
  7. package/dist/src/_internal/extension/power/common/powerService.js.map +1 -1
  8. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts.map +1 -1
  9. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js +95 -8
  10. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js.map +1 -1
  11. package/dist/src/_internal/extension/prompt/node/chatMLFetcherTelemetry.d.ts +23 -3
  12. package/dist/src/_internal/extension/prompt/node/chatMLFetcherTelemetry.d.ts.map +1 -1
  13. package/dist/src/_internal/extension/prompt/node/chatMLFetcherTelemetry.js +21 -9
  14. package/dist/src/_internal/extension/prompt/node/chatMLFetcherTelemetry.js.map +1 -1
  15. package/dist/src/_internal/platform/authentication/node/copilotTokenManager.js +1 -1
  16. package/dist/src/_internal/platform/authentication/node/copilotTokenManager.js.map +1 -1
  17. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +7 -12
  18. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -1
  19. package/dist/src/_internal/platform/configuration/common/configurationService.js +7 -4
  20. package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -1
  21. package/dist/src/_internal/platform/endpoint/common/chatModelCapabilities.d.ts +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 -4
  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 +6 -1
  28. package/dist/src/_internal/platform/endpoint/node/messagesApi.d.ts.map +1 -1
  29. package/dist/src/_internal/platform/endpoint/node/messagesApi.js +47 -9
  30. package/dist/src/_internal/platform/endpoint/node/messagesApi.js.map +1 -1
  31. package/dist/src/_internal/platform/endpoint/node/responsesApi.d.ts.map +1 -1
  32. package/dist/src/_internal/platform/endpoint/node/responsesApi.js +16 -2
  33. package/dist/src/_internal/platform/endpoint/node/responsesApi.js.map +1 -1
  34. package/dist/src/_internal/platform/github/common/githubService.d.ts +2 -1
  35. package/dist/src/_internal/platform/github/common/githubService.d.ts.map +1 -1
  36. package/dist/src/_internal/platform/github/common/githubService.js.map +1 -1
  37. package/dist/src/_internal/platform/networking/common/anthropic.d.ts +7 -15
  38. package/dist/src/_internal/platform/networking/common/anthropic.d.ts.map +1 -1
  39. package/dist/src/_internal/platform/networking/common/anthropic.js +20 -35
  40. package/dist/src/_internal/platform/networking/common/anthropic.js.map +1 -1
  41. package/dist/src/package.json +66 -143
  42. package/package.json +1 -1
@@ -699,11 +699,11 @@
699
699
  }
700
700
  },
701
701
  {
702
- "name": "copilot_openSimpleBrowser",
703
- "displayName": "%copilot.tools.openSimpleBrowser.name%",
704
- "modelDescription": "Preview a website or open a URL in the editor's Simple Browser. Useful for quickly viewing locally hosted websites, demos, or resources without leaving the coding environment.",
705
- "userDescription": "%copilot.tools.openSimpleBrowser.description%",
706
- "toolReferenceName": "openSimpleBrowser",
702
+ "name": "copilot_openIntegratedBrowser",
703
+ "displayName": "%copilot.tools.openIntegratedBrowser.name%",
704
+ "modelDescription": "Preview a website or open a URL in the editor's Integrated Browser. Useful for quickly viewing locally hosted websites, demos, or resources without leaving the coding environment.",
705
+ "userDescription": "%copilot.tools.openIntegratedBrowser.description%",
706
+ "toolReferenceName": "openIntegratedBrowser",
707
707
  "legacyToolReferenceFullNames": [
708
708
  "openSimpleBrowser"
709
709
  ],
@@ -713,7 +713,7 @@
713
713
  "properties": {
714
714
  "url": {
715
715
  "type": "string",
716
- "description": "The website URL to preview or open in the Simple Browser inside the editor. Must be either an http or https URL"
716
+ "description": "The website URL to preview or open in the Integrated Browser inside the editor. Must be either an http or https URL"
717
717
  }
718
718
  },
719
719
  "required": [
@@ -1087,83 +1087,6 @@
1087
1087
  }
1088
1088
  }
1089
1089
  },
1090
- {
1091
- "name": "copilot_askQuestions",
1092
- "toolReferenceName": "askQuestions",
1093
- "displayName": "%copilot.tools.askQuestions.name%",
1094
- "userDescription": "%copilot.tools.askQuestions.description%",
1095
- "modelDescription": "Ask the user questions to clarify intent, validate assumptions, or choose between implementation approaches. Prefer proposing a sensible default so users can confirm quickly.\n\nOnly use this tool when the user's answer provides information you cannot determine or reasonably assume yourself. This tool is for gathering information, not for reporting status or problems. If a question has an obvious best answer, take that action instead of asking.\n\nWhen to use:\n- Clarify ambiguous requirements before proceeding\n- Get user preferences on implementation choices\n- Confirm decisions that meaningfully affect outcome\n\nWhen NOT to use:\n- The answer is determinable from code or context\n- Asking for permission to continue or abort\n- Confirming something you can reasonably decide yourself\n- Reporting a problem (instead, attempt to resolve it)\n\nQuestion guidelines:\n- NEVER use `recommended` for quizzes or polls. Recommended options are PRE-SELECTED and visible to users, which would reveal answers\n- Batch related questions into a single call (max 4 questions, 2-6 options each; omit options for free text input)\n- Provide brief context explaining what is being decided and why\n- Only mark an option as `recommended` with a short justification to suggest YOUR preferred implementation choice\n- Keep options mutually exclusive for single-select; use `multiSelect: true` only when choices are additive and phrase the question accordingly\n\nAfter receiving answers:\n- Incorporate decisions and continue without re-asking unless requirements change\n\nAn \"Other\" option is automatically shown to users—do not add your own.",
1096
- "icon": "$(question)",
1097
- "when": "config.github.copilot.chat.askQuestions.enabled",
1098
- "inputSchema": {
1099
- "type": "object",
1100
- "properties": {
1101
- "questions": {
1102
- "type": "array",
1103
- "description": "Array of 1-4 questions to ask the user",
1104
- "minItems": 1,
1105
- "maxItems": 4,
1106
- "items": {
1107
- "type": "object",
1108
- "properties": {
1109
- "header": {
1110
- "type": "string",
1111
- "description": "A short label (max 12 chars) displayed as a quick pick header, also used as the unique identifier for the question",
1112
- "maxLength": 12
1113
- },
1114
- "question": {
1115
- "type": "string",
1116
- "description": "The complete question text to display"
1117
- },
1118
- "multiSelect": {
1119
- "type": "boolean",
1120
- "description": "Allow multiple selections",
1121
- "default": false
1122
- },
1123
- "options": {
1124
- "type": "array",
1125
- "description": "0-6 options for the user to choose from. If empty or omitted, shows a free text input instead.",
1126
- "minItems": 0,
1127
- "maxItems": 6,
1128
- "items": {
1129
- "type": "object",
1130
- "properties": {
1131
- "label": {
1132
- "type": "string",
1133
- "description": "Option label text"
1134
- },
1135
- "description": {
1136
- "type": "string",
1137
- "description": "Optional description for the option"
1138
- },
1139
- "recommended": {
1140
- "type": "boolean",
1141
- "description": "Mark this option as recommended"
1142
- }
1143
- },
1144
- "required": [
1145
- "label"
1146
- ]
1147
- }
1148
- },
1149
- "allowFreeformInput": {
1150
- "type": "boolean",
1151
- "description": "When true, allows user to enter free-form text in addition to selecting options. Use when the user's opinion or custom input would be valuable.",
1152
- "default": false
1153
- }
1154
- },
1155
- "required": [
1156
- "header",
1157
- "question"
1158
- ]
1159
- }
1160
- }
1161
- },
1162
- "required": [
1163
- "questions"
1164
- ]
1165
- }
1166
- },
1167
1090
  {
1168
1091
  "name": "copilot_switchAgent",
1169
1092
  "toolReferenceName": "switchAgent",
@@ -1326,7 +1249,7 @@
1326
1249
  "installExtension",
1327
1250
  "memory",
1328
1251
  "newWorkspace",
1329
- "openSimpleBrowser",
1252
+ "openIntegratedBrowser",
1330
1253
  "runCommand",
1331
1254
  "askQuestions",
1332
1255
  "switchAgent",
@@ -1819,7 +1742,8 @@
1819
1742
  },
1820
1743
  {
1821
1744
  "vendor": "copilotcli",
1822
- "displayName": "Copilot CLI"
1745
+ "displayName": "Copilot CLI",
1746
+ "when": "false"
1823
1747
  },
1824
1748
  {
1825
1749
  "vendor": "anthropic",
@@ -2508,6 +2432,11 @@
2508
2432
  "icon": "$(inspect)",
2509
2433
  "category": "Developer"
2510
2434
  },
2435
+ {
2436
+ "command": "github.copilot.debug.extensionState",
2437
+ "title": "%github.copilot.command.extensionState%",
2438
+ "category": "Developer"
2439
+ },
2511
2440
  {
2512
2441
  "command": "github.copilot.chat.tools.memory.showMemories",
2513
2442
  "title": "%github.copilot.command.showMemories%",
@@ -2983,7 +2912,7 @@
2983
2912
  },
2984
2913
  "github.copilot.nextEditSuggestions.enabled": {
2985
2914
  "type": "boolean",
2986
- "default": false,
2915
+ "default": true,
2987
2916
  "tags": [
2988
2917
  "nextEditSuggestions",
2989
2918
  "onExp"
@@ -3257,6 +3186,14 @@
3257
3186
  "preview",
3258
3187
  "onExp"
3259
3188
  ]
3189
+ },
3190
+ "github.copilot.chat.anthropic.toolSearchTool.enabled": {
3191
+ "type": "boolean",
3192
+ "default": true,
3193
+ "markdownDescription": "%github.copilot.config.anthropic.toolSearchTool.enabled%",
3194
+ "tags": [
3195
+ "preview"
3196
+ ]
3260
3197
  }
3261
3198
  }
3262
3199
  },
@@ -3750,13 +3687,18 @@
3750
3687
  "onExp"
3751
3688
  ]
3752
3689
  },
3753
- "github.copilot.chat.anthropic.toolSearchTool.enabled": {
3754
- "type": "boolean",
3755
- "default": true,
3756
- "markdownDescription": "%github.copilot.config.anthropic.toolSearchTool.enabled%",
3690
+ "github.copilot.chat.anthropic.contextEditing.mode": {
3691
+ "type": "string",
3692
+ "default": "clear-thinking",
3693
+ "markdownDescription": "%github.copilot.config.anthropic.contextEditing.mode%",
3757
3694
  "tags": [
3758
3695
  "experimental",
3759
3696
  "onExp"
3697
+ ],
3698
+ "enum": [
3699
+ "clear-thinking",
3700
+ "clear-tooluse",
3701
+ "clear-both"
3760
3702
  ]
3761
3703
  },
3762
3704
  "github.copilot.chat.responsesApiReasoningEffort": {
@@ -3771,6 +3713,7 @@
3771
3713
  "low",
3772
3714
  "medium",
3773
3715
  "high",
3716
+ "xhigh",
3774
3717
  "default"
3775
3718
  ]
3776
3719
  },
@@ -3796,6 +3739,15 @@
3796
3739
  "onExp"
3797
3740
  ]
3798
3741
  },
3742
+ "github.copilot.chat.updated53CodexPrompt.enabled": {
3743
+ "type": "boolean",
3744
+ "default": false,
3745
+ "markdownDescription": "%github.copilot.config.updated53CodexPrompt.enabled%",
3746
+ "tags": [
3747
+ "experimental",
3748
+ "onExp"
3749
+ ]
3750
+ },
3799
3751
  "github.copilot.chat.anthropic.tools.websearch.enabled": {
3800
3752
  "type": "boolean",
3801
3753
  "default": false,
@@ -3952,52 +3904,6 @@
3952
3904
  {
3953
3905
  "id": "advanced",
3954
3906
  "properties": {
3955
- "github.copilot.chat.anthropic.contextEditing.config": {
3956
- "type": "object",
3957
- "default": null,
3958
- "markdownDescription": "%github.copilot.config.anthropic.contextEditing.config%",
3959
- "tags": [
3960
- "advanced",
3961
- "experimental"
3962
- ],
3963
- "properties": {
3964
- "triggerType": {
3965
- "type": "string",
3966
- "enum": [
3967
- "input_tokens",
3968
- "tool_uses"
3969
- ],
3970
- "description": "Type of trigger for context editing"
3971
- },
3972
- "triggerValue": {
3973
- "type": "number",
3974
- "description": "Threshold value for the trigger (default: 80000 tokens)"
3975
- },
3976
- "keepCount": {
3977
- "type": "number",
3978
- "description": "Number of recent tool uses to keep (default: 3)"
3979
- },
3980
- "clearAtLeastTokens": {
3981
- "type": "number",
3982
- "description": "Minimum tokens to clear per edit (default: 10000)"
3983
- },
3984
- "excludeTools": {
3985
- "type": "array",
3986
- "items": {
3987
- "type": "string"
3988
- },
3989
- "description": "Tool names to exclude from clearing"
3990
- },
3991
- "clearInputs": {
3992
- "type": "boolean",
3993
- "description": "Whether to clear tool inputs (default: true)"
3994
- },
3995
- "thinkingKeepTurns": {
3996
- "type": "number",
3997
- "description": "Number of thinking turns to keep (default: 1)"
3998
- }
3999
- }
4000
- },
4001
3907
  "github.copilot.chat.debug.overrideChatEngine": {
4002
3908
  "type": [
4003
3909
  "string",
@@ -4466,6 +4372,15 @@
4466
4372
  "experimental"
4467
4373
  ]
4468
4374
  },
4375
+ "github.copilot.chat.cli.planMode.enabled": {
4376
+ "type": "boolean",
4377
+ "default": false,
4378
+ "markdownDescription": "%github.copilot.config.cli.planMode.enabled%",
4379
+ "tags": [
4380
+ "advanced",
4381
+ "experimental"
4382
+ ]
4383
+ },
4469
4384
  "github.copilot.chat.cli.mcp.enabled": {
4470
4385
  "type": "boolean",
4471
4386
  "default": false,
@@ -4670,12 +4585,12 @@
4670
4585
  "chat/editor/inlineGutter": [
4671
4586
  {
4672
4587
  "command": "github.copilot.chat.explain",
4673
- "when": "!github.copilot.interactiveSession.disabled && editor.hasSelection",
4588
+ "when": "!github.copilot.interactiveSession.disabled && editor.hasSelection && !inlineChatFileBelongsToChat",
4674
4589
  "group": "2_chat@2"
4675
4590
  },
4676
4591
  {
4677
4592
  "command": "github.copilot.chat.review",
4678
- "when": "!github.copilot.interactiveSession.disabled && editor.hasSelection && config.github.copilot.chat.reviewSelection.enabled",
4593
+ "when": "!github.copilot.interactiveSession.disabled && editor.hasSelection && config.github.copilot.chat.reviewSelection.enabled && !inlineChatFileBelongsToChat",
4679
4594
  "group": "2_chat@3"
4680
4595
  }
4681
4596
  ],
@@ -4717,6 +4632,10 @@
4717
4632
  }
4718
4633
  ],
4719
4634
  "commandPalette": [
4635
+ {
4636
+ "command": "github.copilot.debug.extensionState",
4637
+ "when": "false"
4638
+ },
4720
4639
  {
4721
4640
  "command": "github.copilot.cli.sessions.commitToWorktree",
4722
4641
  "when": "false"
@@ -5736,6 +5655,10 @@
5736
5655
  {
5737
5656
  "name": "memory",
5738
5657
  "description": "Open memory files (CLAUDE.md) for editing"
5658
+ },
5659
+ {
5660
+ "name": "compact",
5661
+ "description": "Compact the conversation history to save context tokens"
5739
5662
  }
5740
5663
  ]
5741
5664
  },
@@ -5982,7 +5905,7 @@
5982
5905
  "shiki": "~1.15.0",
5983
5906
  "sinon": "^21.0.0",
5984
5907
  "source-map-support": "^0.5.21",
5985
- "tar": "^7.5.7",
5908
+ "tar": "^7.5.8",
5986
5909
  "ts-dedent": "^2.2.0",
5987
5910
  "tsx": "^4.20.3",
5988
5911
  "typescript": "^5.8.3",
@@ -5999,10 +5922,10 @@
5999
5922
  "zod": "3.25.76"
6000
5923
  },
6001
5924
  "dependencies": {
6002
- "@anthropic-ai/claude-agent-sdk": "^0.2.42",
5925
+ "@anthropic-ai/claude-agent-sdk": "^0.2.44",
6003
5926
  "@anthropic-ai/sdk": "^0.74.0",
6004
- "@github/blackbird-external-ingest-utils": "^0.2.0",
6005
- "@github/copilot": "^0.0.406",
5927
+ "@github/blackbird-external-ingest-utils": "^0.3.0",
5928
+ "@github/copilot": "^0.0.411",
6006
5929
  "@google/genai": "^1.22.0",
6007
5930
  "@humanwhocodes/gitignore-to-minimatch": "1.0.2",
6008
5931
  "@microsoft/tiktokenizer": "^1.0.10",
@@ -6037,4 +5960,4 @@
6037
5960
  "node-gyp": "npm:node-gyp@10.3.1",
6038
5961
  "zod": "3.25.76"
6039
5962
  }
6040
- }
5963
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/chat-lib",
3
- "version": "0.4.1-0",
3
+ "version": "0.4.1-2",
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",