@codingame/monaco-vscode-chat-service-override 34.1.3 → 35.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +38 -0
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/browser/agentHost.config.contribution.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHost.config.contribution.js +40 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.d.ts +27 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.js +91 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.d.ts +20 -4
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +148 -15
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +9 -1
- package/vscode/src/vs/platform/agentHost/common/agentHost.config.contribution.js +57 -3
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +10 -14
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +29 -8
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.d.ts +109 -2
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.js +207 -21
- package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.js +362 -37
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +698 -91
- package/vscode/src/vs/platform/agentHost/common/agentService.js +46 -3
- package/vscode/src/vs/platform/agentHost/common/customAgents.js +1 -0
- package/vscode/src/vs/platform/agentHost/common/resourceReadLogging.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/common/resourceReadLogging.js +26 -0
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.d.ts +5 -5
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.js +17 -17
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +96 -12
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +226 -19
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-annotations/reducer.d.ts +18 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-annotations/reducer.js +89 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/reducer.js +10 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/reducer.d.ts +6 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/reducer.js +400 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/reducer.js +129 -446
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/reducer-helpers.d.ts +2 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +35 -25
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +7 -1
- package/vscode/src/vs/{workbench/contrib → platform}/browserView/common/browserChatToolReferenceNames.d.ts +4 -0
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +1 -1
- package/vscode/src/vs/platform/sandbox/browser/sandboxHelperService.js +1 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxCommandRules.d.ts +0 -6
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxCommandRules.js +5 -18
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.d.ts +52 -3
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.js +212 -34
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxReadAllowList.js +3 -4
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxRuntimeConfigurationPerOperation.js +11 -10
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +13 -6
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.js +6 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +399 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +85 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.d.ts +177 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +898 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +204 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.d.ts +61 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.js +338 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +57 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +98 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +149 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +116 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +226 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +138 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.js +25 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.js +108 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +63 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +178 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +322 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.js +15 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoiceColors.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoiceColors.js +26 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.d.ts +132 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +237 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +32 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +71 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +19 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +14 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +66 -52
- 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 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +128 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openCopilotCliStateFileAction.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/reviewEdits.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +58 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.d.ts +15 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.js +64 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.d.ts +45 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.d.ts +25 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.js +143 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostModeSynchronizer.js +7 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.js +52 -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/agentHostToolSetEnablementService.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolSetEnablementService.js +163 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.d.ts +26 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.js +106 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.d.ts +16 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.js +44 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +70 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentDisabledInputTipContribution.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentDisabledInputTipContribution.js +152 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +11 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +9 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +143 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +107 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +46 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +19 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +244 -190
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +13 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.js +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +47 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +4 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/automationsListWidget.d.ts +87 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/automationsListWidget.js +772 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +24 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +3 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +1 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.js +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/galleryItemRenderer.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/galleryItemRenderer.js +94 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +421 -201
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +1424 -97
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +107 -127
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +331 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.d.ts +120 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.js +898 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +581 -336
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.d.ts +123 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.js +567 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheDiff.js +168 -84
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +183 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +897 -251
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.d.ts +213 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.js +720 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/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 +13 -13
- 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 +33 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +354 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +55 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +192 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +37 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.d.ts +40 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.js +230 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +23 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +35 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +26 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +56 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +109 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.d.ts +38 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +175 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +4 -4
- 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/enablementActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementStatusWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.d.ts +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +32 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +183 -84
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +20 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolSetsCodeLensProvider.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolSetsCodeLensProvider.js +109 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.js +117 -0
- 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 +40 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +169 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +8 -8
- 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/voiceClient/micCaptureService.d.ts +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.js +399 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.js +198 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.d.ts +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.js +504 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.d.ts +321 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.js +2117 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.js +367 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +16 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +68 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +11 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +13 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +23 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +320 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +80 -4
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automation.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.service.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationRunner.service.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationRunner.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.service.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationsEnabled.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationsEnabled.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/schedule.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/schedule.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +226 -88
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +8 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +13 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +12 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +177 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +2 -18
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +78 -136
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +1 -16
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +1 -17
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +16 -5
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +122 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +24 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +113 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +227 -152
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.js +98 -0
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/workingDirectory.js +7 -6
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.js +11 -12
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +10 -10
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +7 -0
- 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/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/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +32 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.d.ts +23 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.js +37 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/largeOutputFileWriter.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/largeOutputFileWriter.js +71 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +29 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +7 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +10 -8
- 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 +4 -4
- 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 +26 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +32 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +416 -252
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +3 -2
- 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/sandboxSettingsReader.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +25 -8
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.d.ts +8 -3
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +0 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/copilotCliEventsUri.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/copilotCliEventsUri.js +0 -82
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.d.ts +0 -38
- package/vscode/src/vs/workbench/contrib/chat/common/chatSelectedModel.js +0 -47
- /package/vscode/src/vs/{workbench/contrib → platform}/browserView/common/browserChatToolReferenceNames.js +0 -0
|
@@ -7,6 +7,8 @@ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
|
7
7
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
8
8
|
import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
9
9
|
import { ICustomizationHarnessService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/customizationHarnessService.service";
|
|
10
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
11
|
+
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
10
12
|
/**
|
|
11
13
|
* Service that opens an AI-guided chat session to help the user create
|
|
12
14
|
* a new customization (agent, skill, instructions, prompt, hook).
|
|
@@ -22,8 +24,9 @@ export declare class CustomizationCreatorService {
|
|
|
22
24
|
private readonly workspaceService;
|
|
23
25
|
private readonly promptsService;
|
|
24
26
|
private readonly quickInputService;
|
|
27
|
+
private readonly instantiationService;
|
|
25
28
|
private readonly harnessService;
|
|
26
|
-
constructor(commandService: ICommandService, chatService: IChatService, chatWidgetService: IChatWidgetService, workspaceService: IAICustomizationWorkspaceService, promptsService: IPromptsService, quickInputService: IQuickInputService, harnessService: ICustomizationHarnessService);
|
|
29
|
+
constructor(commandService: ICommandService, chatService: IChatService, chatWidgetService: IChatWidgetService, workspaceService: IAICustomizationWorkspaceService, promptsService: IPromptsService, quickInputService: IQuickInputService, instantiationService: IInstantiationService, harnessService: ICustomizationHarnessService);
|
|
27
30
|
createWithAI(type: PromptsType): Promise<void>;
|
|
28
31
|
/**
|
|
29
32
|
* Resolves the workspace directory for a new customization file based on the
|
|
@@ -31,17 +34,30 @@ export declare class CustomizationCreatorService {
|
|
|
31
34
|
*/
|
|
32
35
|
resolveTargetDirectory(type: PromptsType): URI | undefined;
|
|
33
36
|
/**
|
|
34
|
-
* Resolves the
|
|
35
|
-
|
|
37
|
+
* Resolves the user-level directory for a new customization file.
|
|
38
|
+
*/
|
|
39
|
+
resolveUserDirectory(type: PromptsType): Promise<URI | undefined>;
|
|
40
|
+
}
|
|
41
|
+
export declare class CustomizationLocationPicker {
|
|
42
|
+
private readonly quickInputService;
|
|
43
|
+
private readonly harnessService;
|
|
44
|
+
private readonly instantiationService;
|
|
45
|
+
private readonly workspaceService;
|
|
46
|
+
private readonly labelService;
|
|
47
|
+
constructor(quickInputService: IQuickInputService, harnessService: ICustomizationHarnessService, instantiationService: IInstantiationService, workspaceService: IAICustomizationWorkspaceService, labelService: ILabelService);
|
|
48
|
+
/**
|
|
49
|
+
* Resolves the target directory for creating a new customization file.
|
|
50
|
+
* If multiple source folders exist for the given storage type, shows a
|
|
51
|
+
* picker to let the user choose. Otherwise, returns the single match.
|
|
52
|
+
*
|
|
53
|
+
* Source folders come from the active harness's item provider (via the
|
|
54
|
+
* items model) — each session can supply its own set of customization
|
|
55
|
+
* locations through `ICustomizationItemProvider.provideSourceFolders`.
|
|
36
56
|
*
|
|
37
57
|
* @returns the resolved URI, `undefined` when no folder is available,
|
|
38
58
|
* or `null` when the user cancelled the picker.
|
|
39
59
|
*/
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Resolves the user-level directory for a new customization file.
|
|
43
|
-
*/
|
|
44
|
-
resolveUserDirectory(type: PromptsType): Promise<URI | undefined>;
|
|
60
|
+
resolveTargetDirectoryWithPicker(sessionResource: URI, type: PromptsType, target: "local" | "user"): Promise<URI | undefined | null>;
|
|
45
61
|
}
|
|
46
62
|
/**
|
|
47
63
|
* Resolves the workspace directory for a new customization file based on the active project root.
|
package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js
CHANGED
|
@@ -6,15 +6,10 @@ import { getPromptFileDefaultLocations } from '@codingame/monaco-vscode-api/vsco
|
|
|
6
6
|
import { PromptsStorage } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService';
|
|
7
7
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
8
8
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
9
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
9
10
|
import '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
10
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/
|
|
11
|
-
import '
|
|
12
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
13
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
14
|
-
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService';
|
|
15
|
-
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
|
|
16
|
-
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl';
|
|
17
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
11
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
12
|
+
import './promptsServiceCustomizationItemProvider.js';
|
|
18
13
|
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatUri';
|
|
19
14
|
|
|
20
15
|
function resolveWorkspaceTargetDirectory(workspaceService, type) {
|
package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js
CHANGED
|
@@ -4,17 +4,11 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/ext
|
|
|
4
4
|
import { CustomizationHarnessServiceBase, createVSCodeHarnessDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/customizationHarnessService';
|
|
5
5
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
6
|
import { IPromptsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service';
|
|
7
|
-
import { AICustomizationSources } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService';
|
|
8
7
|
import { SessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
|
|
9
8
|
|
|
10
9
|
let CustomizationHarnessService = class CustomizationHarnessService extends CustomizationHarnessServiceBase {
|
|
11
10
|
constructor(promptsService) {
|
|
12
|
-
|
|
13
|
-
super(
|
|
14
|
-
[createVSCodeHarnessDescriptor(localExtras)],
|
|
15
|
-
SessionType.Local,
|
|
16
|
-
promptsService
|
|
17
|
-
);
|
|
11
|
+
super([createVSCodeHarnessDescriptor()], SessionType.Local, promptsService);
|
|
18
12
|
}
|
|
19
13
|
getSessionResourceForHarness(sessionType) {
|
|
20
14
|
return super.getSessionResourceForHarness(sessionType);
|
package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js
CHANGED
|
@@ -17,7 +17,7 @@ class EmbeddedAgentPluginDetail extends Disposable {
|
|
|
17
17
|
this.sourceEl = append(headerText, $(".embedded-detail-scope"));
|
|
18
18
|
this.descriptionEl = append(this.root, $(".embedded-detail-description"));
|
|
19
19
|
this.emptyEl = append(this.root, $(".embedded-detail-empty"));
|
|
20
|
-
this.emptyEl.textContent = ( localize(
|
|
20
|
+
this.emptyEl.textContent = ( localize(6003, "No plugin selected."));
|
|
21
21
|
this.renderItem();
|
|
22
22
|
}
|
|
23
23
|
get element() {
|
|
@@ -50,7 +50,7 @@ class EmbeddedAgentPluginDetail extends Disposable {
|
|
|
50
50
|
}
|
|
51
51
|
this.nameEl.textContent = item.name;
|
|
52
52
|
const isMarketplace = item.kind === AgentPluginItemKind.Marketplace;
|
|
53
|
-
const sourceLabel = item.marketplace ? (isMarketplace ? ( localize(
|
|
53
|
+
const sourceLabel = item.marketplace ? (isMarketplace ? ( localize(6004, "From {0}", item.marketplace)) : ( localize(6005, "Installed from {0}", item.marketplace))) : (isMarketplace ? ( localize(6006, "Marketplace plugin")) : ( localize(6007, "Installed plugin")));
|
|
54
54
|
this.sourceEl.textContent = sourceLabel;
|
|
55
55
|
const description = (item.description || "").trim();
|
|
56
56
|
this.descriptionEl.textContent = description;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IExtension } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions";
|
|
3
|
+
/**
|
|
4
|
+
* Compact detail view for a tool-contributing extension inside the AI Customizations management
|
|
5
|
+
* editor's split-pane host. Renders identity (name + publisher), description and the list of
|
|
6
|
+
* tools the extension contributes (read from its manifest).
|
|
7
|
+
*
|
|
8
|
+
* Mirrors {@link EmbeddedMcpServerDetail} / {@link EmbeddedAgentPluginDetail}; installing the
|
|
9
|
+
* extension is handled by the gallery row the user came from, so this component stays read-only.
|
|
10
|
+
*/
|
|
11
|
+
export declare class EmbeddedExtensionToolsDetail extends Disposable {
|
|
12
|
+
private readonly root;
|
|
13
|
+
private readonly headerEl;
|
|
14
|
+
private readonly leadingSlotEl;
|
|
15
|
+
private readonly nameEl;
|
|
16
|
+
private readonly publisherEl;
|
|
17
|
+
private readonly descriptionEl;
|
|
18
|
+
private readonly toolsHeadingEl;
|
|
19
|
+
private readonly toolsListEl;
|
|
20
|
+
private readonly toolsMessageEl;
|
|
21
|
+
private readonly emptyEl;
|
|
22
|
+
private current;
|
|
23
|
+
private readonly _manifestLoad;
|
|
24
|
+
constructor(parent: HTMLElement);
|
|
25
|
+
get element(): HTMLElement;
|
|
26
|
+
get headerElement(): HTMLElement;
|
|
27
|
+
/**
|
|
28
|
+
* Header slot reserved for leading chrome (e.g. a back button).
|
|
29
|
+
* Prefer this over reaching into the header element directly.
|
|
30
|
+
*/
|
|
31
|
+
get leadingSlot(): HTMLElement;
|
|
32
|
+
setInput(extension: IExtension): void;
|
|
33
|
+
clearInput(): void;
|
|
34
|
+
private renderItem;
|
|
35
|
+
/**
|
|
36
|
+
* Reads the contributed tools from the extension manifest. The manifest may be fetched from
|
|
37
|
+
* the gallery for not-yet-installed extensions, so this is async and cancellation-safe.
|
|
38
|
+
*/
|
|
39
|
+
private loadTools;
|
|
40
|
+
private renderTools;
|
|
41
|
+
private setToolsMessage;
|
|
42
|
+
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.js
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
|
|
2
|
+
import { $ as $$1, append, clearNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { status } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
|
|
4
|
+
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
5
|
+
import { Disposable, MutableDisposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
7
|
+
|
|
8
|
+
const $ = $$1;
|
|
9
|
+
class EmbeddedExtensionToolsDetail extends Disposable {
|
|
10
|
+
constructor(parent) {
|
|
11
|
+
super();
|
|
12
|
+
this._manifestLoad = this._register(( new MutableDisposable()));
|
|
13
|
+
this.root = append(parent, $(".ai-customization-embedded-detail.embedded-tool-detail"));
|
|
14
|
+
this.headerEl = append(this.root, $(".embedded-detail-header"));
|
|
15
|
+
this.leadingSlotEl = append(this.headerEl, $(".embedded-detail-leading-slot"));
|
|
16
|
+
const headerText = append(this.headerEl, $(".embedded-detail-header-text"));
|
|
17
|
+
this.nameEl = append(headerText, $("h2.embedded-detail-name"));
|
|
18
|
+
this.nameEl.setAttribute("role", "heading");
|
|
19
|
+
this.publisherEl = append(headerText, $(".embedded-detail-scope"));
|
|
20
|
+
this.descriptionEl = append(this.root, $(".embedded-detail-description"));
|
|
21
|
+
const toolsEl = append(this.root, $(".embedded-detail-tools"));
|
|
22
|
+
this.toolsHeadingEl = append(toolsEl, $("h3.embedded-detail-tools-heading"));
|
|
23
|
+
this.toolsHeadingEl.setAttribute("role", "heading");
|
|
24
|
+
this.toolsHeadingEl.textContent = ( localize(6008, "Included Tools"));
|
|
25
|
+
this.toolsMessageEl = append(toolsEl, $(".embedded-detail-tools-message"));
|
|
26
|
+
this.toolsListEl = append(toolsEl, $(".embedded-detail-tools-list"));
|
|
27
|
+
this.toolsListEl.setAttribute("role", "list");
|
|
28
|
+
this.emptyEl = append(this.root, $(".embedded-detail-empty"));
|
|
29
|
+
this.emptyEl.textContent = ( localize(6009, "No extension selected."));
|
|
30
|
+
this.renderItem();
|
|
31
|
+
}
|
|
32
|
+
get element() {
|
|
33
|
+
return this.root;
|
|
34
|
+
}
|
|
35
|
+
get headerElement() {
|
|
36
|
+
return this.headerEl;
|
|
37
|
+
}
|
|
38
|
+
get leadingSlot() {
|
|
39
|
+
return this.leadingSlotEl;
|
|
40
|
+
}
|
|
41
|
+
setInput(extension) {
|
|
42
|
+
this.current = extension;
|
|
43
|
+
this.renderItem();
|
|
44
|
+
}
|
|
45
|
+
clearInput() {
|
|
46
|
+
this.current = undefined;
|
|
47
|
+
this._manifestLoad.clear();
|
|
48
|
+
this.renderItem();
|
|
49
|
+
}
|
|
50
|
+
renderItem() {
|
|
51
|
+
const extension = this.current;
|
|
52
|
+
const hasItem = !!extension;
|
|
53
|
+
this.emptyEl.style.display = hasItem ? "none" : "";
|
|
54
|
+
this.root.classList.toggle("is-empty", !hasItem);
|
|
55
|
+
this.toolsHeadingEl.style.display = hasItem ? "" : "none";
|
|
56
|
+
if (!extension) {
|
|
57
|
+
this.nameEl.textContent = "";
|
|
58
|
+
this.publisherEl.textContent = "";
|
|
59
|
+
this.descriptionEl.textContent = "";
|
|
60
|
+
clearNode(this.toolsListEl);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
this.nameEl.textContent = extension.displayName;
|
|
64
|
+
const publisher = extension.publisherDisplayName;
|
|
65
|
+
if (publisher) {
|
|
66
|
+
this.publisherEl.textContent = ( localize(6010, "by {0}", publisher));
|
|
67
|
+
this.publisherEl.style.display = "";
|
|
68
|
+
} else {
|
|
69
|
+
this.publisherEl.textContent = "";
|
|
70
|
+
this.publisherEl.style.display = "none";
|
|
71
|
+
}
|
|
72
|
+
const description = (extension.description || "").trim();
|
|
73
|
+
this.descriptionEl.textContent = description;
|
|
74
|
+
this.descriptionEl.style.display = description ? "" : "none";
|
|
75
|
+
this.loadTools(extension);
|
|
76
|
+
}
|
|
77
|
+
loadTools(extension) {
|
|
78
|
+
const cts = ( new CancellationTokenSource());
|
|
79
|
+
this._manifestLoad.value = toDisposable(() => cts.dispose(true));
|
|
80
|
+
this.setToolsMessage(( localize(6011, "Loading tools...")));
|
|
81
|
+
clearNode(this.toolsListEl);
|
|
82
|
+
extension.getManifest(cts.token).then(manifest => {
|
|
83
|
+
if (cts.token.isCancellationRequested || this.current !== extension) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const tools = manifest?.contributes?.languageModelTools ?? [];
|
|
87
|
+
this.renderTools(tools);
|
|
88
|
+
}, () => {
|
|
89
|
+
if (cts.token.isCancellationRequested || this.current !== extension) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
const message = ( localize(6012, "Unable to load the tools for this extension."));
|
|
93
|
+
this.setToolsMessage(message);
|
|
94
|
+
status(message);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
renderTools(tools) {
|
|
98
|
+
clearNode(this.toolsListEl);
|
|
99
|
+
if (tools.length === 0) {
|
|
100
|
+
const message = ( localize(6013, "This extension does not contribute any tools."));
|
|
101
|
+
this.setToolsMessage(message);
|
|
102
|
+
status(message);
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
this.setToolsMessage(undefined);
|
|
106
|
+
for (const tool of tools) {
|
|
107
|
+
const row = append(this.toolsListEl, $(".embedded-detail-tool"));
|
|
108
|
+
row.setAttribute("role", "listitem");
|
|
109
|
+
append(row, $(".embedded-detail-tool-name")).textContent = resolveNls(tool.displayName) || tool.name;
|
|
110
|
+
const description = resolveNls(tool.userDescription) || resolveNls(tool.modelDescription);
|
|
111
|
+
if (description) {
|
|
112
|
+
append(row, $(".embedded-detail-tool-description")).textContent = description;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
status(tools.length === 1 ? ( localize(6014, "1 tool")) : ( localize(6015, "{0} tools", tools.length)));
|
|
116
|
+
}
|
|
117
|
+
setToolsMessage(message) {
|
|
118
|
+
this.toolsMessageEl.textContent = message ?? "";
|
|
119
|
+
this.toolsMessageEl.style.display = message ? "" : "none";
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function resolveNls(value) {
|
|
123
|
+
const trimmed = value?.trim();
|
|
124
|
+
if (!trimmed || (trimmed.startsWith("%") && trimmed.endsWith("%"))) {
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
return trimmed;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export { EmbeddedExtensionToolsDetail };
|
package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js
CHANGED
|
@@ -21,7 +21,7 @@ let EmbeddedMcpServerDetail = class EmbeddedMcpServerDetail extends Disposable {
|
|
|
21
21
|
this.scopeEl = append(headerText, $(".embedded-detail-scope"));
|
|
22
22
|
this.descriptionEl = append(this.root, $(".embedded-detail-description"));
|
|
23
23
|
this.emptyEl = append(this.root, $(".embedded-detail-empty"));
|
|
24
|
-
this.emptyEl.textContent = ( localize(
|
|
24
|
+
this.emptyEl.textContent = ( localize(6016, "No MCP server selected."));
|
|
25
25
|
this._register(this.mcpWorkbenchService.onChange(server => {
|
|
26
26
|
if (this.current && server && server.id === this.current.id) {
|
|
27
27
|
this.current = server;
|
|
@@ -78,13 +78,13 @@ function describeMcpScope(scope) {
|
|
|
78
78
|
switch (scope) {
|
|
79
79
|
case LocalMcpServerScope.Workspace:
|
|
80
80
|
return {
|
|
81
|
-
label: ( localize(
|
|
81
|
+
label: ( localize(6017, "Workspace")),
|
|
82
82
|
icon: workspaceIcon
|
|
83
83
|
};
|
|
84
84
|
case LocalMcpServerScope.User:
|
|
85
85
|
case LocalMcpServerScope.RemoteUser:
|
|
86
86
|
return {
|
|
87
|
-
label: ( localize(
|
|
87
|
+
label: ( localize(6018, "User")),
|
|
88
88
|
icon: userIcon
|
|
89
89
|
};
|
|
90
90
|
default:
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Button } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button";
|
|
2
|
+
import { IListRenderer } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/list";
|
|
3
|
+
import { DisposableStore, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
|
+
/**
|
|
5
|
+
* Install state of a gallery item, used to drive the install button label and enablement.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum GalleryItemInstallState {
|
|
8
|
+
Uninstalled = 0,
|
|
9
|
+
Installing = 1,
|
|
10
|
+
Installed = 2
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Adapts a list element to the data and actions a gallery row needs.
|
|
14
|
+
*/
|
|
15
|
+
export interface IGalleryItemProvider<TElement> {
|
|
16
|
+
getLabel(element: TElement): string;
|
|
17
|
+
getPublisherDisplayName(element: TElement): string | undefined;
|
|
18
|
+
getDescription(element: TElement): string | undefined;
|
|
19
|
+
getInstallState(element: TElement): GalleryItemInstallState;
|
|
20
|
+
canInstall?(element: TElement): boolean;
|
|
21
|
+
install(element: TElement): Promise<void>;
|
|
22
|
+
onDidChangeInstallState?(element: TElement, listener: () => void): IDisposable;
|
|
23
|
+
}
|
|
24
|
+
interface IGalleryItemTemplateData {
|
|
25
|
+
readonly name: HTMLElement;
|
|
26
|
+
readonly publisher: HTMLElement;
|
|
27
|
+
readonly description: HTMLElement;
|
|
28
|
+
readonly installButton: Button;
|
|
29
|
+
readonly elementDisposables: DisposableStore;
|
|
30
|
+
readonly templateDisposables: DisposableStore;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Reusable list renderer for a gallery row with an Install button. Shared by the Chat
|
|
34
|
+
* Customizations tools, MCP server and plugin marketplace lists. All rows share a single set of
|
|
35
|
+
* `.gallery-item*` styles; data and actions are supplied via {@link IGalleryItemProvider}.
|
|
36
|
+
*/
|
|
37
|
+
export declare class GalleryItemRenderer<TElement> implements IListRenderer<TElement, IGalleryItemTemplateData> {
|
|
38
|
+
readonly templateId: string;
|
|
39
|
+
private readonly _provider;
|
|
40
|
+
constructor(templateId: string, _provider: IGalleryItemProvider<TElement>);
|
|
41
|
+
renderTemplate(container: HTMLElement): IGalleryItemTemplateData;
|
|
42
|
+
renderElement(element: TElement, _index: number, templateData: IGalleryItemTemplateData): void;
|
|
43
|
+
private _updateInstallButton;
|
|
44
|
+
disposeTemplate(templateData: IGalleryItemTemplateData): void;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
|
|
2
|
+
import { $ as $$1, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
4
|
+
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
|
+
import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
7
|
+
|
|
8
|
+
const $ = $$1;
|
|
9
|
+
var GalleryItemInstallState;
|
|
10
|
+
(function(GalleryItemInstallState) {
|
|
11
|
+
GalleryItemInstallState[GalleryItemInstallState["Uninstalled"] = 0] = "Uninstalled";
|
|
12
|
+
GalleryItemInstallState[GalleryItemInstallState["Installing"] = 1] = "Installing";
|
|
13
|
+
GalleryItemInstallState[GalleryItemInstallState["Installed"] = 2] = "Installed";
|
|
14
|
+
})(GalleryItemInstallState || (GalleryItemInstallState = {}));
|
|
15
|
+
class GalleryItemRenderer {
|
|
16
|
+
constructor(templateId, _provider) {
|
|
17
|
+
this.templateId = templateId;
|
|
18
|
+
this._provider = _provider;
|
|
19
|
+
}
|
|
20
|
+
renderTemplate(container) {
|
|
21
|
+
container.classList.add("gallery-item");
|
|
22
|
+
const details = append(container, $(".gallery-item-details"));
|
|
23
|
+
const name = append(details, $("span.gallery-item-name"));
|
|
24
|
+
const description = append(details, $("span.gallery-item-description"));
|
|
25
|
+
const publisher = append(details, $("span.gallery-item-publisher"));
|
|
26
|
+
const actionContainer = append(container, $(".gallery-item-action"));
|
|
27
|
+
const installButton = ( new Button(actionContainer, {
|
|
28
|
+
...defaultButtonStyles,
|
|
29
|
+
supportIcons: true
|
|
30
|
+
}));
|
|
31
|
+
const templateDisposables = ( new DisposableStore());
|
|
32
|
+
templateDisposables.add(installButton);
|
|
33
|
+
return {
|
|
34
|
+
name,
|
|
35
|
+
publisher,
|
|
36
|
+
description,
|
|
37
|
+
installButton,
|
|
38
|
+
elementDisposables: ( new DisposableStore()),
|
|
39
|
+
templateDisposables
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
renderElement(element, _index, templateData) {
|
|
43
|
+
templateData.elementDisposables.clear();
|
|
44
|
+
templateData.name.textContent = this._provider.getLabel(element);
|
|
45
|
+
const publisher = this._provider.getPublisherDisplayName(element);
|
|
46
|
+
templateData.publisher.textContent = publisher ? ( localize(6019, "by {0}", publisher)) : "";
|
|
47
|
+
templateData.description.textContent = this._provider.getDescription(element) || "";
|
|
48
|
+
this._updateInstallButton(templateData.installButton, element);
|
|
49
|
+
templateData.elementDisposables.add(templateData.installButton.onDidClick(async () => {
|
|
50
|
+
if (this._provider.getInstallState(element) !== GalleryItemInstallState.Uninstalled) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (this._provider.canInstall && !this._provider.canInstall(element)) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
templateData.installButton.label = ( localize(6020, "Installing..."));
|
|
57
|
+
templateData.installButton.enabled = false;
|
|
58
|
+
try {
|
|
59
|
+
await this._provider.install(element);
|
|
60
|
+
} finally {
|
|
61
|
+
this._updateInstallButton(templateData.installButton, element);
|
|
62
|
+
}
|
|
63
|
+
}));
|
|
64
|
+
const changeListener = this._provider.onDidChangeInstallState?.(
|
|
65
|
+
element,
|
|
66
|
+
() => this._updateInstallButton(templateData.installButton, element)
|
|
67
|
+
);
|
|
68
|
+
if (changeListener) {
|
|
69
|
+
templateData.elementDisposables.add(changeListener);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
_updateInstallButton(button, element) {
|
|
73
|
+
switch (this._provider.getInstallState(element)) {
|
|
74
|
+
case GalleryItemInstallState.Installed:
|
|
75
|
+
button.label = ( localize(6021, "Installed"));
|
|
76
|
+
button.enabled = false;
|
|
77
|
+
break;
|
|
78
|
+
case GalleryItemInstallState.Installing:
|
|
79
|
+
button.label = ( localize(6020, "Installing..."));
|
|
80
|
+
button.enabled = false;
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
button.label = ( localize(6022, "Install"));
|
|
84
|
+
button.enabled = true;
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
disposeTemplate(templateData) {
|
|
89
|
+
templateData.elementDisposables.dispose();
|
|
90
|
+
templateData.templateDisposables.dispose();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export { GalleryItemInstallState, GalleryItemRenderer };
|
|
@@ -12,7 +12,10 @@ import { IContextViewService } from "@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
12
12
|
import { IAgentPluginService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/plugins/agentPluginService.service";
|
|
13
13
|
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
14
14
|
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
15
|
+
import { IAICustomizationWorkspaceService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service";
|
|
15
16
|
import { IAgentPluginItem } from "../agentPluginEditor/agentPluginItems.js";
|
|
17
|
+
import { ICustomizationHarnessService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/customizationHarnessService.service";
|
|
18
|
+
import { IAgentHostCustomizationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.service";
|
|
16
19
|
/**
|
|
17
20
|
* Widget that displays a list of MCP servers with marketplace browsing.
|
|
18
21
|
*/
|
|
@@ -29,6 +32,9 @@ export declare class McpListWidget extends Disposable {
|
|
|
29
32
|
private readonly agentPluginService;
|
|
30
33
|
private readonly dialogService;
|
|
31
34
|
private readonly configurationService;
|
|
35
|
+
private readonly customizationHarnessService;
|
|
36
|
+
private readonly agentHostCustomizationService;
|
|
37
|
+
private readonly workspaceService;
|
|
32
38
|
readonly element: HTMLElement;
|
|
33
39
|
private readonly _onDidSelectServer;
|
|
34
40
|
readonly onDidSelectServer: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<IWorkbenchMcpServer>;
|
|
@@ -54,6 +60,7 @@ export declare class McpListWidget extends Disposable {
|
|
|
54
60
|
private addButton;
|
|
55
61
|
private filteredServers;
|
|
56
62
|
private filteredBuiltinCount;
|
|
63
|
+
private filteredActiveSessionCount;
|
|
57
64
|
private displayEntries;
|
|
58
65
|
private galleryServers;
|
|
59
66
|
private searchQuery;
|
|
@@ -66,7 +73,7 @@ export declare class McpListWidget extends Disposable {
|
|
|
66
73
|
private galleryCts;
|
|
67
74
|
private readonly delayedFilter;
|
|
68
75
|
private readonly delayedGallerySearch;
|
|
69
|
-
constructor(instantiationService: IInstantiationService, mcpWorkbenchService: IMcpWorkbenchService, mcpService: IMcpService, mcpRegistry: IMcpRegistry, commandService: ICommandService, openerService: IOpenerService, contextViewService: IContextViewService, contextMenuService: IContextMenuService, hoverService: IHoverService, agentPluginService: IAgentPluginService, dialogService: IDialogService, configurationService: IConfigurationService);
|
|
76
|
+
constructor(instantiationService: IInstantiationService, mcpWorkbenchService: IMcpWorkbenchService, mcpService: IMcpService, mcpRegistry: IMcpRegistry, commandService: ICommandService, openerService: IOpenerService, contextViewService: IContextViewService, contextMenuService: IContextMenuService, hoverService: IHoverService, agentPluginService: IAgentPluginService, dialogService: IDialogService, configurationService: IConfigurationService, customizationHarnessService: ICustomizationHarnessService, agentHostCustomizationService: IAgentHostCustomizationService, workspaceService: IAICustomizationWorkspaceService);
|
|
70
77
|
private create;
|
|
71
78
|
private refresh;
|
|
72
79
|
private updateAccessState;
|
|
@@ -113,6 +120,7 @@ export declare class McpListWidget extends Disposable {
|
|
|
113
120
|
* Focuses the list.
|
|
114
121
|
*/
|
|
115
122
|
focus(): void;
|
|
123
|
+
private openActiveSessionServerOptions;
|
|
116
124
|
/**
|
|
117
125
|
* Handles context menu for MCP server items.
|
|
118
126
|
*/
|