@codingame/monaco-vscode-chat-service-override 27.0.0 → 28.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 +5 -2
- package/package.json +5 -5
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +54 -4
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +179 -11
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +5 -1
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +6 -1
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +25 -10
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +67 -0
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +263 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +6 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +25 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +15 -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 +13 -5
- 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 +5 -5
- 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.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +49 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +537 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.js +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/media/agentPluginEditor.css +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +17 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +89 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +4 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +146 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +56 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- 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.js +5 -5
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +25 -25
- 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/aiCustomization/aiCustomizationIcons.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +13 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +7 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +189 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +42 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +20 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +210 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +14 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +122 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +87 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +702 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +279 -214
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +12 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +63 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +62 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +28 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +32 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditorController.css +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +49 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.d.ts +9 -0
- 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 +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +103 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +61 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +245 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.js +234 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +31 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +229 -524
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.js +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +54 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +11 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +112 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +99 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +489 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +348 -285
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +107 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- 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/tools/languageModelToolsConfirmationService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +55 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +148 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +29 -14
- 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 +72 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +5 -3
- 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 +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +11 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +72 -23
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +19 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +37 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +36 -3
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +71 -25
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +217 -91
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +85 -3
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +257 -63
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +3 -16
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +7 -50
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +32 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +7 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +26 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +287 -88
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +75 -20
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +121 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +1422 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +81 -41
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +8 -6
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.d.ts +14 -2
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +54 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +6 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +38 -22
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +8 -8
- 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 +7 -7
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
- 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/commandLineAutoApproveAnalyzer.js +12 -12
- 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/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 +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +36 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +27 -13
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
- 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 +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +0 -67
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { append, $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { getDomNodePagePosition, append, $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
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';
|
|
5
6
|
import { Action, Separator } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
6
|
-
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
7
7
|
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
8
8
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
9
|
-
import {
|
|
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';
|
|
10
13
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
11
14
|
import { PagedModel } from '@codingame/monaco-vscode-api/vscode/vs/base/common/paging';
|
|
12
|
-
import {
|
|
15
|
+
import { dirname, joinPath } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
13
16
|
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
14
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';
|
|
15
19
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
16
20
|
import { RawContextKey, ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
17
21
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
@@ -20,7 +24,6 @@ import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/h
|
|
|
20
24
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
21
25
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
22
26
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
23
|
-
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
24
27
|
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
25
28
|
import { WorkbenchPagedList } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
26
29
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
@@ -29,7 +32,10 @@ import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/t
|
|
|
29
32
|
import { getLocationBasedViewColors } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
30
33
|
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
31
34
|
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
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
32
37
|
import { VIEW_CONTAINER } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/browser/extensions.contribution';
|
|
38
|
+
import { manageExtensionIcon } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons';
|
|
33
39
|
import { AbstractExtensionsListView } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/browser/extensionsViews';
|
|
34
40
|
import { extensionsFilterSubMenu, DefaultViewsContext, SearchAgentPluginsContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions';
|
|
35
41
|
import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
|
|
@@ -37,18 +43,15 @@ import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbenc
|
|
|
37
43
|
import { IAgentPluginService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginService.service';
|
|
38
44
|
import { IPluginInstallService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service';
|
|
39
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';
|
|
40
48
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
41
49
|
|
|
42
|
-
var InstallPluginAction_1, EnablePluginAction_1, DisablePluginAction_1,
|
|
50
|
+
var InstallPluginAction_1, EnablePluginAction_1, DisablePluginAction_1, OpenPluginFolderAction_1, OpenPluginReadmeAction_1, ManagePluginAction_1, AgentPluginRenderer_1;
|
|
43
51
|
const HasInstalledAgentPluginsContext = ( new RawContextKey("hasInstalledAgentPlugins", false));
|
|
44
52
|
const InstalledAgentPluginsViewId = "workbench.views.agentPlugins.installed";
|
|
45
|
-
var AgentPluginItemKind;
|
|
46
|
-
(function(AgentPluginItemKind) {
|
|
47
|
-
AgentPluginItemKind["Installed"] = "installed";
|
|
48
|
-
AgentPluginItemKind["Marketplace"] = "marketplace";
|
|
49
|
-
})(AgentPluginItemKind || (AgentPluginItemKind = {}));
|
|
50
53
|
function installedPluginToItem(plugin, labelService) {
|
|
51
|
-
const name =
|
|
54
|
+
const name = plugin.label;
|
|
52
55
|
const description = plugin.fromMarketplace?.description ?? labelService.getUriLabel(dirname(plugin.uri), {
|
|
53
56
|
relative: true
|
|
54
57
|
});
|
|
@@ -67,6 +70,7 @@ function marketplacePluginToItem(plugin) {
|
|
|
67
70
|
name: plugin.name,
|
|
68
71
|
description: plugin.description,
|
|
69
72
|
source: plugin.source,
|
|
73
|
+
sourceDescriptor: plugin.sourceDescriptor,
|
|
70
74
|
marketplace: plugin.marketplace,
|
|
71
75
|
marketplaceReference: plugin.marketplaceReference,
|
|
72
76
|
marketplaceType: plugin.marketplaceType,
|
|
@@ -81,7 +85,7 @@ let InstallPluginAction = class InstallPluginAction extends Action {
|
|
|
81
85
|
this.ID = "agentPlugin.install";
|
|
82
86
|
}
|
|
83
87
|
constructor(item, pluginInstallService) {
|
|
84
|
-
super(InstallPluginAction_1.ID, ( localize(
|
|
88
|
+
super(InstallPluginAction_1.ID, ( localize(5024, "Install")), "extension-action label prominent install");
|
|
85
89
|
this.item = item;
|
|
86
90
|
this.pluginInstallService = pluginInstallService;
|
|
87
91
|
}
|
|
@@ -91,6 +95,7 @@ let InstallPluginAction = class InstallPluginAction extends Action {
|
|
|
91
95
|
description: this.item.description,
|
|
92
96
|
version: "",
|
|
93
97
|
source: this.item.source,
|
|
98
|
+
sourceDescriptor: this.item.sourceDescriptor,
|
|
94
99
|
marketplace: this.item.marketplace,
|
|
95
100
|
marketplaceReference: this.item.marketplaceReference,
|
|
96
101
|
marketplaceType: this.item.marketplaceType,
|
|
@@ -107,7 +112,7 @@ let EnablePluginAction = class EnablePluginAction extends Action {
|
|
|
107
112
|
this.ID = "agentPlugin.enable";
|
|
108
113
|
}
|
|
109
114
|
constructor(plugin, agentPluginService) {
|
|
110
|
-
super(EnablePluginAction_1.ID, ( localize(
|
|
115
|
+
super(EnablePluginAction_1.ID, ( localize(5025, "Enable")));
|
|
111
116
|
this.plugin = plugin;
|
|
112
117
|
this.agentPluginService = agentPluginService;
|
|
113
118
|
}
|
|
@@ -124,7 +129,7 @@ let DisablePluginAction = class DisablePluginAction extends Action {
|
|
|
124
129
|
this.ID = "agentPlugin.disable";
|
|
125
130
|
}
|
|
126
131
|
constructor(plugin, agentPluginService) {
|
|
127
|
-
super(DisablePluginAction_1.ID, ( localize(
|
|
132
|
+
super(DisablePluginAction_1.ID, ( localize(5026, "Disable")));
|
|
128
133
|
this.plugin = plugin;
|
|
129
134
|
this.agentPluginService = agentPluginService;
|
|
130
135
|
}
|
|
@@ -133,23 +138,18 @@ let DisablePluginAction = class DisablePluginAction extends Action {
|
|
|
133
138
|
}
|
|
134
139
|
};
|
|
135
140
|
DisablePluginAction = DisablePluginAction_1 = ( __decorate([( __param(1, IAgentPluginService))], DisablePluginAction));
|
|
136
|
-
|
|
137
|
-
static {
|
|
138
|
-
UninstallPluginAction_1 = this;
|
|
139
|
-
}
|
|
141
|
+
class UninstallPluginAction extends Action {
|
|
140
142
|
static {
|
|
141
143
|
this.ID = "agentPlugin.uninstall";
|
|
142
144
|
}
|
|
143
|
-
constructor(plugin
|
|
144
|
-
super(
|
|
145
|
+
constructor(plugin) {
|
|
146
|
+
super(UninstallPluginAction.ID, ( localize(5027, "Uninstall")));
|
|
145
147
|
this.plugin = plugin;
|
|
146
|
-
this.pluginInstallService = pluginInstallService;
|
|
147
148
|
}
|
|
148
149
|
async run() {
|
|
149
|
-
this.
|
|
150
|
+
this.plugin.remove();
|
|
150
151
|
}
|
|
151
|
-
}
|
|
152
|
-
UninstallPluginAction = UninstallPluginAction_1 = ( __decorate([( __param(1, IPluginInstallService))], UninstallPluginAction));
|
|
152
|
+
}
|
|
153
153
|
let OpenPluginFolderAction = class OpenPluginFolderAction extends Action {
|
|
154
154
|
static {
|
|
155
155
|
OpenPluginFolderAction_1 = this;
|
|
@@ -158,7 +158,7 @@ let OpenPluginFolderAction = class OpenPluginFolderAction extends Action {
|
|
|
158
158
|
this.ID = "agentPlugin.openFolder";
|
|
159
159
|
}
|
|
160
160
|
constructor(plugin, commandService, openerService) {
|
|
161
|
-
super(OpenPluginFolderAction_1.ID, ( localize(
|
|
161
|
+
super(OpenPluginFolderAction_1.ID, ( localize(5028, "Open Plugin Folder")));
|
|
162
162
|
this.plugin = plugin;
|
|
163
163
|
this.commandService = commandService;
|
|
164
164
|
this.openerService = openerService;
|
|
@@ -180,7 +180,7 @@ let OpenPluginReadmeAction = class OpenPluginReadmeAction extends Action {
|
|
|
180
180
|
this.ID = "agentPlugin.openReadme";
|
|
181
181
|
}
|
|
182
182
|
constructor(readmeUri, openerService) {
|
|
183
|
-
super(OpenPluginReadmeAction_1.ID, ( localize(
|
|
183
|
+
super(OpenPluginReadmeAction_1.ID, ( localize(5029, "Open README")));
|
|
184
184
|
this.readmeUri = readmeUri;
|
|
185
185
|
this.openerService = openerService;
|
|
186
186
|
}
|
|
@@ -189,6 +189,79 @@ let OpenPluginReadmeAction = class OpenPluginReadmeAction extends Action {
|
|
|
189
189
|
}
|
|
190
190
|
};
|
|
191
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
|
+
}
|
|
206
|
+
let ManagePluginAction = class ManagePluginAction extends Action {
|
|
207
|
+
static {
|
|
208
|
+
ManagePluginAction_1 = this;
|
|
209
|
+
}
|
|
210
|
+
static {
|
|
211
|
+
this.ID = "agentPlugin.manage";
|
|
212
|
+
}
|
|
213
|
+
static {
|
|
214
|
+
this.CLASS = `extension-action icon manage ${ThemeIcon.asClassName(manageExtensionIcon)}`;
|
|
215
|
+
}
|
|
216
|
+
constructor(getActionGroups, instantiationService) {
|
|
217
|
+
super(ManagePluginAction_1.ID, "", ManagePluginAction_1.CLASS, true);
|
|
218
|
+
this.getActionGroups = getActionGroups;
|
|
219
|
+
this.instantiationService = instantiationService;
|
|
220
|
+
this._actionViewItem = null;
|
|
221
|
+
this.tooltip = ( localize(5030, "Manage"));
|
|
222
|
+
}
|
|
223
|
+
createActionViewItem(options) {
|
|
224
|
+
this._actionViewItem = this.instantiationService.createInstance(DropDownActionViewItem, this, options);
|
|
225
|
+
return this._actionViewItem;
|
|
226
|
+
}
|
|
227
|
+
async run() {
|
|
228
|
+
this._actionViewItem?.showMenu(this.getActionGroups());
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
ManagePluginAction = ManagePluginAction_1 = ( __decorate([( __param(1, IInstantiationService))], ManagePluginAction));
|
|
232
|
+
let DropDownActionViewItem = class DropDownActionViewItem extends ActionViewItem {
|
|
233
|
+
constructor(action, options, contextMenuService) {
|
|
234
|
+
super(null, action, {
|
|
235
|
+
...options,
|
|
236
|
+
icon: true,
|
|
237
|
+
label: false
|
|
238
|
+
});
|
|
239
|
+
this.contextMenuService = contextMenuService;
|
|
240
|
+
}
|
|
241
|
+
showMenu(actionGroups) {
|
|
242
|
+
if (!this.element) {
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
const actions = actionGroups.flatMap(group => [...group, ( new Separator())]);
|
|
246
|
+
if (actions.length > 0) {
|
|
247
|
+
actions.pop();
|
|
248
|
+
}
|
|
249
|
+
const {
|
|
250
|
+
left,
|
|
251
|
+
top,
|
|
252
|
+
height
|
|
253
|
+
} = getDomNodePagePosition(this.element);
|
|
254
|
+
this.contextMenuService.showContextMenu({
|
|
255
|
+
getAnchor: () => ({
|
|
256
|
+
x: left,
|
|
257
|
+
y: top + height + 10
|
|
258
|
+
}),
|
|
259
|
+
getActions: () => actions,
|
|
260
|
+
onHide: () => disposeIfDisposable(actions)
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
DropDownActionViewItem = ( __decorate([( __param(2, IContextMenuService))], DropDownActionViewItem));
|
|
192
265
|
let AgentPluginRenderer = class AgentPluginRenderer {
|
|
193
266
|
static {
|
|
194
267
|
AgentPluginRenderer_1 = this;
|
|
@@ -211,7 +284,13 @@ let AgentPluginRenderer = class AgentPluginRenderer {
|
|
|
211
284
|
const detailContainer = append(footer, $(".publisher-container"));
|
|
212
285
|
const detail = append(detailContainer, $("span.publisher-name"));
|
|
213
286
|
const actionbar = ( new ActionBar(footer, {
|
|
214
|
-
focusOnlyEnabledItems: true
|
|
287
|
+
focusOnlyEnabledItems: true,
|
|
288
|
+
actionViewItemProvider: (action, options) => {
|
|
289
|
+
if (action instanceof ManagePluginAction) {
|
|
290
|
+
return action.createActionViewItem(options);
|
|
291
|
+
}
|
|
292
|
+
return undefined;
|
|
293
|
+
}
|
|
215
294
|
}));
|
|
216
295
|
actionbar.setFocusable(false);
|
|
217
296
|
return {
|
|
@@ -252,6 +331,15 @@ let AgentPluginRenderer = class AgentPluginRenderer {
|
|
|
252
331
|
});
|
|
253
332
|
} else {
|
|
254
333
|
data.detail.textContent = element.marketplace ?? "";
|
|
334
|
+
const manageAction = this.instantiationService.createInstance(
|
|
335
|
+
ManagePluginAction,
|
|
336
|
+
() => getInstalledPluginContextMenuActionGroups(element.plugin, this.instantiationService)
|
|
337
|
+
);
|
|
338
|
+
data.elementDisposables.push(manageAction);
|
|
339
|
+
data.actionbar.push([manageAction], {
|
|
340
|
+
icon: true,
|
|
341
|
+
label: false
|
|
342
|
+
});
|
|
255
343
|
}
|
|
256
344
|
}
|
|
257
345
|
disposeElement(_element, _index, data) {
|
|
@@ -284,7 +372,8 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
284
372
|
agentPluginService,
|
|
285
373
|
pluginMarketplaceService,
|
|
286
374
|
pluginInstallService,
|
|
287
|
-
labelService
|
|
375
|
+
labelService,
|
|
376
|
+
editorService
|
|
288
377
|
) {
|
|
289
378
|
super(
|
|
290
379
|
options,
|
|
@@ -303,6 +392,7 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
303
392
|
this.pluginMarketplaceService = pluginMarketplaceService;
|
|
304
393
|
this.pluginInstallService = pluginInstallService;
|
|
305
394
|
this.labelService = labelService;
|
|
395
|
+
this.editorService = editorService;
|
|
306
396
|
this.actionStore = this._register(( new DisposableStore()));
|
|
307
397
|
this.queryCts = ( new MutableDisposable());
|
|
308
398
|
this.list = null;
|
|
@@ -351,13 +441,25 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
351
441
|
return item?.name ?? "";
|
|
352
442
|
},
|
|
353
443
|
getWidgetAriaLabel() {
|
|
354
|
-
return localize(
|
|
444
|
+
return localize(5031, "Agent Plugins");
|
|
355
445
|
}
|
|
356
446
|
},
|
|
357
447
|
overrideStyles: getLocationBasedViewColors(this.viewDescriptorService.getViewLocationById(this.id)).listOverrideStyles
|
|
358
448
|
})
|
|
359
449
|
);
|
|
360
450
|
this._register(this.list.onContextMenu(e => this.onContextMenu(e), this));
|
|
451
|
+
this._register(Event.debounce(
|
|
452
|
+
Event.filter(this.list.onDidOpen, e => e.element !== null),
|
|
453
|
+
(_, event) => event,
|
|
454
|
+
75,
|
|
455
|
+
true
|
|
456
|
+
)(options => {
|
|
457
|
+
this.editorService.openEditor(
|
|
458
|
+
this.instantiationService.createInstance(AgentPluginEditorInput, options.element),
|
|
459
|
+
options.editorOptions,
|
|
460
|
+
MODAL_GROUP
|
|
461
|
+
);
|
|
462
|
+
}));
|
|
361
463
|
}
|
|
362
464
|
onContextMenu(e) {
|
|
363
465
|
if (!e.element) {
|
|
@@ -373,25 +475,15 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
373
475
|
});
|
|
374
476
|
}
|
|
375
477
|
getContextMenuActions(item) {
|
|
376
|
-
|
|
478
|
+
let actions;
|
|
377
479
|
if (item.kind === AgentPluginItemKind.Installed) {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
actions.
|
|
480
|
+
const groups = getInstalledPluginContextMenuActionGroups(item.plugin, this.instantiationService);
|
|
481
|
+
actions = groups.flatMap(group => [...group, ( new Separator())]);
|
|
482
|
+
if (actions.length > 0) {
|
|
483
|
+
actions.pop();
|
|
382
484
|
}
|
|
383
|
-
actions.push(( new Separator()));
|
|
384
|
-
actions.push(
|
|
385
|
-
this.instantiationService.createInstance(OpenPluginFolderAction, item.plugin)
|
|
386
|
-
);
|
|
387
|
-
actions.push(
|
|
388
|
-
this.instantiationService.createInstance(OpenPluginReadmeAction, joinPath(item.plugin.uri, "README.md"))
|
|
389
|
-
);
|
|
390
|
-
actions.push(( new Separator()));
|
|
391
|
-
actions.push(
|
|
392
|
-
this.instantiationService.createInstance(UninstallPluginAction, item.plugin)
|
|
393
|
-
);
|
|
394
485
|
} else {
|
|
486
|
+
actions = [];
|
|
395
487
|
if (item.readmeUri) {
|
|
396
488
|
actions.push(
|
|
397
489
|
this.instantiationService.createInstance(OpenPluginReadmeAction, item.readmeUri)
|
|
@@ -430,6 +522,7 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
430
522
|
description: m.description,
|
|
431
523
|
version: "",
|
|
432
524
|
source: m.source,
|
|
525
|
+
sourceDescriptor: m.sourceDescriptor,
|
|
433
526
|
marketplace: m.marketplace,
|
|
434
527
|
marketplaceReference: m.marketplaceReference,
|
|
435
528
|
marketplaceType: m.marketplaceType
|
|
@@ -468,18 +561,18 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
468
561
|
this.bodyTemplate.pluginsList.classList.toggle("hidden", count === 0);
|
|
469
562
|
this.bodyTemplate.messageContainer.classList.toggle("hidden", count > 0);
|
|
470
563
|
if (count === 0 && this.isBodyVisible()) {
|
|
471
|
-
this.bodyTemplate.messageBox.textContent = ( localize(
|
|
564
|
+
this.bodyTemplate.messageBox.textContent = ( localize(5032, "No agent plugins found."));
|
|
472
565
|
}
|
|
473
566
|
}
|
|
474
567
|
}
|
|
475
568
|
};
|
|
476
|
-
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))], AgentPluginsListView));
|
|
569
|
+
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));
|
|
477
570
|
class AgentPluginsBrowseCommand extends Action2 {
|
|
478
571
|
constructor() {
|
|
479
572
|
super({
|
|
480
573
|
id: "workbench.agentPlugins.browse",
|
|
481
|
-
title: ( localize2(
|
|
482
|
-
tooltip: ( localize2(
|
|
574
|
+
title: ( localize2(5033, "Agent Plugins")),
|
|
575
|
+
tooltip: ( localize2(5034, "Browse Agent Plugins")),
|
|
483
576
|
icon: Codicon.search,
|
|
484
577
|
precondition: ( ChatContextKeys.Setup.hidden.negate()),
|
|
485
578
|
menu: [{
|
|
@@ -511,7 +604,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
|
|
|
511
604
|
registerAction2(AgentPluginsBrowseCommand);
|
|
512
605
|
( Registry.as(Extensions.ViewsRegistry)).registerViews([{
|
|
513
606
|
id: InstalledAgentPluginsViewId,
|
|
514
|
-
name: ( localize2(
|
|
607
|
+
name: ( localize2(5035, "Agent Plugins - Installed")),
|
|
515
608
|
ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{
|
|
516
609
|
installedOnly: true
|
|
517
610
|
}])),
|
|
@@ -521,7 +614,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
|
|
|
521
614
|
canToggleVisibility: true
|
|
522
615
|
}, {
|
|
523
616
|
id: "workbench.views.agentPlugins.default.marketplace",
|
|
524
|
-
name: ( localize2(
|
|
617
|
+
name: ( localize2(5036, "Agent Plugins")),
|
|
525
618
|
ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
|
|
526
619
|
when: ( ContextKeyExpr.and(DefaultViewsContext, ( HasInstalledAgentPluginsContext.toNegated()), ( ChatContextKeys.Setup.hidden.negate()))),
|
|
527
620
|
weight: 30,
|
|
@@ -530,7 +623,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
|
|
|
530
623
|
hideByDefault: true
|
|
531
624
|
}, {
|
|
532
625
|
id: "workbench.views.agentPlugins.marketplace",
|
|
533
|
-
name: ( localize2(
|
|
626
|
+
name: ( localize2(5036, "Agent Plugins")),
|
|
534
627
|
ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
|
|
535
628
|
when: ( ContextKeyExpr.and(SearchAgentPluginsContext, ( ChatContextKeys.Setup.hidden.negate())))
|
|
536
629
|
}], VIEW_CONTAINER);
|
package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js
CHANGED
|
@@ -43,7 +43,7 @@ registerAction2(SetAgentSessionsOrientationStackedAction);
|
|
|
43
43
|
registerAction2(SetAgentSessionsOrientationSideBySideAction);
|
|
44
44
|
MenuRegistry.appendMenuItem(MenuId.AgentSessionsToolbar, {
|
|
45
45
|
submenu: MenuId.AgentSessionsViewerFilterSubMenu,
|
|
46
|
-
title: ( localize2(
|
|
46
|
+
title: ( localize2(5044, "Filter Agent Sessions")),
|
|
47
47
|
group: "navigation",
|
|
48
48
|
order: 3,
|
|
49
49
|
icon: Codicon.filter
|
|
@@ -113,9 +113,9 @@ MenuRegistry.appendMenuItem(MenuId.ChatViewSessionTitleToolbar, {
|
|
|
113
113
|
prefix: AGENT_SESSIONS_QUICK_ACCESS_PREFIX,
|
|
114
114
|
contextKey: "inAgentSessionsPicker",
|
|
115
115
|
when: ChatContextKeys.enabled,
|
|
116
|
-
placeholder: ( localize(
|
|
116
|
+
placeholder: ( localize(5045, "Search agent sessions by name")),
|
|
117
117
|
helpEntries: [{
|
|
118
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(5046, "Show All Agent Sessions")),
|
|
119
119
|
commandId: "workbench.action.chat.history"
|
|
120
120
|
}]
|
|
121
121
|
});
|