@codingame/monaco-vscode-chat-service-override 37.0.0 → 37.1.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 +11 -0
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/browser/agentHostProtocolClient.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationConfig.d.ts +74 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationConfig.js +90 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostSlashCommand.d.ts +8 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostSlashCommand.js +16 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.js +53 -53
- package/vscode/src/vs/platform/agentHost/common/agentHostWorkingDirectories.d.ts +16 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostWorkingDirectories.js +14 -0
- package/vscode/src/vs/platform/agentHost/common/agentMerge.js +7 -7
- package/vscode/src/vs/platform/agentHost/common/agentModelByokMeta.d.ts +24 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelByokMeta.js +13 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelNotices.d.ts +22 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelNotices.js +21 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelPricing.d.ts +114 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelPricing.js +56 -0
- package/vscode/src/vs/platform/agentHost/common/changesetUri.js +15 -1
- package/vscode/src/vs/platform/agentHost/common/copilotConfigSlashCommands.d.ts +73 -0
- package/vscode/src/vs/platform/agentHost/common/copilotConfigSlashCommands.js +141 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCompletionAttachmentMeta.js +42 -1
- package/vscode/src/vs/platform/agentHost/common/meta/agentCustomizationMeta.d.ts +27 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCustomizationMeta.js +14 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentEphemeralSessionMeta.d.ts +14 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentEphemeralSessionMeta.js +11 -0
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.js +13 -13
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +4 -1
- package/vscode/src/vs/platform/agentHost/common/toolSearchConstants.d.ts +4 -0
- package/vscode/src/vs/platform/agentHost/common/toolSearchConstants.js +6 -0
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +1 -1
- package/vscode/src/vs/workbench/browser/chatChangesPill.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +28 -28
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +18 -18
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +3 -3
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +3 -3
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +6 -6
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +11 -11
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +11 -11
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +9 -9
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +5 -5
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +28 -28
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +93 -93
- 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 +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFindActions.js +7 -7
- 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 +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +14 -14
- 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 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openAgentHostStateFileAction.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginCommands.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationContentExpander.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationContentExpander.js +229 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.js +460 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHost.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHost.contribution.js +92 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAllowSignedOutWhenUsableContribution.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAllowSignedOutWhenUsableContribution.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAuth.d.ts +142 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAuth.js +746 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.js +474 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostConfigEditor.d.ts +169 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostConfigEditor.js +261 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCopilotCliSettingsContribution.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCopilotCliSettingsContribution.js +90 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostDownloadProgress.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostDownloadProgress.js +73 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostExistingSessionHarnessPickerEnablement.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostExistingSessionHarnessPickerEnablement.js +61 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.js +192 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPromptCacheNotification.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPromptCacheNotification.js +137 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostResponseFileChanges.js +301 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRootConfigForwarder.d.ts +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRootConfigForwarder.js +96 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.d.ts +884 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.js +5868 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.js +129 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.js +221 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.d.ts +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.js +345 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettings.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettings.contribution.js +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettingsFileSystemProvider.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettingsFileSystemProvider.js +163 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutModelsNotification.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutModelsNotification.js +219 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSubagentProgress.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSubagentProgress.js +50 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.js +132 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettings.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettings.contribution.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettingsFileSystemProvider.d.ts +79 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettingsFileSystemProvider.js +161 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSubmitConfig.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSubmitConfig.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/copilotConfigSlashSubmitHandler.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/copilotConfigSlashSubmitHandler.js +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.js +205 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +50 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +3 -3
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +22 -22
- 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/externalSessionsFilterMenu.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHover.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessionsConfiguration.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +126 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +44 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +137 -137
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationPresentation.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +37 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCardList.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationAccessibility.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationCategories.js +145 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationDashboard.js +29 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +40 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/galleryItemRenderer.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +75 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +115 -115
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.js +50 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +344 -344
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.js +37 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostLogSources.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +124 -124
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.js +72 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEnablement.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +24 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +35 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugWireLogView.js +40 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPills.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +63 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievements.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsWidget.js +35 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPromoNotification.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +62 -62
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorOverlay.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +27 -27
- 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/promptToolSetsCodeLensProvider.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 +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimeline.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineCard.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineGutterRail.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRulerRail.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineStickyHeader.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionChatPillOptions.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionPullRequestPill.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentOpenChat.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatFind/chatFindAccessibilityHelp.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +3 -3
- 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.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +12 -12
- 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.js +154 -154
- package/vscode/src/vs/workbench/contrib/chat/common/sessionChatPills.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +10 -10
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditReviewSession.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +10 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/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.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +73 -73
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +10 -10
- 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.js +4 -4
- package/vscode/src/vs/workbench/services/agentEditorComments/browser/agentEditorCommentsOverlayWidget.js +3 -3
- package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.d.ts +0 -30
- package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.js +0 -87
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +0 -205
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +0 -1580
|
@@ -29,19 +29,19 @@ const VALID_PLUGIN_NAME = /^[a-z0-9]([a-z0-9\-.]*[a-z0-9])?$/;
|
|
|
29
29
|
const INVALID_CONSECUTIVE = /--|[.][.]/;
|
|
30
30
|
function validatePluginName(name) {
|
|
31
31
|
if (!name) {
|
|
32
|
-
return localize(
|
|
32
|
+
return localize(5888, "Plugin name is required.");
|
|
33
33
|
}
|
|
34
34
|
if (name.length > 64) {
|
|
35
|
-
return localize(
|
|
35
|
+
return localize(5889, "Plugin name must be at most 64 characters.");
|
|
36
36
|
}
|
|
37
37
|
if (!VALID_PLUGIN_NAME.test(name)) {
|
|
38
38
|
return localize(
|
|
39
|
-
|
|
39
|
+
5890,
|
|
40
40
|
"Plugin name must contain only lowercase alphanumeric characters, hyphens, and periods, and must start and end with an alphanumeric character."
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
if (INVALID_CONSECUTIVE.test(name)) {
|
|
44
|
-
return localize(
|
|
44
|
+
return localize(5891, "Plugin name must not contain consecutive hyphens or periods.");
|
|
45
45
|
}
|
|
46
46
|
return undefined;
|
|
47
47
|
}
|
|
@@ -78,7 +78,7 @@ class CreatePluginAction extends Action2 {
|
|
|
78
78
|
constructor() {
|
|
79
79
|
super({
|
|
80
80
|
id: CreatePluginAction.ID,
|
|
81
|
-
title: ( localize2(
|
|
81
|
+
title: ( localize2(5892, "Create Plugin")),
|
|
82
82
|
category: CHAT_CATEGORY,
|
|
83
83
|
f1: true,
|
|
84
84
|
precondition: ChatContextKeys.enabled,
|
|
@@ -138,11 +138,11 @@ class CreatePluginAction extends Action2 {
|
|
|
138
138
|
children
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
|
-
addGroup(instructions, "instruction", ( localize(
|
|
142
|
-
addGroup(prompts, "prompt", ( localize(
|
|
143
|
-
addGroup(agents, "agent", ( localize(
|
|
144
|
-
addGroup(skills, "skill", ( localize(
|
|
145
|
-
addGroup(hooks, "hook", ( localize(
|
|
141
|
+
addGroup(instructions, "instruction", ( localize(5893, "Instructions")), Codicon.book);
|
|
142
|
+
addGroup(prompts, "prompt", ( localize(5894, "Prompts")), Codicon.comment);
|
|
143
|
+
addGroup(agents, "agent", ( localize(5895, "Agents")), Codicon.copilot);
|
|
144
|
+
addGroup(skills, "skill", ( localize(5896, "Skills")), Codicon.lightbulb);
|
|
145
|
+
addGroup(hooks, "hook", ( localize(5897, "Hooks")), Codicon.zap);
|
|
146
146
|
const mcpChildren = [];
|
|
147
147
|
for (const collection of mcpCollections) {
|
|
148
148
|
if (!showAll && !isUserDefinedMcpCollection(collection)) {
|
|
@@ -164,7 +164,7 @@ class CreatePluginAction extends Action2 {
|
|
|
164
164
|
}
|
|
165
165
|
if (mcpChildren.length > 0) {
|
|
166
166
|
groups.push({
|
|
167
|
-
label: ( localize(
|
|
167
|
+
label: ( localize(5898, "MCP Servers")),
|
|
168
168
|
iconClass: ThemeIcon.asClassName(Codicon.mcp),
|
|
169
169
|
checked: undefined,
|
|
170
170
|
collapsed: false,
|
|
@@ -176,15 +176,15 @@ class CreatePluginAction extends Action2 {
|
|
|
176
176
|
};
|
|
177
177
|
const disposables = ( new DisposableStore());
|
|
178
178
|
const tree = disposables.add(quickInputService.createQuickTree());
|
|
179
|
-
tree.placeholder = ( localize(
|
|
179
|
+
tree.placeholder = ( localize(5899, "Select resources to include in the plugin"));
|
|
180
180
|
tree.matchOnDescription = true;
|
|
181
181
|
tree.matchOnLabel = true;
|
|
182
182
|
tree.sortByLabel = false;
|
|
183
|
-
tree.title = ( localize(
|
|
183
|
+
tree.title = ( localize(5900, "Create Plugin"));
|
|
184
184
|
tree.setItemTree(buildTree());
|
|
185
185
|
const toggleButton = {
|
|
186
186
|
iconClass: ThemeIcon.asClassName(Codicon.filter),
|
|
187
|
-
tooltip: ( localize(
|
|
187
|
+
tooltip: ( localize(5901, "Show Built-in, Extension, and Plugin Resources"))
|
|
188
188
|
};
|
|
189
189
|
tree.buttons = [toggleButton];
|
|
190
190
|
disposables.add(tree.onDidTriggerButton(button => {
|
|
@@ -209,22 +209,22 @@ class CreatePluginAction extends Action2 {
|
|
|
209
209
|
}
|
|
210
210
|
const selected = selectedItems.filter(i => !!i.resourceType);
|
|
211
211
|
const formatPick = await quickInputService.pick([{
|
|
212
|
-
label: ( localize(
|
|
213
|
-
description: ( localize(
|
|
212
|
+
label: ( localize(5902, "Agent Plugin")),
|
|
213
|
+
description: ( localize(5903, "Standard plugin format")),
|
|
214
214
|
format: PluginCreationFormat.AgentPlugin
|
|
215
215
|
}, {
|
|
216
|
-
label: ( localize(
|
|
217
|
-
description: ( localize(
|
|
216
|
+
label: ( localize(5904, "Open Plugin (Legacy Compatibility)")),
|
|
217
|
+
description: ( localize(5905, "Also supports older clients")),
|
|
218
218
|
format: PluginCreationFormat.AgentPluginWithLegacyCompatibility
|
|
219
219
|
}], {
|
|
220
|
-
title: ( localize(
|
|
221
|
-
placeHolder: ( localize(
|
|
220
|
+
title: ( localize(5906, "Select Plugin Format")),
|
|
221
|
+
placeHolder: ( localize(5907, "Select how the plugin should be created"))
|
|
222
222
|
});
|
|
223
223
|
if (!formatPick) {
|
|
224
224
|
return;
|
|
225
225
|
}
|
|
226
226
|
const pluginName = await quickInputService.input({
|
|
227
|
-
prompt: ( localize(
|
|
227
|
+
prompt: ( localize(5908, "Enter a name for the plugin")),
|
|
228
228
|
placeHolder: "my-plugin",
|
|
229
229
|
validateInput: async value => validatePluginName(value)
|
|
230
230
|
});
|
|
@@ -235,8 +235,8 @@ class CreatePluginAction extends Action2 {
|
|
|
235
235
|
canSelectFiles: false,
|
|
236
236
|
canSelectFolders: true,
|
|
237
237
|
canSelectMany: false,
|
|
238
|
-
title: ( localize(
|
|
239
|
-
openLabel: ( localize(
|
|
238
|
+
title: ( localize(5909, "Select Plugin Save Location")),
|
|
239
|
+
openLabel: ( localize(5910, "Select Folder"))
|
|
240
240
|
});
|
|
241
241
|
if (!folderUris || folderUris.length === 0) {
|
|
242
242
|
return;
|
|
@@ -245,7 +245,7 @@ class CreatePluginAction extends Action2 {
|
|
|
245
245
|
const pluginRoot = joinPath(targetDir, pluginName);
|
|
246
246
|
if (await fileService.exists(pluginRoot)) {
|
|
247
247
|
notificationService.error(( localize(
|
|
248
|
-
|
|
248
|
+
5911,
|
|
249
249
|
"A directory named '{0}' already exists at this location. Please choose a different name or location.",
|
|
250
250
|
pluginName
|
|
251
251
|
)));
|
|
@@ -257,9 +257,9 @@ class CreatePluginAction extends Action2 {
|
|
|
257
257
|
try {
|
|
258
258
|
await commandService.executeCommand("revealFileInOS", pluginRoot);
|
|
259
259
|
} catch {}
|
|
260
|
-
notificationService.info(( localize(
|
|
260
|
+
notificationService.info(( localize(5912, "Plugin '{0}' created successfully.", pluginName)));
|
|
261
261
|
} catch (err) {
|
|
262
|
-
notificationService.error(( localize(
|
|
262
|
+
notificationService.error(( localize(5913, "Failed to create plugin: {0}", String(err))));
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
}
|
|
@@ -462,28 +462,28 @@ function serializeMcpLaunch(launch, serverLabel = "") {
|
|
|
462
462
|
if (launch.type === McpServerTransportType.Stdio) {
|
|
463
463
|
if (!isPortableMcpCommand(launch.command)) {
|
|
464
464
|
throw ( new Error(( localize(
|
|
465
|
-
|
|
465
|
+
5914,
|
|
466
466
|
"MCP server '{0}' cannot be exported because its command is not a bare executable name or a plugin-relative path.",
|
|
467
467
|
serverLabel
|
|
468
468
|
))));
|
|
469
469
|
}
|
|
470
470
|
if (launch.cwd && !isPortableMcpWorkingDirectory(launch.cwd)) {
|
|
471
471
|
throw ( new Error(( localize(
|
|
472
|
-
|
|
472
|
+
5915,
|
|
473
473
|
"MCP server '{0}' cannot be exported because its working directory is not plugin-relative.",
|
|
474
474
|
serverLabel
|
|
475
475
|
))));
|
|
476
476
|
}
|
|
477
477
|
if (launch.envFile) {
|
|
478
478
|
throw ( new Error(( localize(
|
|
479
|
-
|
|
479
|
+
5916,
|
|
480
480
|
"MCP server '{0}' cannot be exported because Agent Plugins do not support environment files.",
|
|
481
481
|
serverLabel
|
|
482
482
|
))));
|
|
483
483
|
}
|
|
484
484
|
if (launch.sandbox) {
|
|
485
485
|
throw ( new Error(( localize(
|
|
486
|
-
|
|
486
|
+
5917,
|
|
487
487
|
"MCP server '{0}' cannot be exported because Agent Plugins do not support sandbox configuration.",
|
|
488
488
|
serverLabel
|
|
489
489
|
))));
|
|
@@ -492,7 +492,7 @@ function serializeMcpLaunch(launch, serverLabel = "") {
|
|
|
492
492
|
for (const [key, value] of Object.entries(launch.env)) {
|
|
493
493
|
if (typeof value !== "string" || key.toUpperCase() === "PLUGIN_ROOT" || key.toUpperCase() === "PLUGIN_DATA") {
|
|
494
494
|
throw ( new Error(( localize(
|
|
495
|
-
|
|
495
|
+
5918,
|
|
496
496
|
"MCP server '{0}' cannot be exported because its environment contains values that Agent Plugins do not support.",
|
|
497
497
|
serverLabel
|
|
498
498
|
))));
|
|
@@ -516,7 +516,7 @@ function serializeMcpLaunch(launch, serverLabel = "") {
|
|
|
516
516
|
} else {
|
|
517
517
|
if (launch.headers.length > 0) {
|
|
518
518
|
throw ( new Error(( localize(
|
|
519
|
-
|
|
519
|
+
5919,
|
|
520
520
|
"MCP server '{0}' cannot be exported because portable plugins cannot include HTTP headers.",
|
|
521
521
|
serverLabel
|
|
522
522
|
))));
|
package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js
CHANGED
|
@@ -48,7 +48,7 @@ let BrowserAgentHostDebugLogsExportService = class BrowserAgentHostDebugLogsExpo
|
|
|
48
48
|
}
|
|
49
49
|
async selectDestination(exportName) {
|
|
50
50
|
const folders = await this.fileDialogService.showOpenDialog({
|
|
51
|
-
title: ( localize(
|
|
51
|
+
title: ( localize(5920, "Select Folder for Agent Host Debug Logs")),
|
|
52
52
|
canSelectFiles: false,
|
|
53
53
|
canSelectFolders: true,
|
|
54
54
|
canSelectMany: false,
|
|
@@ -332,7 +332,7 @@ async function exportAgentHostDebugLogs(accessor, activeSession) {
|
|
|
332
332
|
() => exportService.selectDestination(exportName),
|
|
333
333
|
() => progressService.withProgress({
|
|
334
334
|
location: ProgressLocation.Notification,
|
|
335
|
-
title: ( localize(
|
|
335
|
+
title: ( localize(5921, "Collecting Agent Host debug logs...")),
|
|
336
336
|
delay: 500
|
|
337
337
|
}, () => collectAgentHostDebugLogs(accessor, activeSession, artifact => hostArtifact = artifact))
|
|
338
338
|
);
|
|
@@ -340,7 +340,7 @@ async function exportAgentHostDebugLogs(accessor, activeSession) {
|
|
|
340
340
|
notificationService.notify({
|
|
341
341
|
severity: Severity.Error,
|
|
342
342
|
message: ( localize(
|
|
343
|
-
|
|
343
|
+
5922,
|
|
344
344
|
"Failed to collect debug logs: {0}",
|
|
345
345
|
collectionResult.reason instanceof Error ? collectionResult.reason.message : String(collectionResult.reason)
|
|
346
346
|
))
|
|
@@ -351,7 +351,7 @@ async function exportAgentHostDebugLogs(accessor, activeSession) {
|
|
|
351
351
|
notificationService.notify({
|
|
352
352
|
severity: Severity.Error,
|
|
353
353
|
message: ( localize(
|
|
354
|
-
|
|
354
|
+
5923,
|
|
355
355
|
"Failed to save debug logs: {0}",
|
|
356
356
|
destinationResult.reason instanceof Error ? destinationResult.reason.message : String(destinationResult.reason)
|
|
357
357
|
))
|
|
@@ -378,7 +378,7 @@ async function exportAgentHostDebugLogs(accessor, activeSession) {
|
|
|
378
378
|
notificationService.notify({
|
|
379
379
|
severity: Severity.Error,
|
|
380
380
|
message: ( localize(
|
|
381
|
-
|
|
381
|
+
5923,
|
|
382
382
|
"Failed to save debug logs: {0}",
|
|
383
383
|
error instanceof Error ? error.message : String(error)
|
|
384
384
|
))
|
|
@@ -418,14 +418,14 @@ function notifyAgentHostDebugLogsExported(notificationService, clipboardService,
|
|
|
418
418
|
notificationService.notify({
|
|
419
419
|
severity: Severity.Warning,
|
|
420
420
|
message: isInternal ? ( localize(
|
|
421
|
-
|
|
421
|
+
5924,
|
|
422
422
|
"Note: This log may contain personal information such as auth tokens, file contents, or terminal output. It MUST be shared privately via Slack or in an issue filed on the microsoft/vscode-internalbacklog repo."
|
|
423
423
|
)) : ( localize(
|
|
424
|
-
|
|
424
|
+
5925,
|
|
425
425
|
"Note: This log may contain personal information such as auth tokens, file contents, or terminal output. Please consider sharing privately or reviewing the contents carefully before sharing."
|
|
426
426
|
)),
|
|
427
427
|
actions: {
|
|
428
|
-
primary: [( new Action("copyAgentHostDebugLogsPath", ( localize(
|
|
428
|
+
primary: [( new Action("copyAgentHostDebugLogsPath", ( localize(5926, "Copy Path")), undefined, true, () => clipboardService.writeText(savedPath)))]
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
}
|
|
@@ -436,7 +436,7 @@ class ExportAgentHostDebugLogsAction extends Action2 {
|
|
|
436
436
|
constructor() {
|
|
437
437
|
super({
|
|
438
438
|
id: ExportAgentHostDebugLogsAction.ID,
|
|
439
|
-
title: ( localize2(
|
|
439
|
+
title: ( localize2(5927, "Export Agent Host Debug Logs...")),
|
|
440
440
|
f1: true,
|
|
441
441
|
category: Categories.Developer,
|
|
442
442
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( IsWebContext.negate()), AGENT_HOST_ENABLED_CONTEXT_KEY))
|
package/vscode/src/vs/workbench/contrib/chat/browser/actions/openAgentHostStateFileAction.js
CHANGED
|
@@ -15,18 +15,18 @@ async function openAgentHostStateFile(accessor, sessionResource, chatTarget) {
|
|
|
15
15
|
const editorService = accessor.get(IEditorService);
|
|
16
16
|
const notificationService = accessor.get(INotificationService);
|
|
17
17
|
if (!sessionResource) {
|
|
18
|
-
notificationService.info(( localize(
|
|
18
|
+
notificationService.info(( localize(5928, "No Agent Host session is active.")));
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
21
|
const sessionResolution = connectionsService.resolveSessionResource(sessionResource);
|
|
22
22
|
if (!sessionResolution) {
|
|
23
|
-
notificationService.info(( localize(
|
|
23
|
+
notificationService.info(( localize(5929, "The active chat session is not an Agent Host session.")));
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
try {
|
|
27
27
|
const stateFile = await sessionResolution.connection.getSessionStateFile(sessionResolution.backendSession, chatTarget?.backendResource);
|
|
28
28
|
if (!stateFile) {
|
|
29
|
-
notificationService.info(( localize(
|
|
29
|
+
notificationService.info(( localize(5930, "The active Agent Host session does not expose a state file.")));
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
32
|
await editorService.openEditor({
|
|
@@ -34,7 +34,7 @@ async function openAgentHostStateFile(accessor, sessionResource, chatTarget) {
|
|
|
34
34
|
});
|
|
35
35
|
} catch (error) {
|
|
36
36
|
notificationService.error(( localize(
|
|
37
|
-
|
|
37
|
+
5931,
|
|
38
38
|
"Failed to open the Agent Host state file: {0}",
|
|
39
39
|
error instanceof Error ? error.message : String(error)
|
|
40
40
|
)));
|
|
@@ -47,7 +47,7 @@ class OpenAgentHostStateFileAction extends Action2 {
|
|
|
47
47
|
constructor() {
|
|
48
48
|
super({
|
|
49
49
|
id: OpenAgentHostStateFileAction.ID,
|
|
50
|
-
title: ( localize2(
|
|
50
|
+
title: ( localize2(5932, "Open Agent Host State File")),
|
|
51
51
|
f1: true,
|
|
52
52
|
category: Categories.Developer,
|
|
53
53
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( IsSessionsWindowContext.negate())))
|
|
@@ -27,10 +27,10 @@ function updatePlugins(accessor, force) {
|
|
|
27
27
|
force
|
|
28
28
|
}, CancellationToken.None);
|
|
29
29
|
if (result.updatedNames.length === 0 && result.failedNames.length === 0) {
|
|
30
|
-
notificationService.info(( localize(
|
|
30
|
+
notificationService.info(( localize(5949, "Plugins are up to date.")));
|
|
31
31
|
}
|
|
32
32
|
} catch (error) {
|
|
33
|
-
notificationService.error(( localize(
|
|
33
|
+
notificationService.error(( localize(5950, "Failed to update plugins: {0}", getErrorMessage(error))));
|
|
34
34
|
throw error;
|
|
35
35
|
} finally {
|
|
36
36
|
updatePluginsPromise = undefined;
|
|
@@ -43,8 +43,8 @@ class CheckForPluginUpdatesCommand extends Action2 {
|
|
|
43
43
|
constructor() {
|
|
44
44
|
super({
|
|
45
45
|
id: UpdateAgentPluginsCommandId,
|
|
46
|
-
title: ( localize2(
|
|
47
|
-
category: ( localize2(
|
|
46
|
+
title: ( localize2(5951, "Update Plugins")),
|
|
47
|
+
category: ( localize2(5952, "Chat")),
|
|
48
48
|
icon: Codicon.refresh,
|
|
49
49
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( UpdatingAgentPluginsContext.negate()))),
|
|
50
50
|
f1: true,
|
|
@@ -55,7 +55,7 @@ class CheckForPluginUpdatesCommand extends Action2 {
|
|
|
55
55
|
order: 1,
|
|
56
56
|
alt: {
|
|
57
57
|
id: ForceUpdateAgentPluginsCommandId,
|
|
58
|
-
title: ( localize2(
|
|
58
|
+
title: ( localize2(5953, "Update Plugins (Force)")),
|
|
59
59
|
icon: Codicon.refresh
|
|
60
60
|
}
|
|
61
61
|
}]
|
|
@@ -69,8 +69,8 @@ class ForceUpdatePluginsCommand extends Action2 {
|
|
|
69
69
|
constructor() {
|
|
70
70
|
super({
|
|
71
71
|
id: ForceUpdateAgentPluginsCommandId,
|
|
72
|
-
title: ( localize2(
|
|
73
|
-
category: ( localize2(
|
|
72
|
+
title: ( localize2(5953, "Update Plugins (Force)")),
|
|
73
|
+
category: ( localize2(5952, "Chat")),
|
|
74
74
|
icon: Codicon.refresh,
|
|
75
75
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( UpdatingAgentPluginsContext.negate()))),
|
|
76
76
|
f1: true
|
|
@@ -367,7 +367,7 @@ let AgentPluginEditor = class AgentPluginEditor extends EditorPane {
|
|
|
367
367
|
this.contentDisposables.add(toDisposable(insert(this.layoutParticipants, {
|
|
368
368
|
layout
|
|
369
369
|
})));
|
|
370
|
-
return this.openMarkdown(this.pluginReadme.get(), ( localize(
|
|
370
|
+
return this.openMarkdown(this.pluginReadme.get(), ( localize(5954, "No README available.")), readmeContainer, WebviewIndex.Readme, ( localize(5955, "Readme")), token);
|
|
371
371
|
}
|
|
372
372
|
async openMarkdown(cacheResult, noContentCopy, container, webviewIndex, title, token) {
|
|
373
373
|
try {
|
|
@@ -539,7 +539,7 @@ let UpdatePluginEditorAction = class UpdatePluginEditorAction extends Action {
|
|
|
539
539
|
pluginInstallService,
|
|
540
540
|
pluginMarketplaceService
|
|
541
541
|
) {
|
|
542
|
-
super(UpdatePluginEditorAction_1.ID, ( localize(
|
|
542
|
+
super(UpdatePluginEditorAction_1.ID, ( localize(5956, "Update")), "extension-action label prominent install");
|
|
543
543
|
this.plugin = plugin;
|
|
544
544
|
this.liveMarketplacePlugin = liveMarketplacePlugin;
|
|
545
545
|
this.pluginInstallService = pluginInstallService;
|
package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js
CHANGED
|
@@ -8,7 +8,7 @@ import { EditorInputCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
8
8
|
import { EditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput';
|
|
9
9
|
import { AgentPluginItemKind } from './agentPluginItems.js';
|
|
10
10
|
|
|
11
|
-
const AgentPluginEditorIcon = registerIcon("agent-plugin-editor-icon", Codicon.extensions, ( localize(
|
|
11
|
+
const AgentPluginEditorIcon = registerIcon("agent-plugin-editor-icon", Codicon.extensions, ( localize(5957, "Icon of the Agent Plugin editor.")));
|
|
12
12
|
function getPluginId(item) {
|
|
13
13
|
if (item.kind === AgentPluginItemKind.Installed) {
|
|
14
14
|
return ( item.plugin.uri.toString());
|
|
@@ -39,7 +39,7 @@ class AgentPluginEditorInput extends EditorInput {
|
|
|
39
39
|
return this._item;
|
|
40
40
|
}
|
|
41
41
|
getName() {
|
|
42
|
-
return localize(
|
|
42
|
+
return localize(5958, "Plugin: {0}", this._item.name);
|
|
43
43
|
}
|
|
44
44
|
getIcon() {
|
|
45
45
|
return AgentPluginEditorIcon;
|
|
@@ -109,7 +109,7 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
|
|
|
109
109
|
if (marketplace.kind === MarketplaceReferenceKind.LocalFileUri) {
|
|
110
110
|
throw ( new Error(`Local marketplace repository does not exist: ${repoDir.fsPath}`));
|
|
111
111
|
}
|
|
112
|
-
const progressTitle = options?.progressTitle ?? ( localize(
|
|
112
|
+
const progressTitle = options?.progressTitle ?? ( localize(5959, "Preparing plugin marketplace '{0}'...", marketplace.displayLabel));
|
|
113
113
|
const failureLabel = options?.failureLabel ?? marketplace.displayLabel;
|
|
114
114
|
await this._cloneRepository(
|
|
115
115
|
repoDir,
|
|
@@ -168,15 +168,15 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
|
|
|
168
168
|
err
|
|
169
169
|
);
|
|
170
170
|
if (!options?.silent) {
|
|
171
|
-
const primaryActions = [( new Action("showGitOutput", ( localize(
|
|
171
|
+
const primaryActions = [( new Action("showGitOutput", ( localize(5960, "Show Git Output")), undefined, true, () => this._commandService.executeCommand("git.showOutput")))];
|
|
172
172
|
const failureLabel = options?.failureLabel ?? updateLabel;
|
|
173
173
|
if (marketplace.kind !== MarketplaceReferenceKind.LocalFileUri) {
|
|
174
|
-
primaryActions.push(( new Action("purgeAndRecloneMarketplace", ( localize(
|
|
174
|
+
primaryActions.push(( new Action("purgeAndRecloneMarketplace", ( localize(5961, "Purge Marketplace Cache and Reclone")), undefined, true, () => this._purgeAndRecloneMarketplace(marketplace, options?.marketplaceType, failureLabel))));
|
|
175
175
|
}
|
|
176
176
|
this._notificationService.notify({
|
|
177
177
|
severity: Severity.Error,
|
|
178
178
|
message: ( localize(
|
|
179
|
-
|
|
179
|
+
5962,
|
|
180
180
|
"Failed to update plugin '{0}': {1}",
|
|
181
181
|
failureLabel,
|
|
182
182
|
err?.message ?? String(err)
|
|
@@ -194,7 +194,7 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
|
|
|
194
194
|
try {
|
|
195
195
|
return await this._progressService.withProgress({
|
|
196
196
|
location: ProgressLocation.Notification,
|
|
197
|
-
title: ( localize(
|
|
197
|
+
title: ( localize(5963, "Updating plugin '{0}'...", updateLabel)),
|
|
198
198
|
cancellable: true
|
|
199
199
|
}, () => this._pluginGit.pull(repoDir, cts.token), () => cts.dispose(true));
|
|
200
200
|
} finally {
|
|
@@ -209,7 +209,7 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
|
|
|
209
209
|
try {
|
|
210
210
|
await this._progressService.withProgress({
|
|
211
211
|
location: ProgressLocation.Notification,
|
|
212
|
-
title: ( localize(
|
|
212
|
+
title: ( localize(5964, "Purging plugin marketplace '{0}'...", marketplace.displayLabel)),
|
|
213
213
|
cancellable: false
|
|
214
214
|
}, async () => {
|
|
215
215
|
const exists = await this._fileService.exists(repoDir);
|
|
@@ -221,12 +221,12 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
|
|
|
221
221
|
}
|
|
222
222
|
await this.ensureRepository(marketplace, {
|
|
223
223
|
marketplaceType,
|
|
224
|
-
progressTitle: ( localize(
|
|
224
|
+
progressTitle: ( localize(5965, "Recloning plugin marketplace '{0}'...", marketplace.displayLabel)),
|
|
225
225
|
failureLabel: label
|
|
226
226
|
});
|
|
227
227
|
});
|
|
228
228
|
this._notificationService.info(( localize(
|
|
229
|
-
|
|
229
|
+
5966,
|
|
230
230
|
"Recloned plugin marketplace '{0}'. Try updating plugins again.",
|
|
231
231
|
marketplace.displayLabel
|
|
232
232
|
)));
|
|
@@ -234,13 +234,13 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
|
|
|
234
234
|
this._notificationService.notify({
|
|
235
235
|
severity: Severity.Error,
|
|
236
236
|
message: ( localize(
|
|
237
|
-
|
|
237
|
+
5967,
|
|
238
238
|
"Failed to purge plugin marketplace '{0}': {1}",
|
|
239
239
|
marketplace.displayLabel,
|
|
240
240
|
err?.message ?? String(err)
|
|
241
241
|
)),
|
|
242
242
|
actions: {
|
|
243
|
-
primary: [( new Action("showGitOutput", ( localize(
|
|
243
|
+
primary: [( new Action("showGitOutput", ( localize(5960, "Show Git Output")), undefined, true, () => {
|
|
244
244
|
return this._commandService.executeCommand("git.showOutput");
|
|
245
245
|
}))]
|
|
246
246
|
}
|
|
@@ -323,13 +323,13 @@ let AgentPluginRepositoryService = class AgentPluginRepositoryService {
|
|
|
323
323
|
this._notificationService.notify({
|
|
324
324
|
severity: Severity.Error,
|
|
325
325
|
message: ( localize(
|
|
326
|
-
|
|
326
|
+
5968,
|
|
327
327
|
"Failed to install plugin '{0}': {1}",
|
|
328
328
|
failureLabel,
|
|
329
329
|
err?.message ?? String(err)
|
|
330
330
|
)),
|
|
331
331
|
actions: {
|
|
332
|
-
primary: [( new Action("showGitOutput", ( localize(
|
|
332
|
+
primary: [( new Action("showGitOutput", ( localize(5960, "Show Git Output")), undefined, true, () => {
|
|
333
333
|
this._commandService.executeCommand("git.showOutput");
|
|
334
334
|
}))]
|
|
335
335
|
}
|
|
@@ -98,7 +98,7 @@ let UpdatePluginAction = class UpdatePluginAction extends Action {
|
|
|
98
98
|
pluginInstallService,
|
|
99
99
|
pluginMarketplaceService
|
|
100
100
|
) {
|
|
101
|
-
super(UpdatePluginAction_1.ID, ( localize(
|
|
101
|
+
super(UpdatePluginAction_1.ID, ( localize(5969, "Update")), "extension-action label prominent install");
|
|
102
102
|
this.plugin = plugin;
|
|
103
103
|
this.liveMarketplacePlugin = liveMarketplacePlugin;
|
|
104
104
|
this.pluginInstallService = pluginInstallService;
|
|
@@ -126,7 +126,7 @@ let ManagePluginAction = class ManagePluginAction extends Action {
|
|
|
126
126
|
this.getActionGroups = getActionGroups;
|
|
127
127
|
this.instantiationService = instantiationService;
|
|
128
128
|
this._actionViewItem = null;
|
|
129
|
-
this.tooltip = ( localize(
|
|
129
|
+
this.tooltip = ( localize(5970, "Manage"));
|
|
130
130
|
}
|
|
131
131
|
createActionViewItem(options) {
|
|
132
132
|
this._actionViewItem = this.instantiationService.createInstance(DropDownActionViewItem, this, options);
|
|
@@ -355,7 +355,7 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
355
355
|
return item?.name ?? "";
|
|
356
356
|
},
|
|
357
357
|
getWidgetAriaLabel() {
|
|
358
|
-
return localize(
|
|
358
|
+
return localize(5971, "Agent Plugins");
|
|
359
359
|
}
|
|
360
360
|
},
|
|
361
361
|
overrideStyles: getLocationBasedViewColors(this.viewDescriptorService.getViewLocationById(this.id)).listOverrideStyles
|
|
@@ -530,7 +530,7 @@ let AgentPluginsListView = class AgentPluginsListView extends AbstractExtensions
|
|
|
530
530
|
this.bodyTemplate.pluginsList.classList.toggle("hidden", count === 0);
|
|
531
531
|
this.bodyTemplate.messageContainer.classList.toggle("hidden", count > 0);
|
|
532
532
|
if (count === 0 && this.isBodyVisible()) {
|
|
533
|
-
this.bodyTemplate.messageBox.textContent = ( localize(
|
|
533
|
+
this.bodyTemplate.messageBox.textContent = ( localize(5972, "No agent plugins found."));
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
}
|
|
@@ -540,8 +540,8 @@ class AgentPluginsBrowseCommand extends Action2 {
|
|
|
540
540
|
constructor() {
|
|
541
541
|
super({
|
|
542
542
|
id: "workbench.agentPlugins.browse",
|
|
543
|
-
title: ( localize2(
|
|
544
|
-
tooltip: ( localize2(
|
|
543
|
+
title: ( localize2(5973, "Agent Plugins")),
|
|
544
|
+
tooltip: ( localize2(5974, "Browse Agent Plugins")),
|
|
545
545
|
icon: Codicon.search,
|
|
546
546
|
precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabledInWorkspace.negate()))),
|
|
547
547
|
menu: [{
|
|
@@ -564,8 +564,8 @@ class RefreshPluginMarketplacesCommand extends Action2 {
|
|
|
564
564
|
constructor() {
|
|
565
565
|
super({
|
|
566
566
|
id: RefreshAgentPluginMarketplacesCommandId,
|
|
567
|
-
title: ( localize2(
|
|
568
|
-
category: ( localize2(
|
|
567
|
+
title: ( localize2(5975, "Refresh Plugin Marketplaces")),
|
|
568
|
+
category: ( localize2(5976, "Chat")),
|
|
569
569
|
icon: Codicon.refresh,
|
|
570
570
|
precondition: ChatContextKeys.enabled,
|
|
571
571
|
f1: true
|
|
@@ -580,7 +580,7 @@ class RefreshPluginMarketplacesCommand extends Action2 {
|
|
|
580
580
|
try {
|
|
581
581
|
await progressService.withProgress({
|
|
582
582
|
location: ProgressLocation.Notification,
|
|
583
|
-
title: ( localize(
|
|
583
|
+
title: ( localize(5977, "Refreshing plugin marketplaces...")),
|
|
584
584
|
cancellable: true
|
|
585
585
|
}, () => marketplaceService.fetchMarketplacePlugins(cts.token, undefined, {
|
|
586
586
|
refresh: true,
|
|
@@ -591,16 +591,16 @@ class RefreshPluginMarketplacesCommand extends Action2 {
|
|
|
591
591
|
}
|
|
592
592
|
if (failedLabels.length > 0) {
|
|
593
593
|
notificationService.warn(( localize(
|
|
594
|
-
|
|
594
|
+
5978,
|
|
595
595
|
"Refreshed plugin marketplaces, but {0} could not be read: {1}",
|
|
596
596
|
failedLabels.length,
|
|
597
597
|
failedLabels.join(", ")
|
|
598
598
|
)));
|
|
599
599
|
} else {
|
|
600
|
-
notificationService.info(( localize(
|
|
600
|
+
notificationService.info(( localize(5979, "Plugin marketplaces refreshed.")));
|
|
601
601
|
}
|
|
602
602
|
} catch (error) {
|
|
603
|
-
notificationService.error(( localize(
|
|
603
|
+
notificationService.error(( localize(5980, "Failed to refresh plugin marketplaces: {0}", getErrorMessage(error))));
|
|
604
604
|
throw error;
|
|
605
605
|
} finally {
|
|
606
606
|
cts.dispose();
|
|
@@ -621,7 +621,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
|
|
|
621
621
|
registerAction2(RefreshPluginMarketplacesCommand);
|
|
622
622
|
( Registry.as(Extensions.ViewsRegistry)).registerViews([{
|
|
623
623
|
id: InstalledAgentPluginsViewId,
|
|
624
|
-
name: ( localize2(
|
|
624
|
+
name: ( localize2(5981, "Agent Plugins - Installed")),
|
|
625
625
|
ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{
|
|
626
626
|
installedOnly: true
|
|
627
627
|
}])),
|
|
@@ -631,7 +631,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
|
|
|
631
631
|
canToggleVisibility: true
|
|
632
632
|
}, {
|
|
633
633
|
id: "workbench.views.agentPlugins.default.marketplace",
|
|
634
|
-
name: ( localize2(
|
|
634
|
+
name: ( localize2(5982, "Agent Plugins")),
|
|
635
635
|
ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
|
|
636
636
|
when: ( ContextKeyExpr.and(DefaultViewsContext, ( HasInstalledAgentPluginsContext.toNegated()), ( ChatContextKeys.Setup.hidden.negate()))),
|
|
637
637
|
weight: 30,
|
|
@@ -640,7 +640,7 @@ let AgentPluginsViewsContribution = class AgentPluginsViewsContribution extends
|
|
|
640
640
|
hideByDefault: true
|
|
641
641
|
}, {
|
|
642
642
|
id: "workbench.views.agentPlugins.marketplace",
|
|
643
|
-
name: ( localize2(
|
|
643
|
+
name: ( localize2(5982, "Agent Plugins")),
|
|
644
644
|
ctorDescriptor: ( new SyncDescriptor(AgentPluginsListView, [{}])),
|
|
645
645
|
when: ( ContextKeyExpr.and(SearchAgentPluginsContext, ( ChatContextKeys.Setup.hidden.negate())))
|
|
646
646
|
}], VIEW_CONTAINER);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
4
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
5
|
+
import { AICustomizationSource } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService";
|
|
6
|
+
import { ICustomizationItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/customizationHarnessService";
|
|
7
|
+
/**
|
|
8
|
+
* Expands plugin roots into individual customization items by scanning the
|
|
9
|
+
* canonical subfolders (agents/skills/commands/rules).
|
|
10
|
+
*/
|
|
11
|
+
export declare class AgentCustomizationContentExpander {
|
|
12
|
+
private readonly fileService;
|
|
13
|
+
private readonly logService;
|
|
14
|
+
constructor(fileService: IFileService, logService: ILogService);
|
|
15
|
+
expandPluginContents(pluginUri: URI, groupKey: string, isBundleItem: boolean, source: AICustomizationSource, pluginLabel: string | undefined, token: CancellationToken): Promise<readonly ICustomizationItem[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Emits one item per skill subfolder that contains a SKILL.md file.
|
|
18
|
+
* The skill metadata comes from SKILL.md frontmatter.
|
|
19
|
+
*/
|
|
20
|
+
private collectFromSkillDir;
|
|
21
|
+
/**
|
|
22
|
+
* Emits one item per markdown file for agent/rules/command folders.
|
|
23
|
+
* Agents and instructions read frontmatter name/description, and
|
|
24
|
+
* agents additionally surface userInvocable. Instruction (rules)
|
|
25
|
+
* folders additionally accept `.mdc` files per the Open Plugins spec.
|
|
26
|
+
*/
|
|
27
|
+
private collectFromRegularDir;
|
|
28
|
+
/**
|
|
29
|
+
* Reads a prompt markdown file and returns selected frontmatter
|
|
30
|
+
* metadata. Returns `undefined` when the file is not markdown, or
|
|
31
|
+
* when it cannot be read/parsed.
|
|
32
|
+
*/
|
|
33
|
+
private readPromptMetadata;
|
|
34
|
+
}
|