@codingame/monaco-vscode-katex-common 25.1.2 → 26.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +23 -2
  3. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +64 -27
  4. package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +3 -1
  5. package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +31 -28
  6. package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +2 -0
  7. package/vscode/src/vs/platform/actions/browser/buttonbar.js +71 -50
  8. package/vscode/src/vs/platform/editor/browser/editor.js +17 -7
  9. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +112 -129
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +10 -1
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +110 -85
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +5 -5
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +21 -6
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +308 -216
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +153 -148
  16. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.d.ts +27 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +247 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +71 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +347 -0
  20. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +44 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +287 -0
  22. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +20 -0
  23. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +89 -0
  24. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +188 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +677 -0
  26. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentSessionHoverWidget.css +98 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +263 -0
  28. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +34 -25
  29. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +19 -14
  30. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +762 -359
  31. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +22 -1
  32. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +188 -99
  33. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +9 -3
  34. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +166 -113
  35. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +12 -5
  36. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +279 -213
  37. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
  38. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
  39. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +28 -0
  40. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +382 -0
  41. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
  42. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +24 -7
  46. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +128 -52
  47. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +153 -0
  48. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +1218 -0
  49. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css +14 -0
  50. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +39 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +193 -0
  52. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +2 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +93 -89
  54. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.js +5 -2
  55. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +42 -47
  56. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +58 -56
  57. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +18 -14
  58. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +17 -15
  59. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +6 -2
  60. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +132 -68
  61. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +0 -2
  62. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +68 -47
  63. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +14 -13
  64. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +4 -4
  65. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +36 -24
  66. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +18 -0
  67. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +32 -0
  68. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.d.ts +7 -2
  69. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +15 -4
  70. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +22 -14
  72. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +0 -2
  73. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +34 -27
  74. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -5
  75. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +198 -135
  76. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +2 -0
  77. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +38 -10
  78. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +29 -27
  79. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +0 -2
  80. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.js +41 -36
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +0 -2
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +23 -18
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.js +13 -13
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +0 -3
  85. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +20 -14
  86. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +11 -1
  87. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +291 -152
  88. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +2 -3
  89. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +227 -162
  90. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownDecorationsRenderer.js +68 -72
  91. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +2 -4
  92. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +76 -75
  93. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +2 -5
  94. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +96 -76
  95. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +4 -1
  96. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +74 -38
  97. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +0 -2
  98. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -25
  99. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +107 -0
  100. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +814 -0
  101. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +0 -2
  102. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +34 -29
  103. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +8 -10
  104. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +236 -197
  105. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +123 -0
  106. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +492 -0
  107. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +75 -47
  108. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +2 -4
  109. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js +31 -20
  110. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +0 -3
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +42 -36
  112. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +55 -7
  113. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +714 -148
  114. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +7 -0
  115. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +21 -0
  116. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +2 -7
  117. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +143 -153
  118. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +14 -5
  119. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +79 -61
  120. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +10 -4
  121. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +209 -77
  122. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +9 -7
  123. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +71 -54
  124. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +18 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +83 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +4 -4
  127. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +248 -190
  128. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +1 -14
  129. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +23 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPullRequestContent.css +5 -41
  131. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +493 -0
  132. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +63 -0
  133. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +9 -1
  134. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +121 -5
  135. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +37 -0
  136. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +51 -45
  137. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +46 -42
  138. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +4 -2
  139. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +99 -67
  140. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +112 -0
  141. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +634 -0
  142. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +49 -0
  143. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +132 -0
  144. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.js +15 -9
  145. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +196 -149
  146. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +17 -1
  147. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +577 -193
  148. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +119 -86
  149. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +10 -2
  150. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +165 -36
  151. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.d.ts +0 -2
  152. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.js +5 -8
  153. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +5 -3
  154. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +75 -65
  155. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +30 -28
  156. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -5
  157. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +102 -106
  158. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +44 -20
  159. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +19 -0
  160. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +67 -0
  161. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +57 -0
  162. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +69 -0
  163. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +122 -82
  164. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +39 -12
  165. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +1110 -597
  166. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +291 -0
  167. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +485 -0
  168. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.js +38 -28
  169. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +9 -20
  170. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +650 -689
  171. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +21 -18
  172. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +102 -36
  173. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +1253 -790
  174. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.d.ts +0 -7
  175. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.js +11 -11
  176. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +34 -0
  177. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +55 -0
  178. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.d.ts +6 -2
  179. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.js +51 -35
  180. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +22 -0
  181. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +102 -0
  182. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +16 -4
  183. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +192 -44
  184. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +11 -12
  185. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +99 -66
  186. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +47 -0
  187. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +188 -0
  188. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.d.ts +20 -0
  189. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +115 -0
  190. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +129 -167
  191. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +16 -3
  192. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +37 -0
  193. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +143 -0
  194. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +56 -0
  195. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +206 -0
  196. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +152 -0
  197. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +67 -0
  198. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +22 -0
  199. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +170 -0
  200. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +1 -0
  201. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +80 -19
  202. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.js +20 -28
  203. package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +2 -1
  204. package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +22 -19
  205. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +15 -0
  206. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +122 -0
  207. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +19 -104
  208. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +316 -1040
  209. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +28 -0
  210. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +162 -0
  211. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +21 -0
  212. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +98 -0
  213. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +68 -0
  214. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +416 -0
  215. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +1 -6
  216. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +194 -215
  217. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +0 -1
  218. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +74 -104
  219. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +45 -91
  220. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +22 -0
  221. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +98 -0
  222. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +5 -2
  223. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +96 -68
  224. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.d.ts +7 -0
  225. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +11 -0
  226. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +20 -0
  227. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +150 -0
  228. package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.js +141 -147
  229. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.d.ts +64 -0
  230. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.js +200 -0
  231. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +548 -0
  232. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.js +23 -0
  233. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.d.ts +22 -0
  234. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +338 -0
  235. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.d.ts +18 -0
  236. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +58 -0
  237. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.d.ts +75 -0
  238. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +364 -0
  239. package/vscode/src/vs/workbench/contrib/replNotebook/browser/interactiveEditor.css +21 -0
  240. package/vscode/src/vs/workbench/contrib/replNotebook/browser/media/interactive.css +36 -0
  241. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +110 -0
  242. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +692 -0
  243. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +40 -0
  244. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +158 -0
  245. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +80 -21
  246. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +440 -82
  247. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.d.ts +0 -34
  248. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.js +0 -139
  249. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +0 -10
  250. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +0 -1081
  251. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +0 -199
  252. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +0 -482
  253. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -28
  254. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -37
  255. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +0 -94
  256. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +0 -495
  257. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +0 -72
  258. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +0 -454
  259. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.d.ts +0 -13
  260. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +0 -66
  261. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +0 -41
  262. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +0 -372
  263. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +0 -4
  264. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +0 -58
  265. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +0 -26
  266. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -594
  267. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +0 -8
  268. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -55
  269. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +0 -273
  270. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1746
  271. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +0 -50
  272. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -269
  273. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +0 -258
  274. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -806
  275. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +0 -41
  276. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -116
  277. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +0 -17
  278. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -62
  279. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +0 -27
  280. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -40
  281. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +0 -23
  282. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +0 -295
  283. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +0 -51
  284. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +0 -241
  285. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +0 -24
  286. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +0 -146
  287. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +0 -28
  288. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +0 -90
  289. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +0 -10
  290. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +0 -41
  291. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +0 -21
  292. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +0 -42
  293. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +0 -25
  294. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +0 -77
  295. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +0 -469
  296. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +0 -149
  297. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -823
  298. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +0 -180
  299. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -29
  300. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +0 -102
  301. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -567
  302. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +0 -30
  303. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -189
  304. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +0 -75
  305. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -439
  306. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +0 -57
  307. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +0 -263
  308. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +0 -22
  309. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +0 -48
  310. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +0 -13
  311. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -39
  312. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +0 -19
  313. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -89
  314. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +0 -26
  315. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +0 -92
  316. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +0 -33
  317. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -108
@@ -0,0 +1,548 @@
1
+ import { MCP } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/modelContextProtocol";
2
+ type CallToolResult = MCP.CallToolResult;
3
+ type ContentBlock = MCP.ContentBlock;
4
+ type Implementation = MCP.Implementation;
5
+ type RequestId = MCP.RequestId;
6
+ type Tool = MCP.Tool;
7
+ export declare namespace McpApps {
8
+ type AppRequest = MCP.CallToolRequest | MCP.ReadResourceRequest | MCP.PingRequest | (McpUiOpenLinkRequest & MCP.JSONRPCRequest) | (McpUiUpdateModelContextRequest & MCP.JSONRPCRequest) | (McpUiMessageRequest & MCP.JSONRPCRequest) | (McpUiRequestDisplayModeRequest & MCP.JSONRPCRequest) | (McpApps.McpUiInitializeRequest & MCP.JSONRPCRequest);
9
+ type AppNotification = McpUiInitializedNotification | McpUiSizeChangedNotification | MCP.LoggingMessageNotification | CustomSandboxWheelNotification;
10
+ type AppMessage = AppRequest | AppNotification;
11
+ type HostResult = MCP.CallToolResult | MCP.ReadResourceResult | MCP.EmptyResult | McpApps.McpUiInitializeResult | McpUiMessageResult | McpUiOpenLinkResult | McpUiRequestDisplayModeResult;
12
+ type HostNotification = McpUiHostContextChangedNotification | McpUiResourceTeardownRequest | McpUiToolInputNotification | McpUiToolInputPartialNotification | McpUiToolResultNotification | McpUiToolCancelledNotification | McpUiSizeChangedNotification;
13
+ type HostMessage = HostResult | HostNotification;
14
+ /** Custom notification used for bubbling up sandbox wheel events. */
15
+ interface CustomSandboxWheelNotification {
16
+ method: "ui/notifications/sandbox-wheel";
17
+ params: {
18
+ deltaMode: number;
19
+ deltaX: number;
20
+ deltaY: number;
21
+ deltaZ: number;
22
+ };
23
+ }
24
+ }
25
+ /**
26
+ * Schema updated from the Model Context Protocol Apps repository at
27
+ * https://github.com/modelcontextprotocol/ext-apps/blob/main/src/spec.types.ts
28
+ *
29
+ * ⚠️ Do not edit within `namespace` manually except to update schema versions ⚠️
30
+ */
31
+ export declare namespace McpApps {
32
+ /**
33
+ * Current protocol version supported by this SDK.
34
+ *
35
+ * The SDK automatically handles version negotiation during initialization.
36
+ * Apps and hosts don't need to manage protocol versions manually.
37
+ */
38
+ const LATEST_PROTOCOL_VERSION = "2026-01-26";
39
+ /**
40
+ * @description Color theme preference for the host environment.
41
+ */
42
+ type McpUiTheme = "light" | "dark";
43
+ /**
44
+ * @description Display mode for UI presentation.
45
+ */
46
+ type McpUiDisplayMode = "inline" | "fullscreen" | "pip";
47
+ /**
48
+ * @description CSS variable keys available to MCP apps for theming.
49
+ */
50
+ type McpUiStyleVariableKey = "--color-background-primary" | "--color-background-secondary" | "--color-background-tertiary" | "--color-background-inverse" | "--color-background-ghost" | "--color-background-info" | "--color-background-danger" | "--color-background-success" | "--color-background-warning" | "--color-background-disabled" | "--color-text-primary" | "--color-text-secondary" | "--color-text-tertiary" | "--color-text-inverse" | "--color-text-ghost" | "--color-text-info" | "--color-text-danger" | "--color-text-success" | "--color-text-warning" | "--color-text-disabled" | "--color-text-ghost" | "--color-border-primary" | "--color-border-secondary" | "--color-border-tertiary" | "--color-border-inverse" | "--color-border-ghost" | "--color-border-info" | "--color-border-danger" | "--color-border-success" | "--color-border-warning" | "--color-border-disabled" | "--color-ring-primary" | "--color-ring-secondary" | "--color-ring-inverse" | "--color-ring-info" | "--color-ring-danger" | "--color-ring-success" | "--color-ring-warning" | "--font-sans" | "--font-mono" | "--font-weight-normal" | "--font-weight-medium" | "--font-weight-semibold" | "--font-weight-bold" | "--font-text-xs-size" | "--font-text-sm-size" | "--font-text-md-size" | "--font-text-lg-size" | "--font-heading-xs-size" | "--font-heading-sm-size" | "--font-heading-md-size" | "--font-heading-lg-size" | "--font-heading-xl-size" | "--font-heading-2xl-size" | "--font-heading-3xl-size" | "--font-text-xs-line-height" | "--font-text-sm-line-height" | "--font-text-md-line-height" | "--font-text-lg-line-height" | "--font-heading-xs-line-height" | "--font-heading-sm-line-height" | "--font-heading-md-line-height" | "--font-heading-lg-line-height" | "--font-heading-xl-line-height" | "--font-heading-2xl-line-height" | "--font-heading-3xl-line-height" | "--border-radius-xs" | "--border-radius-sm" | "--border-radius-md" | "--border-radius-lg" | "--border-radius-xl" | "--border-radius-full" | "--border-width-regular" | "--shadow-hairline" | "--shadow-sm" | "--shadow-md" | "--shadow-lg";
51
+ /**
52
+ * @description Style variables for theming MCP apps.
53
+ *
54
+ * Individual style keys are optional - hosts may provide any subset of these values.
55
+ * Values are strings containing CSS values (colors, sizes, font stacks, etc.).
56
+ *
57
+ * Note: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`
58
+ * for compatibility with Zod schema generation. Both are functionally equivalent for validation.
59
+ */
60
+ type McpUiStyles = Record<McpUiStyleVariableKey, string | undefined>;
61
+ /**
62
+ * @description Request to open an external URL in the host's default browser.
63
+ * @see {@link app.App.sendOpenLink} for the method that sends this request
64
+ */
65
+ interface McpUiOpenLinkRequest {
66
+ method: "ui/open-link";
67
+ params: {
68
+ /** @description URL to open in the host's browser */
69
+ url: string;
70
+ };
71
+ }
72
+ /**
73
+ * @description Result from opening a URL.
74
+ * @see {@link McpUiOpenLinkRequest}
75
+ */
76
+ interface McpUiOpenLinkResult {
77
+ /** @description True if the host failed to open the URL (e.g., due to security policy). */
78
+ isError?: boolean;
79
+ /**
80
+ * Index signature required for MCP SDK `Protocol` class compatibility.
81
+ * Note: The schema intentionally omits this to enforce strict validation.
82
+ */
83
+ [key: string]: unknown;
84
+ }
85
+ /**
86
+ * @description Request to send a message to the host's chat interface.
87
+ * @see {@link app.App.sendMessage} for the method that sends this request
88
+ */
89
+ interface McpUiMessageRequest {
90
+ method: "ui/message";
91
+ params: {
92
+ /** @description Message role, currently only "user" is supported. */
93
+ role: "user";
94
+ /** @description Message content blocks (text, image, etc.). */
95
+ content: ContentBlock[];
96
+ };
97
+ }
98
+ /**
99
+ * @description Result from sending a message.
100
+ * @see {@link McpUiMessageRequest}
101
+ */
102
+ interface McpUiMessageResult {
103
+ /** @description True if the host rejected or failed to deliver the message. */
104
+ isError?: boolean;
105
+ /**
106
+ * Index signature required for MCP SDK `Protocol` class compatibility.
107
+ * Note: The schema intentionally omits this to enforce strict validation.
108
+ */
109
+ [key: string]: unknown;
110
+ }
111
+ /**
112
+ * @description Notification that the sandbox proxy iframe is ready to receive content.
113
+ * @internal
114
+ * @see https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx#sandbox-proxy
115
+ */
116
+ interface McpUiSandboxProxyReadyNotification {
117
+ method: "ui/notifications/sandbox-proxy-ready";
118
+ params: {};
119
+ }
120
+ /**
121
+ * @description Notification containing HTML resource for the sandbox proxy to load.
122
+ * @internal
123
+ * @see https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx#sandbox-proxy
124
+ */
125
+ interface McpUiSandboxResourceReadyNotification {
126
+ method: "ui/notifications/sandbox-resource-ready";
127
+ params: {
128
+ /** @description HTML content to load into the inner iframe. */
129
+ html: string;
130
+ /** @description Optional override for the inner iframe's sandbox attribute. */
131
+ sandbox?: string;
132
+ /** @description CSP configuration from resource metadata. */
133
+ csp?: McpUiResourceCsp;
134
+ /** @description Sandbox permissions from resource metadata. */
135
+ permissions?: McpUiResourcePermissions;
136
+ };
137
+ }
138
+ /**
139
+ * @description Notification of UI size changes (bidirectional: Guest <-> Host).
140
+ * @see {@link app.App.sendSizeChanged} for the method to send this from Guest UI
141
+ */
142
+ interface McpUiSizeChangedNotification {
143
+ method: "ui/notifications/size-changed";
144
+ params: {
145
+ /** @description New width in pixels. */
146
+ width?: number;
147
+ /** @description New height in pixels. */
148
+ height?: number;
149
+ };
150
+ }
151
+ /**
152
+ * @description Notification containing complete tool arguments (Host -> Guest UI).
153
+ */
154
+ interface McpUiToolInputNotification {
155
+ method: "ui/notifications/tool-input";
156
+ params: {
157
+ /** @description Complete tool call arguments as key-value pairs. */
158
+ arguments?: Record<string, unknown>;
159
+ };
160
+ }
161
+ /**
162
+ * @description Notification containing partial/streaming tool arguments (Host -> Guest UI).
163
+ */
164
+ interface McpUiToolInputPartialNotification {
165
+ method: "ui/notifications/tool-input-partial";
166
+ params: {
167
+ /** @description Partial tool call arguments (incomplete, may change). */
168
+ arguments?: Record<string, unknown>;
169
+ };
170
+ }
171
+ /**
172
+ * @description Notification containing tool execution result (Host -> Guest UI).
173
+ */
174
+ interface McpUiToolResultNotification {
175
+ method: "ui/notifications/tool-result";
176
+ /** @description Standard MCP tool execution result. */
177
+ params: CallToolResult;
178
+ }
179
+ /**
180
+ * @description Notification that tool execution was cancelled (Host -> Guest UI).
181
+ * Host MUST send this if tool execution was cancelled for any reason (user action,
182
+ * sampling error, classifier intervention, etc.).
183
+ */
184
+ interface McpUiToolCancelledNotification {
185
+ method: "ui/notifications/tool-cancelled";
186
+ params: {
187
+ /** @description Optional reason for the cancellation (e.g., "user action", "timeout"). */
188
+ reason?: string;
189
+ };
190
+ }
191
+ /**
192
+ * @description CSS blocks that can be injected by apps.
193
+ */
194
+ interface McpUiHostCss {
195
+ /** @description CSS for font loading (@font-face rules or @import statements). Apps must apply using applyHostFonts(). */
196
+ fonts?: string;
197
+ }
198
+ /**
199
+ * @description Style configuration for theming MCP apps.
200
+ */
201
+ interface McpUiHostStyles {
202
+ /** @description CSS variables for theming the app. */
203
+ variables?: McpUiStyles;
204
+ /** @description CSS blocks that apps can inject. */
205
+ css?: McpUiHostCss;
206
+ }
207
+ /**
208
+ * @description Rich context about the host environment provided to Guest UIs.
209
+ */
210
+ interface McpUiHostContext {
211
+ /** @description Allow additional properties for forward compatibility. */
212
+ [key: string]: unknown;
213
+ /** @description Metadata of the tool call that instantiated this App. */
214
+ toolInfo?: {
215
+ /** @description JSON-RPC id of the tools/call request. */
216
+ id?: RequestId;
217
+ /** @description Tool definition including name, inputSchema, etc. */
218
+ tool: Tool;
219
+ };
220
+ /** @description Current color theme preference. */
221
+ theme?: McpUiTheme;
222
+ /** @description Style configuration for theming the app. */
223
+ styles?: McpUiHostStyles;
224
+ /** @description How the UI is currently displayed. */
225
+ displayMode?: McpUiDisplayMode;
226
+ /** @description Display modes the host supports. */
227
+ availableDisplayModes?: string[];
228
+ /**
229
+ * @description Container dimensions. Represents the dimensions of the iframe or other
230
+ * container holding the app. Specify either width or maxWidth, and either height or maxHeight.
231
+ */
232
+ containerDimensions?: ({
233
+ /** @description Fixed container height in pixels. */
234
+ height: number;
235
+ } | {
236
+ /** @description Maximum container height in pixels. */
237
+ maxHeight?: number | undefined;
238
+ }) & ({
239
+ /** @description Fixed container width in pixels. */
240
+ width: number;
241
+ } | {
242
+ /** @description Maximum container width in pixels. */
243
+ maxWidth?: number | undefined;
244
+ });
245
+ /** @description User's language and region preference in BCP 47 format. */
246
+ locale?: string;
247
+ /** @description User's timezone in IANA format. */
248
+ timeZone?: string;
249
+ /** @description Host application identifier. */
250
+ userAgent?: string;
251
+ /** @description Platform type for responsive design decisions. */
252
+ platform?: "web" | "desktop" | "mobile";
253
+ /** @description Device input capabilities. */
254
+ deviceCapabilities?: {
255
+ /** @description Whether the device supports touch input. */
256
+ touch?: boolean;
257
+ /** @description Whether the device supports hover interactions. */
258
+ hover?: boolean;
259
+ };
260
+ /** @description Mobile safe area boundaries in pixels. */
261
+ safeAreaInsets?: {
262
+ /** @description Top safe area inset in pixels. */
263
+ top: number;
264
+ /** @description Right safe area inset in pixels. */
265
+ right: number;
266
+ /** @description Bottom safe area inset in pixels. */
267
+ bottom: number;
268
+ /** @description Left safe area inset in pixels. */
269
+ left: number;
270
+ };
271
+ }
272
+ /**
273
+ * @description Notification that host context has changed (Host -> Guest UI).
274
+ * @see {@link McpUiHostContext} for the full context structure
275
+ */
276
+ interface McpUiHostContextChangedNotification {
277
+ method: "ui/notifications/host-context-changed";
278
+ /** @description Partial context update containing only changed fields. */
279
+ params: McpUiHostContext;
280
+ }
281
+ /**
282
+ * @description Request to update the agent's context without requiring a follow-up action (Guest UI -> Host).
283
+ *
284
+ * Unlike `notifications/message` which is for debugging/logging, this request is intended
285
+ * to update the Host's model context. Each request overwrites the previous context sent by the Guest UI.
286
+ * Unlike messages, context updates do not trigger follow-ups.
287
+ *
288
+ * The host will typically defer sending the context to the model until the next user message
289
+ * (including `ui/message`), and will only send the last update received.
290
+ *
291
+ * @see {@link app.App.updateModelContext} for the method that sends this request
292
+ */
293
+ interface McpUiUpdateModelContextRequest {
294
+ method: "ui/update-model-context";
295
+ params: {
296
+ /** @description Context content blocks (text, image, etc.). */
297
+ content?: ContentBlock[];
298
+ /** @description Structured content for machine-readable context data. */
299
+ structuredContent?: Record<string, unknown>;
300
+ };
301
+ }
302
+ /**
303
+ * @description Request for graceful shutdown of the Guest UI (Host -> Guest UI).
304
+ * @see {@link app-bridge.AppBridge.teardownResource} for the host method that sends this
305
+ */
306
+ interface McpUiResourceTeardownRequest {
307
+ method: "ui/resource-teardown";
308
+ params: {};
309
+ }
310
+ /**
311
+ * @description Result from graceful shutdown request.
312
+ * @see {@link McpUiResourceTeardownRequest}
313
+ */
314
+ interface McpUiResourceTeardownResult {
315
+ /**
316
+ * Index signature required for MCP SDK `Protocol` class compatibility.
317
+ */
318
+ [key: string]: unknown;
319
+ }
320
+ interface McpUiSupportedContentBlockModalities {
321
+ /** @description Host supports text content blocks. */
322
+ text?: {};
323
+ /** @description Host supports image content blocks. */
324
+ image?: {};
325
+ /** @description Host supports audio content blocks. */
326
+ audio?: {};
327
+ /** @description Host supports resource content blocks. */
328
+ resource?: {};
329
+ /** @description Host supports resource link content blocks. */
330
+ resourceLink?: {};
331
+ /** @description Host supports structured content. */
332
+ structuredContent?: {};
333
+ }
334
+ /**
335
+ * @description Capabilities supported by the host application.
336
+ * @see {@link McpUiInitializeResult} for the initialization result that includes these capabilities
337
+ */
338
+ interface McpUiHostCapabilities {
339
+ /** @description Experimental features (structure TBD). */
340
+ experimental?: {};
341
+ /** @description Host supports opening external URLs. */
342
+ openLinks?: {};
343
+ /** @description Host can proxy tool calls to the MCP server. */
344
+ serverTools?: {
345
+ /** @description Host supports tools/list_changed notifications. */
346
+ listChanged?: boolean;
347
+ };
348
+ /** @description Host can proxy resource reads to the MCP server. */
349
+ serverResources?: {
350
+ /** @description Host supports resources/list_changed notifications. */
351
+ listChanged?: boolean;
352
+ };
353
+ /** @description Host accepts log messages. */
354
+ logging?: {};
355
+ /** @description Sandbox configuration applied by the host. */
356
+ sandbox?: {
357
+ /** @description Permissions granted by the host (camera, microphone, geolocation). */
358
+ permissions?: McpUiResourcePermissions;
359
+ /** @description CSP domains approved by the host. */
360
+ csp?: McpUiResourceCsp;
361
+ };
362
+ /** @description Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns. */
363
+ updateModelContext?: McpUiSupportedContentBlockModalities;
364
+ /** @description Host supports receiving content messages (ui/message) from the View. */
365
+ message?: McpUiSupportedContentBlockModalities;
366
+ }
367
+ /**
368
+ * @description Capabilities provided by the View (App).
369
+ * @see {@link McpUiInitializeRequest} for the initialization request that includes these capabilities
370
+ */
371
+ interface McpUiAppCapabilities {
372
+ /** @description Experimental features (structure TBD). */
373
+ experimental?: {};
374
+ /** @description App exposes MCP-style tools that the host can call. */
375
+ tools?: {
376
+ /** @description App supports tools/list_changed notifications. */
377
+ listChanged?: boolean;
378
+ };
379
+ /**
380
+ * @description Display modes the app supports. See Display Modes section of the spec for details.
381
+ * @example ["inline", "fullscreen"]
382
+ */
383
+ availableDisplayModes?: McpUiDisplayMode[];
384
+ }
385
+ /**
386
+ * @description Initialization request sent from Guest UI to Host.
387
+ * @see {@link app.App.connect} for the method that sends this request
388
+ */
389
+ interface McpUiInitializeRequest {
390
+ method: "ui/initialize";
391
+ params: {
392
+ /** @description App identification (name and version). */
393
+ appInfo: Implementation;
394
+ /** @description Features and capabilities this app provides. */
395
+ appCapabilities: McpUiAppCapabilities;
396
+ /** @description Protocol version this app supports. */
397
+ protocolVersion: string;
398
+ };
399
+ }
400
+ /**
401
+ * @description Initialization result returned from Host to Guest UI.
402
+ * @see {@link McpUiInitializeRequest}
403
+ */
404
+ interface McpUiInitializeResult {
405
+ /** @description Negotiated protocol version string (e.g., "2025-11-21"). */
406
+ protocolVersion: string;
407
+ /** @description Host application identification and version. */
408
+ hostInfo: Implementation;
409
+ /** @description Features and capabilities provided by the host. */
410
+ hostCapabilities: McpUiHostCapabilities;
411
+ /** @description Rich context about the host environment. */
412
+ hostContext: McpUiHostContext;
413
+ /**
414
+ * Index signature required for MCP SDK `Protocol` class compatibility.
415
+ * Note: The schema intentionally omits this to enforce strict validation.
416
+ */
417
+ [key: string]: unknown;
418
+ }
419
+ /**
420
+ * @description Notification that Guest UI has completed initialization (Guest UI -> Host).
421
+ * @see {@link app.App.connect} for the method that sends this notification
422
+ */
423
+ interface McpUiInitializedNotification {
424
+ method: "ui/notifications/initialized";
425
+ params?: {};
426
+ }
427
+ /**
428
+ * @description Content Security Policy configuration for UI resources.
429
+ */
430
+ interface McpUiResourceCsp {
431
+ /** @description Origins for network requests (fetch/XHR/WebSocket). */
432
+ connectDomains?: string[];
433
+ /** @description Origins for static resources (scripts, images, styles, fonts). */
434
+ resourceDomains?: string[];
435
+ /** @description Origins for nested iframes (frame-src directive). */
436
+ frameDomains?: string[];
437
+ /** @description Allowed base URIs for the document (base-uri directive). */
438
+ baseUriDomains?: string[];
439
+ }
440
+ /**
441
+ * @description Sandbox permissions requested by the UI resource.
442
+ * Hosts MAY honor these by setting appropriate iframe `allow` attributes.
443
+ * Apps SHOULD NOT assume permissions are granted; use JS feature detection as fallback.
444
+ */
445
+ interface McpUiResourcePermissions {
446
+ /** @description Request camera access (Permission Policy `camera` feature). */
447
+ camera?: {};
448
+ /** @description Request microphone access (Permission Policy `microphone` feature). */
449
+ microphone?: {};
450
+ /** @description Request geolocation access (Permission Policy `geolocation` feature). */
451
+ geolocation?: {};
452
+ /** @description Request clipboard write access (Permission Policy `clipboard-write` feature). */
453
+ clipboardWrite?: {};
454
+ }
455
+ /**
456
+ * @description UI Resource metadata for security and rendering configuration.
457
+ */
458
+ interface McpUiResourceMeta {
459
+ /** @description Content Security Policy configuration. */
460
+ csp?: McpUiResourceCsp;
461
+ /** @description Sandbox permissions requested by the UI. */
462
+ permissions?: McpUiResourcePermissions;
463
+ /** @description Dedicated origin for widget sandbox. */
464
+ domain?: string;
465
+ /** @description Visual boundary preference - true if UI prefers a visible border. */
466
+ prefersBorder?: boolean;
467
+ }
468
+ /**
469
+ * @description Request to change the display mode of the UI.
470
+ * The host will respond with the actual display mode that was set,
471
+ * which may differ from the requested mode if not supported.
472
+ * @see {@link app.App.requestDisplayMode} for the method that sends this request
473
+ */
474
+ interface McpUiRequestDisplayModeRequest {
475
+ method: "ui/request-display-mode";
476
+ params: {
477
+ /** @description The display mode being requested. */
478
+ mode: McpUiDisplayMode;
479
+ };
480
+ }
481
+ /**
482
+ * @description Result from requesting a display mode change.
483
+ * @see {@link McpUiRequestDisplayModeRequest}
484
+ */
485
+ interface McpUiRequestDisplayModeResult {
486
+ /** @description The display mode that was actually set. May differ from requested if not supported. */
487
+ mode: McpUiDisplayMode;
488
+ /**
489
+ * Index signature required for MCP SDK `Protocol` class compatibility.
490
+ * Note: The schema intentionally omits this to enforce strict validation.
491
+ */
492
+ [key: string]: unknown;
493
+ }
494
+ /**
495
+ * @description Tool visibility scope - who can access the tool.
496
+ */
497
+ type McpUiToolVisibility = "model" | "app";
498
+ /**
499
+ * @description UI-related metadata for tools.
500
+ */
501
+ interface McpUiToolMeta {
502
+ /**
503
+ * URI of the UI resource to display for this tool, if any.
504
+ * This is converted to `_meta["ui/resourceUri"]`.
505
+ *
506
+ * @example "ui://weather/widget.html"
507
+ */
508
+ resourceUri?: string;
509
+ /**
510
+ * @description Who can access this tool. Default: ["model", "app"]
511
+ * - "model": Tool visible to and callable by the agent
512
+ * - "app": Tool callable by the app from this server only
513
+ */
514
+ visibility?: McpUiToolVisibility[];
515
+ }
516
+ /**
517
+ * Method string constants for MCP Apps protocol messages.
518
+ *
519
+ * These constants provide a type-safe way to check message methods without
520
+ * accessing internal Zod schema properties. External libraries should use
521
+ * these constants instead of accessing `schema.shape.method._def.values[0]`.
522
+ *
523
+ * @example
524
+ * ```typescript
525
+ * import { SANDBOX_PROXY_READY_METHOD } from '@modelcontextprotocol/ext-apps';
526
+ *
527
+ * if (event.data.method === SANDBOX_PROXY_READY_METHOD) {
528
+ * // Handle sandbox proxy ready notification
529
+ * }
530
+ * ```
531
+ */
532
+ const OPEN_LINK_METHOD: McpUiOpenLinkRequest["method"];
533
+ const MESSAGE_METHOD: McpUiMessageRequest["method"];
534
+ const SANDBOX_PROXY_READY_METHOD: McpUiSandboxProxyReadyNotification["method"];
535
+ const SANDBOX_RESOURCE_READY_METHOD: McpUiSandboxResourceReadyNotification["method"];
536
+ const SIZE_CHANGED_METHOD: McpUiSizeChangedNotification["method"];
537
+ const TOOL_INPUT_METHOD: McpUiToolInputNotification["method"];
538
+ const TOOL_INPUT_PARTIAL_METHOD: McpUiToolInputPartialNotification["method"];
539
+ const TOOL_RESULT_METHOD: McpUiToolResultNotification["method"];
540
+ const TOOL_CANCELLED_METHOD: McpUiToolCancelledNotification["method"];
541
+ const HOST_CONTEXT_CHANGED_METHOD: McpUiHostContextChangedNotification["method"];
542
+ const RESOURCE_TEARDOWN_METHOD: McpUiResourceTeardownRequest["method"];
543
+ const INITIALIZE_METHOD: McpUiInitializeRequest["method"];
544
+ const INITIALIZED_METHOD: McpUiInitializedNotification["method"];
545
+ const REQUEST_DISPLAY_MODE_METHOD: McpUiRequestDisplayModeRequest["method"];
546
+ const UPDATE_MODEL_CONTEXT_METHOD: McpUiUpdateModelContextRequest["method"];
547
+ }
548
+ export {};
@@ -0,0 +1,23 @@
1
+
2
+
3
+ var McpApps;
4
+ (function (McpApps) {
5
+ McpApps.LATEST_PROTOCOL_VERSION = "2026-01-26";
6
+ McpApps.OPEN_LINK_METHOD = "ui/open-link";
7
+ McpApps.MESSAGE_METHOD = "ui/message";
8
+ McpApps.SANDBOX_PROXY_READY_METHOD = "ui/notifications/sandbox-proxy-ready";
9
+ McpApps.SANDBOX_RESOURCE_READY_METHOD = "ui/notifications/sandbox-resource-ready";
10
+ McpApps.SIZE_CHANGED_METHOD = "ui/notifications/size-changed";
11
+ McpApps.TOOL_INPUT_METHOD = "ui/notifications/tool-input";
12
+ McpApps.TOOL_INPUT_PARTIAL_METHOD = "ui/notifications/tool-input-partial";
13
+ McpApps.TOOL_RESULT_METHOD = "ui/notifications/tool-result";
14
+ McpApps.TOOL_CANCELLED_METHOD = "ui/notifications/tool-cancelled";
15
+ McpApps.HOST_CONTEXT_CHANGED_METHOD = "ui/notifications/host-context-changed";
16
+ McpApps.RESOURCE_TEARDOWN_METHOD = "ui/resource-teardown";
17
+ McpApps.INITIALIZE_METHOD = "ui/initialize";
18
+ McpApps.INITIALIZED_METHOD = "ui/notifications/initialized";
19
+ McpApps.REQUEST_DISPLAY_MODE_METHOD = "ui/request-display-mode";
20
+ McpApps.UPDATE_MODEL_CONTEXT_METHOD = "ui/update-model-context";
21
+ })(McpApps || (McpApps = {}));
22
+
23
+ export { McpApps };
@@ -0,0 +1,22 @@
1
+ import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
+ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
3
+ import { ICellViewModel, INotebookEditor, INotebookEditorContribution, INotebookViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
4
+ export declare function formatCellDuration(duration: number, showMilliseconds?: boolean): string;
5
+ export declare class NotebookStatusBarController extends Disposable {
6
+ private readonly _notebookEditor;
7
+ private readonly _itemFactory;
8
+ private readonly _visibleCells;
9
+ private readonly _observer;
10
+ constructor(_notebookEditor: INotebookEditor, _itemFactory: (vm: INotebookViewModel, cell: ICellViewModel) => IDisposable);
11
+ private _updateEverything;
12
+ private _updateVisibleCells;
13
+ dispose(): void;
14
+ }
15
+ export declare class ExecutionStateCellStatusBarContrib extends Disposable implements INotebookEditorContribution {
16
+ static id: string;
17
+ constructor(notebookEditor: INotebookEditor, instantiationService: IInstantiationService);
18
+ }
19
+ export declare class TimerCellStatusBarContrib extends Disposable implements INotebookEditorContribution {
20
+ static id: string;
21
+ constructor(notebookEditor: INotebookEditor, instantiationService: IInstantiationService);
22
+ }