@codingame/monaco-vscode-chat-service-override 37.0.0 → 37.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +26 -5
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/browser/agentHostEnablementService.js +1 -1
- package/vscode/src/vs/platform/agentHost/browser/agentHostProtocolClient.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationConfig.d.ts +74 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostCustomizationConfig.js +90 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostSlashCommand.d.ts +8 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostSlashCommand.js +16 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.js +53 -53
- package/vscode/src/vs/platform/agentHost/common/agentHostWorkingDirectories.d.ts +16 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostWorkingDirectories.js +14 -0
- package/vscode/src/vs/platform/agentHost/common/agentMerge.js +7 -7
- package/vscode/src/vs/platform/agentHost/common/agentModelByokMeta.d.ts +24 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelByokMeta.js +13 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelNotices.d.ts +22 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelNotices.js +21 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelPricing.d.ts +114 -0
- package/vscode/src/vs/platform/agentHost/common/agentModelPricing.js +56 -0
- package/vscode/src/vs/platform/agentHost/common/changesetUri.js +15 -1
- package/vscode/src/vs/platform/agentHost/common/copilotConfigSlashCommands.d.ts +73 -0
- package/vscode/src/vs/platform/agentHost/common/copilotConfigSlashCommands.js +141 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCompletionAttachmentMeta.js +42 -1
- package/vscode/src/vs/platform/agentHost/common/meta/agentCustomizationMeta.d.ts +27 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCustomizationMeta.js +14 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentEphemeralSessionMeta.d.ts +14 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentEphemeralSessionMeta.js +11 -0
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.js +13 -13
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +4 -1
- package/vscode/src/vs/platform/agentHost/common/toolSearchConstants.d.ts +4 -0
- package/vscode/src/vs/platform/agentHost/common/toolSearchConstants.js +6 -0
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.d.ts +104 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +827 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.d.ts +15 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.js +71 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatContext.d.ts +16 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatContext.js +95 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatDebug.d.ts +22 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatDebug.js +286 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatInputNotification.d.ts +10 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatInputNotification.js +38 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatQuota.d.ts +9 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatQuota.js +22 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.d.ts +130 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.js +907 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatStatus.d.ts +10 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadChatStatus.js +28 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.d.ts +27 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js +167 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.d.ts +46 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +356 -0
- package/vscode/src/vs/workbench/browser/chatChangesPill.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +28 -28
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +18 -18
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +4 -4
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +3 -3
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +6 -6
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +11 -11
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +11 -11
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +9 -9
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +5 -5
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +28 -28
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +93 -93
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFindActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openAgentHostStateFileAction.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginCommands.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationContentExpander.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationContentExpander.js +229 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationItemProvider.js +460 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentCustomizationSyncProvider.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHost.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHost.contribution.js +92 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAllowSignedOutWhenUsableContribution.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAllowSignedOutWhenUsableContribution.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAuth.d.ts +142 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostAuth.js +746 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.js +474 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostConfigEditor.d.ts +169 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostConfigEditor.js +261 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCopilotCliSettingsContribution.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCopilotCliSettingsContribution.js +90 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostDownloadProgress.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostDownloadProgress.js +73 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostExistingSessionHarnessPickerEnablement.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostExistingSessionHarnessPickerEnablement.js +61 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.js +192 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPromptCacheNotification.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPromptCacheNotification.js +137 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostResponseFileChanges.js +301 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRootConfigForwarder.d.ts +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostRootConfigForwarder.js +96 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.d.ts +884 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.js +5870 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListContribution.js +129 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.js +221 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.d.ts +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListStore.js +345 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettings.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettings.contribution.js +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettingsFileSystemProvider.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSettingsFileSystemProvider.js +163 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutModelsNotification.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSignedOutModelsNotification.js +219 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSubagentProgress.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSubagentProgress.js +50 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostTerminalContribution.js +132 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettings.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettings.contribution.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettingsFileSystemProvider.d.ts +79 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentSessionSettingsFileSystemProvider.js +161 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSubmitConfig.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSubmitConfig.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/copilotConfigSlashSubmitHandler.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/copilotConfigSlashSubmitHandler.js +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/openSessionLinkOpener.contribution.js +205 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +51 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.d.ts +1 -1
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/externalSessionsFilterMenu.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsController.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHover.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessionsConfiguration.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +126 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +44 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +138 -138
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationPresentation.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationPresentation.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +37 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCardList.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigration.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationAccessibility.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationCategories.js +146 -146
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationDashboard.js +29 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +40 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/galleryItemRenderer.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +76 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +116 -116
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.js +50 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +356 -356
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.js +38 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostLogSources.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +1 -1
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEnablement.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +8 -8
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +24 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +36 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugWireLogView.js +40 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPills.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +63 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievements.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsWidget.js +35 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPromoNotification.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +62 -62
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +2 -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/enablementStatusWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationConfig.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationConfig.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorOverlay.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +29 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolSetsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimeline.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineCard.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineGutterRail.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRulerRail.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineStickyHeader.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionChatPillOptions.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionPullRequestPill.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +1 -1
- 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/voiceInputMode/voiceInputMode.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentOpenChat.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatFind/chatFindAccessibilityHelp.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCommandArgumentHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +12 -12
- 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 +13 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputReferenceDecorations.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugEvents.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +253 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +300 -0
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +272 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +178 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +51 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.d.ts +67 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.js +195 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +67 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +294 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +212 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +955 -0
- 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/plugins/workspacePluginSettingsService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/workspacePluginSettingsService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +698 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +78 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +120 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +23 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +154 -154
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.d.ts +92 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.js +335 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +235 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +1673 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +202 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +872 -0
- package/vscode/src/vs/workbench/contrib/chat/common/sessionChatPills.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +239 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/editFileTool.js +143 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +298 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +177 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +73 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +577 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +90 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +130 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/toolHelpers.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +91 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +518 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +231 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarousel.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditor.js +10 -10
- package/vscode/src/vs/workbench/contrib/imageCarousel/browser/imageCarouselEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditReviewSession.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +10 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +4 -4
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +4 -4
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +74 -74
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +11 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +8 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCache.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCache.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalOutputCompressor.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +4 -4
- package/vscode/src/vs/workbench/services/agentEditorComments/browser/agentEditorCommentsOverlayWidget.js +3 -3
- package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.d.ts +0 -30
- package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.js +0 -87
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +0 -205
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +0 -1580
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { Emitter } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
+
import { IJSONSchema } from "@codingame/monaco-vscode-api/vscode/vs/base/common/jsonSchema";
|
|
3
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
5
|
+
import { FileType, IFileChange, IFileDeleteOptions, IFileOverwriteOptions, IFileSystemProviderWithFileReadWriteCapability, IFileWriteOptions, IStat, IWatchOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
6
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
7
|
+
import { ConfigPropertySchema, ConfigSchema } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/state";
|
|
8
|
+
/**
|
|
9
|
+
* Minimal config shape shared by session and root configuration.
|
|
10
|
+
*/
|
|
11
|
+
export interface IAgentHostConfigLike {
|
|
12
|
+
readonly schema: ConfigSchema;
|
|
13
|
+
readonly values: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Filter applied to schema properties to decide which ones surface in the
|
|
17
|
+
* editable document (and in the derived JSON schema).
|
|
18
|
+
*/
|
|
19
|
+
export type AgentHostConfigPropertyFilter = (key: string, schema: ConfigPropertySchema) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Localized strings used to decorate the serialized JSONC document.
|
|
22
|
+
*/
|
|
23
|
+
export interface IAgentHostSettingsLocale {
|
|
24
|
+
/** Header comment line describing the document. */
|
|
25
|
+
readonly header: string;
|
|
26
|
+
/** Secondary hint comment describing save semantics. */
|
|
27
|
+
readonly saveHint: string;
|
|
28
|
+
/** Error message thrown when the document fails to parse as JSONC. */
|
|
29
|
+
readonly parseError: string;
|
|
30
|
+
/** Error message thrown when the parsed document is not a JSON object. */
|
|
31
|
+
readonly notObject: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Convert a config property schema (protocol shape) into an
|
|
35
|
+
* {@link IJSONSchema} suitable for registration with the JSON language
|
|
36
|
+
* service.
|
|
37
|
+
*/
|
|
38
|
+
export declare function convertPropertySchema(schema: ConfigPropertySchema): IJSONSchema;
|
|
39
|
+
/**
|
|
40
|
+
* Build a JSON schema describing the filtered properties of an agent-host
|
|
41
|
+
* config. Properties that pass {@link filter} are included; others are
|
|
42
|
+
* dropped. `required` entries are carried through when the referenced
|
|
43
|
+
* property survives the filter.
|
|
44
|
+
*/
|
|
45
|
+
export declare function buildAgentHostConfigJsonSchema(config: IAgentHostConfigLike, filter: AgentHostConfigPropertyFilter): IJSONSchema;
|
|
46
|
+
/**
|
|
47
|
+
* Serialize the filtered config values into a commented, pretty-printed
|
|
48
|
+
* JSONC document.
|
|
49
|
+
*/
|
|
50
|
+
export declare function serializeAgentHostConfigDocument(config: IAgentHostConfigLike | undefined, filter: AgentHostConfigPropertyFilter, locale: IAgentHostSettingsLocale): string;
|
|
51
|
+
/**
|
|
52
|
+
* Abstract filesystem provider backing the synthetic agent-host settings
|
|
53
|
+
* JSONC editors. Subclasses supply scheme-specific URI parsing, target
|
|
54
|
+
* resolution (e.g. a sessions provider, or the ambient agent host),
|
|
55
|
+
* config-fetching, change-watching, and replace-dispatch hooks; the base
|
|
56
|
+
* handles the boilerplate (`stat`/`readFile`/`writeFile`/error shapes).
|
|
57
|
+
*/
|
|
58
|
+
export declare abstract class AbstractAgentHostConfigFileSystemProvider<TContext, TTarget> extends Disposable implements IFileSystemProviderWithFileReadWriteCapability {
|
|
59
|
+
protected readonly _logService: ILogService;
|
|
60
|
+
readonly capabilities: number;
|
|
61
|
+
private readonly _onDidChangeCapabilities;
|
|
62
|
+
readonly onDidChangeCapabilities: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
63
|
+
protected readonly _onDidChangeFile: Emitter<readonly IFileChange[]>;
|
|
64
|
+
readonly onDidChangeFile: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<readonly IFileChange[]>;
|
|
65
|
+
constructor(_logService: ILogService);
|
|
66
|
+
/** URI scheme label used in error messages (e.g. `'agent-host-settings'`). */
|
|
67
|
+
protected abstract readonly _schemeLabel: string;
|
|
68
|
+
/** Log trace-tag (e.g. `'AgentHostSettings'`). */
|
|
69
|
+
protected abstract readonly _traceTag: string;
|
|
70
|
+
/** Localized strings for the JSONC document and write-path errors. */
|
|
71
|
+
protected abstract readonly _locale: IAgentHostSettingsLocale;
|
|
72
|
+
/** Parse a URI of the subclass's scheme into a typed context. */
|
|
73
|
+
protected abstract _parseUri(resource: URI): TContext | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Resolve the backing target (e.g. a sessions provider, the ambient
|
|
76
|
+
* agent host, a refcounted session subscription) for a parsed context.
|
|
77
|
+
* Called once per {@link stat}/{@link readFile}/{@link writeFile} call
|
|
78
|
+
* and once per {@link watch} call; every resolution that returns a
|
|
79
|
+
* target is paired with exactly one {@link _releaseTarget} call (see
|
|
80
|
+
* there for the ownership contract). Returning `undefined` signals the
|
|
81
|
+
* target genuinely could not be resolved (e.g. an unknown provider id) -
|
|
82
|
+
* a target whose backing value is merely pending or errored should still
|
|
83
|
+
* be resolved and returned so callers can render that state.
|
|
84
|
+
*/
|
|
85
|
+
protected abstract _resolveTarget(ctx: TContext): TTarget | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Release a target obtained from {@link _resolveTarget}. Called exactly
|
|
88
|
+
* once for every resolution that returned a defined target: after
|
|
89
|
+
* {@link stat}/{@link readFile}/{@link writeFile} complete (including on
|
|
90
|
+
* error), and when a {@link watch} caller disposes its returned
|
|
91
|
+
* disposable. Default is a no-op for targets with no per-resolution
|
|
92
|
+
* ownership (e.g. a shared provider or the ambient agent host);
|
|
93
|
+
* subclasses whose {@link _resolveTarget} acquires a scoped resource
|
|
94
|
+
* (e.g. a refcounted subscription reference) must override this to
|
|
95
|
+
* release it symmetrically.
|
|
96
|
+
*/
|
|
97
|
+
protected _releaseTarget(_target: TTarget, _ctx: TContext): void;
|
|
98
|
+
/** Error to throw when {@link _resolveTarget} returns `undefined` for a parsed context. */
|
|
99
|
+
protected _missingTargetError(_ctx: TContext): Error;
|
|
100
|
+
/** Render the current config for a context as a JSONC document. */
|
|
101
|
+
protected abstract _serialize(target: TTarget, ctx: TContext): string;
|
|
102
|
+
/**
|
|
103
|
+
* Subscribe for changes relevant to the given context. When a change is
|
|
104
|
+
* detected the subclass should invoke {@link fire}.
|
|
105
|
+
*/
|
|
106
|
+
protected abstract _watchChanges(target: TTarget, ctx: TContext, fire: () => void): IDisposable;
|
|
107
|
+
/** Register / refresh the JSON schema for the given context. */
|
|
108
|
+
protected abstract _ensureSchemaRegistered(target: TTarget, ctx: TContext): void;
|
|
109
|
+
/** Whether the backing config is currently available. */
|
|
110
|
+
protected abstract _hasConfig(target: TTarget, ctx: TContext): boolean;
|
|
111
|
+
/** Dispatch a replace write of the parsed JSONC document. */
|
|
112
|
+
protected abstract _replaceConfig(target: TTarget, ctx: TContext, values: Record<string, unknown>): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* Build a short human-readable description of `ctx` for log messages
|
|
115
|
+
* when a write is ignored due to missing config (e.g. a session id).
|
|
116
|
+
*/
|
|
117
|
+
protected abstract _describeForTrace(ctx: TContext): string;
|
|
118
|
+
watch(resource: URI, _opts: IWatchOptions): IDisposable;
|
|
119
|
+
stat(resource: URI): Promise<IStat>;
|
|
120
|
+
readdir(): Promise<[
|
|
121
|
+
string,
|
|
122
|
+
FileType
|
|
123
|
+
][]>;
|
|
124
|
+
readFile(resource: URI): Promise<Uint8Array>;
|
|
125
|
+
writeFile(resource: URI, content: Uint8Array, _opts: IFileWriteOptions): Promise<void>;
|
|
126
|
+
mkdir(): Promise<void>;
|
|
127
|
+
delete(_resource: URI, _opts: IFileDeleteOptions): Promise<void>;
|
|
128
|
+
rename(_from: URI, _to: URI, _opts: IFileOverwriteOptions): Promise<void>;
|
|
129
|
+
private _resolveOrThrow;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Abstract base for the schema registrars that keep JSON schemas registered
|
|
133
|
+
* on the {@link IJSONContributionRegistry} for the synthetic settings
|
|
134
|
+
* editors. Subclasses plumb the target type that identifies what a schema
|
|
135
|
+
* belongs to (an `ISession`/`IAgentHostSessionsProvider` for the sessions
|
|
136
|
+
* window, the ambient `IAgentHostService` for the editor window) and any
|
|
137
|
+
* lifecycle needed to discover/observe/dispose targets.
|
|
138
|
+
*
|
|
139
|
+
* Registration is lazy - {@link ensureRegistered} is called by the
|
|
140
|
+
* filesystem provider when a settings file is first read.
|
|
141
|
+
*/
|
|
142
|
+
export declare abstract class AbstractAgentHostConfigSchemaRegistrar<TTarget> extends Disposable {
|
|
143
|
+
private readonly _schemaRegistry;
|
|
144
|
+
/** Per-target registered-schema disposables, keyed by the settings URI string. */
|
|
145
|
+
private readonly _targetSchemas;
|
|
146
|
+
/**
|
|
147
|
+
* Tracks the {@link ConfigSchema} identity last used to register a schema
|
|
148
|
+
* for a given settings URI so we can skip re-registration when only
|
|
149
|
+
* values have changed.
|
|
150
|
+
*/
|
|
151
|
+
private readonly _lastSchemaIdentity;
|
|
152
|
+
/** Stringified URI identifying the settings document for a target. */
|
|
153
|
+
protected abstract _settingsUri(target: TTarget): string;
|
|
154
|
+
/** `vscode://schemas/...` schema id used for JSON language service registration. */
|
|
155
|
+
protected abstract _schemaId(target: TTarget): string;
|
|
156
|
+
/** Fetch the backing config for a target. Returns `undefined` when none yet. */
|
|
157
|
+
protected abstract _getConfig(target: TTarget): IAgentHostConfigLike | undefined;
|
|
158
|
+
/** Filter applied to schema properties when building the JSON schema. */
|
|
159
|
+
protected abstract _propertyFilter(): AgentHostConfigPropertyFilter;
|
|
160
|
+
/**
|
|
161
|
+
* Ensures a JSON schema is registered for the given target. Safe to
|
|
162
|
+
* call repeatedly; a no-op when the cached schema identity matches.
|
|
163
|
+
*/
|
|
164
|
+
ensureRegistered(target: TTarget): void;
|
|
165
|
+
/** Whether a schema is currently registered for `target`. */
|
|
166
|
+
protected _isRegistered(target: TTarget): boolean;
|
|
167
|
+
protected _refreshSchema(target: TTarget): void;
|
|
168
|
+
protected _disposeSchemaForTarget(target: TTarget): void;
|
|
169
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
4
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
5
|
+
import { parse } from '@codingame/monaco-vscode-api/vscode/vs/base/common/json';
|
|
6
|
+
import { Disposable, toDisposable, DisposableMap, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import { FileSystemProviderCapabilities, createFileSystemProviderError, FileSystemProviderErrorCode, FileChangeType, FileType } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
8
|
+
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/jsonschemas/common/jsonContributionRegistry';
|
|
9
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
10
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
11
|
+
|
|
12
|
+
function convertPropertySchema(schema) {
|
|
13
|
+
const out = {
|
|
14
|
+
type: schema.type,
|
|
15
|
+
title: schema.title,
|
|
16
|
+
description: schema.description,
|
|
17
|
+
default: schema.default
|
|
18
|
+
};
|
|
19
|
+
if (schema.enum && schema.enum.length > 0) {
|
|
20
|
+
out.enum = [...schema.enum];
|
|
21
|
+
if (schema.enumDescriptions && schema.enumDescriptions.length > 0) {
|
|
22
|
+
out.enumDescriptions = [...schema.enumDescriptions];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (schema.type === "array" && schema.items) {
|
|
26
|
+
out.items = convertPropertySchema(schema.items);
|
|
27
|
+
}
|
|
28
|
+
if (schema.type === "object" && schema.properties) {
|
|
29
|
+
const properties = {};
|
|
30
|
+
for (const [key, value] of Object.entries(schema.properties)) {
|
|
31
|
+
properties[key] = convertPropertySchema(value);
|
|
32
|
+
}
|
|
33
|
+
out.properties = properties;
|
|
34
|
+
if (schema.required && schema.required.length > 0) {
|
|
35
|
+
out.required = [...schema.required];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return out;
|
|
39
|
+
}
|
|
40
|
+
function buildAgentHostConfigJsonSchema(config, filter) {
|
|
41
|
+
const properties = {};
|
|
42
|
+
const required = [];
|
|
43
|
+
for (const [key, schema] of Object.entries(config.schema.properties)) {
|
|
44
|
+
if (!filter(key, schema)) {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
properties[key] = convertPropertySchema(schema);
|
|
48
|
+
if (config.schema.required?.includes(key)) {
|
|
49
|
+
required.push(key);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const result = {
|
|
53
|
+
type: "object",
|
|
54
|
+
properties,
|
|
55
|
+
additionalProperties: true
|
|
56
|
+
};
|
|
57
|
+
if (required.length > 0) {
|
|
58
|
+
result.required = required;
|
|
59
|
+
}
|
|
60
|
+
return result;
|
|
61
|
+
}
|
|
62
|
+
function buildHeaderComment(locale, props) {
|
|
63
|
+
const lines = [];
|
|
64
|
+
lines.push(`// ${locale.header}`);
|
|
65
|
+
lines.push(`// ${locale.saveHint}`);
|
|
66
|
+
if (props && props.length > 0) {
|
|
67
|
+
lines.push("//");
|
|
68
|
+
for (const [key, schema] of props) {
|
|
69
|
+
const suffix = schema.enum && schema.enum.length > 0 ? ` (${schema.enum.join(" | ")})` : "";
|
|
70
|
+
const title = schema.title || key;
|
|
71
|
+
lines.push(`// ${key}: ${title}${suffix}`);
|
|
72
|
+
if (schema.description) {
|
|
73
|
+
lines.push(`// ${schema.description}`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
lines.push("");
|
|
78
|
+
return lines.join("\n");
|
|
79
|
+
}
|
|
80
|
+
function serializeAgentHostConfigDocument(config, filter, locale) {
|
|
81
|
+
if (!config) {
|
|
82
|
+
return `${buildHeaderComment(locale, undefined)}{}\n`;
|
|
83
|
+
}
|
|
84
|
+
const editableProps = Object.entries(config.schema.properties).filter(([key, schema]) => filter(key, schema));
|
|
85
|
+
const values = {};
|
|
86
|
+
for (const [key] of editableProps) {
|
|
87
|
+
if (config.values[key] !== undefined) {
|
|
88
|
+
values[key] = config.values[key];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return `${buildHeaderComment(locale, editableProps)}${JSON.stringify(values, null, 2)}\n`;
|
|
92
|
+
}
|
|
93
|
+
let AbstractAgentHostConfigFileSystemProvider = class AbstractAgentHostConfigFileSystemProvider extends Disposable {
|
|
94
|
+
constructor(_logService) {
|
|
95
|
+
super();
|
|
96
|
+
this._logService = _logService;
|
|
97
|
+
this.capabilities = FileSystemProviderCapabilities.FileReadWrite | FileSystemProviderCapabilities.PathCaseSensitive;
|
|
98
|
+
this._onDidChangeCapabilities = this._register(( new Emitter()));
|
|
99
|
+
this.onDidChangeCapabilities = this._onDidChangeCapabilities.event;
|
|
100
|
+
this._onDidChangeFile = this._register(( new Emitter()));
|
|
101
|
+
this.onDidChangeFile = this._onDidChangeFile.event;
|
|
102
|
+
}
|
|
103
|
+
_releaseTarget(_target, _ctx) {}
|
|
104
|
+
_missingTargetError(_ctx) {
|
|
105
|
+
return createFileSystemProviderError(
|
|
106
|
+
`${this._schemeLabel} target is not available`,
|
|
107
|
+
FileSystemProviderErrorCode.FileNotFound
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
watch(resource, _opts) {
|
|
111
|
+
const parsed = this._parseUri(resource);
|
|
112
|
+
if (!parsed) {
|
|
113
|
+
return Disposable.None;
|
|
114
|
+
}
|
|
115
|
+
const target = this._resolveTarget(parsed);
|
|
116
|
+
if (!target) {
|
|
117
|
+
return Disposable.None;
|
|
118
|
+
}
|
|
119
|
+
const watcher = this._watchChanges(target, parsed, () => {
|
|
120
|
+
this._onDidChangeFile.fire([{
|
|
121
|
+
type: FileChangeType.UPDATED,
|
|
122
|
+
resource
|
|
123
|
+
}]);
|
|
124
|
+
});
|
|
125
|
+
return toDisposable(() => {
|
|
126
|
+
watcher.dispose();
|
|
127
|
+
this._releaseTarget(target, parsed);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
async stat(resource) {
|
|
131
|
+
const {
|
|
132
|
+
target,
|
|
133
|
+
ctx
|
|
134
|
+
} = this._resolveOrThrow(resource);
|
|
135
|
+
try {
|
|
136
|
+
const content = this._serialize(target, ctx);
|
|
137
|
+
return {
|
|
138
|
+
type: FileType.File,
|
|
139
|
+
ctime: 0,
|
|
140
|
+
mtime: 0,
|
|
141
|
+
size: VSBuffer.fromString(content).byteLength,
|
|
142
|
+
permissions: 0
|
|
143
|
+
};
|
|
144
|
+
} finally {
|
|
145
|
+
this._releaseTarget(target, ctx);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
async readdir() {
|
|
149
|
+
throw createFileSystemProviderError("readdir not supported", FileSystemProviderErrorCode.NoPermissions);
|
|
150
|
+
}
|
|
151
|
+
async readFile(resource) {
|
|
152
|
+
const {
|
|
153
|
+
target,
|
|
154
|
+
ctx
|
|
155
|
+
} = this._resolveOrThrow(resource);
|
|
156
|
+
try {
|
|
157
|
+
const content = this._serialize(target, ctx);
|
|
158
|
+
this._ensureSchemaRegistered(target, ctx);
|
|
159
|
+
return VSBuffer.fromString(content).buffer;
|
|
160
|
+
} finally {
|
|
161
|
+
this._releaseTarget(target, ctx);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
async writeFile(resource, content, _opts) {
|
|
165
|
+
const {
|
|
166
|
+
target,
|
|
167
|
+
ctx
|
|
168
|
+
} = this._resolveOrThrow(resource);
|
|
169
|
+
try {
|
|
170
|
+
const text = ( VSBuffer.wrap(content).toString());
|
|
171
|
+
const errors = [];
|
|
172
|
+
const parsedJson = parse(text, errors);
|
|
173
|
+
if (errors.length > 0) {
|
|
174
|
+
throw createFileSystemProviderError(this._locale.parseError, FileSystemProviderErrorCode.Unavailable);
|
|
175
|
+
}
|
|
176
|
+
if (parsedJson === null || typeof parsedJson !== "object" || Array.isArray(parsedJson)) {
|
|
177
|
+
throw createFileSystemProviderError(this._locale.notObject, FileSystemProviderErrorCode.Unavailable);
|
|
178
|
+
}
|
|
179
|
+
if (!this._hasConfig(target, ctx)) {
|
|
180
|
+
this._logService.trace(
|
|
181
|
+
`[${this._traceTag}] No config state for ${this._describeForTrace(ctx)}; ignoring write.`
|
|
182
|
+
);
|
|
183
|
+
this._onDidChangeFile.fire([{
|
|
184
|
+
type: FileChangeType.UPDATED,
|
|
185
|
+
resource
|
|
186
|
+
}]);
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
await this._replaceConfig(target, ctx, parsedJson);
|
|
190
|
+
this._onDidChangeFile.fire([{
|
|
191
|
+
type: FileChangeType.UPDATED,
|
|
192
|
+
resource
|
|
193
|
+
}]);
|
|
194
|
+
} finally {
|
|
195
|
+
this._releaseTarget(target, ctx);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
async mkdir() {
|
|
199
|
+
throw createFileSystemProviderError("mkdir not supported", FileSystemProviderErrorCode.NoPermissions);
|
|
200
|
+
}
|
|
201
|
+
async delete(_resource, _opts) {
|
|
202
|
+
throw createFileSystemProviderError("delete not supported", FileSystemProviderErrorCode.NoPermissions);
|
|
203
|
+
}
|
|
204
|
+
async rename(_from, _to, _opts) {
|
|
205
|
+
throw createFileSystemProviderError("rename not supported", FileSystemProviderErrorCode.NoPermissions);
|
|
206
|
+
}
|
|
207
|
+
_resolveOrThrow(resource) {
|
|
208
|
+
const ctx = this._parseUri(resource);
|
|
209
|
+
if (!ctx) {
|
|
210
|
+
throw createFileSystemProviderError(`Invalid ${this._schemeLabel} URI: ${( resource.toString())}`, FileSystemProviderErrorCode.FileNotFound);
|
|
211
|
+
}
|
|
212
|
+
const target = this._resolveTarget(ctx);
|
|
213
|
+
if (!target) {
|
|
214
|
+
throw this._missingTargetError(ctx);
|
|
215
|
+
}
|
|
216
|
+
return {
|
|
217
|
+
target,
|
|
218
|
+
ctx
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
AbstractAgentHostConfigFileSystemProvider = ( __decorate([( __param(0, ILogService))], AbstractAgentHostConfigFileSystemProvider));
|
|
223
|
+
class AbstractAgentHostConfigSchemaRegistrar extends Disposable {
|
|
224
|
+
constructor() {
|
|
225
|
+
super(...arguments);
|
|
226
|
+
this._schemaRegistry = ( Registry.as(Extensions.JSONContribution));
|
|
227
|
+
this._targetSchemas = this._register(( new DisposableMap()));
|
|
228
|
+
this._lastSchemaIdentity = ( new Map());
|
|
229
|
+
}
|
|
230
|
+
ensureRegistered(target) {
|
|
231
|
+
this._refreshSchema(target);
|
|
232
|
+
}
|
|
233
|
+
_isRegistered(target) {
|
|
234
|
+
return ( this._lastSchemaIdentity.has(this._settingsUri(target)));
|
|
235
|
+
}
|
|
236
|
+
_refreshSchema(target) {
|
|
237
|
+
const config = this._getConfig(target);
|
|
238
|
+
if (!config) {
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
const settingsUri = this._settingsUri(target);
|
|
242
|
+
const identity = config.schema;
|
|
243
|
+
if (this._lastSchemaIdentity.get(settingsUri) === identity) {
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
const schema = buildAgentHostConfigJsonSchema(config, this._propertyFilter());
|
|
247
|
+
const schemaId = this._schemaId(target);
|
|
248
|
+
this._targetSchemas.deleteAndDispose(settingsUri);
|
|
249
|
+
const store = ( new DisposableStore());
|
|
250
|
+
this._schemaRegistry.registerSchema(schemaId, schema, store);
|
|
251
|
+
store.add(this._schemaRegistry.registerSchemaAssociation(schemaId, settingsUri));
|
|
252
|
+
store.add(toDisposable(() => this._lastSchemaIdentity.delete(settingsUri)));
|
|
253
|
+
this._targetSchemas.set(settingsUri, store);
|
|
254
|
+
this._lastSchemaIdentity.set(settingsUri, identity);
|
|
255
|
+
}
|
|
256
|
+
_disposeSchemaForTarget(target) {
|
|
257
|
+
this._targetSchemas.deleteAndDispose(this._settingsUri(target));
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export { AbstractAgentHostConfigFileSystemProvider, AbstractAgentHostConfigSchemaRegistrar, buildAgentHostConfigJsonSchema, convertPropertySchema, serializeAgentHostConfigDocument };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IAgentHostEnablementService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentHostEnablementService.service";
|
|
3
|
+
import { IAgentHostService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService.service";
|
|
4
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
+
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
6
|
+
/**
|
|
7
|
+
* Forwards Copilot-CLI settings into the **local** agent host's root config so
|
|
8
|
+
* `CopilotAgent` and `CopilotSessionLauncher` can read them. Gated on
|
|
9
|
+
* Agent Host runtime availability. The schema-gate / hydration-retry / loop-guard
|
|
10
|
+
* machinery lives in the shared
|
|
11
|
+
* {@link AgentHostRootConfigForwarder}; this contribution only declares the keys.
|
|
12
|
+
*/
|
|
13
|
+
export declare class AgentHostCopilotCliSettingsContribution extends Disposable implements IWorkbenchContribution {
|
|
14
|
+
private readonly _configurationService;
|
|
15
|
+
private readonly _agentHostEnablementService;
|
|
16
|
+
static readonly ID = "workbench.contrib.agentHostCopilotCliSettings";
|
|
17
|
+
private readonly _forwarder;
|
|
18
|
+
constructor(agentHostService: IAgentHostService, _configurationService: IConfigurationService, _agentHostEnablementService: IAgentHostEnablementService);
|
|
19
|
+
private _pushOnSettingChange;
|
|
20
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
5
|
+
import { isObject } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
6
|
+
import { IAgentHostEnablementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentHostEnablementService.service';
|
|
7
|
+
import { IAgentHostService } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService.service';
|
|
8
|
+
import { CopilotCliConfigKey, AgentHostCopilotSdkLogLevelSettingId, AgentHostOpus48PromptEnabledSettingId, CopilotClaudeAdvisorEnabledSettingId, AgentHostToolSearchEnabledSettingId, AgentHostToolSearchDeferThresholdSettingId, normalizeToolSearchDeferThreshold, AgentHostReasoningSummaryEnabledSettingId, CopilotAutoModeTiersEnabledSettingId, CopilotAutoModeTierOverrideSettingId, CopilotSubagentModelGuidanceEnabledSettingId, AgentHostCopilotModelCapabilityOverridesSettingId, AgentHostShellToolInitScriptEnabledSettingId } from '@codingame/monaco-vscode-katex-common/vscode/vs/platform/agentHost/common/copilotCliConfig';
|
|
9
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
|
+
import { AgentHostRootConfigForwarder } from './agentHostRootConfigForwarder.js';
|
|
11
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
12
|
+
|
|
13
|
+
let AgentHostCopilotCliSettingsContribution = class AgentHostCopilotCliSettingsContribution extends Disposable {
|
|
14
|
+
static {
|
|
15
|
+
this.ID = "workbench.contrib.agentHostCopilotCliSettings";
|
|
16
|
+
}
|
|
17
|
+
constructor(agentHostService, _configurationService, _agentHostEnablementService) {
|
|
18
|
+
super();
|
|
19
|
+
this._configurationService = _configurationService;
|
|
20
|
+
this._agentHostEnablementService = _agentHostEnablementService;
|
|
21
|
+
const keys = [{
|
|
22
|
+
key: CopilotCliConfigKey.CopilotSdkLogLevel,
|
|
23
|
+
computeValue: () => this._configurationService.getValue(AgentHostCopilotSdkLogLevelSettingId) ?? "info",
|
|
24
|
+
registerTriggers: (store, push) => this._pushOnSettingChange(store, push, AgentHostCopilotSdkLogLevelSettingId)
|
|
25
|
+
}, {
|
|
26
|
+
key: CopilotCliConfigKey.Opus48Prompt,
|
|
27
|
+
computeValue: () => this._configurationService.getValue(AgentHostOpus48PromptEnabledSettingId) === true,
|
|
28
|
+
registerTriggers: (store, push) => this._pushOnSettingChange(store, push, AgentHostOpus48PromptEnabledSettingId)
|
|
29
|
+
}, {
|
|
30
|
+
key: CopilotCliConfigKey.ClaudeAdvisor,
|
|
31
|
+
computeValue: () => this._configurationService.getValue(CopilotClaudeAdvisorEnabledSettingId) === true,
|
|
32
|
+
registerTriggers: (store, push) => this._pushOnSettingChange(store, push, CopilotClaudeAdvisorEnabledSettingId)
|
|
33
|
+
}, {
|
|
34
|
+
key: CopilotCliConfigKey.ToolSearchEnabled,
|
|
35
|
+
computeValue: () => this._configurationService.getValue(AgentHostToolSearchEnabledSettingId) === true,
|
|
36
|
+
registerTriggers: (store, push) => this._pushOnSettingChange(store, push, AgentHostToolSearchEnabledSettingId)
|
|
37
|
+
}, {
|
|
38
|
+
key: CopilotCliConfigKey.ToolSearchDeferThreshold,
|
|
39
|
+
computeValue: () => normalizeToolSearchDeferThreshold(
|
|
40
|
+
this._configurationService.getValue(AgentHostToolSearchDeferThresholdSettingId)
|
|
41
|
+
),
|
|
42
|
+
registerTriggers: (store, push) => this._pushOnSettingChange(store, push, AgentHostToolSearchDeferThresholdSettingId)
|
|
43
|
+
}, {
|
|
44
|
+
key: CopilotCliConfigKey.ReasoningSummary,
|
|
45
|
+
computeValue: () => this._configurationService.getValue(AgentHostReasoningSummaryEnabledSettingId),
|
|
46
|
+
registerTriggers: (store, push) => this._pushOnSettingChange(store, push, AgentHostReasoningSummaryEnabledSettingId)
|
|
47
|
+
}, {
|
|
48
|
+
key: CopilotCliConfigKey.AutoModeTiers,
|
|
49
|
+
computeValue: () => this._configurationService.getValue(CopilotAutoModeTiersEnabledSettingId) === true,
|
|
50
|
+
registerTriggers: (store, push) => this._pushOnSettingChange(store, push, CopilotAutoModeTiersEnabledSettingId)
|
|
51
|
+
}, {
|
|
52
|
+
key: CopilotCliConfigKey.AutoModeTierOverride,
|
|
53
|
+
computeValue: () => this._configurationService.getValue(CopilotAutoModeTierOverrideSettingId) ?? "",
|
|
54
|
+
registerTriggers: (store, push) => this._pushOnSettingChange(store, push, CopilotAutoModeTierOverrideSettingId)
|
|
55
|
+
}, {
|
|
56
|
+
key: CopilotCliConfigKey.SubagentModelGuidance,
|
|
57
|
+
computeValue: () => this._configurationService.getValue(CopilotSubagentModelGuidanceEnabledSettingId) === true,
|
|
58
|
+
registerTriggers: (store, push) => this._pushOnSettingChange(store, push, CopilotSubagentModelGuidanceEnabledSettingId)
|
|
59
|
+
}, {
|
|
60
|
+
key: CopilotCliConfigKey.ModelCapabilityOverrides,
|
|
61
|
+
computeValue: () => {
|
|
62
|
+
const value = this._configurationService.getValue(AgentHostCopilotModelCapabilityOverridesSettingId);
|
|
63
|
+
return isObject(value) ? value : {};
|
|
64
|
+
},
|
|
65
|
+
registerTriggers: (store, push) => this._pushOnSettingChange(store, push, AgentHostCopilotModelCapabilityOverridesSettingId)
|
|
66
|
+
}, {
|
|
67
|
+
key: CopilotCliConfigKey.EnableShellInitScript,
|
|
68
|
+
computeValue: () => this._configurationService.getValue(AgentHostShellToolInitScriptEnabledSettingId) === true,
|
|
69
|
+
registerTriggers: (store, push) => this._pushOnSettingChange(store, push, AgentHostShellToolInitScriptEnabledSettingId)
|
|
70
|
+
}];
|
|
71
|
+
this._forwarder = this._register(( new AgentHostRootConfigForwarder(keys, agentHostService)));
|
|
72
|
+
this._register(autorun(reader => {
|
|
73
|
+
if (this._agentHostEnablementService.enabled.read(reader)) {
|
|
74
|
+
this._forwarder.start();
|
|
75
|
+
} else {
|
|
76
|
+
this._forwarder.stop();
|
|
77
|
+
}
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
_pushOnSettingChange(store, push, settingId) {
|
|
81
|
+
store.add(this._configurationService.onDidChangeConfiguration(e => {
|
|
82
|
+
if (e.affectsConfiguration(settingId)) {
|
|
83
|
+
push();
|
|
84
|
+
}
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
AgentHostCopilotCliSettingsContribution = ( __decorate([( __param(0, IAgentHostService)), ( __param(1, IConfigurationService)), ( __param(2, IAgentHostEnablementService))], AgentHostCopilotCliSettingsContribution));
|
|
89
|
+
|
|
90
|
+
export { AgentHostCopilotCliSettingsContribution };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { type ProgressParams } from "../../../../../../platform/agentHost/common/state/sessionActions.js";
|
|
3
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
4
|
+
import { IProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service";
|
|
5
|
+
/**
|
|
6
|
+
* Renders agent-host `progress` notifications as notification progress bars.
|
|
7
|
+
*
|
|
8
|
+
* Shared by the Agents window (via `BaseAgentHostSessionsProvider`) and the
|
|
9
|
+
* editor window (via `AgentHostContribution`) so both surfaces render the
|
|
10
|
+
* agent host's lazy, first-use SDK download identically.
|
|
11
|
+
*
|
|
12
|
+
* Progress is correlated by {@link ProgressParams.progressToken}; today's only
|
|
13
|
+
* producer is the SDK download, which the host surfaces as a single stream per
|
|
14
|
+
* provider keyed by the download's own stable identity — so one indicator per
|
|
15
|
+
* download regardless of how many sessions await it. Determinate when the host
|
|
16
|
+
* knows the `total` (`Content-Length`), or a byte-count spinner otherwise. The
|
|
17
|
+
* operation is complete — and the notification dismissed — once
|
|
18
|
+
* `progress >= total`. The human-readable brand noun rides on
|
|
19
|
+
* {@link ProgressParams.message}.
|
|
20
|
+
*/
|
|
21
|
+
export declare class AgentHostDownloadProgress extends Disposable {
|
|
22
|
+
private readonly _progressService;
|
|
23
|
+
private readonly _configurationService;
|
|
24
|
+
/**
|
|
25
|
+
* Active progress indicators keyed by `progressToken`. The host emits a
|
|
26
|
+
* single stream per download keyed by the download's own stable identity
|
|
27
|
+
* (so distinct sessions of a provider share one indicator). Each entry owns
|
|
28
|
+
* one long-running notification progress (opened on the first frame), driven
|
|
29
|
+
* via {@link IActiveDownload.report} and dismissed via
|
|
30
|
+
* {@link IActiveDownload.complete} once `progress >= total`.
|
|
31
|
+
*/
|
|
32
|
+
private readonly _activeDownloads;
|
|
33
|
+
constructor(_progressService: IProgressService, _configurationService: IConfigurationService);
|
|
34
|
+
handleProgress(progress: ProgressParams): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { DeferredPromise } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
|
+
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
7
|
+
import { ProgressLocation } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress';
|
|
8
|
+
import { IProgressService } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service';
|
|
9
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
10
|
+
import { ChatAIDisabledSettingId } from '@codingame/monaco-vscode-api/vscode/vs/platform/chat/common/chatSettings';
|
|
11
|
+
|
|
12
|
+
let AgentHostDownloadProgress = class AgentHostDownloadProgress extends Disposable {
|
|
13
|
+
constructor(_progressService, _configurationService) {
|
|
14
|
+
super();
|
|
15
|
+
this._progressService = _progressService;
|
|
16
|
+
this._configurationService = _configurationService;
|
|
17
|
+
this._activeDownloads = ( new Map());
|
|
18
|
+
this._register(toDisposable(() => {
|
|
19
|
+
for (const download of ( this._activeDownloads.values())) {
|
|
20
|
+
download.complete();
|
|
21
|
+
}
|
|
22
|
+
this._activeDownloads.clear();
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
handleProgress(progress) {
|
|
26
|
+
if (this._configurationService.getValue(ChatAIDisabledSettingId)) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const isComplete = progress.total !== undefined && progress.progress >= progress.total;
|
|
30
|
+
if (isComplete) {
|
|
31
|
+
this._activeDownloads.get(progress.progressToken)?.complete();
|
|
32
|
+
this._activeDownloads.delete(progress.progressToken);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
let entry = this._activeDownloads.get(progress.progressToken);
|
|
36
|
+
if (!entry) {
|
|
37
|
+
const deferred = ( new DeferredPromise());
|
|
38
|
+
let report;
|
|
39
|
+
const title = progress.message ?? ( localize(6013, "Downloading"));
|
|
40
|
+
this._progressService.withProgress({
|
|
41
|
+
location: ProgressLocation.Notification,
|
|
42
|
+
title
|
|
43
|
+
}, p => {
|
|
44
|
+
report = step => p.report(step);
|
|
45
|
+
return deferred.p;
|
|
46
|
+
});
|
|
47
|
+
entry = {
|
|
48
|
+
lastPercent: 0,
|
|
49
|
+
report: step => report?.(step),
|
|
50
|
+
complete: () => deferred.complete()
|
|
51
|
+
};
|
|
52
|
+
this._activeDownloads.set(progress.progressToken, entry);
|
|
53
|
+
}
|
|
54
|
+
if (progress.total && progress.total > 0) {
|
|
55
|
+
const percent = Math.max(0, Math.min(100, Math.round((progress.progress / progress.total) * 100)));
|
|
56
|
+
const increment = percent - entry.lastPercent;
|
|
57
|
+
entry.lastPercent = percent;
|
|
58
|
+
entry.report({
|
|
59
|
+
message: ( localize(6014, "{0}%", percent)),
|
|
60
|
+
increment: increment > 0 ? increment : 0,
|
|
61
|
+
total: 100
|
|
62
|
+
});
|
|
63
|
+
} else {
|
|
64
|
+
const megabytes = (progress.progress / (1024 * 1024)).toFixed(1);
|
|
65
|
+
entry.report({
|
|
66
|
+
message: ( localize(6015, "{0} MB", megabytes))
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
AgentHostDownloadProgress = ( __decorate([( __param(0, IProgressService)), ( __param(1, IConfigurationService))], AgentHostDownloadProgress));
|
|
72
|
+
|
|
73
|
+
export { AgentHostDownloadProgress };
|