@codingame/monaco-vscode-chat-service-override 28.4.1 → 29.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 (339) hide show
  1. package/index.js +18 -12
  2. package/package.json +5 -5
  3. package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +300 -0
  4. package/vscode/src/vs/platform/agentHost/common/agentService.js +31 -0
  5. package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +84 -0
  6. package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +16 -0
  7. package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +488 -0
  8. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +424 -0
  9. package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +50 -0
  10. package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +202 -0
  11. package/vscode/src/vs/platform/agentHost/common/state/protocol/notifications.d.ts +114 -0
  12. package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +723 -0
  13. package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +33 -0
  14. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +40 -0
  15. package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +22 -0
  16. package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +13 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
  18. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +2 -2
  19. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +29 -15
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +59 -59
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -12
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +3 -3
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +4 -4
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
  28. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +76 -10
  29. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
  30. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
  31. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
  32. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +11 -11
  33. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +1 -1
  34. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +162 -4
  35. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +167 -4
  36. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
  37. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.d.ts +1 -1
  38. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +52 -20
  39. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
  40. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +11 -11
  41. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +13 -13
  42. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +19 -19
  43. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +82 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +195 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +5 -1
  46. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +97 -88
  47. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +3 -3
  48. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +4 -1
  49. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +5 -3
  50. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +78 -35
  51. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +7 -1
  52. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +174 -170
  53. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +7 -4
  54. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +12 -0
  55. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +118 -52
  56. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +7 -7
  57. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
  58. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.d.ts +5 -1
  59. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +13 -2
  60. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
  61. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.d.ts +0 -3
  62. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -10
  63. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
  64. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +9 -10
  65. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +23 -25
  66. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +341 -196
  67. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +79 -7
  68. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
  69. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
  70. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.d.ts +5 -4
  71. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +22 -10
  72. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +1 -1
  73. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +2 -2
  74. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +4 -0
  75. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +15 -14
  76. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +85 -5
  77. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +668 -214
  78. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +10 -0
  79. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +18 -0
  80. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +306 -39
  81. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +84 -4
  82. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +651 -81
  83. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +2 -1
  84. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +6 -2
  85. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +31 -1
  86. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +9 -20
  87. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +11 -1
  88. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +7 -142
  89. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.d.ts +43 -0
  90. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.js +63 -0
  91. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +11 -0
  92. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +44 -0
  93. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +25 -1
  94. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +297 -123
  95. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +153 -31
  96. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +17 -1
  97. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +111 -171
  98. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +1 -3
  99. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +5 -30
  100. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +19 -19
  101. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +277 -186
  102. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +4 -2
  103. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +31 -23
  104. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +3 -7
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +4 -16
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +18 -2
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +112 -17
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +3 -3
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +16 -27
  110. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
  111. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +1 -1
  112. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +41 -19
  113. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +7 -1
  114. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +35 -23
  115. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +1 -8
  116. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +8 -51
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +1 -0
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +13 -8
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +1 -1
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +29 -36
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +14 -7
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +5 -1
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +79 -26
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.d.ts +19 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +125 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +11 -4
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +113 -82
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +18 -7
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +54 -15
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +8 -3
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +103 -28
  132. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +2 -0
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +48 -37
  134. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +28 -2
  135. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +62 -20
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +21 -37
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +2 -1
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +4 -3
  141. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +1 -1
  142. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
  143. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +1 -0
  144. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +17 -4
  145. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +5 -5
  146. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +4 -1
  147. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +43 -5
  148. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
  149. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.d.ts +59 -0
  150. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +194 -0
  151. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +9 -10
  152. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +13 -13
  153. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.d.ts +2 -1
  154. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +8 -4
  155. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
  156. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +11 -0
  157. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +81 -50
  158. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +11 -11
  159. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
  160. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +32 -32
  161. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
  162. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +1 -1
  163. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +22 -15
  164. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
  165. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +2 -2
  166. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +9 -7
  167. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +29 -26
  168. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +0 -2
  169. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +19 -27
  170. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +2 -4
  171. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +105 -172
  172. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
  173. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +80 -65
  174. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
  175. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +56 -27
  176. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +1 -1
  177. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
  178. package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.d.ts +16 -0
  179. package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +70 -0
  180. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
  181. package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.d.ts +20 -0
  182. package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +40 -0
  183. package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.d.ts +31 -0
  184. package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +53 -0
  185. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +33 -2
  186. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +21 -2
  187. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +362 -18
  188. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +15 -4
  189. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +90 -43
  190. package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.d.ts +35 -0
  191. package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +146 -0
  192. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
  193. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +26 -26
  194. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
  195. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
  196. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
  197. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +10 -9
  198. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
  199. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
  200. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
  201. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +1 -1
  202. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +33 -5
  203. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +3 -0
  204. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +200 -55
  205. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +7 -0
  206. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +90 -45
  207. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +4 -2
  208. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +21 -10
  209. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +22 -16
  210. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +4 -2
  211. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +28 -13
  212. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  213. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +9 -9
  214. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +6 -6
  215. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +20 -16
  216. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +68 -5
  217. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
  218. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
  219. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
  220. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +1 -0
  221. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +57 -20
  222. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
  223. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +21 -5
  224. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +171 -57
  225. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +7 -5
  226. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +206 -35
  227. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +4 -3
  228. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +7 -7
  229. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +7 -1
  230. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +11 -3
  231. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +44 -22
  232. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +450 -301
  233. package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +23 -0
  234. package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +165 -0
  235. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +34 -20
  236. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +209 -144
  237. package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.d.ts +20 -0
  238. package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js +205 -0
  239. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +17 -17
  240. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.d.ts +33 -0
  241. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.js +47 -0
  242. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalSkill.d.ts +30 -0
  243. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
  244. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
  245. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
  246. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +1 -1
  247. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +191 -159
  248. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +6 -7
  249. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +210 -233
  250. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +19 -26
  251. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +183 -193
  252. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.d.ts +24 -0
  253. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.js +75 -0
  254. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  255. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +8 -5
  256. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +8 -0
  257. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +97 -35
  258. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
  259. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +16 -0
  260. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +67 -0
  261. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +2 -2
  262. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +62 -23
  263. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  264. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  265. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
  266. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
  267. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
  268. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +8 -8
  269. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  270. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
  271. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +2 -2
  272. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +3 -1
  273. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +23 -9
  274. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +1 -1
  275. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +2 -2
  276. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +3 -1
  277. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +50 -9
  278. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +3 -1
  279. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +21 -7
  280. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +20 -1
  281. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +124 -1
  282. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +20 -5
  283. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +5 -0
  284. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +10 -7
  285. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +2 -1
  286. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +46 -31
  287. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +18 -1
  288. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +74 -37
  289. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
  290. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
  291. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +1 -0
  292. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +24 -14
  293. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
  294. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +1 -1
  295. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +3 -2
  296. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +1 -1
  297. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +2 -0
  298. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +5 -1
  299. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
  300. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
  301. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
  302. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
  303. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +1 -2
  304. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +66 -64
  305. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +1 -0
  306. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +1 -0
  307. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +5 -2
  308. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +32 -2
  309. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +390 -114
  310. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +14 -0
  311. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +21 -11
  312. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +70 -51
  313. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +61 -51
  314. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +94 -76
  315. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  316. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +19 -1
  317. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +112 -21
  318. package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.d.ts +0 -53
  319. package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +0 -219
  320. package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +0 -89
  321. package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +0 -251
  322. package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +0 -123
  323. package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +0 -278
  324. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +0 -76
  325. package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +0 -299
  326. package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +0 -67
  327. package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +0 -263
  328. package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +0 -85
  329. package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +0 -397
  330. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +0 -56
  331. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +0 -26
  332. package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +0 -5
  333. package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +0 -30
  334. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +0 -40
  335. package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +0 -28
  336. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +0 -190
  337. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +0 -11
  338. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -16
  339. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -20
package/index.js CHANGED
@@ -82,14 +82,7 @@ import { ChatEditingExplanationModelManager } from './vscode/src/vs/workbench/co
82
82
  import { ChatToolOutputStateCache } from './vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.js';
83
83
  import { ITerminalSandboxService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.service';
84
84
  import { TerminalSandboxService } from './vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js';
85
- import { IAgentFeedbackService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.service';
86
- import { AgentFeedbackService } from './vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js';
87
- import { ISessionsConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/chat/browser/sessionsConfigurationService.service';
88
- import { SessionsConfigurationService } from './vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js';
89
85
  import { IAICustomizationWorkspaceService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service';
90
- import { SessionsAICustomizationWorkspaceService } from './vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js';
91
- import { ISessionsManagementService } from '@codingame/monaco-vscode-api/vscode/vs/sessions/contrib/sessions/browser/sessionsManagementService.service';
92
- import { SessionsManagementService } from './vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js';
93
86
  import { IAgentPluginService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginService.service';
94
87
  import { AgentPluginService } from './vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js';
95
88
  import { PluginMarketplaceService } from './vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js';
@@ -106,6 +99,17 @@ import { IChatResponseResourceFileSystemProvider } from '@codingame/monaco-vscod
106
99
  import { ChatResponseResourceFileSystemProvider } from './vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js';
107
100
  import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
108
101
  import { IDefaultAccountService } from '@codingame/monaco-vscode-api/vscode/vs/platform/defaultAccount/common/defaultAccount.service';
102
+ import { ICustomizationHarnessService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/customizationHarnessService.service';
103
+ import { CustomizationHarnessService } from './vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js';
104
+ import { AICustomizationWorkspaceService } from './vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js';
105
+ import { IChatArtifactsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/chatArtifactsService.service';
106
+ import { ChatArtifactsService } from './vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.js';
107
+ import { IWorkspacePluginSettingsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.service';
108
+ import { WorkspacePluginSettingsService } from './vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js';
109
+ import { IChatImageCarouselService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatImageCarouselService.service';
110
+ import { ChatImageCarouselService } from './vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js';
111
+ import { IInlineChatHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.service';
112
+ import { InlineChatHistoryService } from './vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js';
109
113
  import './vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js';
110
114
  import './vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js';
111
115
  import './vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js';
@@ -173,10 +177,7 @@ function getServiceOverride({ defaultAccount } = {}) {
173
177
  [IChatEditingExplanationModelManager.toString()]: new SyncDescriptor(ChatEditingExplanationModelManager, [], true),
174
178
  [IChatToolOutputStateCache.toString()]: new SyncDescriptor(ChatToolOutputStateCache, [], true),
175
179
  [ITerminalSandboxService.toString()]: new SyncDescriptor(TerminalSandboxService, [], true),
176
- [IAgentFeedbackService.toString()]: new SyncDescriptor(AgentFeedbackService, [], true),
177
- [ISessionsConfigurationService.toString()]: new SyncDescriptor(SessionsConfigurationService, [], true),
178
- [IAICustomizationWorkspaceService.toString()]: new SyncDescriptor(SessionsAICustomizationWorkspaceService, [], true),
179
- [ISessionsManagementService.toString()]: new SyncDescriptor(SessionsManagementService, [], true),
180
+ [IAICustomizationWorkspaceService.toString()]: new SyncDescriptor(AICustomizationWorkspaceService, [], true),
180
181
  [IAgentPluginService.toString()]: new SyncDescriptor(AgentPluginService, [], true),
181
182
  [IPluginMarketplaceService.toString()]: new SyncDescriptor(PluginMarketplaceService, [], true),
182
183
  [IAgentPluginRepositoryService.toString()]: new SyncDescriptor(AgentPluginRepositoryService, [], true),
@@ -184,7 +185,12 @@ function getServiceOverride({ defaultAccount } = {}) {
184
185
  [IChatAttachmentWidgetRegistry.toString()]: new SyncDescriptor(ChatAttachmentWidgetRegistry, [], true),
185
186
  [IChatDebugService.toString()]: new SyncDescriptor(ChatDebugServiceImpl, [], true),
186
187
  [IChatResponseResourceFileSystemProvider.toString()]: new SyncDescriptor(ChatResponseResourceFileSystemProvider, [], true),
187
- [IDefaultAccountService.toString()]: new SyncDescriptor(DefaultAccountService, [defaultAccount], true)
188
+ [IDefaultAccountService.toString()]: new SyncDescriptor(DefaultAccountService, [defaultAccount], true),
189
+ [ICustomizationHarnessService.toString()]: new SyncDescriptor(CustomizationHarnessService, [defaultAccount], true),
190
+ [IChatArtifactsService.toString()]: new SyncDescriptor(ChatArtifactsService, [], true),
191
+ [IWorkspacePluginSettingsService.toString()]: new SyncDescriptor(WorkspacePluginSettingsService, [], true),
192
+ [IChatImageCarouselService.toString()]: new SyncDescriptor(ChatImageCarouselService, [], true),
193
+ [IInlineChatHistoryService.toString()]: new SyncDescriptor(InlineChatHistoryService, [], true)
188
194
  };
189
195
  }
190
196
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-chat-service-override",
3
- "version": "28.4.1",
3
+ "version": "29.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - chat service-override",
6
6
  "keywords": [],
@@ -15,10 +15,10 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "28.4.1",
19
- "@codingame/monaco-vscode-katex-common": "28.4.1",
20
- "@codingame/monaco-vscode-xterm-addons-common": "28.4.1",
21
- "@codingame/monaco-vscode-xterm-common": "28.4.1"
18
+ "@codingame/monaco-vscode-api": "29.0.0",
19
+ "@codingame/monaco-vscode-katex-common": "29.0.0",
20
+ "@codingame/monaco-vscode-xterm-addons-common": "29.0.0",
21
+ "@codingame/monaco-vscode-xterm-common": "29.0.0"
22
22
  },
23
23
  "main": "index.js",
24
24
  "module": "index.js",
@@ -0,0 +1,300 @@
1
+ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
2
+ import { IAuthorizationProtectedResourceMetadata } from "@codingame/monaco-vscode-api/vscode/vs/base/common/oauth";
3
+ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
4
+ import { IAgentService } from "./agentService.service.js";
5
+ import { AttachmentType, PermissionKind, type PolicyState } from "./state/sessionState.js";
6
+ export declare enum AgentHostIpcChannels {
7
+ /** Channel for the agent host service on the main-process side */
8
+ AgentHost = "agentHost",
9
+ /** Channel for log forwarding from the agent host process */
10
+ Logger = "agentHostLogger"
11
+ }
12
+ /** Configuration key that controls whether the agent host process is spawned. */
13
+ export declare const AgentHostEnabledSettingId = "chat.agentHost.enabled";
14
+ export interface IAgentSessionMetadata {
15
+ readonly session: URI;
16
+ readonly startTime: number;
17
+ readonly modifiedTime: number;
18
+ readonly summary?: string;
19
+ readonly workingDirectory?: string;
20
+ }
21
+ export type AgentProvider = string;
22
+ /** Metadata describing an agent backend, discovered over IPC. */
23
+ export interface IAgentDescriptor {
24
+ readonly provider: AgentProvider;
25
+ readonly displayName: string;
26
+ readonly description: string;
27
+ /**
28
+ * Whether the renderer should push a GitHub auth token for this agent.
29
+ * @deprecated Use {@link IResourceMetadata.resources} from {@link IAgentService.getResourceMetadata} instead.
30
+ */
31
+ readonly requiresAuth: boolean;
32
+ }
33
+ /**
34
+ * Describes the agent host as an OAuth 2.0 protected resource.
35
+ * Uses {@link IAuthorizationProtectedResourceMetadata} from RFC 9728
36
+ * to describe auth requirements, enabling clients to resolve tokens
37
+ * using the standard VS Code authentication service.
38
+ *
39
+ * Returned from the server via {@link IAgentService.getResourceMetadata}.
40
+ */
41
+ export interface IResourceMetadata {
42
+ /**
43
+ * Protected resources the agent host requires authentication for.
44
+ * Each entry uses the standard RFC 9728 shape so clients can resolve
45
+ * tokens via {@link IAuthenticationService.getOrActivateProviderIdForServer}.
46
+ */
47
+ readonly resources: readonly IAuthorizationProtectedResourceMetadata[];
48
+ }
49
+ /**
50
+ * Parameters for the `authenticate` command.
51
+ * Analogous to sending `Authorization: Bearer <token>` (RFC 6750 section 2.1).
52
+ */
53
+ export interface IAuthenticateParams {
54
+ /**
55
+ * The `resource` identifier from the server's
56
+ * {@link IAuthorizationProtectedResourceMetadata} that this token targets.
57
+ */
58
+ readonly resource: string;
59
+ /** The bearer token value (RFC 6750). */
60
+ readonly token: string;
61
+ }
62
+ /**
63
+ * Result of the `authenticate` command.
64
+ */
65
+ export interface IAuthenticateResult {
66
+ /** Whether the token was accepted. */
67
+ readonly authenticated: boolean;
68
+ }
69
+ export interface IAgentCreateSessionConfig {
70
+ readonly provider?: AgentProvider;
71
+ readonly model?: string;
72
+ readonly session?: URI;
73
+ readonly workingDirectory?: string;
74
+ }
75
+ /** Serializable attachment passed alongside a message to the agent host. */
76
+ export interface IAgentAttachment {
77
+ readonly type: AttachmentType;
78
+ readonly path: string;
79
+ readonly displayName?: string;
80
+ /** For selections: the selected text. */
81
+ readonly text?: string;
82
+ /** For selections: line/character range. */
83
+ readonly selection?: {
84
+ readonly start: {
85
+ readonly line: number;
86
+ readonly character: number;
87
+ };
88
+ readonly end: {
89
+ readonly line: number;
90
+ readonly character: number;
91
+ };
92
+ };
93
+ }
94
+ /** Serializable model information from the agent host. */
95
+ export interface IAgentModelInfo {
96
+ readonly provider: AgentProvider;
97
+ readonly id: string;
98
+ readonly name: string;
99
+ readonly maxContextWindow: number;
100
+ readonly supportsVision: boolean;
101
+ readonly supportsReasoningEffort: boolean;
102
+ readonly supportedReasoningEfforts?: readonly string[];
103
+ readonly defaultReasoningEffort?: string;
104
+ readonly policyState?: PolicyState;
105
+ readonly billingMultiplier?: number;
106
+ }
107
+ interface IAgentProgressEventBase {
108
+ readonly session: URI;
109
+ }
110
+ /** Streaming text delta from the assistant (`assistant.message_delta`). */
111
+ export interface IAgentDeltaEvent extends IAgentProgressEventBase {
112
+ readonly type: "delta";
113
+ readonly messageId: string;
114
+ readonly content: string;
115
+ readonly parentToolCallId?: string;
116
+ }
117
+ /** A complete assistant message (`assistant.message`), used for history reconstruction. */
118
+ export interface IAgentMessageEvent extends IAgentProgressEventBase {
119
+ readonly type: "message";
120
+ readonly role: "user" | "assistant";
121
+ readonly messageId: string;
122
+ readonly content: string;
123
+ readonly toolRequests?: readonly {
124
+ readonly toolCallId: string;
125
+ readonly name: string;
126
+ /** Serialized JSON of arguments, if available. */
127
+ readonly arguments?: string;
128
+ readonly type?: "function" | "custom";
129
+ }[];
130
+ readonly reasoningOpaque?: string;
131
+ readonly reasoningText?: string;
132
+ readonly encryptedContent?: string;
133
+ readonly parentToolCallId?: string;
134
+ }
135
+ /** The session has finished processing and is waiting for input (`session.idle`). */
136
+ export interface IAgentIdleEvent extends IAgentProgressEventBase {
137
+ readonly type: "idle";
138
+ }
139
+ /** A tool has started executing (`tool.execution_start`). */
140
+ export interface IAgentToolStartEvent extends IAgentProgressEventBase {
141
+ readonly type: "tool_start";
142
+ readonly toolCallId: string;
143
+ readonly toolName: string;
144
+ /** Human-readable display name for this tool. */
145
+ readonly displayName: string;
146
+ /** Message describing the tool invocation in progress (e.g., "Running `echo hello`"). */
147
+ readonly invocationMessage: string;
148
+ /** A representative input string for display in the UI (e.g., the shell command). */
149
+ readonly toolInput?: string;
150
+ /** Hint for the renderer about how to display this tool (e.g., 'terminal' for shell commands). */
151
+ readonly toolKind?: "terminal";
152
+ /** Language identifier for syntax highlighting (e.g., 'shellscript', 'powershell'). Used with toolKind 'terminal'. */
153
+ readonly language?: string;
154
+ /** Serialized JSON of the tool arguments, if available. */
155
+ readonly toolArguments?: string;
156
+ readonly mcpServerName?: string;
157
+ readonly mcpToolName?: string;
158
+ readonly parentToolCallId?: string;
159
+ }
160
+ /** A tool has finished executing (`tool.execution_complete`). */
161
+ export interface IAgentToolCompleteEvent extends IAgentProgressEventBase {
162
+ readonly type: "tool_complete";
163
+ readonly toolCallId: string;
164
+ readonly success: boolean;
165
+ /** Message describing the completed tool invocation (e.g., "Ran `echo hello`"). */
166
+ readonly pastTenseMessage: string;
167
+ /** Tool output content for display in the UI. */
168
+ readonly toolOutput?: string;
169
+ readonly isUserRequested?: boolean;
170
+ readonly result?: {
171
+ readonly content: string;
172
+ readonly detailedContent?: string;
173
+ };
174
+ readonly error?: {
175
+ readonly message: string;
176
+ readonly code?: string;
177
+ };
178
+ /** Serialized JSON of tool-specific telemetry data. */
179
+ readonly toolTelemetry?: string;
180
+ readonly parentToolCallId?: string;
181
+ }
182
+ /** The session title has been updated. */
183
+ export interface IAgentTitleChangedEvent extends IAgentProgressEventBase {
184
+ readonly type: "title_changed";
185
+ readonly title: string;
186
+ }
187
+ /** An error occurred during session processing. */
188
+ export interface IAgentErrorEvent extends IAgentProgressEventBase {
189
+ readonly type: "error";
190
+ readonly errorType: string;
191
+ readonly message: string;
192
+ readonly stack?: string;
193
+ }
194
+ /** Token usage information for a request. */
195
+ export interface IAgentUsageEvent extends IAgentProgressEventBase {
196
+ readonly type: "usage";
197
+ readonly inputTokens?: number;
198
+ readonly outputTokens?: number;
199
+ readonly model?: string;
200
+ readonly cacheReadTokens?: number;
201
+ }
202
+ /** A tool permission request from the SDK requiring a renderer-side decision. */
203
+ export interface IAgentPermissionRequestEvent extends IAgentProgressEventBase {
204
+ readonly type: "permission_request";
205
+ /** Unique ID for correlating the response. */
206
+ readonly requestId: string;
207
+ /** The kind of permission being requested. */
208
+ readonly permissionKind: PermissionKind;
209
+ /** The tool call ID that triggered this permission request. */
210
+ readonly toolCallId?: string;
211
+ /** File path involved (for read/write). */
212
+ readonly path?: string;
213
+ /** For shell: the full command text. */
214
+ readonly fullCommandText?: string;
215
+ /** For shell: the intention description. */
216
+ readonly intention?: string;
217
+ /** For MCP: the server name. */
218
+ readonly serverName?: string;
219
+ /** For MCP: the tool name. */
220
+ readonly toolName?: string;
221
+ /** Serialized JSON of the full permission request for fallback display. */
222
+ readonly rawRequest: string;
223
+ }
224
+ /** Streaming reasoning/thinking content from the assistant. */
225
+ export interface IAgentReasoningEvent extends IAgentProgressEventBase {
226
+ readonly type: "reasoning";
227
+ readonly content: string;
228
+ }
229
+ export type IAgentProgressEvent = IAgentDeltaEvent | IAgentMessageEvent | IAgentIdleEvent | IAgentToolStartEvent | IAgentToolCompleteEvent | IAgentTitleChangedEvent | IAgentErrorEvent | IAgentUsageEvent | IAgentPermissionRequestEvent | IAgentReasoningEvent;
230
+ export declare namespace AgentSession {
231
+ /**
232
+ * Creates a session URI from a provider name and raw session ID.
233
+ * The URI scheme is the provider name (e.g., `copilot:/<rawId>`).
234
+ */
235
+ function uri(provider: AgentProvider, rawSessionId: string): URI;
236
+ /**
237
+ * Extracts the raw session ID from a session URI (the path without leading slash).
238
+ * Accepts both a URI object and a URI string.
239
+ */
240
+ function id(session: URI | string): string;
241
+ /**
242
+ * Extracts the provider name from a session URI scheme.
243
+ * Accepts both a URI object and a URI string.
244
+ */
245
+ function provider(session: URI | string): AgentProvider | undefined;
246
+ }
247
+ /**
248
+ * Implemented by each agent backend (e.g. Copilot SDK).
249
+ * The {@link IAgentService} dispatches to the appropriate agent based on
250
+ * the agent id.
251
+ */
252
+ export interface IAgent {
253
+ /** Unique identifier for this provider (e.g. `'copilot'`). */
254
+ readonly id: AgentProvider;
255
+ /** Fires when the provider streams progress for a session. */
256
+ readonly onDidSessionProgress: Event<IAgentProgressEvent>;
257
+ /** Create a new session. Returns the session URI. */
258
+ createSession(config?: IAgentCreateSessionConfig): Promise<URI>;
259
+ /** Send a user message into an existing session. */
260
+ sendMessage(session: URI, prompt: string, attachments?: IAgentAttachment[]): Promise<void>;
261
+ /** Retrieve all session events/messages for reconstruction. */
262
+ getSessionMessages(session: URI): Promise<(IAgentMessageEvent | IAgentToolStartEvent | IAgentToolCompleteEvent)[]>;
263
+ /** Dispose a session, freeing resources. */
264
+ disposeSession(session: URI): Promise<void>;
265
+ /** Abort the current turn, stopping any in-flight processing. */
266
+ abortSession(session: URI): Promise<void>;
267
+ /** Change the model for an existing session. */
268
+ changeModel(session: URI, model: string): Promise<void>;
269
+ /** Respond to a pending permission request from the SDK. */
270
+ respondToPermissionRequest(requestId: string, approved: boolean): void;
271
+ /** Return the descriptor for this agent. */
272
+ getDescriptor(): IAgentDescriptor;
273
+ /** List available models from this provider. */
274
+ listModels(): Promise<IAgentModelInfo[]>;
275
+ /** List persisted sessions from this provider. */
276
+ listSessions(): Promise<IAgentSessionMetadata[]>;
277
+ /** Declare protected resources this agent requires auth for (RFC 9728). */
278
+ getProtectedResources(): IAuthorizationProtectedResourceMetadata[];
279
+ /**
280
+ * Authenticate for a specific resource. Returns true if accepted.
281
+ * The `resource` matches {@link IAuthorizationProtectedResourceMetadata.resource}.
282
+ */
283
+ authenticate(resource: string, token: string): Promise<boolean>;
284
+ /** Gracefully shut down all sessions. */
285
+ shutdown(): Promise<void>;
286
+ /** Dispose this provider and all its resources. */
287
+ dispose(): void;
288
+ }
289
+ /**
290
+ * A concrete connection to an agent host - local utility process or remote
291
+ * WebSocket. Extends the core protocol surface with a `clientId` used for
292
+ * write-ahead reconciliation. Both {@link IAgentHostService} (local) and
293
+ * per-connection objects from {@link IRemoteAgentHostService} (remote)
294
+ * satisfy this contract.
295
+ */
296
+ export interface IAgentConnection extends IAgentService {
297
+ /** Unique identifier for this client connection, used as the origin in action envelopes. */
298
+ readonly clientId: string;
299
+ }
300
+ export {};
@@ -0,0 +1,31 @@
1
+
2
+ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
3
+
4
+ var AgentHostIpcChannels;
5
+ (function(AgentHostIpcChannels) {
6
+ AgentHostIpcChannels["AgentHost"] = "agentHost";
7
+ AgentHostIpcChannels["Logger"] = "agentHostLogger";
8
+ })(AgentHostIpcChannels || (AgentHostIpcChannels = {}));
9
+ const AgentHostEnabledSettingId = "chat.agentHost.enabled";
10
+ var AgentSession;
11
+ (function(AgentSession) {
12
+ function uri(provider, rawSessionId) {
13
+ return ( URI.from({
14
+ scheme: provider,
15
+ path: `/${rawSessionId}`
16
+ }));
17
+ }
18
+ AgentSession.uri = uri;
19
+ function id(session) {
20
+ const parsed = typeof session === "string" ? ( URI.parse(session)) : session;
21
+ return parsed.path.substring(1);
22
+ }
23
+ AgentSession.id = id;
24
+ function provider(session) {
25
+ const parsed = typeof session === "string" ? ( URI.parse(session)) : session;
26
+ return parsed.scheme || undefined;
27
+ }
28
+ AgentSession.provider = provider;
29
+ })(AgentSession || (AgentSession = {}));
30
+
31
+ export { AgentHostEnabledSettingId, AgentHostIpcChannels, AgentSession };
@@ -0,0 +1,84 @@
1
+ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
2
+ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
3
+ import { IAgentDescriptor, IResourceMetadata, IAuthenticateParams, IAuthenticateResult, IAgentSessionMetadata, IAgentCreateSessionConfig, type IAgentConnection } from "./agentService.js";
4
+ import { IActionEnvelope, INotification, ISessionAction } from "./state/sessionActions.js";
5
+ import { IBrowseDirectoryResult } from "./state/sessionProtocol.js";
6
+ import { ISnapshot as IStateSnapshot } from "./state/sessionState.js";
7
+ export declare const IAgentService: import("@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation").ServiceIdentifier<IAgentService>;
8
+ /**
9
+ * Service contract for communicating with the agent host process. Methods here
10
+ * are proxied across MessagePort via `ProxyChannel`.
11
+ *
12
+ * State is synchronized via the subscribe/unsubscribe/dispatchAction protocol.
13
+ * Clients observe root state (agents, models) and session state via subscriptions,
14
+ * and mutate state by dispatching actions (e.g. session/turnStarted, session/turnCancelled).
15
+ */
16
+ export interface IAgentService {
17
+ readonly _serviceBrand: undefined;
18
+ /** Discover available agent backends from the agent host. */
19
+ listAgents(): Promise<IAgentDescriptor[]>;
20
+ /**
21
+ * Retrieve the resource metadata describing auth requirements.
22
+ * Modeled on RFC 9728 (OAuth 2.0 Protected Resource Metadata).
23
+ */
24
+ getResourceMetadata(): Promise<IResourceMetadata>;
25
+ /**
26
+ * Authenticate for a protected resource on the server.
27
+ * The {@link IAuthenticateParams.resource} must match a resource from
28
+ * {@link getResourceMetadata}. Analogous to RFC 6750 bearer token delivery.
29
+ */
30
+ authenticate(params: IAuthenticateParams): Promise<IAuthenticateResult>;
31
+ /**
32
+ * Refresh the model list from all providers, publishing updated
33
+ * agents (with models) to root state via `root/agentsChanged`.
34
+ */
35
+ refreshModels(): Promise<void>;
36
+ /** List all available sessions from the Copilot CLI. */
37
+ listSessions(): Promise<IAgentSessionMetadata[]>;
38
+ /** Create a new session. Returns the session URI. */
39
+ createSession(config?: IAgentCreateSessionConfig): Promise<URI>;
40
+ /** Dispose a session in the agent host, freeing SDK resources. */
41
+ disposeSession(session: URI): Promise<void>;
42
+ /** Gracefully shut down all sessions and the underlying client. */
43
+ shutdown(): Promise<void>;
44
+ /**
45
+ * Subscribe to state at the given URI. Returns a snapshot of the current
46
+ * state and the serverSeq at snapshot time. Subsequent actions for this
47
+ * resource arrive via {@link onDidAction}.
48
+ */
49
+ subscribe(resource: URI): Promise<IStateSnapshot>;
50
+ /** Unsubscribe from state updates for the given URI. */
51
+ unsubscribe(resource: URI): void;
52
+ /**
53
+ * Fires when the server applies an action to subscribable state.
54
+ * Clients use this alongside {@link subscribe} to keep their local
55
+ * state in sync.
56
+ */
57
+ readonly onDidAction: Event<IActionEnvelope>;
58
+ /**
59
+ * Fires when the server broadcasts an ephemeral notification
60
+ * (e.g. sessionAdded, sessionRemoved).
61
+ */
62
+ readonly onDidNotification: Event<INotification>;
63
+ /**
64
+ * Dispatch a client-originated action to the server. The server applies
65
+ * it to state, triggers side effects, and echoes it back via
66
+ * {@link onDidAction} with the client's origin for reconciliation.
67
+ */
68
+ dispatchAction(action: ISessionAction, clientId: string, clientSeq: number): void;
69
+ /**
70
+ * List the contents of a directory on the agent host's filesystem.
71
+ * Used by the client to drive a remote folder picker before session creation.
72
+ */
73
+ browseDirectory(uri: URI): Promise<IBrowseDirectoryResult>;
74
+ }
75
+ export declare const IAgentHostService: import("@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation").ServiceIdentifier<IAgentHostService>;
76
+ /**
77
+ * The local wrapper around the agent host process (manages lifecycle, restart,
78
+ * exposes the proxied service). Consumed by the main process and workbench.
79
+ */
80
+ export interface IAgentHostService extends IAgentConnection {
81
+ readonly onAgentHostExit: Event<number>;
82
+ readonly onAgentHostStart: Event<void>;
83
+ restartAgentHost(): Promise<void>;
84
+ }
@@ -0,0 +1,16 @@
1
+ import { type IStateAction, type IRootAgentsChangedAction, type IRootActiveSessionsChangedAction, type ISessionReadyAction, type ISessionCreationFailedAction, type ISessionTurnStartedAction, type ISessionDeltaAction, type ISessionResponsePartAction, type ISessionToolCallStartAction, type ISessionToolCallDeltaAction, type ISessionToolCallReadyAction, type ISessionToolCallConfirmedAction, type ISessionToolCallCompleteAction, type ISessionToolCallResultConfirmedAction, type ISessionPermissionRequestAction, type ISessionPermissionResolvedAction, type ISessionTurnCompleteAction, type ISessionTurnCancelledAction, type ISessionErrorAction, type ISessionTitleChangedAction, type ISessionUsageAction, type ISessionReasoningAction, type ISessionModelChangedAction, type ISessionServerToolsChangedAction, type ISessionActiveClientChangedAction, type ISessionActiveClientToolsChangedAction } from "./actions.js";
2
+ /** Union of all root-scoped actions. */
3
+ export type IRootAction = IRootAgentsChangedAction | IRootActiveSessionsChangedAction;
4
+ /** Union of all session-scoped actions. */
5
+ export type ISessionAction = ISessionReadyAction | ISessionCreationFailedAction | ISessionTurnStartedAction | ISessionDeltaAction | ISessionResponsePartAction | ISessionToolCallStartAction | ISessionToolCallDeltaAction | ISessionToolCallReadyAction | ISessionToolCallConfirmedAction | ISessionToolCallCompleteAction | ISessionToolCallResultConfirmedAction | ISessionPermissionRequestAction | ISessionPermissionResolvedAction | ISessionTurnCompleteAction | ISessionTurnCancelledAction | ISessionErrorAction | ISessionTitleChangedAction | ISessionUsageAction | ISessionReasoningAction | ISessionModelChangedAction | ISessionServerToolsChangedAction | ISessionActiveClientChangedAction | ISessionActiveClientToolsChangedAction;
6
+ /** Union of session actions that clients may dispatch. */
7
+ export type IClientSessionAction = ISessionTurnStartedAction | ISessionToolCallConfirmedAction | ISessionToolCallCompleteAction | ISessionToolCallResultConfirmedAction | ISessionPermissionResolvedAction | ISessionTurnCancelledAction | ISessionModelChangedAction | ISessionActiveClientChangedAction | ISessionActiveClientToolsChangedAction;
8
+ /** Union of session actions that only the server may produce. */
9
+ export type IServerSessionAction = ISessionReadyAction | ISessionCreationFailedAction | ISessionDeltaAction | ISessionResponsePartAction | ISessionToolCallStartAction | ISessionToolCallDeltaAction | ISessionToolCallReadyAction | ISessionPermissionRequestAction | ISessionTurnCompleteAction | ISessionErrorAction | ISessionTitleChangedAction | ISessionUsageAction | ISessionReasoningAction | ISessionServerToolsChangedAction;
10
+ /**
11
+ * Exhaustive map indicating which action types may be dispatched by clients.
12
+ * Adding a new action to IStateAction without adding it here is a compile error.
13
+ */
14
+ export declare const IS_CLIENT_DISPATCHABLE: {
15
+ readonly [K in IStateAction["type"]]: boolean;
16
+ };