@codingame/monaco-vscode-chat-service-override 30.0.0 → 31.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 (377) hide show
  1. package/index.js +21 -3
  2. package/package.json +5 -5
  3. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +125 -0
  4. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +393 -0
  5. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +65 -0
  6. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +453 -0
  7. package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.d.ts +28 -0
  8. package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.js +81 -0
  9. package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +75 -0
  10. package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +180 -0
  11. package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +202 -51
  12. package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +182 -0
  13. package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +282 -0
  14. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +303 -32
  15. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.js +14 -0
  16. package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +1 -1
  17. package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.js +9 -0
  18. package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.d.ts +30 -0
  19. package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.js +662 -0
  20. package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +12 -5
  21. package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +9 -0
  22. package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.d.ts +17 -0
  23. package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.js +5 -0
  24. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +5 -5
  25. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.js +14 -0
  26. package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.d.ts +42 -0
  27. package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.js +7 -0
  28. package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.d.ts +118 -0
  29. package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.js +551 -0
  30. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.d.ts +22 -0
  31. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +83 -0
  32. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
  33. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +16 -16
  34. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
  35. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +59 -59
  36. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
  37. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -12
  38. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +2 -1
  39. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +17 -15
  40. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.d.ts +8 -0
  41. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +113 -9
  42. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +81 -4
  43. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
  44. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +47 -26
  45. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +15 -10
  46. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
  47. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
  48. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +14 -14
  49. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +13 -14
  50. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +15 -14
  51. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
  52. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.d.ts +5 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +58 -23
  54. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
  55. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
  56. package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.d.ts +2 -1
  57. package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +24 -22
  58. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +8 -8
  59. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +2 -2
  60. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
  61. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +3 -1
  62. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +29 -20
  63. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +16 -16
  64. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.d.ts +9 -0
  65. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.js +23 -0
  66. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +3 -3
  67. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +2 -2
  68. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +65 -55
  69. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +5 -5
  70. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
  71. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
  72. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
  73. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
  74. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +5 -5
  75. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +28 -28
  76. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
  77. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
  78. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +10 -3
  79. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +80 -15
  80. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +20 -14
  81. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +30 -15
  82. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +131 -0
  83. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +363 -0
  84. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +31 -76
  85. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +374 -764
  86. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +8 -0
  87. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +11 -1
  88. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +222 -44
  89. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +20 -11
  90. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +269 -123
  91. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
  92. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.d.ts +40 -0
  93. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.js +40 -0
  94. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +26 -0
  95. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +249 -0
  96. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +3 -0
  97. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +3 -0
  98. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +4 -3
  99. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +5 -17
  100. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +14 -1
  101. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +113 -58
  102. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +202 -68
  103. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +246 -0
  104. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +15 -1
  105. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +162 -50
  106. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +24 -0
  107. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +306 -0
  108. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +581 -257
  110. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +15 -1
  111. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +245 -26
  112. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +25 -7
  113. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +1 -1
  114. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +3 -5
  115. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
  116. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +19 -19
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +6 -6
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +103 -28
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +3 -2
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +11 -1
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +80 -29
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +20 -3
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +128 -65
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +28 -28
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +18 -0
  132. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
  134. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
  135. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +1 -0
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +11 -1
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +6 -5
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
  141. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +1 -1
  142. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +10 -27
  143. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +4 -41
  144. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +4 -310
  145. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.d.ts +0 -12
  146. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +3 -30
  147. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
  148. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +1 -0
  149. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +61 -53
  150. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatManagementEditor.css +0 -110
  151. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
  152. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +31 -31
  153. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
  154. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +46 -34
  155. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +4 -4
  156. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +17 -18
  157. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
  158. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +1 -0
  159. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +96 -82
  160. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +2 -1
  161. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +21 -14
  162. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +18 -18
  163. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.js +1 -1
  164. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +15 -8
  165. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +315 -263
  166. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +14 -14
  167. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +196 -24
  168. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +56 -17
  169. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.d.ts +2 -2
  170. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +2 -2
  171. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +8 -4
  172. package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
  173. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
  174. package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +4 -4
  175. package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
  176. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
  177. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.d.ts +18 -0
  178. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +31 -0
  179. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +26 -25
  180. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +3 -1
  181. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +48 -57
  182. package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
  183. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
  184. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +26 -26
  185. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +2 -2
  186. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
  187. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
  188. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
  189. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
  190. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
  191. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
  192. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
  193. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +11 -6
  194. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +226 -36
  195. package/vscode/src/vs/workbench/contrib/chat/browser/telemetry/chatModelCountTelemetry.d.ts +23 -0
  196. package/vscode/src/vs/workbench/contrib/chat/browser/telemetry/chatModelCountTelemetry.js +82 -0
  197. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +3 -1
  198. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +108 -56
  199. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +24 -24
  200. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +6 -6
  201. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +7 -7
  202. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  203. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +9 -9
  204. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.d.ts +3 -4
  205. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +9 -16
  206. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +21 -80
  207. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +26 -59
  208. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
  209. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +4 -3
  210. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +9 -1
  211. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +2 -1
  212. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +46 -14
  213. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
  214. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugEvents.d.ts +40 -0
  215. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugEvents.js +60 -0
  216. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +32 -5
  217. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +152 -26
  218. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +5 -9
  219. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +265 -261
  220. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +28 -2
  221. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +75 -7
  222. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +9 -1
  223. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +6 -5
  224. package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.d.ts +18 -0
  225. package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +32 -4
  226. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +10 -25
  227. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +7 -52
  228. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +58 -466
  229. package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js +3 -1
  230. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +36 -18
  231. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
  232. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
  233. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
  234. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +0 -1
  235. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +168 -182
  236. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +49 -29
  237. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +491 -462
  238. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +16 -6
  239. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +18 -12
  240. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.d.ts +24 -4
  241. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.js +145 -68
  242. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  243. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +2 -2
  244. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +4 -4
  245. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +25 -25
  246. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
  247. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +2 -4
  248. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +19 -17
  249. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.d.ts +1 -1
  250. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +3 -3
  251. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +5 -17
  252. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +77 -157
  253. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  254. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  255. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
  256. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
  257. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
  258. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  259. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +17 -17
  260. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +1 -1
  261. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +21 -21
  262. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +1 -1
  263. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +4 -1
  264. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +29 -7
  265. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +2 -2
  266. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +1 -1
  267. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +3 -3
  268. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +12 -14
  269. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +4 -4
  270. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.d.ts +5 -1
  271. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +49 -12
  272. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +4 -4
  273. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +9 -8
  274. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +2 -2
  275. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +13 -8
  276. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.d.ts +53 -0
  277. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +319 -0
  278. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +15 -15
  279. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +8 -8
  280. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +15 -15
  281. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.d.ts +1 -1
  282. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +2 -2
  283. package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.d.ts +21 -0
  284. package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.js +35 -0
  285. package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +0 -94
  286. package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +0 -16
  287. package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +0 -578
  288. package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +0 -206
  289. package/vscode/src/vs/platform/agentHost/common/state/protocol/notifications.d.ts +0 -114
  290. package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +0 -860
  291. package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +0 -27
  292. package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +0 -58
  293. package/vscode/src/vs/platform/browserElements/common/browserElements.js +0 -16
  294. package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.d.ts +0 -18
  295. package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.js +0 -13
  296. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/media/simpleBrowserOverlay.css +0 -85
  297. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.d.ts +0 -9
  298. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +0 -443
  299. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.d.ts +0 -17
  300. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +0 -132
  301. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatUsageWidget.css +0 -69
  302. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +0 -65
  303. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +0 -66
  304. package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.d.ts +0 -8
  305. package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.js +0 -158
  306. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +0 -2
  307. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +0 -41
  308. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +0 -24
  309. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +0 -26
  310. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +0 -142
  311. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +0 -45
  312. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +0 -164
  313. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +0 -50
  314. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +0 -163
  315. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +0 -27
  316. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +0 -142
  317. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +0 -29
  318. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +0 -137
  319. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +0 -40
  320. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +0 -174
  321. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +0 -3
  322. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +0 -39
  323. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +0 -32
  324. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +0 -249
  325. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +0 -41
  326. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +0 -92
  327. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +0 -40
  328. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +0 -209
  329. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.d.ts +0 -12
  330. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +0 -106
  331. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +0 -31
  332. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +0 -392
  333. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.d.ts +0 -45
  334. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +0 -243
  335. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +0 -52
  336. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.js +0 -10
  337. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +0 -20
  338. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +0 -310
  339. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +0 -19
  340. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +0 -168
  341. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +0 -8
  342. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +0 -25
  343. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +0 -41
  344. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +0 -19
  345. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +0 -37
  346. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +0 -19
  347. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +0 -37
  348. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +0 -19
  349. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +0 -44
  350. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +0 -13
  351. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +0 -21
  352. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +0 -5
  353. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +0 -27
  354. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.d.ts +0 -14
  355. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +0 -29
  356. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +0 -8
  357. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +0 -33
  358. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +0 -20
  359. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +0 -8
  360. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +0 -28
  361. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +0 -118
  362. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +0 -1019
  363. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +0 -49
  364. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +0 -23
  365. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +0 -9
  366. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +0 -150
  367. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +0 -1619
  368. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +0 -22
  369. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +0 -41
  370. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +0 -17
  371. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +0 -118
  372. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +0 -12
  373. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.js +0 -17
  374. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +0 -25
  375. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +0 -130
  376. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +0 -122
  377. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +0 -482
@@ -1,860 +0,0 @@
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 IProtectedResourceMetadata {
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 IRootState {
117
- /** Available agent backends and their models */
118
- agents: IAgentInfo[];
119
- /** Number of active (non-disposed) sessions on the server */
120
- activeSessions?: number;
121
- }
122
- /**
123
- * @category Root State
124
- */
125
- export interface IAgentInfo {
126
- /** Agent provider ID (e.g. `'copilot'`) */
127
- provider: string;
128
- /** Human-readable name */
129
- displayName: string;
130
- /** Description string */
131
- description: string;
132
- /** Available models for this agent */
133
- models: ISessionModelInfo[];
134
- /**
135
- * Protected resources this agent requires authentication for.
136
- *
137
- * Each entry describes an OAuth 2.0 protected resource using
138
- * [RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728) semantics.
139
- * Clients should obtain tokens from the declared `authorization_servers`
140
- * and push them via the `authenticate` command before creating sessions
141
- * with this agent.
142
- *
143
- * @see {@link /specification/authentication | Authentication}
144
- */
145
- protectedResources?: IProtectedResourceMetadata[];
146
- /**
147
- * Customizations (Open Plugins) associated with this agent.
148
- *
149
- * Each entry is a reference to an [Open Plugins](https://open-plugins.com/)
150
- * plugin that the agent host can activate for sessions using this agent.
151
- */
152
- customizations?: ICustomizationRef[];
153
- }
154
- /**
155
- * @category Root State
156
- */
157
- export interface ISessionModelInfo {
158
- /** Model identifier */
159
- id: string;
160
- /** Provider this model belongs to */
161
- provider: string;
162
- /** Human-readable model name */
163
- name: string;
164
- /** Maximum context window size */
165
- maxContextWindow?: number;
166
- /** Whether the model supports vision */
167
- supportsVision?: boolean;
168
- /** Policy configuration state */
169
- policyState?: PolicyState;
170
- }
171
- /**
172
- * Discriminant for pending message kinds.
173
- *
174
- * @category Pending Message Types
175
- */
176
- export declare enum PendingMessageKind {
177
- /** Injected into the current turn at a convenient point */
178
- Steering = "steering",
179
- /** Sent automatically as a new turn after the current turn finishes */
180
- Queued = "queued"
181
- }
182
- /**
183
- * A message queued for future delivery to the agent.
184
- *
185
- * Steering messages are injected into the current turn mid-flight.
186
- * Queued messages are automatically started as new turns after the
187
- * current turn naturally finishes.
188
- *
189
- * @category Pending Message Types
190
- */
191
- export interface IPendingMessage {
192
- /** Unique identifier for this pending message */
193
- id: string;
194
- /** The message content */
195
- userMessage: IUserMessage;
196
- }
197
- /**
198
- * Session initialization state.
199
- *
200
- * @category Session State
201
- */
202
- export declare enum SessionLifecycle {
203
- Creating = "creating",
204
- Ready = "ready",
205
- CreationFailed = "creationFailed"
206
- }
207
- /**
208
- * Current session status.
209
- *
210
- * @category Session State
211
- */
212
- export declare enum SessionStatus {
213
- Idle = "idle",
214
- InProgress = "in-progress",
215
- Error = "error"
216
- }
217
- /**
218
- * Full state for a single session, loaded when a client subscribes to the session's URI.
219
- *
220
- * @category Session State
221
- */
222
- export interface ISessionState {
223
- /** Lightweight session metadata */
224
- summary: ISessionSummary;
225
- /** Session initialization state */
226
- lifecycle: SessionLifecycle;
227
- /** Error details if creation failed */
228
- creationError?: IErrorInfo;
229
- /** Tools provided by the server (agent host) for this session */
230
- serverTools?: IToolDefinition[];
231
- /** The client currently providing tools and interactive capabilities to this session */
232
- activeClient?: ISessionActiveClient;
233
- /** The working directory URI for this session */
234
- workingDirectory?: URI;
235
- /** Completed turns */
236
- turns: ITurn[];
237
- /** Currently in-progress turn */
238
- activeTurn?: IActiveTurn;
239
- /** Message to inject into the current turn at a convenient point */
240
- steeringMessage?: IPendingMessage;
241
- /** Messages to send automatically as new turns after the current turn finishes */
242
- queuedMessages?: IPendingMessage[];
243
- /**
244
- * Server-provided customizations active in this session.
245
- *
246
- * Client-provided customizations are available on
247
- * {@link ISessionActiveClient.customizations | activeClient.customizations}.
248
- */
249
- customizations?: ISessionCustomization[];
250
- }
251
- /**
252
- * The client currently providing tools and interactive capabilities to a session.
253
- *
254
- * Only one client may be active per session at a time. The server SHOULD
255
- * automatically unset the active client if that client disconnects.
256
- *
257
- * @category Session State
258
- */
259
- export interface ISessionActiveClient {
260
- /** Client identifier (matches `clientId` from `initialize`) */
261
- clientId: string;
262
- /** Human-readable client name (e.g. `"VS Code"`) */
263
- displayName?: string;
264
- /** Tools this client provides to the session */
265
- tools: IToolDefinition[];
266
- /** Customizations this client contributes to the session */
267
- customizations?: ICustomizationRef[];
268
- }
269
- /**
270
- * @category Session State
271
- */
272
- export interface ISessionSummary {
273
- /** Session URI */
274
- resource: URI;
275
- /** Agent provider ID */
276
- provider: string;
277
- /** Session title */
278
- title: string;
279
- /** Current session status */
280
- status: SessionStatus;
281
- /** Creation timestamp */
282
- createdAt: number;
283
- /** Last modification timestamp */
284
- modifiedAt: number;
285
- /** Currently selected model */
286
- model?: string;
287
- /** The working directory URI for this session */
288
- workingDirectory?: URI;
289
- }
290
- /**
291
- * How a turn ended.
292
- *
293
- * @category Turn Types
294
- */
295
- export declare enum TurnState {
296
- Complete = "complete",
297
- Cancelled = "cancelled",
298
- Error = "error"
299
- }
300
- /**
301
- * Type of a message attachment.
302
- *
303
- * @category Turn Types
304
- */
305
- export declare enum AttachmentType {
306
- File = "file",
307
- Directory = "directory",
308
- Selection = "selection"
309
- }
310
- /**
311
- * A completed request/response cycle.
312
- *
313
- * @category Turn Types
314
- */
315
- export interface ITurn {
316
- /** Turn identifier */
317
- id: string;
318
- /** The user's input */
319
- userMessage: IUserMessage;
320
- /**
321
- * All response content in stream order: text, tool calls, reasoning, and content refs.
322
- *
323
- * Consumers should derive display text by concatenating markdown parts,
324
- * and find tool calls by filtering for `ToolCall` parts.
325
- */
326
- responseParts: IResponsePart[];
327
- /** Token usage info */
328
- usage: IUsageInfo | undefined;
329
- /** How the turn ended */
330
- state: TurnState;
331
- /** Error details if state is `'error'` */
332
- error?: IErrorInfo;
333
- }
334
- /**
335
- * An in-progress turn — the assistant is actively streaming.
336
- *
337
- * @category Turn Types
338
- */
339
- export interface IActiveTurn {
340
- /** Turn identifier */
341
- id: string;
342
- /** The user's input */
343
- userMessage: IUserMessage;
344
- /**
345
- * All response content in stream order: text, tool calls, reasoning, and content refs.
346
- *
347
- * Tool call parts include `pendingPermissions` when permissions are awaiting user approval.
348
- */
349
- responseParts: IResponsePart[];
350
- /** Token usage info */
351
- usage: IUsageInfo | undefined;
352
- }
353
- /**
354
- * @category Turn Types
355
- */
356
- export interface IUserMessage {
357
- /** Message text */
358
- text: string;
359
- /** File/selection attachments */
360
- attachments?: IMessageAttachment[];
361
- }
362
- /**
363
- * @category Turn Types
364
- */
365
- export interface IMessageAttachment {
366
- /** Attachment type */
367
- type: AttachmentType;
368
- /** File/directory path */
369
- path: string;
370
- /** Display name */
371
- displayName?: string;
372
- }
373
- /**
374
- * Discriminant for response part types.
375
- *
376
- * @category Response Parts
377
- */
378
- export declare enum ResponsePartKind {
379
- Markdown = "markdown",
380
- ContentRef = "contentRef",
381
- ToolCall = "toolCall",
382
- Reasoning = "reasoning"
383
- }
384
- /**
385
- * @category Response Parts
386
- */
387
- export interface IMarkdownResponsePart {
388
- /** Discriminant */
389
- kind: ResponsePartKind.Markdown;
390
- /** Part identifier, used by `session/delta` to target this part for content appends */
391
- id: string;
392
- /** Markdown content */
393
- content: string;
394
- }
395
- /**
396
- * A reference to large content stored outside the state tree.
397
- *
398
- * @category Response Parts
399
- */
400
- export interface IContentRef {
401
- /** Discriminant */
402
- kind: ResponsePartKind.ContentRef;
403
- /** Content URI */
404
- uri: string;
405
- /** Approximate size in bytes */
406
- sizeHint?: number;
407
- /** Content MIME type */
408
- contentType?: string;
409
- }
410
- /**
411
- * A tool call represented as a response part.
412
- *
413
- * Tool calls are part of the response stream, interleaved with text and
414
- * reasoning. The `toolCall.toolCallId` serves as the part identifier for
415
- * actions that target this part.
416
- *
417
- * @category Response Parts
418
- */
419
- export interface IToolCallResponsePart {
420
- /** Discriminant */
421
- kind: ResponsePartKind.ToolCall;
422
- /** Full tool call lifecycle state */
423
- toolCall: IToolCallState;
424
- }
425
- /**
426
- * Reasoning/thinking content from the model.
427
- *
428
- * @category Response Parts
429
- */
430
- export interface IReasoningResponsePart {
431
- /** Discriminant */
432
- kind: ResponsePartKind.Reasoning;
433
- /** Part identifier, used by `session/reasoning` to target this part for content appends */
434
- id: string;
435
- /** Accumulated reasoning text */
436
- content: string;
437
- }
438
- /**
439
- * @category Response Parts
440
- */
441
- export type IResponsePart = IMarkdownResponsePart | IContentRef | IToolCallResponsePart | IReasoningResponsePart;
442
- /**
443
- * Status of a tool call in the lifecycle state machine.
444
- *
445
- * @category Tool Call Types
446
- */
447
- export declare enum ToolCallStatus {
448
- Streaming = "streaming",
449
- PendingConfirmation = "pending-confirmation",
450
- Running = "running",
451
- PendingResultConfirmation = "pending-result-confirmation",
452
- Completed = "completed",
453
- Cancelled = "cancelled"
454
- }
455
- /**
456
- * How a tool call was confirmed for execution.
457
- *
458
- * - `NotNeeded` — No confirmation required (auto-approved)
459
- * - `UserAction` — User explicitly approved
460
- * - `Setting` — Approved by a persistent user setting
461
- *
462
- * @category Tool Call Types
463
- */
464
- export declare enum ToolCallConfirmationReason {
465
- NotNeeded = "not-needed",
466
- UserAction = "user-action",
467
- Setting = "setting"
468
- }
469
- /**
470
- * Why a tool call was cancelled.
471
- *
472
- * @category Tool Call Types
473
- */
474
- export declare enum ToolCallCancellationReason {
475
- Denied = "denied",
476
- Skipped = "skipped",
477
- ResultDenied = "result-denied"
478
- }
479
- /**
480
- * Metadata common to all tool call states.
481
- *
482
- * @category Tool Call Types
483
- * @remarks
484
- * Fields like `toolName` carry agent-specific identifiers on the wire despite the
485
- * agent-agnostic design principle. These exist for debugging and logging purposes.
486
- * A future version may move these to a separate diagnostic channel or namespace them
487
- * more clearly.
488
- */
489
- interface IToolCallBase {
490
- /** Unique tool call identifier */
491
- toolCallId: string;
492
- /** Internal tool name (for debugging/logging) */
493
- toolName: string;
494
- /** Human-readable tool name */
495
- displayName: string;
496
- /**
497
- * If this tool is provided by a client, the `clientId` of the owning client.
498
- * Absent for server-side tools.
499
- *
500
- * When set, the identified client is responsible for executing the tool and
501
- * dispatching `session/toolCallComplete` with the result.
502
- */
503
- toolClientId?: string;
504
- /**
505
- * Additional provider-specific metadata for this tool call.
506
- *
507
- * Clients MAY look for well-known keys here to provide enhanced UI.
508
- * For example, a `ptyTerminal` key with `{ input: string; output: string }`
509
- * indicates the tool operated on a terminal (both `input` and `output` may
510
- * contain escape sequences).
511
- */
512
- _meta?: Record<string, unknown>;
513
- }
514
- /**
515
- * Properties available once tool call parameters are fully received.
516
- *
517
- * @category Tool Call Types
518
- */
519
- interface IToolCallParameterFields {
520
- /** Message describing what the tool will do */
521
- invocationMessage: StringOrMarkdown;
522
- /** Raw tool input */
523
- toolInput?: string;
524
- }
525
- /**
526
- * Tool execution result details, available after execution completes.
527
- *
528
- * @category Tool Call Types
529
- */
530
- export interface IToolCallResult {
531
- /** Whether the tool succeeded */
532
- success: boolean;
533
- /** Past-tense description of what the tool did */
534
- pastTenseMessage: StringOrMarkdown;
535
- /**
536
- * Unstructured result content blocks.
537
- *
538
- * This mirrors the `content` field of MCP `CallToolResult`.
539
- */
540
- content?: IToolResultContent[];
541
- /**
542
- * Optional structured result object.
543
- *
544
- * This mirrors the `structuredContent` field of MCP `CallToolResult`.
545
- */
546
- structuredContent?: Record<string, unknown>;
547
- /** Error details if the tool failed */
548
- error?: {
549
- message: string;
550
- code?: string;
551
- };
552
- }
553
- /**
554
- * LM is streaming the tool call parameters.
555
- *
556
- * @category Tool Call Types
557
- */
558
- export interface IToolCallStreamingState extends IToolCallBase {
559
- status: ToolCallStatus.Streaming;
560
- /** Partial parameters accumulated so far */
561
- partialInput?: string;
562
- /** Progress message shown while parameters are streaming */
563
- invocationMessage?: StringOrMarkdown;
564
- }
565
- /**
566
- * Parameters are complete, or a running tool requires re-confirmation
567
- * (e.g. a mid-execution permission check).
568
- *
569
- * @category Tool Call Types
570
- */
571
- export interface IToolCallPendingConfirmationState extends IToolCallBase, IToolCallParameterFields {
572
- status: ToolCallStatus.PendingConfirmation;
573
- /** Short title for the confirmation prompt (e.g. `"Run in terminal"`, `"Write file"`) */
574
- confirmationTitle?: StringOrMarkdown;
575
- }
576
- /**
577
- * Tool is actively executing.
578
- *
579
- * @category Tool Call Types
580
- */
581
- export interface IToolCallRunningState extends IToolCallBase, IToolCallParameterFields {
582
- status: ToolCallStatus.Running;
583
- /** How the tool was confirmed for execution */
584
- confirmed: ToolCallConfirmationReason;
585
- }
586
- /**
587
- * Tool finished executing, waiting for client to approve the result.
588
- *
589
- * @category Tool Call Types
590
- */
591
- export interface IToolCallPendingResultConfirmationState extends IToolCallBase, IToolCallParameterFields, IToolCallResult {
592
- status: ToolCallStatus.PendingResultConfirmation;
593
- /** How the tool was confirmed for execution */
594
- confirmed: ToolCallConfirmationReason;
595
- }
596
- /**
597
- * Tool completed successfully or with an error.
598
- *
599
- * @category Tool Call Types
600
- */
601
- export interface IToolCallCompletedState extends IToolCallBase, IToolCallParameterFields, IToolCallResult {
602
- status: ToolCallStatus.Completed;
603
- /** How the tool was confirmed for execution */
604
- confirmed: ToolCallConfirmationReason;
605
- }
606
- /**
607
- * Tool call was cancelled before execution.
608
- *
609
- * @category Tool Call Types
610
- */
611
- export interface IToolCallCancelledState extends IToolCallBase, IToolCallParameterFields {
612
- status: ToolCallStatus.Cancelled;
613
- /** Why the tool was cancelled */
614
- reason: ToolCallCancellationReason;
615
- /** Optional message explaining the cancellation */
616
- reasonMessage?: StringOrMarkdown;
617
- /** What the user suggested doing instead */
618
- userSuggestion?: IUserMessage;
619
- }
620
- /**
621
- * Discriminated union of all tool call lifecycle states.
622
- *
623
- * See the [state model guide](/guide/state-model.html#tool-call-lifecycle)
624
- * for the full state machine diagram.
625
- *
626
- * @category Tool Call Types
627
- */
628
- export type IToolCallState = IToolCallStreamingState | IToolCallPendingConfirmationState | IToolCallRunningState | IToolCallPendingResultConfirmationState | IToolCallCompletedState | IToolCallCancelledState;
629
- /**
630
- * Describes a tool available in a session, provided by either the server or the active client.
631
- *
632
- * This type mirrors the MCP `Tool` type from the Model Context Protocol specification
633
- * (2025-11-25 draft) and will continue to track it.
634
- *
635
- * @category Tool Definition Types
636
- */
637
- export interface IToolDefinition {
638
- /** Unique tool identifier */
639
- name: string;
640
- /** Human-readable display name */
641
- title?: string;
642
- /** Description of what the tool does */
643
- description?: string;
644
- /**
645
- * JSON Schema defining the expected input parameters.
646
- *
647
- * Optional because client-provided tools may not have formal schemas.
648
- * Mirrors MCP `Tool.inputSchema`.
649
- */
650
- inputSchema?: {
651
- type: "object";
652
- properties?: Record<string, object>;
653
- required?: string[];
654
- };
655
- /**
656
- * JSON Schema defining the structure of the tool's output.
657
- *
658
- * Mirrors MCP `Tool.outputSchema`.
659
- */
660
- outputSchema?: {
661
- type: "object";
662
- properties?: Record<string, object>;
663
- required?: string[];
664
- };
665
- /** Behavioral hints about the tool. All properties are advisory. */
666
- annotations?: IToolAnnotations;
667
- /**
668
- * Additional provider-specific metadata.
669
- *
670
- * Mirrors the MCP `_meta` convention.
671
- */
672
- _meta?: Record<string, unknown>;
673
- }
674
- /**
675
- * Behavioral hints about a tool. All properties are advisory and not
676
- * guaranteed to faithfully describe tool behavior.
677
- *
678
- * Mirrors MCP `ToolAnnotations` from the Model Context Protocol specification.
679
- *
680
- * @category Tool Definition Types
681
- */
682
- export interface IToolAnnotations {
683
- /** Alternate human-readable title */
684
- title?: string;
685
- /** Tool does not modify its environment (default: false) */
686
- readOnlyHint?: boolean;
687
- /** Tool may perform destructive updates (default: true) */
688
- destructiveHint?: boolean;
689
- /** Repeated calls with the same arguments have no additional effect (default: false) */
690
- idempotentHint?: boolean;
691
- /** Tool may interact with external entities (default: true) */
692
- openWorldHint?: boolean;
693
- }
694
- /**
695
- * Discriminant for tool result content types.
696
- *
697
- * @category Tool Result Content
698
- */
699
- export declare enum ToolResultContentType {
700
- Text = "text",
701
- Binary = "binary",
702
- FileEdit = "fileEdit"
703
- }
704
- /**
705
- * Text content in a tool result.
706
- *
707
- * Mirrors MCP `TextContent`.
708
- *
709
- * @category Tool Result Content
710
- */
711
- export interface IToolResultTextContent {
712
- type: ToolResultContentType.Text;
713
- /** The text content */
714
- text: string;
715
- }
716
- /**
717
- * Base64-encoded binary content in a tool result.
718
- *
719
- * Mirrors MCP `ImageContent` but generalized to any binary content type.
720
- *
721
- * @category Tool Result Content
722
- */
723
- export interface IToolResultBinaryContent {
724
- type: ToolResultContentType.Binary;
725
- /** Base64-encoded data */
726
- data: string;
727
- /** Content type (e.g. `"image/png"`, `"application/pdf"`) */
728
- contentType: string;
729
- }
730
- /**
731
- * Describes a file modification performed by a tool.
732
- *
733
- * Clients can use the `beforeURI`/`afterURI` pair to render a diff view.
734
- *
735
- * @category Tool Result Content
736
- */
737
- export interface IToolResultFileEditContent {
738
- type: ToolResultContentType.FileEdit;
739
- /** URI of the file content before the edit */
740
- beforeURI: URI;
741
- /** URI of the file content after the edit */
742
- afterURI: URI;
743
- /** Optional diff display metadata */
744
- diff?: {
745
- /** Number of items added (e.g., lines for text files, cells for notebooks) */
746
- added?: number;
747
- /** Number of items removed (e.g., lines for text files, cells for notebooks) */
748
- removed?: number;
749
- };
750
- }
751
- /**
752
- * Content block in a tool result.
753
- *
754
- * Mirrors the content blocks in MCP `CallToolResult.content`, plus
755
- * `IContentRef` for lazy-loading large results and `IToolResultFileEditContent`
756
- * for file edit diffs (AHP extensions).
757
- *
758
- * @category Tool Result Content
759
- */
760
- export type IToolResultContent = IToolResultTextContent | IToolResultBinaryContent | IToolResultFileEditContent | IContentRef;
761
- /**
762
- * A reference to an [Open Plugins](https://open-plugins.com/) plugin.
763
- *
764
- * This is intentionally thin — AHP specifies plugin identity and metadata
765
- * but not implementation details, which are defined by the Open Plugins spec.
766
- *
767
- * @category Customization Types
768
- */
769
- export interface ICustomizationRef {
770
- /** Plugin URI (e.g. an HTTPS URL or marketplace identifier) */
771
- uri: URI;
772
- /** Human-readable name */
773
- displayName: string;
774
- /** Description of what the plugin provides */
775
- description?: string;
776
- /** Icons for the plugin */
777
- icons?: Icon[];
778
- /**
779
- * Opaque version token for this customization.
780
- *
781
- * Clients SHOULD include a nonce with every customization they provide.
782
- * Consumers can compare nonces to detect whether a customization has
783
- * changed since it was last seen, avoiding redundant reloads or copies.
784
- */
785
- nonce?: string;
786
- }
787
- /**
788
- * Loading status for a server-managed customization.
789
- *
790
- * @category Customization Types
791
- */
792
- export declare enum CustomizationStatus {
793
- /** Plugin is being loaded */
794
- Loading = "loading",
795
- /** Plugin is fully operational */
796
- Loaded = "loaded",
797
- /** Plugin partially loaded but has warnings */
798
- Degraded = "degraded",
799
- /** Plugin was unable to load */
800
- Error = "error"
801
- }
802
- /**
803
- * A customization active in a session.
804
- *
805
- * Entries without a `clientId` are server-provided; entries with a `clientId`
806
- * originate from that client.
807
- *
808
- * @category Customization Types
809
- */
810
- export interface ISessionCustomization {
811
- /** The plugin this customization refers to */
812
- customization: ICustomizationRef;
813
- /** Whether this customization is currently enabled */
814
- enabled: boolean;
815
- /** Server-reported loading status */
816
- status?: CustomizationStatus;
817
- /**
818
- * Human-readable status detail (e.g. error message or degradation warning).
819
- */
820
- statusMessage?: string;
821
- }
822
- /**
823
- * @category Common Types
824
- */
825
- export interface IUsageInfo {
826
- /** Input tokens consumed */
827
- inputTokens?: number;
828
- /** Output tokens generated */
829
- outputTokens?: number;
830
- /** Model used */
831
- model?: string;
832
- /** Tokens read from cache */
833
- cacheReadTokens?: number;
834
- }
835
- /**
836
- * @category Common Types
837
- */
838
- export interface IErrorInfo {
839
- /** Error type identifier */
840
- errorType: string;
841
- /** Human-readable error message */
842
- message: string;
843
- /** Stack trace */
844
- stack?: string;
845
- }
846
- /**
847
- * A point-in-time snapshot of a subscribed resource's state, returned by
848
- * `initialize`, `reconnect`, and `subscribe`.
849
- *
850
- * @category Common Types
851
- */
852
- export interface ISnapshot {
853
- /** The subscribed resource URI (e.g. `agenthost:/root` or `copilot:/<uuid>`) */
854
- resource: URI;
855
- /** The current state of the resource */
856
- state: IRootState | ISessionState;
857
- /** The `serverSeq` at which this snapshot was taken. Subsequent actions will have `serverSeq > fromSeq`. */
858
- fromSeq: number;
859
- }
860
- export {};