@codingame/monaco-vscode-chat-service-override 31.0.0 → 32.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +21 -5
  3. package/package.json +5 -5
  4. package/vscode/src/vs/base/common/defaultAccount.d.ts +69 -0
  5. package/vscode/src/vs/base/common/defaultAccount.js +12 -0
  6. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +91 -22
  7. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +301 -68
  8. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +24 -5
  9. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +89 -16
  10. package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.d.ts +17 -5
  11. package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.js +73 -10
  12. package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +32 -6
  13. package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +32 -20
  14. package/vscode/src/vs/platform/agentHost/common/agentHostPermissionService.d.ts +37 -0
  15. package/vscode/src/vs/platform/agentHost/common/agentHostPermissionService.js +15 -0
  16. package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +242 -201
  17. package/vscode/src/vs/platform/agentHost/common/agentService.js +3 -1
  18. package/vscode/src/vs/platform/agentHost/common/ahpJsonlLogger.d.ts +35 -0
  19. package/vscode/src/vs/platform/agentHost/common/ahpJsonlLogger.js +106 -0
  20. package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +38 -30
  21. package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +2 -1
  22. package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +114 -4
  23. package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.d.ts +10 -10
  24. package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.js +52 -19
  25. package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +42 -0
  26. package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +7 -0
  27. package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +42 -41
  28. package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.d.ts +6 -6
  29. package/vscode/src/vs/platform/agentHost/common/transportConstants.d.ts +15 -0
  30. package/vscode/src/vs/platform/agentHost/common/transportConstants.js +6 -0
  31. package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.d.ts +4 -3
  32. package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.js +4 -3
  33. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.d.ts +4 -2
  34. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +15 -7
  35. package/vscode/src/vs/workbench/contrib/browserView/common/browserChatToolReferenceNames.d.ts +19 -0
  36. package/vscode/src/vs/workbench/contrib/browserView/common/browserChatToolReferenceNames.js +17 -0
  37. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
  38. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +2 -2
  39. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +16 -16
  40. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +14 -10
  41. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +64 -59
  42. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
  43. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +31 -16
  44. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +18 -9
  45. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.d.ts +16 -0
  46. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +8 -8
  47. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +30 -5
  48. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
  49. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +8 -7
  50. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
  51. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
  52. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
  53. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +12 -12
  54. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +12 -12
  55. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +27 -18
  56. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
  57. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +11 -11
  58. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
  59. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +21 -20
  60. package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +22 -22
  61. package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.d.ts +12 -0
  62. package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.js +171 -0
  63. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +1 -1
  64. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +8 -8
  65. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +4 -4
  66. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
  67. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +1 -1
  68. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +3 -2
  69. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +12 -10
  70. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.d.ts +28 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +99 -0
  72. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.d.ts +2 -1
  73. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.js +11 -4
  74. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +9 -3
  75. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +63 -53
  76. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +2 -0
  77. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +10 -7
  78. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +3 -3
  79. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
  80. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
  81. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
  82. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +5 -4
  83. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +25 -48
  84. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
  85. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
  86. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +5 -0
  87. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +8 -4
  88. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +99 -39
  89. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +2 -2
  90. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +17 -30
  91. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.d.ts +78 -0
  92. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +38 -0
  93. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +35 -37
  94. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +347 -326
  95. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +6 -2
  96. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +1 -11
  97. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +113 -109
  98. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +37 -15
  99. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +436 -134
  100. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
  101. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +2 -0
  102. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +52 -26
  103. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +7 -1
  104. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +2 -1
  105. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +13 -5
  106. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.d.ts +23 -0
  107. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +60 -0
  108. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.d.ts +25 -0
  109. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +93 -0
  110. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +9 -2
  111. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +73 -104
  112. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +272 -41
  113. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +12 -2
  114. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +30 -1
  115. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +430 -185
  116. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +5 -2
  117. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +44 -3
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +480 -279
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.d.ts +138 -0
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.js +221 -0
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +84 -0
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +1216 -0
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +2 -1
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +32 -4
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +26 -19
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
  132. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +28 -25
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +13 -13
  134. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
  135. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +25 -24
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +2 -1
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +68 -33
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
  141. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +3 -2
  142. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +1 -0
  143. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +650 -6
  144. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +2 -2
  145. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
  146. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
  147. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +29 -0
  148. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +390 -0
  149. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
  150. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
  151. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
  152. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
  153. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +18 -3
  154. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
  155. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +11 -11
  156. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -2
  157. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
  158. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
  159. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
  160. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +1 -1
  161. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -7
  162. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
  163. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +1 -7
  164. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +6 -87
  165. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +1 -1
  166. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +116 -182
  167. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +12 -39
  168. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
  169. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +31 -31
  170. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
  171. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +61 -41
  172. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
  173. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
  174. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +27 -27
  175. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +2 -0
  176. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +16 -13
  177. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +20 -0
  178. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +106 -36
  179. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +25 -7
  180. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +629 -425
  181. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +9 -1
  182. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +105 -29
  183. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.d.ts +1 -0
  184. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +175 -148
  185. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +20 -33
  186. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +9 -2
  187. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
  188. package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
  189. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
  190. package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +4 -4
  191. package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
  192. package/vscode/src/vs/workbench/contrib/chat/browser/githubRepoFetcher.d.ts +58 -0
  193. package/vscode/src/vs/workbench/contrib/chat/browser/githubRepoFetcher.js +339 -0
  194. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
  195. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/media/planReviewFeedback.css +160 -0
  196. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.d.ts +9 -0
  197. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +123 -0
  198. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.d.ts +37 -0
  199. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +572 -0
  200. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.d.ts +36 -0
  201. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.js +167 -0
  202. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.d.ts +49 -7
  203. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +315 -19
  204. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +45 -24
  205. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
  206. package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
  207. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
  208. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +44 -40
  209. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +5 -5
  210. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
  211. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileContributions.js +4 -1
  212. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
  213. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
  214. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
  215. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
  216. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
  217. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
  218. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
  219. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +9 -1
  220. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +111 -52
  221. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +3 -7
  222. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +13 -47
  223. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +3 -2
  224. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +4 -8
  225. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.d.ts +18 -0
  226. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.js +56 -0
  227. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +3 -7
  228. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +14 -52
  229. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  230. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +3 -1
  231. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +17 -2
  232. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +2 -0
  233. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +23 -12
  234. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.d.ts +39 -0
  235. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +136 -0
  236. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.d.ts +72 -0
  237. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.js +56 -0
  238. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.d.ts +7 -0
  239. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.js +14 -1
  240. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +41 -26
  241. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +30 -12
  242. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
  243. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
  244. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +2 -5
  245. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +25 -6
  246. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
  247. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +2 -2
  248. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +5 -4
  249. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +1 -0
  250. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +108 -45
  251. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +7 -3
  252. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +3 -1
  253. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +20 -1
  254. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +65 -26
  255. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +5 -3
  256. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +38 -11
  257. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +17 -1
  258. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +165 -16
  259. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +1 -0
  260. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +62 -1
  261. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
  262. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -1
  263. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
  264. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -3
  265. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +15 -21
  266. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +1 -3
  267. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +18 -24
  268. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +4 -2
  269. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +203 -180
  270. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  271. package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.d.ts +30 -0
  272. package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.js +35 -0
  273. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +2 -1
  274. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +27 -2
  275. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -1
  276. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +14 -49
  277. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +0 -16
  278. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +35 -177
  279. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -8
  280. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.d.ts +1 -2
  281. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +2 -3
  282. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +4 -4
  283. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +11 -11
  284. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  285. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  286. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +13 -13
  287. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
  288. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
  289. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  290. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  291. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
  292. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +29 -3
  293. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +129 -3
  294. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +3 -2
  295. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +2 -1
  296. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +14 -6
  297. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
  298. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.d.ts +1 -4
  299. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +12 -38
  300. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
  301. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +4 -4
  302. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
  303. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.d.ts +12 -7
  304. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +77 -70
  305. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
  306. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
  307. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
  308. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  309. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.d.ts +32 -0
  310. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.js +232 -0
  311. package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.d.ts +83 -0
  312. package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.js +243 -0
  313. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +0 -749
  314. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.js +0 -14
  315. package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.d.ts +0 -17
  316. package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.js +0 -5
  317. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +0 -40
  318. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.js +0 -14
  319. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +0 -61
  320. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +0 -638
  321. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +0 -131
  322. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +0 -363
  323. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +0 -24
  324. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +0 -306
  325. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.d.ts +0 -23
  326. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +0 -97
  327. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatStatusWidget.css +0 -57
  328. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +0 -50
  329. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +0 -29
  330. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +0 -50
  331. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +0 -78
  332. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +0 -77
  333. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +0 -120
  334. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +0 -10
  335. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +0 -23
  336. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +0 -242
  337. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +0 -1701
  338. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +0 -191
  339. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +0 -728
  340. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +0 -14
  341. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +0 -69
@@ -1,749 +0,0 @@
1
- import type { URI, ISnapshot, ISessionConfigSchema, ISessionSummary, IModelSelection, ITurn, ITerminalClaim } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/state";
2
- import type { IActionEnvelope, IStateAction } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions";
3
- export type { IConfigPropertySchema, IConfigSchema, ISessionConfigPropertySchema, ISessionConfigSchema } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/state";
4
- /**
5
- * Establishes a new connection and negotiates the protocol version.
6
- * This MUST be the first message sent by the client.
7
- *
8
- * @category Commands
9
- * @method initialize
10
- * @direction Client → Server
11
- * @messageType Request
12
- * @version 1
13
- * @see {@link /specification/lifecycle | Lifecycle} for the full handshake flow.
14
- */
15
- export interface IInitializeParams {
16
- /** Protocol version the client speaks */
17
- protocolVersion: number;
18
- /** Unique client identifier */
19
- clientId: string;
20
- /** URIs to subscribe to during handshake */
21
- initialSubscriptions?: URI[];
22
- }
23
- /**
24
- * Result of the `initialize` command.
25
- *
26
- * If the server does not support the client's protocol version, it MUST return
27
- * error code `-32005` (`UnsupportedProtocolVersion`).
28
- */
29
- export interface IInitializeResult {
30
- /** Protocol version the server speaks */
31
- protocolVersion: number;
32
- /** Current server sequence number */
33
- serverSeq: number;
34
- /** Snapshots for each `initialSubscriptions` URI */
35
- snapshots: ISnapshot[];
36
- /** Suggested default directory for remote filesystem browsing */
37
- defaultDirectory?: URI;
38
- }
39
- /**
40
- * Discriminant for reconnect result types.
41
- *
42
- * @category Commands
43
- */
44
- export declare enum ReconnectResultType {
45
- Replay = "replay",
46
- Snapshot = "snapshot"
47
- }
48
- /**
49
- * Re-establishes a dropped connection. The server replays missed actions or
50
- * provides fresh snapshots.
51
- *
52
- * @category Commands
53
- * @method reconnect
54
- * @direction Client → Server
55
- * @messageType Request
56
- * @version 1
57
- * @see {@link /specification/lifecycle | Lifecycle} for details.
58
- */
59
- export interface IReconnectParams {
60
- /** Client identifier from the original connection */
61
- clientId: string;
62
- /** Last `serverSeq` the client received */
63
- lastSeenServerSeq: number;
64
- /** URIs the client was subscribed to */
65
- subscriptions: URI[];
66
- }
67
- /**
68
- * Reconnect result when the server can replay from the requested sequence.
69
- *
70
- * The server MUST include all replayed data in the response.
71
- */
72
- export interface IReconnectReplayResult {
73
- /** Discriminant */
74
- type: ReconnectResultType.Replay;
75
- /** Missed action envelopes since `lastSeenServerSeq` */
76
- actions: IActionEnvelope[];
77
- }
78
- /**
79
- * Reconnect result when the gap exceeds the replay buffer.
80
- */
81
- export interface IReconnectSnapshotResult {
82
- /** Discriminant */
83
- type: ReconnectResultType.Snapshot;
84
- /** Fresh snapshots for each subscription */
85
- snapshots: ISnapshot[];
86
- }
87
- /** Result of the `reconnect` command. */
88
- export type IReconnectResult = IReconnectReplayResult | IReconnectSnapshotResult;
89
- /**
90
- * Subscribe to a URI-identified state resource.
91
- *
92
- * @category Commands
93
- * @method subscribe
94
- * @direction Client → Server
95
- * @messageType Request
96
- * @version 1
97
- * @see {@link /specification/subscriptions | Subscriptions}
98
- */
99
- export interface ISubscribeParams {
100
- /** URI to subscribe to */
101
- resource: URI;
102
- }
103
- /**
104
- * Result of the `subscribe` command.
105
- */
106
- export interface ISubscribeResult {
107
- /** Snapshot of the subscribed resource */
108
- snapshot: ISnapshot;
109
- }
110
- /**
111
- * Creates a new session with the specified agent provider.
112
- *
113
- * If the session URI already exists, the server MUST return an error with code
114
- * `-32003` (`SessionAlreadyExists`).
115
- *
116
- * After creation, the client should subscribe to the session URI to receive state
117
- * updates. The server also broadcasts a `notify/sessionAdded` notification to all
118
- * clients.
119
- *
120
- * @category Commands
121
- * @method createSession
122
- * @direction Client → Server
123
- * @messageType Request
124
- * @version 1
125
- * @example
126
- * ```jsonc
127
- * // Client → Server
128
- * { "jsonrpc": "2.0", "id": 2, "method": "createSession",
129
- * "params": { "session": "copilot:/<uuid>", "provider": "copilot", "model": "gpt-4o" } }
130
- *
131
- * // Server → Client (success)
132
- * { "jsonrpc": "2.0", "id": 2, "result": null }
133
- *
134
- * // Server → Client (failure — provider not found)
135
- * { "jsonrpc": "2.0", "id": 2, "error": { "code": -32002, "message": "No agent for provider" } }
136
- *
137
- * // Server → Client (failure — session already exists)
138
- * { "jsonrpc": "2.0", "id": 2, "error": { "code": -32003, "message": "Session already exists" } }
139
- * ```
140
- */
141
- /**
142
- * Identifies a source session and turn to fork from.
143
- *
144
- * When provided in `createSession`, the server populates the new session with
145
- * content from the source session up to and including the response of the
146
- * specified turn.
147
- */
148
- export interface ISessionForkSource {
149
- /** URI of the existing session to fork from */
150
- session: URI;
151
- /** Turn ID in the source session; content up to and including this turn's response is copied */
152
- turnId: string;
153
- }
154
- export interface ICreateSessionParams {
155
- /** Session URI (client-chosen, e.g. `copilot:/<uuid>`) */
156
- session: URI;
157
- /** Agent provider ID */
158
- provider?: string;
159
- /** Model selection (ID and optional model-specific configuration) */
160
- model?: IModelSelection;
161
- /** Working directory for the session */
162
- workingDirectory?: URI;
163
- /**
164
- * Fork from an existing session. The new session is populated with content
165
- * from the source session up to and including the specified turn's response.
166
- */
167
- fork?: ISessionForkSource;
168
- /**
169
- * Agent-specific configuration values collected via `resolveSessionConfig`.
170
- * Keys and values correspond to the schema returned by the server.
171
- */
172
- config?: Record<string, string>;
173
- }
174
- /**
175
- * Disposes a session and cleans up server-side resources.
176
- *
177
- * The server broadcasts a `notify/sessionRemoved` notification to all clients.
178
- *
179
- * @category Commands
180
- * @method disposeSession
181
- * @direction Client → Server
182
- * @messageType Request
183
- * @version 1
184
- */
185
- export interface IDisposeSessionParams {
186
- /** Session URI to dispose */
187
- session: URI;
188
- }
189
- /**
190
- * Creates a new terminal on the server.
191
- *
192
- * After creation, the client should subscribe to the terminal URI to receive
193
- * state updates. The server dispatches `root/terminalsChanged` to update the
194
- * root terminal list.
195
- *
196
- * @category Commands
197
- * @method createTerminal
198
- * @direction Client → Server
199
- * @messageType Request
200
- * @version 1
201
- */
202
- export interface ICreateTerminalParams {
203
- /** Terminal URI (client-chosen) */
204
- terminal: URI;
205
- /** Initial owner of the terminal */
206
- claim: ITerminalClaim;
207
- /** Human-readable terminal name */
208
- name?: string;
209
- /** Initial working directory URI */
210
- cwd?: URI;
211
- /** Initial terminal width in columns */
212
- cols?: number;
213
- /** Initial terminal height in rows */
214
- rows?: number;
215
- }
216
- /**
217
- * Disposes a terminal and kills its process if still running.
218
- *
219
- * The server dispatches `root/terminalsChanged` to remove the terminal from
220
- * the root terminal list.
221
- *
222
- * @category Commands
223
- * @method disposeTerminal
224
- * @direction Client → Server
225
- * @messageType Request
226
- * @version 1
227
- */
228
- export interface IDisposeTerminalParams {
229
- /** Terminal URI to dispose */
230
- terminal: URI;
231
- }
232
- /**
233
- * Returns a list of session summaries. Used to populate session lists and sidebars.
234
- *
235
- * The session list is **not** part of the state tree because it can be arbitrarily
236
- * large. Clients fetch it imperatively and maintain a local cache updated by
237
- * `notify/sessionAdded` and `notify/sessionRemoved` notifications.
238
- *
239
- * @category Commands
240
- * @method listSessions
241
- * @direction Client → Server
242
- * @messageType Request
243
- * @version 1
244
- */
245
- export interface IListSessionsParams {
246
- /** Optional filter criteria */
247
- filter?: object;
248
- }
249
- /** Result of the `listSessions` command. */
250
- export interface IListSessionsResult {
251
- /** The list of session summaries. */
252
- items: ISessionSummary[];
253
- }
254
- /**
255
- * Encoding of fetched content data.
256
- *
257
- * @category Commands
258
- */
259
- export declare enum ContentEncoding {
260
- Base64 = "base64",
261
- Utf8 = "utf-8"
262
- }
263
- /**
264
- * Reads the content of a resource by URI.
265
- *
266
- * Content references keep the state tree small by storing large data (images,
267
- * long tool outputs) by reference rather than inline.
268
- *
269
- * Binary content (images, etc.) MUST use `base64` encoding. Text content MAY
270
- * use `utf-8` encoding.
271
- *
272
- * @category Commands
273
- * @method resourceRead
274
- * @direction Client → Server
275
- * @messageType Request
276
- * @version 1
277
- * @throws `NotFound` (`-32008`) if the URI does not exist.
278
- * @throws `PermissionDenied` (`-32009`) if the client is not permitted to read the URI.
279
- * @example
280
- * ```jsonc
281
- * // Client → Server
282
- * { "jsonrpc": "2.0", "id": 10, "method": "resourceRead",
283
- * "params": { "uri": "copilot:/<uuid>/content/img-1" } }
284
- *
285
- * // Server → Client
286
- * { "jsonrpc": "2.0", "id": 10, "result": {
287
- * "data": "iVBORw0KGgo...",
288
- * "encoding": "base64",
289
- * "contentType": "image/png"
290
- * }}
291
- * ```
292
- */
293
- export interface IResourceReadParams {
294
- /** Content URI from a `ContentRef` */
295
- uri: string;
296
- /** Preferred encoding for the returned data (default: server-chosen) */
297
- encoding?: ContentEncoding;
298
- }
299
- /**
300
- * Result of the `resourceRead` command.
301
- *
302
- * The server SHOULD honor the `encoding` requested in the params. If the
303
- * server cannot provide the requested encoding, it MUST fall back to either
304
- * `base64` or `utf-8`.
305
- */
306
- export interface IResourceReadResult {
307
- /** Content encoded as a string */
308
- data: string;
309
- /** How `data` is encoded */
310
- encoding: ContentEncoding;
311
- /** Content type (e.g. `"image/png"`, `"text/plain"`) */
312
- contentType?: string;
313
- }
314
- /**
315
- * Writes content to a file on the server's filesystem.
316
- *
317
- * Binary content (images, etc.) MUST use `base64` encoding. Text content MAY
318
- * use `utf-8` encoding.
319
- *
320
- * If the file does not exist, it is created. If the file already exists, it is
321
- * overwritten unless `createOnly` is set.
322
- *
323
- * @category Commands
324
- * @method resourceWrite
325
- * @direction Client → Server
326
- * @messageType Request
327
- * @version 1
328
- * @throws `NotFound` (`-32008`) if the parent directory does not exist.
329
- * @throws `PermissionDenied` (`-32009`) if the client is not permitted to write to the path.
330
- * @throws `AlreadyExists` (`-32010`) if `createOnly` is set and the file already exists.
331
- * @example
332
- * ```jsonc
333
- * // Client → Server
334
- * { "jsonrpc": "2.0", "id": 11, "method": "resourceWrite",
335
- * "params": { "uri": "file:///workspace/hello.txt", "data": "SGVsbG8=",
336
- * "encoding": "base64", "contentType": "text/plain" } }
337
- *
338
- * // Server → Client
339
- * { "jsonrpc": "2.0", "id": 11, "result": {} }
340
- * ```
341
- */
342
- export interface IResourceWriteParams {
343
- /** Target file URI on the server filesystem */
344
- uri: URI;
345
- /** Content encoded as a string */
346
- data: string;
347
- /** How `data` is encoded */
348
- encoding: ContentEncoding;
349
- /** Content type (e.g. `"text/plain"`, `"image/png"`) */
350
- contentType?: string;
351
- /**
352
- * If `true`, the server MUST fail if the file already exists instead of
353
- * overwriting it. Useful for safe creation of new files.
354
- */
355
- createOnly?: boolean;
356
- }
357
- /**
358
- * Result of the `resourceWrite` command.
359
- *
360
- * An empty object on success.
361
- */
362
- export interface IResourceWriteResult {
363
- }
364
- /**
365
- * Lists directory entries at a file URI on the server's filesystem.
366
- *
367
- * This is intended for remote folder pickers and similar UI that needs to let
368
- * users navigate the server's local filesystem.
369
- *
370
- * The server MUST return success only if the target exists and is a directory.
371
- * If the target does not exist, is not a directory, or cannot be accessed, the
372
- * server MUST return a JSON-RPC error.
373
- *
374
- * @category Commands
375
- * @method resourceList
376
- * @direction Client → Server
377
- * @messageType Request
378
- * @version 1
379
- * @throws `NotFound` (`-32008`) if the directory does not exist.
380
- * @throws `PermissionDenied` (`-32009`) if the client is not permitted to browse the directory.
381
- */
382
- export interface IResourceListParams {
383
- /** Directory URI on the server filesystem */
384
- uri: URI;
385
- }
386
- /**
387
- * Directory entry returned by `resourceList`.
388
- */
389
- export interface IDirectoryEntry {
390
- /** Base name of the entry */
391
- name: string;
392
- /** Whether the entry is a file or directory */
393
- type: "file" | "directory";
394
- }
395
- /**
396
- * Result of the `resourceList` command.
397
- */
398
- export interface IResourceListResult {
399
- /** Entries directly contained in the requested directory */
400
- entries: IDirectoryEntry[];
401
- }
402
- /**
403
- * Fetches historical turns for a session. Used for lazy loading of conversation
404
- * history.
405
- *
406
- * @category Commands
407
- * @method fetchTurns
408
- * @direction Client → Server
409
- * @messageType Request
410
- * @version 1
411
- * @example
412
- * ```jsonc
413
- * // Client → Server (fetch the 20 most recent turns)
414
- * { "jsonrpc": "2.0", "id": 8, "method": "fetchTurns",
415
- * "params": { "session": "copilot:/<uuid>", "limit": 20 } }
416
- *
417
- * // Server → Client
418
- * { "jsonrpc": "2.0", "id": 8, "result": {
419
- * "turns": [ { "id": "t1", ... }, { "id": "t2", ... } ],
420
- * "hasMore": true
421
- * }}
422
- *
423
- * // Client → Server (fetch 20 turns before t1)
424
- * { "jsonrpc": "2.0", "id": 9, "method": "fetchTurns",
425
- * "params": { "session": "copilot:/<uuid>", "before": "t1", "limit": 20 } }
426
- * ```
427
- */
428
- export interface IFetchTurnsParams {
429
- /** Session URI */
430
- session: URI;
431
- /** Turn ID to fetch before (exclusive). Omit to fetch from the most recent turn. */
432
- before?: string;
433
- /** Maximum number of turns to return. Server MAY impose its own upper bound. */
434
- limit?: number;
435
- }
436
- /**
437
- * Result of the `fetchTurns` command.
438
- */
439
- export interface IFetchTurnsResult {
440
- /** The requested turns, ordered oldest-first */
441
- turns: ITurn[];
442
- /** Whether more turns exist before the returned range */
443
- hasMore: boolean;
444
- }
445
- /**
446
- * Stop receiving updates for a URI.
447
- *
448
- * @category Commands
449
- * @method unsubscribe
450
- * @direction Client → Server
451
- * @messageType Notification
452
- * @version 1
453
- * @see {@link /specification/subscriptions | Subscriptions}
454
- */
455
- export interface IUnsubscribeParams {
456
- /** URI to unsubscribe from */
457
- resource: URI;
458
- }
459
- /**
460
- * Fire-and-forget action dispatch (write-ahead). The client applies actions
461
- * optimistically to local state.
462
- *
463
- * @category Commands
464
- * @method dispatchAction
465
- * @direction Client → Server
466
- * @messageType Notification
467
- * @version 1
468
- * @see {@link /guide/actions | Actions} for the full list of client-dispatchable actions.
469
- */
470
- export interface IDispatchActionParams {
471
- /** Client sequence number */
472
- clientSeq: number;
473
- /** The action to dispatch */
474
- action: IStateAction;
475
- }
476
- /**
477
- * Copies a resource from one URI to another on the server's filesystem.
478
- *
479
- * If the destination already exists, it is overwritten unless `failIfExists`
480
- * is set.
481
- *
482
- * @category Commands
483
- * @method resourceCopy
484
- * @direction Client → Server
485
- * @messageType Request
486
- * @version 1
487
- * @throws `NotFound` (`-32008`) if the source does not exist.
488
- * @throws `PermissionDenied` (`-32009`) if the client is not permitted to read the source or write to the destination.
489
- * @throws `AlreadyExists` (`-32010`) if `failIfExists` is set and the destination already exists.
490
- */
491
- export interface IResourceCopyParams {
492
- /** Source URI to copy from */
493
- source: URI;
494
- /** Destination URI to copy to */
495
- destination: URI;
496
- /**
497
- * If `true`, the server MUST fail if the destination already exists instead
498
- * of overwriting it.
499
- */
500
- failIfExists?: boolean;
501
- }
502
- /**
503
- * Result of the `resourceCopy` command.
504
- *
505
- * An empty object on success.
506
- */
507
- export interface IResourceCopyResult {
508
- }
509
- /**
510
- * Deletes a resource at a URI on the server's filesystem.
511
- *
512
- * @category Commands
513
- * @method resourceDelete
514
- * @direction Client → Server
515
- * @messageType Request
516
- * @version 1
517
- * @throws `NotFound` (`-32008`) if the resource does not exist.
518
- * @throws `PermissionDenied` (`-32009`) if the client is not permitted to delete the resource.
519
- */
520
- export interface IResourceDeleteParams {
521
- /** URI of the resource to delete */
522
- uri: URI;
523
- /**
524
- * If `true` and the target is a directory, delete it and all its contents
525
- * recursively. If `false` (default), deleting a non-empty directory MUST fail.
526
- */
527
- recursive?: boolean;
528
- }
529
- /**
530
- * Result of the `resourceDelete` command.
531
- *
532
- * An empty object on success.
533
- */
534
- export interface IResourceDeleteResult {
535
- }
536
- /**
537
- * Moves (renames) a resource from one URI to another on the server's filesystem.
538
- *
539
- * If the destination already exists, it is overwritten unless `failIfExists`
540
- * is set.
541
- *
542
- * @category Commands
543
- * @method resourceMove
544
- * @direction Client → Server
545
- * @messageType Request
546
- * @version 1
547
- * @throws `NotFound` (`-32008`) if the source does not exist.
548
- * @throws `PermissionDenied` (`-32009`) if the client is not permitted to move the resource.
549
- * @throws `AlreadyExists` (`-32010`) if `failIfExists` is set and the destination already exists.
550
- */
551
- export interface IResourceMoveParams {
552
- /** Source URI to move from */
553
- source: URI;
554
- /** Destination URI to move to */
555
- destination: URI;
556
- /**
557
- * If `true`, the server MUST fail if the destination already exists instead
558
- * of overwriting it.
559
- */
560
- failIfExists?: boolean;
561
- }
562
- /**
563
- * Result of the `resourceMove` command.
564
- *
565
- * An empty object on success.
566
- */
567
- export interface IResourceMoveResult {
568
- }
569
- /**
570
- * Pushes a Bearer token for a protected resource. The `resource` field MUST
571
- * match an `IProtectedResourceMetadata.resource` value declared by an agent
572
- * in `IAgentInfo.protectedResources`.
573
- *
574
- * Tokens are delivered using [RFC 6750](https://datatracker.ietf.org/doc/html/rfc6750)
575
- * (Bearer Token Usage) semantics. The client obtains the token from the
576
- * authorization server(s) listed in the resource's metadata and pushes it
577
- * to the server via this command.
578
- *
579
- * @category Commands
580
- * @method authenticate
581
- * @direction Client → Server
582
- * @messageType Request
583
- * @version 1
584
- * @see {@link /specification/authentication | Authentication}
585
- * @example
586
- * ```jsonc
587
- * // Client → Server
588
- * { "jsonrpc": "2.0", "id": 3, "method": "authenticate",
589
- * "params": { "resource": "https://api.github.com", "token": "gho_xxxx" } }
590
- *
591
- * // Server → Client (success)
592
- * { "jsonrpc": "2.0", "id": 3, "result": {} }
593
- *
594
- * // Server → Client (failure — invalid token)
595
- * { "jsonrpc": "2.0", "id": 3, "error": { "code": -32007, "message": "Invalid token" } }
596
- * ```
597
- */
598
- export interface IAuthenticateParams {
599
- /**
600
- * The protected resource identifier. MUST match a `resource` value from
601
- * `IProtectedResourceMetadata` declared in `IAgentInfo.protectedResources`.
602
- */
603
- resource: string;
604
- /** Bearer token obtained from the resource's authorization server */
605
- token: string;
606
- }
607
- /**
608
- * Result of the `authenticate` command.
609
- *
610
- * An empty object on success. If the token is invalid or the resource is
611
- * unrecognized, the server MUST return a JSON-RPC error (e.g. `AuthRequired`
612
- * `-32007` or `InvalidParams` `-32602`).
613
- */
614
- export interface IAuthenticateResult {
615
- }
616
- /**
617
- * Iteratively resolves the session configuration schema. The client sends the
618
- * current partial session config and any user-filled metadata values. The server
619
- * returns a property schema describing what additional metadata is needed,
620
- * contextual to the current selections.
621
- *
622
- * The client calls this command whenever the user changes a significant input
623
- * (e.g. picks a working directory, toggles a property). Each response returns
624
- * the full current property set (not a delta). The returned `values` contain
625
- * server-resolved defaults to pass to `createSession`.
626
- *
627
- * @category Commands
628
- * @method resolveSessionConfig
629
- * @direction Client → Server
630
- * @messageType Request
631
- * @version 1
632
- * @example
633
- * ```jsonc
634
- * // Step 1: Client picks a working directory
635
- * // Client → Server
636
- * { "jsonrpc": "2.0", "id": 5, "method": "resolveSessionConfig",
637
- * "params": { "workingDirectory": "file:///home/user/my-project" } }
638
- *
639
- * // Server → Client (git repo detected, offers worktree option)
640
- * { "jsonrpc": "2.0", "id": 5, "result": {
641
- * "schema": {
642
- * "type": "object",
643
- * "properties": {
644
- * "target": { "type": "string", "title": "Target", "enum": ["workspace", "worktree"] }
645
- * }
646
- * },
647
- * "values": {}
648
- * }}
649
- *
650
- * // Step 2: User enables worktree
651
- * // Client → Server
652
- * { "jsonrpc": "2.0", "id": 6, "method": "resolveSessionConfig",
653
- * "params": { "workingDirectory": "file:///home/user/my-project",
654
- * "config": { "target": "worktree" } } }
655
- *
656
- * // Server → Client (now requires branch selection)
657
- * { "jsonrpc": "2.0", "id": 6, "result": {
658
- * "schema": {
659
- * "type": "object",
660
- * "properties": {
661
- * "target": { "type": "string", "title": "Target", "enum": ["workspace", "worktree"] },
662
- * "baseBranch": { "type": "string", "title": "Base Branch",
663
- * "enum": ["main", "develop"],
664
- * "enumLabels": ["main", "develop"] }
665
- * },
666
- * "required": ["baseBranch"]
667
- * },
668
- * "values": { "target": "worktree" }
669
- * }}
670
- * ```
671
- */
672
- export interface IResolveSessionConfigParams {
673
- /** Agent provider ID */
674
- provider?: string;
675
- /** Working directory for the session */
676
- workingDirectory?: URI;
677
- /** Current user-filled configuration values */
678
- config?: Record<string, string>;
679
- }
680
- /**
681
- * Result of the `resolveSessionConfig` command.
682
- */
683
- export interface IResolveSessionConfigResult {
684
- /** JSON Schema describing available configuration properties given the current context */
685
- schema: ISessionConfigSchema;
686
- /** Current configuration values (echoed back with server-resolved defaults applied) */
687
- values: Record<string, string>;
688
- }
689
- /**
690
- * A single value item returned by `sessionConfigCompletions`.
691
- *
692
- * @category Commands
693
- */
694
- export interface ISessionConfigValueItem {
695
- /** The value to store in config */
696
- value: string;
697
- /** Human-readable display label */
698
- label: string;
699
- /** Optional secondary description */
700
- description?: string;
701
- }
702
- /**
703
- * Queries the server for allowed values of a dynamic session config property.
704
- *
705
- * Used when a property in the schema returned by `resolveSessionConfig` has
706
- * `enumDynamic: true`. The client sends a search query and receives matching
707
- * values with display metadata.
708
- *
709
- * @category Commands
710
- * @method sessionConfigCompletions
711
- * @direction Client → Server
712
- * @messageType Request
713
- * @version 1
714
- * @example
715
- * ```jsonc
716
- * // Client → Server (user types "ma" in branch picker)
717
- * { "jsonrpc": "2.0", "id": 7, "method": "sessionConfigCompletions",
718
- * "params": { "workingDirectory": "file:///home/user/my-project",
719
- * "config": { "target": "worktree" },
720
- * "property": "baseBranch", "query": "ma" } }
721
- *
722
- * // Server → Client
723
- * { "jsonrpc": "2.0", "id": 7, "result": {
724
- * "items": [
725
- * { "value": "main", "label": "main", "icon": "git-branch" },
726
- * { "value": "main-v2", "label": "main-v2", "icon": "git-branch" }
727
- * ]
728
- * }}
729
- * ```
730
- */
731
- export interface ISessionConfigCompletionsParams {
732
- /** Agent provider ID */
733
- provider?: string;
734
- /** Working directory for the session */
735
- workingDirectory?: URI;
736
- /** Current user-filled configuration values (provides context for the query) */
737
- config?: Record<string, string>;
738
- /** Property id from the schema to query values for */
739
- property: string;
740
- /** Search filter text (empty or omitted returns default/recent values) */
741
- query?: string;
742
- }
743
- /**
744
- * Result of the `sessionConfigCompletions` command.
745
- */
746
- export interface ISessionConfigCompletionsResult {
747
- /** Matching value items */
748
- items: ISessionConfigValueItem[];
749
- }