@codingame/monaco-vscode-chat-service-override 38.1.2 → 39.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/common.js +46 -10
- package/index.js +5 -1
- package/package.json +6 -5
- package/session.js +9 -2
- package/vscode/src/vs/editor/common/diff/documentDiffProvider.d.ts +6 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostClientProxy.d.ts +37 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostClientProxy.js +120 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.d.ts +7 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.js +52 -22
- package/vscode/src/vs/platform/agentHost/browser/agentHostIpcChannelTransport.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/browser/agentHostIpcChannelTransport.js +2 -1
- package/vscode/src/vs/platform/agentHost/browser/nullWslRemoteAgentHostService.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/browser/nullWslRemoteAgentHostService.js +3 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +6 -6
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +78 -41
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.d.ts +2 -1
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.js +5 -1
- package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationConfig.d.ts +1 -8
- package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationConfig.js +11 -19
- package/vscode/src/vs/platform/agentHost/common/agentHostMcpOAuthMetadataService.d.ts +16 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostMcpOAuthMetadataService.js +85 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostOperatingSystem.js +9 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.js +169 -106
- package/vscode/src/vs/platform/agentHost/common/agentModelCatalogStatus.d.ts +4 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelCatalogStatus.js +15 -0
- package/vscode/src/vs/platform/agentHost/common/agentSessionMessage.d.ts +22 -0
- package/vscode/src/vs/platform/agentHost/common/agentSessionMessage.js +17 -0
- package/vscode/src/vs/platform/agentHost/common/artifactToolsConfiguration.d.ts +23 -0
- package/vscode/src/vs/platform/agentHost/common/artifactToolsConfiguration.js +33 -2
- package/vscode/src/vs/platform/agentHost/common/chatMoveConfiguration.d.ts +14 -0
- package/vscode/src/vs/platform/agentHost/common/chatMoveConfiguration.js +23 -0
- package/vscode/src/vs/platform/agentHost/common/codexAccountPlan.js +1 -0
- package/vscode/src/vs/platform/agentHost/common/copilotConfigSlashCommands.d.ts +3 -3
- package/vscode/src/vs/platform/agentHost/common/copilotConfigSlashCommands.js +8 -8
- package/vscode/src/vs/platform/agentHost/common/dynamicAutoTiersConfiguration.d.ts +12 -0
- package/vscode/src/vs/platform/agentHost/common/dynamicAutoTiersConfiguration.js +22 -0
- package/vscode/src/vs/platform/agentHost/common/imageGenerationConfiguration.d.ts +52 -0
- package/vscode/src/vs/platform/agentHost/common/imageGenerationConfiguration.js +67 -0
- package/vscode/src/vs/platform/agentHost/common/logRedaction.d.ts +45 -0
- package/vscode/src/vs/platform/agentHost/common/logRedaction.js +82 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCompletionAttachmentMeta.d.ts +2 -0
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentCompletionAttachmentMeta.d.ts +121 -0
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentCompletionAttachmentMeta.js +88 -0
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentPermissionResponseMeta.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentPermissionResponseMeta.js +8 -2
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentSandboxDiagnostics.d.ts +5 -0
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentSandboxDiagnostics.js +5 -1
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/customizationDiscoveryMeta.d.ts +12 -0
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/customizationDiscoveryMeta.js +24 -0
- package/vscode/src/vs/platform/agentHost/common/permissionRules.d.ts +58 -0
- package/vscode/src/vs/platform/agentHost/common/permissionRules.js +109 -0
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.d.ts +4 -1
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.js +41 -26
- package/vscode/src/vs/platform/agentHost/common/sessionDataService.d.ts +114 -8
- package/vscode/src/vs/platform/agentHost/common/sessionDataService.service.d.ts +7 -0
- package/vscode/src/vs/platform/agentHost/common/terminalPermissionRules.d.ts +21 -0
- package/vscode/src/vs/platform/agentHost/common/terminalPermissionRules.js +57 -0
- package/vscode/src/vs/platform/agentHost/common/titleGenerationConfiguration.js +3 -3
- package/vscode/src/vs/platform/agentHost/common/vscodeSandboxPaths.d.ts +2 -1
- package/vscode/src/vs/platform/agentHost/common/vscodeSandboxPaths.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/workspacelessScratchDir.d.ts +8 -0
- package/vscode/src/vs/platform/agentHost/common/workspacelessScratchDir.js +11 -0
- package/vscode/src/vs/platform/agentHost/common/wslRemoteAgentHost.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/wslRemoteAgentHost.js +1 -1
- package/vscode/src/vs/platform/artifactIntegrations/common/artifactIntegrationRegistry.d.ts +28 -0
- package/vscode/src/vs/platform/artifactIntegrations/common/artifactIntegrationRegistry.js +170 -0
- package/vscode/src/vs/platform/github/common/content/content.d.ts +136 -0
- package/vscode/src/vs/platform/github/common/content/content.js +12 -0
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +1 -1
- package/vscode/src/vs/platform/terminal/common/autoApprove/autoApproveEntryToRegex.d.ts +4 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/autoApproveEntryToRegex.js +41 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/autoApproveRuleKeyForm.d.ts +10 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/autoApproveRuleKeyForm.js +16 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/suggestAutoApproveRules.d.ts +5 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/suggestAutoApproveRules.js +64 -0
- package/vscode/src/vs/platform/url/common/urlApprovalPatterns.d.ts +36 -0
- package/vscode/src/vs/sessions/browser/parts/mobile/contributions/mobileDiffView.js +7 -7
- package/vscode/src/vs/sessions/browser/parts/mobile/contributions/mobileMultiDiffView.js +8 -8
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +19 -7
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +83 -46
- package/vscode/src/vs/sessions/contrib/chat/browser/branchChatSessionAction.js +2 -2
- package/vscode/src/vs/sessions/contrib/chat/browser/chat.contribution.js +312 -127
- package/vscode/src/vs/sessions/contrib/chat/browser/chatBackgroundTint.js +2 -2
- package/vscode/src/vs/sessions/contrib/chat/browser/getThemeColorsTool.d.ts +21 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/getThemeColorsTool.js +138 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/modelPicker.d.ts +68 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/modelPicker.js +302 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSessionAction.d.ts +3 -6
- package/vscode/src/vs/sessions/contrib/chat/browser/newSessionAction.js +42 -9
- package/vscode/src/vs/sessions/contrib/chat/browser/newSessionFolderQuickPickAction.js +4 -4
- package/vscode/src/vs/sessions/contrib/chat/browser/newSessionPickerTryout.js +1 -1
- package/vscode/src/vs/sessions/contrib/chat/browser/openSessionLinkOpener.contribution.d.ts +3 -2
- package/vscode/src/vs/sessions/contrib/chat/browser/openSessionLinkOpener.contribution.js +29 -18
- package/vscode/src/vs/sessions/contrib/chat/browser/promptsService.d.ts +2 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/promptsService.js +11 -1
- package/vscode/src/vs/sessions/contrib/chat/browser/runScriptAction.js +91 -98
- package/vscode/src/vs/sessions/contrib/chat/browser/runScriptCustomTaskWidget.js +21 -21
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionTurnChanges.js +5 -5
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.d.ts +2 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.js +511 -211
- package/vscode/src/vs/sessions/contrib/chat/browser/sharedChatInputComposer.contribution.d.ts +9 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sharedChatInputComposer.contribution.js +146 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sideChatOrchestration.d.ts +13 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sideChatOrchestration.js +14 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sideChatProvider.contribution.d.ts +3 -8
- package/vscode/src/vs/sessions/contrib/chat/browser/sideChatProvider.contribution.js +10 -8
- package/vscode/src/vs/sessions/contrib/extensions/browser/agentsWindowExtensionAutoEnablementTelemetry.d.ts +30 -0
- package/vscode/src/vs/sessions/contrib/extensions/browser/agentsWindowExtensionAutoEnablementTelemetry.js +178 -0
- package/vscode/src/vs/sessions/contrib/extensions/browser/agentsWindowExtensionsAccessibilityHelp.d.ts +10 -0
- package/vscode/src/vs/sessions/contrib/extensions/browser/agentsWindowExtensionsAccessibilityHelp.js +61 -0
- package/vscode/src/vs/sessions/contrib/extensions/browser/agentsWindowExtensionsWidget.d.ts +100 -0
- package/vscode/src/vs/sessions/contrib/extensions/browser/agentsWindowExtensionsWidget.js +687 -0
- package/vscode/src/vs/sessions/contrib/extensions/browser/extensions.contribution.d.ts +1 -0
- package/vscode/src/vs/sessions/contrib/extensions/browser/extensions.contribution.js +88 -0
- package/vscode/src/vs/sessions/contrib/extensions/browser/media/agentsWindowExtensions.css +182 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostAgentPicker.d.ts +57 -6
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostAgentPicker.js +94 -108
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostPolicyContinuationPresenter.d.ts +12 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostPolicyContinuationPresenter.js +48 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSettings.contribution.js +4 -4
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSettingsFileSystemProvider.js +4 -4
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentHostSettingsShared.js +3 -1
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentSessionSettings.contribution.js +2 -2
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/agentSessionSettingsFileSystemProvider.js +7 -7
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/localAgentHostSessionsProvider.d.ts +107 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/localAgentHostSessionsProvider.js +447 -0
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/mobile/mobileChatPhoneInputPresenter.js +15 -10
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/openAgentHostStateFileAction.js +1 -1
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/openSubagentChat.d.ts +2 -1
- package/vscode/src/vs/sessions/contrib/providers/agentHost/browser/openSubagentChat.js +92 -34
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/modePicker.js +12 -5
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/entryDrivenProviderContribution.d.ts +1 -0
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/entryDrivenProviderContribution.js +1 -0
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/hostFilter.contribution.js +1 -1
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/hostFilterActionViewItem.js +15 -15
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/manageRemoteAgentHosts.js +9 -9
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/managedReconnectAgentHostContribution.js +5 -0
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/missionControlAgentHostContribution.d.ts +1 -0
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/missionControlAgentHostContribution.js +39 -25
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/mobileHostFilterActionViewItem.js +13 -13
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHost.contribution.js +13 -13
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostActions.js +110 -145
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/tunnelAgentHost.contribution.js +2 -4
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/wslAgentHost.contribution.js +6 -2
- package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/media/sessionWorktreeCleanupEditor.css +118 -90
- package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionWorktreeCleanupAccessibilityHelp.d.ts +1 -1
- package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionWorktreeCleanupAccessibilityHelp.js +48 -13
- package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionWorktreeCleanupEditor.d.ts +89 -10
- package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionWorktreeCleanupEditor.js +1375 -182
- package/vscode/src/vs/sessions/contrib/sessionInputBanners/browser/sessionWorktreeCleanupEditorInput.js +1 -1
- package/vscode/src/vs/sessions/contrib/sessions/browser/mobile/mobileOverlayContribution.js +3 -3
- package/vscode/src/vs/sessions/services/agentHost/browser/agentHostCustomizationService.d.ts +3 -1
- package/vscode/src/vs/sessions/services/agentHost/browser/agentHostCustomizationService.js +30 -3
- package/vscode/src/vs/sessions/skills/all_/SKILL.md.js +4 -3
- package/vscode/src/vs/sessions/skills/generate-chat-background/SKILL.md +34 -0
- package/vscode/src/vs/sessions/skills/troubleshoot/SKILL.md +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatArtifactIntegrations.d.ts +30 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatArtifactIntegrations.js +484 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatDebug.d.ts +1 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatDebug.js +7 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.d.ts +1 -19
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.js +4 -80
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatPetJumpGameAccessibleView.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatPetJumpGameAccessibleView.js +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +30 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +23 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +513 -171
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +133 -124
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +83 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +110 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +3 -3
- 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 +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +12 -12
- 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/openAgentHostStateFileAction.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentHostCompletionAction.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentHostCompletionAction.js +73 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginCommands.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +11 -5
- 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.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +49 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationContentExpander.js +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.d.ts +10 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.js +235 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHost.contribution.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.js +71 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputState.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatMoveEditors.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatMoveEditors.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCopilotCliSettingsContribution.d.ts +9 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCopilotCliSettingsContribution.js +125 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationMarketplaceInstallProvider.d.ts +26 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationMarketplaceInstallProvider.js +493 -162
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostEditReview.d.ts +187 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostEditReview.js +1000 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostImportConversationStore.d.ts +3 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalModelSupport.d.ts +97 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalModelSupport.js +407 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpAppToolsService.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpAppToolsService.js +361 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerMigrationProvider.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerMigrationProvider.js +72 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostModeSynchronizer.js +1 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionMirror.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionMirror.js +51 -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/agentHostPolicyContinuation.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPolicyContinuation.js +377 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPolicyContinuationEditor.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPolicyContinuationEditor.js +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPolicyUnavailableSession.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPolicyUnavailableSession.js +109 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPromptCacheNotification.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRemoteByokNotification.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostResponseFileChanges.d.ts +24 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostResponseFileChanges.js +87 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRootConfigForwarder.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSandboxNotification.d.ts +48 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSandboxNotification.js +434 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSandboxNotifications.js +18 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSandboxPathGrant.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSandboxPathGrant.js +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.d.ts +134 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.js +1627 -491
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.d.ts +60 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.js +572 -133
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.js +65 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.d.ts +15 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.js +114 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.d.ts +27 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.js +105 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.js +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettings.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettingsFileSystemProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutCompatibilityContribution.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutCompatibilityContribution.js +54 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutModelsNotification.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutModelsNotification.js +6 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSteeringMessageHandoff.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSteeringMessageHandoff.js +138 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSubagentProgress.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSubagentProgress.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.js +70 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettings.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettingsFileSystemProvider.d.ts +13 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettingsFileSystemProvider.js +96 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSubmitConfig.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/codexContinuation.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/codexContinuationGuide.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/localModel.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/localModel.contribution.js +60 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/localModelActions.d.ts +61 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/localModelActions.js +476 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/localModelReadyNotification.d.ts +70 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/localModelReadyNotification.js +422 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/localModelSetupProgress.d.ts +108 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/localModelSetupProgress.js +744 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.js +36 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +21 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +112 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +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.d.ts +31 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +28 -26
- 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/agentSessionsConfiguration.js +40 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +115 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/copilotExtensionsService.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/copilotExtensionsService.js +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +39 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplace.contribution.js +28 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplaceInstallService.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplaceInstallService.js +159 -86
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationAccessibility.js +23 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.d.ts +20 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.js +281 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationsTelemetryService.js +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpServerCustomizationMigration.d.ts +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpServerCustomizationMigration.js +390 -112
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpServerEnvironmentVariables.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpServerEnvironmentVariables.js +298 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatReferenceAttachmentWidget.contribution.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/btwSlashCommand.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/btwSlashCommand.js +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +648 -652
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.d.ts +14 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.js +74 -57
- 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/chatDebugEditor.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +8 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEnablement.d.ts +3 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEnablement.js +6 -5
- 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.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugWireLogView.js +60 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +88 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +43 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +13 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +18 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +2 -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 +20 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatGoalSummaryService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatGoalSummaryService.js +21 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.d.ts +15 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +35 -21
- 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/chatNetworkConfiguration.js +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +31 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievements.contribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditor.js +54 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsWidget.js +34 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetColorsWidget.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatProgressConfiguration.d.ts +69 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatProgressConfiguration.js +164 -22
- 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/chatSessions/chatSessionCommit.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionCommit.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +25 -58
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSideChatProvider.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSideChatProvider.js +114 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +78 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusPromo.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusPromo.js +13 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/codexStatusEntry.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +22 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +52 -2
- 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/editorChatUsage.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/feedbackSurvey/chatHarnessSwitchFeedbackSurveyService.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/githubRepoFetcher.d.ts +5 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/githubRepoFetcher.js +40 -220
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatPetAchievements.css +81 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/onboarding/chatInputSpotlightTour.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/onboarding/chatInputSpotlightTour.js +248 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/onboarding/chatOnboardingEligibility.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/onboarding/chatOnboardingEligibility.js +54 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/onboarding/modelPickerTryout.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorOverlay.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.d.ts +6 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +128 -118
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitHubAuthentication.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitHubAuthentication.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +39 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +20 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.d.ts +26 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +216 -165
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileActions.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileActions.js +12 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileContributions.js +16 -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.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +14 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +7 -4
- 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 +8 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineModel.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineModel.js +36 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRulerRail.js +5 -2
- 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/remoteAgentHost/cloudSandboxRepositoryPicker.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxRepositoryPicker.js +106 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.d.ts +19 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.js +165 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.d.ts +57 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.js +511 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentActions.js +16 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHost.contribution.js +137 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostAuthenticationResolver.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostAuthenticationResolver.js +136 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostChatContribution.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostChatContribution.js +155 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostCustomizationHarness.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostCustomizationHarness.js +16 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.js +32 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +78 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +9 -9
- 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/widget/chatFind/chatFindAccessibilityHelp.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatPetWidgetService.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatPetWidgetService.js +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +2 -3
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCommandArgumentHint.d.ts +47 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCommandArgumentHint.js +139 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +89 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +18 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputPlaceholderDecoration.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputPlaceholderDecoration.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputSessionLinkProvider.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputSessionLinkProvider.js +82 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +134 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/media/chatEditor.css +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +13 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +172 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatOpenDiagnosticsService.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatOpenDiagnosticsService.js +103 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +59 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +481 -271
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/remoteChatSessionRestorer.d.ts +148 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/remoteChatSessionRestorer.js +575 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSideChatService.d.ts +13 -17
- package/vscode/src/vs/workbench/contrib/chat/common/chatSideChatService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatThinkingTitleService.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatThinkingTitleService.js +176 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatUtilityModelService.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatUtilityModelService.js +190 -0
- package/vscode/src/vs/workbench/contrib/chat/common/customizationMarketplaceInstallService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/customizationMarketplaceInstallService.js +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/editing/chatSessionReviewPreferences.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/editing/chatSessionReviewPreferences.js +25 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +17 -18
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +27 -6
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +21 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +26 -13
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +80 -52
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +57 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +27 -15
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +27 -11
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +383 -51
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +211 -32
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptModelResolver.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptModelResolver.js +77 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptSkillResolver.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptSkillResolver.js +87 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptToolResolver.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptToolResolver.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +26 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +816 -195
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/customizationMigrationTelemetryService.d.ts +10 -11
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/customizationMigrationTelemetryService.js +135 -95
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +1 -10
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +13 -98
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +70 -73
- 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.d.ts +15 -19
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +122 -202
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselTypes.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/media/imageCarousel.css +19 -50
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditReviewSession.js +3 -2
- 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/terminalChatService.d.ts +1 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +2 -43
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +15 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +42 -96
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +5 -4
- 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 +22 -13
- 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 +76 -75
- 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/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.d.ts +20 -3
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.js +56 -14
- package/vscode/src/vs/workbench/services/agentHost/browser/localModelService.d.ts +52 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/localModelService.js +294 -0
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentCustomizationMeta.d.ts +0 -27
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentCustomizationMeta.js +0 -14
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/clientPluginCustomizationMeta.d.ts +0 -17
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/clientPluginCustomizationMeta.js +0 -22
- package/vscode/src/vs/platform/agentHost/common/semanticSearchConstants.d.ts +0 -8
- package/vscode/src/vs/platform/agentHost/common/semanticSearchConstants.js +0 -8
- package/vscode/src/vs/platform/browserView/common/browserChatToolReferenceNames.d.ts +0 -23
- package/vscode/src/vs/platform/browserView/common/browserChatToolReferenceNames.js +0 -17
- package/vscode/src/vs/platform/customizationMarketplace/common/mcpGalleryMarketplaceProvider.d.ts +0 -22
- package/vscode/src/vs/platform/customizationMarketplace/common/mcpGalleryMarketplaceProvider.js +0 -158
- package/vscode/src/vs/sessions/contrib/chat/browser/btwSlashCommand.contribution.d.ts +0 -15
- package/vscode/src/vs/sessions/contrib/chat/browser/btwSlashCommand.contribution.js +0 -106
- package/vscode/src/vs/sessions/contrib/chat/browser/unifiedWorkspacePickerConfiguration.d.ts +0 -3
- package/vscode/src/vs/sessions/contrib/chat/browser/unifiedWorkspacePickerConfiguration.js +0 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationSyncProvider.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationSyncProvider.js +0 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.js +0 -441
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAllowSignedOutWhenUsableContribution.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAllowSignedOutWhenUsableContribution.js +0 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.d.ts +0 -97
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.js +0 -241
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupport.d.ts +0 -141
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupport.js +0 -731
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupportScope.d.ts +0 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupportScope.js +0 -313
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolUtils.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolUtils.js +0 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSessionConfig.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSessionConfig.js +0 -58
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.d.ts +0 -140
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.js +0 -358
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/copilotConnectorsService.d.ts +0 -139
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/copilotConnectorsService.js +0 -944
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplaceWorkbenchService.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMarketplaceWorkbenchService.js +0 -213
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/githubMcpRegistryIcons.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/githubMcpRegistryIcons.js +0 -605
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.js +0 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostConnectionCustomization.d.ts +0 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostConnectionCustomization.js +0 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +0 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +0 -261
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +0 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +0 -72
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.js +0 -12
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.d.ts +0 -35
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.js +0 -36
- package/vscode/src/vs/workbench/services/agentHost/common/editorRemoteAgentHostTransport.d.ts +0 -47
- package/vscode/src/vs/workbench/services/agentHost/common/editorRemoteAgentHostTransport.js +0 -362
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { cancelOnDispose, CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
4
|
+
import { equals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
4
5
|
import { getErrorMessage, CancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
5
6
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
7
|
import { Disposable, DisposableStore, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
@@ -8,10 +9,10 @@ import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/in
|
|
|
8
9
|
import { isWeb } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
9
10
|
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
10
11
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
|
-
import {
|
|
12
|
+
import { normalizePluginPath, PLUGIN_MANIFEST_PATHS } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentPlugins/common/pluginParsers';
|
|
12
13
|
import { getCustomizationMarketplaceResourceKey, isCustomizationMarketplaceIconEqual, CustomizationMarketplaceMediaType } from '@codingame/monaco-vscode-api/vscode/vs/platform/customizationMarketplace/common/customizationMarketplaceService';
|
|
13
14
|
import { ICustomizationMarketplaceService } from '@codingame/monaco-vscode-api/vscode/vs/platform/customizationMarketplace/common/customizationMarketplaceService.service';
|
|
14
|
-
import { normalizeMcpGalleryUrl } from '
|
|
15
|
+
import { normalizeMcpGalleryUrl } from '@codingame/monaco-vscode-api/vscode/vs/platform/customizationMarketplace/common/mcpGalleryMarketplaceProvider';
|
|
15
16
|
import { affectsCustomizationMarketplaceSources, CustomizationMarketplaceConfiguration, getVisibleCustomizationMarketplaceSources, CustomizationMarketplaceSources } from '@codingame/monaco-vscode-api/vscode/vs/platform/customizationMarketplace/common/customizationMarketplaceSources';
|
|
16
17
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
17
18
|
import { toFileOperationResult, FileOperationResult } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
@@ -30,12 +31,12 @@ import { runCustomizationMarketplaceInstallWithTelemetry, getCustomizationMarket
|
|
|
30
31
|
import { ICustomizationHarnessService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/customizationHarnessService.service';
|
|
31
32
|
import { IAgentPluginService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginService.service';
|
|
32
33
|
import { IPluginInstallService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service';
|
|
33
|
-
import { parseMarketplaceReference } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/marketplaceReference';
|
|
34
|
+
import { parseMarketplaceReference, parseProviderMarketplaceReference } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/marketplaceReference';
|
|
34
35
|
import { IPluginMarketplaceService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service';
|
|
35
36
|
import { getConnectorRowPresentation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/aiCustomization/connectorPresentation';
|
|
36
|
-
import { toCopilotConnectorMarketplaceEntry } from '
|
|
37
|
+
import { toCopilotConnectorMarketplaceEntry, CopilotConnectorsError } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/aiCustomization/copilotConnectorsService';
|
|
37
38
|
import { ICopilotConnectorsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/aiCustomization/copilotConnectorsService.service';
|
|
38
|
-
import { getGitHubMcpRegistryResourceIdentity, getGitHubMcpRegistryIdentity } from '
|
|
39
|
+
import { getGitHubMcpRegistryResourceIdentity, getGitHubMcpRegistryIdentity } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/aiCustomization/githubMcpRegistryIcons';
|
|
39
40
|
import { getPluginCustomizationMarketplaceSourceIdFromIdentifier, getPluginMarketplaceIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/aiCustomization/pluginCustomizationMarketplaceProvider';
|
|
40
41
|
import { removeLegacyCustomizationMarketplaceInstallationRecords, CustomizationMarketplaceInstallationAssociationCache, toAssociatedMarketplaceResource, getInstallationAssociationResourceKey } from './customizationMarketplaceInstallationAssociation.js';
|
|
41
42
|
import { observableFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableFromEvent';
|
|
@@ -111,9 +112,10 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
111
112
|
);
|
|
112
113
|
}
|
|
113
114
|
this._register(autorun(reader => {
|
|
114
|
-
this.harnessService.
|
|
115
|
-
this.harnessService.activeSessionResource.read(reader);
|
|
116
|
-
this.
|
|
115
|
+
this.harnessService.availableHarnesses.read(reader);
|
|
116
|
+
const sessionResource = this.harnessService.activeSessionResource.read(reader);
|
|
117
|
+
const descriptor = this.harnessService.getDescriptorForSession(sessionResource);
|
|
118
|
+
this.bindInstallProvider(sessionResource, descriptor?.marketplaceInstallProvider);
|
|
117
119
|
}));
|
|
118
120
|
this.updateEnablement();
|
|
119
121
|
}
|
|
@@ -141,24 +143,27 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
141
143
|
(recorded, resource) => this.isLegacyConfiguredPluginResource(recorded, resource)
|
|
142
144
|
);
|
|
143
145
|
}
|
|
144
|
-
bindInstallProvider() {
|
|
146
|
+
bindInstallProvider(session, provider) {
|
|
145
147
|
this.providerRequest.clear();
|
|
148
|
+
const providerChanged = this.providerBinding?.provider !== provider || !isEqual(this.providerBinding?.session, session);
|
|
146
149
|
const hadInstallations = this.providerInstallations.length > 0;
|
|
147
150
|
this.providerInstallations = [];
|
|
148
|
-
if (hadInstallations) {
|
|
149
|
-
this.emitChange();
|
|
150
|
-
}
|
|
151
|
-
const provider = this.harnessService.getActiveDescriptor().marketplaceInstallProvider;
|
|
152
151
|
if (!provider) {
|
|
153
152
|
this.providerBinding = undefined;
|
|
153
|
+
if (hadInstallations || providerChanged) {
|
|
154
|
+
this.emitChange();
|
|
155
|
+
}
|
|
154
156
|
return;
|
|
155
157
|
}
|
|
156
158
|
const binding = {
|
|
157
159
|
provider,
|
|
158
|
-
session
|
|
160
|
+
session,
|
|
159
161
|
refreshVersion: 0
|
|
160
162
|
};
|
|
161
163
|
this.providerBinding = binding;
|
|
164
|
+
if (hadInstallations || providerChanged) {
|
|
165
|
+
this.emitChange();
|
|
166
|
+
}
|
|
162
167
|
const store = ( new DisposableStore());
|
|
163
168
|
this.providerRequest.value = store;
|
|
164
169
|
store.add(
|
|
@@ -175,6 +180,9 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
175
180
|
if (binding !== this.providerBinding || refreshVersion !== binding.refreshVersion || cancellation.token.isCancellationRequested || this._store.isDisposed) {
|
|
176
181
|
return;
|
|
177
182
|
}
|
|
183
|
+
if (JSON.stringify(installations) === JSON.stringify(this.providerInstallations)) {
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
178
186
|
this.providerInstallations = installations;
|
|
179
187
|
this.emitChange();
|
|
180
188
|
} catch (error) {
|
|
@@ -191,7 +199,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
191
199
|
rememberResource(resource) {
|
|
192
200
|
const key = getCustomizationMarketplaceResourceKey(resource);
|
|
193
201
|
const previous = this.knownResources.get(key);
|
|
194
|
-
if (previous && isCustomizationMarketplaceIconEqual(previous.icon, resource.icon)) {
|
|
202
|
+
if (previous && isCustomizationMarketplaceIconEqual(previous.icon, resource.icon) && equals(previous.tags, resource.tags) && equals(previous.compatibilityTags ?? [], resource.compatibilityTags ?? []) && previous.installCount === resource.installCount) {
|
|
195
203
|
return;
|
|
196
204
|
}
|
|
197
205
|
this.knownResources.set(key, resource);
|
|
@@ -214,7 +222,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
214
222
|
const resourceKey = getCustomizationMarketplaceResourceKey(resource);
|
|
215
223
|
let exactResource;
|
|
216
224
|
for (const candidate of ( this.knownResources.values())) {
|
|
217
|
-
if (!this.matchesProviderInstallation(resource, candidate)) {
|
|
225
|
+
if (!this.matchesProviderInstallation(resource, candidate) || this.findProviderInstallation(candidate)?.resource !== resource) {
|
|
218
226
|
continue;
|
|
219
227
|
}
|
|
220
228
|
if (getCustomizationMarketplaceResourceKey(candidate) !== resourceKey) {
|
|
@@ -228,6 +236,12 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
228
236
|
if (getCustomizationMarketplaceResourceKey(installed) === getCustomizationMarketplaceResourceKey(resource)) {
|
|
229
237
|
return true;
|
|
230
238
|
}
|
|
239
|
+
if (installed.mediaType !== resource.mediaType) {
|
|
240
|
+
return false;
|
|
241
|
+
}
|
|
242
|
+
if (installed.installation?.kind === "configuredPlugin" && resource.installation?.kind === "providerCatalog") {
|
|
243
|
+
return false;
|
|
244
|
+
}
|
|
231
245
|
const versionsCompatible = installed.version === undefined || resource.version === undefined || installed.version === resource.version;
|
|
232
246
|
if (versionsCompatible && installed.externalUrl && resource.externalUrl && installed.externalUrl === resource.externalUrl) {
|
|
233
247
|
return true;
|
|
@@ -245,11 +259,36 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
245
259
|
if (installedSource?.kind === "plugin" && resourceSource?.kind === "plugin") {
|
|
246
260
|
return installedSource.repository.toLowerCase() === resourceSource.repository.toLowerCase() && installedSource.path === resourceSource.path && installedSource.ref === resourceSource.ref && versionsCompatible;
|
|
247
261
|
}
|
|
262
|
+
if (installedSource?.kind === "plugin" && resourceSource?.kind === "providerCatalog" && resourceSource.resourceKind === "plugin" && resourceSource.repository) {
|
|
263
|
+
return installedSource.repository.toLowerCase() === resourceSource.repository.toLowerCase() && normalizePluginPath(installedSource.path) === getCatalogPluginRoot(resourceSource.path) && (resource.version === undefined || installed.version === resource.version);
|
|
264
|
+
}
|
|
265
|
+
if (!installedSource && resourceSource?.kind === "mcpGallery" && installed.mediaType === CustomizationMarketplaceMediaType.McpServer) {
|
|
266
|
+
return installed.identifier === resourceSource.name;
|
|
267
|
+
}
|
|
248
268
|
return false;
|
|
249
269
|
}
|
|
270
|
+
findProviderInstallation(resource) {
|
|
271
|
+
const key = getCustomizationMarketplaceResourceKey(resource);
|
|
272
|
+
const exactMatches = this.providerInstallations.filter(
|
|
273
|
+
installation => getCustomizationMarketplaceResourceKey(installation.resource) === key
|
|
274
|
+
);
|
|
275
|
+
const matches = exactMatches.length ? exactMatches : this.providerInstallations.filter(
|
|
276
|
+
installation => this.matchesProviderInstallation(installation.resource, resource)
|
|
277
|
+
);
|
|
278
|
+
return matches.length === 1 ? matches[0] : undefined;
|
|
279
|
+
}
|
|
280
|
+
findInstallation(resource) {
|
|
281
|
+
const providerInstallation = this.findProviderInstallation(resource);
|
|
282
|
+
if (providerInstallation || ( this.providerInstallations.some(
|
|
283
|
+
installation => this.matchesProviderInstallation(installation.resource, resource)
|
|
284
|
+
))) {
|
|
285
|
+
return providerInstallation;
|
|
286
|
+
}
|
|
287
|
+
return this.installations.get().findByResource(resource);
|
|
288
|
+
}
|
|
250
289
|
getGitHubMcpRegistryIdentity(resource) {
|
|
251
290
|
const installation = resource.installation;
|
|
252
|
-
const itemUrl = installation?.kind === "providerCatalog" ? installation.itemUrl : undefined;
|
|
291
|
+
const itemUrl = installation?.kind === "providerCatalog" ? installation.itemUrl : installation?.kind === "mcpGallery" ? installation.cardUrl : undefined;
|
|
253
292
|
return getGitHubMcpRegistryResourceIdentity(resource.identifier)?.toLowerCase() ?? getGitHubMcpRegistryIdentity(
|
|
254
293
|
itemUrl ?? resource.externalUrl ?? resource.url?.toString(true) ?? resource.identifier
|
|
255
294
|
)?.toLowerCase();
|
|
@@ -392,7 +431,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
392
431
|
async createConnectorRecord(resource, account, existingId) {
|
|
393
432
|
const installation = resource.installation;
|
|
394
433
|
if (installation?.kind !== "copilotConnector") {
|
|
395
|
-
throw ( new Error(( localize(
|
|
434
|
+
throw ( new Error(( localize(12724, "Copilot connector installation metadata is unavailable."))));
|
|
396
435
|
}
|
|
397
436
|
return {
|
|
398
437
|
id: existingId ?? (await createInstallationRecordId([
|
|
@@ -537,7 +576,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
537
576
|
state = {
|
|
538
577
|
kind: "error",
|
|
539
578
|
message: ( localize(
|
|
540
|
-
|
|
579
|
+
12725,
|
|
541
580
|
"Could not verify this customization installation. {0}",
|
|
542
581
|
getErrorMessage(error)
|
|
543
582
|
))
|
|
@@ -560,39 +599,39 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
560
599
|
const source = (this.customizationMarketplaceService.allSources ?? this.customizationMarketplaceService.sources).find(candidate => candidate.id === sourceId);
|
|
561
600
|
if (!source) {
|
|
562
601
|
return localize(
|
|
563
|
-
|
|
602
|
+
12726,
|
|
564
603
|
"This resource's marketplace source is no longer available, so it cannot be repaired."
|
|
565
604
|
);
|
|
566
605
|
}
|
|
567
|
-
return this.configurationService.getValue(source.enablementSetting) === true ? undefined : ( localize(
|
|
606
|
+
return this.configurationService.getValue(source.enablementSetting) === true ? undefined : ( localize(12727, "Enable this resource's marketplace source to install it."));
|
|
568
607
|
}
|
|
569
608
|
getRepairUnavailableMessage(record) {
|
|
570
609
|
if (!this.configurationService.getValue(CustomizationMarketplaceConfiguration.MarketplaceEnabled)) {
|
|
571
|
-
return localize(
|
|
610
|
+
return localize(12728, "Enable the customization marketplace to install this resource.");
|
|
572
611
|
}
|
|
573
612
|
const sourceUnavailableMessage = this.getSourceUnavailableMessage(this.getRecordSourceId(record));
|
|
574
613
|
if (sourceUnavailableMessage) {
|
|
575
614
|
return sourceUnavailableMessage;
|
|
576
615
|
}
|
|
577
616
|
if (this.entitlementService.sentiment.hidden) {
|
|
578
|
-
return localize(
|
|
617
|
+
return localize(12729, "Enable AI features to install customizations.");
|
|
579
618
|
}
|
|
580
619
|
if ((record.installation.kind === "plugin" || record.installation.kind === "configuredPlugin") && !this.configurationService.getValue(ChatConfiguration.PluginsEnabled)) {
|
|
581
|
-
return localize(
|
|
620
|
+
return localize(12730, "Enable agent plugins to install this resource.");
|
|
582
621
|
}
|
|
583
622
|
if (record.target.kind === "copilotConnector") {
|
|
584
623
|
const target = record.target;
|
|
585
624
|
const connector = this.copilotConnectorsService.connectors.find(candidate => candidate.name === target.name);
|
|
586
625
|
if (!connector) {
|
|
587
626
|
return localize(
|
|
588
|
-
|
|
627
|
+
12731,
|
|
589
628
|
"This connector is no longer available from the Copilot Connectors catalog."
|
|
590
629
|
);
|
|
591
630
|
}
|
|
592
631
|
const presentation = getConnectorRowPresentation(connector);
|
|
593
632
|
if (connector.connectionStatus !== "connected" && !presentation.action) {
|
|
594
633
|
return localize(
|
|
595
|
-
|
|
634
|
+
12732,
|
|
596
635
|
"This connector cannot be reconnected while its status is '{0}'.",
|
|
597
636
|
presentation.statusLabel
|
|
598
637
|
);
|
|
@@ -640,17 +679,26 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
640
679
|
return {
|
|
641
680
|
kind: "unavailable",
|
|
642
681
|
message: ( localize(
|
|
643
|
-
|
|
682
|
+
12733,
|
|
644
683
|
"Enable the Copilot connectors experiment to connect this resource."
|
|
645
684
|
))
|
|
646
685
|
};
|
|
647
686
|
}
|
|
648
|
-
const providerInstallation = this.
|
|
649
|
-
installation => this.matchesProviderInstallation(installation.resource, resource)
|
|
650
|
-
);
|
|
687
|
+
const providerInstallation = this.findProviderInstallation(resource);
|
|
651
688
|
if (providerInstallation) {
|
|
652
689
|
return this.getProviderInstallState(providerInstallation);
|
|
653
690
|
}
|
|
691
|
+
if (( this.providerInstallations.some(
|
|
692
|
+
installation => this.matchesProviderInstallation(installation.resource, resource)
|
|
693
|
+
))) {
|
|
694
|
+
return {
|
|
695
|
+
kind: "unavailable",
|
|
696
|
+
message: ( localize(
|
|
697
|
+
12734,
|
|
698
|
+
"Multiple installations match this catalog item. Manage each installed plugin separately."
|
|
699
|
+
))
|
|
700
|
+
};
|
|
701
|
+
}
|
|
654
702
|
const providerBinding = this.getInstallProviderBinding(resource);
|
|
655
703
|
const ownerAssociation = this.findRecord(resource);
|
|
656
704
|
if (ownerAssociation?.id.startsWith("owner:") && !this.isOwnerAssociationCurrent(resource, ownerAssociation)) {
|
|
@@ -664,7 +712,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
664
712
|
if (!this.configurationService.getValue(CustomizationMarketplaceConfiguration.MarketplaceEnabled)) {
|
|
665
713
|
return {
|
|
666
714
|
kind: "unavailable",
|
|
667
|
-
message: ( localize(
|
|
715
|
+
message: ( localize(12728, "Enable the customization marketplace to install this resource."))
|
|
668
716
|
};
|
|
669
717
|
}
|
|
670
718
|
const sourceUnavailableMessage = this.getSourceUnavailableMessage(resource.sourceId);
|
|
@@ -677,7 +725,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
677
725
|
if (this.entitlementService.sentiment.hidden) {
|
|
678
726
|
return {
|
|
679
727
|
kind: "unavailable",
|
|
680
|
-
message: ( localize(
|
|
728
|
+
message: ( localize(12729, "Enable AI features to install customizations."))
|
|
681
729
|
};
|
|
682
730
|
}
|
|
683
731
|
const operationKey = resource.installation?.kind === "copilotConnector" ? getConnectorOperationKey(resource) : getCustomizationMarketplaceResourceKey(resource);
|
|
@@ -699,7 +747,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
699
747
|
return {
|
|
700
748
|
kind: "unavailable",
|
|
701
749
|
message: ( localize(
|
|
702
|
-
|
|
750
|
+
12735,
|
|
703
751
|
"Installing configured marketplace plugins is not available in VS Code for the Web."
|
|
704
752
|
))
|
|
705
753
|
};
|
|
@@ -707,7 +755,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
707
755
|
if (!this.configurationService.getValue(ChatConfiguration.PluginsEnabled)) {
|
|
708
756
|
return {
|
|
709
757
|
kind: "unavailable",
|
|
710
|
-
message: ( localize(
|
|
758
|
+
message: ( localize(12730, "Enable agent plugins to install this resource."))
|
|
711
759
|
};
|
|
712
760
|
}
|
|
713
761
|
const installed = providerBinding ? undefined : this.pluginMarketplaceService.installedPlugins.get().find((
|
|
@@ -734,23 +782,23 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
734
782
|
return {
|
|
735
783
|
kind: "unavailable",
|
|
736
784
|
message: resource.mediaType === CustomizationMarketplaceMediaType.CursorPlugin ? ( localize(
|
|
737
|
-
|
|
785
|
+
12736,
|
|
738
786
|
"Cursor plugins cannot be installed in VS Code. Open the resource to view its installation instructions."
|
|
739
|
-
)) : ( localize(
|
|
787
|
+
)) : ( localize(12737, "This resource does not provide a supported installation source."))
|
|
740
788
|
};
|
|
741
789
|
}
|
|
742
790
|
if (source.kind === "skill" || source.kind === "mcp" || source.kind === "plugin" || source.kind === "providerPlugin" || source.kind === "providerCatalog") {
|
|
743
|
-
if ((source.kind === "plugin" || source.kind === "providerPlugin") && !this.configurationService.getValue(ChatConfiguration.PluginsEnabled)) {
|
|
791
|
+
if ((source.kind === "plugin" || source.kind === "providerPlugin" || source.kind === "providerCatalog" && source.resourceKind === "plugin") && !this.configurationService.getValue(ChatConfiguration.PluginsEnabled)) {
|
|
744
792
|
return {
|
|
745
793
|
kind: "unavailable",
|
|
746
|
-
message: ( localize(
|
|
794
|
+
message: ( localize(12730, "Enable agent plugins to install this resource."))
|
|
747
795
|
};
|
|
748
796
|
}
|
|
749
797
|
return providerBinding ? {
|
|
750
798
|
kind: "available"
|
|
751
799
|
} : {
|
|
752
800
|
kind: "unavailable",
|
|
753
|
-
message: ( localize(
|
|
801
|
+
message: ( localize(12738, "The active agent cannot install this catalog resource."))
|
|
754
802
|
};
|
|
755
803
|
}
|
|
756
804
|
if (source.kind === "copilotConnector") {
|
|
@@ -768,7 +816,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
768
816
|
return {
|
|
769
817
|
kind: "unavailable",
|
|
770
818
|
message: ( localize(
|
|
771
|
-
|
|
819
|
+
12733,
|
|
772
820
|
"Enable the Copilot connectors experiment to connect this resource."
|
|
773
821
|
))
|
|
774
822
|
};
|
|
@@ -778,8 +826,8 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
778
826
|
return {
|
|
779
827
|
kind: "unavailable",
|
|
780
828
|
message: ( localize(
|
|
781
|
-
|
|
782
|
-
"This connector is no longer available. Refresh
|
|
829
|
+
12739,
|
|
830
|
+
"This connector is no longer available. Refresh Browse and try again."
|
|
783
831
|
))
|
|
784
832
|
};
|
|
785
833
|
}
|
|
@@ -795,7 +843,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
795
843
|
} : {
|
|
796
844
|
kind: "unavailable",
|
|
797
845
|
message: ( localize(
|
|
798
|
-
|
|
846
|
+
12740,
|
|
799
847
|
"This connector cannot be connected while its status is '{0}'. Refresh and try again.",
|
|
800
848
|
presentation.statusLabel
|
|
801
849
|
))
|
|
@@ -806,12 +854,17 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
806
854
|
return {
|
|
807
855
|
kind: "unavailable",
|
|
808
856
|
message: ( localize(
|
|
809
|
-
|
|
810
|
-
"The MCP registry changed after '{0}' was discovered. Refresh
|
|
857
|
+
12741,
|
|
858
|
+
"The MCP registry changed after '{0}' was discovered. Refresh Browse and try again.",
|
|
811
859
|
source.name
|
|
812
860
|
))
|
|
813
861
|
};
|
|
814
862
|
}
|
|
863
|
+
if (providerBinding) {
|
|
864
|
+
return {
|
|
865
|
+
kind: "available"
|
|
866
|
+
};
|
|
867
|
+
}
|
|
815
868
|
const installed = this.getInstalledGalleryMcpServer(source);
|
|
816
869
|
if (installed) {
|
|
817
870
|
const target = {
|
|
@@ -866,12 +919,12 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
866
919
|
const binding = this.providerBinding;
|
|
867
920
|
const provider = binding?.provider;
|
|
868
921
|
const kind = resource.installation?.kind;
|
|
869
|
-
return binding && provider && (kind === "skill" || kind === "mcp" || kind === "plugin" || kind === "configuredPlugin" || kind === "providerPlugin" || kind === "providerCatalog" || ( this.providerInstallations.some(
|
|
922
|
+
return binding && provider && (kind === "skill" || kind === "mcp" || kind === "mcpGallery" || kind === "plugin" || kind === "configuredPlugin" || kind === "providerPlugin" || kind === "providerCatalog" || ( this.providerInstallations.some(
|
|
870
923
|
installation => this.matchesProviderInstallation(installation.resource, resource)
|
|
871
924
|
))) ? binding : undefined;
|
|
872
925
|
}
|
|
873
926
|
isProviderManagedInstallation(installation) {
|
|
874
|
-
return !!this.providerBinding && (installation.kind === "skill" || installation.kind === "mcp" || installation.kind === "plugin" || installation.kind === "configuredPlugin" || installation.kind === "providerPlugin" || installation.kind === "providerCatalog");
|
|
927
|
+
return !!this.providerBinding && (installation.kind === "skill" || installation.kind === "mcp" || installation.kind === "mcpGallery" || installation.kind === "plugin" || installation.kind === "configuredPlugin" || installation.kind === "providerPlugin" || installation.kind === "providerCatalog");
|
|
875
928
|
}
|
|
876
929
|
associateInstalledResource(resource, target) {
|
|
877
930
|
if (!resource.installation) {
|
|
@@ -907,7 +960,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
907
960
|
});
|
|
908
961
|
}
|
|
909
962
|
}
|
|
910
|
-
async install(resource) {
|
|
963
|
+
async install(resource, origin = "search") {
|
|
911
964
|
const state = this.getInstallState(resource);
|
|
912
965
|
if (state.kind === "unavailable") {
|
|
913
966
|
throw ( new Error(state.message));
|
|
@@ -924,7 +977,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
924
977
|
const providerBinding = this.getInstallProviderBinding(resource);
|
|
925
978
|
const operationDisposables = ( new DisposableStore());
|
|
926
979
|
const token = cancelOnDispose(operationDisposables);
|
|
927
|
-
const requiresMarketplaceTrust = resource.installation?.kind === "configuredPlugin" || resource.installation?.kind === "providerPlugin";
|
|
980
|
+
const requiresMarketplaceTrust = resource.installation?.kind === "configuredPlugin" || resource.installation?.kind === "providerPlugin" && resource.installation.providerManaged !== true;
|
|
928
981
|
operationDisposables.add(
|
|
929
982
|
this.lifetimeToken.onCancellationRequested(() => operationDisposables.dispose())
|
|
930
983
|
);
|
|
@@ -933,17 +986,24 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
933
986
|
this.pluginMarketplaceService.onDidChangeMarketplaces(() => operationDisposables.dispose())
|
|
934
987
|
);
|
|
935
988
|
}
|
|
989
|
+
if (this.customizationMarketplaceService.onDidChangeSources) {
|
|
990
|
+
operationDisposables.add(this.customizationMarketplaceService.onDidChangeSources(() => {
|
|
991
|
+
if (!this.isSourceEnabled(resource.sourceId)) {
|
|
992
|
+
operationDisposables.dispose();
|
|
993
|
+
}
|
|
994
|
+
}));
|
|
995
|
+
}
|
|
936
996
|
operationDisposables.add(this.configurationService.onDidChangeConfiguration(event => {
|
|
937
|
-
if (!this.isSourceEnabled(resource.sourceId) || (
|
|
997
|
+
if (!this.isSourceEnabled(resource.sourceId) || (resource.installation?.kind === "mcpGallery" && resource.installation.registry === "custom" && event.affectsConfiguration(mcpGalleryServiceUrlConfig))) {
|
|
938
998
|
operationDisposables.dispose();
|
|
939
999
|
}
|
|
940
1000
|
}));
|
|
941
1001
|
const operation = runCustomizationMarketplaceInstallWithTelemetry(
|
|
942
1002
|
this.telemetryService,
|
|
943
|
-
getCustomizationMarketplaceInstallTelemetryContext("marketplace", resource.installation),
|
|
1003
|
+
getCustomizationMarketplaceInstallTelemetryContext("marketplace", resource.installation, origin),
|
|
944
1004
|
async () => {
|
|
945
1005
|
if (providerBinding) {
|
|
946
|
-
if (
|
|
1006
|
+
if (requiresMarketplaceTrust) {
|
|
947
1007
|
const marketplaceReference = resource.installation.kind === "configuredPlugin" ? (await this.resolveConfiguredPlugin(resource, token)).marketplaceReference : this.resolveProviderPluginMarketplaceReference(resource);
|
|
948
1008
|
if (!(await this.pluginInstallService.ensureMarketplaceTrusted(marketplaceReference, token))) {
|
|
949
1009
|
throw ( new CancellationError());
|
|
@@ -968,7 +1028,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
968
1028
|
const account = this.copilotConnectorsService.account;
|
|
969
1029
|
if (!account) {
|
|
970
1030
|
throw ( new Error(( localize(
|
|
971
|
-
|
|
1031
|
+
12742,
|
|
972
1032
|
"The GitHub account used to connect this resource is no longer available."
|
|
973
1033
|
))));
|
|
974
1034
|
}
|
|
@@ -1000,9 +1060,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1000
1060
|
}
|
|
1001
1061
|
async repair(resource) {
|
|
1002
1062
|
const providerBinding = this.getInstallProviderBinding(resource);
|
|
1003
|
-
const providerInstallation = providerBinding ? this.
|
|
1004
|
-
installation => this.matchesProviderInstallation(installation.resource, resource)
|
|
1005
|
-
) : undefined;
|
|
1063
|
+
const providerInstallation = providerBinding ? this.findProviderInstallation(resource) : undefined;
|
|
1006
1064
|
if (providerBinding && providerInstallation) {
|
|
1007
1065
|
if (providerInstallation.state.kind !== "missing" && providerInstallation.state.kind !== "error") {
|
|
1008
1066
|
return;
|
|
@@ -1068,10 +1126,10 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1068
1126
|
await this.reconcileRecords([repaired]);
|
|
1069
1127
|
if (this.recordStates.get(record.id)?.kind !== "installed") {
|
|
1070
1128
|
throw ( new Error(record.target.kind === "copilotConnector" ? ( localize(
|
|
1071
|
-
|
|
1129
|
+
12743,
|
|
1072
1130
|
"The connector could not be reconnected. Refresh its status and try again."
|
|
1073
1131
|
)) : ( localize(
|
|
1074
|
-
|
|
1132
|
+
12744,
|
|
1075
1133
|
"The customization could not be fully repaired. Review the installation and try again."
|
|
1076
1134
|
))));
|
|
1077
1135
|
}
|
|
@@ -1106,10 +1164,11 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1106
1164
|
}
|
|
1107
1165
|
async uninstall(resource) {
|
|
1108
1166
|
const providerBinding = this.getInstallProviderBinding(resource);
|
|
1109
|
-
const providerInstallation = providerBinding ? this.
|
|
1110
|
-
installation => this.matchesProviderInstallation(installation.resource, resource)
|
|
1111
|
-
) : undefined;
|
|
1167
|
+
const providerInstallation = providerBinding ? this.findProviderInstallation(resource) : undefined;
|
|
1112
1168
|
if (providerBinding && providerInstallation) {
|
|
1169
|
+
if (providerInstallation.state.kind === "installed" && providerInstallation.state.uninstallUnavailableMessage) {
|
|
1170
|
+
throw ( new Error(providerInstallation.state.uninstallUnavailableMessage));
|
|
1171
|
+
}
|
|
1113
1172
|
const key = providerInstallation.installationId ?? getCustomizationMarketplaceResourceKey(providerInstallation.resource);
|
|
1114
1173
|
const pending = this.pendingUninstalls.get(key);
|
|
1115
1174
|
if (pending) {
|
|
@@ -1135,7 +1194,10 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1135
1194
|
return;
|
|
1136
1195
|
}
|
|
1137
1196
|
if (providerBinding) {
|
|
1138
|
-
|
|
1197
|
+
throw ( new Error(( localize(
|
|
1198
|
+
12745,
|
|
1199
|
+
"The installed customization could not be identified uniquely. Refresh the plugin inventory and try again."
|
|
1200
|
+
))));
|
|
1139
1201
|
}
|
|
1140
1202
|
const connector = resource.installation?.kind === "copilotConnector" ? resource.installation : undefined;
|
|
1141
1203
|
if (connector) {
|
|
@@ -1266,13 +1328,13 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1266
1328
|
this.checkEnabled(resource.sourceId, token);
|
|
1267
1329
|
const source = resource.installation;
|
|
1268
1330
|
if (!source) {
|
|
1269
|
-
throw ( new Error(( localize(
|
|
1331
|
+
throw ( new Error(( localize(12737, "This resource does not provide a supported installation source."))));
|
|
1270
1332
|
}
|
|
1271
1333
|
if (source.kind === "copilotConnector") {
|
|
1272
|
-
throw ( new Error(( localize(
|
|
1334
|
+
throw ( new Error(( localize(12746, "Copilot connectors do not have a local installation target."))));
|
|
1273
1335
|
}
|
|
1274
1336
|
if (source.kind === "providerCatalog") {
|
|
1275
|
-
throw ( new Error(( localize(
|
|
1337
|
+
throw ( new Error(( localize(12738, "The active agent cannot install this catalog resource."))));
|
|
1276
1338
|
}
|
|
1277
1339
|
const target = await this.installTarget({
|
|
1278
1340
|
...resource,
|
|
@@ -1318,13 +1380,13 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1318
1380
|
async resolveConfiguredPlugin(resource, token) {
|
|
1319
1381
|
const source = resource.installation;
|
|
1320
1382
|
if (source?.kind !== "configuredPlugin") {
|
|
1321
|
-
throw ( new Error(( localize(
|
|
1383
|
+
throw ( new Error(( localize(12747, "This plugin does not provide configured marketplace identity."))));
|
|
1322
1384
|
}
|
|
1323
1385
|
const discoveredReference = source.marketplaceSource ? parseMarketplaceReference(source.marketplaceSource) : undefined;
|
|
1324
1386
|
if (source.marketplaceId && (!discoveredReference || discoveredReference.canonicalId !== source.marketplaceId)) {
|
|
1325
1387
|
throw ( new Error(( localize(
|
|
1326
|
-
|
|
1327
|
-
"This plugin's marketplace identity changed after discovery. Refresh
|
|
1388
|
+
12748,
|
|
1389
|
+
"This plugin's marketplace identity changed after discovery. Refresh Browse and try again."
|
|
1328
1390
|
))));
|
|
1329
1391
|
}
|
|
1330
1392
|
const currentReference = source.marketplaceId ? this.pluginMarketplaceService.getMarketplaceReferences().find(reference => reference.canonicalId === source.marketplaceId) : undefined;
|
|
@@ -1333,8 +1395,8 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1333
1395
|
throw ( new CancellationError());
|
|
1334
1396
|
}
|
|
1335
1397
|
throw ( new Error(( localize(
|
|
1336
|
-
|
|
1337
|
-
"This plugin is no longer available from a configured marketplace. Refresh
|
|
1398
|
+
12749,
|
|
1399
|
+
"This plugin is no longer available from a configured marketplace. Refresh Browse and try again."
|
|
1338
1400
|
))));
|
|
1339
1401
|
}
|
|
1340
1402
|
const marketplaceIds = source.marketplaceId ? ( new Set([source.marketplaceId])) : undefined;
|
|
@@ -1343,8 +1405,8 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1343
1405
|
const plugin = plugins.find(plugin => getPluginMarketplaceIdentifier(plugin) === resource.identifier);
|
|
1344
1406
|
if (!plugin || source.name && plugin.name !== source.name || source.marketplace && plugin.marketplaceName !== source.marketplace) {
|
|
1345
1407
|
throw ( new Error(( localize(
|
|
1346
|
-
|
|
1347
|
-
"This plugin is no longer available from a configured marketplace. Refresh
|
|
1408
|
+
12749,
|
|
1409
|
+
"This plugin is no longer available from a configured marketplace. Refresh Browse and try again."
|
|
1348
1410
|
))));
|
|
1349
1411
|
}
|
|
1350
1412
|
return plugin;
|
|
@@ -1352,15 +1414,13 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1352
1414
|
resolveProviderPluginMarketplaceReference(resource) {
|
|
1353
1415
|
const source = resource.installation;
|
|
1354
1416
|
if (source?.kind !== "providerPlugin" || !source.marketplaceSource) {
|
|
1355
|
-
throw ( new Error(( localize(
|
|
1417
|
+
throw ( new Error(( localize(12750, "This plugin does not provide provider marketplace identity."))));
|
|
1356
1418
|
}
|
|
1357
|
-
const
|
|
1358
|
-
const githubSource = /^GitHub:\s+(?<source>.+)$/.exec(source.marketplaceSource)?.groups?.source;
|
|
1359
|
-
const marketplaceReference = directReference ?? (githubSource ? parseMarketplaceReference(githubSource) : undefined);
|
|
1419
|
+
const marketplaceReference = parseProviderMarketplaceReference(source.marketplaceSource);
|
|
1360
1420
|
if (!marketplaceReference) {
|
|
1361
1421
|
throw ( new Error(( localize(
|
|
1362
|
-
|
|
1363
|
-
"This featured plugin is no longer available from a registered marketplace. Refresh
|
|
1422
|
+
12751,
|
|
1423
|
+
"This featured plugin is no longer available from a registered marketplace. Refresh Browse and try again."
|
|
1364
1424
|
))));
|
|
1365
1425
|
}
|
|
1366
1426
|
return marketplaceReference;
|
|
@@ -1368,7 +1428,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1368
1428
|
async installTarget(resource, token) {
|
|
1369
1429
|
const source = resource.installation;
|
|
1370
1430
|
if (!source) {
|
|
1371
|
-
throw ( new Error(( localize(
|
|
1431
|
+
throw ( new Error(( localize(12737, "This resource does not provide a supported installation source."))));
|
|
1372
1432
|
}
|
|
1373
1433
|
if (source.kind === "configuredPlugin") {
|
|
1374
1434
|
const plugin = await this.resolveConfiguredPlugin(resource, token);
|
|
@@ -1377,7 +1437,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1377
1437
|
const uri = this.pluginInstallService.getPluginInstallUri(plugin);
|
|
1378
1438
|
if (!( this.pluginMarketplaceService.installedPlugins.get().some(candidate => isEqual(candidate.pluginUri, uri)))) {
|
|
1379
1439
|
throw ( new Error(( localize(
|
|
1380
|
-
|
|
1440
|
+
12752,
|
|
1381
1441
|
"The plugin could not be installed. Review the installation error and try again."
|
|
1382
1442
|
))));
|
|
1383
1443
|
}
|
|
@@ -1393,7 +1453,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1393
1453
|
this.checkEnabled(resource.sourceId, token);
|
|
1394
1454
|
if (!server || server.gallery?.name !== source.name || normalizeMcpGalleryUrl(server.gallery.galleryUrl) !== normalizeMcpGalleryUrl(source.registryUrl)) {
|
|
1395
1455
|
throw ( new Error(( localize(
|
|
1396
|
-
|
|
1456
|
+
12753,
|
|
1397
1457
|
"The MCP server '{0}' is not available in the configured registry.",
|
|
1398
1458
|
source.name
|
|
1399
1459
|
))));
|
|
@@ -1405,7 +1465,7 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1405
1465
|
const installed = await this.mcpWorkbenchService.install(server);
|
|
1406
1466
|
if (installed.installState !== McpServerInstallState.Installed) {
|
|
1407
1467
|
throw ( new Error(( localize(
|
|
1408
|
-
|
|
1468
|
+
12754,
|
|
1409
1469
|
"The MCP server could not be installed. Review the installation error and try again."
|
|
1410
1470
|
))));
|
|
1411
1471
|
}
|
|
@@ -1415,9 +1475,9 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1415
1475
|
};
|
|
1416
1476
|
}
|
|
1417
1477
|
if (source.kind === "copilotConnector") {
|
|
1418
|
-
throw ( new Error(( localize(
|
|
1478
|
+
throw ( new Error(( localize(12746, "Copilot connectors do not have a local installation target."))));
|
|
1419
1479
|
}
|
|
1420
|
-
throw ( new Error(( localize(
|
|
1480
|
+
throw ( new Error(( localize(12738, "The active agent cannot install this catalog resource."))));
|
|
1421
1481
|
}
|
|
1422
1482
|
async getMcpGalleryManifest(source) {
|
|
1423
1483
|
const manifest = source.registry === "default" ? (await this.mcpGalleryManifestService.getDefaultMcpGalleryManifest()) ?? (await this.mcpGalleryManifestService.getMcpGalleryManifest()) : await this.mcpGalleryManifestService.getMcpGalleryManifest();
|
|
@@ -1425,8 +1485,8 @@ let CustomizationMarketplaceInstallService = class CustomizationMarketplaceInsta
|
|
|
1425
1485
|
const configuredRegistryUrl = source.registry === "custom" ? normalizeMcpGalleryUrl(this.configurationService.getValue(mcpGalleryServiceUrlConfig)) : sourceRegistryUrl;
|
|
1426
1486
|
if (!manifest || !sourceRegistryUrl || normalizeMcpGalleryUrl(manifest.url) !== sourceRegistryUrl || configuredRegistryUrl !== sourceRegistryUrl) {
|
|
1427
1487
|
throw ( new Error(( localize(
|
|
1428
|
-
|
|
1429
|
-
"The MCP registry changed after '{0}' was discovered. Refresh
|
|
1488
|
+
12741,
|
|
1489
|
+
"The MCP registry changed after '{0}' was discovered. Refresh Browse and try again.",
|
|
1430
1490
|
source.name
|
|
1431
1491
|
))));
|
|
1432
1492
|
}
|
|
@@ -1477,6 +1537,19 @@ function getConnectorOperationKey(resource) {
|
|
|
1477
1537
|
const connectorName = resource.installation?.kind === "copilotConnector" ? resource.installation.name : resource.identifier;
|
|
1478
1538
|
return JSON.stringify([resource.sourceId, "copilotConnector", connectorName]);
|
|
1479
1539
|
}
|
|
1540
|
+
function getCatalogPluginRoot(path) {
|
|
1541
|
+
const normalized = normalizePluginPath(path);
|
|
1542
|
+
for (const descriptor of PLUGIN_MANIFEST_PATHS) {
|
|
1543
|
+
if (normalized === descriptor) {
|
|
1544
|
+
return "";
|
|
1545
|
+
}
|
|
1546
|
+
const suffix = `/${descriptor}`;
|
|
1547
|
+
if (normalized.endsWith(suffix)) {
|
|
1548
|
+
return normalized.slice(0, -suffix.length);
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
return normalized;
|
|
1552
|
+
}
|
|
1480
1553
|
async function createInstallationRecordId(slot) {
|
|
1481
1554
|
const digest = await crypto.subtle.digest("SHA-256", ( new TextEncoder()).encode(JSON.stringify(slot)));
|
|
1482
1555
|
return [...( new Uint8Array(digest))].map(value => ( value.toString(16)).padStart(2, "0")).join("");
|