@codingame/monaco-vscode-chat-service-override 28.4.0 → 29.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +18 -12
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +300 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.js +31 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +84 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +16 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +488 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +424 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/errors.d.ts +50 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +202 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/notifications.d.ts +114 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +723 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +33 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionProtocol.d.ts +40 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +22 -0
- package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +29 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +59 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +76 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +162 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +167 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +52 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +82 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +195 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +97 -88
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +78 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +174 -170
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +118 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +13 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +23 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +341 -196
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +79 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.d.ts +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +22 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +15 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +85 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +668 -214
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidgetUtils.js +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +306 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +84 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +651 -81
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +31 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +9 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +7 -142
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.js +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +25 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +297 -123
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +153 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +111 -171
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +5 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +277 -186
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +31 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +3 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +4 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +18 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +112 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +16 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +41 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +35 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +1 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +8 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +13 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +29 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +14 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +79 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +113 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +18 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +54 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +8 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +103 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +48 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +28 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +62 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +21 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +17 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +43 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +194 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +8 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +81 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +23 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +29 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +19 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +105 -172
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +80 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +56 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +70 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +33 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +21 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +362 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +90 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +146 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +10 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +33 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +200 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +90 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +21 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +22 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +28 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +20 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +68 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +57 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +21 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +171 -57
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +206 -35
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +11 -3
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +44 -22
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +450 -301
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +165 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +34 -20
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +209 -144
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js +205 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalCustomizations.js +47 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalSkill.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +191 -159
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +210 -233
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +19 -26
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +183 -193
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatArtifactsService.js +75 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +8 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +97 -35
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatHistoryService.js +67 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +62 -23
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +23 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +50 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +21 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +124 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +20 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +10 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +46 -31
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +74 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +24 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +5 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +66 -64
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +5 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +32 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +390 -114
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +21 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +70 -51
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +61 -51
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +94 -76
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +19 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +112 -21
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.d.ts +0 -53
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +0 -219
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +0 -89
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +0 -251
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +0 -123
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +0 -278
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +0 -76
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +0 -299
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +0 -67
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +0 -263
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +0 -85
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +0 -397
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +0 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +0 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +0 -30
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +0 -28
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +0 -190
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +0 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -20
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
3
|
+
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
|
+
import { Action2, MenuId, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
6
|
+
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
7
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
8
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
10
|
+
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
4
11
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
5
|
-
import {
|
|
12
|
+
import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
13
|
+
import { IAgentPluginRepositoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service';
|
|
14
|
+
import { IPluginInstallService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service';
|
|
15
|
+
import '../../common/plugins/pluginMarketplaceService.js';
|
|
6
16
|
import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
|
|
17
|
+
import { InstalledAgentPluginsViewId } from '../agentPluginsView.js';
|
|
18
|
+
import { CHAT_CONFIG_MENU_ID, CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
19
|
+
import { parseMarketplaceReferences, MarketplaceReferenceKind } from '../../common/plugins/marketplaceReference.js';
|
|
7
20
|
|
|
8
21
|
class ManagePluginsAction extends Action2 {
|
|
9
22
|
static {
|
|
@@ -12,7 +25,7 @@ class ManagePluginsAction extends Action2 {
|
|
|
12
25
|
constructor() {
|
|
13
26
|
super({
|
|
14
27
|
id: ManagePluginsAction.ID,
|
|
15
|
-
title: ( localize2(
|
|
28
|
+
title: ( localize2(4973, "Plugins")),
|
|
16
29
|
category: CHAT_CATEGORY,
|
|
17
30
|
precondition: ChatContextKeys.enabled,
|
|
18
31
|
menu: [{
|
|
@@ -26,8 +39,158 @@ class ManagePluginsAction extends Action2 {
|
|
|
26
39
|
accessor.get(IExtensionsWorkbenchService).openSearch("@agentPlugins ");
|
|
27
40
|
}
|
|
28
41
|
}
|
|
42
|
+
class InstallFromSourceAction extends Action2 {
|
|
43
|
+
static {
|
|
44
|
+
this.ID = "workbench.action.chat.installPluginFromSource";
|
|
45
|
+
}
|
|
46
|
+
constructor() {
|
|
47
|
+
super({
|
|
48
|
+
id: InstallFromSourceAction.ID,
|
|
49
|
+
title: ( localize2(4974, "Install Plugin from Source")),
|
|
50
|
+
category: CHAT_CATEGORY,
|
|
51
|
+
icon: Codicon.add,
|
|
52
|
+
precondition: ChatContextKeys.enabled,
|
|
53
|
+
f1: true,
|
|
54
|
+
menu: [{
|
|
55
|
+
id: MenuId.ViewTitle,
|
|
56
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", InstalledAgentPluginsViewId)), ( ChatContextKeys.Setup.hidden.negate()))),
|
|
57
|
+
group: "navigation",
|
|
58
|
+
order: 1
|
|
59
|
+
}]
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
async run(accessor) {
|
|
63
|
+
const quickInputService = accessor.get(IQuickInputService);
|
|
64
|
+
const pluginInstallService = accessor.get(IPluginInstallService);
|
|
65
|
+
const store = ( new DisposableStore());
|
|
66
|
+
const inputBox = store.add(quickInputService.createInputBox());
|
|
67
|
+
inputBox.placeholder = ( localize(4975, "owner/repo or git clone URL"));
|
|
68
|
+
inputBox.prompt = ( localize(4976, "Enter a GitHub repository or git URL to install a plugin from"));
|
|
69
|
+
inputBox.show();
|
|
70
|
+
store.add(inputBox.onDidChangeValue(() => {
|
|
71
|
+
inputBox.validationMessage = undefined;
|
|
72
|
+
}));
|
|
73
|
+
store.add(inputBox.onDidHide(() => {
|
|
74
|
+
store.dispose();
|
|
75
|
+
}));
|
|
76
|
+
store.add(inputBox.onDidAccept(async () => {
|
|
77
|
+
const source = inputBox.value.trim();
|
|
78
|
+
if (!source) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const validationError = pluginInstallService.validatePluginSource(source);
|
|
82
|
+
if (validationError) {
|
|
83
|
+
inputBox.validationMessage = validationError;
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
inputBox.busy = true;
|
|
87
|
+
inputBox.enabled = false;
|
|
88
|
+
try {
|
|
89
|
+
inputBox.hide();
|
|
90
|
+
const result = await pluginInstallService.installPluginFromValidatedSource(source);
|
|
91
|
+
if (!result.success) {
|
|
92
|
+
if (result.message) {
|
|
93
|
+
inputBox.validationMessage = result.message;
|
|
94
|
+
}
|
|
95
|
+
inputBox.show();
|
|
96
|
+
}
|
|
97
|
+
} finally {
|
|
98
|
+
inputBox.busy = false;
|
|
99
|
+
inputBox.enabled = true;
|
|
100
|
+
}
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
class ManagePluginMarketplacesAction extends Action2 {
|
|
105
|
+
static {
|
|
106
|
+
this.ID = "workbench.action.chat.managePluginMarketplaces";
|
|
107
|
+
}
|
|
108
|
+
constructor() {
|
|
109
|
+
super({
|
|
110
|
+
id: ManagePluginMarketplacesAction.ID,
|
|
111
|
+
title: ( localize2(4977, "Manage Plugin Marketplaces")),
|
|
112
|
+
icon: Codicon.globe,
|
|
113
|
+
category: CHAT_CATEGORY,
|
|
114
|
+
precondition: ChatContextKeys.enabled,
|
|
115
|
+
f1: true,
|
|
116
|
+
menu: [{
|
|
117
|
+
id: MenuId.ViewTitle,
|
|
118
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", InstalledAgentPluginsViewId)), ( ChatContextKeys.Setup.hidden.negate()))),
|
|
119
|
+
group: "navigation",
|
|
120
|
+
order: 2
|
|
121
|
+
}]
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
async run(accessor) {
|
|
125
|
+
const quickInputService = accessor.get(IQuickInputService);
|
|
126
|
+
const configurationService = accessor.get(IConfigurationService);
|
|
127
|
+
const pluginRepositoryService = accessor.get(IAgentPluginRepositoryService);
|
|
128
|
+
const extensionsWorkbenchService = accessor.get(IExtensionsWorkbenchService);
|
|
129
|
+
const commandService = accessor.get(ICommandService);
|
|
130
|
+
const fileService = accessor.get(IFileService);
|
|
131
|
+
const configuredRefs = configurationService.getValue(ChatConfiguration.PluginMarketplaces) ?? [];
|
|
132
|
+
const refs = parseMarketplaceReferences(configuredRefs);
|
|
133
|
+
if (refs.length === 0) {
|
|
134
|
+
quickInputService.pick([], {
|
|
135
|
+
placeHolder: ( localize(4978, "No plugin marketplaces configured"))
|
|
136
|
+
});
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
const items = ( refs.map(ref => ({
|
|
140
|
+
label: ref.displayLabel,
|
|
141
|
+
description: ref.kind === MarketplaceReferenceKind.LocalFileUri ? ( localize(4979, "Local")) : ref.cloneUrl,
|
|
142
|
+
reference: ref
|
|
143
|
+
})));
|
|
144
|
+
const selected = await quickInputService.pick(items, {
|
|
145
|
+
placeHolder: ( localize(4980, "Select a plugin marketplace"))
|
|
146
|
+
});
|
|
147
|
+
if (!selected) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
const ref = selected.reference;
|
|
151
|
+
const actionItems = [{
|
|
152
|
+
id: "showPlugins",
|
|
153
|
+
label: ( localize(4981, "Show Plugins"))
|
|
154
|
+
}];
|
|
155
|
+
const repoUri = pluginRepositoryService.getRepositoryUri(ref);
|
|
156
|
+
const repoExists = await fileService.exists(repoUri);
|
|
157
|
+
if (repoExists) {
|
|
158
|
+
actionItems.push({
|
|
159
|
+
id: "openDirectory",
|
|
160
|
+
label: ( localize(4982, "Open Folder"))
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
actionItems.push({
|
|
164
|
+
id: "removeMarketplace",
|
|
165
|
+
label: ( localize(4983, "Remove Marketplace"))
|
|
166
|
+
});
|
|
167
|
+
const action = await quickInputService.pick(actionItems, {
|
|
168
|
+
placeHolder: ( localize(4984, "Select an action for '{0}'", ref.displayLabel))
|
|
169
|
+
});
|
|
170
|
+
if (!action) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
switch (action.id) {
|
|
174
|
+
case "showPlugins":
|
|
175
|
+
extensionsWorkbenchService.openSearch(`@agentPlugins ${ref.displayLabel}`);
|
|
176
|
+
break;
|
|
177
|
+
case "openDirectory":
|
|
178
|
+
await commandService.executeCommand("revealFileInOS", repoUri);
|
|
179
|
+
break;
|
|
180
|
+
case "removeMarketplace":
|
|
181
|
+
{
|
|
182
|
+
const currentValues = configurationService.getValue(ChatConfiguration.PluginMarketplaces) ?? [];
|
|
183
|
+
const updated = currentValues.filter(v => typeof v === "string" && v.trim() !== ref.rawValue);
|
|
184
|
+
await configurationService.updateValue(ChatConfiguration.PluginMarketplaces, updated);
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
29
190
|
function registerChatPluginActions() {
|
|
30
191
|
registerAction2(ManagePluginsAction);
|
|
192
|
+
registerAction2(InstallFromSourceAction);
|
|
193
|
+
registerAction2(ManagePluginMarketplacesAction);
|
|
31
194
|
}
|
|
32
195
|
|
|
33
196
|
export { ManagePluginsAction, registerChatPluginActions };
|
|
@@ -13,7 +13,7 @@ function registerChatPromptNavigationActions() {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: "workbench.action.chat.nextUserPrompt",
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(4985, "Next User Prompt")),
|
|
17
17
|
keybinding: {
|
|
18
18
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.DownArrow,
|
|
19
19
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -32,7 +32,7 @@ function registerChatPromptNavigationActions() {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super({
|
|
34
34
|
id: "workbench.action.chat.previousUserPrompt",
|
|
35
|
-
title: ( localize2(
|
|
35
|
+
title: ( localize2(4986, "Previous User Prompt")),
|
|
36
36
|
keybinding: {
|
|
37
37
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.UpArrow,
|
|
38
38
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -23,7 +23,7 @@ export declare class ChatRemovePendingRequestAction extends Action2 {
|
|
|
23
23
|
export declare class ChatSendPendingImmediatelyAction extends Action2 {
|
|
24
24
|
static readonly ID = "workbench.action.chat.sendPendingImmediately";
|
|
25
25
|
constructor();
|
|
26
|
-
run(accessor: ServicesAccessor, ...args: unknown[]): void
|
|
26
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): Promise<void>;
|
|
27
27
|
}
|
|
28
28
|
export declare class ChatRemoveAllPendingRequestsAction extends Action2 {
|
|
29
29
|
static readonly ID = "workbench.action.chat.removeAllPendingRequests";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
3
|
-
import {
|
|
3
|
+
import { KeyCode, KeyMod } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
4
4
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
5
5
|
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
6
|
import { Action2, MenuId, registerAction2, MenuRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
@@ -9,11 +9,19 @@ import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
9
9
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
10
10
|
import { ChatRequestQueueKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
11
11
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
12
|
+
import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
12
13
|
import { isRequestVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
13
14
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
14
15
|
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
15
16
|
|
|
16
|
-
const
|
|
17
|
+
const editingQueue = ( ChatContextKeys.editingRequestType.isEqualTo(ChatContextKeys.EditingRequestType.Queue));
|
|
18
|
+
const editingSteer = ( ChatContextKeys.editingRequestType.isEqualTo(ChatContextKeys.EditingRequestType.Steer));
|
|
19
|
+
const editingQueueOrSteer = ( ContextKeyExpr.or(editingQueue, editingSteer));
|
|
20
|
+
const queuingActionsPresent = ( ContextKeyExpr.and(( ContextKeyExpr.or(ChatContextKeys.requestInProgress, editingQueueOrSteer)), ( ChatContextKeys.editingRequestType.notEqualsTo(ChatContextKeys.EditingRequestType.Sent))));
|
|
21
|
+
const steerIsDefault = ( ContextKeyExpr.equals(`config.${ChatConfiguration.RequestQueueingDefaultAction}`, "steer"));
|
|
22
|
+
const queueIsDefault = ( steerIsDefault.negate());
|
|
23
|
+
const effectiveDefaultIsQueue = ( ContextKeyExpr.or(( ContextKeyExpr.and(queueIsDefault, ( editingQueueOrSteer.negate()))), editingQueue));
|
|
24
|
+
const effectiveDefaultIsSteer = ( ContextKeyExpr.or(( ContextKeyExpr.and(steerIsDefault, ( editingQueueOrSteer.negate()))), editingSteer));
|
|
17
25
|
function isRemovePendingRequestContext(context) {
|
|
18
26
|
return !!context && typeof context === "object" && "sessionResource" in context && "pendingRequestId" in context && URI.isUri(context.sessionResource) && typeof context.pendingRequestId === "string";
|
|
19
27
|
}
|
|
@@ -24,17 +32,29 @@ class ChatQueueMessageAction extends Action2 {
|
|
|
24
32
|
constructor() {
|
|
25
33
|
super({
|
|
26
34
|
id: ChatQueueMessageAction.ID,
|
|
27
|
-
title: ( localize2(
|
|
28
|
-
tooltip: ( localize(
|
|
35
|
+
title: ( localize2(4987, "Add to Queue")),
|
|
36
|
+
tooltip: ( localize(4988, "Queue this message to send after the current request completes")),
|
|
29
37
|
icon: Codicon.add,
|
|
30
38
|
f1: false,
|
|
31
39
|
category: CHAT_CATEGORY,
|
|
32
40
|
precondition: ( ContextKeyExpr.and(queuingActionsPresent, ChatContextKeys.inputHasText)),
|
|
33
|
-
keybinding: {
|
|
34
|
-
when: ( ContextKeyExpr.and(
|
|
41
|
+
keybinding: [{
|
|
42
|
+
when: ( ContextKeyExpr.and(
|
|
43
|
+
ChatContextKeys.inChatInput,
|
|
44
|
+
queuingActionsPresent,
|
|
45
|
+
effectiveDefaultIsSteer
|
|
46
|
+
)),
|
|
35
47
|
primary: KeyMod.Alt | KeyCode.Enter,
|
|
36
48
|
weight: KeybindingWeight.EditorContrib + 1
|
|
37
|
-
}
|
|
49
|
+
}, {
|
|
50
|
+
when: ( ContextKeyExpr.and(
|
|
51
|
+
ChatContextKeys.inChatInput,
|
|
52
|
+
queuingActionsPresent,
|
|
53
|
+
effectiveDefaultIsQueue
|
|
54
|
+
)),
|
|
55
|
+
primary: KeyCode.Enter,
|
|
56
|
+
weight: KeybindingWeight.EditorContrib + 1
|
|
57
|
+
}]
|
|
38
58
|
});
|
|
39
59
|
}
|
|
40
60
|
run(accessor, ...args) {
|
|
@@ -59,20 +79,32 @@ class ChatSteerWithMessageAction extends Action2 {
|
|
|
59
79
|
constructor() {
|
|
60
80
|
super({
|
|
61
81
|
id: ChatSteerWithMessageAction.ID,
|
|
62
|
-
title: ( localize2(
|
|
82
|
+
title: ( localize2(4989, "Steer with Message")),
|
|
63
83
|
tooltip: ( localize(
|
|
64
|
-
|
|
84
|
+
4990,
|
|
65
85
|
"Send this message at the next opportunity, signaling the current request to yield"
|
|
66
86
|
)),
|
|
67
87
|
icon: Codicon.arrowUp,
|
|
68
88
|
f1: false,
|
|
69
89
|
category: CHAT_CATEGORY,
|
|
70
90
|
precondition: ( ContextKeyExpr.and(queuingActionsPresent, ChatContextKeys.inputHasText)),
|
|
71
|
-
keybinding: {
|
|
72
|
-
when: ( ContextKeyExpr.and(
|
|
91
|
+
keybinding: [{
|
|
92
|
+
when: ( ContextKeyExpr.and(
|
|
93
|
+
ChatContextKeys.inChatInput,
|
|
94
|
+
queuingActionsPresent,
|
|
95
|
+
effectiveDefaultIsSteer
|
|
96
|
+
)),
|
|
73
97
|
primary: KeyCode.Enter,
|
|
74
98
|
weight: KeybindingWeight.EditorContrib + 1
|
|
75
|
-
}
|
|
99
|
+
}, {
|
|
100
|
+
when: ( ContextKeyExpr.and(
|
|
101
|
+
ChatContextKeys.inChatInput,
|
|
102
|
+
queuingActionsPresent,
|
|
103
|
+
effectiveDefaultIsQueue
|
|
104
|
+
)),
|
|
105
|
+
primary: KeyMod.Alt | KeyCode.Enter,
|
|
106
|
+
weight: KeybindingWeight.EditorContrib + 1
|
|
107
|
+
}]
|
|
76
108
|
});
|
|
77
109
|
}
|
|
78
110
|
run(accessor, ...args) {
|
|
@@ -97,7 +129,7 @@ class ChatRemovePendingRequestAction extends Action2 {
|
|
|
97
129
|
constructor() {
|
|
98
130
|
super({
|
|
99
131
|
id: ChatRemovePendingRequestAction.ID,
|
|
100
|
-
title: ( localize2(
|
|
132
|
+
title: ( localize2(4991, "Remove from Queue")),
|
|
101
133
|
icon: Codicon.close,
|
|
102
134
|
f1: false,
|
|
103
135
|
category: CHAT_CATEGORY,
|
|
@@ -129,7 +161,7 @@ class ChatSendPendingImmediatelyAction extends Action2 {
|
|
|
129
161
|
constructor() {
|
|
130
162
|
super({
|
|
131
163
|
id: ChatSendPendingImmediatelyAction.ID,
|
|
132
|
-
title: ( localize2(
|
|
164
|
+
title: ( localize2(4992, "Send Immediately")),
|
|
133
165
|
icon: Codicon.arrowUp,
|
|
134
166
|
f1: false,
|
|
135
167
|
category: CHAT_CATEGORY,
|
|
@@ -141,7 +173,7 @@ class ChatSendPendingImmediatelyAction extends Action2 {
|
|
|
141
173
|
}]
|
|
142
174
|
});
|
|
143
175
|
}
|
|
144
|
-
run(accessor, ...args) {
|
|
176
|
+
async run(accessor, ...args) {
|
|
145
177
|
const chatService = accessor.get(IChatService);
|
|
146
178
|
const widgetService = accessor.get(IChatWidgetService);
|
|
147
179
|
const [context] = args;
|
|
@@ -167,7 +199,7 @@ class ChatSendPendingImmediatelyAction extends Action2 {
|
|
|
167
199
|
kind: r.kind
|
|
168
200
|
})))];
|
|
169
201
|
chatService.setPendingRequests(context.sessionResource, reordered);
|
|
170
|
-
chatService.cancelCurrentRequestForSession(context.sessionResource, "queueRunNext");
|
|
202
|
+
await chatService.cancelCurrentRequestForSession(context.sessionResource, "queueRunNext");
|
|
171
203
|
chatService.processPendingRequests(context.sessionResource);
|
|
172
204
|
}
|
|
173
205
|
}
|
|
@@ -178,7 +210,7 @@ class ChatRemoveAllPendingRequestsAction extends Action2 {
|
|
|
178
210
|
constructor() {
|
|
179
211
|
super({
|
|
180
212
|
id: ChatRemoveAllPendingRequestsAction.ID,
|
|
181
|
-
title: ( localize2(
|
|
213
|
+
title: ( localize2(4993, "Remove All Queued")),
|
|
182
214
|
icon: Codicon.clearAll,
|
|
183
215
|
f1: false,
|
|
184
216
|
category: CHAT_CATEGORY,
|
|
@@ -213,7 +245,7 @@ function registerChatQueueActions() {
|
|
|
213
245
|
MenuRegistry.appendMenuItem(MenuId.ChatExecuteQueue, {
|
|
214
246
|
command: {
|
|
215
247
|
id: ChatQueueMessageAction.ID,
|
|
216
|
-
title: ( localize2(
|
|
248
|
+
title: ( localize2(4987, "Add to Queue")),
|
|
217
249
|
icon: Codicon.add
|
|
218
250
|
},
|
|
219
251
|
group: "navigation",
|
|
@@ -222,7 +254,7 @@ function registerChatQueueActions() {
|
|
|
222
254
|
MenuRegistry.appendMenuItem(MenuId.ChatExecuteQueue, {
|
|
223
255
|
command: {
|
|
224
256
|
id: ChatSteerWithMessageAction.ID,
|
|
225
|
-
title: ( localize2(
|
|
257
|
+
title: ( localize2(4989, "Steer with Message")),
|
|
226
258
|
icon: Codicon.arrowUp
|
|
227
259
|
},
|
|
228
260
|
group: "navigation",
|
|
@@ -230,7 +262,7 @@ function registerChatQueueActions() {
|
|
|
230
262
|
});
|
|
231
263
|
MenuRegistry.appendMenuItem(MenuId.ChatExecute, {
|
|
232
264
|
submenu: MenuId.ChatExecuteQueue,
|
|
233
|
-
title: ( localize2(
|
|
265
|
+
title: ( localize2(4994, "Queue")),
|
|
234
266
|
icon: Codicon.listOrdered,
|
|
235
267
|
when: ( ContextKeyExpr.and(queuingActionsPresent, ChatContextKeys.inputHasText)),
|
|
236
268
|
group: "navigation",
|
|
@@ -18,7 +18,7 @@ function registerQuickChatActions() {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: "workbench.action.quickchat.openInChatView",
|
|
21
|
-
title: ( localize2(
|
|
21
|
+
title: ( localize2(4995, "Open in Chat View")),
|
|
22
22
|
f1: false,
|
|
23
23
|
category: CHAT_CATEGORY,
|
|
24
24
|
icon: Codicon.chatSparkle,
|
|
@@ -38,7 +38,7 @@ function registerQuickChatActions() {
|
|
|
38
38
|
constructor() {
|
|
39
39
|
super({
|
|
40
40
|
id: "workbench.action.quickchat.close",
|
|
41
|
-
title: ( localize2(
|
|
41
|
+
title: ( localize2(4996, "Close Quick Chat")),
|
|
42
42
|
f1: false,
|
|
43
43
|
category: CHAT_CATEGORY,
|
|
44
44
|
icon: Codicon.close,
|
|
@@ -59,7 +59,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
59
59
|
constructor() {
|
|
60
60
|
super({
|
|
61
61
|
id: ASK_QUICK_QUESTION_ACTION_ID,
|
|
62
|
-
title: ( localize2(
|
|
62
|
+
title: ( localize2(4997, "Open Quick Chat")),
|
|
63
63
|
precondition: ChatContextKeys.enabled,
|
|
64
64
|
icon: Codicon.chatSparkle,
|
|
65
65
|
f1: false,
|
|
@@ -74,7 +74,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
74
74
|
order: 4
|
|
75
75
|
},
|
|
76
76
|
metadata: {
|
|
77
|
-
description: ( localize(
|
|
77
|
+
description: ( localize(4998, "Toggle the quick chat")),
|
|
78
78
|
args: [{
|
|
79
79
|
name: "args",
|
|
80
80
|
schema: {
|
|
@@ -83,17 +83,17 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
83
83
|
required: ["query"],
|
|
84
84
|
properties: {
|
|
85
85
|
query: {
|
|
86
|
-
description: ( localize(
|
|
86
|
+
description: ( localize(4999, "The query to open the quick chat with")),
|
|
87
87
|
type: "string"
|
|
88
88
|
},
|
|
89
89
|
isPartialQuery: {
|
|
90
|
-
description: ( localize(
|
|
90
|
+
description: ( localize(5000, "Whether the query is partial; it will wait for more user input")),
|
|
91
91
|
type: "boolean"
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
}, {
|
|
95
95
|
type: "string",
|
|
96
|
-
description: ( localize(
|
|
96
|
+
description: ( localize(4999, "The query to open the quick chat with"))
|
|
97
97
|
}]
|
|
98
98
|
}
|
|
99
99
|
}]
|
|
@@ -124,7 +124,7 @@ class AskQuickChatAction extends Action2 {
|
|
|
124
124
|
super({
|
|
125
125
|
id: `workbench.action.openQuickChat`,
|
|
126
126
|
category: CHAT_CATEGORY,
|
|
127
|
-
title: ( localize2(
|
|
127
|
+
title: ( localize2(5001, "Open Quick Chat")),
|
|
128
128
|
precondition: ChatContextKeys.enabled,
|
|
129
129
|
f1: true
|
|
130
130
|
});
|
|
@@ -43,7 +43,7 @@ class AcceptToolConfirmation extends ToolConfirmationAction {
|
|
|
43
43
|
constructor() {
|
|
44
44
|
super({
|
|
45
45
|
id: AcceptToolConfirmationActionId,
|
|
46
|
-
title: ( localize2(
|
|
46
|
+
title: ( localize2(5012, "Accept")),
|
|
47
47
|
f1: false,
|
|
48
48
|
category: CHAT_CATEGORY,
|
|
49
49
|
keybinding: {
|
|
@@ -63,7 +63,7 @@ class SkipToolConfirmation extends ToolConfirmationAction {
|
|
|
63
63
|
constructor() {
|
|
64
64
|
super({
|
|
65
65
|
id: SkipToolConfirmationActionId,
|
|
66
|
-
title: ( localize2(
|
|
66
|
+
title: ( localize2(5013, "Skip")),
|
|
67
67
|
f1: false,
|
|
68
68
|
category: CHAT_CATEGORY,
|
|
69
69
|
keybinding: {
|
|
@@ -86,7 +86,7 @@ class ConfigureToolsAction extends Action2 {
|
|
|
86
86
|
constructor() {
|
|
87
87
|
super({
|
|
88
88
|
id: ConfigureToolsAction.ID,
|
|
89
|
-
title: ( localize(
|
|
89
|
+
title: ( localize(5014, "Configure Tools...")),
|
|
90
90
|
icon: Codicon.settings,
|
|
91
91
|
f1: false,
|
|
92
92
|
category: CHAT_CATEGORY,
|
|
@@ -119,29 +119,29 @@ class ConfigureToolsAction extends Action2 {
|
|
|
119
119
|
} = widget.input.selectedToolsModel;
|
|
120
120
|
switch (entriesScope) {
|
|
121
121
|
case ToolsScope.Session:
|
|
122
|
-
placeholder = ( localize(
|
|
123
|
-
description = ( localize(
|
|
122
|
+
placeholder = ( localize(5015, "Select tools for this chat session"));
|
|
123
|
+
description = ( localize(5016, "The selected tools were configured only for this chat session."));
|
|
124
124
|
break;
|
|
125
125
|
case ToolsScope.Agent:
|
|
126
|
-
placeholder = ( localize(
|
|
126
|
+
placeholder = ( localize(5017, "Select tools for this custom agent"));
|
|
127
127
|
description = ( localize(
|
|
128
|
-
|
|
128
|
+
5018,
|
|
129
129
|
"The selected tools are configured by the '{0}' custom agent. Changes to the tools will be applied to the custom agent file as well.",
|
|
130
130
|
widget.input.currentModeObs.get().label.get()
|
|
131
131
|
));
|
|
132
132
|
break;
|
|
133
133
|
case ToolsScope.Agent_ReadOnly:
|
|
134
|
-
placeholder = ( localize(
|
|
134
|
+
placeholder = ( localize(5019, "Select tools for this custom agent"));
|
|
135
135
|
description = ( localize(
|
|
136
|
-
|
|
136
|
+
5020,
|
|
137
137
|
"The selected tools are configured by the '{0}' custom agent. Changes to the tools will only be used for this session and will not change the '{0}' custom agent.",
|
|
138
138
|
widget.input.currentModeObs.get().label.get()
|
|
139
139
|
));
|
|
140
140
|
break;
|
|
141
141
|
case ToolsScope.Global:
|
|
142
|
-
placeholder = ( localize(
|
|
142
|
+
placeholder = ( localize(5021, "Select tools that are available to chat."));
|
|
143
143
|
description = ( localize(
|
|
144
|
-
|
|
144
|
+
5022,
|
|
145
145
|
"The selected tools will be applied globally for all chat sessions that use the default agent."
|
|
146
146
|
));
|
|
147
147
|
break;
|
|
@@ -79,7 +79,7 @@ function createToolSetTreeItem(toolset, checked, editorService) {
|
|
|
79
79
|
const resource = toolset.source.file;
|
|
80
80
|
buttons.push({
|
|
81
81
|
iconClass: ThemeIcon.asClassName(Codicon.edit),
|
|
82
|
-
tooltip: ( localize(
|
|
82
|
+
tooltip: ( localize(5023, "Edit Tool Set")),
|
|
83
83
|
action: () => editorService.openEditor({
|
|
84
84
|
resource
|
|
85
85
|
})
|
|
@@ -166,7 +166,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
|
|
|
166
166
|
if (collection?.source) {
|
|
167
167
|
buttons.push({
|
|
168
168
|
iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
|
|
169
|
-
tooltip: ( localize(
|
|
169
|
+
tooltip: ( localize(5024, "Configure {0}", collection.label)),
|
|
170
170
|
action: () => collection.source ? collection.source instanceof ExtensionIdentifier ? extensionsWorkbenchService.open(collection.source.value, {
|
|
171
171
|
tab: ExtensionEditorTab.Features,
|
|
172
172
|
feature: "mcp"
|
|
@@ -177,7 +177,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
|
|
|
177
177
|
} else if (collection?.presentation?.origin) {
|
|
178
178
|
buttons.push({
|
|
179
179
|
iconClass: ThemeIcon.asClassName(Codicon.settingsGear),
|
|
180
|
-
tooltip: ( localize(
|
|
180
|
+
tooltip: ( localize(5024, "Configure {0}", collection.label)),
|
|
181
181
|
action: () => editorService.openEditor({
|
|
182
182
|
resource: collection.presentation.origin
|
|
183
183
|
})
|
|
@@ -186,7 +186,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
|
|
|
186
186
|
if (mcpServer.connectionState.get().state === McpConnectionState.Kind.Error) {
|
|
187
187
|
buttons.push({
|
|
188
188
|
iconClass: ThemeIcon.asClassName(Codicon.warning),
|
|
189
|
-
tooltip: ( localize(
|
|
189
|
+
tooltip: ( localize(5025, "Show Output")),
|
|
190
190
|
action: () => mcpServer.showOutput()
|
|
191
191
|
});
|
|
192
192
|
}
|
|
@@ -198,7 +198,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
|
|
|
198
198
|
children.push({
|
|
199
199
|
itemType: "callback",
|
|
200
200
|
iconClass: ThemeIcon.asClassName(Codicon.sync),
|
|
201
|
-
label: ( localize(
|
|
201
|
+
label: ( localize(5026, "Update Tools")),
|
|
202
202
|
pickable: false,
|
|
203
203
|
run: () => {
|
|
204
204
|
treePicker.busy = true;
|
|
@@ -254,7 +254,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
|
|
|
254
254
|
itemType: "bucket",
|
|
255
255
|
ordinal: BucketOrdinal.BuiltIn,
|
|
256
256
|
id: key,
|
|
257
|
-
label: ( localize(
|
|
257
|
+
label: ( localize(5027, "Built-In")),
|
|
258
258
|
checked: undefined,
|
|
259
259
|
children: [],
|
|
260
260
|
buttons: [],
|
|
@@ -266,7 +266,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
|
|
|
266
266
|
itemType: "bucket",
|
|
267
267
|
ordinal: BucketOrdinal.User,
|
|
268
268
|
id: key,
|
|
269
|
-
label: ( localize(
|
|
269
|
+
label: ( localize(5028, "User Defined Tool Sets")),
|
|
270
270
|
checked: undefined,
|
|
271
271
|
children: [],
|
|
272
272
|
buttons: [],
|
|
@@ -370,7 +370,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
|
|
|
370
370
|
const buttons = toolItem.buttons ? [...toolItem.buttons] : [];
|
|
371
371
|
buttons.push({
|
|
372
372
|
iconClass: ThemeIcon.asClassName(Codicon.pass),
|
|
373
|
-
tooltip: ( localize(
|
|
373
|
+
tooltip: ( localize(5029, "Manage Approval")),
|
|
374
374
|
keepOpen: true,
|
|
375
375
|
action: () => confirmationService.manageConfirmationPreferences(manageTools, {
|
|
376
376
|
focusToolId: tool.id
|
|
@@ -391,7 +391,7 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
if (treeItems.length === 0) {
|
|
394
|
-
treePicker.placeholder = ( localize(
|
|
394
|
+
treePicker.placeholder = ( localize(5030, "Add tools to chat"));
|
|
395
395
|
} else {
|
|
396
396
|
treePicker.placeholder = placeHolder;
|
|
397
397
|
}
|
|
@@ -452,17 +452,17 @@ async function showToolsPicker(accessor, placeHolder, source, description, getTo
|
|
|
452
452
|
}));
|
|
453
453
|
const addMcpServerButton = {
|
|
454
454
|
iconClass: ThemeIcon.asClassName(Codicon.mcp),
|
|
455
|
-
tooltip: ( localize(
|
|
455
|
+
tooltip: ( localize(5031, "Add MCP Server..."))
|
|
456
456
|
};
|
|
457
457
|
const installExtension = {
|
|
458
458
|
iconClass: ThemeIcon.asClassName(Codicon.extensions),
|
|
459
|
-
tooltip: ( localize(
|
|
459
|
+
tooltip: ( localize(5032, "Install Extension..."))
|
|
460
460
|
};
|
|
461
461
|
const configureToolSets = {
|
|
462
462
|
iconClass: ThemeIcon.asClassName(Codicon.gear),
|
|
463
|
-
tooltip: ( localize(
|
|
463
|
+
tooltip: ( localize(5033, "Configure Tool Sets..."))
|
|
464
464
|
};
|
|
465
|
-
treePicker.title = ( localize(
|
|
465
|
+
treePicker.title = ( localize(5034, "Configure Tools"));
|
|
466
466
|
treePicker.buttons = [addMcpServerButton, installExtension, configureToolSets];
|
|
467
467
|
store.add(treePicker.onDidTriggerButton(button => {
|
|
468
468
|
if (button === addMcpServerButton) {
|