@codingame/monaco-vscode-api 34.1.3 → 35.0.1

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 (792) hide show
  1. package/missing-services.js +261 -19
  2. package/package.json +8 -8
  3. package/services.d.ts +14 -0
  4. package/services.js +17 -3
  5. package/vscode/product.json.js +1 -1
  6. package/vscode/src/vs/base/browser/markdownRenderer.d.ts +2 -0
  7. package/vscode/src/vs/base/browser/markdownRenderer.js +52 -44
  8. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +4 -2
  9. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  10. package/vscode/src/vs/base/browser/ui/dialog/dialog.d.ts +7 -0
  11. package/vscode/src/vs/base/browser/ui/dialog/dialog.js +4 -0
  12. package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +5 -0
  13. package/vscode/src/vs/base/browser/ui/list/list.d.ts +1 -0
  14. package/vscode/src/vs/base/browser/ui/list/list.js +3 -0
  15. package/vscode/src/vs/base/browser/ui/list/listView.d.ts +1 -0
  16. package/vscode/src/vs/base/browser/ui/list/listView.js +9 -5
  17. package/vscode/src/vs/base/browser/ui/splitview/paneview.css +3 -2
  18. package/vscode/src/vs/base/browser/ui/splitview/paneview.d.ts +27 -0
  19. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +22 -4
  20. package/vscode/src/vs/base/common/async.d.ts +30 -0
  21. package/vscode/src/vs/base/common/async.js +22 -4
  22. package/vscode/src/vs/base/common/codicons.d.ts +9 -0
  23. package/vscode/src/vs/base/common/codiconsLibrary.d.ts +9 -0
  24. package/vscode/src/vs/base/common/codiconsLibrary.js +9 -0
  25. package/vscode/src/vs/base/common/defaultAccount.d.ts +9 -20
  26. package/vscode/src/vs/base/common/managedSettings.d.ts +32 -0
  27. package/vscode/src/vs/base/common/managedSettings.js +30 -0
  28. package/vscode/src/vs/base/common/map.d.ts +6 -0
  29. package/vscode/src/vs/base/common/map.js +62 -8
  30. package/vscode/src/vs/base/common/numbers.d.ts +4 -0
  31. package/vscode/src/vs/base/common/numbers.js +13 -1
  32. package/vscode/src/vs/base/common/policy.d.ts +41 -0
  33. package/vscode/src/vs/base/common/product.d.ts +32 -3
  34. package/vscode/src/vs/base/common/uriTemplate.js +1 -1
  35. package/vscode/src/vs/base/common/uuid.d.ts +1 -1
  36. package/vscode/src/vs/base/common/yaml.d.ts +1 -0
  37. package/vscode/src/vs/base/common/yaml.js +80 -1
  38. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +1 -0
  39. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.d.ts +2 -0
  40. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +10 -0
  41. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.d.ts +3 -1
  42. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +2 -1
  43. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.d.ts +15 -0
  44. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +12 -6
  45. package/vscode/src/vs/editor/common/languages.js +0 -1
  46. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +1 -0
  47. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParticipantUtils.d.ts +2 -2
  48. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParticipantUtils.js +10 -2
  49. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.d.ts +2 -2
  50. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.js +2 -2
  51. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.d.ts +1 -0
  52. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.js +3 -1
  53. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +1 -1
  54. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +36 -21
  55. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.d.ts +1 -0
  56. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +10 -0
  57. package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.d.ts +1 -0
  58. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +7 -2
  59. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.d.ts +1 -0
  60. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +1 -0
  61. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.css +2 -0
  62. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +1 -3
  63. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +0 -5
  64. package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLineCommand.js +0 -6
  65. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +5 -1
  66. package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css +6 -2
  67. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +1 -0
  68. package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +4 -1
  69. package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +3 -0
  70. package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +77 -1
  71. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +163 -17
  72. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +162 -4
  73. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +2 -0
  74. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +27 -12
  75. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.service.d.ts +11 -0
  76. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +9 -1
  77. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +13 -0
  78. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
  79. package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
  80. package/vscode/src/vs/platform/actions/common/actions.d.ts +8 -0
  81. package/vscode/src/vs/platform/actions/common/actions.js +12 -0
  82. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  83. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  84. package/vscode/src/vs/platform/agentHost/browser/nullAgentHostService.d.ts +7 -2
  85. package/vscode/src/vs/platform/agentHost/browser/nullAgentHostService.js +11 -0
  86. package/vscode/src/vs/platform/agentHost/common/agentHostConnectionsService.d.ts +55 -0
  87. package/vscode/src/vs/platform/agentHost/common/agentHostConnectionsService.js +6 -0
  88. package/vscode/src/vs/platform/agentHost/common/agentHostConnectionsService.service.d.ts +56 -0
  89. package/vscode/src/vs/platform/agentHost/common/agentHostConnectionsService.service.js +6 -0
  90. package/vscode/src/vs/platform/agentHost/common/agentHostMcpServer.d.ts +15 -0
  91. package/vscode/src/vs/platform/agentHost/common/agentHostSessionType.d.ts +37 -0
  92. package/vscode/src/vs/platform/agentHost/common/agentHostSessionType.js +45 -0
  93. package/vscode/src/vs/platform/agentHost/common/agentHostUri.d.ts +15 -8
  94. package/vscode/src/vs/platform/agentHost/common/agentHostUri.js +37 -27
  95. package/vscode/src/vs/platform/agentHost/common/agentServerTools.d.ts +38 -0
  96. package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +39 -5
  97. package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.d.ts +8 -2
  98. package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.js +8 -20
  99. package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.service.d.ts +9 -0
  100. package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +18 -6
  101. package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +2 -0
  102. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-annotations/actions.d.ts +131 -0
  103. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-annotations/state.d.ts +110 -0
  104. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/actions.d.ts +21 -0
  105. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/state.d.ts +28 -8
  106. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/state.js +1 -0
  107. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/actions.d.ts +584 -0
  108. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/commands.d.ts +42 -0
  109. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/state.d.ts +1157 -0
  110. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/state.js +119 -0
  111. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-root/notifications.d.ts +80 -5
  112. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-root/state.d.ts +48 -3
  113. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/actions.d.ts +117 -489
  114. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/commands.d.ts +25 -20
  115. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/state.d.ts +301 -937
  116. package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/state.js +7 -100
  117. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +1 -0
  118. package/vscode/src/vs/platform/agentHost/common/state/protocol/common/actions.d.ts +43 -29
  119. package/vscode/src/vs/platform/agentHost/common/state/protocol/common/actions.js +38 -26
  120. package/vscode/src/vs/platform/agentHost/common/state/protocol/common/messages.d.ts +13 -1
  121. package/vscode/src/vs/platform/agentHost/common/state/protocol/common/state.d.ts +17 -5
  122. package/vscode/src/vs/platform/agentHost/common/state/protocol/mcpAppDefaults.d.ts +30 -0
  123. package/vscode/src/vs/platform/agentHost/common/state/protocol/mcpAppDefaults.js +12 -0
  124. package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +2 -0
  125. package/vscode/src/vs/platform/agentHost/common/state/protocolUpgrade.d.ts +10 -0
  126. package/vscode/src/vs/platform/agentHost/common/state/protocolUpgrade.js +19 -0
  127. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +3 -2
  128. package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +258 -5
  129. package/vscode/src/vs/platform/agentHost/common/state/sessionState.js +84 -7
  130. package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.d.ts +36 -3
  131. package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.js +58 -27
  132. package/vscode/src/vs/platform/browserView/common/browserHistory.js +4 -2
  133. package/vscode/src/vs/platform/browserView/common/browserPermissions.d.ts +176 -0
  134. package/vscode/src/vs/platform/browserView/common/browserPermissions.js +244 -0
  135. package/vscode/src/vs/platform/browserView/common/browserView.d.ts +86 -31
  136. package/vscode/src/vs/platform/browserView/common/browserView.js +1 -0
  137. package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +13 -3
  138. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +47 -11
  139. package/vscode/src/vs/platform/configuration/common/configurations.d.ts +8 -0
  140. package/vscode/src/vs/platform/configuration/common/configurations.js +83 -18
  141. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  142. package/vscode/src/vs/platform/contextkey/common/contextkey.js +10 -10
  143. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  144. package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
  145. package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.d.ts +2 -0
  146. package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.service.d.ts +2 -0
  147. package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
  148. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  149. package/vscode/src/vs/platform/editor/common/editor.d.ts +6 -1
  150. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
  151. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +16 -15
  152. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  153. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +9 -13
  154. package/vscode/src/vs/platform/extensions/common/extensionValidator.d.ts +1 -9
  155. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +21 -73
  156. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +0 -4
  157. package/vscode/src/vs/platform/extensions/common/extensions.js +6 -11
  158. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +6 -14
  159. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +19 -26
  160. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  161. package/vscode/src/vs/platform/files/common/files.js +6 -6
  162. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  163. package/vscode/src/vs/platform/hover/browser/hoverService.js +4 -0
  164. package/vscode/src/vs/platform/hover/browser/hoverWidget.js +1 -1
  165. package/vscode/src/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
  166. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
  167. package/vscode/src/vs/platform/keybinding/common/keybinding.d.ts +6 -0
  168. package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.d.ts +1 -0
  169. package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.js +1 -0
  170. package/vscode/src/vs/platform/keybinding/common/resolvedKeybindingItem.d.ts +7 -1
  171. package/vscode/src/vs/platform/keybinding/common/resolvedKeybindingItem.js +2 -1
  172. package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
  173. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
  174. package/vscode/src/vs/platform/list/browser/listService.js +25 -25
  175. package/vscode/src/vs/platform/log/common/log.d.ts +1 -0
  176. package/vscode/src/vs/platform/log/common/log.js +7 -7
  177. package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
  178. package/vscode/src/vs/platform/markers/common/markers.js +6 -6
  179. package/vscode/src/vs/platform/mcp/common/mcpManagementService.js +1 -1
  180. package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.config.contribution.js +5 -5
  181. package/vscode/src/vs/platform/native/common/native.d.ts +41 -6
  182. package/vscode/src/vs/platform/notification/common/notification.js +3 -3
  183. package/vscode/src/vs/platform/policy/common/copilotManagedSettings.d.ts +201 -0
  184. package/vscode/src/vs/platform/policy/common/copilotManagedSettings.js +269 -0
  185. package/vscode/src/vs/platform/policy/common/copilotManagedSettings.service.d.ts +17 -0
  186. package/vscode/src/vs/platform/policy/common/copilotManagedSettings.service.js +7 -0
  187. package/vscode/src/vs/platform/policy/common/policy.d.ts +4 -1
  188. package/vscode/src/vs/platform/policy/common/policy.js +17 -8
  189. package/vscode/src/vs/platform/product/common/product.js +3 -3
  190. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
  191. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -5
  192. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +18 -13
  193. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
  194. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  195. package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
  196. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  197. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
  198. package/vscode/src/vs/platform/request/common/request.js +20 -20
  199. package/vscode/src/vs/platform/sandbox/common/sandboxHelperService.d.ts +2 -1
  200. package/vscode/src/vs/platform/sandbox/common/settings.d.ts +4 -1
  201. package/vscode/src/vs/platform/sandbox/common/settings.js +14 -2
  202. package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.service.d.ts +3 -1
  203. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
  204. package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +34 -34
  205. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
  206. package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
  207. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +19 -19
  208. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  209. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
  210. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +48 -48
  211. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  212. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
  213. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  214. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +16 -16
  215. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +10 -10
  216. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  217. package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
  218. package/vscode/src/vs/platform/theme/common/sizes/baseSizes.js +26 -26
  219. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
  220. package/vscode/src/vs/platform/tunnel/common/tunnelProxy.d.ts +19 -0
  221. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  222. package/vscode/src/vs/platform/update/common/update.d.ts +7 -1
  223. package/vscode/src/vs/platform/update/common/update.js +2 -0
  224. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  225. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
  226. package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +2 -2
  227. package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +1 -1
  228. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  229. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +1 -1
  230. package/vscode/src/vs/platform/window/common/window.d.ts +7 -1
  231. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  232. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +12 -12
  233. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +25 -2
  234. package/vscode/src/vs/workbench/api/common/extHost.common.services.js +2 -0
  235. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +51 -1
  236. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +4 -0
  237. package/vscode/src/vs/workbench/api/common/extHostAgentEditorComments.d.ts +10 -0
  238. package/vscode/src/vs/workbench/api/common/extHostAgentEditorComments.js +56 -0
  239. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +5 -5
  240. package/vscode/src/vs/workbench/api/common/extHostBrowserTunnelProxy.d.ts +21 -0
  241. package/vscode/src/vs/workbench/api/common/extHostBrowserTunnelProxy.js +9 -0
  242. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -1
  243. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +33 -5
  244. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +2 -2
  245. package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +34 -11
  246. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  247. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +3 -2
  248. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +4 -1
  249. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +2 -0
  250. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +33 -6
  251. package/vscode/src/vs/workbench/api/common/extHostLanguages.d.ts +4 -0
  252. package/vscode/src/vs/workbench/api/common/extHostLanguages.js +10 -0
  253. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  254. package/vscode/src/vs/workbench/api/common/extHostManagedSockets.d.ts +9 -0
  255. package/vscode/src/vs/workbench/api/common/extHostManagedSockets.js +6 -0
  256. package/vscode/src/vs/workbench/api/common/extHostMcp.js +17 -1
  257. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  258. package/vscode/src/vs/workbench/api/common/extHostQuickDiff.d.ts +7 -2
  259. package/vscode/src/vs/workbench/api/common/extHostQuickDiff.js +81 -1
  260. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  261. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
  262. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
  263. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  264. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +6 -1
  265. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +52 -3
  266. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +17 -1
  267. package/vscode/src/vs/workbench/api/common/extHostTypes.js +22 -2
  268. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
  269. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +11 -11
  270. package/vscode/src/vs/workbench/browser/actions/developerActions.js +233 -63
  271. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +127 -127
  272. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  273. package/vscode/src/vs/workbench/browser/actions/windowActions.js +29 -29
  274. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
  275. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
  276. package/vscode/src/vs/workbench/browser/contextkeys.js +1 -0
  277. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  278. package/vscode/src/vs/workbench/browser/labels.js +4 -4
  279. package/vscode/src/vs/workbench/browser/media/floatingPanels.css +203 -0
  280. package/vscode/src/vs/workbench/browser/media/part.css +1 -0
  281. package/vscode/src/vs/workbench/browser/part.d.ts +8 -0
  282. package/vscode/src/vs/workbench/browser/part.js +15 -4
  283. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +11 -0
  284. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +43 -28
  285. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +26 -26
  286. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.d.ts +0 -1
  287. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +5 -6
  288. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
  289. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +9 -9
  290. package/vscode/src/vs/workbench/browser/parts/compositePart.js +3 -3
  291. package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.js +1 -1
  292. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +3 -3
  293. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
  294. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
  295. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +37 -37
  296. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +13 -13
  297. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +1 -1
  298. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +7 -7
  299. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +135 -135
  300. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +31 -26
  301. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +1 -1
  302. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.d.ts +13 -0
  303. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +19 -8
  304. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.d.ts +4 -1
  305. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +37 -16
  306. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +2 -2
  307. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.d.ts +18 -0
  308. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +64 -5
  309. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +1 -1
  310. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -10
  311. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
  312. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +66 -66
  313. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.d.ts +4 -2
  314. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +17 -7
  315. package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css +33 -16
  316. package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css +16 -0
  317. package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.d.ts +4 -2
  318. package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.js +32 -19
  319. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.d.ts +7 -1
  320. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +69 -9
  321. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
  322. package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.d.ts +1 -1
  323. package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +2 -5
  324. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
  325. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
  326. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
  327. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +19 -19
  328. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +22 -22
  329. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
  330. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
  331. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +13 -13
  332. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
  333. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
  334. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
  335. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +4 -4
  336. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +4 -4
  337. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +40 -1
  338. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +71 -6
  339. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +27 -27
  340. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +0 -1
  341. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +4 -5
  342. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -2
  343. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +0 -1
  344. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +2 -3
  345. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +17 -10
  346. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +15 -15
  347. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
  348. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
  349. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +19 -8
  350. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +4 -4
  351. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +5 -5
  352. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +14 -11
  353. package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
  354. package/vscode/src/vs/workbench/browser/window.js +14 -14
  355. package/vscode/src/vs/workbench/browser/workbench.contribution.js +261 -225
  356. package/vscode/src/vs/workbench/common/configuration.js +9 -9
  357. package/vscode/src/vs/workbench/common/contextkeys.js +83 -83
  358. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  359. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  360. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
  361. package/vscode/src/vs/workbench/common/editor.js +4 -4
  362. package/vscode/src/vs/workbench/common/theme.js +161 -161
  363. package/vscode/src/vs/workbench/common/views.js +4 -4
  364. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +4 -1
  365. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +180 -156
  366. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
  367. package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.service.d.ts +25 -0
  368. package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.service.js +6 -0
  369. package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.service.d.ts +32 -0
  370. package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.service.js +6 -0
  371. package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.d.ts +2 -2
  372. package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.js +21 -22
  373. package/vscode/src/vs/workbench/contrib/browserView/common/browserView.d.ts +71 -3
  374. package/vscode/src/vs/workbench/contrib/browserView/common/browserView.js +36 -9
  375. package/vscode/src/vs/workbench/contrib/browserView/common/browserView.service.d.ts +44 -1
  376. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.d.ts +2 -2
  377. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +100 -76
  378. package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.service.d.ts +1 -1
  379. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.service.d.ts +9 -1
  380. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.service.d.ts +24 -0
  381. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.service.d.ts +43 -0
  382. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.service.js +6 -0
  383. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolSetEnablementService.service.d.ts +19 -0
  384. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolSetEnablementService.service.js +6 -0
  385. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +34 -6
  386. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +31 -19
  387. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +1 -1
  388. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.service.d.ts +1 -1
  389. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +3 -3
  390. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
  391. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +3 -3
  392. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +2 -1
  393. package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +32 -1
  394. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
  395. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.service.d.ts +3 -1
  396. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageUtils.d.ts +1 -2
  397. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageUtils.js +5 -8
  398. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.service.d.ts +21 -0
  399. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.service.js +6 -0
  400. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +2 -2
  401. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +30 -2
  402. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +216 -75
  403. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +1 -1
  404. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileRewriter.d.ts +3 -3
  405. package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.service.d.ts +8 -6
  406. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.service.d.ts +49 -0
  407. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.service.js +6 -0
  408. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.service.d.ts +23 -0
  409. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.service.js +6 -0
  410. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.service.d.ts +47 -0
  411. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.service.js +6 -0
  412. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.service.d.ts +15 -0
  413. package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.service.js +6 -0
  414. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.d.ts +4 -1
  415. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +52 -16
  416. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +18 -2
  417. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +118 -89
  418. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +6 -11
  419. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +6 -14
  420. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service.d.ts +1 -6
  421. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +46 -0
  422. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +84 -5
  423. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.service.d.ts +2 -2
  424. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.d.ts +5 -0
  425. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +7 -3
  426. package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.d.ts +85 -0
  427. package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.js +75 -0
  428. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +181 -11
  429. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.js +12 -1
  430. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.service.d.ts +7 -0
  431. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +56 -1
  432. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.js +27 -3
  433. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +54 -2
  434. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +50 -10
  435. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +78 -7
  436. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +26 -36
  437. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +8 -25
  438. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.service.d.ts +0 -7
  439. package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.js +2 -2
  440. package/vscode/src/vs/workbench/contrib/chat/common/enablement.d.ts +9 -1
  441. package/vscode/src/vs/workbench/contrib/chat/common/enablement.js +52 -1
  442. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +3 -3
  443. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +106 -15
  444. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +192 -56
  445. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +28 -6
  446. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +49 -12
  447. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +1 -1
  448. package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.d.ts +9 -2
  449. package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.js +4 -0
  450. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +15 -3
  451. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +25 -6
  452. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts +12 -16
  453. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +15 -1
  454. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +1 -1
  455. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +21 -15
  456. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +18 -18
  457. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.js +20 -20
  458. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.js +79 -79
  459. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +10 -10
  460. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +9 -0
  461. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +4 -0
  462. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +9 -0
  463. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +111 -41
  464. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +4 -0
  465. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +99 -5
  466. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.d.ts +2 -2
  467. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +10 -10
  468. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +2 -1
  469. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +10 -10
  470. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +7 -7
  471. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +31 -11
  472. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +3 -3
  473. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +4 -4
  474. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +49 -23
  475. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.d.ts +43 -5
  476. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +45 -4
  477. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service.d.ts +8 -4
  478. package/vscode/src/vs/workbench/contrib/chat/common/voiceClient/voiceClientService.d.ts +95 -0
  479. package/vscode/src/vs/workbench/contrib/chat/common/voiceClient/voiceClientService.service.d.ts +65 -0
  480. package/vscode/src/vs/workbench/contrib/chat/common/voiceClient/voiceClientService.service.js +6 -0
  481. package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.service.d.ts +47 -0
  482. package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.service.js +6 -0
  483. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +11 -11
  484. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  485. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  486. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  487. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
  488. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
  489. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  490. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
  491. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  492. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.d.ts +7 -0
  493. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +6 -0
  494. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  495. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -3
  496. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  497. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +12 -12
  498. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  499. package/vscode/src/vs/workbench/contrib/codeEditor/common/languageConfigurationExtensionPoint.js +71 -71
  500. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
  501. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +7 -7
  502. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +2 -2
  503. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +3 -3
  504. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -3
  505. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
  506. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +3 -3
  507. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
  508. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  509. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +7 -7
  510. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
  511. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
  512. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +15 -15
  513. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -16
  514. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
  515. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -12
  516. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorDiffInput.js +3 -3
  517. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
  518. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
  519. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
  520. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
  521. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +75 -75
  522. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
  523. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +9 -9
  524. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
  525. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +38 -38
  526. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
  527. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
  528. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
  529. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
  530. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.d.ts +4 -1
  531. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +32 -6
  532. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +2 -2
  533. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +18 -18
  534. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
  535. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +9 -9
  536. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  537. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
  538. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
  539. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  540. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  541. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
  542. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
  543. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
  544. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
  545. package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +1 -1
  546. package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +1 -1
  547. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +41 -41
  548. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +1 -1
  549. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +15 -15
  550. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +14 -14
  551. package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +216 -168
  552. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +196 -182
  553. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
  554. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
  555. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +5 -5
  556. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -25
  557. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
  558. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +7 -7
  559. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +48 -48
  560. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +5 -5
  561. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +30 -30
  562. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.d.ts +2 -1
  563. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +106 -104
  564. package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
  565. package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +1 -1
  566. package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
  567. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +3 -1
  568. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +3 -2
  569. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -0
  570. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
  571. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
  572. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
  573. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +3 -3
  574. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
  575. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -3
  576. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
  577. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
  578. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
  579. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
  580. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +39 -39
  581. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
  582. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +4 -4
  583. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -2
  584. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  585. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +28 -28
  586. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +50 -50
  587. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
  588. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  589. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
  590. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
  591. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +17 -17
  592. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
  593. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
  594. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
  595. package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -16
  596. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  597. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  598. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  599. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  600. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  601. package/vscode/src/vs/workbench/contrib/inlineCompletions/browser/inlineCompletionLanguageStatusBarContribution.js +6 -6
  602. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  603. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  604. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.d.ts +6 -1
  605. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.js +137 -74
  606. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +40 -40
  607. package/vscode/src/vs/workbench/contrib/mcp/common/discovery/pluginMcpDiscovery.d.ts +22 -0
  608. package/vscode/src/vs/workbench/contrib/mcp/common/discovery/pluginMcpDiscovery.js +119 -0
  609. package/vscode/src/vs/workbench/contrib/mcp/common/mcpCommandIds.d.ts +1 -0
  610. package/vscode/src/vs/workbench/contrib/mcp/common/mcpCommandIds.js +1 -0
  611. package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +43 -43
  612. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +16 -16
  613. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +42 -2
  614. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +18 -5
  615. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
  616. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
  617. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -2
  618. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
  619. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.js +8 -8
  620. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.js +4 -4
  621. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
  622. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor.js +3 -1
  623. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +3 -3
  624. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
  625. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +17 -17
  626. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
  627. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
  628. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
  629. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
  630. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +13 -13
  631. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
  632. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
  633. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
  634. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
  635. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
  636. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
  637. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
  638. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
  639. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
  640. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
  641. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
  642. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
  643. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
  644. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
  645. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
  646. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
  647. package/vscode/src/vs/workbench/contrib/onboarding/common/onboardingScenarioService.service.d.ts +32 -0
  648. package/vscode/src/vs/workbench/contrib/onboarding/common/onboardingScenarioService.service.js +6 -0
  649. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
  650. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
  651. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
  652. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +60 -62
  653. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.d.ts +1 -0
  654. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +5 -4
  655. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
  656. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
  657. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
  658. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +59 -59
  659. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
  660. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
  661. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +14 -14
  662. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +10 -11
  663. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +4 -4
  664. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
  665. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
  666. package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +5 -5
  667. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
  668. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
  669. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
  670. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
  671. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +55 -55
  672. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +11 -11
  673. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
  674. package/vscode/src/vs/workbench/contrib/search/common/search.js +12 -2
  675. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
  676. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
  677. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  678. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  679. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  680. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  681. package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
  682. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +6 -6
  683. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
  684. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
  685. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +3 -3
  686. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
  687. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +40 -40
  688. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
  689. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +24 -10
  690. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
  691. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
  692. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
  693. package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.d.ts +1 -1
  694. package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.js +1 -1
  695. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
  696. package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
  697. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.d.ts +5 -0
  698. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +117 -128
  699. package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
  700. package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
  701. package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +2 -2
  702. package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.js +1 -1
  703. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
  704. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
  705. package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
  706. package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
  707. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  708. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  709. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  710. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
  711. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
  712. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.js +30 -30
  713. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
  714. package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.js +14 -14
  715. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
  716. package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +8 -0
  717. package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +10 -9
  718. package/vscode/src/vs/workbench/services/accounts/browser/managedSettings.d.ts +21 -14
  719. package/vscode/src/vs/workbench/services/accounts/browser/managedSettings.js +2 -57
  720. package/vscode/src/vs/workbench/services/agentEditorComments/common/agentEditorComments.service.d.ts +22 -0
  721. package/vscode/src/vs/workbench/services/agentEditorComments/common/agentEditorComments.service.js +6 -0
  722. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.d.ts +8 -0
  723. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +11 -11
  724. package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.d.ts +5 -0
  725. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.d.ts +5 -0
  726. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +13 -8
  727. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +27 -1
  728. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +24 -20
  729. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.service.d.ts +0 -1
  730. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
  731. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
  732. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  733. package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +5 -5
  734. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +15 -2
  735. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +22 -7
  736. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +11 -0
  737. package/vscode/src/vs/workbench/services/editor/common/editorService.js +2 -1
  738. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
  739. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
  740. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
  741. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +88 -88
  742. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
  743. package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
  744. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +55 -1
  745. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +77 -2
  746. package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +8 -0
  747. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  748. package/vscode/src/vs/workbench/services/policies/common/accountPolicyService.d.ts +7 -1
  749. package/vscode/src/vs/workbench/services/policies/common/accountPolicyService.js +2 -1
  750. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
  751. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
  752. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
  753. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +2 -2
  754. package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +30 -30
  755. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  756. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  757. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  758. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
  759. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
  760. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +18 -18
  761. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
  762. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  763. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +24 -24
  764. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
  765. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
  766. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
  767. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
  768. package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +2 -1
  769. package/vscode-dts/vscode.d.ts +4 -4
  770. package/vscode-dts/vscode.proposed.agentEditorComments.d.ts +71 -0
  771. package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +0 -2
  772. package/vscode-dts/vscode.proposed.chatDebug.d.ts +0 -2
  773. package/vscode-dts/vscode.proposed.chatHooks.d.ts +0 -2
  774. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +23 -2
  775. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +0 -8
  776. package/vscode-dts/vscode.proposed.chatPromptFiles.d.ts +0 -2
  777. package/vscode-dts/vscode.proposed.chatProvider.d.ts +15 -2
  778. package/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts +11 -0
  779. package/vscode-dts/vscode.proposed.chatSessionCustomizationProvider.d.ts +34 -0
  780. package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +2 -2
  781. package/vscode-dts/vscode.proposed.customEditorDiffs.d.ts +24 -4
  782. package/vscode-dts/vscode.proposed.d.ts +2 -0
  783. package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +0 -2
  784. package/vscode-dts/vscode.proposed.documentSyntaxHighlighting.d.ts +87 -0
  785. package/vscode-dts/vscode.proposed.findFiles2.d.ts +0 -2
  786. package/vscode-dts/vscode.proposed.languageModelPricing.d.ts +35 -0
  787. package/vscode-dts/vscode.proposed.languageModelThinkingPart.d.ts +0 -2
  788. package/vscode-dts/vscode.proposed.languageModelToolSupportsModel.d.ts +0 -2
  789. package/vscode-dts/vscode.proposed.mcpServerDefinitions.d.ts +0 -2
  790. package/vscode-dts/vscode.proposed.textEditorDiffInformation.d.ts +35 -0
  791. package/vscode/src/vs/platform/agentHost/common/agentPluginManager.d.ts +0 -11
  792. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +0 -135
@@ -0,0 +1,1157 @@
1
+ import type { ModelSelection } from "../channels-root/state.js";
2
+ import type { AgentSelection, SessionStatus } from "../channels-session/state.js";
3
+ import type { ContentRef, ErrorInfo, FileEdit, StringOrMarkdown, TextRange, TextSelection, URI, UsageInfo } from "../common/state.js";
4
+ /**
5
+ * Full state for a single chat, loaded when a client subscribes to the chat's
6
+ * URI.
7
+ *
8
+ * The lightweight catalog representation of a chat is {@link ChatSummary},
9
+ * carried in {@link SessionState.chats | `SessionState.chats`}. `ChatState`
10
+ * **denormalizes** every {@link ChatSummary} field directly onto itself so
11
+ * subscribers receive one flat object instead of having to merge a nested
12
+ * `summary` sub-object. Producers MUST keep the two representations
13
+ * consistent: any change to the inlined fields below SHOULD also be
14
+ * announced on the parent session via the matching
15
+ * {@link SessionChatUpdatedAction | `session/chatUpdated`} action.
16
+ *
17
+ * @category Chat State
18
+ */
19
+ export interface ChatState {
20
+ /** Chat URI */
21
+ resource: URI;
22
+ /** Chat title */
23
+ title: string;
24
+ /** Current chat status (reuses SessionStatus shape) */
25
+ status: SessionStatus;
26
+ /** Human-readable description of what the chat is currently doing */
27
+ activity?: string;
28
+ /** Last modification timestamp (ISO 8601, e.g. `"2025-03-10T18:42:03.123Z"`) */
29
+ modifiedAt: string;
30
+ /** How this chat came into existence */
31
+ origin?: ChatOrigin;
32
+ /**
33
+ * How the user can interact with this chat. See {@link ChatInteractivity}.
34
+ *
35
+ * Supports agent-team patterns where worker chats are read-only or hidden.
36
+ * Absence defaults to {@link ChatInteractivity.Full} for backward
37
+ * compatibility.
38
+ */
39
+ interactivity?: ChatInteractivity;
40
+ /**
41
+ * Optional per-chat working directory.
42
+ *
43
+ * If absent, the chat inherits
44
+ * {@link SessionState.workingDirectory | the session's working directory}.
45
+ * Hosts MAY override this for individual chats — for example, to give a
46
+ * subordinate chat its own git worktree so multiple chats in a session can
47
+ * make independent edits that the orchestrator later merges back.
48
+ */
49
+ workingDirectory?: URI;
50
+ /** Completed turns */
51
+ turns: Turn[];
52
+ /** Currently in-progress turn */
53
+ activeTurn?: ActiveTurn;
54
+ /** Message to inject into the current turn at a convenient point */
55
+ steeringMessage?: PendingMessage;
56
+ /** Messages to send automatically as new turns after the current turn finishes */
57
+ queuedMessages?: PendingMessage[];
58
+ /** Requests for user input that are currently blocking or informing chat progress */
59
+ inputRequests?: ChatInputRequest[];
60
+ /**
61
+ * The user's in-progress draft input for this chat — the message they are
62
+ * composing but have not sent yet, including its
63
+ * {@link Message.model | model} / {@link Message.agent | agent} selection
64
+ * and attachments.
65
+ *
66
+ * Clients MAY periodically sync their local input state into this field so
67
+ * a draft survives reloads and is visible to other clients viewing the same
68
+ * chat. Eager syncing is **not** required — clients SHOULD debounce and MAY
69
+ * sync only at convenient points. When presenting input UI for an existing
70
+ * chat, clients SHOULD use any `draft` to initialize their input state.
71
+ * Cleared (set to `undefined`) once the message is sent.
72
+ */
73
+ draft?: Message;
74
+ /**
75
+ * Additional provider-specific metadata for this chat.
76
+ */
77
+ _meta?: Record<string, unknown>;
78
+ }
79
+ /**
80
+ * Lightweight catalog entry for a chat, carried in
81
+ * {@link SessionState.chats | `SessionState.chats`}. The full conversation
82
+ * lives in {@link ChatState}, which inlines (denormalizes) every field below.
83
+ *
84
+ * @category Chat State
85
+ */
86
+ export interface ChatSummary {
87
+ /** Chat URI */
88
+ resource: URI;
89
+ /** Chat title */
90
+ title: string;
91
+ /** Current chat status (reuses SessionStatus shape) */
92
+ status: SessionStatus;
93
+ /** Human-readable description of what the chat is currently doing */
94
+ activity?: string;
95
+ /** Last modification timestamp (ISO 8601, e.g. `"2025-03-10T18:42:03.123Z"`) */
96
+ modifiedAt: string;
97
+ /** How this chat came into existence */
98
+ origin?: ChatOrigin;
99
+ /**
100
+ * How the user can interact with this chat. See {@link ChatInteractivity}.
101
+ *
102
+ * Supports agent-team patterns where worker chats are read-only or hidden.
103
+ * Absence defaults to {@link ChatInteractivity.Full} for backward
104
+ * compatibility.
105
+ */
106
+ interactivity?: ChatInteractivity;
107
+ /**
108
+ * Optional per-chat working directory.
109
+ *
110
+ * If absent, the chat inherits
111
+ * {@link SessionSummary.workingDirectory | the session's working directory}.
112
+ * See {@link ChatState.workingDirectory} for usage notes.
113
+ */
114
+ workingDirectory?: URI;
115
+ }
116
+ /**
117
+ * Discriminant for {@link ChatOrigin} — how a chat came into existence.
118
+ *
119
+ * @category Chat State
120
+ */
121
+ export declare enum ChatOriginKind {
122
+ /** User created the chat explicitly (e.g. via the host UI). */
123
+ User = "user",
124
+ /** Forked from an existing chat at a specific turn. */
125
+ Fork = "fork",
126
+ /** Spawned by a tool call running in another chat (e.g. a sub-agent delegation). */
127
+ Tool = "tool"
128
+ }
129
+ /**
130
+ * How a chat came into existence. Clients MAY use it to render
131
+ * contextual UI (parent indicators, fork markers, "spawned by tool" badges).
132
+ *
133
+ * The `tool` variant records a tool-spawned worker from the worker's side: its
134
+ * `chat`/`toolCallId` identify the spawning tool call in the parent chat. This
135
+ * is the canonical record of the spawn relationship. The same edge is surfaced
136
+ * from the parent's side by {@link ToolResultSubagentContent}, whose `resource`
137
+ * is this chat's URI; hosts MUST keep the two consistent.
138
+ *
139
+ * @category Chat State
140
+ */
141
+ export type ChatOrigin = {
142
+ kind: ChatOriginKind.User;
143
+ } | {
144
+ kind: ChatOriginKind.Fork;
145
+ chat: URI;
146
+ turnId: string;
147
+ } | {
148
+ kind: ChatOriginKind.Tool;
149
+ chat: URI;
150
+ toolCallId: string;
151
+ };
152
+ /**
153
+ * How a user can interact with a chat.
154
+ *
155
+ * - `Full` — user can send messages and watch (default when absent)
156
+ * - `ReadOnly` — user can watch but not send messages (e.g. agent team workers)
157
+ * - `Hidden` — internal worker not shown in UI at all
158
+ *
159
+ * Supports the agent-team pattern where a lead chat is fully interactive and
160
+ * worker chats are read-only (visible for observability) or hidden (internal
161
+ * implementation detail). The harness sets this based on the chat's role;
162
+ * the UI uses it to show appropriate controls.
163
+ *
164
+ * @category Chat State
165
+ */
166
+ export declare enum ChatInteractivity {
167
+ /** User can send messages and watch (default when absent) */
168
+ Full = "full",
169
+ /** User can watch but not send messages */
170
+ ReadOnly = "read-only",
171
+ /** Internal worker not shown in UI at all */
172
+ Hidden = "hidden"
173
+ }
174
+ /**
175
+ * Discriminant for pending message kinds.
176
+ *
177
+ * @category Pending Message Types
178
+ */
179
+ export declare enum PendingMessageKind {
180
+ /** Injected into the current turn at a convenient point */
181
+ Steering = "steering",
182
+ /** Sent automatically as a new turn after the current turn finishes */
183
+ Queued = "queued"
184
+ }
185
+ /**
186
+ * A message queued for future delivery to the agent.
187
+ *
188
+ * Steering messages are injected into the current turn mid-flight.
189
+ * Queued messages are automatically started as new turns after the
190
+ * current turn naturally finishes.
191
+ *
192
+ * @category Pending Message Types
193
+ */
194
+ export interface PendingMessage {
195
+ /** Unique identifier for this pending message */
196
+ id: string;
197
+ /** The message that will start the next turn */
198
+ message: Message;
199
+ }
200
+ /**
201
+ * How a client completed an input request.
202
+ *
203
+ * @category Chat Input Types
204
+ */
205
+ export declare enum ChatInputResponseKind {
206
+ Accept = "accept",
207
+ Decline = "decline",
208
+ Cancel = "cancel"
209
+ }
210
+ /**
211
+ * Question/input control kind.
212
+ *
213
+ * @category Chat Input Types
214
+ */
215
+ export declare enum ChatInputQuestionKind {
216
+ Text = "text",
217
+ Number = "number",
218
+ Integer = "integer",
219
+ Boolean = "boolean",
220
+ SingleSelect = "single-select",
221
+ MultiSelect = "multi-select"
222
+ }
223
+ /**
224
+ * A choice in a select-style question.
225
+ *
226
+ * @category Chat Input Types
227
+ */
228
+ export interface ChatInputOption {
229
+ /** Stable option identifier; for MCP enum values this is the enum string */
230
+ id: string;
231
+ /** Display label */
232
+ label: string;
233
+ /** Optional secondary text */
234
+ description?: string;
235
+ /** Whether this option is the recommended/default choice */
236
+ recommended?: boolean;
237
+ }
238
+ interface ChatInputQuestionBase {
239
+ /** Stable question identifier used as the key in `answers` */
240
+ id: string;
241
+ /** Short display title */
242
+ title?: string;
243
+ /** Prompt shown to the user */
244
+ message: string;
245
+ /** Whether the user must answer this question to accept the request */
246
+ required?: boolean;
247
+ }
248
+ /** Text question within a chat input request. */
249
+ export interface ChatInputTextQuestion extends ChatInputQuestionBase {
250
+ kind: ChatInputQuestionKind.Text;
251
+ /** Format hint for text questions, such as `email`, `uri`, `date`, or `date-time` */
252
+ format?: string;
253
+ /** Minimum string length */
254
+ min?: number;
255
+ /** Maximum string length */
256
+ max?: number;
257
+ /** Default text */
258
+ defaultValue?: string;
259
+ }
260
+ /** Numeric question within a chat input request. */
261
+ export interface ChatInputNumberQuestion extends ChatInputQuestionBase {
262
+ kind: ChatInputQuestionKind.Number | ChatInputQuestionKind.Integer;
263
+ /**
264
+ * Minimum value
265
+ * @format float
266
+ */
267
+ min?: number;
268
+ /**
269
+ * Maximum value
270
+ * @format float
271
+ */
272
+ max?: number;
273
+ /**
274
+ * Default numeric value
275
+ * @format float
276
+ */
277
+ defaultValue?: number;
278
+ }
279
+ /** Boolean question within a chat input request. */
280
+ export interface ChatInputBooleanQuestion extends ChatInputQuestionBase {
281
+ kind: ChatInputQuestionKind.Boolean;
282
+ /** Default boolean value */
283
+ defaultValue?: boolean;
284
+ }
285
+ /** Single-select question within a chat input request. */
286
+ export interface ChatInputSingleSelectQuestion extends ChatInputQuestionBase {
287
+ kind: ChatInputQuestionKind.SingleSelect;
288
+ /** Options the user may select from */
289
+ options: ChatInputOption[];
290
+ /** Whether the user may enter text instead of selecting an option */
291
+ allowFreeformInput?: boolean;
292
+ }
293
+ /** Multi-select question within a chat input request. */
294
+ export interface ChatInputMultiSelectQuestion extends ChatInputQuestionBase {
295
+ kind: ChatInputQuestionKind.MultiSelect;
296
+ /** Options the user may select from */
297
+ options: ChatInputOption[];
298
+ /** Whether the user may enter text in addition to selecting options */
299
+ allowFreeformInput?: boolean;
300
+ /** Minimum selected item count */
301
+ min?: number;
302
+ /** Maximum selected item count */
303
+ max?: number;
304
+ }
305
+ /**
306
+ * One question within a chat input request.
307
+ *
308
+ * @category Chat Input Types
309
+ */
310
+ export type ChatInputQuestion = ChatInputTextQuestion | ChatInputNumberQuestion | ChatInputBooleanQuestion | ChatInputSingleSelectQuestion | ChatInputMultiSelectQuestion;
311
+ /**
312
+ * A live request for user input.
313
+ *
314
+ * The server creates or replaces requests with `chat/inputRequested`.
315
+ * Clients sync drafts with `chat/inputAnswerChanged` and complete requests
316
+ * with `chat/inputCompleted`.
317
+ *
318
+ * @category Chat Input Types
319
+ */
320
+ export interface ChatInputRequest {
321
+ /** Stable request identifier */
322
+ id: string;
323
+ /** Display message for the request as a whole */
324
+ message?: string;
325
+ /** URL the user should review or open, for URL-style elicitations */
326
+ url?: URI;
327
+ /** Ordered questions to ask the user */
328
+ questions?: ChatInputQuestion[];
329
+ /** Current draft or submitted answers, keyed by question ID */
330
+ answers?: Record<string, ChatInputAnswer>;
331
+ }
332
+ /**
333
+ * Answer value kind.
334
+ *
335
+ * @category Chat Input Types
336
+ */
337
+ export declare enum ChatInputAnswerValueKind {
338
+ Text = "text",
339
+ Number = "number",
340
+ Boolean = "boolean",
341
+ Selected = "selected",
342
+ SelectedMany = "selected-many"
343
+ }
344
+ /**
345
+ * Value captured for one answer.
346
+ *
347
+ * @category Chat Input Types
348
+ */
349
+ export interface ChatInputTextAnswerValue {
350
+ kind: ChatInputAnswerValueKind.Text;
351
+ value: string;
352
+ }
353
+ export interface ChatInputNumberAnswerValue {
354
+ kind: ChatInputAnswerValueKind.Number;
355
+ /** @format float */
356
+ value: number;
357
+ }
358
+ export interface ChatInputBooleanAnswerValue {
359
+ kind: ChatInputAnswerValueKind.Boolean;
360
+ value: boolean;
361
+ }
362
+ export interface ChatInputSelectedAnswerValue {
363
+ kind: ChatInputAnswerValueKind.Selected;
364
+ value: string;
365
+ /** Free-form text entered instead of selecting an option */
366
+ freeformValues?: string[];
367
+ }
368
+ export interface ChatInputSelectedManyAnswerValue {
369
+ kind: ChatInputAnswerValueKind.SelectedMany;
370
+ value: string[];
371
+ /** Free-form text entered in addition to selected options */
372
+ freeformValues?: string[];
373
+ }
374
+ export type ChatInputAnswerValue = ChatInputTextAnswerValue | ChatInputNumberAnswerValue | ChatInputBooleanAnswerValue | ChatInputSelectedAnswerValue | ChatInputSelectedManyAnswerValue;
375
+ export interface ChatInputAnswered {
376
+ /** Answer state */
377
+ state: ChatInputAnswerState.Draft | ChatInputAnswerState.Submitted;
378
+ /** Answer value */
379
+ value: ChatInputAnswerValue;
380
+ }
381
+ export interface ChatInputSkipped {
382
+ /** Answer state */
383
+ state: ChatInputAnswerState.Skipped;
384
+ /** Free-form reason or value captured while skipping, if any */
385
+ freeformValues?: string[];
386
+ }
387
+ /**
388
+ * Answer lifecycle state.
389
+ *
390
+ * @category Chat Input Types
391
+ */
392
+ export declare enum ChatInputAnswerState {
393
+ Draft = "draft",
394
+ Submitted = "submitted",
395
+ Skipped = "skipped"
396
+ }
397
+ /**
398
+ * Draft, submitted, or skipped answer for one question.
399
+ *
400
+ * @category Chat Input Types
401
+ */
402
+ export type ChatInputAnswer = ChatInputAnswered | ChatInputSkipped;
403
+ /**
404
+ * How a turn ended.
405
+ *
406
+ * @category Turn Types
407
+ */
408
+ export declare enum TurnState {
409
+ Complete = "complete",
410
+ Cancelled = "cancelled",
411
+ Error = "error"
412
+ }
413
+ /**
414
+ * Discriminant for {@link MessageAttachment} variants.
415
+ *
416
+ * @category Turn Types
417
+ */
418
+ export declare enum MessageAttachmentKind {
419
+ /** A simple, opaque attachment whose representation is described by the producer. */
420
+ Simple = "simple",
421
+ /** An attachment whose data is embedded inline as a base64 string. */
422
+ EmbeddedResource = "embeddedResource",
423
+ /** An attachment that references a resource by URI. */
424
+ Resource = "resource",
425
+ /** An attachment that references annotations on an annotations channel. */
426
+ Annotations = "annotations"
427
+ }
428
+ /**
429
+ * A completed request/response cycle.
430
+ *
431
+ * @category Turn Types
432
+ */
433
+ export interface Turn {
434
+ /** Turn identifier */
435
+ id: string;
436
+ /** The message that initiated the turn */
437
+ message: Message;
438
+ /**
439
+ * All response content in stream order: text, tool calls, reasoning, and content refs.
440
+ *
441
+ * Consumers should derive display text by concatenating markdown parts,
442
+ * and find tool calls by filtering for `ToolCall` parts.
443
+ */
444
+ responseParts: ResponsePart[];
445
+ /** Token usage info */
446
+ usage: UsageInfo | undefined;
447
+ /** How the turn ended */
448
+ state: TurnState;
449
+ /** Error details if state is `'error'` */
450
+ error?: ErrorInfo;
451
+ }
452
+ /**
453
+ * An in-progress turn — the assistant is actively streaming.
454
+ *
455
+ * @category Turn Types
456
+ */
457
+ export interface ActiveTurn {
458
+ /** Turn identifier */
459
+ id: string;
460
+ /** The message that initiated the turn */
461
+ message: Message;
462
+ /**
463
+ * All response content in stream order: text, tool calls, reasoning, and content refs.
464
+ *
465
+ * Tool call parts include `pendingPermissions` when permissions are awaiting user approval.
466
+ */
467
+ responseParts: ResponsePart[];
468
+ /** Token usage info */
469
+ usage: UsageInfo | undefined;
470
+ }
471
+ /**
472
+ * Discriminant for {@link MessageOrigin} — identifies who produced a message.
473
+ *
474
+ * @category Turn Types
475
+ */
476
+ export declare enum MessageKind {
477
+ /** Sent directly by the user. */
478
+ User = "user",
479
+ /**
480
+ * Produced by the agent itself rather than the user — for example, an agent
481
+ * that seeds the first message of a chat it spawned.
482
+ */
483
+ Agent = "agent",
484
+ /**
485
+ * Produced by a tool rather than the user — for example, a tool that spawns a
486
+ * worker chat whose first message carries a seed prompt.
487
+ */
488
+ Tool = "tool",
489
+ /** A system-generated notification rather than a direct user message. */
490
+ SystemNotification = "systemNotification"
491
+ }
492
+ /**
493
+ * Identifies the origin of a {@link Message} — who produced it. For the message
494
+ * that initiates a turn ({@link Turn.message}), this is also the origin of the
495
+ * turn; for steering or queued messages it is just the origin of that message.
496
+ *
497
+ * @category Turn Types
498
+ */
499
+ export interface MessageOrigin {
500
+ /** The kind of actor that produced the message. */
501
+ kind: MessageKind;
502
+ }
503
+ /**
504
+ * A message that initiates or steers a turn. Messages can originate from the
505
+ * user, the agent, a tool, or be system-generated (see {@link MessageOrigin}).
506
+ *
507
+ * Attachments MAY be referenced inside {@link Message.text} via their
508
+ * {@link MessageAttachmentBase.range} field. Attachments without a range are
509
+ * still associated with the message but do not correspond to a specific span
510
+ * in the text.
511
+ *
512
+ * @category Turn Types
513
+ */
514
+ export interface Message {
515
+ /** Message text */
516
+ text: string;
517
+ /** The origin of the message */
518
+ origin: MessageOrigin;
519
+ /** File/selection attachments */
520
+ attachments?: MessageAttachment[];
521
+ /**
522
+ * The model this message was, or will be, sent with.
523
+ *
524
+ * For historic user/agent messages this records the model actually used, so
525
+ * a client editing or resending the message can retain that selection. For a
526
+ * {@link ChatState.draft | draft} it carries the model the user picked for
527
+ * the message they are composing. Absent means the agent host's default
528
+ * model applies.
529
+ */
530
+ model?: ModelSelection;
531
+ /**
532
+ * The custom agent this message was, or will be, sent with.
533
+ *
534
+ * For historic messages this records the agent actually used; for a
535
+ * {@link ChatState.draft | draft} it carries the agent the user picked.
536
+ * Absent means no custom agent — the provider's default behavior applies.
537
+ */
538
+ agent?: AgentSelection;
539
+ /**
540
+ * Additional provider-specific metadata for this message.
541
+ *
542
+ * Clients MAY look for well-known keys here to provide enhanced UI, and
543
+ * agent hosts MAY use it to carry context that does not fit any other
544
+ * field. Mirrors the MCP `_meta` convention.
545
+ */
546
+ _meta?: Record<string, unknown>;
547
+ }
548
+ /**
549
+ * Common fields shared by all {@link MessageAttachment} variants.
550
+ *
551
+ * @category Turn Types
552
+ */
553
+ export interface MessageAttachmentBase {
554
+ /**
555
+ * A human-readable label for the attachment (e.g. the filename of a file
556
+ * attachment). Used for display in UI.
557
+ */
558
+ label: string;
559
+ /**
560
+ * If defined, the range in {@link Message.text} that references this
561
+ * attachment. This is a text range, not a byte range.
562
+ */
563
+ range?: TextRange;
564
+ /**
565
+ * Advisory display hint for clients rendering this attachment. Recognized
566
+ * values include:
567
+ *
568
+ * - `'image'`: the attachment is an image
569
+ * - `'document'`: the attachment is a textual document
570
+ * - `'symbol'`: the attachment is a code symbol (e.g. a function or class)
571
+ * - `'directory'`: the attachment is a folder
572
+ * - `'selection'`: the attachment is a selection within a document
573
+ *
574
+ * Implementations MAY provide additional values; clients SHOULD fall back
575
+ * to a reasonable default when an unknown value is encountered.
576
+ */
577
+ displayKind?: string;
578
+ /**
579
+ * Additional implementation-defined metadata for the attachment.
580
+ *
581
+ * If the attachment was produced by the `completions` command, the client
582
+ * MUST preserve every property of `_meta` originally returned by the agent
583
+ * host when sending the user message containing the accepted completion.
584
+ */
585
+ _meta?: Record<string, unknown>;
586
+ }
587
+ /**
588
+ * A simple, opaque attachment whose model representation is described by
589
+ * the producer.
590
+ *
591
+ * @category Turn Types
592
+ */
593
+ export interface SimpleMessageAttachment extends MessageAttachmentBase {
594
+ /** Discriminant */
595
+ type: MessageAttachmentKind.Simple;
596
+ /**
597
+ * Representation of the attachment as it should be shown to the model.
598
+ *
599
+ * If the attachment was produced by the client, this property MUST be
600
+ * defined so the agent host can correctly interpret the attachment. This
601
+ * property MAY be omitted when the attachment originated from a
602
+ * `completions` response.
603
+ */
604
+ modelRepresentation?: string;
605
+ }
606
+ /**
607
+ * An attachment whose data is embedded inline as a base64 string.
608
+ *
609
+ * Use this for small binary payloads (e.g. a pasted image) that should be
610
+ * delivered with the user message itself rather than fetched separately.
611
+ *
612
+ * @category Turn Types
613
+ */
614
+ export interface MessageEmbeddedResourceAttachment extends MessageAttachmentBase {
615
+ /** Discriminant */
616
+ type: MessageAttachmentKind.EmbeddedResource;
617
+ /** Base64-encoded binary data */
618
+ data: string;
619
+ /** Content MIME type (e.g. `"image/png"`, `"application/pdf"`) */
620
+ contentType: string;
621
+ /**
622
+ * Optional selection within the attached textual resource.
623
+ *
624
+ * Only meaningful for textual resources.
625
+ */
626
+ selection?: TextSelection;
627
+ }
628
+ /**
629
+ * An attachment that references a resource by URI. The content is not
630
+ * delivered inline; consumers can fetch it via `resourceRead` when needed.
631
+ *
632
+ * @category Turn Types
633
+ */
634
+ export interface MessageResourceAttachment extends MessageAttachmentBase, ContentRef {
635
+ /** Discriminant */
636
+ type: MessageAttachmentKind.Resource;
637
+ /**
638
+ * Optional selection within the referenced textual resource.
639
+ *
640
+ * Only meaningful for textual resources.
641
+ */
642
+ selection?: TextSelection;
643
+ }
644
+ /**
645
+ * An attachment that references annotations on a session's annotations
646
+ * channel (see {@link AnnotationsState}).
647
+ *
648
+ * When {@link annotationIds} is omitted the attachment references every
649
+ * annotation on the channel; when present it references only the listed
650
+ * {@link Annotation.id | annotation ids}.
651
+ *
652
+ * @category Turn Types
653
+ */
654
+ export interface MessageAnnotationsAttachment extends MessageAttachmentBase {
655
+ /** Discriminant */
656
+ type: MessageAttachmentKind.Annotations;
657
+ /**
658
+ * The annotations channel URI (typically `ahp-session:/<uuid>/annotations`).
659
+ * Matches {@link AnnotationsSummary.resource}.
660
+ */
661
+ resource: URI;
662
+ /**
663
+ * Specific {@link Annotation.id | annotation ids} to reference. When
664
+ * omitted, the attachment references all annotations on the channel.
665
+ */
666
+ annotationIds?: string[];
667
+ }
668
+ /**
669
+ * An attachment associated with a {@link Message}.
670
+ *
671
+ * @category Turn Types
672
+ */
673
+ export type MessageAttachment = SimpleMessageAttachment | MessageEmbeddedResourceAttachment | MessageResourceAttachment | MessageAnnotationsAttachment;
674
+ /**
675
+ * Discriminant for response part types.
676
+ *
677
+ * @category Response Parts
678
+ */
679
+ export declare enum ResponsePartKind {
680
+ Markdown = "markdown",
681
+ ContentRef = "contentRef",
682
+ ToolCall = "toolCall",
683
+ Reasoning = "reasoning",
684
+ SystemNotification = "systemNotification"
685
+ }
686
+ /**
687
+ * @category Response Parts
688
+ */
689
+ export interface MarkdownResponsePart {
690
+ /** Discriminant */
691
+ kind: ResponsePartKind.Markdown;
692
+ /** Part identifier, used by `chat/delta` to target this part for content appends */
693
+ id: string;
694
+ /** Markdown content */
695
+ content: string;
696
+ }
697
+ /**
698
+ * A content part that's a reference to large content stored outside the state tree.
699
+ *
700
+ * @category Response Parts
701
+ */
702
+ export interface ResourceReponsePart extends ContentRef {
703
+ /** Discriminant */
704
+ kind: ResponsePartKind.ContentRef;
705
+ }
706
+ /**
707
+ * A tool call represented as a response part.
708
+ *
709
+ * Tool calls are part of the response stream, interleaved with text and
710
+ * reasoning. The `toolCall.toolCallId` serves as the part identifier for
711
+ * actions that target this part.
712
+ *
713
+ * @category Response Parts
714
+ */
715
+ export interface ToolCallResponsePart {
716
+ /** Discriminant */
717
+ kind: ResponsePartKind.ToolCall;
718
+ /** Full tool call lifecycle state */
719
+ toolCall: ToolCallState;
720
+ }
721
+ /**
722
+ * Reasoning/thinking content from the model.
723
+ *
724
+ * @category Response Parts
725
+ */
726
+ export interface ReasoningResponsePart {
727
+ /** Discriminant */
728
+ kind: ResponsePartKind.Reasoning;
729
+ /** Part identifier, used by `chat/reasoning` to target this part for content appends */
730
+ id: string;
731
+ /** Accumulated reasoning text */
732
+ content: string;
733
+ }
734
+ /**
735
+ * @category Response Parts
736
+ */
737
+ export type ResponsePart = MarkdownResponsePart | ResourceReponsePart | ToolCallResponsePart | ReasoningResponsePart | SystemNotificationResponsePart;
738
+ /**
739
+ * A system notification surfaced as part of the response stream.
740
+ *
741
+ * System notifications are messages authored by the agent harness
742
+ * that need to be visible to both the agent (for situational awareness) and
743
+ * the user (for transcript continuity). Examples include "background subagent
744
+ * X completed" or "task Y was cancelled".
745
+ *
746
+ * @category Response Parts
747
+ */
748
+ export interface SystemNotificationResponsePart {
749
+ /** Discriminant */
750
+ kind: ResponsePartKind.SystemNotification;
751
+ /** The text of the system notification */
752
+ content: StringOrMarkdown;
753
+ }
754
+ /**
755
+ * Status of a tool call in the lifecycle state machine.
756
+ *
757
+ * @category Tool Call Types
758
+ */
759
+ export declare enum ToolCallStatus {
760
+ Streaming = "streaming",
761
+ PendingConfirmation = "pending-confirmation",
762
+ Running = "running",
763
+ PendingResultConfirmation = "pending-result-confirmation",
764
+ Completed = "completed",
765
+ Cancelled = "cancelled"
766
+ }
767
+ /**
768
+ * How a tool call was confirmed for execution.
769
+ *
770
+ * - `NotNeeded` — No confirmation required (auto-approved)
771
+ * - `UserAction` — User explicitly approved
772
+ * - `Setting` — Approved by a persistent user setting
773
+ *
774
+ * @category Tool Call Types
775
+ */
776
+ export declare enum ToolCallConfirmationReason {
777
+ NotNeeded = "not-needed",
778
+ UserAction = "user-action",
779
+ Setting = "setting"
780
+ }
781
+ /**
782
+ * Why a tool call was cancelled.
783
+ *
784
+ * @category Tool Call Types
785
+ */
786
+ export declare enum ToolCallCancellationReason {
787
+ Denied = "denied",
788
+ Skipped = "skipped",
789
+ ResultDenied = "result-denied"
790
+ }
791
+ /**
792
+ * Whether a confirmation option represents an approval or denial action.
793
+ *
794
+ * @category Tool Call Types
795
+ */
796
+ export declare enum ConfirmationOptionKind {
797
+ Approve = "approve",
798
+ Deny = "deny"
799
+ }
800
+ /**
801
+ * A confirmation option that the server offers for a tool call awaiting
802
+ * approval. Allows richer choices beyond simple approve/deny — for example,
803
+ * "Approve in this Session" or "Deny with reason."
804
+ *
805
+ * @category Tool Call Types
806
+ */
807
+ export interface ConfirmationOption {
808
+ /** Unique identifier for the option, returned in the confirmed action */
809
+ id: string;
810
+ /** Human-readable label displayed to the user */
811
+ label: string;
812
+ /** Whether this option represents an approval or denial */
813
+ kind: ConfirmationOptionKind;
814
+ /**
815
+ * Logical group number for visual categorisation.
816
+ *
817
+ * Clients SHOULD display options in the order they are defined and MAY
818
+ * use differing group numbers to insert dividers between logical clusters
819
+ * of options.
820
+ */
821
+ group?: number;
822
+ }
823
+ export declare enum ToolCallContributorKind {
824
+ Client = "client",
825
+ MCP = "mcp"
826
+ }
827
+ export interface ToolCallClientContributor {
828
+ kind: ToolCallContributorKind.Client;
829
+ /**
830
+ * If this tool is provided by a client, the `clientId` of the owning client.
831
+ * Absent for server-side tools.
832
+ *
833
+ * When set, the identified client is responsible for executing the tool and
834
+ * dispatching `chat/toolCallComplete` with the result.
835
+ */
836
+ clientId: string;
837
+ }
838
+ export interface ToolCallMcpContributor {
839
+ kind: ToolCallContributorKind.MCP;
840
+ /**
841
+ * Customization ID of the corresponding MCP server in {@link SessionState.customizations}.
842
+ */
843
+ customizationId: string;
844
+ }
845
+ export type ToolCallContributor = ToolCallClientContributor | ToolCallMcpContributor;
846
+ /**
847
+ * Metadata common to all tool call states.
848
+ *
849
+ * @category Tool Call Types
850
+ * @remarks
851
+ * Fields like `toolName` carry agent-specific identifiers on the wire despite the
852
+ * agent-agnostic design principle. These exist for debugging and logging purposes.
853
+ * A future version may move these to a separate diagnostic channel or namespace them
854
+ * more clearly.
855
+ */
856
+ interface ToolCallBase {
857
+ /** Unique tool call identifier */
858
+ toolCallId: string;
859
+ /** Internal tool name (for debugging/logging) */
860
+ toolName: string;
861
+ /** Human-readable tool name */
862
+ displayName: string;
863
+ /** Human-readable description of what the tool invocation intends to do */
864
+ intention?: string;
865
+ /**
866
+ * Reference to the contributor of the tool being called.
867
+ */
868
+ contributor?: ToolCallContributor;
869
+ /**
870
+ * Additional provider-specific metadata for this tool call.
871
+ *
872
+ * This MAY include a `ui` field corresponding to the MCP Apps (SEP-1865)
873
+ * `McpUiToolMeta` found in MCP tool calls, which may be used in combination
874
+ * with the {@link contributor} to serve MCP Apps.
875
+ */
876
+ _meta?: Record<string, unknown>;
877
+ }
878
+ /**
879
+ * Properties available once tool call parameters are fully received.
880
+ *
881
+ * @category Tool Call Types
882
+ */
883
+ interface ToolCallParameterFields {
884
+ /** Message describing what the tool will do */
885
+ invocationMessage: StringOrMarkdown;
886
+ /** Raw tool input */
887
+ toolInput?: string;
888
+ }
889
+ /**
890
+ * Tool execution result details, available after execution completes.
891
+ *
892
+ * @category Tool Call Types
893
+ */
894
+ export interface ToolCallResult {
895
+ /** Whether the tool succeeded */
896
+ success: boolean;
897
+ /** Past-tense description of what the tool did */
898
+ pastTenseMessage: StringOrMarkdown;
899
+ /**
900
+ * Unstructured result content blocks.
901
+ *
902
+ * This mirrors the `content` field of MCP `CallToolResult`.
903
+ */
904
+ content?: ToolResultContent[];
905
+ /**
906
+ * Optional structured result object.
907
+ *
908
+ * This mirrors the `structuredContent` field of MCP `CallToolResult`.
909
+ */
910
+ structuredContent?: Record<string, unknown>;
911
+ /** Error details if the tool failed */
912
+ error?: {
913
+ message: string;
914
+ code?: string;
915
+ };
916
+ }
917
+ /**
918
+ * LM is streaming the tool call parameters.
919
+ *
920
+ * @category Tool Call Types
921
+ */
922
+ export interface ToolCallStreamingState extends ToolCallBase {
923
+ status: ToolCallStatus.Streaming;
924
+ /** Partial parameters accumulated so far */
925
+ partialInput?: string;
926
+ /** Progress message shown while parameters are streaming */
927
+ invocationMessage?: StringOrMarkdown;
928
+ }
929
+ /**
930
+ * Parameters are complete, or a running tool requires re-confirmation
931
+ * (e.g. a mid-execution permission check).
932
+ *
933
+ * @category Tool Call Types
934
+ */
935
+ export interface ToolCallPendingConfirmationState extends ToolCallBase, ToolCallParameterFields {
936
+ status: ToolCallStatus.PendingConfirmation;
937
+ /** Short title for the confirmation prompt (e.g. `"Run in terminal"`, `"Write file"`) */
938
+ confirmationTitle?: StringOrMarkdown;
939
+ /** File edits that this tool call will perform, for preview before confirmation */
940
+ edits?: {
941
+ items: FileEdit[];
942
+ };
943
+ /** Whether the agent host allows the client to edit the tool's input parameters before confirming */
944
+ editable?: boolean;
945
+ /**
946
+ * Options the server offers for this confirmation. When present, the client
947
+ * SHOULD render these instead of a plain approve/deny UI. Each option
948
+ * belongs to a {@link ConfirmationOptionGroup} so the client can still
949
+ * categorise the choices.
950
+ */
951
+ options?: ConfirmationOption[];
952
+ }
953
+ /**
954
+ * Tool is actively executing.
955
+ *
956
+ * @category Tool Call Types
957
+ */
958
+ export interface ToolCallRunningState extends ToolCallBase, ToolCallParameterFields {
959
+ status: ToolCallStatus.Running;
960
+ /** How the tool was confirmed for execution */
961
+ confirmed: ToolCallConfirmationReason;
962
+ /** The confirmation option the user selected, if confirmation options were provided */
963
+ selectedOption?: ConfirmationOption;
964
+ /**
965
+ * Partial content produced while the tool is still executing.
966
+ *
967
+ * For example, a terminal content block lets clients subscribe to live
968
+ * output before the tool completes.
969
+ */
970
+ content?: ToolResultContent[];
971
+ }
972
+ /**
973
+ * Tool finished executing, waiting for client to approve the result.
974
+ *
975
+ * @category Tool Call Types
976
+ */
977
+ export interface ToolCallPendingResultConfirmationState extends ToolCallBase, ToolCallParameterFields, ToolCallResult {
978
+ status: ToolCallStatus.PendingResultConfirmation;
979
+ /** How the tool was confirmed for execution */
980
+ confirmed: ToolCallConfirmationReason;
981
+ /** The confirmation option the user selected, if confirmation options were provided */
982
+ selectedOption?: ConfirmationOption;
983
+ }
984
+ /**
985
+ * Tool completed successfully or with an error.
986
+ *
987
+ * @category Tool Call Types
988
+ */
989
+ export interface ToolCallCompletedState extends ToolCallBase, ToolCallParameterFields, ToolCallResult {
990
+ status: ToolCallStatus.Completed;
991
+ /** How the tool was confirmed for execution */
992
+ confirmed: ToolCallConfirmationReason;
993
+ /** The confirmation option the user selected, if confirmation options were provided */
994
+ selectedOption?: ConfirmationOption;
995
+ }
996
+ /**
997
+ * Tool call was cancelled before execution.
998
+ *
999
+ * @category Tool Call Types
1000
+ */
1001
+ export interface ToolCallCancelledState extends ToolCallBase, ToolCallParameterFields {
1002
+ status: ToolCallStatus.Cancelled;
1003
+ /** Why the tool was cancelled */
1004
+ reason: ToolCallCancellationReason;
1005
+ /** Optional message explaining the cancellation */
1006
+ reasonMessage?: StringOrMarkdown;
1007
+ /** What the user suggested doing instead */
1008
+ userSuggestion?: Message;
1009
+ /** The confirmation option the user selected, if confirmation options were provided */
1010
+ selectedOption?: ConfirmationOption;
1011
+ }
1012
+ /**
1013
+ * Discriminated union of all tool call lifecycle states.
1014
+ *
1015
+ * See the [state model guide](/guide/state-model.html#tool-call-lifecycle)
1016
+ * for the full state machine diagram.
1017
+ *
1018
+ * @category Tool Call Types
1019
+ */
1020
+ export type ToolCallState = ToolCallStreamingState | ToolCallPendingConfirmationState | ToolCallRunningState | ToolCallPendingResultConfirmationState | ToolCallCompletedState | ToolCallCancelledState;
1021
+ /**
1022
+ * The two tool-call states that block on a client confirmation: parameter
1023
+ * confirmation before execution ({@link ToolCallPendingConfirmationState}) and
1024
+ * result confirmation after execution
1025
+ * ({@link ToolCallPendingResultConfirmationState}).
1026
+ *
1027
+ * Surfaced at the session level by {@link SessionToolConfirmationRequest}.
1028
+ *
1029
+ * @category Tool Call Types
1030
+ */
1031
+ export type ToolCallConfirmationState = ToolCallPendingConfirmationState | ToolCallPendingResultConfirmationState;
1032
+ /**
1033
+ * Discriminant for tool result content types.
1034
+ *
1035
+ * @category Tool Result Content
1036
+ */
1037
+ export declare enum ToolResultContentType {
1038
+ Text = "text",
1039
+ EmbeddedResource = "embeddedResource",
1040
+ Resource = "resource",
1041
+ FileEdit = "fileEdit",
1042
+ Terminal = "terminal",
1043
+ ShellExit = "shell_exit",
1044
+ Subagent = "subagent"
1045
+ }
1046
+ /**
1047
+ * Text content in a tool result.
1048
+ *
1049
+ * Mirrors MCP `TextContent`.
1050
+ *
1051
+ * @category Tool Result Content
1052
+ */
1053
+ export interface ToolResultTextContent {
1054
+ type: ToolResultContentType.Text;
1055
+ /** The text content */
1056
+ text: string;
1057
+ }
1058
+ /**
1059
+ * Base64-encoded binary content embedded in a tool result.
1060
+ *
1061
+ * Mirrors MCP `EmbeddedResource` for inline binary data.
1062
+ *
1063
+ * @category Tool Result Content
1064
+ */
1065
+ export interface ToolResultEmbeddedResourceContent {
1066
+ type: ToolResultContentType.EmbeddedResource;
1067
+ /** Base64-encoded data */
1068
+ data: string;
1069
+ /** Content type (e.g. `"image/png"`, `"application/pdf"`) */
1070
+ contentType: string;
1071
+ }
1072
+ /**
1073
+ * A reference to a resource stored outside the tool result.
1074
+ *
1075
+ * Wraps {@link ContentRef} for lazy-loading large results.
1076
+ *
1077
+ * @category Tool Result Content
1078
+ */
1079
+ export interface ToolResultResourceContent extends ContentRef {
1080
+ type: ToolResultContentType.Resource;
1081
+ }
1082
+ /**
1083
+ * Describes a file modification performed by a tool.
1084
+ *
1085
+ * @category Tool Result Content
1086
+ */
1087
+ export interface ToolResultFileEditContent extends FileEdit {
1088
+ type: ToolResultContentType.FileEdit;
1089
+ }
1090
+ /**
1091
+ * A reference to a terminal whose output is relevant to this tool result.
1092
+ *
1093
+ * Clients can subscribe to the terminal's URI to stream its output in real
1094
+ * time, providing live feedback while a tool is executing.
1095
+ *
1096
+ * @category Tool Result Content
1097
+ */
1098
+ export interface ToolResultTerminalContent {
1099
+ type: ToolResultContentType.Terminal;
1100
+ /** Terminal URI (subscribable for full terminal state) */
1101
+ resource: URI;
1102
+ /** Display title for the terminal content */
1103
+ title: string;
1104
+ }
1105
+ /**
1106
+ * Shell command exit metadata emitted by the Copilot SDK shell tool.
1107
+ *
1108
+ * @category Tool Result Content
1109
+ */
1110
+ export interface ToolResultShellExitContent {
1111
+ type: ToolResultContentType.ShellExit;
1112
+ /** Shell id, as assigned by Copilot runtime */
1113
+ shellId: string;
1114
+ /** Exit code from the completed shell command */
1115
+ exitCode: number;
1116
+ /** Working directory where the shell command was executed */
1117
+ cwd?: string;
1118
+ /** Output preview associated with the shell command, if available */
1119
+ outputPreview?: string;
1120
+ /** Whether outputPreview is known to be incomplete or truncated */
1121
+ outputTruncated?: boolean;
1122
+ }
1123
+ /**
1124
+ * A reference, embedded in a tool result, to a worker chat spawned by the tool
1125
+ * call (a sub-agent delegation), referenced by a chat URI (`ahp-chat:/...`).
1126
+ *
1127
+ * This is the spawning tool call's forward view of the worker. The worker chat
1128
+ * records the same edge in reverse via its {@link ChatOrigin} (`kind: 'tool'`),
1129
+ * whose `toolCallId` identifies the tool call that emitted this content.
1130
+ *
1131
+ * @category Tool Result Content
1132
+ */
1133
+ export interface ToolResultSubagentContent {
1134
+ type: ToolResultContentType.Subagent;
1135
+ /** Worker chat URI (subscribable for full chat state) */
1136
+ resource: URI;
1137
+ /** Display title for the subagent */
1138
+ title: string;
1139
+ /** Internal agent name */
1140
+ agentName?: string;
1141
+ /** Human-readable description of the subagent's task */
1142
+ description?: string;
1143
+ }
1144
+ /**
1145
+ * Content block in a tool result.
1146
+ *
1147
+ * Mirrors the content blocks in MCP `CallToolResult.content`, plus
1148
+ * `ToolResultResourceContent` for lazy-loading large results,
1149
+ * `ToolResultFileEditContent` for file edit diffs,
1150
+ * `ToolResultTerminalContent` for live terminal output,
1151
+ * `ToolResultShellExitContent` for shell command exit metadata, and
1152
+ * `ToolResultSubagentContent` for tool-spawned worker chats (AHP extensions).
1153
+ *
1154
+ * @category Tool Result Content
1155
+ */
1156
+ export type ToolResultContent = ToolResultTextContent | ToolResultEmbeddedResourceContent | ToolResultResourceContent | ToolResultFileEditContent | ToolResultTerminalContent | ToolResultShellExitContent | ToolResultSubagentContent;
1157
+ export {};