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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +21 -5
  3. package/package.json +5 -5
  4. package/vscode/src/vs/base/common/defaultAccount.d.ts +69 -0
  5. package/vscode/src/vs/base/common/defaultAccount.js +12 -0
  6. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +91 -22
  7. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +301 -68
  8. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +24 -5
  9. package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +89 -16
  10. package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.d.ts +17 -5
  11. package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.js +73 -10
  12. package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +32 -6
  13. package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +32 -20
  14. package/vscode/src/vs/platform/agentHost/common/agentHostPermissionService.d.ts +37 -0
  15. package/vscode/src/vs/platform/agentHost/common/agentHostPermissionService.js +15 -0
  16. package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +242 -201
  17. package/vscode/src/vs/platform/agentHost/common/agentService.js +3 -1
  18. package/vscode/src/vs/platform/agentHost/common/ahpJsonlLogger.d.ts +35 -0
  19. package/vscode/src/vs/platform/agentHost/common/ahpJsonlLogger.js +106 -0
  20. package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +38 -30
  21. package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +2 -1
  22. package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +114 -4
  23. package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.d.ts +10 -10
  24. package/vscode/src/vs/platform/agentHost/common/state/protocol/reducers.js +52 -19
  25. package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +42 -0
  26. package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +7 -0
  27. package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +42 -41
  28. package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.d.ts +6 -6
  29. package/vscode/src/vs/platform/agentHost/common/transportConstants.d.ts +15 -0
  30. package/vscode/src/vs/platform/agentHost/common/transportConstants.js +6 -0
  31. package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.d.ts +4 -3
  32. package/vscode/src/vs/platform/agentPlugins/common/pluginParsers.js +4 -3
  33. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.d.ts +4 -2
  34. package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +15 -7
  35. package/vscode/src/vs/workbench/contrib/browserView/common/browserChatToolReferenceNames.d.ts +19 -0
  36. package/vscode/src/vs/workbench/contrib/browserView/common/browserChatToolReferenceNames.js +17 -0
  37. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
  38. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +2 -2
  39. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +16 -16
  40. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +14 -10
  41. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +64 -59
  42. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
  43. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +31 -16
  44. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +18 -9
  45. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.d.ts +16 -0
  46. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +8 -8
  47. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +30 -5
  48. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
  49. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +8 -7
  50. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
  51. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
  52. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
  53. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +12 -12
  54. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +12 -12
  55. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +27 -18
  56. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
  57. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +11 -11
  58. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
  59. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +21 -20
  60. package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +22 -22
  61. package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.d.ts +12 -0
  62. package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.js +171 -0
  63. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +1 -1
  64. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +8 -8
  65. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +4 -4
  66. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
  67. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +1 -1
  68. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +3 -2
  69. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +12 -10
  70. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.d.ts +28 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +99 -0
  72. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.d.ts +2 -1
  73. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.js +11 -4
  74. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +9 -3
  75. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +63 -53
  76. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +2 -0
  77. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +10 -7
  78. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +3 -3
  79. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
  80. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
  81. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
  82. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +5 -4
  83. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +25 -48
  84. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
  85. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
  86. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +5 -0
  87. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +8 -4
  88. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +99 -39
  89. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +2 -2
  90. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +17 -30
  91. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.d.ts +78 -0
  92. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +38 -0
  93. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +35 -37
  94. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +347 -326
  95. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +6 -2
  96. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +1 -11
  97. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +113 -109
  98. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +37 -15
  99. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +436 -134
  100. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
  101. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +2 -0
  102. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +52 -26
  103. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +7 -1
  104. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +2 -1
  105. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +13 -5
  106. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.d.ts +23 -0
  107. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +60 -0
  108. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.d.ts +25 -0
  109. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +93 -0
  110. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +9 -2
  111. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +73 -104
  112. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +272 -41
  113. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +12 -2
  114. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +30 -1
  115. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +430 -185
  116. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +5 -2
  117. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +44 -3
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +480 -279
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.d.ts +138 -0
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.js +221 -0
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +84 -0
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +1216 -0
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +2 -1
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +32 -4
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +26 -19
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
  132. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +28 -25
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +13 -13
  134. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
  135. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +25 -24
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +2 -1
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +68 -33
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
  141. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +3 -2
  142. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +1 -0
  143. package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +650 -6
  144. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +2 -2
  145. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
  146. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
  147. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +29 -0
  148. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +390 -0
  149. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
  150. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
  151. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
  152. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
  153. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +18 -3
  154. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
  155. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +11 -11
  156. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -2
  157. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
  158. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
  159. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
  160. package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +1 -1
  161. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -7
  162. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
  163. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +1 -7
  164. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +6 -87
  165. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +1 -1
  166. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +116 -182
  167. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +12 -39
  168. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
  169. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +31 -31
  170. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
  171. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +61 -41
  172. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
  173. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
  174. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +27 -27
  175. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +2 -0
  176. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +16 -13
  177. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +20 -0
  178. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +106 -36
  179. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +25 -7
  180. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +629 -425
  181. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +9 -1
  182. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +105 -29
  183. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.d.ts +1 -0
  184. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +175 -148
  185. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +20 -33
  186. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +9 -2
  187. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
  188. package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
  189. package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
  190. package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +4 -4
  191. package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
  192. package/vscode/src/vs/workbench/contrib/chat/browser/githubRepoFetcher.d.ts +58 -0
  193. package/vscode/src/vs/workbench/contrib/chat/browser/githubRepoFetcher.js +339 -0
  194. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
  195. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/media/planReviewFeedback.css +160 -0
  196. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.d.ts +9 -0
  197. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +123 -0
  198. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.d.ts +37 -0
  199. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +572 -0
  200. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.d.ts +36 -0
  201. package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.js +167 -0
  202. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.d.ts +49 -7
  203. package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +315 -19
  204. package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +45 -24
  205. package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
  206. package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
  207. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
  208. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +44 -40
  209. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +5 -5
  210. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
  211. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileContributions.js +4 -1
  212. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
  213. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
  214. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
  215. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
  216. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
  217. package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
  218. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
  219. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +9 -1
  220. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +111 -52
  221. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +3 -7
  222. package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +13 -47
  223. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +3 -2
  224. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +4 -8
  225. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.d.ts +18 -0
  226. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolResultCompressorService.js +56 -0
  227. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +3 -7
  228. package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +14 -52
  229. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  230. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +3 -1
  231. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +17 -2
  232. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +2 -0
  233. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +23 -12
  234. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.d.ts +39 -0
  235. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +136 -0
  236. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.d.ts +72 -0
  237. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.js +56 -0
  238. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.d.ts +7 -0
  239. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.js +14 -1
  240. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +41 -26
  241. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +30 -12
  242. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
  243. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
  244. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +2 -5
  245. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +25 -6
  246. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
  247. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +2 -2
  248. package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +5 -4
  249. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +1 -0
  250. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +108 -45
  251. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +7 -3
  252. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +3 -1
  253. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +20 -1
  254. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +65 -26
  255. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +5 -3
  256. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +38 -11
  257. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +17 -1
  258. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +165 -16
  259. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +1 -0
  260. package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +62 -1
  261. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
  262. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -1
  263. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
  264. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -3
  265. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +15 -21
  266. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +1 -3
  267. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +18 -24
  268. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +4 -2
  269. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +203 -180
  270. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  271. package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.d.ts +30 -0
  272. package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.js +35 -0
  273. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +2 -1
  274. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +27 -2
  275. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -1
  276. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +14 -49
  277. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +0 -16
  278. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +35 -177
  279. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -8
  280. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.d.ts +1 -2
  281. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +2 -3
  282. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +4 -4
  283. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +11 -11
  284. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  285. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  286. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +13 -13
  287. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
  288. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
  289. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  290. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  291. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
  292. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +29 -3
  293. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +129 -3
  294. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +3 -2
  295. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +2 -1
  296. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +14 -6
  297. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
  298. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.d.ts +1 -4
  299. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +12 -38
  300. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
  301. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +4 -4
  302. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
  303. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.d.ts +12 -7
  304. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +77 -70
  305. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
  306. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
  307. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
  308. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  309. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.d.ts +32 -0
  310. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.js +232 -0
  311. package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.d.ts +83 -0
  312. package/vscode/src/vs/workbench/services/agentHost/common/agentHostPermissionService.js +243 -0
  313. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +0 -749
  314. package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.js +0 -14
  315. package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.d.ts +0 -17
  316. package/vscode/src/vs/platform/agentHost/common/state/sessionCapabilities.js +0 -5
  317. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +0 -40
  318. package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.js +0 -14
  319. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +0 -61
  320. package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +0 -638
  321. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +0 -131
  322. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +0 -363
  323. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +0 -24
  324. package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +0 -306
  325. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.d.ts +0 -23
  326. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +0 -97
  327. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/media/chatStatusWidget.css +0 -57
  328. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +0 -50
  329. package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +0 -29
  330. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +0 -50
  331. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +0 -78
  332. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +0 -77
  333. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +0 -120
  334. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +0 -10
  335. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +0 -23
  336. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +0 -242
  337. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +0 -1701
  338. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +0 -191
  339. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +0 -728
  340. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +0 -14
  341. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +0 -69
@@ -1,638 +0,0 @@
1
-
2
- import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import { getDomNodePagePosition, append, $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
- import { ActionBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
5
- import { ActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems';
6
- import { Action, Separator } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
7
- import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
8
- import { CancellationTokenSource, CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
9
- import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
10
- import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
11
- import { disposeIfDisposable, DisposableStore, MutableDisposable, isDisposable, Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
12
- import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
13
- import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
14
- import { PagedModel } from '@codingame/monaco-vscode-api/vscode/vs/base/common/paging';
15
- import { dirname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
16
- import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
17
- import { Action2, MenuId, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
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';
20
- import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
21
- import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
22
- import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
23
- import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
24
- import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
25
- import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
26
- import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
27
- import { WorkbenchPagedList } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
28
- import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
29
- import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
30
- import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
31
- import { getLocationBasedViewColors } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane';
32
- import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
33
- import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
34
- import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
35
- import { VIEW_CONTAINER } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/browser/extensions.contribution';
36
- import { manageExtensionIcon } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons';
37
- import { AbstractExtensionsListView } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/browser/extensionsViews';
38
- import { extensionsFilterSubMenu, DefaultViewsContext, SearchAgentPluginsContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions';
39
- import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
40
- import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
41
- import { IAgentPluginService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginService.service';
42
- import { isContributionEnabled } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/enablement';
43
- import { IPluginInstallService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service';
44
- import { hasSourceChanged } from '../common/plugins/pluginMarketplaceService.js';
45
- import { IPluginMarketplaceService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service';
46
- import { AgentPluginEditorInput } from './agentPluginEditor/agentPluginEditorInput.js';
47
- import { AgentPluginItemKind } from './agentPluginEditor/agentPluginItems.js';
48
- import { InstallPluginAction, getInstalledPluginContextMenuActions, OpenPluginReadmeAction } from './agentPluginActions.js';
49
- import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
50
- import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
51
-
52
- var UpdatePluginAction_1, ManagePluginAction_1, AgentPluginRenderer_1;
53
- const HasInstalledAgentPluginsContext = ( new RawContextKey("hasInstalledAgentPlugins", false));
54
- const InstalledAgentPluginsViewId = "workbench.views.agentPlugins.installed";
55
- function installedPluginToItem(plugin, labelService, outdated) {
56
- const name = plugin.label;
57
- const description = plugin.fromMarketplace?.description ?? labelService.getUriLabel(dirname(plugin.uri), {
58
- relative: true
59
- });
60
- const marketplace = plugin.fromMarketplace?.marketplace;
61
- return {
62
- kind: AgentPluginItemKind.Installed,
63
- name,
64
- description,
65
- marketplace,
66
- plugin,
67
- outdated
68
- };
69
- }
70
- function marketplacePluginToItem(plugin) {
71
- return {
72
- kind: AgentPluginItemKind.Marketplace,
73
- name: plugin.name,
74
- description: plugin.description,
75
- source: plugin.source,
76
- sourceDescriptor: plugin.sourceDescriptor,
77
- marketplace: plugin.marketplace,
78
- marketplaceReference: plugin.marketplaceReference,
79
- marketplaceType: plugin.marketplaceType,
80
- readmeUri: plugin.readmeUri
81
- };
82
- }
83
- let UpdatePluginAction = class UpdatePluginAction extends Action {
84
- static {
85
- UpdatePluginAction_1 = this;
86
- }
87
- static {
88
- this.ID = "agentPlugin.update";
89
- }
90
- constructor(
91
- plugin,
92
- liveMarketplacePlugin,
93
- pluginInstallService,
94
- pluginMarketplaceService
95
- ) {
96
- super(UpdatePluginAction_1.ID, ( localize(5097, "Update")), "extension-action label prominent install");
97
- this.plugin = plugin;
98
- this.liveMarketplacePlugin = liveMarketplacePlugin;
99
- this.pluginInstallService = pluginInstallService;
100
- this.pluginMarketplaceService = pluginMarketplaceService;
101
- }
102
- async run() {
103
- if (await this.pluginInstallService.updatePlugin(this.liveMarketplacePlugin)) {
104
- this.pluginMarketplaceService.addInstalledPlugin(this.plugin.uri, this.liveMarketplacePlugin);
105
- }
106
- }
107
- };
108
- UpdatePluginAction = UpdatePluginAction_1 = ( __decorate([( __param(2, IPluginInstallService)), ( __param(3, IPluginMarketplaceService))], UpdatePluginAction));
109
- let ManagePluginAction = class ManagePluginAction extends Action {
110
- static {
111
- ManagePluginAction_1 = this;
112
- }
113
- static {
114
- this.ID = "agentPlugin.manage";
115
- }
116
- static {
117
- this.CLASS = `extension-action icon manage ${ThemeIcon.asClassName(manageExtensionIcon)}`;
118
- }
119
- constructor(getActionGroups, instantiationService) {
120
- super(ManagePluginAction_1.ID, "", ManagePluginAction_1.CLASS, true);
121
- this.getActionGroups = getActionGroups;
122
- this.instantiationService = instantiationService;
123
- this._actionViewItem = null;
124
- this.tooltip = ( localize(5098, "Manage"));
125
- }
126
- createActionViewItem(options) {
127
- this._actionViewItem = this.instantiationService.createInstance(DropDownActionViewItem, this, options);
128
- return this._actionViewItem;
129
- }
130
- async run() {
131
- this._actionViewItem?.showMenu(this.getActionGroups());
132
- }
133
- };
134
- ManagePluginAction = ManagePluginAction_1 = ( __decorate([( __param(1, IInstantiationService))], ManagePluginAction));
135
- let DropDownActionViewItem = class DropDownActionViewItem extends ActionViewItem {
136
- constructor(action, options, contextMenuService) {
137
- super(null, action, {
138
- ...options,
139
- icon: true,
140
- label: false
141
- });
142
- this.contextMenuService = contextMenuService;
143
- }
144
- showMenu(actionGroups) {
145
- if (!this.element) {
146
- return;
147
- }
148
- const actions = actionGroups.flatMap(group => [...group, ( new Separator())]);
149
- if (actions.length > 0) {
150
- actions.pop();
151
- }
152
- const {
153
- left,
154
- top,
155
- height
156
- } = getDomNodePagePosition(this.element);
157
- this.contextMenuService.showContextMenu({
158
- getAnchor: () => ({
159
- x: left,
160
- y: top + height + 10
161
- }),
162
- getActions: () => actions,
163
- onHide: () => disposeIfDisposable(actions)
164
- });
165
- }
166
- };
167
- DropDownActionViewItem = ( __decorate([( __param(2, IContextMenuService))], DropDownActionViewItem));
168
- let AgentPluginRenderer = class AgentPluginRenderer {
169
- static {
170
- AgentPluginRenderer_1 = this;
171
- }
172
- static {
173
- this.templateId = "agentPlugin";
174
- }
175
- constructor(instantiationService) {
176
- this.instantiationService = instantiationService;
177
- this.templateId = AgentPluginRenderer_1.templateId;
178
- }
179
- renderTemplate(root) {
180
- const element = append(root, $(".agent-plugin-item.extension-list-item"));
181
- const details = append(element, $(".details"));
182
- const headerContainer = append(details, $(".header-container"));
183
- const header = append(headerContainer, $(".header"));
184
- const name = append(header, $("span.name"));
185
- const description = append(details, $(".description.ellipsis"));
186
- const footer = append(details, $(".footer"));
187
- const detailContainer = append(footer, $(".publisher-container"));
188
- const detail = append(detailContainer, $("span.publisher-name"));
189
- const actionbar = ( new ActionBar(footer, {
190
- focusOnlyEnabledItems: true,
191
- actionViewItemProvider: (action, options) => {
192
- if (action instanceof ManagePluginAction) {
193
- return action.createActionViewItem(options);
194
- }
195
- return undefined;
196
- }
197
- }));
198
- actionbar.setFocusable(false);
199
- return {
200
- root,
201
- name,
202
- description,
203
- detail,
204
- actionbar,
205
- disposables: [actionbar],
206
- elementDisposables: []
207
- };
208
- }
209
- renderPlaceholder(_index, data) {
210
- data.name.textContent = "";
211
- data.description.textContent = "";
212
- data.detail.textContent = "";
213
- data.actionbar.clear();
214
- this.disposeElement(undefined, 0, data);
215
- }
216
- renderElement(element, _index, data) {
217
- this.disposeElement(undefined, 0, data);
218
- data.name.textContent = element.name;
219
- data.description.textContent = element.description;
220
- data.elementDisposables.push(autorun(reader => {
221
- data.root.classList.toggle(
222
- "disabled",
223
- element.kind === AgentPluginItemKind.Installed && !isContributionEnabled(element.plugin.enablement.read(reader))
224
- );
225
- }));
226
- const updateActions = reader => {
227
- data.actionbar.clear();
228
- if (element.kind === AgentPluginItemKind.Marketplace) {
229
- data.detail.textContent = element.marketplace;
230
- const installAction = this.instantiationService.createInstance(InstallPluginAction, element);
231
- reader.store.add(installAction);
232
- data.actionbar.push([installAction], {
233
- icon: true,
234
- label: true
235
- });
236
- } else {
237
- data.detail.textContent = element.marketplace ?? "";
238
- const actions = [];
239
- const livePlugin = element.outdated?.read(reader);
240
- if (livePlugin) {
241
- const updateAction = this.instantiationService.createInstance(UpdatePluginAction, element.plugin, livePlugin);
242
- reader.store.add(updateAction);
243
- actions.push(updateAction);
244
- }
245
- const manageAction = this.instantiationService.createInstance(
246
- ManagePluginAction,
247
- () => getInstalledPluginContextMenuActions(element.plugin, this.instantiationService)
248
- );
249
- reader.store.add(manageAction);
250
- actions.push(manageAction);
251
- data.actionbar.push(actions, {
252
- icon: true,
253
- label: true
254
- });
255
- }
256
- };
257
- data.elementDisposables.push(autorun(updateActions));
258
- }
259
- disposeElement(_element, _index, data) {
260
- for (const d of data.elementDisposables) {
261
- d.dispose();
262
- }
263
- data.elementDisposables = [];
264
- }
265
- disposeTemplate(data) {
266
- for (const d of data.disposables) {
267
- d.dispose();
268
- }
269
- this.disposeElement(undefined, 0, data);
270
- }
271
- };
272
- AgentPluginRenderer = AgentPluginRenderer_1 = ( __decorate([( __param(0, IInstantiationService))], AgentPluginRenderer));
273
- let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensionsListView {
274
- constructor(
275
- listOptions,
276
- options,
277
- keybindingService,
278
- contextMenuService,
279
- instantiationService,
280
- themeService,
281
- hoverService,
282
- configurationService,
283
- contextKeyService,
284
- viewDescriptorService,
285
- openerService,
286
- agentPluginService,
287
- pluginMarketplaceService,
288
- pluginInstallService,
289
- labelService,
290
- editorService
291
- ) {
292
- super(
293
- options,
294
- keybindingService,
295
- contextMenuService,
296
- configurationService,
297
- contextKeyService,
298
- viewDescriptorService,
299
- instantiationService,
300
- openerService,
301
- themeService,
302
- hoverService
303
- );
304
- this.listOptions = listOptions;
305
- this.agentPluginService = agentPluginService;
306
- this.pluginMarketplaceService = pluginMarketplaceService;
307
- this.pluginInstallService = pluginInstallService;
308
- this.labelService = labelService;
309
- this.editorService = editorService;
310
- this.actionStore = this._register(( new DisposableStore()));
311
- this.queryCts = ( new MutableDisposable());
312
- this.list = null;
313
- this.listContainer = null;
314
- this.currentQuery = "@agentPlugins";
315
- this.refreshOnPluginsChangedScheduler = this._register(( new RunOnceScheduler(() => {
316
- if (this.list) {
317
- void this.show(this.currentQuery);
318
- }
319
- }, 0)));
320
- this._register(autorun(reader => {
321
- const plugins = this.agentPluginService.plugins.read(reader);
322
- for (const plugin of plugins) {
323
- plugin.enablement.read(reader);
324
- }
325
- if (this.list && this.isBodyVisible()) {
326
- this.refreshOnPluginsChangedScheduler.schedule();
327
- }
328
- }));
329
- this._register(this.pluginMarketplaceService.onDidChangeMarketplaces(() => {
330
- if (this.list && this.isBodyVisible()) {
331
- this.refreshOnPluginsChangedScheduler.schedule();
332
- }
333
- }));
334
- }
335
- renderBody(container) {
336
- super.renderBody(container);
337
- const messageContainer = append(container, $(".message-container"));
338
- const messageBox = append(messageContainer, $(".message"));
339
- const pluginsList = $(".agent-plugins-list");
340
- this.bodyTemplate = {
341
- pluginsList,
342
- messageBox,
343
- messageContainer
344
- };
345
- this.listContainer = append(container, pluginsList);
346
- this.list = this._register(
347
- this.instantiationService.createInstance(WorkbenchPagedList, `${this.id}-Agent-Plugins`, this.listContainer, {
348
- getHeight() {
349
- return 72;
350
- },
351
- getTemplateId: () => AgentPluginRenderer.templateId
352
- }, [this.instantiationService.createInstance(AgentPluginRenderer)], {
353
- multipleSelectionSupport: false,
354
- setRowLineHeight: false,
355
- horizontalScrolling: false,
356
- accessibilityProvider: {
357
- getAriaLabel(item) {
358
- return item?.name ?? "";
359
- },
360
- getWidgetAriaLabel() {
361
- return localize(5099, "Agent Plugins");
362
- }
363
- },
364
- overrideStyles: getLocationBasedViewColors(this.viewDescriptorService.getViewLocationById(this.id)).listOverrideStyles
365
- })
366
- );
367
- this._register(this.list.onContextMenu(e => this.onContextMenu(e), this));
368
- this._register(Event.debounce(
369
- Event.filter(this.list.onDidOpen, e => e.element !== null),
370
- (_, event) => event,
371
- 75,
372
- true
373
- )(options => {
374
- this.editorService.openEditor(
375
- this.instantiationService.createInstance(AgentPluginEditorInput, options.element),
376
- options.editorOptions
377
- );
378
- }));
379
- }
380
- onContextMenu(e) {
381
- if (!e.element) {
382
- return;
383
- }
384
- const actions = this.getContextMenuActions(e.element);
385
- if (actions.length === 0) {
386
- return;
387
- }
388
- this.contextMenuService.showContextMenu({
389
- getAnchor: () => e.anchor,
390
- getActions: () => actions
391
- });
392
- }
393
- getContextMenuActions(item) {
394
- let actions;
395
- if (item.kind === AgentPluginItemKind.Installed) {
396
- const groups = getInstalledPluginContextMenuActions(item.plugin, this.instantiationService);
397
- actions = groups.flatMap(group => [...group, ( new Separator())]);
398
- if (actions.length > 0) {
399
- actions.pop();
400
- }
401
- } else {
402
- actions = [];
403
- if (item.readmeUri) {
404
- actions.push(
405
- this.instantiationService.createInstance(OpenPluginReadmeAction, item.readmeUri)
406
- );
407
- }
408
- actions.push(this.instantiationService.createInstance(InstallPluginAction, item));
409
- }
410
- this.actionStore.clear();
411
- for (const action of actions) {
412
- if (isDisposable(action)) {
413
- this.actionStore.add(action);
414
- }
415
- }
416
- return actions;
417
- }
418
- layoutBody(height, width) {
419
- super.layoutBody(height, width);
420
- this.list?.layout(height, width);
421
- }
422
- async show(query) {
423
- this.currentQuery = query;
424
- const stripped = query.replace(/@agentPlugins/i, "").trim();
425
- const isRecommended = /^@recommended$/i.test(stripped);
426
- const isInstalled = /(?:^|\s)@installed(?:\s|$)/i.test(stripped);
427
- const text = isRecommended ? "" : stripped.replace(/(?:^|\s)@installed(?:\s|$)/gi, " ").trim().toLowerCase();
428
- let installed = this.queryInstalled();
429
- if (text) {
430
- installed = installed.filter(
431
- p => p.name.toLowerCase().includes(text) || p.description.toLowerCase().includes(text) || (p.marketplace ?? "").toLowerCase().includes(text)
432
- );
433
- }
434
- if (isRecommended) {
435
- const recommended = this.pluginMarketplaceService.recommendedPlugins.get();
436
- installed = installed.filter(p => {
437
- const marketplace = p.plugin.fromMarketplace;
438
- if (!marketplace) {
439
- return false;
440
- }
441
- const key = `${marketplace.name}@${marketplace.marketplace}`;
442
- return ( recommended.has(key));
443
- });
444
- }
445
- let items = installed;
446
- if (!this.listOptions.installedOnly && !isInstalled) {
447
- const marketplacePlugins = await this.queryMarketplacePlugins();
448
- let filteredMp = marketplacePlugins;
449
- if (isRecommended) {
450
- const recommended = this.pluginMarketplaceService.recommendedPlugins.get();
451
- filteredMp = filteredMp.filter(p => {
452
- const key = `${p.name}@${p.marketplace}`;
453
- return ( recommended.has(key));
454
- });
455
- } else {
456
- const lowerText = text.toLowerCase();
457
- filteredMp = filteredMp.filter(
458
- p => p.name.toLowerCase().includes(lowerText) || p.description.toLowerCase().includes(lowerText) || p.marketplace.toLowerCase().includes(lowerText)
459
- );
460
- }
461
- const marketplace = ( filteredMp.map(marketplacePluginToItem));
462
- const installedPaths = ( new Set(( installed.map(i => ( i.plugin.uri.toString())))));
463
- const filteredMarketplace = marketplace.filter(m => {
464
- const expectedUri = this.pluginInstallService.getPluginInstallUri({
465
- name: m.name,
466
- description: m.description,
467
- version: "",
468
- source: m.source,
469
- sourceDescriptor: m.sourceDescriptor,
470
- marketplace: m.marketplace,
471
- marketplaceReference: m.marketplaceReference,
472
- marketplaceType: m.marketplaceType
473
- });
474
- return !( installedPaths.has(( expectedUri.toString())));
475
- });
476
- items = [...installed, ...filteredMarketplace];
477
- }
478
- const model = ( new PagedModel(items));
479
- if (this.list) {
480
- this.list.model = model;
481
- }
482
- this.updateBody(model.length);
483
- return model;
484
- }
485
- queryInstalled() {
486
- const marketplaceObs = derived(reader => {
487
- const cachedMarketplace = this.pluginMarketplaceService.lastFetchedPlugins.read(reader);
488
- const marketplaceByKey = ( new Map());
489
- for (const mp of cachedMarketplace) {
490
- marketplaceByKey.set(`${mp.marketplaceReference.canonicalId}::${mp.name}`, mp);
491
- }
492
- const installedByUri = ( new Map());
493
- for (const entry of this.pluginMarketplaceService.installedPlugins.read(reader)) {
494
- installedByUri.set(( entry.pluginUri.toString()), entry.plugin);
495
- }
496
- return {
497
- marketplaceByKey,
498
- installedByUri
499
- };
500
- });
501
- const plugins = this.agentPluginService.plugins.get();
502
- return ( plugins.map(p => {
503
- const isOutdated = derived(reader => {
504
- const {
505
- marketplaceByKey,
506
- installedByUri
507
- } = marketplaceObs.read(reader);
508
- const storedPlugin = installedByUri.get(( p.uri.toString())) ?? p.fromMarketplace;
509
- if (storedPlugin) {
510
- const key = `${storedPlugin.marketplaceReference.canonicalId}::${storedPlugin.name}`;
511
- const live = marketplaceByKey.get(key);
512
- if (live && hasSourceChanged(storedPlugin.sourceDescriptor, live.sourceDescriptor)) {
513
- return live;
514
- }
515
- }
516
- return undefined;
517
- });
518
- return installedPluginToItem(p, this.labelService, isOutdated);
519
- }));
520
- }
521
- async queryMarketplacePlugins() {
522
- this.queryCts.value?.cancel();
523
- const cts = ( new CancellationTokenSource());
524
- this.queryCts.value = cts;
525
- try {
526
- return await this.pluginMarketplaceService.fetchMarketplacePlugins(cts.token);
527
- } catch {
528
- return [];
529
- }
530
- }
531
- updateBody(count) {
532
- if (this.bodyTemplate) {
533
- this.bodyTemplate.pluginsList.classList.toggle("hidden", count === 0);
534
- this.bodyTemplate.messageContainer.classList.toggle("hidden", count > 0);
535
- if (count === 0 && this.isBodyVisible()) {
536
- this.bodyTemplate.messageBox.textContent = ( localize(5100, "No agent plugins found."));
537
- }
538
- }
539
- }
540
- };
541
- AgentPluginsListView = ( __decorate([( __param(2, IKeybindingService)), ( __param(3, IContextMenuService)), ( __param(4, IInstantiationService)), ( __param(5, IThemeService)), ( __param(6, IHoverService)), ( __param(7, IConfigurationService)), ( __param(8, IContextKeyService)), ( __param(9, IViewDescriptorService)), ( __param(10, IOpenerService)), ( __param(11, IAgentPluginService)), ( __param(12, IPluginMarketplaceService)), ( __param(13, IPluginInstallService)), ( __param(14, ILabelService)), ( __param(15, IEditorService))], AgentPluginsListView));
542
- class AgentPluginsBrowseCommand extends Action2 {
543
- constructor() {
544
- super({
545
- id: "workbench.agentPlugins.browse",
546
- title: ( localize2(5101, "Agent Plugins")),
547
- tooltip: ( localize2(5102, "Browse Agent Plugins")),
548
- icon: Codicon.search,
549
- precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()))),
550
- menu: [{
551
- id: extensionsFilterSubMenu,
552
- group: "1_predefined",
553
- order: 2,
554
- when: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate())))
555
- }, {
556
- id: MenuId.ViewTitle,
557
- when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", InstalledAgentPluginsViewId)), ( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()))),
558
- group: "navigation"
559
- }]
560
- });
561
- }
562
- async run(accessor) {
563
- accessor.get(IExtensionsWorkbenchService).openSearch("@agentPlugins ");
564
- }
565
- }
566
- class CheckForPluginUpdatesCommand extends Action2 {
567
- constructor() {
568
- super({
569
- id: "workbench.agentPlugins.checkForUpdates",
570
- title: ( localize2(5103, "Update Plugins")),
571
- category: ( localize2(5104, "Chat")),
572
- precondition: ChatContextKeys.enabled,
573
- f1: true
574
- });
575
- }
576
- async run(accessor) {
577
- await accessor.get(IPluginInstallService).updateAllPlugins({}, CancellationToken.None);
578
- }
579
- }
580
- class ForceUpdatePluginsCommand extends Action2 {
581
- constructor() {
582
- super({
583
- id: "workbench.agentPlugins.forceUpdate",
584
- title: ( localize2(5105, "Update Plugins (Force)")),
585
- category: ( localize2(5104, "Chat")),
586
- precondition: ChatContextKeys.enabled,
587
- f1: true
588
- });
589
- }
590
- async run(accessor) {
591
- await accessor.get(IPluginInstallService).updateAllPlugins({
592
- force: true
593
- }, CancellationToken.None);
594
- }
595
- }
596
- let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends Disposable {
597
- static {
598
- this.ID = "workbench.chat.agentPlugins.views.contribution";
599
- }
600
- constructor(contextKeyService, agentPluginService) {
601
- super();
602
- const hasInstalledKey = HasInstalledAgentPluginsContext.bindTo(contextKeyService);
603
- this._register(autorun(reader => {
604
- hasInstalledKey.set(agentPluginService.plugins.read(reader).length > 0);
605
- }));
606
- registerAction2(AgentPluginsBrowseCommand);
607
- registerAction2(CheckForPluginUpdatesCommand);
608
- registerAction2(ForceUpdatePluginsCommand);
609
- ( Registry.as(Extensions.ViewsRegistry)).registerViews([{
610
- id: InstalledAgentPluginsViewId,
611
- name: ( localize2(5106, "Agent Plugins - Installed")),
612
- ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{
613
- installedOnly: true
614
- }])),
615
- when: ( ContextKeyExpr.and(DefaultViewsContext, HasInstalledAgentPluginsContext, ( ChatContextKeys.Setup.hidden.negate()))),
616
- weight: 30,
617
- order: 5,
618
- canToggleVisibility: true
619
- }, {
620
- id: "workbench.views.agentPlugins.default.marketplace",
621
- name: ( localize2(5107, "Agent Plugins")),
622
- ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
623
- when: ( ContextKeyExpr.and(DefaultViewsContext, ( HasInstalledAgentPluginsContext.toNegated()), ( ChatContextKeys.Setup.hidden.negate()))),
624
- weight: 30,
625
- order: 5,
626
- canToggleVisibility: true,
627
- hideByDefault: true
628
- }, {
629
- id: "workbench.views.agentPlugins.marketplace",
630
- name: ( localize2(5107, "Agent Plugins")),
631
- ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
632
- when: ( ContextKeyExpr.and(SearchAgentPluginsContext, ( ChatContextKeys.Setup.hidden.negate())))
633
- }], VIEW_CONTAINER);
634
- }
635
- };
636
- AgentPluginsViewsContribution = ( __decorate([( __param(0, IContextKeyService)), ( __param(1, IAgentPluginService))], AgentPluginsViewsContribution));
637
-
638
- export { AgentPluginsListView, AgentPluginsViewsContribution, HasInstalledAgentPluginsContext, InstalledAgentPluginsViewId };