@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
@@ -0,0 +1,42 @@
1
+ import { type StateAction } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions";
2
+ import { type ProtocolNotification } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/notifications";
3
+ /**
4
+ * The current protocol version that new code speaks.
5
+ *
6
+ * Formatted as a [SemVer](https://semver.org) `MAJOR.MINOR.PATCH` string.
7
+ */
8
+ export declare const PROTOCOL_VERSION = "0.1.0";
9
+ /**
10
+ * Compares two `MAJOR.MINOR.PATCH` SemVer strings.
11
+ *
12
+ * Returns a negative number if `a < b`, zero if `a === b`, and a positive
13
+ * number if `a > b`.
14
+ */
15
+ export declare function compareProtocolVersions(a: string, b: string): number;
16
+ /**
17
+ * Maps every action type to the protocol version that introduced it.
18
+ * Adding a new action to `StateAction` without adding it here is a compile error.
19
+ *
20
+ * Versions are SemVer `MAJOR.MINOR.PATCH` strings (see `PROTOCOL_VERSION`).
21
+ */
22
+ export declare const ACTION_INTRODUCED_IN: {
23
+ readonly [K in StateAction["type"]]: string;
24
+ };
25
+ /**
26
+ * Returns whether the given action type is known to the specified protocol version.
27
+ */
28
+ export declare function isActionKnownToVersion(action: StateAction, clientVersion: string): boolean;
29
+ /**
30
+ * Maps every notification type to the protocol version that introduced it.
31
+ * Adding a new notification to `ProtocolNotification` without adding it here
32
+ * is a compile error.
33
+ *
34
+ * Versions are SemVer `MAJOR.MINOR.PATCH` strings (see `PROTOCOL_VERSION`).
35
+ */
36
+ export declare const NOTIFICATION_INTRODUCED_IN: {
37
+ readonly [K in ProtocolNotification["type"]]: string;
38
+ };
39
+ /**
40
+ * Returns whether the given notification type is known to the specified protocol version.
41
+ */
42
+ export declare function isNotificationKnownToVersion(notification: ProtocolNotification, clientVersion: string): boolean;
@@ -0,0 +1,7 @@
1
+
2
+ import '@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions';
3
+ import '@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/notifications';
4
+
5
+ const PROTOCOL_VERSION = "0.1.0";
6
+
7
+ export { PROTOCOL_VERSION };
@@ -1,41 +1,42 @@
1
- export { ActionType, type IActionEnvelope, type IActionOrigin, type IRootAgentsChangedAction, type IRootActiveSessionsChangedAction, type ISessionCreationFailedAction, type ISessionDeltaAction, type ISessionDiffsChangedAction, type ISessionErrorAction, type ISessionModelChangedAction, type ISessionReadyAction, type ISessionReasoningAction, type ISessionResponsePartAction, type ISessionToolCallCompleteAction, type ISessionToolCallConfirmedAction, type ISessionToolCallApprovedAction, type ISessionToolCallDeniedAction, type ISessionToolCallDeltaAction, type ISessionToolCallReadyAction, type ISessionToolCallResultConfirmedAction, type ISessionToolCallStartAction, type ISessionTitleChangedAction, type ISessionTurnCancelledAction, type ISessionTurnCompleteAction, type ISessionTurnStartedAction, type ISessionUsageAction, type ISessionServerToolsChangedAction, type ISessionActiveClientChangedAction, type ISessionActiveClientToolsChangedAction, type ISessionCustomizationsChangedAction, type ISessionCustomizationToggledAction, type ISessionPendingMessageSetAction, type ISessionPendingMessageRemovedAction, type ISessionQueuedMessagesReorderedAction, type ISessionInputRequestedAction, type ISessionInputCompletedAction, type ISessionIsReadChangedAction, type ISessionIsDoneChangedAction, type ISessionToolCallContentChangedAction, type IStateAction, } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions";
2
- export { NotificationType, AuthRequiredReason, type ISessionAddedNotification, type ISessionRemovedNotification, type IAuthRequiredNotification, } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/notifications";
3
- import type { IRootAgentsChangedAction, IRootActiveSessionsChangedAction, ISessionDeltaAction, ISessionModelChangedAction, ISessionReasoningAction, ISessionResponsePartAction, ISessionToolCallApprovedAction, ISessionToolCallCompleteAction, ISessionToolCallConfirmedAction, ISessionToolCallDeniedAction, ISessionToolCallDeltaAction, ISessionToolCallReadyAction, ISessionToolCallResultConfirmedAction, ISessionToolCallStartAction, ISessionTitleChangedAction, ISessionTurnCancelledAction, ISessionTurnCompleteAction, ISessionTurnStartedAction, ISessionUsageAction, IStateAction, ISessionPendingMessageSetAction, ISessionPendingMessageRemovedAction, ISessionQueuedMessagesReorderedAction, ISessionIsReadChangedAction, ISessionIsDoneChangedAction } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions";
4
- import type { IProtocolNotification } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/notifications";
5
- import type { IRootAction as IRootAction_, ISessionAction as ISessionAction_, IClientSessionAction as IClientSessionAction_, IServerSessionAction as IServerSessionAction_, ITerminalAction as ITerminalAction_, IClientTerminalAction as IClientTerminalAction_ } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/action-origin.generated";
6
- export type IRootAction = IRootAction_;
7
- export type ISessionAction = ISessionAction_;
8
- export type IClientSessionAction = IClientSessionAction_;
9
- export type IServerSessionAction = IServerSessionAction_;
10
- export type ITerminalAction = ITerminalAction_;
11
- export type IClientTerminalAction = IClientTerminalAction_;
12
- export type IAgentsChangedAction = IRootAgentsChangedAction;
13
- export type IActiveSessionsChangedAction = IRootActiveSessionsChangedAction;
14
- export type ITurnStartedAction = ISessionTurnStartedAction;
15
- export type IDeltaAction = ISessionDeltaAction;
16
- export type IResponsePartAction = ISessionResponsePartAction;
17
- export type IToolCallStartAction = ISessionToolCallStartAction;
18
- export type IToolCallDeltaAction = ISessionToolCallDeltaAction;
19
- export type IToolCallReadyAction = ISessionToolCallReadyAction;
20
- export type IToolCallApprovedAction = ISessionToolCallApprovedAction;
21
- export type IToolCallDeniedAction = ISessionToolCallDeniedAction;
22
- export type IToolCallConfirmedAction = ISessionToolCallConfirmedAction;
23
- export type IToolCallCompleteAction = ISessionToolCallCompleteAction;
24
- export type IToolCallResultConfirmedAction = ISessionToolCallResultConfirmedAction;
25
- export type ITurnCompleteAction = ISessionTurnCompleteAction;
26
- export type ITurnCancelledAction = ISessionTurnCancelledAction;
27
- export type ITitleChangedAction = ISessionTitleChangedAction;
28
- export type IUsageAction = ISessionUsageAction;
29
- export type IReasoningAction = ISessionReasoningAction;
30
- export type IModelChangedAction = ISessionModelChangedAction;
31
- export type ICustomizationsChangedAction = import("@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions").ISessionCustomizationsChangedAction;
32
- export type ICustomizationToggledAction = import("@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions").ISessionCustomizationToggledAction;
33
- export type IPendingMessageSetAction = ISessionPendingMessageSetAction;
34
- export type IPendingMessageRemovedAction = ISessionPendingMessageRemovedAction;
35
- export type IQueuedMessagesReorderedAction = ISessionQueuedMessagesReorderedAction;
36
- export type IIsReadChangedAction = ISessionIsReadChangedAction;
37
- export type IIsDoneChangedAction = ISessionIsDoneChangedAction;
38
- export type INotification = IProtocolNotification;
39
- export declare function isRootAction(action: IStateAction): action is IRootAction;
40
- export declare function isSessionAction(action: IStateAction): action is ISessionAction;
41
- export declare function isTerminalAction(action: IStateAction): action is ITerminalAction;
1
+ export { ActionType, type ActionEnvelope, type ActionOrigin, type RootAgentsChangedAction, type RootActiveSessionsChangedAction, type SessionCreationFailedAction, type SessionDeltaAction, type SessionDiffsChangedAction, type SessionErrorAction, type SessionModelChangedAction, type SessionReadyAction, type SessionReasoningAction, type SessionResponsePartAction, type SessionToolCallCompleteAction, type SessionToolCallConfirmedAction, type SessionToolCallApprovedAction, type SessionToolCallDeniedAction, type SessionToolCallDeltaAction, type SessionToolCallReadyAction, type SessionToolCallResultConfirmedAction, type SessionToolCallStartAction, type SessionTitleChangedAction, type SessionTurnCancelledAction, type SessionTurnCompleteAction, type SessionTurnStartedAction, type SessionUsageAction, type SessionServerToolsChangedAction, type SessionActiveClientChangedAction, type SessionActiveClientToolsChangedAction, type SessionCustomizationsChangedAction, type SessionCustomizationToggledAction, type SessionPendingMessageSetAction, type SessionPendingMessageRemovedAction, type SessionQueuedMessagesReorderedAction, type SessionInputRequestedAction, type SessionInputCompletedAction, type SessionIsReadChangedAction, type SessionIsArchivedChangedAction, type SessionToolCallContentChangedAction, type StateAction, } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions";
2
+ export { NotificationType, AuthRequiredReason, type SessionAddedNotification, type SessionRemovedNotification, type AuthRequiredNotification, } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/notifications";
3
+ import type { RootAgentsChangedAction, RootActiveSessionsChangedAction, SessionDeltaAction, SessionModelChangedAction, SessionReasoningAction, SessionResponsePartAction, SessionToolCallApprovedAction, SessionToolCallCompleteAction, SessionToolCallConfirmedAction, SessionToolCallDeniedAction, SessionToolCallDeltaAction, SessionToolCallReadyAction, SessionToolCallResultConfirmedAction, SessionToolCallStartAction, SessionTitleChangedAction, SessionTurnCancelledAction, SessionTurnCompleteAction, SessionTurnStartedAction, SessionUsageAction, StateAction, SessionPendingMessageSetAction, SessionPendingMessageRemovedAction, SessionQueuedMessagesReorderedAction, SessionIsReadChangedAction, SessionIsArchivedChangedAction, RootConfigChangedAction } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions";
4
+ import type { ProtocolNotification } from "@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/notifications";
5
+ import type { RootAction as IRootAction_, SessionAction as ISessionAction_, ClientSessionAction as IClientSessionAction_, ServerSessionAction as IServerSessionAction_, TerminalAction as ITerminalAction_, ClientTerminalAction as IClientTerminalAction_ } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/action-origin.generated";
6
+ export type RootAction = IRootAction_;
7
+ export type SessionAction = ISessionAction_;
8
+ export type ClientSessionAction = IClientSessionAction_;
9
+ export type ServerSessionAction = IServerSessionAction_;
10
+ export type TerminalAction = ITerminalAction_;
11
+ export type ClientTerminalAction = IClientTerminalAction_;
12
+ export type IAgentsChangedAction = RootAgentsChangedAction;
13
+ export type IActiveSessionsChangedAction = RootActiveSessionsChangedAction;
14
+ export type IRootConfigChangedAction = RootConfigChangedAction;
15
+ export type ITurnStartedAction = SessionTurnStartedAction;
16
+ export type IDeltaAction = SessionDeltaAction;
17
+ export type IResponsePartAction = SessionResponsePartAction;
18
+ export type IToolCallStartAction = SessionToolCallStartAction;
19
+ export type IToolCallDeltaAction = SessionToolCallDeltaAction;
20
+ export type IToolCallReadyAction = SessionToolCallReadyAction;
21
+ export type IToolCallApprovedAction = SessionToolCallApprovedAction;
22
+ export type IToolCallDeniedAction = SessionToolCallDeniedAction;
23
+ export type IToolCallConfirmedAction = SessionToolCallConfirmedAction;
24
+ export type IToolCallCompleteAction = SessionToolCallCompleteAction;
25
+ export type IToolCallResultConfirmedAction = SessionToolCallResultConfirmedAction;
26
+ export type ITurnCompleteAction = SessionTurnCompleteAction;
27
+ export type ITurnCancelledAction = SessionTurnCancelledAction;
28
+ export type ITitleChangedAction = SessionTitleChangedAction;
29
+ export type IUsageAction = SessionUsageAction;
30
+ export type IReasoningAction = SessionReasoningAction;
31
+ export type IModelChangedAction = SessionModelChangedAction;
32
+ export type ICustomizationsChangedAction = import("@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions").SessionCustomizationsChangedAction;
33
+ export type ICustomizationToggledAction = import("@codingame/monaco-vscode-xterm-common/vscode/vs/platform/agentHost/common/state/protocol/actions").SessionCustomizationToggledAction;
34
+ export type IPendingMessageSetAction = SessionPendingMessageSetAction;
35
+ export type IPendingMessageRemovedAction = SessionPendingMessageRemovedAction;
36
+ export type IQueuedMessagesReorderedAction = SessionQueuedMessagesReorderedAction;
37
+ export type IIsReadChangedAction = SessionIsReadChangedAction;
38
+ export type IIsArchivedChangedAction = SessionIsArchivedChangedAction;
39
+ export type INotification = ProtocolNotification;
40
+ export declare function isRootAction(action: StateAction): action is RootAction;
41
+ export declare function isSessionAction(action: StateAction): action is SessionAction;
42
+ export declare function isTerminalAction(action: StateAction): action is TerminalAction;
@@ -1,24 +1,24 @@
1
1
  import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
2
2
  import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
- import type { IProtocolMessage, IAhpServerNotification, IJsonRpcNotification, IJsonRpcResponse, IJsonRpcRequest } from "./sessionProtocol.js";
3
+ import type { ProtocolMessage, AhpServerNotification, JsonRpcNotification, JsonRpcResponse, JsonRpcRequest } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/sessionProtocol";
4
4
  /**
5
5
  * A bidirectional transport for protocol messages. Implementations handle
6
6
  * serialization, framing, and connection management.
7
7
  */
8
8
  export interface IProtocolTransport extends IDisposable {
9
9
  /** Fires when a message is received from the remote end. */
10
- readonly onMessage: Event<IProtocolMessage>;
10
+ readonly onMessage: Event<ProtocolMessage>;
11
11
  /** Fires when the transport connection closes. */
12
12
  readonly onClose: Event<void>;
13
13
  /**
14
14
  * Send a message to the remote end.
15
15
  *
16
16
  * Accepts:
17
- * - `IProtocolMessage` — fully-typed client↔server messages.
18
- * - `IAhpServerNotification` — server→client notifications.
19
- * - `IJsonRpcResponse` — dynamically-constructed success/error responses.
17
+ * - `ProtocolMessage` — fully-typed client↔server messages.
18
+ * - `AhpServerNotification` — server→client notifications.
19
+ * - `JsonRpcResponse` — dynamically-constructed success/error responses.
20
20
  */
21
- send(message: IProtocolMessage | IAhpServerNotification | IJsonRpcNotification | IJsonRpcResponse | IJsonRpcRequest): void;
21
+ send(message: ProtocolMessage | AhpServerNotification | JsonRpcNotification | JsonRpcResponse | JsonRpcRequest): void;
22
22
  }
23
23
  /**
24
24
  * A client-side transport that requires an explicit connection step
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Shared constants for agent-host protocol transports. Kept in a common
3
+ * module so browser, electron-browser, and sessions-layer transports all
4
+ * apply the same malformed-frame policy without duplicating values.
5
+ */
6
+ /**
7
+ * Force-close the transport once more than this many malformed inbound
8
+ * frames have been observed. A handful of bad frames can be tolerated
9
+ * (e.g. a proxy momentarily corrupts a message), but a sustained stream
10
+ * almost always indicates a protocol mismatch or a broken relay, and is
11
+ * best surfaced as a hard disconnect so the reconnect loop can take over.
12
+ */
13
+ export declare const MALFORMED_FRAMES_FORCE_CLOSE_THRESHOLD = 10;
14
+ /** Cap warn-level logs per connection for malformed frames to avoid spam. */
15
+ export declare const MALFORMED_FRAMES_LOG_CAP = 5;
@@ -0,0 +1,6 @@
1
+
2
+
3
+ const MALFORMED_FRAMES_FORCE_CLOSE_THRESHOLD = 10;
4
+ const MALFORMED_FRAMES_LOG_CAP = 5;
5
+
6
+ export { MALFORMED_FRAMES_FORCE_CLOSE_THRESHOLD, MALFORMED_FRAMES_LOG_CAP };
@@ -75,9 +75,10 @@ export declare function parseComponentPathConfig(raw: unknown): IComponentPathCo
75
75
  /**
76
76
  * Resolves the directories to scan for a given component type, combining
77
77
  * the default directory with any custom paths from the manifest config.
78
- * Paths that resolve outside the plugin root are silently ignored.
78
+ * Paths that resolve outside the boundary are silently ignored.
79
+ * @param boundaryUri The outermost directory that resolved paths must stay within. Defaults to {@link pluginUri}.
79
80
  */
80
- export declare function resolveComponentDirs(pluginUri: URI, defaultDir: string, config: IComponentPathConfig): readonly URI[];
81
+ export declare function resolveComponentDirs(pluginUri: URI, defaultDir: string, config: IComponentPathConfig, boundaryUri?: URI): readonly URI[];
81
82
  /**
82
83
  * Extracts the MCP server map from a raw JSON value. Accepts both the
83
84
  * wrapped format `{ mcpServers: { … } }` and the flat format.
@@ -115,4 +116,4 @@ export declare function parseMcpServerDefinitionMap(definitionURI: URI, raw: unk
115
116
  * Parses a plugin directory to extract hooks, MCP servers, skills, and agents.
116
117
  * This is the main entry point for the agent host to discover plugin contents.
117
118
  */
118
- export declare function parsePlugin(pluginUri: URI, fileService: IFileService, workspaceRoot: URI | undefined, userHome: string): Promise<IParsedPlugin>;
119
+ export declare function parsePlugin(pluginUri: URI, fileService: IFileService, workspaceRoot: URI | undefined, userHome: string, boundaryUri?: URI): Promise<IParsedPlugin>;
@@ -3,7 +3,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/base/common/json';
3
3
  import { cloneAndChange } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
4
4
  import { isAbsolute } from '@codingame/monaco-vscode-api/vscode/vs/base/common/path';
5
5
  import { untildify } from '@codingame/monaco-vscode-api/vscode/vs/base/common/labels';
6
- import { joinPath, normalizePath, isEqualOrParent, basename, extname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
6
+ import { joinPath, isEqualOrParent, normalizePath, basename, extname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
7
7
  import { escapeRegExpCharacters } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
8
8
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
9
9
  import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
@@ -106,14 +106,15 @@ function parseComponentPathConfig(raw) {
106
106
  }
107
107
  return emptyComponentPathConfig;
108
108
  }
109
- function resolveComponentDirs(pluginUri, defaultDir, config) {
109
+ function resolveComponentDirs(pluginUri, defaultDir, config, boundaryUri) {
110
+ const boundary = (boundaryUri && isEqualOrParent(pluginUri, boundaryUri)) ? boundaryUri : pluginUri;
110
111
  const dirs = [];
111
112
  if (!config.exclusive) {
112
113
  dirs.push(joinPath(pluginUri, defaultDir));
113
114
  }
114
115
  for (const p of config.paths) {
115
116
  const resolved = normalizePath(joinPath(pluginUri, p));
116
- if (isEqualOrParent(resolved, pluginUri)) {
117
+ if (isEqualOrParent(resolved, boundary)) {
117
118
  dirs.push(resolved);
118
119
  }
119
120
  }
@@ -3,11 +3,12 @@ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
3
3
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
4
4
  import { ITerminalSandboxService } from "@codingame/monaco-vscode-api/vscode/vs/platform/sandbox/common/terminalSandboxService.service";
5
5
  import { IAgentNetworkFilterService } from "@codingame/monaco-vscode-api/vscode/vs/platform/networkFilter/common/networkFilterService.service";
6
+ export declare const AgentNetworkFilterFetchWebToolName = "fetchWebTool";
6
7
  export declare class AgentNetworkFilterService extends Disposable implements IAgentNetworkFilterService {
7
8
  private readonly configurationService;
8
9
  private readonly terminalSandboxService;
9
10
  readonly _serviceBrand: undefined;
10
- private enabled;
11
+ private networkFilterEnabled;
11
12
  private terminalSandboxEnabled;
12
13
  private allowedPatterns;
13
14
  private deniedPatterns;
@@ -17,6 +18,7 @@ export declare class AgentNetworkFilterService extends Disposable implements IAg
17
18
  constructor(configurationService: IConfigurationService, terminalSandboxService: ITerminalSandboxService);
18
19
  private readConfiguration;
19
20
  private updateTerminalSandboxEnabled;
20
- isUriAllowed(uri: URI): boolean;
21
+ isUriAllowed(uri: URI, toolName?: string): boolean;
22
+ private shouldFilter;
21
23
  formatError(uri: URI): string;
22
24
  }
@@ -10,12 +10,13 @@ import { ITerminalSandboxService } from '@codingame/monaco-vscode-api/vscode/vs/
10
10
  import { extractDomainFromUri, isDomainAllowed } from '@codingame/monaco-vscode-katex-common/vscode/vs/platform/networkFilter/common/domainMatcher';
11
11
  import { AgentNetworkDomainSettingId } from '@codingame/monaco-vscode-katex-common/vscode/vs/platform/networkFilter/common/settings';
12
12
 
13
+ const AgentNetworkFilterFetchWebToolName = "fetchWebTool";
13
14
  let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposable {
14
15
  constructor(configurationService, terminalSandboxService) {
15
16
  super();
16
17
  this.configurationService = configurationService;
17
18
  this.terminalSandboxService = terminalSandboxService;
18
- this.enabled = false;
19
+ this.networkFilterEnabled = false;
19
20
  this.terminalSandboxEnabled = false;
20
21
  this.allowedPatterns = [];
21
22
  this.deniedPatterns = [];
@@ -35,13 +36,17 @@ let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposab
35
36
  }
36
37
  readConfiguration() {
37
38
  const networkFilterEnabled = this.configurationService.getValue(AgentNetworkDomainSettingId.NetworkFilter) ?? false;
38
- this.enabled = networkFilterEnabled || this.terminalSandboxEnabled;
39
+ this.networkFilterEnabled = networkFilterEnabled;
39
40
  this.allowedPatterns = this.configurationService.getValue(AgentNetworkDomainSettingId.AllowedNetworkDomains) ?? [];
40
41
  this.deniedPatterns = this.configurationService.getValue(AgentNetworkDomainSettingId.DeniedNetworkDomains) ?? [];
41
42
  this.domainCache.clear();
42
43
  }
43
44
  async updateTerminalSandboxEnabled() {
44
- const enabled = await this.terminalSandboxService.isEnabled();
45
+ const [isSandboxEnabled, isSandboxAllowNetworkEnabled] = await Promise.all([
46
+ this.terminalSandboxService.isEnabled(),
47
+ this.terminalSandboxService.isSandboxAllowNetworkEnabled()
48
+ ]);
49
+ const enabled = isSandboxEnabled && !isSandboxAllowNetworkEnabled;
45
50
  if (this.terminalSandboxEnabled === enabled) {
46
51
  return;
47
52
  }
@@ -49,8 +54,8 @@ let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposab
49
54
  this.readConfiguration();
50
55
  this.onDidChangeEmitter.fire();
51
56
  }
52
- isUriAllowed(uri) {
53
- if (!this.enabled) {
57
+ isUriAllowed(uri, toolName) {
58
+ if (!this.shouldFilter(toolName)) {
54
59
  return true;
55
60
  }
56
61
  if (uri.scheme === "file" || !uri.authority) {
@@ -67,10 +72,13 @@ let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposab
67
72
  }
68
73
  return result;
69
74
  }
75
+ shouldFilter(toolName) {
76
+ return this.networkFilterEnabled || (this.terminalSandboxEnabled && toolName === AgentNetworkFilterFetchWebToolName);
77
+ }
70
78
  formatError(uri) {
71
79
  const domain = extractDomainFromUri(uri);
72
80
  return localize(
73
- 2051,
81
+ 2063,
74
82
  "Access to {0} is blocked by network domain policy (see `{1}` and `{2}` settings).",
75
83
  domain ?? uri.authority,
76
84
  AgentNetworkDomainSettingId.AllowedNetworkDomains,
@@ -80,4 +88,4 @@ let AgentNetworkFilterService = class AgentNetworkFilterService extends Disposab
80
88
  };
81
89
  AgentNetworkFilterService = ( __decorate([( __param(0, IConfigurationService)), ( __param(1, ITerminalSandboxService))], AgentNetworkFilterService));
82
90
 
83
- export { AgentNetworkFilterService };
91
+ export { AgentNetworkFilterFetchWebToolName, AgentNetworkFilterService };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Tool reference names for the integrated browser tools.
3
+ */
4
+ export declare const BrowserChatToolReferenceName: {
5
+ readonly OpenBrowserPage: "openBrowserPage";
6
+ readonly ReadPage: "readPage";
7
+ readonly ScreenshotPage: "screenshotPage";
8
+ readonly NavigatePage: "navigatePage";
9
+ readonly ClickElement: "clickElement";
10
+ readonly TypeInPage: "typeInPage";
11
+ readonly HoverElement: "hoverElement";
12
+ readonly DragElement: "dragElement";
13
+ readonly HandleDialog: "handleDialog";
14
+ readonly RunPlaywrightCode: "runPlaywrightCode";
15
+ };
16
+ /**
17
+ * All browser-tool reference names as a flat list.
18
+ */
19
+ export declare const browserChatToolReferenceNames: ("hoverElement" | "openBrowserPage" | "readPage" | "screenshotPage" | "navigatePage" | "clickElement" | "typeInPage" | "dragElement" | "handleDialog" | "runPlaywrightCode")[];
@@ -0,0 +1,17 @@
1
+
2
+
3
+ const BrowserChatToolReferenceName = {
4
+ OpenBrowserPage: "openBrowserPage",
5
+ ReadPage: "readPage",
6
+ ScreenshotPage: "screenshotPage",
7
+ NavigatePage: "navigatePage",
8
+ ClickElement: "clickElement",
9
+ TypeInPage: "typeInPage",
10
+ HoverElement: "hoverElement",
11
+ DragElement: "dragElement",
12
+ HandleDialog: "handleDialog",
13
+ RunPlaywrightCode: "runPlaywrightCode"
14
+ };
15
+ const browserChatToolReferenceNames = ( Object.values(BrowserChatToolReferenceName));
16
+
17
+ export { BrowserChatToolReferenceName, browserChatToolReferenceNames };
@@ -117,7 +117,7 @@ let ChatAccessibilityService = class ChatAccessibilityService extends Disposable
117
117
  });
118
118
  }
119
119
  this.toasts.clearAndDisposeAll();
120
- const title = widget?.viewModel?.model.title ? ( localize(4704, "Chat: {0}", widget.viewModel.model.title)) : ( localize(4705, "Untitled Chat"));
120
+ const title = widget?.viewModel?.model.title ? ( localize(4762, "Chat: {0}", widget.viewModel.model.title)) : ( localize(4763, "Untitled Chat"));
121
121
  const cts = ( new CancellationTokenSource());
122
122
  const disposable = toDisposable(() => cts.dispose(true));
123
123
  this.toasts.add(disposable);
@@ -125,7 +125,7 @@ let ChatAccessibilityService = class ChatAccessibilityService extends Disposable
125
125
  clicked
126
126
  } = await this._hostService.showToast({
127
127
  title,
128
- body: ( localize(4706, "New chat response."))
128
+ body: ( localize(4764, "New chat response."))
129
129
  }, cts.token);
130
130
  this.toasts.deleteAndDispose(disposable);
131
131
  if (clicked) {
@@ -6,7 +6,7 @@ import { IAccessibleViewImplementation } from "@codingame/monaco-vscode-api/vsco
6
6
  import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
7
7
  import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
8
8
  import { AccessibilityVerbositySettingId } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration";
9
- import { IChatExtensionsContent, IChatModifiedFilesConfirmationData, IChatPullRequestContent, IChatSimpleToolInvocationData, IChatSubagentToolInvocationData, IChatTerminalToolInvocationData, IChatTodoListContent, IChatToolInputInvocationData, IChatToolResourcesInvocationData, ILegacyChatTerminalToolInvocationData, IToolResultOutputDetailsSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
9
+ import { IChatExtensionsContent, IChatModifiedFilesConfirmationData, IChatPullRequestContent, IChatSearchToolInvocationData, IChatSimpleToolInvocationData, IChatSubagentToolInvocationData, IChatTerminalToolInvocationData, IChatTodoListContent, IChatToolInputInvocationData, IChatToolResourcesInvocationData, ILegacyChatTerminalToolInvocationData, IToolResultOutputDetailsSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
10
10
  import { IToolResultInputOutputDetails, IToolResultOutputDetails } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService";
11
11
  import { ChatTreeItem, IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
12
12
  import { Location } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages";
@@ -17,7 +17,7 @@ export declare class ChatResponseAccessibleView implements IAccessibleViewImplem
17
17
  readonly when: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").RawContextKey<boolean>;
18
18
  getProvider(accessor: ServicesAccessor): ChatResponseAccessibleProvider | undefined;
19
19
  }
20
- type ToolSpecificData = IChatTerminalToolInvocationData | ILegacyChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent | IChatPullRequestContent | IChatTodoListContent | IChatSubagentToolInvocationData | IChatSimpleToolInvocationData | IChatToolResourcesInvocationData | IChatModifiedFilesConfirmationData;
20
+ type ToolSpecificData = IChatTerminalToolInvocationData | ILegacyChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent | IChatPullRequestContent | IChatTodoListContent | IChatSubagentToolInvocationData | IChatSimpleToolInvocationData | IChatSearchToolInvocationData | IChatToolResourcesInvocationData | IChatModifiedFilesConfirmationData;
21
21
  type ResultDetails = Array<URI | Location> | IToolResultInputOutputDetails | IToolResultOutputDetails | IToolResultOutputDetailsSerialized;
22
22
  export declare const CHAT_ACCESSIBLE_VIEW_INCLUDE_THINKING_STORAGE_KEY = "chat.accessibleView.includeThinking";
23
23
  export declare function isThinkingContentIncludedInAccessibleView(storageService: IStorageService): boolean;
@@ -78,29 +78,29 @@ function getToolSpecificDataDescription(toolSpecificData) {
78
78
  {
79
79
  const parts = [];
80
80
  if (toolSpecificData.agentName) {
81
- parts.push(( localize(4707, "Agent: {0}", toolSpecificData.agentName)));
81
+ parts.push(( localize(4765, "Agent: {0}", toolSpecificData.agentName)));
82
82
  }
83
83
  if (toolSpecificData.description) {
84
84
  parts.push(toolSpecificData.description);
85
85
  }
86
86
  if (toolSpecificData.prompt) {
87
- parts.push(( localize(4708, "Task: {0}", toolSpecificData.prompt)));
87
+ parts.push(( localize(4766, "Task: {0}", toolSpecificData.prompt)));
88
88
  }
89
89
  return parts.join(". ") || "";
90
90
  }
91
91
  case "extensions":
92
- return toolSpecificData.extensions.length > 0 ? ( localize(4709, "Extensions: {0}", toolSpecificData.extensions.join(", "))) : "";
92
+ return toolSpecificData.extensions.length > 0 ? ( localize(4767, "Extensions: {0}", toolSpecificData.extensions.join(", "))) : "";
93
93
  case "todoList":
94
94
  {
95
95
  const todos = toolSpecificData.todoList;
96
96
  if (todos.length === 0) {
97
97
  return "";
98
98
  }
99
- const todoDescriptions = ( todos.map(t => ( localize(4710, "{0} ({1})", t.title, t.status))));
100
- return localize(4711, "{0} items: {1}", todos.length, todoDescriptions.join("; "));
99
+ const todoDescriptions = ( todos.map(t => ( localize(4768, "{0} ({1})", t.title, t.status))));
100
+ return localize(4769, "{0} items: {1}", todos.length, todoDescriptions.join("; "));
101
101
  }
102
102
  case "pullRequest":
103
- return localize(4712, "PR: {0} by {1}", toolSpecificData.title, toolSpecificData.author);
103
+ return localize(4770, "PR: {0} by {1}", toolSpecificData.title, toolSpecificData.author);
104
104
  case "input":
105
105
  return typeof toolSpecificData.rawInput === "string" ? toolSpecificData.rawInput : JSON.stringify(toolSpecificData.rawInput);
106
106
  case "resources":
@@ -116,13 +116,13 @@ function getToolSpecificDataDescription(toolSpecificData) {
116
116
  return v.fsPath || v.path;
117
117
  }
118
118
  })).join(", ");
119
- return localize(4713, "Resources: {0}", paths);
119
+ return localize(4771, "Resources: {0}", paths);
120
120
  }
121
121
  case "simpleToolInvocation":
122
122
  {
123
123
  const inputText = toolSpecificData.input;
124
124
  const outputText = toolSpecificData.output;
125
- return localize(4714, "Input: {0}, Output: {1}", inputText, outputText);
125
+ return localize(4772, "Input: {0}, Output: {1}", inputText, outputText);
126
126
  }
127
127
  case "modifiedFilesConfirmation":
128
128
  {
@@ -130,7 +130,7 @@ function getToolSpecificDataDescription(toolSpecificData) {
130
130
  return "";
131
131
  }
132
132
  return localize(
133
- 4715,
133
+ 4773,
134
134
  "Modified files: {0}",
135
135
  ( toolSpecificData.modifiedFiles.map(file => {
136
136
  const revivedUri = URI.revive(file.uri);
@@ -165,12 +165,12 @@ function getResultDetailsDescription(resultDetails) {
165
165
  }
166
166
  if (isOutputDetailsSerialized(resultDetails)) {
167
167
  return {
168
- input: ( localize(4716, "{0} data", resultDetails.output.mimeType))
168
+ input: ( localize(4774, "{0} data", resultDetails.output.mimeType))
169
169
  };
170
170
  }
171
171
  if (isToolResultOutputDetails(resultDetails)) {
172
172
  return {
173
- input: ( localize(4716, "{0} data", resultDetails.output.mimeType))
173
+ input: ( localize(4774, "{0} data", resultDetails.output.mimeType))
174
174
  };
175
175
  }
176
176
  return {};
@@ -194,13 +194,13 @@ function getToolInvocationA11yDescription(
194
194
  if (isComplete && resultDetails) {
195
195
  const details = getResultDetailsDescription(resultDetails);
196
196
  if (details.isError) {
197
- parts.unshift(( localize(4717, "Errored")));
197
+ parts.unshift(( localize(4775, "Errored")));
198
198
  }
199
199
  if (details.input && !toolDataDesc) {
200
- parts.push(( localize(4718, "Input: {0}", details.input)));
200
+ parts.push(( localize(4776, "Input: {0}", details.input)));
201
201
  }
202
202
  if (details.files && details.files.length > 0) {
203
- parts.push(( localize(4719, "Files: {0}", details.files.join(", "))));
203
+ parts.push(( localize(4777, "Files: {0}", details.files.join(", "))));
204
204
  }
205
205
  }
206
206
  return parts.join(". ");
@@ -262,7 +262,7 @@ class ChatResponseAccessibleProvider extends Disposable {
262
262
  const thinkingValue = Array.isArray(part.value) ? part.value.join("") : (part.value || "");
263
263
  const trimmed = thinkingValue.trim();
264
264
  if (trimmed) {
265
- contentParts.push(( localize(4720, "Thinking: {0}", trimmed)));
265
+ contentParts.push(( localize(4778, "Thinking: {0}", trimmed)));
266
266
  }
267
267
  break;
268
268
  }
@@ -338,7 +338,7 @@ class ChatResponseAccessibleProvider extends Disposable {
338
338
  contentParts.push(toolContent);
339
339
  } else if (state.type === IChatToolInvocation.StateKind.WaitingForPostApproval) {
340
340
  const postApprovalDetails = isToolResultInputOutputDetails(state.resultDetails) ? state.resultDetails.input : isToolResultOutputDetails(state.resultDetails) ? undefined : toolContentToA11yString(state.contentForModel);
341
- contentParts.push(( localize(4721, "Approve results of {0}? Result: ", part.toolId)) + (postApprovalDetails ?? ""));
341
+ contentParts.push(( localize(4779, "Approve results of {0}? Result: ", part.toolId)) + (postApprovalDetails ?? ""));
342
342
  } else {
343
343
  const resultDetails = IChatToolInvocation.resultDetails(part);
344
344
  const isComplete = IChatToolInvocation.isComplete(part);
@@ -22,11 +22,11 @@ class AnnounceChatConfirmationAction extends Action2 {
22
22
  super({
23
23
  id: ACTION_ID_FOCUS_CHAT_CONFIRMATION,
24
24
  title: {
25
- value: ( localize(4722, "Focus Chat Confirmation")),
25
+ value: ( localize(4780, "Focus Chat Confirmation")),
26
26
  original: "Focus Chat Confirmation"
27
27
  },
28
28
  category: {
29
- value: ( localize(4723, "Chat")),
29
+ value: ( localize(4781, "Chat")),
30
30
  original: "Chat"
31
31
  },
32
32
  precondition: ChatContextKeys.enabled,
@@ -42,30 +42,34 @@ class AnnounceChatConfirmationAction extends Action2 {
42
42
  const chatWidgetService = accessor.get(IChatWidgetService);
43
43
  const pendingWidget = chatWidgetService.getAllWidgets().find(widget => widget.viewModel?.model.requestNeedsInput.get());
44
44
  if (!pendingWidget) {
45
- alert(( localize(4724, "No active chat session found.")));
45
+ alert(( localize(4782, "No active chat session found.")));
46
46
  return;
47
47
  }
48
48
  const viewModel = pendingWidget.viewModel;
49
49
  if (!viewModel) {
50
- alert(( localize(4725, "Chat interface not ready.")));
50
+ alert(( localize(4783, "Chat interface not ready.")));
51
51
  return;
52
52
  }
53
53
  let firstConfirmationElement;
54
54
  const lastResponse = viewModel.getItems()[viewModel.getItems().length - 1];
55
55
  if (isResponseVM(lastResponse)) {
56
- const confirmationWidgets = pendingWidget.domNode.querySelectorAll(".chat-confirmation-widget-container");
56
+ pendingWidget.reveal(lastResponse);
57
+ const confirmationWidgets = pendingWidget.domNode.querySelectorAll(".chat-confirmation-widget-container[tabindex]");
57
58
  if (confirmationWidgets.length > 0) {
58
- firstConfirmationElement = confirmationWidgets[0];
59
+ firstConfirmationElement = confirmationWidgets[confirmationWidgets.length - 1];
59
60
  }
60
61
  }
61
62
  if (firstConfirmationElement) {
62
63
  if (firstConfirmationElement.contains(pendingWidget.domNode.ownerDocument.activeElement)) {
63
64
  pendingWidget.focusInput();
64
65
  } else {
66
+ firstConfirmationElement.scrollIntoView({
67
+ block: "nearest"
68
+ });
65
69
  firstConfirmationElement.focus();
66
70
  }
67
71
  } else {
68
- alert(( localize(4726, "No chat confirmation required")));
72
+ alert(( localize(4784, "No chat confirmation required")));
69
73
  }
70
74
  }
71
75
  }
@@ -74,11 +78,11 @@ class ToggleThinkingContentAccessibleViewAction extends Action2 {
74
78
  super({
75
79
  id: ACTION_ID_TOGGLE_THINKING_CONTENT_ACCESSIBLE_VIEW,
76
80
  title: {
77
- value: ( localize(4727, "Toggle Thinking Content in Accessible View")),
81
+ value: ( localize(4785, "Toggle Thinking Content in Accessible View")),
78
82
  original: "Toggle Thinking Content in Accessible View"
79
83
  },
80
84
  category: {
81
- value: ( localize(4723, "Chat")),
85
+ value: ( localize(4781, "Chat")),
82
86
  original: "Chat"
83
87
  },
84
88
  precondition: ChatContextKeys.enabled,
@@ -100,7 +104,7 @@ class ToggleThinkingContentAccessibleViewAction extends Action2 {
100
104
  StorageScope.PROFILE,
101
105
  StorageTarget.USER
102
106
  );
103
- alert(updatedValue ? ( localize(4728, "Thinking content will be included in the accessible view.")) : ( localize(4729, "Thinking content will be hidden from the accessible view.")));
107
+ alert(updatedValue ? ( localize(4786, "Thinking content will be included in the accessible view.")) : ( localize(4787, "Thinking content will be hidden from the accessible view.")));
104
108
  }
105
109
  }
106
110
  function registerChatAccessibilityActions() {