@codingame/monaco-vscode-chat-service-override 26.2.2 → 27.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 +31 -1
- package/package.json +5 -5
- package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +15 -0
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.d.ts +53 -0
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +219 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +39 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +83 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +123 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +274 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +71 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +284 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +79 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +378 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +27 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +74 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +54 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +87 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +71 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +43 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +22 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +154 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +6 -8
- 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 +53 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +15 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +204 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +541 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +10 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +70 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +27 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +4 -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.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +90 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +20 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +43 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +84 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.d.ts → localAgentSessionsController.d.ts} +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.js → localAgentSessionsController.js} +24 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +171 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +181 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +943 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +248 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +118 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +727 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +72 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +165 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +623 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +858 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +30 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +19 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +36 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +529 -363
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +419 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +198 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +305 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +64 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +110 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +111 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +611 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +504 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +914 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +128 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +429 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +113 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +126 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +279 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +122 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +781 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +5 -22
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +2 -1
- 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 +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +16 -15
- 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 +63 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +26 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatManagementEditor.css +2 -2
- 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 +15 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +40 -413
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +38 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +56 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +15 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +138 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +166 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +37 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +351 -0
- 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 +118 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +182 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +892 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +55 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +28 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.js +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +110 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.js +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.js +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +102 -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 +16 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +69 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +2 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +76 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +43 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +67 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +242 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +311 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +8 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +64 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +4 -2
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +42 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +58 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +8 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +15 -6
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +190 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +188 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +18 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +192 -85
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -6
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +16 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +8 -4
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +111 -7
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +73 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +622 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +478 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +35 -16
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +1 -30
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +2 -8
- 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 +8 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +23 -22
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +44 -14
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +345 -113
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +14 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +34 -24
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +11 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +248 -24
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.d.ts +6 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +18 -81
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +10 -10
- 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 +6 -6
- 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/media/terminalChatWidget.css +6 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +35 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +1 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +13 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +3 -1
- 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 +9 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +280 -65
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +47 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +31 -0
- 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 +6 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +38 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.d.ts +0 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.js +0 -587
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +0 -71
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +0 -293
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.js +0 -31
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
|
|
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';
|
|
4
|
+
import { ActionBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
5
|
+
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
|
+
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';
|
|
9
|
+
import { DisposableStore, MutableDisposable, isDisposable, Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
10
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
11
|
+
import { PagedModel } from '@codingame/monaco-vscode-api/vscode/vs/base/common/paging';
|
|
12
|
+
import { basename, dirname, joinPath } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
13
|
+
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
14
|
+
import { Action2, MenuId, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
15
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
16
|
+
import { RawContextKey, ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
17
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
18
|
+
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
19
|
+
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
20
|
+
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
21
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
22
|
+
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
|
+
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
25
|
+
import { WorkbenchPagedList } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
26
|
+
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
27
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
28
|
+
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
29
|
+
import { getLocationBasedViewColors } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
30
|
+
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
31
|
+
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
32
|
+
import { VIEW_CONTAINER } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/browser/extensions.contribution';
|
|
33
|
+
import { AbstractExtensionsListView } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/browser/extensionsViews';
|
|
34
|
+
import { extensionsFilterSubMenu, DefaultViewsContext, SearchAgentPluginsContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions';
|
|
35
|
+
import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
|
|
36
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
37
|
+
import { IAgentPluginService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginService.service';
|
|
38
|
+
import { IPluginInstallService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service';
|
|
39
|
+
import { IPluginMarketplaceService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service';
|
|
40
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
41
|
+
|
|
42
|
+
var InstallPluginAction_1, EnablePluginAction_1, DisablePluginAction_1, UninstallPluginAction_1, OpenPluginFolderAction_1, OpenPluginReadmeAction_1, AgentPluginRenderer_1;
|
|
43
|
+
const HasInstalledAgentPluginsContext = ( new RawContextKey("hasInstalledAgentPlugins", false));
|
|
44
|
+
const InstalledAgentPluginsViewId = "workbench.views.agentPlugins.installed";
|
|
45
|
+
var AgentPluginItemKind;
|
|
46
|
+
(function(AgentPluginItemKind) {
|
|
47
|
+
AgentPluginItemKind["Installed"] = "installed";
|
|
48
|
+
AgentPluginItemKind["Marketplace"] = "marketplace";
|
|
49
|
+
})(AgentPluginItemKind || (AgentPluginItemKind = {}));
|
|
50
|
+
function installedPluginToItem(plugin, labelService) {
|
|
51
|
+
const name = basename(plugin.uri);
|
|
52
|
+
const description = plugin.fromMarketplace?.description ?? labelService.getUriLabel(dirname(plugin.uri), {
|
|
53
|
+
relative: true
|
|
54
|
+
});
|
|
55
|
+
const marketplace = plugin.fromMarketplace?.marketplace;
|
|
56
|
+
return {
|
|
57
|
+
kind: AgentPluginItemKind.Installed,
|
|
58
|
+
name,
|
|
59
|
+
description,
|
|
60
|
+
marketplace,
|
|
61
|
+
plugin
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function marketplacePluginToItem(plugin) {
|
|
65
|
+
return {
|
|
66
|
+
kind: AgentPluginItemKind.Marketplace,
|
|
67
|
+
name: plugin.name,
|
|
68
|
+
description: plugin.description,
|
|
69
|
+
source: plugin.source,
|
|
70
|
+
marketplace: plugin.marketplace,
|
|
71
|
+
marketplaceReference: plugin.marketplaceReference,
|
|
72
|
+
marketplaceType: plugin.marketplaceType,
|
|
73
|
+
readmeUri: plugin.readmeUri
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
let InstallPluginAction = class InstallPluginAction extends Action {
|
|
77
|
+
static {
|
|
78
|
+
InstallPluginAction_1 = this;
|
|
79
|
+
}
|
|
80
|
+
static {
|
|
81
|
+
this.ID = "agentPlugin.install";
|
|
82
|
+
}
|
|
83
|
+
constructor(item, pluginInstallService) {
|
|
84
|
+
super(InstallPluginAction_1.ID, ( localize(5005, "Install")), "extension-action label prominent install");
|
|
85
|
+
this.item = item;
|
|
86
|
+
this.pluginInstallService = pluginInstallService;
|
|
87
|
+
}
|
|
88
|
+
async run() {
|
|
89
|
+
await this.pluginInstallService.installPlugin({
|
|
90
|
+
name: this.item.name,
|
|
91
|
+
description: this.item.description,
|
|
92
|
+
version: "",
|
|
93
|
+
source: this.item.source,
|
|
94
|
+
marketplace: this.item.marketplace,
|
|
95
|
+
marketplaceReference: this.item.marketplaceReference,
|
|
96
|
+
marketplaceType: this.item.marketplaceType,
|
|
97
|
+
readmeUri: this.item.readmeUri
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
InstallPluginAction = InstallPluginAction_1 = ( __decorate([( __param(1, IPluginInstallService))], InstallPluginAction));
|
|
102
|
+
let EnablePluginAction = class EnablePluginAction extends Action {
|
|
103
|
+
static {
|
|
104
|
+
EnablePluginAction_1 = this;
|
|
105
|
+
}
|
|
106
|
+
static {
|
|
107
|
+
this.ID = "agentPlugin.enable";
|
|
108
|
+
}
|
|
109
|
+
constructor(plugin, agentPluginService) {
|
|
110
|
+
super(EnablePluginAction_1.ID, ( localize(5006, "Enable")));
|
|
111
|
+
this.plugin = plugin;
|
|
112
|
+
this.agentPluginService = agentPluginService;
|
|
113
|
+
}
|
|
114
|
+
async run() {
|
|
115
|
+
this.agentPluginService.setPluginEnabled(this.plugin.uri, true);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
EnablePluginAction = EnablePluginAction_1 = ( __decorate([( __param(1, IAgentPluginService))], EnablePluginAction));
|
|
119
|
+
let DisablePluginAction = class DisablePluginAction extends Action {
|
|
120
|
+
static {
|
|
121
|
+
DisablePluginAction_1 = this;
|
|
122
|
+
}
|
|
123
|
+
static {
|
|
124
|
+
this.ID = "agentPlugin.disable";
|
|
125
|
+
}
|
|
126
|
+
constructor(plugin, agentPluginService) {
|
|
127
|
+
super(DisablePluginAction_1.ID, ( localize(5007, "Disable")));
|
|
128
|
+
this.plugin = plugin;
|
|
129
|
+
this.agentPluginService = agentPluginService;
|
|
130
|
+
}
|
|
131
|
+
async run() {
|
|
132
|
+
this.agentPluginService.setPluginEnabled(this.plugin.uri, false);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
DisablePluginAction = DisablePluginAction_1 = ( __decorate([( __param(1, IAgentPluginService))], DisablePluginAction));
|
|
136
|
+
let UninstallPluginAction = class UninstallPluginAction extends Action {
|
|
137
|
+
static {
|
|
138
|
+
UninstallPluginAction_1 = this;
|
|
139
|
+
}
|
|
140
|
+
static {
|
|
141
|
+
this.ID = "agentPlugin.uninstall";
|
|
142
|
+
}
|
|
143
|
+
constructor(plugin, pluginInstallService) {
|
|
144
|
+
super(UninstallPluginAction_1.ID, ( localize(5008, "Uninstall")));
|
|
145
|
+
this.plugin = plugin;
|
|
146
|
+
this.pluginInstallService = pluginInstallService;
|
|
147
|
+
}
|
|
148
|
+
async run() {
|
|
149
|
+
this.pluginInstallService.uninstallPlugin(this.plugin.uri);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
UninstallPluginAction = UninstallPluginAction_1 = ( __decorate([( __param(1, IPluginInstallService))], UninstallPluginAction));
|
|
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(5009, "Open Plugin Folder")));
|
|
162
|
+
this.plugin = plugin;
|
|
163
|
+
this.commandService = commandService;
|
|
164
|
+
this.openerService = openerService;
|
|
165
|
+
}
|
|
166
|
+
async run() {
|
|
167
|
+
try {
|
|
168
|
+
await this.commandService.executeCommand("revealFileInOS", this.plugin.uri);
|
|
169
|
+
} catch {
|
|
170
|
+
await this.openerService.open(dirname(this.plugin.uri));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
OpenPluginFolderAction = OpenPluginFolderAction_1 = ( __decorate([( __param(1, ICommandService)), ( __param(2, IOpenerService))], OpenPluginFolderAction));
|
|
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(5010, "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
|
+
let AgentPluginRenderer = class AgentPluginRenderer {
|
|
193
|
+
static {
|
|
194
|
+
AgentPluginRenderer_1 = this;
|
|
195
|
+
}
|
|
196
|
+
static {
|
|
197
|
+
this.templateId = "agentPlugin";
|
|
198
|
+
}
|
|
199
|
+
constructor(instantiationService) {
|
|
200
|
+
this.instantiationService = instantiationService;
|
|
201
|
+
this.templateId = AgentPluginRenderer_1.templateId;
|
|
202
|
+
}
|
|
203
|
+
renderTemplate(root) {
|
|
204
|
+
const element = append(root, $(".agent-plugin-item.extension-list-item"));
|
|
205
|
+
const details = append(element, $(".details"));
|
|
206
|
+
const headerContainer = append(details, $(".header-container"));
|
|
207
|
+
const header = append(headerContainer, $(".header"));
|
|
208
|
+
const name = append(header, $("span.name"));
|
|
209
|
+
const description = append(details, $(".description.ellipsis"));
|
|
210
|
+
const footer = append(details, $(".footer"));
|
|
211
|
+
const detailContainer = append(footer, $(".publisher-container"));
|
|
212
|
+
const detail = append(detailContainer, $("span.publisher-name"));
|
|
213
|
+
const actionbar = ( new ActionBar(footer, {
|
|
214
|
+
focusOnlyEnabledItems: true
|
|
215
|
+
}));
|
|
216
|
+
actionbar.setFocusable(false);
|
|
217
|
+
return {
|
|
218
|
+
root,
|
|
219
|
+
name,
|
|
220
|
+
description,
|
|
221
|
+
detail,
|
|
222
|
+
actionbar,
|
|
223
|
+
disposables: [actionbar],
|
|
224
|
+
elementDisposables: []
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
renderPlaceholder(_index, data) {
|
|
228
|
+
data.name.textContent = "";
|
|
229
|
+
data.description.textContent = "";
|
|
230
|
+
data.detail.textContent = "";
|
|
231
|
+
data.actionbar.clear();
|
|
232
|
+
this.disposeElement(undefined, 0, data);
|
|
233
|
+
}
|
|
234
|
+
renderElement(element, _index, data) {
|
|
235
|
+
this.disposeElement(undefined, 0, data);
|
|
236
|
+
data.name.textContent = element.name;
|
|
237
|
+
data.description.textContent = element.description;
|
|
238
|
+
data.elementDisposables.push(autorun(reader => {
|
|
239
|
+
data.root.classList.toggle(
|
|
240
|
+
"disabled",
|
|
241
|
+
element.kind === AgentPluginItemKind.Installed && !element.plugin.enabled.read(reader)
|
|
242
|
+
);
|
|
243
|
+
}));
|
|
244
|
+
data.actionbar.clear();
|
|
245
|
+
if (element.kind === AgentPluginItemKind.Marketplace) {
|
|
246
|
+
data.detail.textContent = element.marketplace;
|
|
247
|
+
const installAction = this.instantiationService.createInstance(InstallPluginAction, element);
|
|
248
|
+
data.elementDisposables.push(installAction);
|
|
249
|
+
data.actionbar.push([installAction], {
|
|
250
|
+
icon: true,
|
|
251
|
+
label: true
|
|
252
|
+
});
|
|
253
|
+
} else {
|
|
254
|
+
data.detail.textContent = element.marketplace ?? "";
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
disposeElement(_element, _index, data) {
|
|
258
|
+
for (const d of data.elementDisposables) {
|
|
259
|
+
d.dispose();
|
|
260
|
+
}
|
|
261
|
+
data.elementDisposables = [];
|
|
262
|
+
}
|
|
263
|
+
disposeTemplate(data) {
|
|
264
|
+
for (const d of data.disposables) {
|
|
265
|
+
d.dispose();
|
|
266
|
+
}
|
|
267
|
+
this.disposeElement(undefined, 0, data);
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
AgentPluginRenderer = AgentPluginRenderer_1 = ( __decorate([( __param(0, IInstantiationService))], AgentPluginRenderer));
|
|
271
|
+
let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensionsListView {
|
|
272
|
+
constructor(
|
|
273
|
+
listOptions,
|
|
274
|
+
options,
|
|
275
|
+
keybindingService,
|
|
276
|
+
contextMenuService,
|
|
277
|
+
instantiationService,
|
|
278
|
+
themeService,
|
|
279
|
+
hoverService,
|
|
280
|
+
configurationService,
|
|
281
|
+
contextKeyService,
|
|
282
|
+
viewDescriptorService,
|
|
283
|
+
openerService,
|
|
284
|
+
agentPluginService,
|
|
285
|
+
pluginMarketplaceService,
|
|
286
|
+
pluginInstallService,
|
|
287
|
+
labelService
|
|
288
|
+
) {
|
|
289
|
+
super(
|
|
290
|
+
options,
|
|
291
|
+
keybindingService,
|
|
292
|
+
contextMenuService,
|
|
293
|
+
configurationService,
|
|
294
|
+
contextKeyService,
|
|
295
|
+
viewDescriptorService,
|
|
296
|
+
instantiationService,
|
|
297
|
+
openerService,
|
|
298
|
+
themeService,
|
|
299
|
+
hoverService
|
|
300
|
+
);
|
|
301
|
+
this.listOptions = listOptions;
|
|
302
|
+
this.agentPluginService = agentPluginService;
|
|
303
|
+
this.pluginMarketplaceService = pluginMarketplaceService;
|
|
304
|
+
this.pluginInstallService = pluginInstallService;
|
|
305
|
+
this.labelService = labelService;
|
|
306
|
+
this.actionStore = this._register(( new DisposableStore()));
|
|
307
|
+
this.queryCts = ( new MutableDisposable());
|
|
308
|
+
this.list = null;
|
|
309
|
+
this.listContainer = null;
|
|
310
|
+
this.currentQuery = "@agentPlugins";
|
|
311
|
+
this.refreshOnPluginsChangedScheduler = this._register(( new RunOnceScheduler(() => {
|
|
312
|
+
if (this.list) {
|
|
313
|
+
void this.show(this.currentQuery);
|
|
314
|
+
}
|
|
315
|
+
}, 0)));
|
|
316
|
+
this._register(autorun(reader => {
|
|
317
|
+
this.agentPluginService.plugins.read(reader);
|
|
318
|
+
if (this.list && this.isBodyVisible()) {
|
|
319
|
+
this.refreshOnPluginsChangedScheduler.schedule();
|
|
320
|
+
}
|
|
321
|
+
}));
|
|
322
|
+
this._register(this.pluginMarketplaceService.onDidChangeMarketplaces(() => {
|
|
323
|
+
if (this.list && this.isBodyVisible()) {
|
|
324
|
+
this.refreshOnPluginsChangedScheduler.schedule();
|
|
325
|
+
}
|
|
326
|
+
}));
|
|
327
|
+
}
|
|
328
|
+
renderBody(container) {
|
|
329
|
+
super.renderBody(container);
|
|
330
|
+
const messageContainer = append(container, $(".message-container"));
|
|
331
|
+
const messageBox = append(messageContainer, $(".message"));
|
|
332
|
+
const pluginsList = $(".agent-plugins-list");
|
|
333
|
+
this.bodyTemplate = {
|
|
334
|
+
pluginsList,
|
|
335
|
+
messageBox,
|
|
336
|
+
messageContainer
|
|
337
|
+
};
|
|
338
|
+
this.listContainer = append(container, pluginsList);
|
|
339
|
+
this.list = this._register(
|
|
340
|
+
this.instantiationService.createInstance(WorkbenchPagedList, `${this.id}-Agent-Plugins`, this.listContainer, {
|
|
341
|
+
getHeight() {
|
|
342
|
+
return 72;
|
|
343
|
+
},
|
|
344
|
+
getTemplateId: () => AgentPluginRenderer.templateId
|
|
345
|
+
}, [this.instantiationService.createInstance(AgentPluginRenderer)], {
|
|
346
|
+
multipleSelectionSupport: false,
|
|
347
|
+
setRowLineHeight: false,
|
|
348
|
+
horizontalScrolling: false,
|
|
349
|
+
accessibilityProvider: {
|
|
350
|
+
getAriaLabel(item) {
|
|
351
|
+
return item?.name ?? "";
|
|
352
|
+
},
|
|
353
|
+
getWidgetAriaLabel() {
|
|
354
|
+
return localize(5011, "Agent Plugins");
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
overrideStyles: getLocationBasedViewColors(this.viewDescriptorService.getViewLocationById(this.id)).listOverrideStyles
|
|
358
|
+
})
|
|
359
|
+
);
|
|
360
|
+
this._register(this.list.onContextMenu(e => this.onContextMenu(e), this));
|
|
361
|
+
}
|
|
362
|
+
onContextMenu(e) {
|
|
363
|
+
if (!e.element) {
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
const actions = this.getContextMenuActions(e.element);
|
|
367
|
+
if (actions.length === 0) {
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
this.contextMenuService.showContextMenu({
|
|
371
|
+
getAnchor: () => e.anchor,
|
|
372
|
+
getActions: () => actions
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
getContextMenuActions(item) {
|
|
376
|
+
const actions = [];
|
|
377
|
+
if (item.kind === AgentPluginItemKind.Installed) {
|
|
378
|
+
if (item.plugin.enabled.get()) {
|
|
379
|
+
actions.push(this.instantiationService.createInstance(DisablePluginAction, item.plugin));
|
|
380
|
+
} else {
|
|
381
|
+
actions.push(this.instantiationService.createInstance(EnablePluginAction, item.plugin));
|
|
382
|
+
}
|
|
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
|
+
} else {
|
|
395
|
+
if (item.readmeUri) {
|
|
396
|
+
actions.push(
|
|
397
|
+
this.instantiationService.createInstance(OpenPluginReadmeAction, item.readmeUri)
|
|
398
|
+
);
|
|
399
|
+
}
|
|
400
|
+
actions.push(this.instantiationService.createInstance(InstallPluginAction, item));
|
|
401
|
+
}
|
|
402
|
+
this.actionStore.clear();
|
|
403
|
+
for (const action of actions) {
|
|
404
|
+
if (isDisposable(action)) {
|
|
405
|
+
this.actionStore.add(action);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
return actions;
|
|
409
|
+
}
|
|
410
|
+
layoutBody(height, width) {
|
|
411
|
+
super.layoutBody(height, width);
|
|
412
|
+
this.list?.layout(height, width);
|
|
413
|
+
}
|
|
414
|
+
async show(query) {
|
|
415
|
+
this.currentQuery = query;
|
|
416
|
+
const text = query.replace(/@agentPlugins/i, "").trim().toLowerCase();
|
|
417
|
+
let installed = this.queryInstalled();
|
|
418
|
+
if (text) {
|
|
419
|
+
installed = installed.filter(
|
|
420
|
+
p => p.name.toLowerCase().includes(text) || p.description.toLowerCase().includes(text)
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
let items = installed;
|
|
424
|
+
if (!this.listOptions.installedOnly) {
|
|
425
|
+
const marketplace = await this.queryMarketplace(text);
|
|
426
|
+
const installedPaths = ( new Set(( installed.map(i => ( i.plugin.uri.toString())))));
|
|
427
|
+
const filteredMarketplace = marketplace.filter(m => {
|
|
428
|
+
const expectedUri = this.pluginInstallService.getPluginInstallUri({
|
|
429
|
+
name: m.name,
|
|
430
|
+
description: m.description,
|
|
431
|
+
version: "",
|
|
432
|
+
source: m.source,
|
|
433
|
+
marketplace: m.marketplace,
|
|
434
|
+
marketplaceReference: m.marketplaceReference,
|
|
435
|
+
marketplaceType: m.marketplaceType
|
|
436
|
+
});
|
|
437
|
+
return !( installedPaths.has(( expectedUri.toString())));
|
|
438
|
+
});
|
|
439
|
+
items = [...installed, ...filteredMarketplace];
|
|
440
|
+
}
|
|
441
|
+
const model = ( new PagedModel(items));
|
|
442
|
+
if (this.list) {
|
|
443
|
+
this.list.model = model;
|
|
444
|
+
}
|
|
445
|
+
this.updateBody(model.length);
|
|
446
|
+
return model;
|
|
447
|
+
}
|
|
448
|
+
queryInstalled() {
|
|
449
|
+
const allPlugins = this.agentPluginService.allPlugins.get();
|
|
450
|
+
return ( allPlugins.map(p => installedPluginToItem(p, this.labelService)));
|
|
451
|
+
}
|
|
452
|
+
async queryMarketplace(text) {
|
|
453
|
+
this.queryCts.value?.cancel();
|
|
454
|
+
const cts = ( new CancellationTokenSource());
|
|
455
|
+
this.queryCts.value = cts;
|
|
456
|
+
try {
|
|
457
|
+
const plugins = await this.pluginMarketplaceService.fetchMarketplacePlugins(cts.token);
|
|
458
|
+
const lowerText = text.toLowerCase();
|
|
459
|
+
return ( plugins.filter(
|
|
460
|
+
p => p.name.toLowerCase().includes(lowerText) || p.description.toLowerCase().includes(lowerText)
|
|
461
|
+
).map(marketplacePluginToItem));
|
|
462
|
+
} catch {
|
|
463
|
+
return [];
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
updateBody(count) {
|
|
467
|
+
if (this.bodyTemplate) {
|
|
468
|
+
this.bodyTemplate.pluginsList.classList.toggle("hidden", count === 0);
|
|
469
|
+
this.bodyTemplate.messageContainer.classList.toggle("hidden", count > 0);
|
|
470
|
+
if (count === 0 && this.isBodyVisible()) {
|
|
471
|
+
this.bodyTemplate.messageBox.textContent = ( localize(5012, "No agent plugins found."));
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
};
|
|
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));
|
|
477
|
+
class AgentPluginsBrowseCommand extends Action2 {
|
|
478
|
+
constructor() {
|
|
479
|
+
super({
|
|
480
|
+
id: "workbench.agentPlugins.browse",
|
|
481
|
+
title: ( localize2(5013, "Agent Plugins")),
|
|
482
|
+
tooltip: ( localize2(5014, "Browse Agent Plugins")),
|
|
483
|
+
icon: Codicon.search,
|
|
484
|
+
precondition: ( ChatContextKeys.Setup.hidden.negate()),
|
|
485
|
+
menu: [{
|
|
486
|
+
id: extensionsFilterSubMenu,
|
|
487
|
+
group: "1_predefined",
|
|
488
|
+
order: 2,
|
|
489
|
+
when: ( ChatContextKeys.Setup.hidden.negate())
|
|
490
|
+
}, {
|
|
491
|
+
id: MenuId.ViewTitle,
|
|
492
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", InstalledAgentPluginsViewId)), ( ChatContextKeys.Setup.hidden.negate()))),
|
|
493
|
+
group: "navigation"
|
|
494
|
+
}]
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
async run(accessor) {
|
|
498
|
+
accessor.get(IExtensionsWorkbenchService).openSearch("@agentPlugins ");
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends Disposable {
|
|
502
|
+
static {
|
|
503
|
+
this.ID = "workbench.chat.agentPlugins.views.contribution";
|
|
504
|
+
}
|
|
505
|
+
constructor(contextKeyService, agentPluginService) {
|
|
506
|
+
super();
|
|
507
|
+
const hasInstalledKey = HasInstalledAgentPluginsContext.bindTo(contextKeyService);
|
|
508
|
+
this._register(autorun(reader => {
|
|
509
|
+
hasInstalledKey.set(agentPluginService.allPlugins.read(reader).length > 0);
|
|
510
|
+
}));
|
|
511
|
+
registerAction2(AgentPluginsBrowseCommand);
|
|
512
|
+
( Registry.as(Extensions.ViewsRegistry)).registerViews([{
|
|
513
|
+
id: InstalledAgentPluginsViewId,
|
|
514
|
+
name: ( localize2(5015, "Agent Plugins - Installed")),
|
|
515
|
+
ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{
|
|
516
|
+
installedOnly: true
|
|
517
|
+
}])),
|
|
518
|
+
when: ( ContextKeyExpr.and(DefaultViewsContext, HasInstalledAgentPluginsContext, ( ChatContextKeys.Setup.hidden.negate()))),
|
|
519
|
+
weight: 30,
|
|
520
|
+
order: 5,
|
|
521
|
+
canToggleVisibility: true
|
|
522
|
+
}, {
|
|
523
|
+
id: "workbench.views.agentPlugins.default.marketplace",
|
|
524
|
+
name: ( localize2(5016, "Agent Plugins")),
|
|
525
|
+
ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
|
|
526
|
+
when: ( ContextKeyExpr.and(DefaultViewsContext, ( HasInstalledAgentPluginsContext.toNegated()), ( ChatContextKeys.Setup.hidden.negate()))),
|
|
527
|
+
weight: 30,
|
|
528
|
+
order: 5,
|
|
529
|
+
canToggleVisibility: true,
|
|
530
|
+
hideByDefault: true
|
|
531
|
+
}, {
|
|
532
|
+
id: "workbench.views.agentPlugins.marketplace",
|
|
533
|
+
name: ( localize2(5016, "Agent Plugins")),
|
|
534
|
+
ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
|
|
535
|
+
when: ( ContextKeyExpr.and(SearchAgentPluginsContext, ( ChatContextKeys.Setup.hidden.negate())))
|
|
536
|
+
}], VIEW_CONTAINER);
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
AgentPluginsViewsContribution = ( __decorate([( __param(0, IContextKeyService)), ( __param(1, IAgentPluginService))], AgentPluginsViewsContribution));
|
|
540
|
+
|
|
541
|
+
export { AgentPluginsListView, AgentPluginsViewsContribution, HasInstalledAgentPluginsContext, InstalledAgentPluginsViewId };
|
package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js
CHANGED
|
@@ -10,12 +10,11 @@ import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbenc
|
|
|
10
10
|
import { AgentSessionsViewerOrientation, AgentSessionsViewerPosition } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
11
11
|
import './agentSessionsService.js';
|
|
12
12
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
13
|
-
import {
|
|
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
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';
|
|
17
17
|
import { AGENT_SESSIONS_QUICK_ACCESS_PREFIX, AgentSessionsQuickAccessProvider } from './agentSessionsQuickAccess.js';
|
|
18
|
-
import { AuxiliaryBarMaximizedContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
19
18
|
|
|
20
19
|
registerAction2(FocusAgentSessionsAction);
|
|
21
20
|
registerAction2(PickAgentSessionAction);
|
|
@@ -44,7 +43,7 @@ registerAction2(SetAgentSessionsOrientationStackedAction);
|
|
|
44
43
|
registerAction2(SetAgentSessionsOrientationSideBySideAction);
|
|
45
44
|
MenuRegistry.appendMenuItem(MenuId.AgentSessionsToolbar, {
|
|
46
45
|
submenu: MenuId.AgentSessionsViewerFilterSubMenu,
|
|
47
|
-
title: ( localize2(
|
|
46
|
+
title: ( localize2(5024, "Filter Agent Sessions")),
|
|
48
47
|
group: "navigation",
|
|
49
48
|
order: 3,
|
|
50
49
|
icon: Codicon.filter
|
|
@@ -57,7 +56,7 @@ MenuRegistry.appendMenuItem(MenuId.AgentSessionsToolbar, {
|
|
|
57
56
|
},
|
|
58
57
|
group: "navigation",
|
|
59
58
|
order: 5,
|
|
60
|
-
when: ( ContextKeyExpr.and(( ChatContextKeys.agentSessionsViewerOrientation.isEqualTo(AgentSessionsViewerOrientation.Stacked)), ( ChatContextKeys.agentSessionsViewerPosition.isEqualTo(AgentSessionsViewerPosition.Right))
|
|
59
|
+
when: ( ContextKeyExpr.and(( ChatContextKeys.agentSessionsViewerOrientation.isEqualTo(AgentSessionsViewerOrientation.Stacked)), ( ChatContextKeys.agentSessionsViewerPosition.isEqualTo(AgentSessionsViewerPosition.Right))))
|
|
61
60
|
});
|
|
62
61
|
MenuRegistry.appendMenuItem(MenuId.AgentSessionsToolbar, {
|
|
63
62
|
command: {
|
|
@@ -67,7 +66,7 @@ MenuRegistry.appendMenuItem(MenuId.AgentSessionsToolbar, {
|
|
|
67
66
|
},
|
|
68
67
|
group: "navigation",
|
|
69
68
|
order: 5,
|
|
70
|
-
when: ( ContextKeyExpr.and(( ChatContextKeys.agentSessionsViewerOrientation.isEqualTo(AgentSessionsViewerOrientation.Stacked)), ( ChatContextKeys.agentSessionsViewerPosition.isEqualTo(AgentSessionsViewerPosition.Left))
|
|
69
|
+
when: ( ContextKeyExpr.and(( ChatContextKeys.agentSessionsViewerOrientation.isEqualTo(AgentSessionsViewerOrientation.Stacked)), ( ChatContextKeys.agentSessionsViewerPosition.isEqualTo(AgentSessionsViewerPosition.Left))))
|
|
71
70
|
});
|
|
72
71
|
MenuRegistry.appendMenuItem(MenuId.AgentSessionsToolbar, {
|
|
73
72
|
command: {
|
|
@@ -77,7 +76,7 @@ MenuRegistry.appendMenuItem(MenuId.AgentSessionsToolbar, {
|
|
|
77
76
|
},
|
|
78
77
|
group: "navigation",
|
|
79
78
|
order: 5,
|
|
80
|
-
when: ( ContextKeyExpr.and(( ChatContextKeys.agentSessionsViewerOrientation.isEqualTo(AgentSessionsViewerOrientation.SideBySide)), ( ChatContextKeys.agentSessionsViewerPosition.isEqualTo(AgentSessionsViewerPosition.Right))
|
|
79
|
+
when: ( ContextKeyExpr.and(( ChatContextKeys.agentSessionsViewerOrientation.isEqualTo(AgentSessionsViewerOrientation.SideBySide)), ( ChatContextKeys.agentSessionsViewerPosition.isEqualTo(AgentSessionsViewerPosition.Right))))
|
|
81
80
|
});
|
|
82
81
|
MenuRegistry.appendMenuItem(MenuId.AgentSessionsToolbar, {
|
|
83
82
|
command: {
|
|
@@ -87,7 +86,7 @@ MenuRegistry.appendMenuItem(MenuId.AgentSessionsToolbar, {
|
|
|
87
86
|
},
|
|
88
87
|
group: "navigation",
|
|
89
88
|
order: 5,
|
|
90
|
-
when: ( ContextKeyExpr.and(( ChatContextKeys.agentSessionsViewerOrientation.isEqualTo(AgentSessionsViewerOrientation.SideBySide)), ( ChatContextKeys.agentSessionsViewerPosition.isEqualTo(AgentSessionsViewerPosition.Left))
|
|
89
|
+
when: ( ContextKeyExpr.and(( ChatContextKeys.agentSessionsViewerOrientation.isEqualTo(AgentSessionsViewerOrientation.SideBySide)), ( ChatContextKeys.agentSessionsViewerPosition.isEqualTo(AgentSessionsViewerPosition.Left))))
|
|
91
90
|
});
|
|
92
91
|
MenuRegistry.appendMenuItem(MenuId.ChatViewSessionTitleToolbar, {
|
|
93
92
|
command: {
|
|
@@ -114,14 +113,14 @@ MenuRegistry.appendMenuItem(MenuId.ChatViewSessionTitleToolbar, {
|
|
|
114
113
|
prefix: AGENT_SESSIONS_QUICK_ACCESS_PREFIX,
|
|
115
114
|
contextKey: "inAgentSessionsPicker",
|
|
116
115
|
when: ChatContextKeys.enabled,
|
|
117
|
-
placeholder: ( localize(
|
|
116
|
+
placeholder: ( localize(5025, "Search agent sessions by name")),
|
|
118
117
|
helpEntries: [{
|
|
119
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(5026, "Show All Agent Sessions")),
|
|
120
119
|
commandId: "workbench.action.chat.history"
|
|
121
120
|
}]
|
|
122
121
|
});
|
|
123
122
|
registerWorkbenchContribution2(
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
LocalAgentsSessionsController.ID,
|
|
124
|
+
LocalAgentsSessionsController,
|
|
126
125
|
WorkbenchPhase.AfterRestored
|
|
127
126
|
);
|