@codingame/monaco-vscode-api 31.0.0 → 32.0.0

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 (975) hide show
  1. package/external/@vscode/tree-sitter-wasm/wasm/tree-sitter.js +14 -14
  2. package/external/vscode-semver/semver.js +43 -43
  3. package/external/vscode-textmate/release/main.js +1 -1
  4. package/missing-services.js +143 -47
  5. package/package.json +9 -9
  6. package/services.js +3 -3
  7. package/vscode/product.json.js +1 -1
  8. package/vscode/src/vs/base/browser/animatedValue.d.ts +49 -0
  9. package/vscode/src/vs/{editor/contrib/inlineCompletions/browser/model/animation.js → base/browser/animatedValue.js} +32 -23
  10. package/vscode/src/vs/base/browser/dom.d.ts +42 -2
  11. package/vscode/src/vs/base/browser/dom.js +28 -3
  12. package/vscode/src/vs/base/browser/mouseEvent.js +2 -8
  13. package/vscode/src/vs/base/browser/overlayLayoutElement.d.ts +9 -6
  14. package/vscode/src/vs/base/browser/overlayLayoutElement.js +55 -90
  15. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +3 -2
  16. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +11 -20
  17. package/vscode/src/vs/base/browser/ui/button/button.d.ts +7 -0
  18. package/vscode/src/vs/base/browser/ui/button/button.js +15 -0
  19. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  20. package/vscode/src/vs/base/browser/ui/findinput/replaceInput.d.ts +0 -1
  21. package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +0 -3
  22. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
  23. package/vscode/src/vs/base/common/async.d.ts +2 -0
  24. package/vscode/src/vs/base/common/async.js +8 -2
  25. package/vscode/src/vs/base/common/codicons.d.ts +1 -0
  26. package/vscode/src/vs/base/common/codiconsLibrary.d.ts +3 -0
  27. package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
  28. package/vscode/src/vs/base/common/event.d.ts +9 -3
  29. package/vscode/src/vs/base/common/event.js +12 -7
  30. package/vscode/src/vs/base/common/filters.js +31 -6
  31. package/vscode/src/vs/base/common/htmlContent.d.ts +9 -0
  32. package/vscode/src/vs/base/common/network.js +2 -2
  33. package/vscode/src/vs/base/common/objects.d.ts +13 -0
  34. package/vscode/src/vs/base/common/objects.js +33 -1
  35. package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
  36. package/vscode/src/vs/base/common/observableInternal/reactions/autorun.d.ts +26 -0
  37. package/vscode/src/vs/base/common/observableInternal/reactions/autorun.js +24 -1
  38. package/vscode/src/vs/base/common/observableInternal/utils/promise.d.ts +13 -0
  39. package/vscode/src/vs/base/common/observableInternal/utils/promise.js +23 -1
  40. package/vscode/src/vs/base/common/paging.js +2 -66
  41. package/vscode/src/vs/base/common/platform.d.ts +0 -1
  42. package/vscode/src/vs/base/common/policy.d.ts +12 -1
  43. package/vscode/src/vs/base/common/product.d.ts +8 -6
  44. package/vscode/src/vs/base/common/resources.js +2 -2
  45. package/vscode/src/vs/base/common/yaml.d.ts +24 -0
  46. package/vscode/src/vs/base/common/yaml.js +6 -1
  47. package/vscode/src/vs/base/parts/ipc/common/ipc.net.d.ts +14 -1
  48. package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +29 -1
  49. package/vscode/src/vs/base/parts/storage/common/storage.d.ts +13 -0
  50. package/vscode/src/vs/base/parts/storage/common/storage.js +48 -2
  51. package/vscode/src/vs/editor/browser/config/elementSizeObserver.js +1 -1
  52. package/vscode/src/vs/editor/browser/controller/mouseHandler.d.ts +0 -1
  53. package/vscode/src/vs/editor/browser/controller/mouseHandler.js +0 -3
  54. package/vscode/src/vs/editor/browser/editorDom.d.ts +6 -3
  55. package/vscode/src/vs/editor/browser/editorDom.js +9 -2
  56. package/vscode/src/vs/editor/browser/observableCodeEditor.js +1 -1
  57. package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +0 -1
  58. package/vscode/src/vs/editor/browser/services/editorWorkerService.js +0 -3
  59. package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +1 -0
  60. package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +56 -9
  61. package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.d.ts +0 -1
  62. package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +0 -3
  63. package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.d.ts +0 -1
  64. package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +0 -3
  65. package/vscode/src/vs/editor/browser/viewParts/margin/margin.d.ts +0 -1
  66. package/vscode/src/vs/editor/browser/viewParts/margin/margin.js +0 -3
  67. package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.d.ts +0 -1
  68. package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.js +0 -3
  69. package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.d.ts +0 -1
  70. package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +0 -3
  71. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
  72. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
  73. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +12 -12
  74. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
  75. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +4 -4
  76. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
  77. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +12 -6
  78. package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
  79. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +4 -4
  80. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +1 -1
  81. package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
  82. package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +1 -1
  83. package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +5 -1
  84. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
  85. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +1 -1
  86. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.d.ts +5 -3
  87. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +41 -13
  88. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
  89. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +73 -55
  90. package/vscode/src/vs/editor/common/config/editorOptions.js +371 -370
  91. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +72 -72
  92. package/vscode/src/vs/editor/common/editorContextKeys.js +49 -49
  93. package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
  94. package/vscode/src/vs/editor/common/languages.js +56 -56
  95. package/vscode/src/vs/editor/common/model/editStack.js +1 -1
  96. package/vscode/src/vs/editor/common/services/languageService.js +2 -1
  97. package/vscode/src/vs/editor/common/standaloneStrings.js +50 -50
  98. package/vscode/src/vs/editor/common/viewLayout/viewLayout.d.ts +0 -1
  99. package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +0 -3
  100. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  101. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  102. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  103. package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  104. package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  105. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
  106. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  107. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +18 -18
  108. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  109. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  110. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  111. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  112. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  113. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  114. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  115. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
  116. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  117. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
  118. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +13 -13
  119. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  120. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  121. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
  122. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +5 -5
  123. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  124. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  125. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  126. package/vscode/src/vs/editor/contrib/find/browser/findController.js +17 -17
  127. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +28 -28
  128. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
  129. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  130. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  131. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
  132. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  133. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +13 -13
  134. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +33 -33
  135. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  136. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  137. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  138. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  139. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  140. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  141. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  142. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
  143. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  144. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  145. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +22 -22
  146. package/vscode/src/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
  147. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +7 -7
  148. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  149. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  150. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +18 -18
  151. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +5 -5
  152. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
  153. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
  154. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
  155. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  156. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
  157. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +3 -4
  158. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
  159. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
  160. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +2 -2
  161. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +9 -3
  162. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
  163. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +1 -1
  164. package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  165. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  166. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
  167. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  168. package/vscode/src/vs/editor/contrib/links/browser/links.js +6 -6
  169. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  170. package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +1 -1
  171. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  172. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  173. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  174. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  175. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  176. package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
  177. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +11 -11
  178. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  179. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  180. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
  181. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
  182. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  183. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  184. package/vscode/src/vs/editor/contrib/snippet/browser/snippetParser.js +1 -1
  185. package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +1 -0
  186. package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +39 -24
  187. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.d.ts +1 -0
  188. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +36 -24
  189. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  190. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +9 -9
  191. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
  192. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
  193. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  194. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  195. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  196. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  197. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  198. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  199. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  200. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  201. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  202. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  203. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  204. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
  205. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.d.ts +0 -2
  206. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +0 -6
  207. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +5 -0
  208. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  209. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  210. package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +52 -10
  211. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +242 -90
  212. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +97 -23
  213. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +15 -12
  214. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
  215. package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
  216. package/vscode/src/vs/platform/actions/common/actions.d.ts +6 -3
  217. package/vscode/src/vs/platform/actions/common/actions.js +18 -9
  218. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  219. package/vscode/src/vs/platform/actions/common/menuService.d.ts +2 -1
  220. package/vscode/src/vs/platform/actions/common/menuService.js +6 -5
  221. package/vscode/src/vs/platform/agentHost/browser/nullAgentHostService.d.ts +21 -18
  222. package/vscode/src/vs/platform/agentHost/browser/nullAgentHostService.js +11 -0
  223. package/vscode/src/vs/platform/agentHost/browser/nullSshRemoteAgentHostService.d.ts +3 -0
  224. package/vscode/src/vs/platform/agentHost/browser/nullSshRemoteAgentHostService.js +6 -0
  225. package/vscode/src/vs/platform/agentHost/common/agentHostPermissionService.service.d.ts +47 -0
  226. package/vscode/src/vs/platform/agentHost/common/agentHostPermissionService.service.js +6 -0
  227. package/vscode/src/vs/platform/agentHost/common/agentHostUri.js +1 -1
  228. package/vscode/src/vs/platform/agentHost/common/agentPluginManager.d.ts +2 -2
  229. package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +63 -22
  230. package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.d.ts +56 -6
  231. package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.js +49 -4
  232. package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.service.d.ts +12 -1
  233. package/vscode/src/vs/platform/agentHost/common/sshRemoteAgentHost.d.ts +2 -0
  234. package/vscode/src/vs/platform/agentHost/common/sshRemoteAgentHost.service.d.ts +21 -1
  235. package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +14 -10
  236. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +957 -0
  237. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.js +18 -0
  238. package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +135 -71
  239. package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +1673 -0
  240. package/vscode/src/vs/platform/agentHost/common/state/protocol/state.js +126 -0
  241. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +40 -0
  242. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.js +22 -0
  243. package/vscode/src/vs/platform/browserView/common/browserView.d.ts +67 -38
  244. package/vscode/src/vs/platform/browserView/common/browserView.js +57 -0
  245. package/vscode/src/vs/platform/browserView/common/browserViewTelemetry.d.ts +2 -1
  246. package/vscode/src/vs/platform/browserView/common/playwrightService.service.d.ts +24 -7
  247. package/vscode/src/vs/platform/browserView/common/playwrightService.service.js +6 -0
  248. package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +14 -0
  249. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
  250. package/vscode/src/vs/platform/configuration/common/configurations.d.ts +2 -0
  251. package/vscode/src/vs/platform/configuration/common/configurations.js +8 -3
  252. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +2 -1
  253. package/vscode/src/vs/platform/contextkey/common/contextkey.js +10 -10
  254. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  255. package/vscode/src/vs/platform/contextkey/common/scanner.js +6 -6
  256. package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.d.ts +1 -1
  257. package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.service.d.ts +2 -1
  258. package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
  259. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  260. package/vscode/src/vs/platform/editor/common/editor.d.ts +11 -0
  261. package/vscode/src/vs/platform/environment/common/argv.d.ts +4 -1
  262. package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -0
  263. package/vscode/src/vs/platform/environment/common/environmentService.d.ts +1 -1
  264. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +14 -14
  265. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  266. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
  267. package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
  268. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +21 -21
  269. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +18 -0
  270. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +19 -1
  271. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  272. package/vscode/src/vs/platform/files/common/files.js +6 -6
  273. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  274. package/vscode/src/vs/platform/hover/browser/hoverService.js +15 -9
  275. package/vscode/src/vs/platform/hover/browser/hoverWidget.d.ts +1 -0
  276. package/vscode/src/vs/platform/hover/browser/hoverWidget.js +21 -4
  277. package/vscode/src/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
  278. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.d.ts +0 -1
  279. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -8
  280. package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
  281. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
  282. package/vscode/src/vs/platform/list/browser/listService.js +25 -25
  283. package/vscode/src/vs/platform/log/common/log.d.ts +7 -0
  284. package/vscode/src/vs/platform/log/common/log.js +38 -17
  285. package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
  286. package/vscode/src/vs/platform/markers/common/markers.js +6 -6
  287. package/vscode/src/vs/platform/mcp/common/mcpManagementService.js +1 -1
  288. package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.config.contribution.js +5 -5
  289. package/vscode/src/vs/platform/native/common/native.d.ts +2 -9
  290. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.service.d.ts +5 -3
  291. package/vscode/src/vs/platform/notification/common/notification.js +3 -3
  292. package/vscode/src/vs/platform/policy/common/policy.d.ts +8 -1
  293. package/vscode/src/vs/platform/product/common/product.js +3 -3
  294. package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +1 -1
  295. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
  296. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -5
  297. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
  298. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
  299. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  300. package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
  301. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  302. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
  303. package/vscode/src/vs/platform/remote/common/remoteAgentConnection.js +1 -1
  304. package/vscode/src/vs/platform/request/common/request.js +20 -20
  305. package/vscode/src/vs/platform/sandbox/common/settings.d.ts +5 -1
  306. package/vscode/src/vs/platform/sandbox/common/settings.js +4 -0
  307. package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.service.d.ts +8 -2
  308. package/vscode/src/vs/platform/storage/common/storage.d.ts +13 -1
  309. package/vscode/src/vs/platform/storage/common/storage.js +48 -0
  310. package/vscode/src/vs/platform/storage/common/storage.service.d.ts +2 -1
  311. package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +5 -0
  312. package/vscode/src/vs/platform/telemetry/common/telemetry.js +4 -1
  313. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
  314. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +3 -0
  315. package/vscode/src/vs/platform/terminal/common/terminal.js +3 -0
  316. package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +97 -31
  317. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
  318. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +6 -0
  319. package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
  320. package/vscode/src/vs/platform/theme/common/colors/baseColors.d.ts +1 -0
  321. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +27 -18
  322. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  323. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
  324. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +48 -48
  325. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  326. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
  327. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  328. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +16 -16
  329. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.d.ts +1 -0
  330. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +18 -10
  331. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  332. package/vscode/src/vs/platform/theme/common/iconRegistry.js +7 -7
  333. package/vscode/src/vs/platform/theme/common/sizes/baseSizes.js +11 -11
  334. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
  335. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  336. package/vscode/src/vs/platform/url/common/trustedDomains.d.ts +1 -0
  337. package/vscode/src/vs/platform/url/common/trustedDomains.js +2 -2
  338. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +26 -2
  339. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +35 -31
  340. package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.service.d.ts +3 -2
  341. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
  342. package/vscode/src/vs/platform/userDataSync/common/globalStateSync.js +37 -11
  343. package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +2 -2
  344. package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +1 -1
  345. package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +2 -0
  346. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  347. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +1 -1
  348. package/vscode/src/vs/platform/webWorker/browser/webWorkerServiceImpl.d.ts +1 -1
  349. package/vscode/src/vs/platform/workspace/common/workspace.d.ts +7 -1
  350. package/vscode/src/vs/platform/workspace/common/workspace.js +9 -3
  351. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +12 -12
  352. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +61 -4
  353. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +86 -5
  354. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +11 -1
  355. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +5 -5
  356. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +29 -9
  357. package/vscode/src/vs/workbench/api/common/extHostChatDebug.js +7 -0
  358. package/vscode/src/vs/workbench/api/common/extHostChatInputNotification.d.ts +9 -0
  359. package/vscode/src/vs/workbench/api/common/extHostChatInputNotification.js +114 -0
  360. package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +2 -0
  361. package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +89 -16
  362. package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +3 -0
  363. package/vscode/src/vs/workbench/api/common/extHostCustomEditors.js +139 -8
  364. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  365. package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +2 -2
  366. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  367. package/vscode/src/vs/workbench/api/common/extHostGitExtensionService.js +3 -3
  368. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
  369. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +7 -1
  370. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +11 -2
  371. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  372. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  373. package/vscode/src/vs/workbench/api/common/extHostSCM.js +20 -0
  374. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  375. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
  376. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
  377. package/vscode/src/vs/workbench/api/common/extHostTreeViews.d.ts +1 -1
  378. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  379. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +5 -1
  380. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +20 -3
  381. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +14 -0
  382. package/vscode/src/vs/workbench/api/common/extHostTypes.js +17 -1
  383. package/vscode/src/vs/workbench/api/common/extHostWebview.d.ts +11 -0
  384. package/vscode/src/vs/workbench/api/common/extHostWebview.js +9 -0
  385. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
  386. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +11 -11
  387. package/vscode/src/vs/workbench/browser/actions/developerActions.js +59 -35
  388. package/vscode/src/vs/workbench/browser/actions/layoutActions.d.ts +1 -2
  389. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +141 -188
  390. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  391. package/vscode/src/vs/workbench/browser/actions/windowActions.js +34 -34
  392. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +32 -32
  393. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
  394. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  395. package/vscode/src/vs/workbench/browser/labels.js +4 -4
  396. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +23 -23
  397. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +26 -26
  398. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +4 -4
  399. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
  400. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +9 -9
  401. package/vscode/src/vs/workbench/browser/parts/compositePart.js +3 -3
  402. package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.js +1 -1
  403. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +3 -3
  404. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
  405. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
  406. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -38
  407. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +12 -12
  408. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +1 -1
  409. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +32 -14
  410. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.d.ts +2 -0
  411. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +160 -137
  412. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +56 -36
  413. package/vscode/src/vs/workbench/browser/parts/editor/editorCommandsContext.js +2 -1
  414. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +1 -1
  415. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +9 -8
  416. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +12 -12
  417. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +2 -2
  418. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +28 -3
  419. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +1 -1
  420. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -10
  421. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
  422. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +66 -66
  423. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.d.ts +9 -0
  424. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +80 -4
  425. package/vscode/src/vs/workbench/browser/parts/editor/media/modalEditorPart.css +4 -0
  426. package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css +15 -7
  427. package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.d.ts +3 -1
  428. package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.js +62 -31
  429. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.d.ts +1 -0
  430. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +12 -3
  431. package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.d.ts +1 -0
  432. package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +6 -0
  433. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
  434. package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.d.ts +1 -0
  435. package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +6 -0
  436. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
  437. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
  438. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
  439. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +19 -19
  440. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +22 -22
  441. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
  442. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
  443. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +13 -13
  444. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
  445. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
  446. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
  447. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +4 -4
  448. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +4 -4
  449. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +3 -3
  450. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +27 -27
  451. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +3 -3
  452. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -2
  453. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +1 -1
  454. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +12 -85
  455. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.d.ts +7 -0
  456. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +17 -16
  457. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
  458. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
  459. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
  460. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +4 -4
  461. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +5 -5
  462. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
  463. package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
  464. package/vscode/src/vs/workbench/browser/window.js +15 -14
  465. package/vscode/src/vs/workbench/browser/workbench.contribution.js +332 -317
  466. package/vscode/src/vs/workbench/common/configuration.js +9 -9
  467. package/vscode/src/vs/workbench/common/contextkeys.d.ts +3 -0
  468. package/vscode/src/vs/workbench/common/contextkeys.js +91 -83
  469. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  470. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +2 -1
  471. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  472. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
  473. package/vscode/src/vs/workbench/common/editor.d.ts +8 -0
  474. package/vscode/src/vs/workbench/common/editor.js +4 -4
  475. package/vscode/src/vs/workbench/common/memento.d.ts +1 -0
  476. package/vscode/src/vs/workbench/common/memento.js +19 -0
  477. package/vscode/src/vs/workbench/common/theme.js +161 -161
  478. package/vscode/src/vs/workbench/common/views.d.ts +9 -9
  479. package/vscode/src/vs/workbench/common/views.js +11 -11
  480. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +2 -1
  481. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +164 -156
  482. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
  483. package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.d.ts +25 -5
  484. package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.js +63 -39
  485. package/vscode/src/vs/workbench/contrib/browserView/common/browserView.d.ts +39 -33
  486. package/vscode/src/vs/workbench/contrib/browserView/common/browserView.js +454 -0
  487. package/vscode/src/vs/workbench/contrib/browserView/common/browserView.service.d.ts +20 -10
  488. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +97 -67
  489. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.service.d.ts +2 -1
  490. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +4 -8
  491. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +14 -16
  492. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +17 -0
  493. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +36 -2
  494. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +129 -0
  495. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.service.d.ts +51 -0
  496. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.service.js +6 -0
  497. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +3 -4
  498. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +20 -5
  499. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.service.d.ts +2 -1
  500. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
  501. package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +8 -0
  502. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +6 -4
  503. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
  504. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +2 -2
  505. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +13 -1
  506. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +103 -67
  507. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +1 -3
  508. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.service.d.ts +26 -0
  509. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.service.js +6 -0
  510. package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.service.d.ts +17 -0
  511. package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.service.js +6 -0
  512. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.service.d.ts +31 -0
  513. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.service.js +6 -0
  514. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.service.d.ts +36 -0
  515. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.service.js +6 -0
  516. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +9 -9
  517. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +3 -0
  518. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +94 -85
  519. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +14 -1
  520. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +6 -3
  521. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariables.d.ts +7 -0
  522. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +4 -0
  523. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +26 -30
  524. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +94 -54
  525. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.d.ts +14 -9
  526. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +49 -4
  527. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +129 -3
  528. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.js +15 -2
  529. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +23 -1
  530. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +14 -2
  531. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +15 -3
  532. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +64 -49
  533. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +162 -45
  534. package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.service.d.ts +38 -1
  535. package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.js +2 -2
  536. package/vscode/src/vs/workbench/contrib/chat/common/enablement.d.ts +3 -3
  537. package/vscode/src/vs/workbench/contrib/chat/common/enablement.js +11 -11
  538. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +3 -3
  539. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +6 -7
  540. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +42 -122
  541. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +7 -1
  542. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +17 -2
  543. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +48 -13
  544. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatElicitationRequestPart.d.ts +8 -1
  545. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatElicitationRequestPart.js +2 -1
  546. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatPlanReviewData.d.ts +2 -0
  547. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatPlanReviewData.js +9 -0
  548. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.d.ts +5 -0
  549. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.js +13 -0
  550. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +1 -1
  551. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.d.ts +7 -1
  552. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.js +1 -1
  553. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.service.d.ts +1 -1
  554. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +50 -0
  555. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +32 -0
  556. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.service.d.ts +1 -1
  557. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginGitService.service.d.ts +17 -1
  558. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +11 -0
  559. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +100 -39
  560. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.d.ts +0 -4
  561. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +1 -2
  562. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.d.ts +12 -3
  563. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.js +20 -16
  564. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +50 -0
  565. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +77 -0
  566. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +77 -0
  567. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +120 -0
  568. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +10 -0
  569. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +23 -0
  570. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +18 -18
  571. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.js +20 -20
  572. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.js +91 -77
  573. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.d.ts +2 -0
  574. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.js +4 -0
  575. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.d.ts +5 -0
  576. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +29 -1
  577. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +5 -18
  578. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +1 -4
  579. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +1 -1
  580. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +234 -0
  581. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +1686 -0
  582. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +191 -0
  583. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +734 -0
  584. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatParserTypes.d.ts +2 -1
  585. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatParserTypes.js +6 -3
  586. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.d.ts +1 -0
  587. package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +14 -3
  588. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.d.ts +4 -2
  589. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +55 -36
  590. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +6 -1
  591. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +10 -10
  592. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +7 -7
  593. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +3 -3
  594. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +3 -3
  595. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +4 -4
  596. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsConfirmationService.d.ts +6 -0
  597. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +22 -22
  598. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.d.ts +25 -5
  599. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +3 -3
  600. package/vscode/src/vs/workbench/contrib/chat/common/tools/toolResultCompressor.d.ts +39 -0
  601. package/vscode/src/vs/workbench/contrib/chat/common/tools/toolResultCompressor.service.d.ts +12 -0
  602. package/vscode/src/vs/workbench/contrib/chat/common/tools/toolResultCompressor.service.js +6 -0
  603. package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.js +1 -1
  604. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +11 -11
  605. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  606. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  607. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  608. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
  609. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
  610. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  611. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
  612. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  613. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  614. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -3
  615. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  616. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +12 -12
  617. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  618. package/vscode/src/vs/workbench/contrib/codeEditor/common/languageConfigurationExtensionPoint.js +65 -65
  619. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
  620. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +7 -7
  621. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +2 -2
  622. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +3 -3
  623. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -3
  624. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
  625. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +3 -3
  626. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
  627. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  628. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.d.ts +2 -1
  629. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +22 -13
  630. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
  631. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
  632. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +14 -14
  633. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -16
  634. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
  635. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -12
  636. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorDiffInput.d.ts +101 -0
  637. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorDiffInput.js +428 -0
  638. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.d.ts +1 -0
  639. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +7 -13
  640. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
  641. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
  642. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +22 -15
  643. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +91 -76
  644. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
  645. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +17 -15
  646. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
  647. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +38 -38
  648. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
  649. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
  650. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
  651. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
  652. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +4 -4
  653. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +2 -2
  654. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +26 -21
  655. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
  656. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +9 -9
  657. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  658. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
  659. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
  660. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  661. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  662. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
  663. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
  664. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
  665. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
  666. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.d.ts +7 -0
  667. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service.d.ts +2 -1
  668. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.d.ts +11 -0
  669. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +181 -181
  670. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -25
  671. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +7 -7
  672. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +30 -30
  673. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
  674. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
  675. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
  676. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
  677. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +3 -3
  678. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
  679. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -3
  680. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
  681. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
  682. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
  683. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
  684. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +49 -49
  685. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +94 -89
  686. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +4 -4
  687. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -2
  688. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  689. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +30 -27
  690. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +54 -51
  691. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
  692. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  693. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
  694. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
  695. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +17 -17
  696. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
  697. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
  698. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
  699. package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -16
  700. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  701. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  702. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  703. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  704. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  705. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +4 -5
  706. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  707. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  708. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.js +67 -66
  709. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +40 -40
  710. package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.d.ts +5 -0
  711. package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +49 -43
  712. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +22 -16
  713. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +10 -2
  714. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
  715. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
  716. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
  717. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -2
  718. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
  719. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.js +8 -8
  720. package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.js +4 -4
  721. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
  722. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +4 -4
  723. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
  724. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +17 -17
  725. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
  726. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
  727. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
  728. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
  729. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +7 -7
  730. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.d.ts +0 -1
  731. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +34 -48
  732. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
  733. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
  734. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
  735. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
  736. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
  737. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
  738. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
  739. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
  740. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
  741. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
  742. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
  743. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
  744. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
  745. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
  746. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
  747. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
  748. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
  749. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +11 -11
  750. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +60 -60
  751. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.d.ts +8 -2
  752. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +30 -7
  753. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.d.ts +1 -0
  754. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +5 -4
  755. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
  756. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
  757. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
  758. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +59 -59
  759. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
  760. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
  761. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +15 -51
  762. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +19 -14
  763. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
  764. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.d.ts +17 -1
  765. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +66 -3
  766. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
  767. package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +5 -5
  768. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
  769. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
  770. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
  771. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
  772. package/vscode/src/vs/workbench/contrib/search/browser/searchView.d.ts +1 -1
  773. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +57 -57
  774. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +11 -11
  775. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
  776. package/vscode/src/vs/workbench/contrib/search/common/search.d.ts +5 -5
  777. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
  778. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
  779. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  780. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  781. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  782. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  783. package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
  784. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +6 -6
  785. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
  786. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
  787. package/vscode/src/vs/workbench/contrib/terminal/browser/agentHostTerminalService.service.d.ts +9 -0
  788. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +6 -0
  789. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +3 -3
  790. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
  791. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +40 -40
  792. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
  793. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +1 -1
  794. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +10 -10
  795. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
  796. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
  797. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
  798. package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.d.ts +3 -0
  799. package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.js +3 -0
  800. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
  801. package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
  802. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +9 -9
  803. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +189 -69
  804. package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
  805. package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
  806. package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +6 -3
  807. package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.js +1 -1
  808. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
  809. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
  810. package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
  811. package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
  812. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  813. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  814. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  815. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
  816. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
  817. package/vscode/src/vs/workbench/contrib/webview/browser/webview.d.ts +2 -4
  818. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.js +30 -30
  819. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.d.ts +1 -2
  820. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +9 -24
  821. package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.js +14 -14
  822. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
  823. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +11 -11
  824. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
  825. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +19 -7
  826. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +137 -84
  827. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.service.d.ts +10 -0
  828. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
  829. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
  830. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  831. package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +2 -2
  832. package/vscode/src/vs/workbench/services/editor/browser/editorService.js +7 -3
  833. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +7 -4
  834. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +14 -3
  835. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +8 -0
  836. package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +2 -2
  837. package/vscode/src/vs/workbench/services/environment/browser/environmentService.d.ts +1 -1
  838. package/vscode/src/vs/workbench/services/environment/browser/environmentService.js +9 -9
  839. package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +0 -1
  840. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
  841. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
  842. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
  843. package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.d.ts +4 -0
  844. package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +39 -1
  845. package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service.d.ts +1 -0
  846. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +88 -88
  847. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
  848. package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
  849. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  850. package/vscode/src/vs/workbench/services/policies/common/accountPolicyService.d.ts +43 -0
  851. package/vscode/src/vs/workbench/services/policies/common/accountPolicyService.js +33 -0
  852. package/vscode/src/vs/workbench/services/policies/common/accountPolicyService.service.d.ts +14 -0
  853. package/vscode/src/vs/workbench/services/policies/common/accountPolicyService.service.js +6 -0
  854. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
  855. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
  856. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
  857. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +2 -2
  858. package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +30 -30
  859. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  860. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  861. package/vscode/src/vs/workbench/services/search/common/ignoreFile.js +7 -2
  862. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +3 -3
  863. package/vscode/src/vs/workbench/services/search/common/search.d.ts +1 -1
  864. package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +4 -0
  865. package/vscode/src/vs/workbench/services/storage/browser/storageService.js +30 -2
  866. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
  867. package/vscode/src/vs/workbench/services/textfile/common/encoding.js +20 -15
  868. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
  869. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +18 -18
  870. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
  871. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  872. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +24 -24
  873. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.d.ts +0 -1
  874. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +4 -5
  875. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
  876. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
  877. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
  878. package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +3 -3
  879. package/vscode-dts/vscode.d.ts +3 -1
  880. package/{vscode/src/vs/workbench/contrib/extensions/browser/media/extensionManagement.css → vscode-dts/vscode.proposed.agentsWindowConfiguration.d.ts} +3 -7
  881. package/vscode-dts/vscode.proposed.chatDebug.d.ts +31 -0
  882. package/vscode-dts/vscode.proposed.chatInputNotification.d.ts +118 -0
  883. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +14 -0
  884. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +32 -0
  885. package/vscode-dts/vscode.proposed.chatPromptFiles.d.ts +29 -0
  886. package/vscode-dts/vscode.proposed.chatProvider.d.ts +2 -8
  887. package/vscode-dts/vscode.proposed.chatSessionCustomizationProvider.d.ts +16 -0
  888. package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +68 -10
  889. package/vscode-dts/vscode.proposed.chatStatusItem.d.ts +1 -1
  890. package/vscode-dts/vscode.proposed.customEditorDiffs.d.ts +67 -0
  891. package/vscode-dts/vscode.proposed.customEditorPriority.d.ts +6 -0
  892. package/vscode-dts/vscode.proposed.d.ts +6 -0
  893. package/vscode-dts/vscode.proposed.documentDiff.d.ts +145 -0
  894. package/vscode-dts/vscode.proposed.languageModelPricing.d.ts +70 -0
  895. package/vscode/src/vs/base/common/defaultAccount.d.ts +0 -58
  896. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.d.ts +0 -32
  897. package/vscode/src/vs/platform/extensionManagement/common/unsupportedExtensionsMigration.d.ts +0 -14
  898. package/vscode/src/vs/platform/extensionManagement/common/unsupportedExtensionsMigration.js +0 -145
  899. package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.d.ts +0 -19
  900. package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.js +0 -25
  901. package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.d.ts +0 -76
  902. package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +0 -470
  903. package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.d.ts +0 -25
  904. package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +0 -83
  905. package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.d.ts +0 -20
  906. package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +0 -66
  907. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.d.ts +0 -83
  908. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +0 -1359
  909. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.d.ts +0 -11
  910. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +0 -49
  911. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.d.ts +0 -22
  912. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +0 -728
  913. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.d.ts +0 -63
  914. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +0 -522
  915. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendations.d.ts +0 -19
  916. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendations.js +0 -18
  917. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationsService.d.ts +0 -71
  918. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationsService.js +0 -263
  919. package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.d.ts +0 -5
  920. package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +0 -2201
  921. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.d.ts +0 -9
  922. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +0 -40
  923. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.d.ts +0 -9
  924. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +0 -77
  925. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.d.ts +0 -16
  926. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +0 -93
  927. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.d.ts +0 -27
  928. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +0 -100
  929. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.d.ts +0 -151
  930. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +0 -1031
  931. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.d.ts +0 -235
  932. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +0 -1600
  933. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.d.ts +0 -314
  934. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +0 -3449
  935. package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.d.ts +0 -44
  936. package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +0 -368
  937. package/vscode/src/vs/workbench/contrib/extensions/browser/keymapRecommendations.d.ts +0 -9
  938. package/vscode/src/vs/workbench/contrib/extensions/browser/keymapRecommendations.js +0 -30
  939. package/vscode/src/vs/workbench/contrib/extensions/browser/languageRecommendations.d.ts +0 -9
  940. package/vscode/src/vs/workbench/contrib/extensions/browser/languageRecommendations.js +0 -30
  941. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionEditor.css +0 -910
  942. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsViewlet.css +0 -229
  943. package/vscode/src/vs/workbench/contrib/extensions/browser/media/loading-dark.svg +0 -31
  944. package/vscode/src/vs/workbench/contrib/extensions/browser/media/loading-hc.svg +0 -31
  945. package/vscode/src/vs/workbench/contrib/extensions/browser/media/loading.svg +0 -31
  946. package/vscode/src/vs/workbench/contrib/extensions/browser/media/runtimeExtensionsEditor.css +0 -86
  947. package/vscode/src/vs/workbench/contrib/extensions/browser/remoteRecommendations.d.ts +0 -9
  948. package/vscode/src/vs/workbench/contrib/extensions/browser/remoteRecommendations.js +0 -38
  949. package/vscode/src/vs/workbench/contrib/extensions/browser/unsupportedExtensionsMigrationContribution.d.ts +0 -9
  950. package/vscode/src/vs/workbench/contrib/extensions/browser/unsupportedExtensionsMigrationContribution.js +0 -41
  951. package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.d.ts +0 -11
  952. package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +0 -38
  953. package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.d.ts +0 -33
  954. package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +0 -179
  955. package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.d.ts +0 -11
  956. package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.js +0 -90
  957. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.d.ts +0 -24
  958. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +0 -50
  959. package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.d.ts +0 -15
  960. package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +0 -47
  961. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.service.d.ts +0 -10
  962. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.service.js +0 -6
  963. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.d.ts +0 -72
  964. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +0 -998
  965. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.d.ts +0 -17
  966. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +0 -49
  967. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.d.ts +0 -5
  968. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +0 -12
  969. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.d.ts +0 -88
  970. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +0 -464
  971. package/vscode/src/vs/workbench/contrib/mcp/browser/media/mcpServerEditor.css +0 -94
  972. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.d.ts +0 -16
  973. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +0 -475
  974. package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +0 -34
  975. package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +0 -874
@@ -0,0 +1,1673 @@
1
+ /** A URI string (e.g. `agenthost:/root` or `copilot:/<uuid>`). */
2
+ export type URI = string;
3
+ /**
4
+ * A string that may optionally be rendered as Markdown.
5
+ *
6
+ * - A plain `string` is rendered as-is (no Markdown processing).
7
+ * - An object with `{ markdown: string }` is rendered with Markdown formatting.
8
+ */
9
+ export type StringOrMarkdown = string | {
10
+ markdown: string;
11
+ };
12
+ /**
13
+ * An optionally-sized icon that can be displayed in a user interface.
14
+ *
15
+ * @category Common Types
16
+ */
17
+ export interface Icon {
18
+ /**
19
+ * A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a
20
+ * `data:` URI with Base64-encoded image data.
21
+ *
22
+ * Consumers SHOULD take steps to ensure URLs serving icons are from the
23
+ * same domain as the client/server or a trusted domain.
24
+ *
25
+ * Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain
26
+ * executable JavaScript.
27
+ */
28
+ src: URI;
29
+ /**
30
+ * Optional MIME type override if the source MIME type is missing or generic.
31
+ * For example: `"image/png"`, `"image/jpeg"`, or `"image/svg+xml"`.
32
+ */
33
+ contentType?: string;
34
+ /**
35
+ * Optional array of strings that specify sizes at which the icon can be used.
36
+ * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
37
+ *
38
+ * If not provided, the client should assume that the icon can be used at any size.
39
+ */
40
+ sizes?: string[];
41
+ /**
42
+ * Optional specifier for the theme this icon is designed for. `"light"` indicates
43
+ * the icon is designed to be used with a light background, and `"dark"` indicates
44
+ * the icon is designed to be used with a dark background.
45
+ *
46
+ * If not provided, the client should assume the icon can be used with any theme.
47
+ */
48
+ theme?: "light" | "dark";
49
+ }
50
+ /**
51
+ * Describes a protected resource's authentication requirements using
52
+ * [RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728) (OAuth 2.0
53
+ * Protected Resource Metadata) semantics.
54
+ *
55
+ * Field names use snake_case to match the RFC 9728 JSON format.
56
+ *
57
+ * @category Authentication
58
+ * @see {@link https://datatracker.ietf.org/doc/html/rfc9728 | RFC 9728}
59
+ */
60
+ export interface ProtectedResourceMetadata {
61
+ /**
62
+ * REQUIRED. The protected resource's resource identifier, a URL using the
63
+ * `https` scheme with no fragment component (e.g. `"https://api.github.com"`).
64
+ */
65
+ resource: string;
66
+ /** OPTIONAL. Human-readable name of the protected resource. */
67
+ resource_name?: string;
68
+ /** OPTIONAL. JSON array of OAuth authorization server identifier URLs. */
69
+ authorization_servers?: string[];
70
+ /** OPTIONAL. URL of the protected resource's JWK Set document. */
71
+ jwks_uri?: string;
72
+ /** RECOMMENDED. JSON array of OAuth 2.0 scope values used in authorization requests. */
73
+ scopes_supported?: string[];
74
+ /** OPTIONAL. JSON array of Bearer Token presentation methods supported. */
75
+ bearer_methods_supported?: string[];
76
+ /** OPTIONAL. JSON array of JWS signing algorithms supported. */
77
+ resource_signing_alg_values_supported?: string[];
78
+ /** OPTIONAL. JSON array of JWE encryption algorithms (alg) supported. */
79
+ resource_encryption_alg_values_supported?: string[];
80
+ /** OPTIONAL. JSON array of JWE encryption algorithms (enc) supported. */
81
+ resource_encryption_enc_values_supported?: string[];
82
+ /** OPTIONAL. URL of human-readable documentation for the resource. */
83
+ resource_documentation?: string;
84
+ /** OPTIONAL. URL of the resource's data-usage policy. */
85
+ resource_policy_uri?: string;
86
+ /** OPTIONAL. URL of the resource's terms of service. */
87
+ resource_tos_uri?: string;
88
+ /**
89
+ * AHP extension. Whether authentication is required for this resource.
90
+ *
91
+ * - `true` (default) — the agent cannot be used without a valid token.
92
+ * The server SHOULD return `AuthRequired` (`-32007`) if the client
93
+ * attempts to use the agent without authenticating.
94
+ * - `false` — the agent works without authentication but MAY offer
95
+ * enhanced capabilities when a token is provided.
96
+ *
97
+ * Clients SHOULD treat an absent field the same as `true`.
98
+ */
99
+ required?: boolean;
100
+ }
101
+ /**
102
+ * Policy configuration state for a model.
103
+ *
104
+ * @category Root State
105
+ */
106
+ export declare enum PolicyState {
107
+ Enabled = "enabled",
108
+ Disabled = "disabled",
109
+ Unconfigured = "unconfigured"
110
+ }
111
+ /**
112
+ * Global state shared with every client subscribed to `agenthost:/root`.
113
+ *
114
+ * @category Root State
115
+ */
116
+ export interface RootState {
117
+ /** Available agent backends and their models */
118
+ agents: AgentInfo[];
119
+ /** Number of active (non-disposed) sessions on the server */
120
+ activeSessions?: number;
121
+ /** Known terminals on the server. Subscribe to individual terminal URIs for full state. */
122
+ terminals?: TerminalInfo[];
123
+ /** Agent host configuration schema and current values */
124
+ config?: RootConfigState;
125
+ }
126
+ /**
127
+ * @category Root State
128
+ */
129
+ export interface AgentInfo {
130
+ /** Agent provider ID (e.g. `'copilot'`) */
131
+ provider: string;
132
+ /** Human-readable name */
133
+ displayName: string;
134
+ /** Description string */
135
+ description: string;
136
+ /** Available models for this agent */
137
+ models: SessionModelInfo[];
138
+ /**
139
+ * Protected resources this agent requires authentication for.
140
+ *
141
+ * Each entry describes an OAuth 2.0 protected resource using
142
+ * [RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728) semantics.
143
+ * Clients should obtain tokens from the declared `authorization_servers`
144
+ * and push them via the `authenticate` command before creating sessions
145
+ * with this agent.
146
+ *
147
+ * @see {@link /specification/authentication | Authentication}
148
+ */
149
+ protectedResources?: ProtectedResourceMetadata[];
150
+ /**
151
+ * Customizations (Open Plugins) associated with this agent.
152
+ *
153
+ * Each entry is a reference to an [Open Plugins](https://open-plugins.com/)
154
+ * plugin that the agent host can activate for sessions using this agent.
155
+ */
156
+ customizations?: CustomizationRef[];
157
+ }
158
+ /**
159
+ * @category Root State
160
+ */
161
+ export interface SessionModelInfo {
162
+ /** Model identifier */
163
+ id: string;
164
+ /** Provider this model belongs to */
165
+ provider: string;
166
+ /** Human-readable model name */
167
+ name: string;
168
+ /** Maximum context window size */
169
+ maxContextWindow?: number;
170
+ /** Whether the model supports vision */
171
+ supportsVision?: boolean;
172
+ /** Policy configuration state */
173
+ policyState?: PolicyState;
174
+ /**
175
+ * Configuration schema describing model-specific options (e.g. thinking
176
+ * level). Clients present this as a form and pass the resolved values in
177
+ * {@link ModelSelection.config} when creating or changing sessions.
178
+ */
179
+ configSchema?: ConfigSchema;
180
+ /**
181
+ * Additional provider-specific metadata for this model.
182
+ *
183
+ * Clients MAY look for well-known keys here to provide enhanced UI.
184
+ * For example, a `pricing` key may carry model pricing metadata.
185
+ */
186
+ _meta?: Record<string, unknown>;
187
+ }
188
+ /**
189
+ * A model selection: the chosen model ID together with any model-specific
190
+ * configuration values whose keys correspond to the model's
191
+ * {@link SessionModelInfo.configSchema}.
192
+ *
193
+ * @category Root State
194
+ */
195
+ export interface ModelSelection {
196
+ /** Model identifier */
197
+ id: string;
198
+ /** Model-specific configuration values */
199
+ config?: Record<string, string>;
200
+ }
201
+ /**
202
+ * Discriminant for pending message kinds.
203
+ *
204
+ * @category Pending Message Types
205
+ */
206
+ export declare enum PendingMessageKind {
207
+ /** Injected into the current turn at a convenient point */
208
+ Steering = "steering",
209
+ /** Sent automatically as a new turn after the current turn finishes */
210
+ Queued = "queued"
211
+ }
212
+ /**
213
+ * A message queued for future delivery to the agent.
214
+ *
215
+ * Steering messages are injected into the current turn mid-flight.
216
+ * Queued messages are automatically started as new turns after the
217
+ * current turn naturally finishes.
218
+ *
219
+ * @category Pending Message Types
220
+ */
221
+ export interface PendingMessage {
222
+ /** Unique identifier for this pending message */
223
+ id: string;
224
+ /** The message content */
225
+ userMessage: UserMessage;
226
+ }
227
+ /**
228
+ * Session initialization state.
229
+ *
230
+ * @category Session State
231
+ */
232
+ export declare enum SessionLifecycle {
233
+ Creating = "creating",
234
+ Ready = "ready",
235
+ CreationFailed = "creationFailed"
236
+ }
237
+ /**
238
+ * Bitset of summary-level session status flags.
239
+ *
240
+ * Use bitwise checks instead of equality for non-terminal activity. For example,
241
+ * `status & SessionStatus.InProgress` matches both ordinary in-progress turns
242
+ * and turns that are paused waiting for input.
243
+ *
244
+ * @category Session State
245
+ */
246
+ export declare enum SessionStatus {
247
+ /** Session is idle — no turn is active. */
248
+ Idle = 1,
249
+ /** Session ended with an error. */
250
+ Error = 2,
251
+ /** A turn is actively streaming. */
252
+ InProgress = 8,
253
+ /** A turn is in progress but blocked waiting for user input or tool confirmation. */
254
+ InputNeeded = 24,
255
+ /** The client has viewed this session since its last modification. */
256
+ IsRead = 32,
257
+ /** The session has been archived by the client. */
258
+ IsArchived = 64
259
+ }
260
+ /**
261
+ * Full state for a single session, loaded when a client subscribes to the session's URI.
262
+ *
263
+ * @category Session State
264
+ */
265
+ export interface SessionState {
266
+ /** Lightweight session metadata */
267
+ summary: SessionSummary;
268
+ /** Session initialization state */
269
+ lifecycle: SessionLifecycle;
270
+ /** Error details if creation failed */
271
+ creationError?: ErrorInfo;
272
+ /** Tools provided by the server (agent host) for this session */
273
+ serverTools?: ToolDefinition[];
274
+ /** The client currently providing tools and interactive capabilities to this session */
275
+ activeClient?: SessionActiveClient;
276
+ /** Completed turns */
277
+ turns: Turn[];
278
+ /** Currently in-progress turn */
279
+ activeTurn?: ActiveTurn;
280
+ /** Message to inject into the current turn at a convenient point */
281
+ steeringMessage?: PendingMessage;
282
+ /** Messages to send automatically as new turns after the current turn finishes */
283
+ queuedMessages?: PendingMessage[];
284
+ /** Requests for user input that are currently blocking or informing session progress */
285
+ inputRequests?: SessionInputRequest[];
286
+ /** Session configuration schema and current values */
287
+ config?: SessionConfigState;
288
+ /**
289
+ * Server-provided customizations active in this session.
290
+ *
291
+ * Client-provided customizations are available on
292
+ * {@link SessionActiveClient.customizations | activeClient.customizations}.
293
+ */
294
+ customizations?: SessionCustomization[];
295
+ /**
296
+ * Additional provider-specific metadata for this session.
297
+ *
298
+ * Clients MAY look for well-known keys here to provide enhanced UI.
299
+ * For example, a `git` key may provide extra git metadata about the session's
300
+ * workingDirectory.
301
+ */
302
+ _meta?: Record<string, unknown>;
303
+ }
304
+ /**
305
+ * The client currently providing tools and interactive capabilities to a session.
306
+ *
307
+ * Only one client may be active per session at a time. The server SHOULD
308
+ * automatically unset the active client if that client disconnects.
309
+ *
310
+ * @category Session State
311
+ */
312
+ export interface SessionActiveClient {
313
+ /** Client identifier (matches `clientId` from `initialize`) */
314
+ clientId: string;
315
+ /** Human-readable client name (e.g. `"VS Code"`) */
316
+ displayName?: string;
317
+ /** Tools this client provides to the session */
318
+ tools: ToolDefinition[];
319
+ /** Customizations this client contributes to the session */
320
+ customizations?: CustomizationRef[];
321
+ }
322
+ /**
323
+ * Server-owned project metadata for a session.
324
+ *
325
+ * @category Session State
326
+ */
327
+ export interface ProjectInfo {
328
+ /** Project URI */
329
+ uri: URI;
330
+ /** Human-readable project name */
331
+ displayName: string;
332
+ }
333
+ /**
334
+ * @category Session State
335
+ */
336
+ export interface SessionSummary {
337
+ /** Session URI */
338
+ resource: URI;
339
+ /** Agent provider ID */
340
+ provider: string;
341
+ /** Session title */
342
+ title: string;
343
+ /** Current session status */
344
+ status: SessionStatus;
345
+ /** Human-readable description of what the session is currently doing */
346
+ activity?: string;
347
+ /** Creation timestamp */
348
+ createdAt: number;
349
+ /** Last modification timestamp */
350
+ modifiedAt: number;
351
+ /** Server-owned project for this session */
352
+ project?: ProjectInfo;
353
+ /** Currently selected model */
354
+ model?: ModelSelection;
355
+ /** The working directory URI for this session */
356
+ workingDirectory?: URI;
357
+ /** Files changed during this session with diff statistics */
358
+ diffs?: FileEdit[];
359
+ }
360
+ /**
361
+ * A JSON Schema-compatible property descriptor with display extensions.
362
+ *
363
+ * Standard JSON Schema fields (`type`, `title`, `description`, `default`,
364
+ * `enum`) allow validators to process the schema. Display extensions
365
+ * (`enumLabels`, `enumDescriptions`) are parallel arrays that provide UI
366
+ * metadata for each `enum` value.
367
+ *
368
+ * This is the generic base type. See {@link SessionConfigPropertySchema} for
369
+ * session-specific extensions.
370
+ *
371
+ * @category Config Schema Types
372
+ */
373
+ export interface ConfigPropertySchema {
374
+ /** JSON Schema: property type */
375
+ type: "string" | "number" | "boolean" | "array" | "object";
376
+ /** JSON Schema: human-readable label for the property */
377
+ title: string;
378
+ /** JSON Schema: description / tooltip */
379
+ description?: string;
380
+ /** JSON Schema: default value */
381
+ default?: unknown;
382
+ /** JSON Schema: allowed values (typically used with `string` type) */
383
+ enum?: string[];
384
+ /** Display extension: human-readable label per enum value (parallel array) */
385
+ enumLabels?: string[];
386
+ /** Display extension: description per enum value (parallel array) */
387
+ enumDescriptions?: string[];
388
+ /** JSON Schema: when `true`, the property is displayed but cannot be modified by the user */
389
+ readOnly?: boolean;
390
+ /** JSON Schema: schema for array items (used when `type` is `'array'`) */
391
+ items?: ConfigPropertySchema;
392
+ /** JSON Schema: property descriptors for object properties (used when `type` is `'object'`) */
393
+ properties?: Record<string, ConfigPropertySchema>;
394
+ /** JSON Schema: list of required property ids (used when `type` is `'object'`) */
395
+ required?: string[];
396
+ }
397
+ /**
398
+ * A JSON Schema object describing available configuration properties.
399
+ *
400
+ * This is the generic base type. See {@link SessionConfigSchema} for
401
+ * session-specific usage.
402
+ *
403
+ * @category Config Schema Types
404
+ */
405
+ export interface ConfigSchema {
406
+ /** JSON Schema: always `'object'` */
407
+ type: "object";
408
+ /** JSON Schema: property descriptors keyed by property id */
409
+ properties: Record<string, ConfigPropertySchema>;
410
+ /** JSON Schema: list of required property ids */
411
+ required?: string[];
412
+ }
413
+ /**
414
+ * Live agent-host configuration metadata.
415
+ *
416
+ * The schema describes the available configuration properties and the values
417
+ * contain the current value for each resolved property.
418
+ *
419
+ * @category Root State
420
+ */
421
+ export interface RootConfigState {
422
+ /** JSON Schema describing available configuration properties */
423
+ schema: ConfigSchema;
424
+ /** Current configuration values */
425
+ values: Record<string, unknown>;
426
+ }
427
+ /**
428
+ * A session configuration property descriptor.
429
+ *
430
+ * Extends the generic {@link ConfigPropertySchema} with session-specific
431
+ * display extensions.
432
+ *
433
+ * @category Session Config Types
434
+ */
435
+ export interface SessionConfigPropertySchema extends ConfigPropertySchema {
436
+ /**
437
+ * Display extension: when `true`, the full set of allowed values is too large
438
+ * to enumerate statically. The client SHOULD use `sessionConfigCompletions`
439
+ * to fetch matching values based on user input. Any values in `enum` are
440
+ * seed/recent values for initial display.
441
+ */
442
+ enumDynamic?: boolean;
443
+ /** When `true`, the user may change this property after session creation */
444
+ sessionMutable?: boolean;
445
+ }
446
+ /**
447
+ * A JSON Schema object describing available session configuration metadata.
448
+ *
449
+ * @category Session Config Types
450
+ */
451
+ export interface SessionConfigSchema {
452
+ /** JSON Schema: always `'object'` */
453
+ type: "object";
454
+ /** JSON Schema: property descriptors keyed by property id */
455
+ properties: Record<string, SessionConfigPropertySchema>;
456
+ /** JSON Schema: list of required property ids */
457
+ required?: string[];
458
+ }
459
+ /**
460
+ * Live session configuration metadata.
461
+ *
462
+ * The schema describes the available configuration properties and the values
463
+ * contain the current value for each resolved property.
464
+ *
465
+ * @category Session Config Types
466
+ */
467
+ export interface SessionConfigState {
468
+ /** JSON Schema describing available configuration properties */
469
+ schema: SessionConfigSchema;
470
+ /** Current configuration values */
471
+ values: Record<string, unknown>;
472
+ }
473
+ /**
474
+ * How a client completed an input request.
475
+ *
476
+ * @category Session Input Types
477
+ */
478
+ export declare enum SessionInputResponseKind {
479
+ Accept = "accept",
480
+ Decline = "decline",
481
+ Cancel = "cancel"
482
+ }
483
+ /**
484
+ * Question/input control kind.
485
+ *
486
+ * @category Session Input Types
487
+ */
488
+ export declare enum SessionInputQuestionKind {
489
+ Text = "text",
490
+ Number = "number",
491
+ Integer = "integer",
492
+ Boolean = "boolean",
493
+ SingleSelect = "single-select",
494
+ MultiSelect = "multi-select"
495
+ }
496
+ /**
497
+ * A choice in a select-style question.
498
+ *
499
+ * @category Session Input Types
500
+ */
501
+ export interface SessionInputOption {
502
+ /** Stable option identifier; for MCP enum values this is the enum string */
503
+ id: string;
504
+ /** Display label */
505
+ label: string;
506
+ /** Optional secondary text */
507
+ description?: string;
508
+ /** Whether this option is the recommended/default choice */
509
+ recommended?: boolean;
510
+ }
511
+ interface SessionInputQuestionBase {
512
+ /** Stable question identifier used as the key in `answers` */
513
+ id: string;
514
+ /** Short display title */
515
+ title?: string;
516
+ /** Prompt shown to the user */
517
+ message: string;
518
+ /** Whether the user must answer this question to accept the request */
519
+ required?: boolean;
520
+ }
521
+ /** Text question within a session input request. */
522
+ export interface SessionInputTextQuestion extends SessionInputQuestionBase {
523
+ kind: SessionInputQuestionKind.Text;
524
+ /** Format hint for text questions, such as `email`, `uri`, `date`, or `date-time` */
525
+ format?: string;
526
+ /** Minimum string length */
527
+ min?: number;
528
+ /** Maximum string length */
529
+ max?: number;
530
+ /** Default text */
531
+ defaultValue?: string;
532
+ }
533
+ /** Numeric question within a session input request. */
534
+ export interface SessionInputNumberQuestion extends SessionInputQuestionBase {
535
+ kind: SessionInputQuestionKind.Number | SessionInputQuestionKind.Integer;
536
+ /**
537
+ * Minimum value
538
+ * @format float
539
+ */
540
+ min?: number;
541
+ /**
542
+ * Maximum value
543
+ * @format float
544
+ */
545
+ max?: number;
546
+ /**
547
+ * Default numeric value
548
+ * @format float
549
+ */
550
+ defaultValue?: number;
551
+ }
552
+ /** Boolean question within a session input request. */
553
+ export interface SessionInputBooleanQuestion extends SessionInputQuestionBase {
554
+ kind: SessionInputQuestionKind.Boolean;
555
+ /** Default boolean value */
556
+ defaultValue?: boolean;
557
+ }
558
+ /** Single-select question within a session input request. */
559
+ export interface SessionInputSingleSelectQuestion extends SessionInputQuestionBase {
560
+ kind: SessionInputQuestionKind.SingleSelect;
561
+ /** Options the user may select from */
562
+ options: SessionInputOption[];
563
+ /** Whether the user may enter text instead of selecting an option */
564
+ allowFreeformInput?: boolean;
565
+ }
566
+ /** Multi-select question within a session input request. */
567
+ export interface SessionInputMultiSelectQuestion extends SessionInputQuestionBase {
568
+ kind: SessionInputQuestionKind.MultiSelect;
569
+ /** Options the user may select from */
570
+ options: SessionInputOption[];
571
+ /** Whether the user may enter text in addition to selecting options */
572
+ allowFreeformInput?: boolean;
573
+ /** Minimum selected item count */
574
+ min?: number;
575
+ /** Maximum selected item count */
576
+ max?: number;
577
+ }
578
+ /**
579
+ * One question within a session input request.
580
+ *
581
+ * @category Session Input Types
582
+ */
583
+ export type SessionInputQuestion = SessionInputTextQuestion | SessionInputNumberQuestion | SessionInputBooleanQuestion | SessionInputSingleSelectQuestion | SessionInputMultiSelectQuestion;
584
+ /**
585
+ * A live request for user input.
586
+ *
587
+ * The server creates or replaces requests with `session/inputRequested`.
588
+ * Clients sync drafts with `session/inputAnswerChanged` and complete requests
589
+ * with `session/inputCompleted`.
590
+ *
591
+ * @category Session Input Types
592
+ */
593
+ export interface SessionInputRequest {
594
+ /** Stable request identifier */
595
+ id: string;
596
+ /** Display message for the request as a whole */
597
+ message?: string;
598
+ /** URL the user should review or open, for URL-style elicitations */
599
+ url?: URI;
600
+ /** Ordered questions to ask the user */
601
+ questions?: SessionInputQuestion[];
602
+ /** Current draft or submitted answers, keyed by question ID */
603
+ answers?: Record<string, SessionInputAnswer>;
604
+ }
605
+ /**
606
+ * Answer value kind.
607
+ *
608
+ * @category Session Input Types
609
+ */
610
+ export declare enum SessionInputAnswerValueKind {
611
+ Text = "text",
612
+ Number = "number",
613
+ Boolean = "boolean",
614
+ Selected = "selected",
615
+ SelectedMany = "selected-many"
616
+ }
617
+ /**
618
+ * Value captured for one answer.
619
+ *
620
+ * @category Session Input Types
621
+ */
622
+ export interface SessionInputTextAnswerValue {
623
+ kind: SessionInputAnswerValueKind.Text;
624
+ value: string;
625
+ }
626
+ export interface SessionInputNumberAnswerValue {
627
+ kind: SessionInputAnswerValueKind.Number;
628
+ /** @format float */
629
+ value: number;
630
+ }
631
+ export interface SessionInputBooleanAnswerValue {
632
+ kind: SessionInputAnswerValueKind.Boolean;
633
+ value: boolean;
634
+ }
635
+ export interface SessionInputSelectedAnswerValue {
636
+ kind: SessionInputAnswerValueKind.Selected;
637
+ value: string;
638
+ /** Free-form text entered instead of selecting an option */
639
+ freeformValues?: string[];
640
+ }
641
+ export interface SessionInputSelectedManyAnswerValue {
642
+ kind: SessionInputAnswerValueKind.SelectedMany;
643
+ value: string[];
644
+ /** Free-form text entered in addition to selected options */
645
+ freeformValues?: string[];
646
+ }
647
+ export type SessionInputAnswerValue = SessionInputTextAnswerValue | SessionInputNumberAnswerValue | SessionInputBooleanAnswerValue | SessionInputSelectedAnswerValue | SessionInputSelectedManyAnswerValue;
648
+ export interface SessionInputAnswered {
649
+ /** Answer state */
650
+ state: SessionInputAnswerState.Draft | SessionInputAnswerState.Submitted;
651
+ /** Answer value */
652
+ value: SessionInputAnswerValue;
653
+ }
654
+ export interface SessionInputSkipped {
655
+ /** Answer state */
656
+ state: SessionInputAnswerState.Skipped;
657
+ /** Free-form reason or value captured while skipping, if any */
658
+ freeformValues?: string[];
659
+ }
660
+ /**
661
+ * Answer lifecycle state.
662
+ *
663
+ * @category Session Input Types
664
+ */
665
+ export declare enum SessionInputAnswerState {
666
+ Draft = "draft",
667
+ Submitted = "submitted",
668
+ Skipped = "skipped"
669
+ }
670
+ /**
671
+ * Draft, submitted, or skipped answer for one question.
672
+ *
673
+ * @category Session Input Types
674
+ */
675
+ export type SessionInputAnswer = SessionInputAnswered | SessionInputSkipped;
676
+ /**
677
+ * How a turn ended.
678
+ *
679
+ * @category Turn Types
680
+ */
681
+ export declare enum TurnState {
682
+ Complete = "complete",
683
+ Cancelled = "cancelled",
684
+ Error = "error"
685
+ }
686
+ /**
687
+ * Discriminant for {@link MessageAttachment} variants.
688
+ *
689
+ * @category Turn Types
690
+ */
691
+ export declare enum MessageAttachmentKind {
692
+ /** A simple, opaque attachment whose representation is described by the producer. */
693
+ Simple = "simple",
694
+ /** An attachment whose data is embedded inline as a base64 string. */
695
+ EmbeddedResource = "embeddedResource",
696
+ /** An attachment that references a resource by URI. */
697
+ Resource = "resource"
698
+ }
699
+ /**
700
+ * A completed request/response cycle.
701
+ *
702
+ * @category Turn Types
703
+ */
704
+ export interface Turn {
705
+ /** Turn identifier */
706
+ id: string;
707
+ /** The user's input */
708
+ userMessage: UserMessage;
709
+ /**
710
+ * All response content in stream order: text, tool calls, reasoning, and content refs.
711
+ *
712
+ * Consumers should derive display text by concatenating markdown parts,
713
+ * and find tool calls by filtering for `ToolCall` parts.
714
+ */
715
+ responseParts: ResponsePart[];
716
+ /** Token usage info */
717
+ usage: UsageInfo | undefined;
718
+ /** How the turn ended */
719
+ state: TurnState;
720
+ /** Error details if state is `'error'` */
721
+ error?: ErrorInfo;
722
+ }
723
+ /**
724
+ * An in-progress turn — the assistant is actively streaming.
725
+ *
726
+ * @category Turn Types
727
+ */
728
+ export interface ActiveTurn {
729
+ /** Turn identifier */
730
+ id: string;
731
+ /** The user's input */
732
+ userMessage: UserMessage;
733
+ /**
734
+ * All response content in stream order: text, tool calls, reasoning, and content refs.
735
+ *
736
+ * Tool call parts include `pendingPermissions` when permissions are awaiting user approval.
737
+ */
738
+ responseParts: ResponsePart[];
739
+ /** Token usage info */
740
+ usage: UsageInfo | undefined;
741
+ }
742
+ /**
743
+ * A user message and its associated attachments.
744
+ *
745
+ * Attachments MAY be referenced inside {@link UserMessage.text} via their
746
+ * {@link MessageAttachmentBase.range} field. Attachments without a range are
747
+ * still associated with the message but do not correspond to a specific span
748
+ * in the text.
749
+ *
750
+ * @category Turn Types
751
+ */
752
+ export interface UserMessage {
753
+ /** Message text */
754
+ text: string;
755
+ /** File/selection attachments */
756
+ attachments?: MessageAttachment[];
757
+ }
758
+ /**
759
+ * Common fields shared by all {@link MessageAttachment} variants.
760
+ *
761
+ * @category Turn Types
762
+ */
763
+ export interface MessageAttachmentBase {
764
+ /**
765
+ * A human-readable label for the attachment (e.g. the filename of a file
766
+ * attachment). Used for display in UI.
767
+ */
768
+ label: string;
769
+ /**
770
+ * If defined, the range in {@link UserMessage.text} that references this
771
+ * attachment. This is a text range, not a byte range.
772
+ */
773
+ range?: TextRange;
774
+ /**
775
+ * Advisory display hint for clients rendering this attachment. Recognized
776
+ * values include:
777
+ *
778
+ * - `'image'`: the attachment is an image
779
+ * - `'document'`: the attachment is a textual document
780
+ * - `'symbol'`: the attachment is a code symbol (e.g. a function or class)
781
+ * - `'directory'`: the attachment is a folder
782
+ * - `'selection'`: the attachment is a selection within a document
783
+ *
784
+ * Implementations MAY provide additional values; clients SHOULD fall back
785
+ * to a reasonable default when an unknown value is encountered.
786
+ */
787
+ displayKind?: string;
788
+ /**
789
+ * Additional implementation-defined metadata for the attachment.
790
+ *
791
+ * If the attachment was produced by the `completions` command, the client
792
+ * MUST preserve every property of `_meta` originally returned by the agent
793
+ * host when sending the user message containing the accepted completion.
794
+ */
795
+ _meta?: Record<string, unknown>;
796
+ }
797
+ /**
798
+ * A zero-based position within a textual document.
799
+ *
800
+ * @category Turn Types
801
+ */
802
+ export interface TextPosition {
803
+ /** Zero-based line number. */
804
+ line: number;
805
+ /** Zero-based character offset within the line. */
806
+ character: number;
807
+ }
808
+ /**
809
+ * A range within a textual document.
810
+ *
811
+ * @category Turn Types
812
+ */
813
+ export interface TextRange {
814
+ /** Start position of the range. */
815
+ start: TextPosition;
816
+ /** End position of the range. */
817
+ end: TextPosition;
818
+ }
819
+ /**
820
+ * A selection within a textual resource.
821
+ *
822
+ * This is only meaningful for textual resources. Binary resources may still
823
+ * use resource or embedded resource attachments, but they should not use this
824
+ * text selection field.
825
+ *
826
+ * @category Turn Types
827
+ */
828
+ export interface TextSelection {
829
+ /** The range covered by the selection. */
830
+ range: TextRange;
831
+ }
832
+ /**
833
+ * A simple, opaque attachment whose model representation is described by
834
+ * the producer.
835
+ *
836
+ * @category Turn Types
837
+ */
838
+ export interface SimpleMessageAttachment extends MessageAttachmentBase {
839
+ /** Discriminant */
840
+ type: MessageAttachmentKind.Simple;
841
+ /**
842
+ * Representation of the attachment as it should be shown to the model.
843
+ *
844
+ * If the attachment was produced by the client, this property MUST be
845
+ * defined so the agent host can correctly interpret the attachment. This
846
+ * property MAY be omitted when the attachment originated from a
847
+ * `completions` response.
848
+ */
849
+ modelRepresentation?: string;
850
+ }
851
+ /**
852
+ * An attachment whose data is embedded inline as a base64 string.
853
+ *
854
+ * Use this for small binary payloads (e.g. a pasted image) that should be
855
+ * delivered with the user message itself rather than fetched separately.
856
+ *
857
+ * @category Turn Types
858
+ */
859
+ export interface MessageEmbeddedResourceAttachment extends MessageAttachmentBase {
860
+ /** Discriminant */
861
+ type: MessageAttachmentKind.EmbeddedResource;
862
+ /** Base64-encoded binary data */
863
+ data: string;
864
+ /** Content MIME type (e.g. `"image/png"`, `"application/pdf"`) */
865
+ contentType: string;
866
+ /**
867
+ * Optional selection within the attached textual resource.
868
+ *
869
+ * Only meaningful for textual resources.
870
+ */
871
+ selection?: TextSelection;
872
+ }
873
+ /**
874
+ * An attachment that references a resource by URI. The content is not
875
+ * delivered inline; consumers can fetch it via `resourceRead` when needed.
876
+ *
877
+ * @category Turn Types
878
+ */
879
+ export interface MessageResourceAttachment extends MessageAttachmentBase, ContentRef {
880
+ /** Discriminant */
881
+ type: MessageAttachmentKind.Resource;
882
+ /**
883
+ * Optional selection within the referenced textual resource.
884
+ *
885
+ * Only meaningful for textual resources.
886
+ */
887
+ selection?: TextSelection;
888
+ }
889
+ /**
890
+ * An attachment associated with a {@link UserMessage}.
891
+ *
892
+ * @category Turn Types
893
+ */
894
+ export type MessageAttachment = SimpleMessageAttachment | MessageEmbeddedResourceAttachment | MessageResourceAttachment;
895
+ /**
896
+ * Discriminant for response part types.
897
+ *
898
+ * @category Response Parts
899
+ */
900
+ export declare enum ResponsePartKind {
901
+ Markdown = "markdown",
902
+ ContentRef = "contentRef",
903
+ ToolCall = "toolCall",
904
+ Reasoning = "reasoning",
905
+ SystemNotification = "systemNotification"
906
+ }
907
+ /**
908
+ * @category Response Parts
909
+ */
910
+ export interface MarkdownResponsePart {
911
+ /** Discriminant */
912
+ kind: ResponsePartKind.Markdown;
913
+ /** Part identifier, used by `session/delta` to target this part for content appends */
914
+ id: string;
915
+ /** Markdown content */
916
+ content: string;
917
+ }
918
+ /**
919
+ * A reference to large content stored outside the state tree.
920
+ */
921
+ export interface ContentRef {
922
+ /** Content URI */
923
+ uri: URI;
924
+ /** Approximate size in bytes */
925
+ sizeHint?: number;
926
+ /** Content MIME type */
927
+ contentType?: string;
928
+ }
929
+ /**
930
+ * A content part that's a reference to large content stored outside the state tree.
931
+ *
932
+ * @category Response Parts
933
+ */
934
+ export interface ResourceReponsePart extends ContentRef {
935
+ /** Discriminant */
936
+ kind: ResponsePartKind.ContentRef;
937
+ }
938
+ /**
939
+ * A tool call represented as a response part.
940
+ *
941
+ * Tool calls are part of the response stream, interleaved with text and
942
+ * reasoning. The `toolCall.toolCallId` serves as the part identifier for
943
+ * actions that target this part.
944
+ *
945
+ * @category Response Parts
946
+ */
947
+ export interface ToolCallResponsePart {
948
+ /** Discriminant */
949
+ kind: ResponsePartKind.ToolCall;
950
+ /** Full tool call lifecycle state */
951
+ toolCall: ToolCallState;
952
+ }
953
+ /**
954
+ * Reasoning/thinking content from the model.
955
+ *
956
+ * @category Response Parts
957
+ */
958
+ export interface ReasoningResponsePart {
959
+ /** Discriminant */
960
+ kind: ResponsePartKind.Reasoning;
961
+ /** Part identifier, used by `session/reasoning` to target this part for content appends */
962
+ id: string;
963
+ /** Accumulated reasoning text */
964
+ content: string;
965
+ }
966
+ /**
967
+ * @category Response Parts
968
+ */
969
+ export type ResponsePart = MarkdownResponsePart | ResourceReponsePart | ToolCallResponsePart | ReasoningResponsePart | SystemNotificationResponsePart;
970
+ /**
971
+ * A system notification surfaced as part of the response stream.
972
+ *
973
+ * System notifications are messages authored by the agent harness
974
+ * that need to be visible to both the agent (for situational awareness) and
975
+ * the user (for transcript continuity). Examples include "background subagent
976
+ * X completed" or "task Y was cancelled".
977
+ *
978
+ * @category Response Parts
979
+ */
980
+ export interface SystemNotificationResponsePart {
981
+ /** Discriminant */
982
+ kind: ResponsePartKind.SystemNotification;
983
+ /** The text of the system notification */
984
+ content: StringOrMarkdown;
985
+ }
986
+ /**
987
+ * Status of a tool call in the lifecycle state machine.
988
+ *
989
+ * @category Tool Call Types
990
+ */
991
+ export declare enum ToolCallStatus {
992
+ Streaming = "streaming",
993
+ PendingConfirmation = "pending-confirmation",
994
+ Running = "running",
995
+ PendingResultConfirmation = "pending-result-confirmation",
996
+ Completed = "completed",
997
+ Cancelled = "cancelled"
998
+ }
999
+ /**
1000
+ * How a tool call was confirmed for execution.
1001
+ *
1002
+ * - `NotNeeded` — No confirmation required (auto-approved)
1003
+ * - `UserAction` — User explicitly approved
1004
+ * - `Setting` — Approved by a persistent user setting
1005
+ *
1006
+ * @category Tool Call Types
1007
+ */
1008
+ export declare enum ToolCallConfirmationReason {
1009
+ NotNeeded = "not-needed",
1010
+ UserAction = "user-action",
1011
+ Setting = "setting"
1012
+ }
1013
+ /**
1014
+ * Why a tool call was cancelled.
1015
+ *
1016
+ * @category Tool Call Types
1017
+ */
1018
+ export declare enum ToolCallCancellationReason {
1019
+ Denied = "denied",
1020
+ Skipped = "skipped",
1021
+ ResultDenied = "result-denied"
1022
+ }
1023
+ /**
1024
+ * Whether a confirmation option represents an approval or denial action.
1025
+ *
1026
+ * @category Tool Call Types
1027
+ */
1028
+ export declare enum ConfirmationOptionKind {
1029
+ Approve = "approve",
1030
+ Deny = "deny"
1031
+ }
1032
+ /**
1033
+ * A confirmation option that the server offers for a tool call awaiting
1034
+ * approval. Allows richer choices beyond simple approve/deny — for example,
1035
+ * "Approve in this Session" or "Deny with reason."
1036
+ *
1037
+ * @category Tool Call Types
1038
+ */
1039
+ export interface ConfirmationOption {
1040
+ /** Unique identifier for the option, returned in the confirmed action */
1041
+ id: string;
1042
+ /** Human-readable label displayed to the user */
1043
+ label: string;
1044
+ /** Whether this option represents an approval or denial */
1045
+ kind: ConfirmationOptionKind;
1046
+ /**
1047
+ * Logical group number for visual categorisation.
1048
+ *
1049
+ * Clients SHOULD display options in the order they are defined and MAY
1050
+ * use differing group numbers to insert dividers between logical clusters
1051
+ * of options.
1052
+ */
1053
+ group?: number;
1054
+ }
1055
+ /**
1056
+ * Metadata common to all tool call states.
1057
+ *
1058
+ * @category Tool Call Types
1059
+ * @remarks
1060
+ * Fields like `toolName` carry agent-specific identifiers on the wire despite the
1061
+ * agent-agnostic design principle. These exist for debugging and logging purposes.
1062
+ * A future version may move these to a separate diagnostic channel or namespace them
1063
+ * more clearly.
1064
+ */
1065
+ interface ToolCallBase {
1066
+ /** Unique tool call identifier */
1067
+ toolCallId: string;
1068
+ /** Internal tool name (for debugging/logging) */
1069
+ toolName: string;
1070
+ /** Human-readable tool name */
1071
+ displayName: string;
1072
+ /**
1073
+ * If this tool is provided by a client, the `clientId` of the owning client.
1074
+ * Absent for server-side tools.
1075
+ *
1076
+ * When set, the identified client is responsible for executing the tool and
1077
+ * dispatching `session/toolCallComplete` with the result.
1078
+ */
1079
+ toolClientId?: string;
1080
+ /**
1081
+ * Additional provider-specific metadata for this tool call.
1082
+ *
1083
+ * Clients MAY look for well-known keys here to provide enhanced UI.
1084
+ * For example, a `ptyTerminal` key with `{ input: string; output: string }`
1085
+ * indicates the tool operated on a terminal (both `input` and `output` may
1086
+ * contain escape sequences).
1087
+ */
1088
+ _meta?: Record<string, unknown>;
1089
+ }
1090
+ /**
1091
+ * Properties available once tool call parameters are fully received.
1092
+ *
1093
+ * @category Tool Call Types
1094
+ */
1095
+ interface ToolCallParameterFields {
1096
+ /** Message describing what the tool will do */
1097
+ invocationMessage: StringOrMarkdown;
1098
+ /** Raw tool input */
1099
+ toolInput?: string;
1100
+ }
1101
+ /**
1102
+ * Tool execution result details, available after execution completes.
1103
+ *
1104
+ * @category Tool Call Types
1105
+ */
1106
+ export interface ToolCallResult {
1107
+ /** Whether the tool succeeded */
1108
+ success: boolean;
1109
+ /** Past-tense description of what the tool did */
1110
+ pastTenseMessage: StringOrMarkdown;
1111
+ /**
1112
+ * Unstructured result content blocks.
1113
+ *
1114
+ * This mirrors the `content` field of MCP `CallToolResult`.
1115
+ */
1116
+ content?: ToolResultContent[];
1117
+ /**
1118
+ * Optional structured result object.
1119
+ *
1120
+ * This mirrors the `structuredContent` field of MCP `CallToolResult`.
1121
+ */
1122
+ structuredContent?: Record<string, unknown>;
1123
+ /** Error details if the tool failed */
1124
+ error?: {
1125
+ message: string;
1126
+ code?: string;
1127
+ };
1128
+ }
1129
+ /**
1130
+ * LM is streaming the tool call parameters.
1131
+ *
1132
+ * @category Tool Call Types
1133
+ */
1134
+ export interface ToolCallStreamingState extends ToolCallBase {
1135
+ status: ToolCallStatus.Streaming;
1136
+ /** Partial parameters accumulated so far */
1137
+ partialInput?: string;
1138
+ /** Progress message shown while parameters are streaming */
1139
+ invocationMessage?: StringOrMarkdown;
1140
+ }
1141
+ /**
1142
+ * Parameters are complete, or a running tool requires re-confirmation
1143
+ * (e.g. a mid-execution permission check).
1144
+ *
1145
+ * @category Tool Call Types
1146
+ */
1147
+ export interface ToolCallPendingConfirmationState extends ToolCallBase, ToolCallParameterFields {
1148
+ status: ToolCallStatus.PendingConfirmation;
1149
+ /** Short title for the confirmation prompt (e.g. `"Run in terminal"`, `"Write file"`) */
1150
+ confirmationTitle?: StringOrMarkdown;
1151
+ /** File edits that this tool call will perform, for preview before confirmation */
1152
+ edits?: {
1153
+ items: FileEdit[];
1154
+ };
1155
+ /** Whether the agent host allows the client to edit the tool's input parameters before confirming */
1156
+ editable?: boolean;
1157
+ /**
1158
+ * Options the server offers for this confirmation. When present, the client
1159
+ * SHOULD render these instead of a plain approve/deny UI. Each option
1160
+ * belongs to a {@link ConfirmationOptionGroup} so the client can still
1161
+ * categorise the choices.
1162
+ */
1163
+ options?: ConfirmationOption[];
1164
+ }
1165
+ /**
1166
+ * Tool is actively executing.
1167
+ *
1168
+ * @category Tool Call Types
1169
+ */
1170
+ export interface ToolCallRunningState extends ToolCallBase, ToolCallParameterFields {
1171
+ status: ToolCallStatus.Running;
1172
+ /** How the tool was confirmed for execution */
1173
+ confirmed: ToolCallConfirmationReason;
1174
+ /** The confirmation option the user selected, if confirmation options were provided */
1175
+ selectedOption?: ConfirmationOption;
1176
+ /**
1177
+ * Partial content produced while the tool is still executing.
1178
+ *
1179
+ * For example, a terminal content block lets clients subscribe to live
1180
+ * output before the tool completes.
1181
+ */
1182
+ content?: ToolResultContent[];
1183
+ }
1184
+ /**
1185
+ * Tool finished executing, waiting for client to approve the result.
1186
+ *
1187
+ * @category Tool Call Types
1188
+ */
1189
+ export interface ToolCallPendingResultConfirmationState extends ToolCallBase, ToolCallParameterFields, ToolCallResult {
1190
+ status: ToolCallStatus.PendingResultConfirmation;
1191
+ /** How the tool was confirmed for execution */
1192
+ confirmed: ToolCallConfirmationReason;
1193
+ /** The confirmation option the user selected, if confirmation options were provided */
1194
+ selectedOption?: ConfirmationOption;
1195
+ }
1196
+ /**
1197
+ * Tool completed successfully or with an error.
1198
+ *
1199
+ * @category Tool Call Types
1200
+ */
1201
+ export interface ToolCallCompletedState extends ToolCallBase, ToolCallParameterFields, ToolCallResult {
1202
+ status: ToolCallStatus.Completed;
1203
+ /** How the tool was confirmed for execution */
1204
+ confirmed: ToolCallConfirmationReason;
1205
+ /** The confirmation option the user selected, if confirmation options were provided */
1206
+ selectedOption?: ConfirmationOption;
1207
+ }
1208
+ /**
1209
+ * Tool call was cancelled before execution.
1210
+ *
1211
+ * @category Tool Call Types
1212
+ */
1213
+ export interface ToolCallCancelledState extends ToolCallBase, ToolCallParameterFields {
1214
+ status: ToolCallStatus.Cancelled;
1215
+ /** Why the tool was cancelled */
1216
+ reason: ToolCallCancellationReason;
1217
+ /** Optional message explaining the cancellation */
1218
+ reasonMessage?: StringOrMarkdown;
1219
+ /** What the user suggested doing instead */
1220
+ userSuggestion?: UserMessage;
1221
+ /** The confirmation option the user selected, if confirmation options were provided */
1222
+ selectedOption?: ConfirmationOption;
1223
+ }
1224
+ /**
1225
+ * Discriminated union of all tool call lifecycle states.
1226
+ *
1227
+ * See the [state model guide](/guide/state-model.html#tool-call-lifecycle)
1228
+ * for the full state machine diagram.
1229
+ *
1230
+ * @category Tool Call Types
1231
+ */
1232
+ export type ToolCallState = ToolCallStreamingState | ToolCallPendingConfirmationState | ToolCallRunningState | ToolCallPendingResultConfirmationState | ToolCallCompletedState | ToolCallCancelledState;
1233
+ /**
1234
+ * Describes a tool available in a session, provided by either the server or the active client.
1235
+ *
1236
+ * @category Tool Definition Types
1237
+ */
1238
+ export interface ToolDefinition {
1239
+ /** Unique tool identifier */
1240
+ name: string;
1241
+ /** Human-readable display name */
1242
+ title?: string;
1243
+ /** Description of what the tool does */
1244
+ description?: string;
1245
+ /**
1246
+ * JSON Schema defining the expected input parameters.
1247
+ *
1248
+ * Optional because client-provided tools may not have formal schemas.
1249
+ * Mirrors MCP `Tool.inputSchema`.
1250
+ */
1251
+ inputSchema?: {
1252
+ type: "object";
1253
+ properties?: Record<string, object>;
1254
+ required?: string[];
1255
+ };
1256
+ /**
1257
+ * JSON Schema defining the structure of the tool's output.
1258
+ *
1259
+ * Mirrors MCP `Tool.outputSchema`.
1260
+ */
1261
+ outputSchema?: {
1262
+ type: "object";
1263
+ properties?: Record<string, object>;
1264
+ required?: string[];
1265
+ };
1266
+ /** Behavioral hints about the tool. All properties are advisory. */
1267
+ annotations?: ToolAnnotations;
1268
+ /**
1269
+ * Additional provider-specific metadata.
1270
+ *
1271
+ * Mirrors the MCP `_meta` convention.
1272
+ */
1273
+ _meta?: Record<string, unknown>;
1274
+ }
1275
+ /**
1276
+ * Behavioral hints about a tool. All properties are advisory and not
1277
+ * guaranteed to faithfully describe tool behavior.
1278
+ *
1279
+ * Mirrors MCP `ToolAnnotations` from the Model Context Protocol specification.
1280
+ *
1281
+ * @category Tool Definition Types
1282
+ */
1283
+ export interface ToolAnnotations {
1284
+ /** Alternate human-readable title */
1285
+ title?: string;
1286
+ /** Tool does not modify its environment (default: false) */
1287
+ readOnlyHint?: boolean;
1288
+ /** Tool may perform destructive updates (default: true) */
1289
+ destructiveHint?: boolean;
1290
+ /** Repeated calls with the same arguments have no additional effect (default: false) */
1291
+ idempotentHint?: boolean;
1292
+ /** Tool may interact with external entities (default: true) */
1293
+ openWorldHint?: boolean;
1294
+ }
1295
+ /**
1296
+ * Discriminant for tool result content types.
1297
+ *
1298
+ * @category Tool Result Content
1299
+ */
1300
+ export declare enum ToolResultContentType {
1301
+ Text = "text",
1302
+ EmbeddedResource = "embeddedResource",
1303
+ Resource = "resource",
1304
+ FileEdit = "fileEdit",
1305
+ Terminal = "terminal",
1306
+ Subagent = "subagent"
1307
+ }
1308
+ /**
1309
+ * Text content in a tool result.
1310
+ *
1311
+ * Mirrors MCP `TextContent`.
1312
+ *
1313
+ * @category Tool Result Content
1314
+ */
1315
+ export interface ToolResultTextContent {
1316
+ type: ToolResultContentType.Text;
1317
+ /** The text content */
1318
+ text: string;
1319
+ }
1320
+ /**
1321
+ * Base64-encoded binary content embedded in a tool result.
1322
+ *
1323
+ * Mirrors MCP `EmbeddedResource` for inline binary data.
1324
+ *
1325
+ * @category Tool Result Content
1326
+ */
1327
+ export interface ToolResultEmbeddedResourceContent {
1328
+ type: ToolResultContentType.EmbeddedResource;
1329
+ /** Base64-encoded data */
1330
+ data: string;
1331
+ /** Content type (e.g. `"image/png"`, `"application/pdf"`) */
1332
+ contentType: string;
1333
+ }
1334
+ /**
1335
+ * A reference to a resource stored outside the tool result.
1336
+ *
1337
+ * Wraps {@link ContentRef} for lazy-loading large results.
1338
+ *
1339
+ * @category Tool Result Content
1340
+ */
1341
+ export interface ToolResultResourceContent extends ContentRef {
1342
+ type: ToolResultContentType.Resource;
1343
+ }
1344
+ /**
1345
+ * Describes a file modification with before/after state and diff metadata.
1346
+ *
1347
+ * Supports creates (only `after`), deletes (only `before`), renames/moves
1348
+ * (different `uri` in `before` and `after`), and edits (same `uri`, different content).
1349
+ *
1350
+ * @category Tool Result Content
1351
+ */
1352
+ export interface FileEdit {
1353
+ /** The file state before the edit. Absent for file creations or for in-place file edits. */
1354
+ before?: {
1355
+ /** URI of the file before the edit */
1356
+ uri: URI;
1357
+ /** Reference to the file content before the edit */
1358
+ content: ContentRef;
1359
+ };
1360
+ /** The file state after the edit. Absent for file deletions. */
1361
+ after?: {
1362
+ /** URI of the file after the edit */
1363
+ uri: URI;
1364
+ /** Reference to the file content after the edit */
1365
+ content: ContentRef;
1366
+ };
1367
+ /** Optional diff display metadata */
1368
+ diff?: {
1369
+ /** Number of items added (e.g., lines for text files, cells for notebooks) */
1370
+ added?: number;
1371
+ /** Number of items removed (e.g., lines for text files, cells for notebooks) */
1372
+ removed?: number;
1373
+ };
1374
+ }
1375
+ /**
1376
+ * Describes a file modification performed by a tool.
1377
+ *
1378
+ * @category Tool Result Content
1379
+ */
1380
+ export interface ToolResultFileEditContent extends FileEdit {
1381
+ type: ToolResultContentType.FileEdit;
1382
+ }
1383
+ /**
1384
+ * A reference to a terminal whose output is relevant to this tool result.
1385
+ *
1386
+ * Clients can subscribe to the terminal's URI to stream its output in real
1387
+ * time, providing live feedback while a tool is executing.
1388
+ *
1389
+ * @category Tool Result Content
1390
+ */
1391
+ export interface ToolResultTerminalContent {
1392
+ type: ToolResultContentType.Terminal;
1393
+ /** Terminal URI (subscribable for full terminal state) */
1394
+ resource: URI;
1395
+ /** Display title for the terminal content */
1396
+ title: string;
1397
+ }
1398
+ /**
1399
+ * A reference to a subagent session spawned by a tool.
1400
+ *
1401
+ * Clients can subscribe to the subagent's session URI to stream its
1402
+ * progress in real time, including inner tool calls and responses.
1403
+ *
1404
+ * @category Tool Result Content
1405
+ */
1406
+ export interface ToolResultSubagentContent {
1407
+ type: ToolResultContentType.Subagent;
1408
+ /** Subagent session URI (subscribable for full session state) */
1409
+ resource: URI;
1410
+ /** Display title for the subagent */
1411
+ title: string;
1412
+ /** Internal agent name */
1413
+ agentName?: string;
1414
+ /** Human-readable description of the subagent's task */
1415
+ description?: string;
1416
+ }
1417
+ /**
1418
+ * Content block in a tool result.
1419
+ *
1420
+ * Mirrors the content blocks in MCP `CallToolResult.content`, plus
1421
+ * `ToolResultResourceContent` for lazy-loading large results,
1422
+ * `ToolResultFileEditContent` for file edit diffs,
1423
+ * `ToolResultTerminalContent` for live terminal output, and
1424
+ * `ToolResultSubagentContent` for subagent sessions (AHP extensions).
1425
+ *
1426
+ * @category Tool Result Content
1427
+ */
1428
+ export type ToolResultContent = ToolResultTextContent | ToolResultEmbeddedResourceContent | ToolResultResourceContent | ToolResultFileEditContent | ToolResultTerminalContent | ToolResultSubagentContent;
1429
+ /**
1430
+ * A reference to an [Open Plugins](https://open-plugins.com/) plugin.
1431
+ *
1432
+ * This is intentionally thin — AHP specifies plugin identity and metadata
1433
+ * but not implementation details, which are defined by the Open Plugins spec.
1434
+ *
1435
+ * @category Customization Types
1436
+ */
1437
+ export interface CustomizationRef {
1438
+ /** Plugin URI (e.g. an HTTPS URL or marketplace identifier) */
1439
+ uri: URI;
1440
+ /** Human-readable name */
1441
+ displayName: string;
1442
+ /** Description of what the plugin provides */
1443
+ description?: string;
1444
+ /** Icons for the plugin */
1445
+ icons?: Icon[];
1446
+ /**
1447
+ * Opaque version token for this customization.
1448
+ *
1449
+ * Clients SHOULD include a nonce with every customization they provide.
1450
+ * Consumers can compare nonces to detect whether a customization has
1451
+ * changed since it was last seen, avoiding redundant reloads or copies.
1452
+ */
1453
+ nonce?: string;
1454
+ }
1455
+ /**
1456
+ * Loading status for a server-managed customization.
1457
+ *
1458
+ * @category Customization Types
1459
+ */
1460
+ export declare enum CustomizationStatus {
1461
+ /** Plugin is being loaded */
1462
+ Loading = "loading",
1463
+ /** Plugin is fully operational */
1464
+ Loaded = "loaded",
1465
+ /** Plugin partially loaded but has warnings */
1466
+ Degraded = "degraded",
1467
+ /** Plugin was unable to load */
1468
+ Error = "error"
1469
+ }
1470
+ /**
1471
+ * A customization active in a session.
1472
+ *
1473
+ * @category Customization Types
1474
+ */
1475
+ export interface SessionCustomization {
1476
+ /** The plugin this customization refers to */
1477
+ customization: CustomizationRef;
1478
+ /** Whether this customization is currently enabled */
1479
+ enabled: boolean;
1480
+ /**
1481
+ * The `clientId` of the client that contributed this customization.
1482
+ * Absent for server-provided customizations.
1483
+ */
1484
+ clientId?: string;
1485
+ /** Server-reported loading status */
1486
+ status?: CustomizationStatus;
1487
+ /**
1488
+ * Human-readable status detail (e.g. error message or degradation warning).
1489
+ */
1490
+ statusMessage?: string;
1491
+ }
1492
+ /**
1493
+ * Lightweight terminal metadata exposed on the root state.
1494
+ *
1495
+ * @category Terminal Types
1496
+ */
1497
+ export interface TerminalInfo {
1498
+ /** Terminal URI (subscribable for full terminal state) */
1499
+ resource: URI;
1500
+ /** Human-readable terminal title */
1501
+ title: string;
1502
+ /** Who currently holds this terminal */
1503
+ claim: TerminalClaim;
1504
+ /** Process exit code, if the terminal process has exited */
1505
+ exitCode?: number;
1506
+ }
1507
+ /**
1508
+ * Discriminant for terminal claim kinds.
1509
+ *
1510
+ * @category Terminal Types
1511
+ */
1512
+ export declare enum TerminalClaimKind {
1513
+ Client = "client",
1514
+ Session = "session"
1515
+ }
1516
+ /**
1517
+ * A terminal claimed by a connected client.
1518
+ *
1519
+ * @category Terminal Types
1520
+ */
1521
+ export interface TerminalClientClaim {
1522
+ /** Discriminant */
1523
+ kind: TerminalClaimKind.Client;
1524
+ /** The `clientId` of the claiming client */
1525
+ clientId: string;
1526
+ }
1527
+ /**
1528
+ * A terminal claimed by a session, optionally scoped to a specific turn or tool call.
1529
+ *
1530
+ * @category Terminal Types
1531
+ */
1532
+ export interface TerminalSessionClaim {
1533
+ /** Discriminant */
1534
+ kind: TerminalClaimKind.Session;
1535
+ /** Session URI that claimed the terminal */
1536
+ session: URI;
1537
+ /** Optional turn identifier within the session */
1538
+ turnId?: string;
1539
+ /** Optional tool call identifier within the turn */
1540
+ toolCallId?: string;
1541
+ }
1542
+ /**
1543
+ * Describes who currently holds a terminal. A terminal may be claimed by
1544
+ * either a connected client or a session (e.g. during a tool call).
1545
+ *
1546
+ * @category Terminal Types
1547
+ */
1548
+ export type TerminalClaim = TerminalClientClaim | TerminalSessionClaim;
1549
+ /**
1550
+ * Full state for a single terminal, loaded when a client subscribes to the terminal's URI.
1551
+ *
1552
+ * @category Terminal Types
1553
+ */
1554
+ export interface TerminalState {
1555
+ /** Human-readable terminal title */
1556
+ title: string;
1557
+ /** Current working directory of the terminal process */
1558
+ cwd?: URI;
1559
+ /** Terminal width in columns */
1560
+ cols?: number;
1561
+ /** Terminal height in rows */
1562
+ rows?: number;
1563
+ /**
1564
+ * Typed content parts, replacing the flat `content: string`.
1565
+ *
1566
+ * Naive consumers that only need the raw VT stream can reconstruct it with:
1567
+ * `content.map(p => p.type === 'command' ? p.output : p.value).join('')`
1568
+ *
1569
+ * Consumers that need command boundaries can filter by part type.
1570
+ */
1571
+ content: TerminalContentPart[];
1572
+ /** Process exit code, set when the terminal process exits */
1573
+ exitCode?: number;
1574
+ /** Who currently holds this terminal */
1575
+ claim: TerminalClaim;
1576
+ /**
1577
+ * Whether this terminal emits `terminal/commandExecuted` and
1578
+ * `terminal/commandFinished` actions and populates `command`-typed parts.
1579
+ *
1580
+ * Clients MUST check this flag before relying on command detection.
1581
+ * Do NOT use the presence of a `command` part as a feature flag — parts
1582
+ * are absent in the normal idle state.
1583
+ */
1584
+ supportsCommandDetection?: boolean;
1585
+ }
1586
+ /**
1587
+ * A content part within terminal output.
1588
+ *
1589
+ * @category Terminal Types
1590
+ */
1591
+ export type TerminalContentPart = TerminalUnclassifiedPart | TerminalCommandPart;
1592
+ /**
1593
+ * Unstructured terminal output — content before, between, or after commands,
1594
+ * or from terminals that do not support command detection.
1595
+ *
1596
+ * @category Terminal Types
1597
+ */
1598
+ export interface TerminalUnclassifiedPart {
1599
+ type: "unclassified";
1600
+ /** Accumulated VT output. Appended to by `terminal/data` when no command is executing. */
1601
+ value: string;
1602
+ }
1603
+ /**
1604
+ * A single command: its command line and the output it produced.
1605
+ *
1606
+ * While `isComplete` is false the command is still executing; `output` grows
1607
+ * as `terminal/data` actions arrive. At `terminal/commandFinished` the part
1608
+ * is mutated in-place with `isComplete: true` and the completion metadata.
1609
+ *
1610
+ * @category Terminal Types
1611
+ */
1612
+ export interface TerminalCommandPart {
1613
+ type: "command";
1614
+ /**
1615
+ * Stable id matching the `commandId` on the corresponding
1616
+ * `terminal/commandExecuted` and `terminal/commandFinished` actions.
1617
+ */
1618
+ commandId: string;
1619
+ /** The command line submitted to the shell. */
1620
+ commandLine: string;
1621
+ /**
1622
+ * Accumulated VT output. Appended to by `terminal/data` while `isComplete`
1623
+ * is false. Shell integration escape sequences are stripped by the server.
1624
+ */
1625
+ output: string;
1626
+ /** Unix timestamp (ms) when execution started, as reported by the server. */
1627
+ timestamp: number;
1628
+ /** Whether the command has finished. */
1629
+ isComplete: boolean;
1630
+ /** Shell exit code. Set at completion. `undefined` if unknown. */
1631
+ exitCode?: number;
1632
+ /** Wall-clock duration in milliseconds. Set at completion. */
1633
+ durationMs?: number;
1634
+ }
1635
+ /**
1636
+ * @category Common Types
1637
+ */
1638
+ export interface UsageInfo {
1639
+ /** Input tokens consumed */
1640
+ inputTokens?: number;
1641
+ /** Output tokens generated */
1642
+ outputTokens?: number;
1643
+ /** Model used */
1644
+ model?: string;
1645
+ /** Tokens read from cache */
1646
+ cacheReadTokens?: number;
1647
+ }
1648
+ /**
1649
+ * @category Common Types
1650
+ */
1651
+ export interface ErrorInfo {
1652
+ /** Error type identifier */
1653
+ errorType: string;
1654
+ /** Human-readable error message */
1655
+ message: string;
1656
+ /** Stack trace */
1657
+ stack?: string;
1658
+ }
1659
+ /**
1660
+ * A point-in-time snapshot of a subscribed resource's state, returned by
1661
+ * `initialize`, `reconnect`, and `subscribe`.
1662
+ *
1663
+ * @category Common Types
1664
+ */
1665
+ export interface Snapshot {
1666
+ /** The subscribed resource URI (e.g. `agenthost:/root` or `copilot:/<uuid>`) */
1667
+ resource: URI;
1668
+ /** The current state of the resource */
1669
+ state: RootState | SessionState | TerminalState;
1670
+ /** The `serverSeq` at which this snapshot was taken. Subsequent actions will have `serverSeq > fromSeq`. */
1671
+ fromSeq: number;
1672
+ }
1673
+ export {};