@codingame/monaco-vscode-chat-service-override 31.0.1 → 32.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +22 -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/agentPluginsView.d.ts +0 -3
  71. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +16 -17
  72. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.d.ts +28 -0
  73. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +99 -0
  74. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.d.ts +2 -1
  75. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.js +11 -4
  76. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +9 -3
  77. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +63 -53
  78. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +2 -0
  79. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +10 -7
  80. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +3 -3
  81. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
  82. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
  83. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
  84. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +5 -4
  85. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +25 -48
  86. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
  87. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
  88. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +5 -0
  89. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +8 -4
  90. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +99 -39
  91. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +2 -2
  92. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +17 -30
  93. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.d.ts +78 -0
  94. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +38 -0
  95. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +35 -37
  96. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +347 -326
  97. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +6 -2
  98. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +1 -11
  99. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +113 -109
  100. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +37 -15
  101. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +436 -134
  102. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
  103. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +2 -0
  104. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +52 -26
  105. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +7 -1
  106. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +2 -1
  107. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +13 -5
  108. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.d.ts +23 -0
  109. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +60 -0
  110. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.d.ts +25 -0
  111. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +93 -0
  112. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +9 -2
  113. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +73 -104
  114. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +272 -41
  115. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +12 -2
  116. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +30 -1
  117. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +430 -185
  118. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +5 -2
  119. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +44 -3
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +480 -279
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chat.view.contribution.d.ts +1 -0
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chat.view.contribution.js +5 -0
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.d.ts +138 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.js +221 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +84 -0
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +1216 -0
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +2 -1
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +32 -4
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
  132. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +26 -19
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
  134. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
  135. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +28 -25
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +13 -13
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +25 -24
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
  141. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
  142. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +2 -1
  143. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +68 -33
  144. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
  145. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +3 -2
  146. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +1 -0
  147. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +650 -6
  148. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +2 -2
  149. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
  150. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
  151. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +29 -0
  152. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +390 -0
  153. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
  154. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
  155. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
  156. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
  157. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +18 -3
  158. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
  159. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +11 -11
  160. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -2
  161. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
  162. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
  163. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
  164. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +1 -1
  165. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -7
  166. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
  167. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +1 -7
  168. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +6 -87
  169. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +1 -1
  170. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +116 -182
  171. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +12 -39
  172. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
  173. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +31 -31
  174. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
  175. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +61 -41
  176. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
  177. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
  178. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +27 -27
  179. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +2 -0
  180. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +16 -13
  181. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +20 -0
  182. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +106 -36
  183. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +25 -7
  184. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +629 -425
  185. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +9 -1
  186. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +105 -29
  187. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.d.ts +1 -0
  188. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +175 -148
  189. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +20 -33
  190. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +9 -2
  191. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
  192. package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
  193. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
  194. package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +4 -4
  195. package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
  196. package/vscode/src/vs/workbench/contrib/chat/browser/githubRepoFetcher.d.ts +58 -0
  197. package/vscode/src/vs/workbench/contrib/chat/browser/githubRepoFetcher.js +339 -0
  198. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
  199. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/media/planReviewFeedback.css +160 -0
  200. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.d.ts +9 -0
  201. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +123 -0
  202. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.d.ts +37 -0
  203. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +572 -0
  204. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.d.ts +36 -0
  205. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.js +167 -0
  206. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.d.ts +49 -7
  207. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +315 -19
  208. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +45 -24
  209. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
  210. package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
  211. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
  212. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +44 -40
  213. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +5 -5
  214. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
  215. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileContributions.js +4 -1
  216. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
  217. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
  218. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
  219. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
  220. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
  221. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
  222. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
  223. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +9 -1
  224. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +111 -52
  225. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +3 -7
  226. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +13 -47
  227. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +3 -2
  228. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +4 -8
  229. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.d.ts +18 -0
  230. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.js +56 -0
  231. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +3 -7
  232. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +14 -52
  233. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  234. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +3 -1
  235. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +17 -2
  236. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +2 -0
  237. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +23 -12
  238. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.d.ts +39 -0
  239. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +136 -0
  240. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.d.ts +72 -0
  241. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.js +56 -0
  242. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.d.ts +7 -0
  243. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.js +14 -1
  244. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +41 -26
  245. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +30 -12
  246. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
  247. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
  248. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +2 -5
  249. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +25 -6
  250. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
  251. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +2 -2
  252. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +5 -4
  253. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +1 -0
  254. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +108 -45
  255. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +7 -3
  256. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +3 -1
  257. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +20 -1
  258. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +65 -26
  259. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +5 -3
  260. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +38 -11
  261. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +17 -1
  262. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +165 -16
  263. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +1 -0
  264. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +62 -1
  265. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
  266. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -1
  267. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
  268. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -3
  269. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +15 -21
  270. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +1 -3
  271. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +18 -24
  272. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +4 -2
  273. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +203 -180
  274. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  275. package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.d.ts +30 -0
  276. package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.js +35 -0
  277. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +2 -1
  278. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +27 -2
  279. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -1
  280. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +14 -49
  281. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +0 -16
  282. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +35 -177
  283. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -8
  284. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.d.ts +1 -2
  285. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +2 -3
  286. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +4 -4
  287. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +11 -11
  288. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  289. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  290. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +13 -13
  291. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
  292. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
  293. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  294. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  295. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
  296. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +29 -3
  297. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +129 -3
  298. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +3 -2
  299. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +2 -1
  300. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +14 -6
  301. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
  302. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.d.ts +1 -4
  303. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +12 -38
  304. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
  305. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +4 -4
  306. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
  307. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.d.ts +12 -7
  308. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +77 -70
  309. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
  310. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
  311. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
  312. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  313. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.d.ts +32 -0
  314. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.js +232 -0
  315. package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.d.ts +83 -0
  316. package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.js +243 -0
  317. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +0 -749
  318. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.js +0 -14
  319. package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.d.ts +0 -17
  320. package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.js +0 -5
  321. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +0 -40
  322. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.js +0 -14
  323. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +0 -131
  324. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +0 -363
  325. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +0 -24
  326. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +0 -306
  327. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.d.ts +0 -23
  328. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +0 -97
  329. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatStatusWidget.css +0 -57
  330. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +0 -50
  331. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +0 -29
  332. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +0 -50
  333. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +0 -78
  334. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +0 -77
  335. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +0 -120
  336. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +0 -10
  337. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +0 -23
  338. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +0 -242
  339. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +0 -1701
  340. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +0 -191
  341. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +0 -728
  342. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +0 -14
  343. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +0 -69
@@ -0,0 +1,171 @@
1
+
2
+ import { raceCancellation } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
3
+ import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
+ import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
5
+ import { assertType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
6
+ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
7
+ import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
8
+ import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
9
+ import { ModifiedFileEntryState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService';
10
+ import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
11
+ import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
12
+ import { waitForState } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/utils/utilsCancellation';
13
+
14
+ async function reviewEdits(accessor, editor, stream, token, applyCodeBlockSuggestionId) {
15
+ if (!editor.hasModel()) {
16
+ return false;
17
+ }
18
+ const chatService = accessor.get(IChatService);
19
+ const uri = editor.getModel().uri;
20
+ const chatModelRef = chatService.startNewLocalSession(ChatAgentLocation.EditorInline);
21
+ const chatModel = chatModelRef.object;
22
+ chatModel.startEditingSession(true);
23
+ const store = ( new DisposableStore());
24
+ store.add(chatModelRef);
25
+ const chatRequest = chatModel?.addRequest({
26
+ text: "",
27
+ parts: []
28
+ }, {
29
+ variables: []
30
+ }, 0, {
31
+ kind: undefined,
32
+ modeId: "applyCodeBlock",
33
+ modeInstructions: undefined,
34
+ isBuiltin: true,
35
+ applyCodeBlockSuggestionId
36
+ });
37
+ assertType(chatRequest.response);
38
+ chatRequest.response.updateContent({
39
+ kind: "textEdit",
40
+ uri,
41
+ edits: [],
42
+ done: false
43
+ });
44
+ for await (const chunk of stream) {
45
+ if (token.isCancellationRequested) {
46
+ chatRequest.response.cancel();
47
+ break;
48
+ }
49
+ chatRequest.response.updateContent({
50
+ kind: "textEdit",
51
+ uri,
52
+ edits: chunk,
53
+ done: false
54
+ });
55
+ }
56
+ chatRequest.response.updateContent({
57
+ kind: "textEdit",
58
+ uri,
59
+ edits: [],
60
+ done: true
61
+ });
62
+ if (!token.isCancellationRequested) {
63
+ chatRequest.response.complete();
64
+ }
65
+ const isSettled = derived(r => {
66
+ const entry = chatModel.editingSession?.readEntry(uri, r);
67
+ if (!entry) {
68
+ return false;
69
+ }
70
+ const state = entry.state.read(r);
71
+ return state === ModifiedFileEntryState.Accepted || state === ModifiedFileEntryState.Rejected;
72
+ });
73
+ const whenDecided = waitForState(isSettled, Boolean);
74
+ await raceCancellation(whenDecided, token);
75
+ store.dispose();
76
+ return true;
77
+ }
78
+ async function reviewNotebookEdits(accessor, uri, stream, token) {
79
+ const chatService = accessor.get(IChatService);
80
+ const notebookService = accessor.get(INotebookService);
81
+ const isNotebook = notebookService.hasSupportedNotebooks(uri);
82
+ const chatModelRef = chatService.startNewLocalSession(ChatAgentLocation.EditorInline);
83
+ const chatModel = chatModelRef.object;
84
+ chatModel.startEditingSession(true);
85
+ const store = ( new DisposableStore());
86
+ store.add(chatModelRef);
87
+ const chatRequest = chatModel?.addRequest({
88
+ text: "",
89
+ parts: []
90
+ }, {
91
+ variables: []
92
+ }, 0);
93
+ assertType(chatRequest.response);
94
+ if (isNotebook) {
95
+ chatRequest.response.updateContent({
96
+ kind: "notebookEdit",
97
+ uri,
98
+ edits: [],
99
+ done: false
100
+ });
101
+ } else {
102
+ chatRequest.response.updateContent({
103
+ kind: "textEdit",
104
+ uri,
105
+ edits: [],
106
+ done: false
107
+ });
108
+ }
109
+ for await (const chunk of stream) {
110
+ if (token.isCancellationRequested) {
111
+ chatRequest.response.cancel();
112
+ break;
113
+ }
114
+ if (chunk.every(isCellEditOperation)) {
115
+ chatRequest.response.updateContent({
116
+ kind: "notebookEdit",
117
+ uri,
118
+ edits: chunk,
119
+ done: false
120
+ });
121
+ } else {
122
+ chatRequest.response.updateContent({
123
+ kind: "textEdit",
124
+ uri: chunk[0],
125
+ edits: chunk[1],
126
+ done: false
127
+ });
128
+ }
129
+ }
130
+ if (isNotebook) {
131
+ chatRequest.response.updateContent({
132
+ kind: "notebookEdit",
133
+ uri,
134
+ edits: [],
135
+ done: true
136
+ });
137
+ } else {
138
+ chatRequest.response.updateContent({
139
+ kind: "textEdit",
140
+ uri,
141
+ edits: [],
142
+ done: true
143
+ });
144
+ }
145
+ if (!token.isCancellationRequested) {
146
+ chatRequest.response.complete();
147
+ }
148
+ const isSettled = derived(r => {
149
+ const entry = chatModel.editingSession?.readEntry(uri, r);
150
+ if (!entry) {
151
+ return false;
152
+ }
153
+ const state = entry.state.read(r);
154
+ return state === ModifiedFileEntryState.Accepted || state === ModifiedFileEntryState.Rejected;
155
+ });
156
+ const whenDecided = waitForState(isSettled, Boolean);
157
+ await raceCancellation(whenDecided, token);
158
+ store.dispose();
159
+ return true;
160
+ }
161
+ function isCellEditOperation(edit) {
162
+ if (URI.isUri(edit)) {
163
+ return false;
164
+ }
165
+ if (Array.isArray(edit)) {
166
+ return false;
167
+ }
168
+ return true;
169
+ }
170
+
171
+ export { reviewEdits, reviewNotebookEdits };
@@ -8,7 +8,7 @@ import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/
8
8
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
9
9
  import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
10
10
  import { IEnablementModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/enablement";
11
- import { IAgentPlugin } from "../common/plugins/agentPluginService.js";
11
+ import { IAgentPlugin } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginService";
12
12
  import { IPluginInstallService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service";
13
13
  import { IMarketplacePluginItem } from "./agentPluginEditor/agentPluginItems.js";
14
14
  export declare class InstallPluginAction extends Action {
@@ -17,7 +17,7 @@ import { hasKey } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types
17
17
 
18
18
  let InstallPluginAction = class InstallPluginAction extends Action {
19
19
  constructor(item, pluginInstallService) {
20
- super("agentPlugin.install", ( localize(5079, "Install")), "extension-action label prominent install", true, () => pluginInstallService.installPlugin({
20
+ super("agentPlugin.install", ( localize(5140, "Install")), "extension-action label prominent install", true, () => pluginInstallService.installPlugin({
21
21
  name: item.name,
22
22
  description: item.description,
23
23
  version: "",
@@ -33,7 +33,7 @@ let InstallPluginAction = class InstallPluginAction extends Action {
33
33
  InstallPluginAction = ( __decorate([( __param(1, IPluginInstallService))], InstallPluginAction));
34
34
  class UninstallPluginAction extends Action {
35
35
  constructor(plugin) {
36
- super("agentPlugin.uninstall", ( localize(5080, "Uninstall")), "extension-action label uninstall", true, () => {
36
+ super("agentPlugin.uninstall", ( localize(5141, "Uninstall")), "extension-action label uninstall", true, () => {
37
37
  plugin.remove();
38
38
  return Promise.resolve();
39
39
  });
@@ -41,7 +41,7 @@ class UninstallPluginAction extends Action {
41
41
  }
42
42
  let OpenPluginFolderAction = class OpenPluginFolderAction extends Action {
43
43
  constructor(plugin, commandService, openerService) {
44
- super("agentPlugin.openFolder", ( localize(5081, "Open Plugin Folder")), undefined, true, async () => {
44
+ super("agentPlugin.openFolder", ( localize(5142, "Open Plugin Folder")), undefined, true, async () => {
45
45
  try {
46
46
  await commandService.executeCommand("revealFileInOS", plugin.uri);
47
47
  } catch {
@@ -53,7 +53,7 @@ let OpenPluginFolderAction = class OpenPluginFolderAction extends Action {
53
53
  OpenPluginFolderAction = ( __decorate([( __param(1, ICommandService)), ( __param(2, IOpenerService))], OpenPluginFolderAction));
54
54
  let OpenPluginReadmeAction = class OpenPluginReadmeAction extends Action {
55
55
  constructor(readmeUri, openerService) {
56
- super("agentPlugin.openReadme", ( localize(5082, "Open README")), undefined, true, () => openerService.open(readmeUri));
56
+ super("agentPlugin.openReadme", ( localize(5143, "Open README")), undefined, true, () => openerService.open(readmeUri));
57
57
  }
58
58
  };
59
59
  OpenPluginReadmeAction = ( __decorate([( __param(1, IOpenerService))], OpenPluginReadmeAction));
@@ -168,11 +168,11 @@ class EnablementDropdownActionViewItem extends ActionWithDropdownActionViewItem
168
168
  function createEnablePluginDropDown(plugin, enablementModel, workspaceContextService) {
169
169
  const key = ( plugin.uri.toString());
170
170
  const hasWorkspace = workspaceContextService.getWorkbenchState() !== WorkbenchState.EMPTY;
171
- const enable = ( new EnablementSubAction("agentPlugin.enable", ( localize(5083, "Enable")), "extension-action label prominent", isContributionDisabled(plugin.enablement.get()), () => {
171
+ const enable = ( new EnablementSubAction("agentPlugin.enable", ( localize(5144, "Enable")), "extension-action label prominent", isContributionDisabled(plugin.enablement.get()), () => {
172
172
  enablementModel.setEnabled(key, ContributionEnablementState.EnabledProfile);
173
173
  return Promise.resolve();
174
174
  }));
175
- const enableWorkspace = ( new EnablementSubAction("agentPlugin.enableForWorkspace", ( localize(5084, "Enable (Workspace)")), "extension-action label", isContributionDisabled(plugin.enablement.get()) && hasWorkspace, () => {
175
+ const enableWorkspace = ( new EnablementSubAction("agentPlugin.enableForWorkspace", ( localize(5145, "Enable (Workspace)")), "extension-action label", isContributionDisabled(plugin.enablement.get()) && hasWorkspace, () => {
176
176
  enablementModel.setEnabled(key, ContributionEnablementState.EnabledWorkspace);
177
177
  return Promise.resolve();
178
178
  }));
@@ -181,11 +181,11 @@ function createEnablePluginDropDown(plugin, enablementModel, workspaceContextSer
181
181
  function createDisablePluginDropDown(plugin, enablementModel, workspaceContextService) {
182
182
  const key = ( plugin.uri.toString());
183
183
  const hasWorkspace = workspaceContextService.getWorkbenchState() !== WorkbenchState.EMPTY;
184
- const disable = ( new EnablementSubAction("agentPlugin.disable", ( localize(5085, "Disable")), "extension-action label disable", isContributionEnabled(plugin.enablement.get()), () => {
184
+ const disable = ( new EnablementSubAction("agentPlugin.disable", ( localize(5146, "Disable")), "extension-action label disable", isContributionEnabled(plugin.enablement.get()), () => {
185
185
  enablementModel.setEnabled(key, ContributionEnablementState.DisabledProfile);
186
186
  return Promise.resolve();
187
187
  }));
188
- const disableWorkspace = ( new EnablementSubAction("agentPlugin.disableForWorkspace", ( localize(5086, "Disable (Workspace)")), "extension-action label disable", isContributionEnabled(plugin.enablement.get()) && hasWorkspace, () => {
188
+ const disableWorkspace = ( new EnablementSubAction("agentPlugin.disableForWorkspace", ( localize(5147, "Disable (Workspace)")), "extension-action label disable", isContributionEnabled(plugin.enablement.get()) && hasWorkspace, () => {
189
189
  enablementModel.setEnabled(key, ContributionEnablementState.DisabledWorkspace);
190
190
  return Promise.resolve();
191
191
  }));
@@ -357,7 +357,7 @@ let AgentPluginEditor = class AgentPluginEditor extends EditorPane {
357
357
  this.contentDisposables.add(toDisposable(insert(this.layoutParticipants, {
358
358
  layout
359
359
  })));
360
- return this.openMarkdown(this.pluginReadme.get(), ( localize(5087, "No README available.")), readmeContainer, WebviewIndex.Readme, ( localize(5088, "Readme")), token);
360
+ return this.openMarkdown(this.pluginReadme.get(), ( localize(5148, "No README available.")), readmeContainer, WebviewIndex.Readme, ( localize(5149, "Readme")), token);
361
361
  }
362
362
  async openMarkdown(cacheResult, noContentCopy, container, webviewIndex, title, token) {
363
363
  try {
@@ -378,7 +378,7 @@ let AgentPluginEditor = class AgentPluginEditor extends EditorPane {
378
378
  webview.initialScrollProgress = this.initialScrollProgress.get(webviewIndex) || 0;
379
379
  webview.claim(this, this.window, undefined);
380
380
  setParentFlowTo(webview.container, container);
381
- webview.layoutWebviewOverElement(container);
381
+ webview.setAnchorElement(container);
382
382
  webview.setHtml(body);
383
383
  webview.claim(this, this.window, undefined);
384
384
  this.contentDisposables.add(webview.onDidFocus(() => this._onDidFocus?.fire()));
@@ -387,7 +387,7 @@ let AgentPluginEditor = class AgentPluginEditor extends EditorPane {
387
387
  ));
388
388
  const removeLayoutParticipant = insert(this.layoutParticipants, {
389
389
  layout: () => {
390
- webview.layoutWebviewOverElement(container);
390
+ webview.setAnchorElement(container);
391
391
  }
392
392
  });
393
393
  this.contentDisposables.add(toDisposable(removeLayoutParticipant));
@@ -529,7 +529,7 @@ let UpdatePluginEditorAction = class UpdatePluginEditorAction extends Action {
529
529
  pluginInstallService,
530
530
  pluginMarketplaceService
531
531
  ) {
532
- super(UpdatePluginEditorAction_1.ID, ( localize(5089, "Update")), "extension-action label prominent install");
532
+ super(UpdatePluginEditorAction_1.ID, ( localize(5150, "Update")), "extension-action label prominent install");
533
533
  this.plugin = plugin;
534
534
  this.liveMarketplacePlugin = liveMarketplacePlugin;
535
535
  this.pluginInstallService = pluginInstallService;
@@ -8,7 +8,7 @@ import { EditorInputCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/
8
8
  import { EditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput';
9
9
  import { AgentPluginItemKind } from './agentPluginItems.js';
10
10
 
11
- const AgentPluginEditorIcon = registerIcon("agent-plugin-editor-icon", Codicon.extensions, ( localize(5090, "Icon of the Agent Plugin editor.")));
11
+ const AgentPluginEditorIcon = registerIcon("agent-plugin-editor-icon", Codicon.extensions, ( localize(5151, "Icon of the Agent Plugin editor.")));
12
12
  function getPluginId(item) {
13
13
  if (item.kind === AgentPluginItemKind.Installed) {
14
14
  return ( item.plugin.uri.toString());
@@ -39,7 +39,7 @@ class AgentPluginEditorInput extends EditorInput {
39
39
  return this._item;
40
40
  }
41
41
  getName() {
42
- return localize(5091, "Plugin: {0}", this._item.name);
42
+ return localize(5152, "Plugin: {0}", this._item.name);
43
43
  }
44
44
  getIcon() {
45
45
  return AgentPluginEditorIcon;
@@ -1,6 +1,6 @@
1
1
  import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
2
2
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
3
- import type { IAgentPlugin } from "../../common/plugins/agentPluginService.js";
3
+ import type { IAgentPlugin } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginService";
4
4
  import type { IMarketplacePlugin, IMarketplaceReference, IPluginSourceDescriptor, MarketplaceType } from "../../common/plugins/pluginMarketplaceService.js";
5
5
  export declare enum AgentPluginItemKind {
6
6
  Installed = "installed",
@@ -1,12 +1,13 @@
1
1
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
2
2
  import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
3
- import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
3
+ import { IEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service";
4
4
  import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
5
5
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
6
6
  import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
7
7
  import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
8
8
  import { IProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service";
9
9
  import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
10
+ import { IUserDataProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service";
10
11
  import { IEnsureRepositoryOptions, IPullRepositoryOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService";
11
12
  import { IAgentPluginRepositoryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service";
12
13
  import { IMarketplacePlugin, IMarketplaceReference, IPluginSourceDescriptor, MarketplaceType, PluginSourceKind } from "../common/plugins/pluginMarketplaceService.js";
@@ -27,7 +28,7 @@ export declare class AgentPluginRepositoryService implements IAgentPluginReposit
27
28
  private readonly _pluginSources;
28
29
  private readonly _cloneSequencer;
29
30
  private readonly _migrationDone;
30
- constructor(_commandService: ICommandService, environmentService: IWorkbenchEnvironmentService, _fileService: IFileService, instantiationService: IInstantiationService, _logService: ILogService, _notificationService: INotificationService, _pluginGit: IPluginGitService, _progressService: IProgressService, _storageService: IStorageService);
31
+ constructor(_commandService: ICommandService, environmentService: IEnvironmentService, _fileService: IFileService, instantiationService: IInstantiationService, _logService: ILogService, _notificationService: INotificationService, _pluginGit: IPluginGitService, _progressService: IProgressService, _storageService: IStorageService, userDataProfileService: IUserDataProfileService);
31
32
  getPluginSource(kind: PluginSourceKind): IPluginSource;
32
33
  getRepositoryUri(marketplace: IMarketplaceReference, marketplaceType?: MarketplaceType): URI;
33
34
  getPluginInstallUri(plugin: IMarketplacePlugin): URI;
@@ -8,7 +8,7 @@ import { revive } from '@codingame/monaco-vscode-api/vscode/vs/base/common/marsh
8
8
  import { joinPath, isEqual, dirname, isEqualOrParent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
9
9
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
10
10
  import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
11
- import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
11
+ import { IEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service';
12
12
  import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
13
13
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
14
14
  import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
@@ -18,6 +18,7 @@ import { ProgressLocation } from '@codingame/monaco-vscode-api/vscode/vs/platfor
18
18
  import { IProgressService } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service';
19
19
  import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
20
20
  import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
21
+ import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
21
22
  import { PluginSourceKind } from '../common/plugins/pluginMarketplaceService.js';
22
23
  import { IPluginGitService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginGitService.service';
23
24
  import { RelativePathPluginSource, GitHubPluginSource, GitUrlPluginSource, NpmPluginSource, PipPluginSource } from './pluginSources.js';
@@ -35,7 +36,8 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
35
36
  _notificationService,
36
37
  _pluginGit,
37
38
  _progressService,
38
- _storageService
39
+ _storageService,
40
+ userDataProfileService
39
41
  ) {
40
42
  this._commandService = _commandService;
41
43
  this._fileService = _fileService;
@@ -46,7 +48,7 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
46
48
  this._storageService = _storageService;
47
49
  this._marketplaceIndex = ( new Lazy(() => this._loadMarketplaceIndex()));
48
50
  this._cloneSequencer = ( new SequencerByKey());
49
- this.agentPluginsHome = environmentService.agentPluginsHome;
51
+ this.agentPluginsHome = userDataProfileService.currentProfile.agentPluginsHome;
50
52
  const legacyCacheRoot = joinPath(environmentService.cacheHome, "agentPlugins");
51
53
  const oldCacheRoot = environmentService.cacheHome.scheme === "file" ? legacyCacheRoot : this.agentPluginsHome;
52
54
  this._cacheRoot = this.agentPluginsHome;
@@ -96,7 +98,7 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
96
98
  if (marketplace.kind === MarketplaceReferenceKind.LocalFileUri) {
97
99
  throw ( new Error(`Local marketplace repository does not exist: ${repoDir.fsPath}`));
98
100
  }
99
- const progressTitle = options?.progressTitle ?? ( localize(5092, "Preparing plugin marketplace '{0}'...", marketplace.displayLabel));
101
+ const progressTitle = options?.progressTitle ?? ( localize(5153, "Preparing plugin marketplace '{0}'...", marketplace.displayLabel));
100
102
  const failureLabel = options?.failureLabel ?? marketplace.displayLabel;
101
103
  await this._cloneRepository(repoDir, marketplace.cloneUrl, progressTitle, failureLabel);
102
104
  this._updateMarketplaceIndex(marketplace, repoDir, options?.marketplaceType);
@@ -121,7 +123,7 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
121
123
  try {
122
124
  return await this._progressService.withProgress({
123
125
  location: ProgressLocation.Notification,
124
- title: ( localize(5093, "Updating plugin '{0}'...", updateLabel)),
126
+ title: ( localize(5154, "Updating plugin '{0}'...", updateLabel)),
125
127
  cancellable: true
126
128
  }, () => this._pluginGit.pull(repoDir, cts.token), () => cts.dispose(true));
127
129
  } finally {
@@ -136,13 +138,13 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
136
138
  this._notificationService.notify({
137
139
  severity: Severity.Error,
138
140
  message: ( localize(
139
- 5094,
141
+ 5155,
140
142
  "Failed to update plugin '{0}': {1}",
141
143
  options?.failureLabel ?? updateLabel,
142
144
  err?.message ?? String(err)
143
145
  )),
144
146
  actions: {
145
- primary: [( new Action("showGitOutput", ( localize(5095, "Show Git Output")), undefined, true, () => {
147
+ primary: [( new Action("showGitOutput", ( localize(5156, "Show Git Output")), undefined, true, () => {
146
148
  this._commandService.executeCommand("git.showOutput");
147
149
  }))]
148
150
  }
@@ -221,13 +223,13 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
221
223
  this._notificationService.notify({
222
224
  severity: Severity.Error,
223
225
  message: ( localize(
224
- 5096,
226
+ 5157,
225
227
  "Failed to install plugin '{0}': {1}",
226
228
  failureLabel,
227
229
  err?.message ?? String(err)
228
230
  )),
229
231
  actions: {
230
- primary: [( new Action("showGitOutput", ( localize(5095, "Show Git Output")), undefined, true, () => {
232
+ primary: [( new Action("showGitOutput", ( localize(5156, "Show Git Output")), undefined, true, () => {
231
233
  this._commandService.executeCommand("git.showOutput");
232
234
  }))]
233
235
  }
@@ -362,6 +364,6 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
362
364
  }
363
365
  }
364
366
  };
365
- AgentPluginRepositoryService = ( __decorate([( __param(0, ICommandService)), ( __param(1, IWorkbenchEnvironmentService)), ( __param(2, IFileService)), ( __param(3, IInstantiationService)), ( __param(4, ILogService)), ( __param(5, INotificationService)), ( __param(6, IPluginGitService)), ( __param(7, IProgressService)), ( __param(8, IStorageService))], AgentPluginRepositoryService));
367
+ AgentPluginRepositoryService = ( __decorate([( __param(0, ICommandService)), ( __param(1, IEnvironmentService)), ( __param(2, IFileService)), ( __param(3, IInstantiationService)), ( __param(4, ILogService)), ( __param(5, INotificationService)), ( __param(6, IPluginGitService)), ( __param(7, IProgressService)), ( __param(8, IStorageService)), ( __param(9, IUserDataProfileService))], AgentPluginRepositoryService));
366
368
 
367
369
  export { AgentPluginRepositoryService };
@@ -1,7 +1,6 @@
1
1
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
2
  import { IPagedModel } from "@codingame/monaco-vscode-api/vscode/vs/base/common/paging";
3
3
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
4
- import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
5
4
  import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
6
5
  import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
7
6
  import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
@@ -19,8 +18,6 @@ import { IAgentPluginService } from "@codingame/monaco-vscode-api/vscode/vs/work
19
18
  import { IPluginInstallService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service";
20
19
  import { IPluginMarketplaceService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service";
21
20
  import { IAgentPluginItem } from "./agentPluginEditor/agentPluginItems.js";
22
- export declare const HasInstalledAgentPluginsContext: RawContextKey<boolean>;
23
- export declare const InstalledAgentPluginsViewId = "workbench.views.agentPlugins.installed";
24
21
  interface IAgentPluginsListViewOptions {
25
22
  installedOnly?: boolean;
26
23
  }
@@ -16,7 +16,7 @@ import { dirname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/reso
16
16
  import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
17
17
  import { Action2, MenuId, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
18
18
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
19
- import { RawContextKey, ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
19
+ import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
20
20
  import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
21
21
  import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
22
22
  import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
@@ -46,12 +46,11 @@ import { IPluginMarketplaceService } from '@codingame/monaco-vscode-api/vscode/v
46
46
  import { AgentPluginEditorInput } from './agentPluginEditor/agentPluginEditorInput.js';
47
47
  import { AgentPluginItemKind } from './agentPluginEditor/agentPluginItems.js';
48
48
  import { InstallPluginAction, getInstalledPluginContextMenuActions, OpenPluginReadmeAction } from './agentPluginActions.js';
49
+ import { InstalledAgentPluginsViewId, HasInstalledAgentPluginsContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
49
50
  import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
50
51
  import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
51
52
 
52
53
  var UpdatePluginAction_1, ManagePluginAction_1, AgentPluginRenderer_1;
53
- const HasInstalledAgentPluginsContext = ( new RawContextKey("hasInstalledAgentPlugins", false));
54
- const InstalledAgentPluginsViewId = "workbench.views.agentPlugins.installed";
55
54
  function installedPluginToItem(plugin, labelService, outdated) {
56
55
  const name = plugin.label;
57
56
  const description = plugin.fromMarketplace?.description ?? labelService.getUriLabel(dirname(plugin.uri), {
@@ -93,7 +92,7 @@ let UpdatePluginAction = class UpdatePluginAction extends Action {
93
92
  pluginInstallService,
94
93
  pluginMarketplaceService
95
94
  ) {
96
- super(UpdatePluginAction_1.ID, ( localize(5097, "Update")), "extension-action label prominent install");
95
+ super(UpdatePluginAction_1.ID, ( localize(5158, "Update")), "extension-action label prominent install");
97
96
  this.plugin = plugin;
98
97
  this.liveMarketplacePlugin = liveMarketplacePlugin;
99
98
  this.pluginInstallService = pluginInstallService;
@@ -121,7 +120,7 @@ let ManagePluginAction = class ManagePluginAction extends Action {
121
120
  this.getActionGroups = getActionGroups;
122
121
  this.instantiationService = instantiationService;
123
122
  this._actionViewItem = null;
124
- this.tooltip = ( localize(5098, "Manage"));
123
+ this.tooltip = ( localize(5159, "Manage"));
125
124
  }
126
125
  createActionViewItem(options) {
127
126
  this._actionViewItem = this.instantiationService.createInstance(DropDownActionViewItem, this, options);
@@ -358,7 +357,7 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
358
357
  return item?.name ?? "";
359
358
  },
360
359
  getWidgetAriaLabel() {
361
- return localize(5099, "Agent Plugins");
360
+ return localize(5160, "Agent Plugins");
362
361
  }
363
362
  },
364
363
  overrideStyles: getLocationBasedViewColors(this.viewDescriptorService.getViewLocationById(this.id)).listOverrideStyles
@@ -533,7 +532,7 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
533
532
  this.bodyTemplate.pluginsList.classList.toggle("hidden", count === 0);
534
533
  this.bodyTemplate.messageContainer.classList.toggle("hidden", count > 0);
535
534
  if (count === 0 && this.isBodyVisible()) {
536
- this.bodyTemplate.messageBox.textContent = ( localize(5100, "No agent plugins found."));
535
+ this.bodyTemplate.messageBox.textContent = ( localize(5161, "No agent plugins found."));
537
536
  }
538
537
  }
539
538
  }
@@ -543,8 +542,8 @@ class AgentPluginsBrowseCommand extends Action2 {
543
542
  constructor() {
544
543
  super({
545
544
  id: "workbench.agentPlugins.browse",
546
- title: ( localize2(5101, "Agent Plugins")),
547
- tooltip: ( localize2(5102, "Browse Agent Plugins")),
545
+ title: ( localize2(5162, "Agent Plugins")),
546
+ tooltip: ( localize2(5163, "Browse Agent Plugins")),
548
547
  icon: Codicon.search,
549
548
  precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()))),
550
549
  menu: [{
@@ -567,8 +566,8 @@ class CheckForPluginUpdatesCommand extends Action2 {
567
566
  constructor() {
568
567
  super({
569
568
  id: "workbench.agentPlugins.checkForUpdates",
570
- title: ( localize2(5103, "Update Plugins")),
571
- category: ( localize2(5104, "Chat")),
569
+ title: ( localize2(5164, "Update Plugins")),
570
+ category: ( localize2(5165, "Chat")),
572
571
  precondition: ChatContextKeys.enabled,
573
572
  f1: true
574
573
  });
@@ -581,8 +580,8 @@ class ForceUpdatePluginsCommand extends Action2 {
581
580
  constructor() {
582
581
  super({
583
582
  id: "workbench.agentPlugins.forceUpdate",
584
- title: ( localize2(5105, "Update Plugins (Force)")),
585
- category: ( localize2(5104, "Chat")),
583
+ title: ( localize2(5166, "Update Plugins (Force)")),
584
+ category: ( localize2(5165, "Chat")),
586
585
  precondition: ChatContextKeys.enabled,
587
586
  f1: true
588
587
  });
@@ -608,7 +607,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
608
607
  registerAction2(ForceUpdatePluginsCommand);
609
608
  ( Registry.as(Extensions.ViewsRegistry)).registerViews([{
610
609
  id: InstalledAgentPluginsViewId,
611
- name: ( localize2(5106, "Agent Plugins - Installed")),
610
+ name: ( localize2(5167, "Agent Plugins - Installed")),
612
611
  ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{
613
612
  installedOnly: true
614
613
  }])),
@@ -618,7 +617,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
618
617
  canToggleVisibility: true
619
618
  }, {
620
619
  id: "workbench.views.agentPlugins.default.marketplace",
621
- name: ( localize2(5107, "Agent Plugins")),
620
+ name: ( localize2(5168, "Agent Plugins")),
622
621
  ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
623
622
  when: ( ContextKeyExpr.and(DefaultViewsContext, ( HasInstalledAgentPluginsContext.toNegated()), ( ChatContextKeys.Setup.hidden.negate()))),
624
623
  weight: 30,
@@ -627,7 +626,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
627
626
  hideByDefault: true
628
627
  }, {
629
628
  id: "workbench.views.agentPlugins.marketplace",
630
- name: ( localize2(5107, "Agent Plugins")),
629
+ name: ( localize2(5168, "Agent Plugins")),
631
630
  ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
632
631
  when: ( ContextKeyExpr.and(SearchAgentPluginsContext, ( ChatContextKeys.Setup.hidden.negate())))
633
632
  }], VIEW_CONTAINER);
@@ -635,4 +634,4 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
635
634
  };
636
635
  AgentPluginsViewsContribution = ( __decorate([( __param(0, IContextKeyService)), ( __param(1, IAgentPluginService))], AgentPluginsViewsContribution));
637
636
 
638
- export { AgentPluginsListView, AgentPluginsViewsContribution, HasInstalledAgentPluginsContext, InstalledAgentPluginsViewId };
637
+ export { AgentPluginsListView, AgentPluginsViewsContribution };
@@ -0,0 +1,28 @@
1
+ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
+ import { IAgentHostPermissionService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentHostPermissionService.service";
3
+ import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
4
+ import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
5
+ import { IChatInputNotificationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationService.service";
6
+ /**
7
+ * Bridges {@link IAgentHostPermissionService} to the chat input notification
8
+ * banner. While there are pending permission requests, the oldest one is
9
+ * shown above the chat input with three actions:
10
+ *
11
+ * - **Deny** — reject the request.
12
+ * - **Allow** — approve the request and remember it in memory until the
13
+ * connection closes or the window is reloaded.
14
+ * - **Always allow** — approve and persist into `chat.agentHost.localFilePermissions`.
15
+ */
16
+ export declare class AgentHostPermissionUiContribution extends Disposable implements IWorkbenchContribution {
17
+ private readonly _permissionService;
18
+ private readonly _chatInputNotificationService;
19
+ private readonly _labelService;
20
+ static readonly ID = "workbench.contrib.agentHostPermissionUi";
21
+ /** Stable id used in {@link IChatInputNotification} so updates replace in place. */
22
+ private static readonly NOTIFICATION_ID;
23
+ private _lastRequestId;
24
+ constructor(_permissionService: IAgentHostPermissionService, _chatInputNotificationService: IChatInputNotificationService, _labelService: ILabelService);
25
+ private _render;
26
+ private _buildNotification;
27
+ private _resolveHostName;
28
+ }