@codingame/monaco-vscode-chat-service-override 28.4.0 → 29.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +18 -12
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +300 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.js +31 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +84 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +16 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +488 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +424 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +50 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +202 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/notifications.d.ts +114 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +723 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +33 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +40 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +22 -0
- package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +29 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +59 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +76 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +162 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +167 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +52 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +82 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +195 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +97 -88
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +78 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +174 -170
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +118 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +13 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +23 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +341 -196
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +79 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.d.ts +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +22 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +15 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +85 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +668 -214
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +306 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +84 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +651 -81
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +31 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +9 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +7 -142
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.js +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +25 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +297 -123
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +153 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +111 -171
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +5 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +277 -186
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +31 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +3 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +4 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +18 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +112 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +16 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +41 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +35 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +1 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +8 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +13 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +29 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +14 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +79 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +113 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +18 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +54 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +8 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +103 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +48 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +28 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +62 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +21 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +17 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +43 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +194 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +8 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +81 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +23 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +29 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +19 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +105 -172
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +80 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +56 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +70 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +33 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +21 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +362 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +90 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +146 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +10 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +33 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +200 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +90 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +21 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +22 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +28 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +20 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +68 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +57 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +21 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +171 -57
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +206 -35
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +11 -3
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +44 -22
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +450 -301
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +165 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +34 -20
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +209 -144
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js +205 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.js +47 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalSkill.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +191 -159
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +210 -233
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +19 -26
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +183 -193
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.js +75 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +8 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +97 -35
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +67 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +62 -23
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +23 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +50 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +21 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +124 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +20 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +10 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +46 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +74 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +24 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +5 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +66 -64
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +5 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +32 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +390 -114
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +21 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +70 -51
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +61 -51
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +94 -76
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +19 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +112 -21
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.d.ts +0 -53
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +0 -219
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +0 -89
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +0 -251
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +0 -123
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +0 -278
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +0 -76
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +0 -299
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +0 -67
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +0 -263
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +0 -85
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +0 -397
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +0 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +0 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +0 -30
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +0 -28
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +0 -190
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +0 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -20
|
@@ -5,17 +5,16 @@ import { ActionBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/u
|
|
|
5
5
|
import { ActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
6
6
|
import { Action, Separator } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
7
7
|
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
8
|
-
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
8
|
+
import { CancellationTokenSource, CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
9
9
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
10
10
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
11
11
|
import { disposeIfDisposable, DisposableStore, MutableDisposable, isDisposable, Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
12
12
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
13
13
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
14
14
|
import { PagedModel } from '@codingame/monaco-vscode-api/vscode/vs/base/common/paging';
|
|
15
|
-
import { dirname
|
|
15
|
+
import { dirname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
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
|
-
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
19
18
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
20
19
|
import { RawContextKey, ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
21
20
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
@@ -32,7 +31,6 @@ import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/t
|
|
|
32
31
|
import { getLocationBasedViewColors } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
33
32
|
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
34
33
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
35
|
-
import { MODAL_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
36
34
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
37
35
|
import { VIEW_CONTAINER } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/browser/extensions.contribution';
|
|
38
36
|
import { manageExtensionIcon } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons';
|
|
@@ -41,16 +39,20 @@ import { extensionsFilterSubMenu, DefaultViewsContext, SearchAgentPluginsContext
|
|
|
41
39
|
import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
|
|
42
40
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
43
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';
|
|
44
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
45
|
import { IPluginMarketplaceService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service';
|
|
46
46
|
import { AgentPluginEditorInput } from './agentPluginEditor/agentPluginEditorInput.js';
|
|
47
47
|
import { AgentPluginItemKind } from './agentPluginEditor/agentPluginItems.js';
|
|
48
|
+
import { InstallPluginAction, getInstalledPluginContextMenuActions, OpenPluginReadmeAction } from './agentPluginActions.js';
|
|
48
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';
|
|
49
51
|
|
|
50
|
-
var
|
|
52
|
+
var UpdatePluginAction_1, ManagePluginAction_1, AgentPluginRenderer_1;
|
|
51
53
|
const HasInstalledAgentPluginsContext = ( new RawContextKey("hasInstalledAgentPlugins", false));
|
|
52
54
|
const InstalledAgentPluginsViewId = "workbench.views.agentPlugins.installed";
|
|
53
|
-
function installedPluginToItem(plugin, labelService) {
|
|
55
|
+
function installedPluginToItem(plugin, labelService, outdated) {
|
|
54
56
|
const name = plugin.label;
|
|
55
57
|
const description = plugin.fromMarketplace?.description ?? labelService.getUriLabel(dirname(plugin.uri), {
|
|
56
58
|
relative: true
|
|
@@ -61,7 +63,8 @@ function installedPluginToItem(plugin, labelService) {
|
|
|
61
63
|
name,
|
|
62
64
|
description,
|
|
63
65
|
marketplace,
|
|
64
|
-
plugin
|
|
66
|
+
plugin,
|
|
67
|
+
outdated
|
|
65
68
|
};
|
|
66
69
|
}
|
|
67
70
|
function marketplacePluginToItem(plugin) {
|
|
@@ -77,132 +80,32 @@ function marketplacePluginToItem(plugin) {
|
|
|
77
80
|
readmeUri: plugin.readmeUri
|
|
78
81
|
};
|
|
79
82
|
}
|
|
80
|
-
let
|
|
83
|
+
let UpdatePluginAction = class UpdatePluginAction extends Action {
|
|
81
84
|
static {
|
|
82
|
-
|
|
85
|
+
UpdatePluginAction_1 = this;
|
|
83
86
|
}
|
|
84
87
|
static {
|
|
85
|
-
this.ID = "agentPlugin.
|
|
88
|
+
this.ID = "agentPlugin.update";
|
|
86
89
|
}
|
|
87
|
-
constructor(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
name: this.item.name,
|
|
95
|
-
description: this.item.description,
|
|
96
|
-
version: "",
|
|
97
|
-
source: this.item.source,
|
|
98
|
-
sourceDescriptor: this.item.sourceDescriptor,
|
|
99
|
-
marketplace: this.item.marketplace,
|
|
100
|
-
marketplaceReference: this.item.marketplaceReference,
|
|
101
|
-
marketplaceType: this.item.marketplaceType,
|
|
102
|
-
readmeUri: this.item.readmeUri
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
InstallPluginAction = InstallPluginAction_1 = ( __decorate([( __param(1, IPluginInstallService))], InstallPluginAction));
|
|
107
|
-
let EnablePluginAction = class EnablePluginAction extends Action {
|
|
108
|
-
static {
|
|
109
|
-
EnablePluginAction_1 = this;
|
|
110
|
-
}
|
|
111
|
-
static {
|
|
112
|
-
this.ID = "agentPlugin.enable";
|
|
113
|
-
}
|
|
114
|
-
constructor(plugin, agentPluginService) {
|
|
115
|
-
super(EnablePluginAction_1.ID, ( localize(5025, "Enable")));
|
|
116
|
-
this.plugin = plugin;
|
|
117
|
-
this.agentPluginService = agentPluginService;
|
|
118
|
-
}
|
|
119
|
-
async run() {
|
|
120
|
-
this.agentPluginService.setPluginEnabled(this.plugin.uri, true);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
EnablePluginAction = EnablePluginAction_1 = ( __decorate([( __param(1, IAgentPluginService))], EnablePluginAction));
|
|
124
|
-
let DisablePluginAction = class DisablePluginAction extends Action {
|
|
125
|
-
static {
|
|
126
|
-
DisablePluginAction_1 = this;
|
|
127
|
-
}
|
|
128
|
-
static {
|
|
129
|
-
this.ID = "agentPlugin.disable";
|
|
130
|
-
}
|
|
131
|
-
constructor(plugin, agentPluginService) {
|
|
132
|
-
super(DisablePluginAction_1.ID, ( localize(5026, "Disable")));
|
|
133
|
-
this.plugin = plugin;
|
|
134
|
-
this.agentPluginService = agentPluginService;
|
|
135
|
-
}
|
|
136
|
-
async run() {
|
|
137
|
-
this.agentPluginService.setPluginEnabled(this.plugin.uri, false);
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
DisablePluginAction = DisablePluginAction_1 = ( __decorate([( __param(1, IAgentPluginService))], DisablePluginAction));
|
|
141
|
-
class UninstallPluginAction extends Action {
|
|
142
|
-
static {
|
|
143
|
-
this.ID = "agentPlugin.uninstall";
|
|
144
|
-
}
|
|
145
|
-
constructor(plugin) {
|
|
146
|
-
super(UninstallPluginAction.ID, ( localize(5027, "Uninstall")));
|
|
147
|
-
this.plugin = plugin;
|
|
148
|
-
}
|
|
149
|
-
async run() {
|
|
150
|
-
this.plugin.remove();
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
let OpenPluginFolderAction = class OpenPluginFolderAction extends Action {
|
|
154
|
-
static {
|
|
155
|
-
OpenPluginFolderAction_1 = this;
|
|
156
|
-
}
|
|
157
|
-
static {
|
|
158
|
-
this.ID = "agentPlugin.openFolder";
|
|
159
|
-
}
|
|
160
|
-
constructor(plugin, commandService, openerService) {
|
|
161
|
-
super(OpenPluginFolderAction_1.ID, ( localize(5028, "Open Plugin Folder")));
|
|
90
|
+
constructor(
|
|
91
|
+
plugin,
|
|
92
|
+
liveMarketplacePlugin,
|
|
93
|
+
pluginInstallService,
|
|
94
|
+
pluginMarketplaceService
|
|
95
|
+
) {
|
|
96
|
+
super(UpdatePluginAction_1.ID, ( localize(5068, "Update")), "extension-action label prominent install");
|
|
162
97
|
this.plugin = plugin;
|
|
163
|
-
this.
|
|
164
|
-
this.
|
|
98
|
+
this.liveMarketplacePlugin = liveMarketplacePlugin;
|
|
99
|
+
this.pluginInstallService = pluginInstallService;
|
|
100
|
+
this.pluginMarketplaceService = pluginMarketplaceService;
|
|
165
101
|
}
|
|
166
102
|
async run() {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
} catch {
|
|
170
|
-
await this.openerService.open(dirname(this.plugin.uri));
|
|
103
|
+
if (await this.pluginInstallService.updatePlugin(this.liveMarketplacePlugin)) {
|
|
104
|
+
this.pluginMarketplaceService.addInstalledPlugin(this.plugin.uri, this.liveMarketplacePlugin);
|
|
171
105
|
}
|
|
172
106
|
}
|
|
173
107
|
};
|
|
174
|
-
|
|
175
|
-
let OpenPluginReadmeAction = class OpenPluginReadmeAction extends Action {
|
|
176
|
-
static {
|
|
177
|
-
OpenPluginReadmeAction_1 = this;
|
|
178
|
-
}
|
|
179
|
-
static {
|
|
180
|
-
this.ID = "agentPlugin.openReadme";
|
|
181
|
-
}
|
|
182
|
-
constructor(readmeUri, openerService) {
|
|
183
|
-
super(OpenPluginReadmeAction_1.ID, ( localize(5029, "Open README")));
|
|
184
|
-
this.readmeUri = readmeUri;
|
|
185
|
-
this.openerService = openerService;
|
|
186
|
-
}
|
|
187
|
-
async run() {
|
|
188
|
-
await this.openerService.open(this.readmeUri);
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
OpenPluginReadmeAction = OpenPluginReadmeAction_1 = ( __decorate([( __param(1, IOpenerService))], OpenPluginReadmeAction));
|
|
192
|
-
function getInstalledPluginContextMenuActionGroups(plugin, instantiationService) {
|
|
193
|
-
const groups = [];
|
|
194
|
-
if (plugin.enabled.get()) {
|
|
195
|
-
groups.push([instantiationService.createInstance(DisablePluginAction, plugin)]);
|
|
196
|
-
} else {
|
|
197
|
-
groups.push([instantiationService.createInstance(EnablePluginAction, plugin)]);
|
|
198
|
-
}
|
|
199
|
-
groups.push([
|
|
200
|
-
instantiationService.createInstance(OpenPluginFolderAction, plugin),
|
|
201
|
-
instantiationService.createInstance(OpenPluginReadmeAction, joinPath(plugin.uri, "README.md"))
|
|
202
|
-
]);
|
|
203
|
-
groups.push([instantiationService.createInstance(UninstallPluginAction, plugin)]);
|
|
204
|
-
return groups;
|
|
205
|
-
}
|
|
108
|
+
UpdatePluginAction = UpdatePluginAction_1 = ( __decorate([( __param(2, IPluginInstallService)), ( __param(3, IPluginMarketplaceService))], UpdatePluginAction));
|
|
206
109
|
let ManagePluginAction = class ManagePluginAction extends Action {
|
|
207
110
|
static {
|
|
208
111
|
ManagePluginAction_1 = this;
|
|
@@ -218,7 +121,7 @@ let ManagePluginAction = class ManagePluginAction extends Action {
|
|
|
218
121
|
this.getActionGroups = getActionGroups;
|
|
219
122
|
this.instantiationService = instantiationService;
|
|
220
123
|
this._actionViewItem = null;
|
|
221
|
-
this.tooltip = ( localize(
|
|
124
|
+
this.tooltip = ( localize(5069, "Manage"));
|
|
222
125
|
}
|
|
223
126
|
createActionViewItem(options) {
|
|
224
127
|
this._actionViewItem = this.instantiationService.createInstance(DropDownActionViewItem, this, options);
|
|
@@ -317,30 +220,41 @@ let AgentPluginRenderer = class AgentPluginRenderer {
|
|
|
317
220
|
data.elementDisposables.push(autorun(reader => {
|
|
318
221
|
data.root.classList.toggle(
|
|
319
222
|
"disabled",
|
|
320
|
-
element.kind === AgentPluginItemKind.Installed && !element.plugin.
|
|
223
|
+
element.kind === AgentPluginItemKind.Installed && !isContributionEnabled(element.plugin.enablement.read(reader))
|
|
321
224
|
);
|
|
322
225
|
}));
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
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));
|
|
344
258
|
}
|
|
345
259
|
disposeElement(_element, _index, data) {
|
|
346
260
|
for (const d of data.elementDisposables) {
|
|
@@ -404,7 +318,10 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
404
318
|
}
|
|
405
319
|
}, 0)));
|
|
406
320
|
this._register(autorun(reader => {
|
|
407
|
-
this.agentPluginService.plugins.read(reader);
|
|
321
|
+
const plugins = this.agentPluginService.plugins.read(reader);
|
|
322
|
+
for (const plugin of plugins) {
|
|
323
|
+
plugin.enablement.read(reader);
|
|
324
|
+
}
|
|
408
325
|
if (this.list && this.isBodyVisible()) {
|
|
409
326
|
this.refreshOnPluginsChangedScheduler.schedule();
|
|
410
327
|
}
|
|
@@ -441,7 +358,7 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
441
358
|
return item?.name ?? "";
|
|
442
359
|
},
|
|
443
360
|
getWidgetAriaLabel() {
|
|
444
|
-
return localize(
|
|
361
|
+
return localize(5070, "Agent Plugins");
|
|
445
362
|
}
|
|
446
363
|
},
|
|
447
364
|
overrideStyles: getLocationBasedViewColors(this.viewDescriptorService.getViewLocationById(this.id)).listOverrideStyles
|
|
@@ -456,8 +373,7 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
456
373
|
)(options => {
|
|
457
374
|
this.editorService.openEditor(
|
|
458
375
|
this.instantiationService.createInstance(AgentPluginEditorInput, options.element),
|
|
459
|
-
options.editorOptions
|
|
460
|
-
MODAL_GROUP
|
|
376
|
+
options.editorOptions
|
|
461
377
|
);
|
|
462
378
|
}));
|
|
463
379
|
}
|
|
@@ -477,7 +393,7 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
477
393
|
getContextMenuActions(item) {
|
|
478
394
|
let actions;
|
|
479
395
|
if (item.kind === AgentPluginItemKind.Installed) {
|
|
480
|
-
const groups =
|
|
396
|
+
const groups = getInstalledPluginContextMenuActions(item.plugin, this.instantiationService);
|
|
481
397
|
actions = groups.flatMap(group => [...group, ( new Separator())]);
|
|
482
398
|
if (actions.length > 0) {
|
|
483
399
|
actions.pop();
|
|
@@ -505,16 +421,44 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
505
421
|
}
|
|
506
422
|
async show(query) {
|
|
507
423
|
this.currentQuery = query;
|
|
508
|
-
const
|
|
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();
|
|
509
428
|
let installed = this.queryInstalled();
|
|
510
429
|
if (text) {
|
|
511
430
|
installed = installed.filter(
|
|
512
|
-
p => p.name.toLowerCase().includes(text) || p.description.toLowerCase().includes(text)
|
|
431
|
+
p => p.name.toLowerCase().includes(text) || p.description.toLowerCase().includes(text) || (p.marketplace ?? "").toLowerCase().includes(text)
|
|
513
432
|
);
|
|
514
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
|
+
}
|
|
515
445
|
let items = installed;
|
|
516
|
-
if (!this.listOptions.installedOnly) {
|
|
517
|
-
const
|
|
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));
|
|
518
462
|
const installedPaths = ( new Set(( installed.map(i => ( i.plugin.uri.toString())))));
|
|
519
463
|
const filteredMarketplace = marketplace.filter(m => {
|
|
520
464
|
const expectedUri = this.pluginInstallService.getPluginInstallUri({
|
|
@@ -539,19 +483,47 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
539
483
|
return model;
|
|
540
484
|
}
|
|
541
485
|
queryInstalled() {
|
|
542
|
-
const
|
|
543
|
-
|
|
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
|
+
}));
|
|
544
520
|
}
|
|
545
|
-
async
|
|
521
|
+
async queryMarketplacePlugins() {
|
|
546
522
|
this.queryCts.value?.cancel();
|
|
547
523
|
const cts = ( new CancellationTokenSource());
|
|
548
524
|
this.queryCts.value = cts;
|
|
549
525
|
try {
|
|
550
|
-
|
|
551
|
-
const lowerText = text.toLowerCase();
|
|
552
|
-
return ( plugins.filter(
|
|
553
|
-
p => p.name.toLowerCase().includes(lowerText) || p.description.toLowerCase().includes(lowerText)
|
|
554
|
-
).map(marketplacePluginToItem));
|
|
526
|
+
return await this.pluginMarketplaceService.fetchMarketplacePlugins(cts.token);
|
|
555
527
|
} catch {
|
|
556
528
|
return [];
|
|
557
529
|
}
|
|
@@ -561,7 +533,7 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
561
533
|
this.bodyTemplate.pluginsList.classList.toggle("hidden", count === 0);
|
|
562
534
|
this.bodyTemplate.messageContainer.classList.toggle("hidden", count > 0);
|
|
563
535
|
if (count === 0 && this.isBodyVisible()) {
|
|
564
|
-
this.bodyTemplate.messageBox.textContent = ( localize(
|
|
536
|
+
this.bodyTemplate.messageBox.textContent = ( localize(5071, "No agent plugins found."));
|
|
565
537
|
}
|
|
566
538
|
}
|
|
567
539
|
}
|
|
@@ -571,8 +543,8 @@ class AgentPluginsBrowseCommand extends Action2 {
|
|
|
571
543
|
constructor() {
|
|
572
544
|
super({
|
|
573
545
|
id: "workbench.agentPlugins.browse",
|
|
574
|
-
title: ( localize2(
|
|
575
|
-
tooltip: ( localize2(
|
|
546
|
+
title: ( localize2(5072, "Agent Plugins")),
|
|
547
|
+
tooltip: ( localize2(5073, "Browse Agent Plugins")),
|
|
576
548
|
icon: Codicon.search,
|
|
577
549
|
precondition: ( ChatContextKeys.Setup.hidden.negate()),
|
|
578
550
|
menu: [{
|
|
@@ -591,6 +563,36 @@ class AgentPluginsBrowseCommand extends Action2 {
|
|
|
591
563
|
accessor.get(IExtensionsWorkbenchService).openSearch("@agentPlugins ");
|
|
592
564
|
}
|
|
593
565
|
}
|
|
566
|
+
class CheckForPluginUpdatesCommand extends Action2 {
|
|
567
|
+
constructor() {
|
|
568
|
+
super({
|
|
569
|
+
id: "workbench.agentPlugins.checkForUpdates",
|
|
570
|
+
title: ( localize2(5074, "Update Plugins")),
|
|
571
|
+
category: ( localize2(5075, "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(5076, "Update Plugins (Force)")),
|
|
585
|
+
category: ( localize2(5075, "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
|
+
}
|
|
594
596
|
let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends Disposable {
|
|
595
597
|
static {
|
|
596
598
|
this.ID = "workbench.chat.agentPlugins.views.contribution";
|
|
@@ -599,12 +601,14 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
|
|
|
599
601
|
super();
|
|
600
602
|
const hasInstalledKey = HasInstalledAgentPluginsContext.bindTo(contextKeyService);
|
|
601
603
|
this._register(autorun(reader => {
|
|
602
|
-
hasInstalledKey.set(agentPluginService.
|
|
604
|
+
hasInstalledKey.set(agentPluginService.plugins.read(reader).length > 0);
|
|
603
605
|
}));
|
|
604
606
|
registerAction2(AgentPluginsBrowseCommand);
|
|
607
|
+
registerAction2(CheckForPluginUpdatesCommand);
|
|
608
|
+
registerAction2(ForceUpdatePluginsCommand);
|
|
605
609
|
( Registry.as(Extensions.ViewsRegistry)).registerViews([{
|
|
606
610
|
id: InstalledAgentPluginsViewId,
|
|
607
|
-
name: ( localize2(
|
|
611
|
+
name: ( localize2(5077, "Agent Plugins - Installed")),
|
|
608
612
|
ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{
|
|
609
613
|
installedOnly: true
|
|
610
614
|
}])),
|
|
@@ -614,7 +618,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
|
|
|
614
618
|
canToggleVisibility: true
|
|
615
619
|
}, {
|
|
616
620
|
id: "workbench.views.agentPlugins.default.marketplace",
|
|
617
|
-
name: ( localize2(
|
|
621
|
+
name: ( localize2(5078, "Agent Plugins")),
|
|
618
622
|
ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
|
|
619
623
|
when: ( ContextKeyExpr.and(DefaultViewsContext, ( HasInstalledAgentPluginsContext.toNegated()), ( ChatContextKeys.Setup.hidden.negate()))),
|
|
620
624
|
weight: 30,
|
|
@@ -623,7 +627,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
|
|
|
623
627
|
hideByDefault: true
|
|
624
628
|
}, {
|
|
625
629
|
id: "workbench.views.agentPlugins.marketplace",
|
|
626
|
-
name: ( localize2(
|
|
630
|
+
name: ( localize2(5078, "Agent Plugins")),
|
|
627
631
|
ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
|
|
628
632
|
when: ( ContextKeyExpr.and(SearchAgentPluginsContext, ( ChatContextKeys.Setup.hidden.negate())))
|
|
629
633
|
}], VIEW_CONTAINER);
|
package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js
CHANGED
|
@@ -13,7 +13,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/ins
|
|
|
13
13
|
import { LocalAgentsSessionsController } from './localAgentSessionsController.js';
|
|
14
14
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
15
15
|
import { registerAction2, MenuRegistry, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
16
|
-
import { FocusAgentSessionsAction, PickAgentSessionAction, ArchiveAllAgentSessionsAction, MarkAllAgentSessionsReadAction, ArchiveAgentSessionSectionAction, UnarchiveAgentSessionSectionAction, MarkAgentSessionSectionReadAction, ArchiveAgentSessionAction, UnarchiveAgentSessionAction, RenameAgentSessionAction, DeleteAgentSessionAction, DeleteAllLocalSessionsAction, MarkAgentSessionUnreadAction, MarkAgentSessionReadAction, OpenAgentSessionInNewWindowAction, OpenAgentSessionInEditorGroupAction, OpenAgentSessionInNewEditorGroupAction, RefreshAgentSessionsViewerAction, FindAgentSessionInViewerAction, ShowAgentSessionsSidebar, HideAgentSessionsSidebar, ToggleAgentSessionsSidebar, ToggleShowAgentSessionsAction, SetAgentSessionsOrientationStackedAction, SetAgentSessionsOrientationSideBySideAction } from './agentSessionsActions.js';
|
|
16
|
+
import { FocusAgentSessionsAction, PickAgentSessionAction, ArchiveAllAgentSessionsAction, MarkAllAgentSessionsReadAction, ArchiveAgentSessionSectionAction, UnarchiveAgentSessionSectionAction, MarkAgentSessionSectionReadAction, CollapseAllAgentSessionSectionsAction, ArchiveAgentSessionAction, UnarchiveAgentSessionAction, PinAgentSessionAction, UnpinAgentSessionAction, RenameAgentSessionAction, DeleteAgentSessionAction, DeleteAllLocalSessionsAction, MarkAgentSessionUnreadAction, MarkAgentSessionReadAction, OpenAgentSessionInNewWindowAction, OpenAgentSessionInEditorGroupAction, OpenAgentSessionInNewEditorGroupAction, RefreshAgentSessionsViewerAction, FindAgentSessionInViewerAction, ShowAgentSessionsSidebar, HideAgentSessionsSidebar, ToggleAgentSessionsSidebar, ToggleShowAgentSessionsAction, SetAgentSessionsOrientationStackedAction, SetAgentSessionsOrientationSideBySideAction } from './agentSessionsActions.js';
|
|
17
17
|
import { AGENT_SESSIONS_QUICK_ACCESS_PREFIX, AgentSessionsQuickAccessProvider } from './agentSessionsQuickAccess.js';
|
|
18
18
|
|
|
19
19
|
registerAction2(FocusAgentSessionsAction);
|
|
@@ -23,8 +23,11 @@ registerAction2(MarkAllAgentSessionsReadAction);
|
|
|
23
23
|
registerAction2(ArchiveAgentSessionSectionAction);
|
|
24
24
|
registerAction2(UnarchiveAgentSessionSectionAction);
|
|
25
25
|
registerAction2(MarkAgentSessionSectionReadAction);
|
|
26
|
+
registerAction2(CollapseAllAgentSessionSectionsAction);
|
|
26
27
|
registerAction2(ArchiveAgentSessionAction);
|
|
27
28
|
registerAction2(UnarchiveAgentSessionAction);
|
|
29
|
+
registerAction2(PinAgentSessionAction);
|
|
30
|
+
registerAction2(UnpinAgentSessionAction);
|
|
28
31
|
registerAction2(RenameAgentSessionAction);
|
|
29
32
|
registerAction2(DeleteAgentSessionAction);
|
|
30
33
|
registerAction2(DeleteAllLocalSessionsAction);
|
|
@@ -43,7 +46,7 @@ registerAction2(SetAgentSessionsOrientationStackedAction);
|
|
|
43
46
|
registerAction2(SetAgentSessionsOrientationSideBySideAction);
|
|
44
47
|
MenuRegistry.appendMenuItem(MenuId.AgentSessionsToolbar, {
|
|
45
48
|
submenu: MenuId.AgentSessionsViewerFilterSubMenu,
|
|
46
|
-
title: ( localize2(
|
|
49
|
+
title: ( localize2(5086, "Filter Agent Sessions")),
|
|
47
50
|
group: "navigation",
|
|
48
51
|
order: 3,
|
|
49
52
|
icon: Codicon.filter
|
|
@@ -113,9 +116,9 @@ MenuRegistry.appendMenuItem(MenuId.ChatViewSessionTitleToolbar, {
|
|
|
113
116
|
prefix: AGENT_SESSIONS_QUICK_ACCESS_PREFIX,
|
|
114
117
|
contextKey: "inAgentSessionsPicker",
|
|
115
118
|
when: ChatContextKeys.enabled,
|
|
116
|
-
placeholder: ( localize(
|
|
119
|
+
placeholder: ( localize(5087, "Search agent sessions by name")),
|
|
117
120
|
helpEntries: [{
|
|
118
|
-
description: ( localize(
|
|
121
|
+
description: ( localize(5088, "Show All Agent Sessions")),
|
|
119
122
|
commandId: "workbench.action.chat.history"
|
|
120
123
|
}]
|
|
121
124
|
});
|
package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts
CHANGED
|
@@ -40,6 +40,10 @@ export declare class MarkAgentSessionSectionReadAction extends Action2 {
|
|
|
40
40
|
constructor();
|
|
41
41
|
run(accessor: ServicesAccessor, context?: IAgentSessionSection): Promise<void>;
|
|
42
42
|
}
|
|
43
|
+
export declare class CollapseAllAgentSessionSectionsAction extends Action2 {
|
|
44
|
+
constructor();
|
|
45
|
+
run(accessor: ServicesAccessor, _section: unknown, control?: IAgentSessionsControl): Promise<void>;
|
|
46
|
+
}
|
|
43
47
|
declare abstract class BaseAgentSessionAction extends Action2 {
|
|
44
48
|
run(accessor: ServicesAccessor, context?: IAgentSession | IMarshalledAgentSessionContext): Promise<void>;
|
|
45
49
|
abstract runWithSessions(sessions: IAgentSession[], accessor: ServicesAccessor): Promise<void> | void;
|
|
@@ -60,6 +64,14 @@ export declare class UnarchiveAgentSessionAction extends BaseAgentSessionAction
|
|
|
60
64
|
constructor();
|
|
61
65
|
runWithSessions(sessions: IAgentSession[]): void;
|
|
62
66
|
}
|
|
67
|
+
export declare class PinAgentSessionAction extends BaseAgentSessionAction {
|
|
68
|
+
constructor();
|
|
69
|
+
runWithSessions(sessions: IAgentSession[]): void;
|
|
70
|
+
}
|
|
71
|
+
export declare class UnpinAgentSessionAction extends BaseAgentSessionAction {
|
|
72
|
+
constructor();
|
|
73
|
+
runWithSessions(sessions: IAgentSession[]): void;
|
|
74
|
+
}
|
|
63
75
|
export declare class RenameAgentSessionAction extends BaseAgentSessionAction {
|
|
64
76
|
constructor();
|
|
65
77
|
runWithSessions(sessions: IAgentSession[], accessor: ServicesAccessor): Promise<void>;
|