@vscode/chat-lib 0.3.1-11 → 0.3.1-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 (108) hide show
  1. package/dist/src/_internal/extension/common/constants.d.ts +0 -1
  2. package/dist/src/_internal/extension/common/constants.d.ts.map +1 -1
  3. package/dist/src/_internal/extension/common/constants.js +1 -1
  4. package/dist/src/_internal/extension/common/constants.js.map +1 -1
  5. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/fetch.d.ts +1 -1
  6. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/fetch.d.ts.map +1 -1
  7. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/fetch.js +120 -53
  8. package/dist/src/_internal/extension/completions-core/vscode-node/lib/src/openai/fetch.js.map +1 -1
  9. package/dist/src/_internal/extension/inlineEdits/common/userInteractionMonitor.d.ts +52 -8
  10. package/dist/src/_internal/extension/inlineEdits/common/userInteractionMonitor.d.ts.map +1 -1
  11. package/dist/src/_internal/extension/inlineEdits/common/userInteractionMonitor.js +208 -41
  12. package/dist/src/_internal/extension/inlineEdits/common/userInteractionMonitor.js.map +1 -1
  13. package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.d.ts +11 -0
  14. package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.d.ts.map +1 -1
  15. package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js +35 -19
  16. package/dist/src/_internal/extension/inlineEdits/node/nextEditCache.js.map +1 -1
  17. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts +4 -2
  18. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.d.ts.map +1 -1
  19. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js +39 -12
  20. package/dist/src/_internal/extension/inlineEdits/node/nextEditProvider.js.map +1 -1
  21. package/dist/src/_internal/extension/power/common/powerService.d.ts +22 -0
  22. package/dist/src/_internal/extension/power/common/powerService.d.ts.map +1 -0
  23. package/dist/src/_internal/extension/power/common/powerService.js +20 -0
  24. package/dist/src/_internal/extension/power/common/powerService.js.map +1 -0
  25. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts +4 -1
  26. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.d.ts.map +1 -1
  27. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js +17 -3
  28. package/dist/src/_internal/extension/prompt/node/chatMLFetcher.js.map +1 -1
  29. package/dist/src/_internal/extension/xtab/common/promptCrafting.d.ts.map +1 -1
  30. package/dist/src/_internal/extension/xtab/common/promptCrafting.js +2 -0
  31. package/dist/src/_internal/extension/xtab/common/promptCrafting.js.map +1 -1
  32. package/dist/src/_internal/extension/xtab/node/xtabCustomDiffPatchResponseHandler.d.ts +2 -3
  33. package/dist/src/_internal/extension/xtab/node/xtabCustomDiffPatchResponseHandler.d.ts.map +1 -1
  34. package/dist/src/_internal/extension/xtab/node/xtabCustomDiffPatchResponseHandler.js +2 -1
  35. package/dist/src/_internal/extension/xtab/node/xtabCustomDiffPatchResponseHandler.js.map +1 -1
  36. package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts +30 -0
  37. package/dist/src/_internal/extension/xtab/node/xtabProvider.d.ts.map +1 -1
  38. package/dist/src/_internal/extension/xtab/node/xtabProvider.js +221 -21
  39. package/dist/src/_internal/extension/xtab/node/xtabProvider.js.map +1 -1
  40. package/dist/src/_internal/extension/xtab/node/xtabUtils.d.ts +3 -4
  41. package/dist/src/_internal/extension/xtab/node/xtabUtils.d.ts.map +1 -1
  42. package/dist/src/_internal/extension/xtab/node/xtabUtils.js +33 -38
  43. package/dist/src/_internal/extension/xtab/node/xtabUtils.js.map +1 -1
  44. package/dist/src/_internal/platform/chat/common/commonTypes.d.ts +1 -2
  45. package/dist/src/_internal/platform/chat/common/commonTypes.d.ts.map +1 -1
  46. package/dist/src/_internal/platform/chat/common/commonTypes.js +8 -8
  47. package/dist/src/_internal/platform/chat/common/commonTypes.js.map +1 -1
  48. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts +4 -0
  49. package/dist/src/_internal/platform/configuration/common/configurationService.d.ts.map +1 -1
  50. package/dist/src/_internal/platform/configuration/common/configurationService.js +5 -1
  51. package/dist/src/_internal/platform/configuration/common/configurationService.js.map +1 -1
  52. package/dist/src/_internal/platform/endpoint/node/messagesApi.d.ts.map +1 -1
  53. package/dist/src/_internal/platform/endpoint/node/messagesApi.js +8 -4
  54. package/dist/src/_internal/platform/endpoint/node/messagesApi.js.map +1 -1
  55. package/dist/src/_internal/platform/env/common/envService.d.ts +6 -0
  56. package/dist/src/_internal/platform/env/common/envService.d.ts.map +1 -1
  57. package/dist/src/_internal/platform/env/common/envService.js.map +1 -1
  58. package/dist/src/_internal/platform/env/common/nullEnvService.d.ts +3 -0
  59. package/dist/src/_internal/platform/env/common/nullEnvService.d.ts.map +1 -1
  60. package/dist/src/_internal/platform/env/common/nullEnvService.js +4 -0
  61. package/dist/src/_internal/platform/env/common/nullEnvService.js.map +1 -1
  62. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts +82 -2
  63. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.d.ts.map +1 -1
  64. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js +201 -1
  65. package/dist/src/_internal/platform/inlineEdits/common/dataTypes/xtabPromptOptions.js.map +1 -1
  66. package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.d.ts +1 -2
  67. package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.d.ts.map +1 -1
  68. package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.js +4 -0
  69. package/dist/src/_internal/platform/inlineEdits/common/responseProcessor.js.map +1 -1
  70. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts +13 -0
  71. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.d.ts.map +1 -1
  72. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js +10 -0
  73. package/dist/src/_internal/platform/inlineEdits/common/statelessNextEditProvider.js.map +1 -1
  74. package/dist/src/_internal/platform/nesFetch/node/streamTransformer.d.ts +3 -0
  75. package/dist/src/_internal/platform/nesFetch/node/streamTransformer.d.ts.map +1 -1
  76. package/dist/src/_internal/platform/nesFetch/node/streamTransformer.js +12 -11
  77. package/dist/src/_internal/platform/nesFetch/node/streamTransformer.js.map +1 -1
  78. package/dist/src/_internal/platform/networking/common/networking.d.ts +2 -0
  79. package/dist/src/_internal/platform/networking/common/networking.d.ts.map +1 -1
  80. package/dist/src/_internal/platform/networking/common/networking.js.map +1 -1
  81. package/dist/src/_internal/platform/requestLogger/node/requestLogger.d.ts +24 -0
  82. package/dist/src/_internal/platform/requestLogger/node/requestLogger.d.ts.map +1 -1
  83. package/dist/src/_internal/platform/requestLogger/node/requestLogger.js +51 -1
  84. package/dist/src/_internal/platform/requestLogger/node/requestLogger.js.map +1 -1
  85. package/dist/src/_internal/platform/telemetry/common/telemetry.d.ts +2 -0
  86. package/dist/src/_internal/platform/telemetry/common/telemetry.d.ts.map +1 -1
  87. package/dist/src/_internal/platform/telemetry/common/telemetry.js +1 -0
  88. package/dist/src/_internal/platform/telemetry/common/telemetry.js.map +1 -1
  89. package/dist/src/_internal/platform/telemetry/common/telemetryData.d.ts.map +1 -1
  90. package/dist/src/_internal/platform/telemetry/common/telemetryData.js +3 -0
  91. package/dist/src/_internal/platform/telemetry/common/telemetryData.js.map +1 -1
  92. package/dist/src/_internal/util/common/test/shims/themes.d.ts +13 -0
  93. package/dist/src/_internal/util/common/test/shims/themes.d.ts.map +1 -0
  94. package/dist/src/_internal/util/common/test/shims/themes.js +27 -0
  95. package/dist/src/_internal/util/common/test/shims/themes.js.map +1 -0
  96. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.d.ts.map +1 -1
  97. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js +3 -1
  98. package/dist/src/_internal/util/common/test/shims/vscodeTypesShim.js.map +1 -1
  99. package/dist/src/_internal/vscodeTypes.d.ts +1 -0
  100. package/dist/src/_internal/vscodeTypes.d.ts.map +1 -1
  101. package/dist/src/_internal/vscodeTypes.js +3 -1
  102. package/dist/src/_internal/vscodeTypes.js.map +1 -1
  103. package/dist/src/main.d.ts +2 -1
  104. package/dist/src/main.d.ts.map +1 -1
  105. package/dist/src/main.js +3 -0
  106. package/dist/src/main.js.map +1 -1
  107. package/dist/src/package.json +149 -85
  108. 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-20260124",
26
+ "vscode": "^1.110.0",
27
27
  "npm": ">=9.0.0",
28
28
  "node": ">=22.14.0"
29
29
  },
@@ -89,7 +89,8 @@
89
89
  "main": "./dist/extension",
90
90
  "l10n": "./l10n",
91
91
  "enabledApiProposals": [
92
- "chatHooks@1",
92
+ "agentSessionsWorkspace",
93
+ "chatHooks@2",
93
94
  "extensionsAny",
94
95
  "newSymbolNamesProvider",
95
96
  "interactive",
@@ -142,7 +143,8 @@
142
143
  "chatPromptFiles",
143
144
  "mcpServerDefinitions",
144
145
  "tabInputMultiDiff",
145
- "workspaceTrust"
146
+ "workspaceTrust",
147
+ "environmentPower"
146
148
  ],
147
149
  "contributes": {
148
150
  "languageModelTools": [
@@ -1379,6 +1381,87 @@
1379
1381
  "What does this file do?"
1380
1382
  ]
1381
1383
  }
1384
+ ],
1385
+ "commands": [
1386
+ {
1387
+ "name": "explain",
1388
+ "description": "%copilot.workspace.explain.description%"
1389
+ },
1390
+ {
1391
+ "name": "review",
1392
+ "description": "%copilot.workspace.review.description%",
1393
+ "when": "github.copilot.advanced.review.intent"
1394
+ },
1395
+ {
1396
+ "name": "tests",
1397
+ "description": "%copilot.workspace.tests.description%",
1398
+ "disambiguation": [
1399
+ {
1400
+ "category": "create_tests",
1401
+ "description": "The user wants to generate unit tests.",
1402
+ "examples": [
1403
+ "Generate tests for my selection using pytest."
1404
+ ]
1405
+ }
1406
+ ]
1407
+ },
1408
+ {
1409
+ "name": "fix",
1410
+ "description": "%copilot.workspace.fix.description%",
1411
+ "sampleRequest": "%copilot.workspace.fix.sampleRequest%"
1412
+ },
1413
+ {
1414
+ "name": "new",
1415
+ "description": "%copilot.workspace.new.description%",
1416
+ "sampleRequest": "%copilot.workspace.new.sampleRequest%",
1417
+ "isSticky": true,
1418
+ "disambiguation": [
1419
+ {
1420
+ "category": "create_new_workspace_or_extension",
1421
+ "description": "The user wants to create a complete Visual Studio Code workspace from scratch, such as a new application or a Visual Studio Code extension. Use this category only if the question relates to generating or creating new workspaces in Visual Studio Code. Do not use this category for updating existing code or generating sample code snippets",
1422
+ "examples": [
1423
+ "Scaffold a Node server.",
1424
+ "Create a sample project which uses the fileSystemProvider API.",
1425
+ "react application"
1426
+ ]
1427
+ }
1428
+ ]
1429
+ },
1430
+ {
1431
+ "name": "newNotebook",
1432
+ "description": "%copilot.workspace.newNotebook.description%",
1433
+ "sampleRequest": "%copilot.workspace.newNotebook.sampleRequest%",
1434
+ "disambiguation": [
1435
+ {
1436
+ "category": "create_jupyter_notebook",
1437
+ "description": "The user wants to create a new Jupyter notebook in Visual Studio Code.",
1438
+ "examples": [
1439
+ "Create a notebook to analyze this CSV file."
1440
+ ]
1441
+ }
1442
+ ]
1443
+ },
1444
+ {
1445
+ "name": "semanticSearch",
1446
+ "description": "%copilot.workspace.semanticSearch.description%",
1447
+ "sampleRequest": "%copilot.workspace.semanticSearch.sampleRequest%",
1448
+ "when": "config.github.copilot.semanticSearch.enabled"
1449
+ },
1450
+ {
1451
+ "name": "setupTests",
1452
+ "description": "%copilot.vscode.setupTests.description%",
1453
+ "sampleRequest": "%copilot.vscode.setupTests.sampleRequest%",
1454
+ "when": "config.github.copilot.chat.setupTests.enabled",
1455
+ "disambiguation": [
1456
+ {
1457
+ "category": "set_up_tests",
1458
+ "description": "The user wants to configure project test setup, framework, or test runner. The user does not want to fix their existing tests.",
1459
+ "examples": [
1460
+ "Set up tests for this project."
1461
+ ]
1462
+ }
1463
+ ]
1464
+ }
1382
1465
  ]
1383
1466
  },
1384
1467
  {
@@ -1511,85 +1594,7 @@
1511
1594
  "name": "error",
1512
1595
  "description": "Make a model request which will result in an error",
1513
1596
  "when": "github.copilot.chat.debug"
1514
- }
1515
- ]
1516
- },
1517
- {
1518
- "id": "github.copilot.notebook",
1519
- "name": "GitHubCopilot",
1520
- "fullName": "GitHub Copilot",
1521
- "description": "%copilot.description%",
1522
- "isDefault": true,
1523
- "locations": [
1524
- "notebook"
1525
- ],
1526
- "when": "!config.inlineChat.notebookAgent",
1527
- "commands": [
1528
- {
1529
- "name": "fix",
1530
- "description": "%copilot.workspace.fix.description%"
1531
1597
  },
1532
- {
1533
- "name": "explain",
1534
- "description": "%copilot.workspace.explain.description%"
1535
- }
1536
- ]
1537
- },
1538
- {
1539
- "id": "github.copilot.notebookEditorAgent",
1540
- "name": "GitHubCopilot",
1541
- "fullName": "GitHub Copilot",
1542
- "description": "%copilot.description%",
1543
- "isDefault": true,
1544
- "locations": [
1545
- "notebook"
1546
- ],
1547
- "when": "config.inlineChat.notebookAgent",
1548
- "commands": [
1549
- {
1550
- "name": "fix",
1551
- "description": "%copilot.workspace.fix.description%"
1552
- },
1553
- {
1554
- "name": "explain",
1555
- "description": "%copilot.workspace.explain.description%"
1556
- }
1557
- ]
1558
- },
1559
- {
1560
- "id": "github.copilot.workspace",
1561
- "name": "workspace",
1562
- "fullName": "Workspace",
1563
- "description": "%copilot.workspace.description%",
1564
- "when": "!github.copilot.interactiveSession.disabled",
1565
- "sampleRequest": "%copilot.workspace.sampleRequest%",
1566
- "locations": [
1567
- "panel"
1568
- ],
1569
- "disambiguation": [
1570
- {
1571
- "category": "workspace_project_questions",
1572
- "description": "The user wants to learn about or update the code or files in their current workspace. Questions in this category may be about understanding what the whole workspace does or locating the implementation of some code. This does not include generating or updating tests.",
1573
- "examples": [
1574
- "What does this project do?"
1575
- ]
1576
- },
1577
- {
1578
- "category": "find_code_in_workspace",
1579
- "description": "The user wants to locate the implementation of some functionality in their current workspace.",
1580
- "examples": [
1581
- "Where is the tree widget implemented?"
1582
- ]
1583
- },
1584
- {
1585
- "category": "generate_with_workspace_context",
1586
- "description": "The user wants to generate code based on multiple files in the workspace and did not specify which files to reference.",
1587
- "examples": [
1588
- "Create a README for this project."
1589
- ]
1590
- }
1591
- ],
1592
- "commands": [
1593
1598
  {
1594
1599
  "name": "explain",
1595
1600
  "description": "%copilot.workspace.explain.description%"
@@ -1671,6 +1676,48 @@
1671
1676
  }
1672
1677
  ]
1673
1678
  },
1679
+ {
1680
+ "id": "github.copilot.notebook",
1681
+ "name": "GitHubCopilot",
1682
+ "fullName": "GitHub Copilot",
1683
+ "description": "%copilot.description%",
1684
+ "isDefault": true,
1685
+ "locations": [
1686
+ "notebook"
1687
+ ],
1688
+ "when": "!config.inlineChat.notebookAgent",
1689
+ "commands": [
1690
+ {
1691
+ "name": "fix",
1692
+ "description": "%copilot.workspace.fix.description%"
1693
+ },
1694
+ {
1695
+ "name": "explain",
1696
+ "description": "%copilot.workspace.explain.description%"
1697
+ }
1698
+ ]
1699
+ },
1700
+ {
1701
+ "id": "github.copilot.notebookEditorAgent",
1702
+ "name": "GitHubCopilot",
1703
+ "fullName": "GitHub Copilot",
1704
+ "description": "%copilot.description%",
1705
+ "isDefault": true,
1706
+ "locations": [
1707
+ "notebook"
1708
+ ],
1709
+ "when": "config.inlineChat.notebookAgent",
1710
+ "commands": [
1711
+ {
1712
+ "name": "fix",
1713
+ "description": "%copilot.workspace.fix.description%"
1714
+ },
1715
+ {
1716
+ "name": "explain",
1717
+ "description": "%copilot.workspace.explain.description%"
1718
+ }
1719
+ ]
1720
+ },
1674
1721
  {
1675
1722
  "id": "github.copilot.vscode",
1676
1723
  "name": "vscode",
@@ -4289,6 +4336,14 @@
4289
4336
  "onExp"
4290
4337
  ]
4291
4338
  },
4339
+ "github.copilot.chat.searchSubagent.useAgenticProxy": {
4340
+ "type": "boolean",
4341
+ "default": false,
4342
+ "markdownDescription": "%github.copilot.config.searchSubagent.useAgenticProxy%",
4343
+ "tags": [
4344
+ "advanced"
4345
+ ]
4346
+ },
4292
4347
  "github.copilot.chat.searchSubagent.model": {
4293
4348
  "type": "string",
4294
4349
  "default": "",
@@ -5522,7 +5577,16 @@
5522
5577
  {
5523
5578
  "path": "./assets/prompts/init.prompt.md"
5524
5579
  }
5525
- ]
5580
+ ],
5581
+ "terminal": {
5582
+ "profiles": [
5583
+ {
5584
+ "icon": "copilot",
5585
+ "id": "copilot-cli",
5586
+ "title": "GitHub Copilot CLI"
5587
+ }
5588
+ ]
5589
+ }
5526
5590
  },
5527
5591
  "prettier": {
5528
5592
  "useTabs": true,
@@ -5668,10 +5732,10 @@
5668
5732
  "zod": "3.25.76"
5669
5733
  },
5670
5734
  "dependencies": {
5671
- "@anthropic-ai/claude-agent-sdk": "0.2.5",
5672
- "@anthropic-ai/sdk": "^0.71.2",
5735
+ "@anthropic-ai/claude-agent-sdk": "0.2.31",
5736
+ "@anthropic-ai/sdk": "^0.72.1",
5673
5737
  "@github/blackbird-external-ingest-utils": "^0.2.0",
5674
- "@github/copilot": "^0.0.400",
5738
+ "@github/copilot": "^0.0.403",
5675
5739
  "@google/genai": "^1.22.0",
5676
5740
  "@humanwhocodes/gitignore-to-minimatch": "1.0.2",
5677
5741
  "@microsoft/tiktokenizer": "^1.0.10",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/chat-lib",
3
- "version": "0.3.1-11",
3
+ "version": "0.3.1-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",
@@ -30,7 +30,7 @@
30
30
  "yaml": "^2.8.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@anthropic-ai/sdk": "^0.71.2",
33
+ "@anthropic-ai/sdk": "^0.72.1",
34
34
  "@octokit/types": "^14.1.0",
35
35
  "@types/node": "^22.16.3",
36
36
  "@types/vscode": "^1.108.1",