@codingame/monaco-vscode-api 32.0.2 → 33.0.4

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 (581) hide show
  1. package/missing-services.js +51 -7
  2. package/package.json +9 -9
  3. package/service-override/tools/views.d.ts +2 -2
  4. package/services.d.ts +3 -0
  5. package/services.js +8 -3
  6. package/vscode/product.json.js +1 -1
  7. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  8. package/vscode/src/vs/base/common/arrays.js +5 -1
  9. package/vscode/src/vs/base/common/async.js +94 -1
  10. package/vscode/src/vs/base/common/cache.js +22 -1
  11. package/vscode/src/vs/base/common/defaultAccount.d.ts +63 -0
  12. package/vscode/src/vs/base/common/policy.d.ts +1 -1
  13. package/vscode/src/vs/base/common/product.d.ts +0 -2
  14. package/vscode/src/vs/base/parts/ipc/common/ipc.net.d.ts +12 -0
  15. package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +1 -1
  16. package/vscode/src/vs/editor/common/config/editorOptions.js +1 -1
  17. package/vscode/src/vs/editor/common/textModelEditSource.js +18 -1
  18. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +2 -2
  19. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.d.ts +2 -0
  20. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +22 -2
  21. package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +1 -0
  22. package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +58 -17
  23. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  24. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  25. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +9 -9
  26. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
  27. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
  28. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  29. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  30. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  31. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  32. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  33. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  34. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  35. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  36. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  37. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  38. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/textualHighlightProvider.js +6 -3
  39. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  40. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
  41. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +3 -0
  42. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  43. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  44. package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +7 -0
  45. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +24 -10
  46. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +1 -0
  47. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +12 -12
  48. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
  49. package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
  50. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  51. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  52. package/vscode/src/vs/platform/agentHost/browser/nullAgentHostService.d.ts +1 -1
  53. package/vscode/src/vs/platform/agentHost/common/agentHostUri.js +3 -0
  54. package/vscode/src/vs/platform/agentHost/common/agentPluginManager.d.ts +1 -1
  55. package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +1 -1
  56. package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.d.ts +13 -4
  57. package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.js +8 -3
  58. package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.service.d.ts +17 -1
  59. package/vscode/src/vs/platform/agentHost/common/sshRemoteAgentHost.d.ts +27 -0
  60. package/vscode/src/vs/platform/agentHost/common/sshRemoteAgentHost.service.d.ts +20 -1
  61. package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +1 -1
  62. package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +1054 -0
  63. package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.js +59 -0
  64. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +17 -1
  65. package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +6 -2
  66. package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +5 -0
  67. package/vscode/src/vs/platform/agentHost/common/state/protocolUpgrade.d.ts +73 -0
  68. package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +139 -0
  69. package/vscode/src/vs/platform/agentHost/common/state/sessionState.js +24 -0
  70. package/vscode/src/vs/platform/browserView/common/browserView.d.ts +20 -0
  71. package/vscode/src/vs/platform/browserView/common/browserView.js +1 -0
  72. package/vscode/src/vs/platform/browserView/common/browserViewTelemetry.d.ts +3 -1
  73. package/vscode/src/vs/platform/configuration/common/configuration.js +1 -1
  74. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
  75. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  76. package/vscode/src/vs/platform/contextkey/common/contextkey.js +10 -10
  77. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  78. package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
  79. package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.d.ts +16 -1
  80. package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.js +8 -0
  81. package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.service.d.ts +9 -1
  82. package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
  83. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  84. package/vscode/src/vs/platform/environment/common/argv.d.ts +0 -2
  85. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +14 -14
  86. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  87. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
  88. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +21 -21
  89. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  90. package/vscode/src/vs/platform/files/common/files.js +6 -6
  91. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  92. package/vscode/src/vs/platform/hover/browser/hoverService.js +1 -1
  93. package/vscode/src/vs/platform/hover/browser/hoverWidget.js +1 -1
  94. package/vscode/src/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
  95. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
  96. package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
  97. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
  98. package/vscode/src/vs/platform/list/browser/listService.js +25 -25
  99. package/vscode/src/vs/platform/log/common/log.js +6 -6
  100. package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
  101. package/vscode/src/vs/platform/markers/common/markers.js +6 -6
  102. package/vscode/src/vs/platform/mcp/common/mcpManagementService.js +1 -1
  103. package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.config.contribution.js +5 -5
  104. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.service.d.ts +2 -4
  105. package/vscode/src/vs/platform/notification/common/notification.js +3 -3
  106. package/vscode/src/vs/platform/policy/common/policy.d.ts +1 -1
  107. package/vscode/src/vs/platform/product/common/product.js +3 -3
  108. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
  109. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -5
  110. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
  111. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
  112. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  113. package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
  114. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  115. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
  116. package/vscode/src/vs/platform/request/common/request.js +20 -20
  117. package/vscode/src/vs/platform/telemetry/common/telemetry.js +4 -1
  118. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
  119. package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +34 -34
  120. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
  121. package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
  122. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +19 -19
  123. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +9 -9
  124. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
  125. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +48 -48
  126. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  127. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
  128. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  129. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +16 -16
  130. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +10 -10
  131. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  132. package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
  133. package/vscode/src/vs/platform/theme/common/sizeUtils.d.ts +5 -3
  134. package/vscode/src/vs/platform/theme/common/sizeUtils.js +17 -3
  135. package/vscode/src/vs/platform/theme/common/sizes/baseSizes.js +11 -11
  136. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
  137. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  138. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  139. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
  140. package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +2 -2
  141. package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +1 -1
  142. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  143. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +1 -1
  144. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  145. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +12 -12
  146. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +7 -1
  147. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +5 -5
  148. package/vscode/src/vs/workbench/api/common/extHostChatOutputRenderer.d.ts +2 -2
  149. package/vscode/src/vs/workbench/api/common/extHostChatOutputRenderer.js +2 -2
  150. package/vscode/src/vs/workbench/api/common/extHostChatStatus.js +9 -1
  151. package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +1 -0
  152. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  153. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  154. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
  155. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +3 -4
  156. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  157. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  158. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  159. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +4 -1
  160. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
  161. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  162. package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +12 -0
  163. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +98 -38
  164. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +11 -11
  165. package/vscode/src/vs/workbench/browser/actions/developerActions.js +35 -35
  166. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +127 -127
  167. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  168. package/vscode/src/vs/workbench/browser/actions/windowActions.js +29 -29
  169. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
  170. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
  171. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  172. package/vscode/src/vs/workbench/browser/labels.js +4 -4
  173. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +23 -23
  174. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +26 -26
  175. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +4 -4
  176. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
  177. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +9 -9
  178. package/vscode/src/vs/workbench/browser/parts/compositePart.js +3 -3
  179. package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.js +1 -1
  180. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +3 -3
  181. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
  182. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
  183. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +37 -37
  184. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +12 -12
  185. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +1 -1
  186. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +19 -9
  187. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.d.ts +1 -2
  188. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +139 -176
  189. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +28 -27
  190. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +1 -1
  191. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +7 -7
  192. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +12 -12
  193. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +2 -2
  194. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +16 -10
  195. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -10
  196. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
  197. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +66 -66
  198. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +3 -3
  199. package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.js +24 -7
  200. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +1 -1
  201. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
  202. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
  203. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
  204. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
  205. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +19 -19
  206. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +22 -22
  207. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
  208. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
  209. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +13 -13
  210. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
  211. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
  212. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
  213. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +4 -4
  214. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +4 -4
  215. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +3 -3
  216. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +27 -27
  217. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +3 -3
  218. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -2
  219. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +1 -1
  220. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +10 -10
  221. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +15 -15
  222. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
  223. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
  224. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
  225. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +4 -4
  226. package/vscode/src/vs/workbench/browser/parts/views/viewMenuActions.d.ts +7 -2
  227. package/vscode/src/vs/workbench/browser/parts/views/viewMenuActions.js +28 -5
  228. package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +7 -0
  229. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +11 -5
  230. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +12 -9
  231. package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
  232. package/vscode/src/vs/workbench/browser/window.js +14 -14
  233. package/vscode/src/vs/workbench/browser/workbench.contribution.js +225 -225
  234. package/vscode/src/vs/workbench/common/configuration.js +9 -9
  235. package/vscode/src/vs/workbench/common/contextkeys.js +82 -82
  236. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  237. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  238. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
  239. package/vscode/src/vs/workbench/common/editor.js +4 -4
  240. package/vscode/src/vs/workbench/common/theme.js +161 -161
  241. package/vscode/src/vs/workbench/common/views.js +4 -4
  242. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +156 -156
  243. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
  244. package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.js +1 -1
  245. package/vscode/src/vs/workbench/contrib/browserView/common/browserView.js +10 -7
  246. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +68 -66
  247. package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.service.d.ts +8 -0
  248. package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.service.js +6 -0
  249. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.service.d.ts +70 -0
  250. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.service.js +6 -0
  251. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +12 -12
  252. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +1 -1
  253. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +3 -3
  254. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
  255. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
  256. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.service.d.ts +4 -2
  257. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +2 -2
  258. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +43 -43
  259. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +1 -1
  260. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatOutputPartStateCache.service.d.ts +7 -0
  261. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatOutputPartStateCache.service.js +6 -0
  262. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +9 -9
  263. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +1 -0
  264. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +93 -86
  265. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +2 -2
  266. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +4 -6
  267. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +29 -21
  268. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.d.ts +7 -8
  269. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +1 -1
  270. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +41 -2
  271. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +3 -0
  272. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +3 -0
  273. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +1 -1
  274. package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.js +2 -2
  275. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +3 -3
  276. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +17 -4
  277. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +152 -49
  278. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +20 -0
  279. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +3 -0
  280. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +17 -8
  281. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +1 -1
  282. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +21 -19
  283. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +18 -18
  284. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.js +20 -20
  285. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.js +79 -79
  286. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +10 -10
  287. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.d.ts +92 -0
  288. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.js +329 -0
  289. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +5 -44
  290. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +33 -276
  291. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +1 -1
  292. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +8 -8
  293. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +10 -10
  294. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +7 -7
  295. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +2 -2
  296. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +3 -3
  297. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +4 -4
  298. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +22 -22
  299. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.d.ts +2 -1
  300. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +6 -5
  301. package/vscode/src/vs/workbench/contrib/chat/common/tools/toolResultCompressor.service.d.ts +2 -1
  302. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +11 -11
  303. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  304. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  305. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  306. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
  307. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
  308. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  309. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
  310. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  311. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  312. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -3
  313. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  314. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +12 -12
  315. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  316. package/vscode/src/vs/workbench/contrib/codeEditor/common/languageConfigurationExtensionPoint.js +65 -65
  317. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
  318. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +7 -7
  319. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +2 -2
  320. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +3 -3
  321. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -3
  322. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
  323. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +3 -3
  324. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
  325. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  326. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +7 -7
  327. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
  328. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
  329. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +14 -14
  330. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -16
  331. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
  332. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -12
  333. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorDiffInput.d.ts +7 -12
  334. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorDiffInput.js +68 -64
  335. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
  336. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
  337. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
  338. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
  339. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +75 -75
  340. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
  341. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +6 -6
  342. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
  343. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +38 -38
  344. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
  345. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
  346. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
  347. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
  348. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +4 -4
  349. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +2 -2
  350. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +18 -18
  351. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
  352. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +9 -9
  353. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  354. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
  355. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
  356. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  357. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  358. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
  359. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
  360. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
  361. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
  362. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +15 -0
  363. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +85 -0
  364. package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +1 -1
  365. package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +1 -1
  366. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +41 -41
  367. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +1 -1
  368. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +15 -15
  369. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +14 -14
  370. package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +149 -151
  371. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +179 -179
  372. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
  373. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
  374. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +5 -5
  375. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -25
  376. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
  377. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +7 -7
  378. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +47 -47
  379. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +6 -6
  380. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +30 -30
  381. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +79 -76
  382. package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
  383. package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +1 -1
  384. package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
  385. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
  386. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
  387. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
  388. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
  389. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +3 -3
  390. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
  391. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -3
  392. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
  393. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
  394. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
  395. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
  396. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +39 -39
  397. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
  398. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +4 -4
  399. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -2
  400. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  401. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +28 -28
  402. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +50 -50
  403. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
  404. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  405. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
  406. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
  407. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +17 -17
  408. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
  409. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
  410. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
  411. package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -16
  412. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  413. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  414. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  415. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  416. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  417. package/vscode/src/vs/workbench/contrib/inlineCompletions/browser/inlineCompletionLanguageStatusBarContribution.d.ts +17 -0
  418. package/vscode/src/vs/workbench/contrib/inlineCompletions/browser/inlineCompletionLanguageStatusBarContribution.js +108 -0
  419. package/vscode/src/vs/workbench/contrib/inlineCompletions/browser/inlineCompletions.contribution.d.ts +8 -0
  420. package/vscode/src/vs/workbench/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +49 -0
  421. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  422. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  423. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.js +66 -66
  424. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +40 -40
  425. package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +42 -42
  426. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +16 -16
  427. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
  428. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
  429. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
  430. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -2
  431. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
  432. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.js +8 -8
  433. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.js +4 -4
  434. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
  435. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +3 -3
  436. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
  437. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +17 -17
  438. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
  439. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
  440. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
  441. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
  442. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +7 -7
  443. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
  444. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
  445. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
  446. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
  447. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
  448. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
  449. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
  450. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
  451. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
  452. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
  453. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
  454. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
  455. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
  456. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
  457. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
  458. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
  459. package/vscode/src/vs/workbench/contrib/opener/browser/opener.contribution.d.ts +1 -0
  460. package/vscode/src/vs/workbench/contrib/opener/browser/opener.contribution.js +44 -0
  461. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
  462. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
  463. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
  464. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +60 -60
  465. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +3 -3
  466. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
  467. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
  468. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
  469. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +59 -59
  470. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
  471. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
  472. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +14 -14
  473. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +9 -9
  474. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
  475. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
  476. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
  477. package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +5 -5
  478. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
  479. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
  480. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
  481. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
  482. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +55 -55
  483. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +11 -11
  484. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
  485. package/vscode/src/vs/workbench/contrib/search/common/search.d.ts +2 -0
  486. package/vscode/src/vs/workbench/contrib/search/common/search.js +9 -1
  487. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
  488. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
  489. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  490. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  491. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  492. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  493. package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
  494. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +6 -6
  495. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
  496. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
  497. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +3 -3
  498. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
  499. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +40 -40
  500. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
  501. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +10 -10
  502. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
  503. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
  504. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
  505. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
  506. package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
  507. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +9 -9
  508. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.d.ts +2 -0
  509. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +104 -74
  510. package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
  511. package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
  512. package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +2 -2
  513. package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.js +1 -1
  514. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
  515. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
  516. package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
  517. package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
  518. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  519. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  520. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  521. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
  522. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
  523. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.js +30 -30
  524. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
  525. package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.js +14 -14
  526. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
  527. package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +2 -1
  528. package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +14 -3
  529. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +31 -25
  530. package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +15 -0
  531. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
  532. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +11 -2
  533. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +65 -22
  534. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.service.d.ts +2 -0
  535. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
  536. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
  537. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  538. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +15 -3
  539. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +19 -3
  540. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.d.ts +2 -2
  541. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
  542. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
  543. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
  544. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +88 -88
  545. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
  546. package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
  547. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  548. package/vscode/src/vs/workbench/services/policies/common/accountPolicyService.js +1 -1
  549. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
  550. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
  551. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
  552. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +2 -2
  553. package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +30 -30
  554. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  555. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  556. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  557. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
  558. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
  559. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +18 -18
  560. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
  561. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  562. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +24 -24
  563. package/vscode/src/vs/workbench/services/title/browser/titleService.service.d.ts +7 -0
  564. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
  565. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
  566. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
  567. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
  568. package/vscode-dts/vscode.proposed.authIssuers.d.ts +14 -0
  569. package/vscode-dts/vscode.proposed.chatOutputRenderer.d.ts +23 -3
  570. package/vscode-dts/vscode.proposed.chatProvider.d.ts +0 -9
  571. package/vscode-dts/vscode.proposed.chatStatusItem.d.ts +5 -0
  572. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.service.d.ts +0 -7
  573. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.service.js +0 -6
  574. package/vscode/src/vs/workbench/contrib/chat/common/tools/toolResultCompressor.d.ts +0 -39
  575. package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.d.ts +0 -4
  576. package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.js +0 -9
  577. package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.d.ts +0 -76
  578. package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +0 -470
  579. package/vscode/src/vs/workbench/contrib/extensions/browser/media/runtimeExtensionsEditor.css +0 -86
  580. package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.d.ts +0 -15
  581. package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +0 -47
@@ -0,0 +1,1054 @@
1
+ import { ToolCallConfirmationReason, ToolCallCancellationReason, PendingMessageKind, type URI, type StringOrMarkdown, type AgentInfo, type ErrorInfo, type ModelSelection, type UserMessage, type ResponsePart, type ToolCallResult, type ToolResultContent, type ToolDefinition, type SessionActiveClient, type UsageInfo, type SessionCustomization, type FileEdit, type SessionInputAnswer, type SessionInputRequest, type TerminalInfo, type TerminalClaim, type SessionInputResponseKind, type ConfirmationOption } from "./state.js";
2
+ /**
3
+ * Discriminant values for all state actions.
4
+ *
5
+ * @category Actions
6
+ */
7
+ export declare enum ActionType {
8
+ RootAgentsChanged = "root/agentsChanged",
9
+ RootActiveSessionsChanged = "root/activeSessionsChanged",
10
+ SessionReady = "session/ready",
11
+ SessionCreationFailed = "session/creationFailed",
12
+ SessionTurnStarted = "session/turnStarted",
13
+ SessionDelta = "session/delta",
14
+ SessionResponsePart = "session/responsePart",
15
+ SessionToolCallStart = "session/toolCallStart",
16
+ SessionToolCallDelta = "session/toolCallDelta",
17
+ SessionToolCallReady = "session/toolCallReady",
18
+ SessionToolCallConfirmed = "session/toolCallConfirmed",
19
+ SessionToolCallComplete = "session/toolCallComplete",
20
+ SessionToolCallResultConfirmed = "session/toolCallResultConfirmed",
21
+ SessionToolCallContentChanged = "session/toolCallContentChanged",
22
+ SessionTurnComplete = "session/turnComplete",
23
+ SessionTurnCancelled = "session/turnCancelled",
24
+ SessionError = "session/error",
25
+ SessionTitleChanged = "session/titleChanged",
26
+ SessionUsage = "session/usage",
27
+ SessionReasoning = "session/reasoning",
28
+ SessionModelChanged = "session/modelChanged",
29
+ SessionServerToolsChanged = "session/serverToolsChanged",
30
+ SessionActiveClientChanged = "session/activeClientChanged",
31
+ SessionActiveClientToolsChanged = "session/activeClientToolsChanged",
32
+ SessionPendingMessageSet = "session/pendingMessageSet",
33
+ SessionPendingMessageRemoved = "session/pendingMessageRemoved",
34
+ SessionQueuedMessagesReordered = "session/queuedMessagesReordered",
35
+ SessionInputRequested = "session/inputRequested",
36
+ SessionInputAnswerChanged = "session/inputAnswerChanged",
37
+ SessionInputCompleted = "session/inputCompleted",
38
+ SessionCustomizationsChanged = "session/customizationsChanged",
39
+ SessionCustomizationToggled = "session/customizationToggled",
40
+ SessionTruncated = "session/truncated",
41
+ SessionIsReadChanged = "session/isReadChanged",
42
+ SessionIsArchivedChanged = "session/isArchivedChanged",
43
+ SessionActivityChanged = "session/activityChanged",
44
+ SessionDiffsChanged = "session/diffsChanged",
45
+ SessionConfigChanged = "session/configChanged",
46
+ SessionMetaChanged = "session/metaChanged",
47
+ RootTerminalsChanged = "root/terminalsChanged",
48
+ RootConfigChanged = "root/configChanged",
49
+ TerminalData = "terminal/data",
50
+ TerminalInput = "terminal/input",
51
+ TerminalResized = "terminal/resized",
52
+ TerminalClaimed = "terminal/claimed",
53
+ TerminalTitleChanged = "terminal/titleChanged",
54
+ TerminalCwdChanged = "terminal/cwdChanged",
55
+ TerminalExited = "terminal/exited",
56
+ TerminalCleared = "terminal/cleared",
57
+ TerminalCommandDetectionAvailable = "terminal/commandDetectionAvailable",
58
+ TerminalCommandExecuted = "terminal/commandExecuted",
59
+ TerminalCommandFinished = "terminal/commandFinished"
60
+ }
61
+ /**
62
+ * Identifies the client that originally dispatched an action.
63
+ */
64
+ export interface ActionOrigin {
65
+ clientId: string;
66
+ clientSeq: number;
67
+ }
68
+ /**
69
+ * Every action is wrapped in an `ActionEnvelope`.
70
+ */
71
+ export interface ActionEnvelope {
72
+ readonly action: StateAction;
73
+ readonly serverSeq: number;
74
+ readonly origin: ActionOrigin | undefined;
75
+ readonly rejectionReason?: string;
76
+ }
77
+ /**
78
+ * Base interface for all tool-call-scoped actions, carrying the common
79
+ * session, turn, and tool call identifiers.
80
+ *
81
+ * @category Session Actions
82
+ */
83
+ interface ToolCallActionBase {
84
+ /** Session URI */
85
+ session: URI;
86
+ /** Turn identifier */
87
+ turnId: string;
88
+ /** Tool call identifier */
89
+ toolCallId: string;
90
+ /**
91
+ * Additional provider-specific metadata for this tool call.
92
+ *
93
+ * Clients MAY look for well-known keys here to provide enhanced UI.
94
+ * For example, a `ptyTerminal` key with `{ input: string; output: string }`
95
+ * indicates the tool operated on a terminal (both `input` and `output` may
96
+ * contain escape sequences).
97
+ */
98
+ _meta?: Record<string, unknown>;
99
+ }
100
+ /**
101
+ * Fired when available agent backends or their models change.
102
+ *
103
+ * @category Root Actions
104
+ * @version 1
105
+ */
106
+ export interface RootAgentsChangedAction {
107
+ type: ActionType.RootAgentsChanged;
108
+ /** Updated agent list */
109
+ agents: AgentInfo[];
110
+ }
111
+ /**
112
+ * Fired when the number of active sessions changes.
113
+ *
114
+ * @category Root Actions
115
+ * @version 1
116
+ */
117
+ export interface RootActiveSessionsChangedAction {
118
+ type: ActionType.RootActiveSessionsChanged;
119
+ /** Current count of active sessions */
120
+ activeSessions: number;
121
+ }
122
+ /**
123
+ * Fired when the list of known terminals changes.
124
+ *
125
+ * Full-replacement semantics: the `terminals` array replaces the previous
126
+ * `terminals` entirely.
127
+ *
128
+ * @category Root Actions
129
+ * @version 1
130
+ */
131
+ export interface RootTerminalsChangedAction {
132
+ type: ActionType.RootTerminalsChanged;
133
+ /** Updated terminal list (full replacement) */
134
+ terminals: TerminalInfo[];
135
+ }
136
+ /**
137
+ * Fired when agent-host configuration values change.
138
+ *
139
+ * By default, the reducer merges the new values into `state.config.values`.
140
+ * Set `replace` to `true` to replace all values instead of merging.
141
+ *
142
+ * @category Root Actions
143
+ * @version 1
144
+ * @clientDispatchable
145
+ */
146
+ export interface RootConfigChangedAction {
147
+ type: ActionType.RootConfigChanged;
148
+ /** Updated config values */
149
+ config: Record<string, unknown>;
150
+ /** When `true`, replaces all config values instead of merging */
151
+ replace?: boolean;
152
+ }
153
+ /**
154
+ * Session backend initialized successfully.
155
+ *
156
+ * @category Session Actions
157
+ * @version 1
158
+ */
159
+ export interface SessionReadyAction {
160
+ type: ActionType.SessionReady;
161
+ /** Session URI */
162
+ session: URI;
163
+ }
164
+ /**
165
+ * Session backend failed to initialize.
166
+ *
167
+ * @category Session Actions
168
+ * @version 1
169
+ */
170
+ export interface SessionCreationFailedAction {
171
+ type: ActionType.SessionCreationFailed;
172
+ /** Session URI */
173
+ session: URI;
174
+ /** Error details */
175
+ error: ErrorInfo;
176
+ }
177
+ /**
178
+ * User sent a message; server starts agent processing.
179
+ *
180
+ * @category Session Actions
181
+ * @version 1
182
+ * @clientDispatchable
183
+ */
184
+ export interface SessionTurnStartedAction {
185
+ type: ActionType.SessionTurnStarted;
186
+ /** Session URI */
187
+ session: URI;
188
+ /** Turn identifier */
189
+ turnId: string;
190
+ /** User's message */
191
+ userMessage: UserMessage;
192
+ /** If this turn was auto-started from a queued message, the ID of that message */
193
+ queuedMessageId?: string;
194
+ }
195
+ /**
196
+ * Streaming text chunk from the assistant, appended to a specific response part.
197
+ *
198
+ * The server MUST first emit a `session/responsePart` to create the target
199
+ * part (markdown or reasoning), then use this action to append text to it.
200
+ *
201
+ * @category Session Actions
202
+ * @version 1
203
+ */
204
+ export interface SessionDeltaAction {
205
+ type: ActionType.SessionDelta;
206
+ /** Session URI */
207
+ session: URI;
208
+ /** Turn identifier */
209
+ turnId: string;
210
+ /** Identifier of the response part to append to */
211
+ partId: string;
212
+ /** Text chunk */
213
+ content: string;
214
+ }
215
+ /**
216
+ * Structured content appended to the response.
217
+ *
218
+ * @category Session Actions
219
+ * @version 1
220
+ */
221
+ export interface SessionResponsePartAction {
222
+ type: ActionType.SessionResponsePart;
223
+ /** Session URI */
224
+ session: URI;
225
+ /** Turn identifier */
226
+ turnId: string;
227
+ /** Response part (markdown or content ref) */
228
+ part: ResponsePart;
229
+ }
230
+ /**
231
+ * A tool call begins — parameters are streaming from the LM.
232
+ *
233
+ * For client-provided tools, the server sets `toolClientId` to identify the
234
+ * owning client. That client is responsible for executing the tool once it
235
+ * reaches the `running` state and dispatching `session/toolCallComplete`.
236
+ *
237
+ * @category Session Actions
238
+ * @version 1
239
+ */
240
+ export interface SessionToolCallStartAction extends ToolCallActionBase {
241
+ type: ActionType.SessionToolCallStart;
242
+ /** Internal tool name (for debugging/logging) */
243
+ toolName: string;
244
+ /** Human-readable tool name */
245
+ displayName: string;
246
+ /**
247
+ * If this tool is provided by a client, the `clientId` of the owning client.
248
+ * Absent for server-side tools.
249
+ */
250
+ toolClientId?: string;
251
+ }
252
+ /**
253
+ * Streaming partial parameters for a tool call.
254
+ *
255
+ * @category Session Actions
256
+ * @version 1
257
+ */
258
+ export interface SessionToolCallDeltaAction extends ToolCallActionBase {
259
+ type: ActionType.SessionToolCallDelta;
260
+ /** Partial parameter content to append */
261
+ content: string;
262
+ /** Updated progress message */
263
+ invocationMessage?: StringOrMarkdown;
264
+ }
265
+ /**
266
+ * Tool call parameters are complete, or a running tool requires re-confirmation.
267
+ *
268
+ * When dispatched for a `streaming` tool call, transitions to `pending-confirmation`
269
+ * or directly to `running` if `confirmed` is set.
270
+ *
271
+ * When dispatched for a `running` tool call (e.g. mid-execution permission needed),
272
+ * transitions back to `pending-confirmation`. The `invocationMessage` and `_meta`
273
+ * SHOULD be updated to describe the specific confirmation needed. Clients use the
274
+ * standard `session/toolCallConfirmed` flow to approve or deny.
275
+ *
276
+ * For client-provided tools, the server typically sets `confirmed` to
277
+ * `'not-needed'` so the tool transitions directly to `running`, where the
278
+ * owning client can begin execution immediately.
279
+ *
280
+ * @category Session Actions
281
+ * @version 1
282
+ */
283
+ export interface SessionToolCallReadyAction extends ToolCallActionBase {
284
+ type: ActionType.SessionToolCallReady;
285
+ /** Message describing what the tool will do or what confirmation is needed */
286
+ invocationMessage: StringOrMarkdown;
287
+ /** Raw tool input */
288
+ toolInput?: string;
289
+ /** Short title for the confirmation prompt (e.g. `"Run in terminal"`, `"Write file"`) */
290
+ confirmationTitle?: StringOrMarkdown;
291
+ /** File edits that this tool call will perform, for preview before confirmation */
292
+ edits?: {
293
+ items: FileEdit[];
294
+ };
295
+ /** Whether the agent host allows the client to edit the tool's input parameters before confirming */
296
+ editable?: boolean;
297
+ /** If set, the tool was auto-confirmed and transitions directly to `running` */
298
+ confirmed?: ToolCallConfirmationReason;
299
+ /**
300
+ * Options the server offers for this confirmation. When present, the client
301
+ * SHOULD render these instead of a plain approve/deny UI. Each option
302
+ * belongs to a {@link ConfirmationOptionGroup} so the client can still
303
+ * categorise the choices.
304
+ */
305
+ options?: ConfirmationOption[];
306
+ }
307
+ /**
308
+ * Client approves a pending tool call. The tool transitions to `running`.
309
+ *
310
+ * @category Session Actions
311
+ * @version 1
312
+ * @clientDispatchable
313
+ */
314
+ export interface SessionToolCallApprovedAction extends ToolCallActionBase {
315
+ type: ActionType.SessionToolCallConfirmed;
316
+ /** The tool call was approved */
317
+ approved: true;
318
+ /** How the tool was confirmed */
319
+ confirmed: ToolCallConfirmationReason;
320
+ /** Edited tool input parameters, if the client modified them before confirming */
321
+ editedToolInput?: string;
322
+ /** ID of the selected confirmation option, if the server provided options */
323
+ selectedOptionId?: string;
324
+ }
325
+ /**
326
+ * Client denies a pending tool call. The tool transitions to `cancelled`.
327
+ *
328
+ * For client-provided tools, the owning client MUST dispatch this if it does
329
+ * not recognize the tool or cannot execute it.
330
+ *
331
+ * @category Session Actions
332
+ * @version 1
333
+ * @clientDispatchable
334
+ */
335
+ export interface SessionToolCallDeniedAction extends ToolCallActionBase {
336
+ type: ActionType.SessionToolCallConfirmed;
337
+ /** The tool call was denied */
338
+ approved: false;
339
+ /** Why the tool was cancelled */
340
+ reason: ToolCallCancellationReason.Denied | ToolCallCancellationReason.Skipped;
341
+ /** What the user suggested doing instead */
342
+ userSuggestion?: UserMessage;
343
+ /** Optional explanation for the denial */
344
+ reasonMessage?: StringOrMarkdown;
345
+ /** ID of the selected confirmation option, if the server provided options */
346
+ selectedOptionId?: string;
347
+ }
348
+ /**
349
+ * Client confirms or denies a pending tool call.
350
+ *
351
+ * @category Session Actions
352
+ * @version 1
353
+ * @clientDispatchable
354
+ */
355
+ export type SessionToolCallConfirmedAction = SessionToolCallApprovedAction | SessionToolCallDeniedAction;
356
+ /**
357
+ * Tool execution finished. Transitions to `completed` or `pending-result-confirmation`
358
+ * if `requiresResultConfirmation` is `true`.
359
+ *
360
+ * For client-provided tools (where `toolClientId` is set on the tool call state),
361
+ * the owning client dispatches this action with the execution result. The server
362
+ * SHOULD reject this action if the dispatching client does not match `toolClientId`.
363
+ *
364
+ * Servers waiting on a client tool call MAY time out after a reasonable duration
365
+ * if the implementing client disconnects or becomes unresponsive, and dispatch
366
+ * this action with `result.success = false` and an appropriate error.
367
+ *
368
+ * @category Session Actions
369
+ * @version 1
370
+ * @clientDispatchable
371
+ */
372
+ export interface SessionToolCallCompleteAction extends ToolCallActionBase {
373
+ type: ActionType.SessionToolCallComplete;
374
+ /** Execution result */
375
+ result: ToolCallResult;
376
+ /** If true, the result requires client approval before finalizing */
377
+ requiresResultConfirmation?: boolean;
378
+ }
379
+ /**
380
+ * Client approves or denies a tool's result.
381
+ *
382
+ * If `approved` is `false`, the tool transitions to `cancelled` with reason `result-denied`.
383
+ *
384
+ * @category Session Actions
385
+ * @version 1
386
+ * @clientDispatchable
387
+ */
388
+ export interface SessionToolCallResultConfirmedAction extends ToolCallActionBase {
389
+ type: ActionType.SessionToolCallResultConfirmed;
390
+ /** Whether the result was approved */
391
+ approved: boolean;
392
+ }
393
+ /**
394
+ * Partial content produced while a tool is still executing.
395
+ *
396
+ * Replaces the `content` array on the running tool call state. Clients can
397
+ * use this to display live feedback (e.g. a terminal reference) before the
398
+ * tool completes.
399
+ *
400
+ * For client-provided tools (where `toolClientId` is set on the tool call state),
401
+ * the owning client dispatches this action to stream intermediate content while
402
+ * executing. The server SHOULD reject this action if the dispatching client does
403
+ * not match `toolClientId`.
404
+ *
405
+ * @category Session Actions
406
+ * @version 1
407
+ * @clientDispatchable
408
+ */
409
+ export interface SessionToolCallContentChangedAction extends ToolCallActionBase {
410
+ type: ActionType.SessionToolCallContentChanged;
411
+ /** The current partial content for the running tool call */
412
+ content: ToolResultContent[];
413
+ }
414
+ /**
415
+ * Turn finished — the assistant is idle.
416
+ *
417
+ * @category Session Actions
418
+ * @version 1
419
+ */
420
+ export interface SessionTurnCompleteAction {
421
+ type: ActionType.SessionTurnComplete;
422
+ /** Session URI */
423
+ session: URI;
424
+ /** Turn identifier */
425
+ turnId: string;
426
+ }
427
+ /**
428
+ * Turn was aborted; server stops processing.
429
+ *
430
+ * @category Session Actions
431
+ * @version 1
432
+ * @clientDispatchable
433
+ */
434
+ export interface SessionTurnCancelledAction {
435
+ type: ActionType.SessionTurnCancelled;
436
+ /** Session URI */
437
+ session: URI;
438
+ /** Turn identifier */
439
+ turnId: string;
440
+ }
441
+ /**
442
+ * Error during turn processing.
443
+ *
444
+ * @category Session Actions
445
+ * @version 1
446
+ */
447
+ export interface SessionErrorAction {
448
+ type: ActionType.SessionError;
449
+ /** Session URI */
450
+ session: URI;
451
+ /** Turn identifier */
452
+ turnId: string;
453
+ /** Error details */
454
+ error: ErrorInfo;
455
+ }
456
+ /**
457
+ * Session title updated. Fired by the server when the title is auto-generated
458
+ * from conversation, or dispatched by a client to rename a session.
459
+ *
460
+ * @category Session Actions
461
+ * @clientDispatchable
462
+ * @version 1
463
+ */
464
+ export interface SessionTitleChangedAction {
465
+ type: ActionType.SessionTitleChanged;
466
+ /** Session URI */
467
+ session: URI;
468
+ /** New title */
469
+ title: string;
470
+ }
471
+ /**
472
+ * Token usage report for a turn.
473
+ *
474
+ * @category Session Actions
475
+ * @version 1
476
+ */
477
+ export interface SessionUsageAction {
478
+ type: ActionType.SessionUsage;
479
+ /** Session URI */
480
+ session: URI;
481
+ /** Turn identifier */
482
+ turnId: string;
483
+ /** Token usage data */
484
+ usage: UsageInfo;
485
+ }
486
+ /**
487
+ * Reasoning/thinking text from the model, appended to a specific reasoning response part.
488
+ *
489
+ * The server MUST first emit a `session/responsePart` to create the target
490
+ * reasoning part, then use this action to append text to it.
491
+ *
492
+ * @category Session Actions
493
+ * @version 1
494
+ */
495
+ export interface SessionReasoningAction {
496
+ type: ActionType.SessionReasoning;
497
+ /** Session URI */
498
+ session: URI;
499
+ /** Turn identifier */
500
+ turnId: string;
501
+ /** Identifier of the reasoning response part to append to */
502
+ partId: string;
503
+ /** Reasoning text chunk */
504
+ content: string;
505
+ }
506
+ /**
507
+ * Model changed for this session.
508
+ *
509
+ * @category Session Actions
510
+ * @version 1
511
+ * @clientDispatchable
512
+ */
513
+ export interface SessionModelChangedAction {
514
+ type: ActionType.SessionModelChanged;
515
+ /** Session URI */
516
+ session: URI;
517
+ /** New model selection */
518
+ model: ModelSelection;
519
+ }
520
+ /**
521
+ * The read state of the session changed.
522
+ *
523
+ * Dispatched by a client to mark a session as read (e.g. after viewing it)
524
+ * or unread (e.g. after new activity since the client last looked at it).
525
+ *
526
+ * @category Session Actions
527
+ * @version 1
528
+ * @clientDispatchable
529
+ */
530
+ export interface SessionIsReadChangedAction {
531
+ type: ActionType.SessionIsReadChanged;
532
+ /** Session URI */
533
+ session: URI;
534
+ /** Whether the session has been read */
535
+ isRead: boolean;
536
+ }
537
+ /**
538
+ * The archived state of the session changed.
539
+ *
540
+ * Dispatched by a client to archive a session (e.g. the task is
541
+ * complete) or to unarchive it.
542
+ *
543
+ * @category Session Actions
544
+ * @version 1
545
+ * @clientDispatchable
546
+ */
547
+ export interface SessionIsArchivedChangedAction {
548
+ type: ActionType.SessionIsArchivedChanged;
549
+ /** Session URI */
550
+ session: URI;
551
+ /** Whether the session is archived */
552
+ isArchived: boolean;
553
+ }
554
+ /**
555
+ * The activity description of the session changed.
556
+ *
557
+ * Dispatched by the server to indicate what the session is currently doing
558
+ * (e.g. running a tool, thinking). Clear activity by setting it to `undefined`.
559
+ *
560
+ * @category Session Actions
561
+ * @version 1
562
+ */
563
+ export interface SessionActivityChangedAction {
564
+ type: ActionType.SessionActivityChanged;
565
+ /** Session URI */
566
+ session: URI;
567
+ /** Human-readable description of current activity, or `undefined` to clear */
568
+ activity: string | undefined;
569
+ }
570
+ /**
571
+ * The file diffs for the session changed.
572
+ *
573
+ * Full-replacement semantics: the `diffs` array replaces the previous
574
+ * `summary.diffs` entirely.
575
+ *
576
+ * @category Session Actions
577
+ * @version 1
578
+ */
579
+ export interface SessionDiffsChangedAction {
580
+ type: ActionType.SessionDiffsChanged;
581
+ /** Session URI */
582
+ session: URI;
583
+ /** Updated file diffs for the session */
584
+ diffs: FileEdit[];
585
+ }
586
+ /**
587
+ * Server tools for this session have changed.
588
+ *
589
+ * Full-replacement semantics: the `tools` array replaces the previous `serverTools` entirely.
590
+ *
591
+ * @category Session Actions
592
+ * @version 1
593
+ */
594
+ export interface SessionServerToolsChangedAction {
595
+ type: ActionType.SessionServerToolsChanged;
596
+ /** Session URI */
597
+ session: URI;
598
+ /** Updated server tools list (full replacement) */
599
+ tools: ToolDefinition[];
600
+ }
601
+ /**
602
+ * The active client for this session has changed.
603
+ *
604
+ * A client dispatches this action with its own `SessionActiveClient` to claim
605
+ * the active role, or with `null` to release it. The server SHOULD reject if
606
+ * another client is already active. The server SHOULD automatically dispatch
607
+ * this action with `activeClient: null` when the active client disconnects.
608
+ *
609
+ * @category Session Actions
610
+ * @version 1
611
+ * @clientDispatchable
612
+ */
613
+ export interface SessionActiveClientChangedAction {
614
+ type: ActionType.SessionActiveClientChanged;
615
+ /** Session URI */
616
+ session: URI;
617
+ /** The new active client, or `null` to unset */
618
+ activeClient: SessionActiveClient | null;
619
+ }
620
+ /**
621
+ * The active client's tool list has changed.
622
+ *
623
+ * Full-replacement semantics: the `tools` array replaces the active client's
624
+ * previous tools entirely. The server SHOULD reject if the dispatching client
625
+ * is not the current active client.
626
+ *
627
+ * @category Session Actions
628
+ * @version 1
629
+ * @clientDispatchable
630
+ */
631
+ export interface SessionActiveClientToolsChangedAction {
632
+ type: ActionType.SessionActiveClientToolsChanged;
633
+ /** Session URI */
634
+ session: URI;
635
+ /** Updated client tools list (full replacement) */
636
+ tools: ToolDefinition[];
637
+ }
638
+ /**
639
+ * The session's customizations have changed.
640
+ *
641
+ * Full-replacement semantics: the `customizations` array replaces the
642
+ * previous `customizations` entirely.
643
+ *
644
+ * @category Session Actions
645
+ * @version 1
646
+ */
647
+ export interface SessionCustomizationsChangedAction {
648
+ type: ActionType.SessionCustomizationsChanged;
649
+ /** Session URI */
650
+ session: URI;
651
+ /** Updated customization list (full replacement) */
652
+ customizations: SessionCustomization[];
653
+ }
654
+ /**
655
+ * A client toggled a customization on or off.
656
+ *
657
+ * The server locates the customization by `uri` in the session's
658
+ * customization list and sets its `enabled` flag.
659
+ *
660
+ * @category Session Actions
661
+ * @version 1
662
+ * @clientDispatchable
663
+ */
664
+ export interface SessionCustomizationToggledAction {
665
+ type: ActionType.SessionCustomizationToggled;
666
+ /** Session URI */
667
+ session: URI;
668
+ /** The URI of the customization to toggle */
669
+ uri: URI;
670
+ /** Whether to enable or disable the customization */
671
+ enabled: boolean;
672
+ }
673
+ /**
674
+ * Client changed a mutable config value mid-session.
675
+ *
676
+ * Only properties with `sessionMutable: true` in the config schema may be
677
+ * changed. The server validates and broadcasts the action; the reducer merges
678
+ * the new values into `state.config.values`.
679
+ *
680
+ * @category Session Actions
681
+ * @version 1
682
+ * @clientDispatchable
683
+ */
684
+ export interface SessionConfigChangedAction {
685
+ type: ActionType.SessionConfigChanged;
686
+ /** Session URI */
687
+ session: URI;
688
+ /** Updated config values */
689
+ config: Record<string, unknown>;
690
+ /** When `true`, replaces all config values instead of merging */
691
+ replace?: boolean;
692
+ }
693
+ /**
694
+ * The session's `_meta` side-channel changed. Replaces `state._meta`
695
+ * entirely (full-replacement semantics). Producers SHOULD merge any
696
+ * keys they wish to preserve into the new value before dispatching.
697
+ *
698
+ * @category Session Actions
699
+ * @version 1
700
+ */
701
+ export interface SessionMetaChangedAction {
702
+ type: ActionType.SessionMetaChanged;
703
+ /** Session URI */
704
+ session: URI;
705
+ /** New `_meta` payload, or `undefined` to clear it */
706
+ _meta: Record<string, unknown> | undefined;
707
+ }
708
+ /**
709
+ * Truncates a session's history. If `turnId` is provided, all turns after that
710
+ * turn are removed and the specified turn is kept. If `turnId` is omitted, all
711
+ * turns are removed.
712
+ *
713
+ * If there is an active turn it is silently dropped and the session status
714
+ * returns to `idle`.
715
+ *
716
+ * Common use-case: truncate old data then dispatch a new
717
+ * `session/turnStarted` with an edited message.
718
+ *
719
+ * @category Session Actions
720
+ * @version 1
721
+ * @clientDispatchable
722
+ */
723
+ export interface SessionTruncatedAction {
724
+ type: ActionType.SessionTruncated;
725
+ /** Session URI */
726
+ session: URI;
727
+ /** Keep turns up to and including this turn. Omit to clear all turns. */
728
+ turnId?: string;
729
+ }
730
+ /**
731
+ * A pending message was set (upsert semantics: creates or replaces).
732
+ *
733
+ * For steering messages, this always replaces the single steering message.
734
+ * For queued messages, if a message with the given `id` already exists it is
735
+ * updated in place; otherwise it is appended to the queue. If the session is
736
+ * idle when a queued message is set, the server SHOULD immediately consume it
737
+ * and start a new turn.
738
+ *
739
+ * @category Session Actions
740
+ * @version 1
741
+ * @clientDispatchable
742
+ */
743
+ export interface SessionPendingMessageSetAction {
744
+ type: ActionType.SessionPendingMessageSet;
745
+ /** Session URI */
746
+ session: URI;
747
+ /** Whether this is a steering or queued message */
748
+ kind: PendingMessageKind;
749
+ /** Unique identifier for this pending message */
750
+ id: string;
751
+ /** The message content */
752
+ userMessage: UserMessage;
753
+ }
754
+ /**
755
+ * A pending message was removed (steering or queued).
756
+ *
757
+ * Dispatched by clients to cancel a pending message, or by the server when
758
+ * it consumes a message (e.g. starting a turn from a queued message or
759
+ * injecting a steering message into the current turn).
760
+ *
761
+ * @category Session Actions
762
+ * @version 1
763
+ * @clientDispatchable
764
+ */
765
+ export interface SessionPendingMessageRemovedAction {
766
+ type: ActionType.SessionPendingMessageRemoved;
767
+ /** Session URI */
768
+ session: URI;
769
+ /** Whether this is a steering or queued message */
770
+ kind: PendingMessageKind;
771
+ /** Identifier of the pending message to remove */
772
+ id: string;
773
+ }
774
+ /**
775
+ * Reorder the queued messages.
776
+ *
777
+ * The `order` array contains the IDs of queued messages in their new
778
+ * desired order. IDs not present in the current queue are ignored.
779
+ * Queued messages whose IDs are absent from `order` are appended at
780
+ * the end in their original relative order (so a client with a stale
781
+ * view of the queue never silently drops messages).
782
+ *
783
+ * @category Session Actions
784
+ * @version 1
785
+ * @clientDispatchable
786
+ */
787
+ export interface SessionQueuedMessagesReorderedAction {
788
+ type: ActionType.SessionQueuedMessagesReordered;
789
+ /** Session URI */
790
+ session: URI;
791
+ /** Queued message IDs in the desired order */
792
+ order: string[];
793
+ }
794
+ /**
795
+ * A session requested input from the user.
796
+ *
797
+ * Full-request upsert semantics: the `request` replaces any existing request
798
+ * with the same `id`, or is appended if it is new. Answer drafts are preserved
799
+ * unless `request.answers` is provided.
800
+ *
801
+ * @category Session Actions
802
+ * @version 1
803
+ */
804
+ export interface SessionInputRequestedAction {
805
+ type: ActionType.SessionInputRequested;
806
+ /** Session URI */
807
+ session: URI;
808
+ /** Input request to create or replace */
809
+ request: SessionInputRequest;
810
+ }
811
+ /**
812
+ * A client updated, submitted, skipped, or removed a single in-progress answer.
813
+ *
814
+ * Dispatching with `answer: undefined` removes that question's answer draft.
815
+ *
816
+ * @category Session Actions
817
+ * @version 1
818
+ * @clientDispatchable
819
+ */
820
+ export interface SessionInputAnswerChangedAction {
821
+ type: ActionType.SessionInputAnswerChanged;
822
+ /** Session URI */
823
+ session: URI;
824
+ /** Input request identifier */
825
+ requestId: string;
826
+ /** Question identifier within the input request */
827
+ questionId: string;
828
+ /** Updated answer, or `undefined` to clear an answer draft */
829
+ answer?: SessionInputAnswer;
830
+ }
831
+ /**
832
+ * A client accepted, declined, or cancelled a session input request.
833
+ *
834
+ * If accepted, the server uses `answers` (when provided) plus the request's
835
+ * synced answer state to resume the blocked operation.
836
+ *
837
+ * @category Session Actions
838
+ * @version 1
839
+ * @clientDispatchable
840
+ */
841
+ export interface SessionInputCompletedAction {
842
+ type: ActionType.SessionInputCompleted;
843
+ /** Session URI */
844
+ session: URI;
845
+ /** Input request identifier */
846
+ requestId: string;
847
+ /** Completion outcome */
848
+ response: SessionInputResponseKind;
849
+ /** Optional final answer replacement, keyed by question ID */
850
+ answers?: Record<string, SessionInputAnswer>;
851
+ }
852
+ /**
853
+ * Terminal output data (pty → client direction).
854
+ *
855
+ * Appends `data` to the terminal's `content` in the reducer.
856
+ *
857
+ * `terminal/data` and `terminal/input` are intentionally separate actions
858
+ * because standard write-ahead reconciliation is not safe for terminal I/O.
859
+ * A pty is a stateful, mutable process — optimistically applying input or
860
+ * predicting output would produce incorrect state. Instead, `terminal/input`
861
+ * is a side-effect-only action (client → server → pty), and `terminal/data`
862
+ * is server-authoritative output (pty → server → client).
863
+ *
864
+ * @category Terminal Actions
865
+ * @version 1
866
+ */
867
+ export interface TerminalDataAction {
868
+ type: ActionType.TerminalData;
869
+ /** Terminal URI */
870
+ terminal: URI;
871
+ /** Output data (may contain ANSI escape sequences) */
872
+ data: string;
873
+ }
874
+ /**
875
+ * Keyboard input sent to the terminal process (client → pty direction).
876
+ *
877
+ * This is a side-effect-only action: the server forwards the data to the
878
+ * terminal's pty. The reducer treats this as a no-op since `terminal/data`
879
+ * actions will reflect any resulting output.
880
+ *
881
+ * See `terminal/data` for why these two actions are kept separate.
882
+ *
883
+ * @category Terminal Actions
884
+ * @version 1
885
+ * @clientDispatchable
886
+ */
887
+ export interface TerminalInputAction {
888
+ type: ActionType.TerminalInput;
889
+ /** Terminal URI */
890
+ terminal: URI;
891
+ /** Input data to send to the pty */
892
+ data: string;
893
+ }
894
+ /**
895
+ * Terminal dimensions changed.
896
+ *
897
+ * Dispatchable by clients to request a resize, or by the server to inform
898
+ * clients of the actual terminal dimensions.
899
+ *
900
+ * @category Terminal Actions
901
+ * @version 1
902
+ * @clientDispatchable
903
+ */
904
+ export interface TerminalResizedAction {
905
+ type: ActionType.TerminalResized;
906
+ /** Terminal URI */
907
+ terminal: URI;
908
+ /** Terminal width in columns */
909
+ cols: number;
910
+ /** Terminal height in rows */
911
+ rows: number;
912
+ }
913
+ /**
914
+ * Terminal claim changed. A client or session transfers ownership of the terminal.
915
+ *
916
+ * The server SHOULD reject if the dispatching client does not currently hold
917
+ * the claim.
918
+ *
919
+ * @category Terminal Actions
920
+ * @version 1
921
+ * @clientDispatchable
922
+ */
923
+ export interface TerminalClaimedAction {
924
+ type: ActionType.TerminalClaimed;
925
+ /** Terminal URI */
926
+ terminal: URI;
927
+ /** The new claim */
928
+ claim: TerminalClaim;
929
+ }
930
+ /**
931
+ * Terminal title changed.
932
+ *
933
+ * Fired by the server when the terminal process updates its title (e.g. via
934
+ * escape sequences), or dispatched by a client to rename a terminal.
935
+ *
936
+ * @category Terminal Actions
937
+ * @version 1
938
+ * @clientDispatchable
939
+ */
940
+ export interface TerminalTitleChangedAction {
941
+ type: ActionType.TerminalTitleChanged;
942
+ /** Terminal URI */
943
+ terminal: URI;
944
+ /** New terminal title */
945
+ title: string;
946
+ }
947
+ /**
948
+ * Terminal working directory changed.
949
+ *
950
+ * @category Terminal Actions
951
+ * @version 1
952
+ */
953
+ export interface TerminalCwdChangedAction {
954
+ type: ActionType.TerminalCwdChanged;
955
+ /** Terminal URI */
956
+ terminal: URI;
957
+ /** New working directory */
958
+ cwd: URI;
959
+ }
960
+ /**
961
+ * Terminal process exited.
962
+ *
963
+ * @category Terminal Actions
964
+ * @version 1
965
+ */
966
+ export interface TerminalExitedAction {
967
+ type: ActionType.TerminalExited;
968
+ /** Terminal URI */
969
+ terminal: URI;
970
+ /** Process exit code. `undefined` if the process was killed without an exit code. */
971
+ exitCode?: number;
972
+ }
973
+ /**
974
+ * Terminal scrollback buffer cleared.
975
+ *
976
+ * @category Terminal Actions
977
+ * @version 1
978
+ * @clientDispatchable
979
+ */
980
+ export interface TerminalClearedAction {
981
+ type: ActionType.TerminalCleared;
982
+ /** Terminal URI */
983
+ terminal: URI;
984
+ }
985
+ /**
986
+ * Shell integration has loaded and the terminal now supports command
987
+ * detection. The server dispatches this when shell integration becomes
988
+ * available (which may happen asynchronously after the terminal is created).
989
+ *
990
+ * Clients MUST NOT assume command detection is available until this action
991
+ * (or `terminal/commandExecuted`) has been received.
992
+ *
993
+ * @category Terminal Actions
994
+ * @version 1
995
+ */
996
+ export interface TerminalCommandDetectionAvailableAction {
997
+ type: ActionType.TerminalCommandDetectionAvailable;
998
+ /** Terminal URI */
999
+ terminal: URI;
1000
+ }
1001
+ /**
1002
+ * A command has been submitted to the shell and is now executing.
1003
+ * All subsequent `terminal/data` actions (until the matching
1004
+ * `terminal/commandFinished`) constitute this command's output.
1005
+ *
1006
+ * @category Terminal Actions
1007
+ * @version 1
1008
+ */
1009
+ export interface TerminalCommandExecutedAction {
1010
+ type: ActionType.TerminalCommandExecuted;
1011
+ /** Terminal URI */
1012
+ terminal: URI;
1013
+ /**
1014
+ * Stable identifier for this command, scoped to the terminal URI.
1015
+ * Allows correlating `commandExecuted` → `commandFinished` pairs.
1016
+ */
1017
+ commandId: string;
1018
+ /** The command line text that was submitted */
1019
+ commandLine: string;
1020
+ /**
1021
+ * Unix timestamp (ms) of when the command started executing, as measured
1022
+ * on the server.
1023
+ */
1024
+ timestamp: number;
1025
+ }
1026
+ /**
1027
+ * A command has finished executing.
1028
+ *
1029
+ * The sequence of `terminal/data` actions between the preceding
1030
+ * `terminal/commandExecuted` (same `commandId`) and this action constitutes
1031
+ * the complete output of the command.
1032
+ *
1033
+ * @category Terminal Actions
1034
+ * @version 1
1035
+ */
1036
+ export interface TerminalCommandFinishedAction {
1037
+ type: ActionType.TerminalCommandFinished;
1038
+ /** Terminal URI */
1039
+ terminal: URI;
1040
+ /** Matches the `commandId` from the corresponding `commandExecuted` */
1041
+ commandId: string;
1042
+ /** Shell exit code. `undefined` if the shell did not report one. */
1043
+ exitCode?: number;
1044
+ /**
1045
+ * Wall-clock duration of the command in milliseconds, as measured by the
1046
+ * shell integration script on the server side.
1047
+ */
1048
+ durationMs?: number;
1049
+ }
1050
+ /**
1051
+ * Discriminated union of all state actions.
1052
+ */
1053
+ export type StateAction = RootAgentsChangedAction | RootActiveSessionsChangedAction | RootTerminalsChangedAction | RootConfigChangedAction | SessionReadyAction | SessionCreationFailedAction | SessionTurnStartedAction | SessionDeltaAction | SessionResponsePartAction | SessionToolCallStartAction | SessionToolCallDeltaAction | SessionToolCallReadyAction | SessionToolCallConfirmedAction | SessionToolCallCompleteAction | SessionToolCallResultConfirmedAction | SessionToolCallContentChangedAction | SessionTurnCompleteAction | SessionTurnCancelledAction | SessionErrorAction | SessionTitleChangedAction | SessionUsageAction | SessionReasoningAction | SessionModelChangedAction | SessionServerToolsChangedAction | SessionActiveClientChangedAction | SessionActiveClientToolsChangedAction | SessionPendingMessageSetAction | SessionPendingMessageRemovedAction | SessionQueuedMessagesReorderedAction | SessionInputRequestedAction | SessionInputAnswerChangedAction | SessionInputCompletedAction | SessionCustomizationsChangedAction | SessionCustomizationToggledAction | SessionTruncatedAction | SessionIsReadChangedAction | SessionIsArchivedChangedAction | SessionActivityChangedAction | SessionDiffsChangedAction | SessionConfigChangedAction | SessionMetaChangedAction | TerminalDataAction | TerminalInputAction | TerminalResizedAction | TerminalClaimedAction | TerminalTitleChangedAction | TerminalCwdChangedAction | TerminalExitedAction | TerminalClearedAction | TerminalCommandDetectionAvailableAction | TerminalCommandExecutedAction | TerminalCommandFinishedAction;
1054
+ export {};