@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
|
@@ -88,7 +88,7 @@ import { OutputMonitorState } from './monitoring/types.js';
|
|
|
88
88
|
import { outputLooksSandboxBlocked, outputLooksSandboxNetworkBlocked, SandboxOutputAnalyzer } from './sandboxOutputAnalyzer.js';
|
|
89
89
|
import { TerminalCommandArtifactCollector } from './terminalCommandArtifactCollector.js';
|
|
90
90
|
import { isToolEligibleForTerminalAutoApproval, isTerminalAutoApproveAllowed, isSessionAutoApproveLevel } from './terminalToolAutoApprove.js';
|
|
91
|
-
import { TerminalToolId } from '@codingame/monaco-vscode-
|
|
91
|
+
import { TerminalToolId } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/common/tools/terminalToolIds';
|
|
92
92
|
import { TerminalSandboxPrerequisiteCheck } from '../../../../../../platform/sandbox/common/terminalSandboxService.js';
|
|
93
93
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
94
94
|
import { ITerminalSandboxService } from '@codingame/monaco-vscode-api/vscode/vs/platform/sandbox/common/terminalSandboxService.service';
|
|
@@ -397,9 +397,9 @@ async function createRunInTerminalToolData(accessor) {
|
|
|
397
397
|
id: TerminalToolId.RunInTerminal,
|
|
398
398
|
toolReferenceName: TOOL_REFERENCE_NAME,
|
|
399
399
|
legacyToolReferenceFullNames: LEGACY_TOOL_REFERENCE_FULL_NAMES,
|
|
400
|
-
displayName: ( localize(
|
|
400
|
+
displayName: ( localize(17388, "Run in Terminal")),
|
|
401
401
|
modelDescription: `${modelDescription}\n\nExecution mode:\n- mode='sync' (strongly preferred): waits for the command to complete and returns full output inline. Use for ALL one-shot commands (builds, tests, installs, compilation, scripts). Omit timeout to let the command run to completion — the tool handles idle detection and input prompts automatically.\n- mode='async': waits for an initial idle/output signal from the command, then returns a terminal ID and output snapshot while the process continues running. Use ONLY for processes that must keep running indefinitely (servers, watchers, daemons). Timeout caps how long to wait for the initial idle/output signal.\n\nTimeout parameter: Usually omit timeout entirely for sync commands — the tool returns automatically on completion, input-needed, or cancellation. Only set a timeout as a safety net for commands you suspect might hang. Use 0 to explicitly indicate no timeout.\n\nSync output is final: When a sync command completes, the full output is returned inline — do NOT call ${TerminalToolId.GetTerminalOutput} afterward. Only use ${TerminalToolId.GetTerminalOutput} if the tool result explicitly indicates the command was moved to background, timed out, or needs input. Do NOT tell the user to check the terminal panel — all command output is already included in the tool result.\n\nTerminal notifications: When an async command finishes or a sync command times out, you will be automatically notified on your next turn with the exit code and terminal output. You will also be notified if the terminal needs input. Do NOT poll or sleep to wait for completion.`,
|
|
402
|
-
userDescription: ( localize(
|
|
402
|
+
userDescription: ( localize(17389, "Run commands in the terminal")),
|
|
403
403
|
source: ToolDataSource.Internal,
|
|
404
404
|
icon: Codicon.terminal,
|
|
405
405
|
inputSchema: {
|
|
@@ -468,7 +468,7 @@ function outputLooksBubblewrapHostRestricted(output) {
|
|
|
468
468
|
const telemetryIgnoredSequences = [
|
|
469
469
|
"\u001b[I",
|
|
470
470
|
"\u001b[O"];
|
|
471
|
-
const altBufferMessage = "\n" + ( localize(
|
|
471
|
+
const altBufferMessage = "\n" + ( localize(17390, "The command opened the alternate buffer."));
|
|
472
472
|
function buildCompletionNotificationCommand(command) {
|
|
473
473
|
const firstNewline = command.search(/\r|\n/);
|
|
474
474
|
const hasMoreLines = firstNewline !== -1;
|
|
@@ -560,13 +560,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
560
560
|
}
|
|
561
561
|
_getUnsandboxedExecutionDisabledMessage() {
|
|
562
562
|
return localize(
|
|
563
|
-
|
|
563
|
+
17391,
|
|
564
564
|
"The command was not executed because it requested to run outside the terminal sandbox, but running commands outside the sandbox is disabled by chat.agent.sandbox.allowUnsandboxedCommands. Run the command in the sandbox instead, or enable the setting to allow unsandboxed execution."
|
|
565
565
|
);
|
|
566
566
|
}
|
|
567
567
|
_getAllowNetworkRequestDisabledMessage() {
|
|
568
568
|
return localize(
|
|
569
|
-
|
|
569
|
+
17392,
|
|
570
570
|
"The command was not executed because it requested unrestricted network access in the terminal sandbox, but per-command network access is disabled by chat.agent.sandbox.retryWithAllowNetworkRequests. Run the command with restricted network access instead, or enable the setting to allow network access requests."
|
|
571
571
|
);
|
|
572
572
|
}
|
|
@@ -580,7 +580,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
580
580
|
_buildSandboxFileAccessDeniedMessage(deniedPaths) {
|
|
581
581
|
const deniedPathsMessage = ( deniedPaths.map(path => `write: ${path}`)).join("\n");
|
|
582
582
|
return localize(
|
|
583
|
-
|
|
583
|
+
17393,
|
|
584
584
|
"Access Denied: The command was not executed because the terminal sandbox does not allow access to the requested file paths:\n{0}",
|
|
585
585
|
deniedPathsMessage
|
|
586
586
|
);
|
|
@@ -711,13 +711,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
711
711
|
const partialInput = context.rawInput;
|
|
712
712
|
if (partialInput && typeof partialInput === "object" && partialInput.command) {
|
|
713
713
|
const truncatedCommand = buildCommandDisplayText(partialInput.command);
|
|
714
|
-
const invocationMessage = ( new MarkdownString(( localize(
|
|
714
|
+
const invocationMessage = ( new MarkdownString(( localize(17394, "Running `{0}`", escapeMarkdownSyntaxTokens(truncatedCommand)))));
|
|
715
715
|
return {
|
|
716
716
|
invocationMessage
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
719
|
return {
|
|
720
|
-
invocationMessage: ( localize(
|
|
720
|
+
invocationMessage: ( localize(17395, "Running command"))
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
723
|
async prepareToolInvocation(context, token) {
|
|
@@ -760,10 +760,10 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
760
760
|
const canInstallMissingDependencies = !!missingDependencies && sandboxPrereqs.canInstallMissingDependencies === true;
|
|
761
761
|
const sandboxRemediations = sandboxPrereqs.failedCheck === TerminalSandboxPrerequisiteCheck.Bubblewrap && sandboxPrereqs.remediations?.length ? [...sandboxPrereqs.remediations] : undefined;
|
|
762
762
|
const sandboxPrerequisiteFailure = sandboxPrereqs.failedCheck === TerminalSandboxPrerequisiteCheck.Bubblewrap && !sandboxRemediations ? ( localize(
|
|
763
|
-
|
|
763
|
+
17396,
|
|
764
764
|
"Bubblewrap is installed but cannot create the required sandbox namespace on this system. The command was not executed."
|
|
765
765
|
)) : missingDependencies && !canInstallMissingDependencies ? ( localize(
|
|
766
|
-
|
|
766
|
+
17397,
|
|
767
767
|
"The following dependencies required for sandboxed execution are not installed: {0}. Install them using your system package manager, then run the command again.",
|
|
768
768
|
missingDependencies.join(", ")
|
|
769
769
|
)) : undefined;
|
|
@@ -773,7 +773,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
773
773
|
const commandToDisplay = normalizeTerminalCommandForDisplay(args.command);
|
|
774
774
|
return {
|
|
775
775
|
invocationMessage: ( new MarkdownString(( localize(
|
|
776
|
-
|
|
776
|
+
17398,
|
|
777
777
|
"Not running `{0}` because unsandboxed execution is disabled",
|
|
778
778
|
escapeMarkdownSyntaxTokens(buildCommandDisplayText(commandToDisplay))
|
|
779
779
|
)))),
|
|
@@ -799,7 +799,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
799
799
|
const commandToDisplay = normalizeTerminalCommandForDisplay(args.command);
|
|
800
800
|
return {
|
|
801
801
|
invocationMessage: ( new MarkdownString(( localize(
|
|
802
|
-
|
|
802
|
+
17399,
|
|
803
803
|
"Not running `{0}` because unrestricted network access in the sandbox is disabled",
|
|
804
804
|
escapeMarkdownSyntaxTokens(buildCommandDisplayText(commandToDisplay))
|
|
805
805
|
)))),
|
|
@@ -865,19 +865,19 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
865
865
|
if (missingDependencies && canInstallMissingDependencies) {
|
|
866
866
|
const depsList = missingDependencies.join(", ");
|
|
867
867
|
sandboxPrerequisiteConfirmation = {
|
|
868
|
-
title: ( localize(
|
|
868
|
+
title: ( localize(17400, "Missing Sandbox Dependencies")),
|
|
869
869
|
message: ( new MarkdownString(( localize(
|
|
870
|
-
|
|
870
|
+
17401,
|
|
871
871
|
"The following dependencies required for sandboxed execution are not installed: {0}. Would you like to install them?",
|
|
872
872
|
depsList
|
|
873
873
|
)))),
|
|
874
874
|
customOptions: [{
|
|
875
875
|
id: "install",
|
|
876
|
-
label: ( localize(
|
|
876
|
+
label: ( localize(17402, "Install")),
|
|
877
877
|
kind: ConfirmationOptionKind.Approve
|
|
878
878
|
}, {
|
|
879
879
|
id: "cancel",
|
|
880
|
-
label: ( localize(
|
|
880
|
+
label: ( localize(17403, "Cancel")),
|
|
881
881
|
kind: ConfirmationOptionKind.Deny
|
|
882
882
|
}]
|
|
883
883
|
};
|
|
@@ -974,12 +974,12 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
974
974
|
cwdLabel: directoryLabel,
|
|
975
975
|
cdPrefix
|
|
976
976
|
};
|
|
977
|
-
confirmationTitle = ( localize(
|
|
977
|
+
confirmationTitle = ( localize(17404, "Run `{0}` command within `{1}`?", shellType, directoryLabel));
|
|
978
978
|
} else {
|
|
979
979
|
toolSpecificData.confirmation = {
|
|
980
980
|
commandLine: commandToDisplay
|
|
981
981
|
};
|
|
982
|
-
confirmationTitle = ( localize(
|
|
982
|
+
confirmationTitle = ( localize(17405, "Run `{0}` command?", shellType));
|
|
983
983
|
}
|
|
984
984
|
const commandForPresenter = extractedCd?.command ?? commandToDisplay;
|
|
985
985
|
let presenterInput = commandForPresenter;
|
|
@@ -1000,7 +1000,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1000
1000
|
if (extractedCd && toolSpecificData.confirmation?.cwdLabel) {
|
|
1001
1001
|
if (presenterResult.languageDisplayName) {
|
|
1002
1002
|
confirmationTitle = ( localize(
|
|
1003
|
-
|
|
1003
|
+
17406,
|
|
1004
1004
|
"Run `{0}` command in `{1}` within `{2}`?",
|
|
1005
1005
|
presenterResult.languageDisplayName,
|
|
1006
1006
|
shellType,
|
|
@@ -1008,7 +1008,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1008
1008
|
));
|
|
1009
1009
|
} else {
|
|
1010
1010
|
confirmationTitle = ( localize(
|
|
1011
|
-
|
|
1011
|
+
17407,
|
|
1012
1012
|
"Run command in `{0}` within `{1}`?",
|
|
1013
1013
|
shellType,
|
|
1014
1014
|
toolSpecificData.confirmation.cwdLabel
|
|
@@ -1017,13 +1017,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1017
1017
|
} else {
|
|
1018
1018
|
if (presenterResult.languageDisplayName) {
|
|
1019
1019
|
confirmationTitle = ( localize(
|
|
1020
|
-
|
|
1020
|
+
17408,
|
|
1021
1021
|
"Run `{0}` command in `{1}`?",
|
|
1022
1022
|
presenterResult.languageDisplayName,
|
|
1023
1023
|
shellType
|
|
1024
1024
|
));
|
|
1025
1025
|
} else {
|
|
1026
|
-
confirmationTitle = ( localize(
|
|
1026
|
+
confirmationTitle = ( localize(17409, "Run command in `{0}`?", shellType));
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
1029
|
if (!presenterResult.processOtherPresenters) {
|
|
@@ -1034,39 +1034,39 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
if (requiresUnsandboxConfirmation) {
|
|
1036
1036
|
confirmationTitle = blockedDomains?.length ? ( localize(
|
|
1037
|
-
|
|
1037
|
+
17410,
|
|
1038
1038
|
"Run `{0}` command outside the [sandbox]({1}) to access {2}?",
|
|
1039
1039
|
shellType,
|
|
1040
1040
|
TERMINAL_SANDBOX_DOCUMENTATION_URL,
|
|
1041
1041
|
this._formatBlockedDomainsForTitle(blockedDomains)
|
|
1042
1042
|
)) : ( localize(
|
|
1043
|
-
|
|
1043
|
+
17411,
|
|
1044
1044
|
"Run `{0}` command outside the [sandbox]({1})?",
|
|
1045
1045
|
shellType,
|
|
1046
1046
|
TERMINAL_SANDBOX_DOCUMENTATION_URL
|
|
1047
1047
|
));
|
|
1048
1048
|
} else if (requiresAllowNetworkConfirmation) {
|
|
1049
|
-
confirmationTitle = ( localize(
|
|
1049
|
+
confirmationTitle = ( localize(17412, "Allow {0} command to access the network?", shellType));
|
|
1050
1050
|
}
|
|
1051
1051
|
const shouldShowConfirmation = (!isFinalAutoApproved && (!isSessionAutoApproved || requiresAllowNetworkConfirmation)) || context.forceConfirmationReason !== undefined;
|
|
1052
|
-
const explanation = args.explanation || ( localize(
|
|
1053
|
-
const goal = args.goal || ( localize(
|
|
1052
|
+
const explanation = args.explanation || ( localize(17413, "No explanation provided"));
|
|
1053
|
+
const goal = args.goal || ( localize(17414, "No goal provided"));
|
|
1054
1054
|
const confirmationMessage = requiresUnsandboxConfirmation ? ( new MarkdownString(( localize(
|
|
1055
|
-
|
|
1055
|
+
17415,
|
|
1056
1056
|
"Explanation: {0}\n\nGoal: {1}\n\nReason for leaving the sandbox: {2}",
|
|
1057
1057
|
explanation,
|
|
1058
1058
|
goal,
|
|
1059
|
-
requestUnsandboxedExecutionReason || ( localize(
|
|
1059
|
+
requestUnsandboxedExecutionReason || ( localize(17416, "The model indicated that this command needs unsandboxed access."))
|
|
1060
1060
|
)))) : requiresAllowNetworkConfirmation ? ( new MarkdownString(( localize(
|
|
1061
|
-
|
|
1061
|
+
17417,
|
|
1062
1062
|
"Explanation: {0}\n\nGoal: {1}\n\nReason for allowing unrestricted network access in the sandbox: {2}",
|
|
1063
1063
|
explanation,
|
|
1064
1064
|
goal,
|
|
1065
1065
|
requestAllowNetworkReason || ( localize(
|
|
1066
|
-
|
|
1066
|
+
17418,
|
|
1067
1067
|
"The model indicated that this sandboxed command needs unrestricted network access."
|
|
1068
1068
|
))
|
|
1069
|
-
)))) : ( new MarkdownString(( localize(
|
|
1069
|
+
)))) : ( new MarkdownString(( localize(17419, "Explanation: {0}\n\nGoal: {1}", explanation, goal))));
|
|
1070
1070
|
const confirmationMessages = shouldShowConfirmation ? {
|
|
1071
1071
|
title: confirmationTitle,
|
|
1072
1072
|
message: confirmationMessage,
|
|
@@ -1077,10 +1077,10 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1077
1077
|
const rawDisplayCommand = toolSpecificData.commandLine.forDisplay ?? toolSpecificData.commandLine.toolEdited ?? toolSpecificData.commandLine.original;
|
|
1078
1078
|
const displayCommand = rawDisplayCommand.length > 80 ? rawDisplayCommand.substring(0, 77) + "..." : rawDisplayCommand;
|
|
1079
1079
|
const invocationMessage = toolSpecificData.commandLine.isSandboxWrapped ? ( new MarkdownString(( localize(
|
|
1080
|
-
|
|
1080
|
+
17420,
|
|
1081
1081
|
"Running `{0}` in sandbox",
|
|
1082
1082
|
escapeMarkdownSyntaxTokens(displayCommand)
|
|
1083
|
-
)))) : ( new MarkdownString(( localize(
|
|
1083
|
+
)))) : ( new MarkdownString(( localize(17421, "Running `{0}`", escapeMarkdownSyntaxTokens(displayCommand)))));
|
|
1084
1084
|
return {
|
|
1085
1085
|
invocationMessage,
|
|
1086
1086
|
icon: toolSpecificData.commandLine.isSandboxWrapped ? Codicon.terminalSecure : Codicon.terminal,
|
|
@@ -1093,7 +1093,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1093
1093
|
return `\`${blockedDomains[0]}\``;
|
|
1094
1094
|
}
|
|
1095
1095
|
return localize(
|
|
1096
|
-
|
|
1096
|
+
17422,
|
|
1097
1097
|
"`{0}` and {1} more domains",
|
|
1098
1098
|
blockedDomains[0],
|
|
1099
1099
|
blockedDomains.length - 1
|
|
@@ -1103,13 +1103,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1103
1103
|
if (deniedDomains.length === blockedDomains.length && deniedDomains.length > 0) {
|
|
1104
1104
|
if (blockedDomains.length === 1) {
|
|
1105
1105
|
return localize(
|
|
1106
|
-
|
|
1106
|
+
17423,
|
|
1107
1107
|
"This command accesses {0}, which is blocked by chat.agent.deniedNetworkDomains.",
|
|
1108
1108
|
blockedDomains[0]
|
|
1109
1109
|
);
|
|
1110
1110
|
}
|
|
1111
1111
|
return localize(
|
|
1112
|
-
|
|
1112
|
+
17424,
|
|
1113
1113
|
"This command accesses {0} and {1} more domains that are blocked by chat.agent.deniedNetworkDomains.",
|
|
1114
1114
|
blockedDomains[0],
|
|
1115
1115
|
blockedDomains.length - 1
|
|
@@ -1118,13 +1118,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1118
1118
|
if (deniedDomains.length > 0) {
|
|
1119
1119
|
if (blockedDomains.length === 1) {
|
|
1120
1120
|
return localize(
|
|
1121
|
-
|
|
1121
|
+
17425,
|
|
1122
1122
|
"This command accesses {0}, which is blocked by chat.agent.deniedNetworkDomains or not added to chat.agent.allowedNetworkDomains.",
|
|
1123
1123
|
blockedDomains[0]
|
|
1124
1124
|
);
|
|
1125
1125
|
}
|
|
1126
1126
|
return localize(
|
|
1127
|
-
|
|
1127
|
+
17426,
|
|
1128
1128
|
"This command accesses {0} and {1} more domains that are blocked by chat.agent.deniedNetworkDomains or not added to chat.agent.allowedNetworkDomains.",
|
|
1129
1129
|
blockedDomains[0],
|
|
1130
1130
|
blockedDomains.length - 1
|
|
@@ -1132,13 +1132,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
if (blockedDomains.length === 1) {
|
|
1134
1134
|
return localize(
|
|
1135
|
-
|
|
1135
|
+
17427,
|
|
1136
1136
|
"This command accesses {0}, which is not permitted by the current chat.agent.sandbox configuration.",
|
|
1137
1137
|
blockedDomains[0]
|
|
1138
1138
|
);
|
|
1139
1139
|
}
|
|
1140
1140
|
return localize(
|
|
1141
|
-
|
|
1141
|
+
17428,
|
|
1142
1142
|
"This command accesses {0} and {1} more domains that are not permitted by the current chat.agent.sandbox configuration.",
|
|
1143
1143
|
blockedDomains[0],
|
|
1144
1144
|
blockedDomains.length - 1
|
|
@@ -1252,11 +1252,11 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1252
1252
|
resolve(value);
|
|
1253
1253
|
};
|
|
1254
1254
|
const confirmationMessage = retryKind === "allowNetwork" ? ( new MarkdownString(( localize(
|
|
1255
|
-
|
|
1255
|
+
17429,
|
|
1256
1256
|
"`{0}`",
|
|
1257
1257
|
escapeMarkdownSyntaxTokens(buildCommandDisplayText(command))
|
|
1258
1258
|
)))) : ( new MarkdownString(( localize(
|
|
1259
|
-
|
|
1259
|
+
17430,
|
|
1260
1260
|
"`{0}`",
|
|
1261
1261
|
escapeMarkdownSyntaxTokens(buildCommandDisplayText(command))
|
|
1262
1262
|
))));
|
|
@@ -1264,8 +1264,8 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1264
1264
|
this._getAutomaticSandboxRetryTitle(retryKind, shellType, blockedDomains),
|
|
1265
1265
|
confirmationMessage,
|
|
1266
1266
|
"",
|
|
1267
|
-
( localize(
|
|
1268
|
-
( localize(
|
|
1267
|
+
( localize(17431, "Allow")),
|
|
1268
|
+
( localize(17432, "Skip")),
|
|
1269
1269
|
async () => {
|
|
1270
1270
|
resolveOnce(true);
|
|
1271
1271
|
part.hide();
|
|
@@ -1291,22 +1291,22 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1291
1291
|
_getAutomaticSandboxRetryTitle(retryKind, shellType, blockedDomains) {
|
|
1292
1292
|
if (retryKind === "allowNetwork") {
|
|
1293
1293
|
return blockedDomains?.length ? ( new MarkdownString(( localize(
|
|
1294
|
-
|
|
1294
|
+
17433,
|
|
1295
1295
|
"Retry `{0}` command in the sandbox by allowing network access to {1}?",
|
|
1296
1296
|
shellType,
|
|
1297
1297
|
this._formatBlockedDomainsForTitle(blockedDomains)
|
|
1298
1298
|
)))) : ( new MarkdownString(( localize(
|
|
1299
|
-
|
|
1299
|
+
17434,
|
|
1300
1300
|
"Retry `{0}` command in the sandbox by allowing network access?",
|
|
1301
1301
|
shellType
|
|
1302
1302
|
))));
|
|
1303
1303
|
}
|
|
1304
1304
|
return blockedDomains?.length ? ( new MarkdownString(( localize(
|
|
1305
|
-
|
|
1305
|
+
17435,
|
|
1306
1306
|
"Run `{0}` command outside the sandbox to access {1}?",
|
|
1307
1307
|
shellType,
|
|
1308
1308
|
this._formatBlockedDomainsForTitle(blockedDomains)
|
|
1309
|
-
)))) : ( new MarkdownString(( localize(
|
|
1309
|
+
)))) : ( new MarkdownString(( localize(17436, "Run `{0}` command outside the sandbox?", shellType))));
|
|
1310
1310
|
}
|
|
1311
1311
|
_registerSensitiveInputElicitation(
|
|
1312
1312
|
chatSessionResource,
|
|
@@ -1334,10 +1334,10 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1334
1334
|
if (chatModel instanceof ChatModel) {
|
|
1335
1335
|
const request = chatModel.getRequests().at(-1);
|
|
1336
1336
|
if (request) {
|
|
1337
|
-
const infoPart = ( new ChatElicitationRequestPart(( new MarkdownString(( localize(
|
|
1338
|
-
|
|
1337
|
+
const infoPart = ( new ChatElicitationRequestPart(( new MarkdownString(( localize(17437, "Terminal command cancelled — sensitive input required")))), ( new MarkdownString(( localize(
|
|
1338
|
+
17438,
|
|
1339
1339
|
"The terminal command was prompting for a password or other secret. Auto-approve / autopilot mode cannot safely supply secrets, so the command was cancelled. Run the command interactively if you want to provide the secret."
|
|
1340
|
-
)))), "", ( localize(
|
|
1340
|
+
)))), "", ( localize(17439, "Dismiss")), "", async () => {
|
|
1341
1341
|
infoPart.hide();
|
|
1342
1342
|
return ElicitationState.Accepted;
|
|
1343
1343
|
}, async () => {
|
|
@@ -1361,10 +1361,10 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1361
1361
|
if (!request) {
|
|
1362
1362
|
return;
|
|
1363
1363
|
}
|
|
1364
|
-
const part = ( new ChatElicitationRequestPart(( new MarkdownString(( localize(
|
|
1365
|
-
|
|
1364
|
+
const part = ( new ChatElicitationRequestPart(( new MarkdownString(( localize(17440, "Terminal is waiting for sensitive input")))), ( new MarkdownString(( localize(
|
|
1365
|
+
17441,
|
|
1366
1366
|
"The terminal command appears to be prompting for a password or other sensitive value. Focus the terminal to type it directly — secrets must not be sent through chat."
|
|
1367
|
-
)))), "", ( localize(
|
|
1367
|
+
)))), "", ( localize(17442, "Focus Terminal")), ( localize(17443, "Cancel Command")), async () => {
|
|
1368
1368
|
pending = undefined;
|
|
1369
1369
|
part.hide();
|
|
1370
1370
|
try {
|
|
@@ -1410,14 +1410,14 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1410
1410
|
const progress = {
|
|
1411
1411
|
kind: "externalToolInvocationUpdate",
|
|
1412
1412
|
toolCallId,
|
|
1413
|
-
toolName: ( localize(
|
|
1413
|
+
toolName: ( localize(17388, "Run in Terminal")),
|
|
1414
1414
|
isComplete,
|
|
1415
1415
|
invocationMessage: retryKind === "allowNetwork" ? ( new MarkdownString(( localize(
|
|
1416
|
-
|
|
1416
|
+
17444,
|
|
1417
1417
|
"Running `{0}` in the sandbox with unrestricted network access",
|
|
1418
1418
|
escapeMarkdownSyntaxTokens(displayCommand)
|
|
1419
1419
|
)))) : ( new MarkdownString(( localize(
|
|
1420
|
-
|
|
1420
|
+
17445,
|
|
1421
1421
|
"Running `{0}` outside the sandbox",
|
|
1422
1422
|
escapeMarkdownSyntaxTokens(displayCommand)
|
|
1423
1423
|
)))),
|
|
@@ -1595,7 +1595,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1595
1595
|
content: [{
|
|
1596
1596
|
kind: "text",
|
|
1597
1597
|
value: ( localize(
|
|
1598
|
-
|
|
1598
|
+
17446,
|
|
1599
1599
|
"Sandbox dependency installation failed (exit code {0}). The command was not executed.",
|
|
1600
1600
|
exitCode
|
|
1601
1601
|
))
|
|
@@ -1607,7 +1607,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1607
1607
|
content: [{
|
|
1608
1608
|
kind: "text",
|
|
1609
1609
|
value: ( localize(
|
|
1610
|
-
|
|
1610
|
+
17447,
|
|
1611
1611
|
"Could not determine whether sandbox dependency installation succeeded. The command was not executed."
|
|
1612
1612
|
))
|
|
1613
1613
|
}]
|
|
@@ -1619,13 +1619,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1619
1619
|
content: [{
|
|
1620
1620
|
kind: "text",
|
|
1621
1621
|
value: refreshedPrereqs.failedCheck === TerminalSandboxPrerequisiteCheck.Bubblewrap && refreshedPrereqs.remediations?.length ? ( localize(
|
|
1622
|
-
|
|
1622
|
+
17448,
|
|
1623
1623
|
"Sandbox dependencies were installed, but bubblewrap cannot create the required sandbox namespace. Run the command again to choose an available repair option."
|
|
1624
1624
|
)) : refreshedPrereqs.failedCheck === TerminalSandboxPrerequisiteCheck.Bubblewrap ? ( localize(
|
|
1625
|
-
|
|
1625
|
+
17449,
|
|
1626
1626
|
"Sandbox dependencies were installed, but bubblewrap cannot create the required sandbox namespace on this system. The command was not executed."
|
|
1627
1627
|
)) : ( localize(
|
|
1628
|
-
|
|
1628
|
+
17450,
|
|
1629
1629
|
"Sandbox prerequisites are still not satisfied after installation. The command was not executed."
|
|
1630
1630
|
))
|
|
1631
1631
|
}]
|
|
@@ -1636,7 +1636,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1636
1636
|
content: [{
|
|
1637
1637
|
kind: "text",
|
|
1638
1638
|
value: ( localize(
|
|
1639
|
-
|
|
1639
|
+
17451,
|
|
1640
1640
|
"Sandbox dependencies were installed successfully. If the issue persists, reload the window and try running the command again."
|
|
1641
1641
|
))
|
|
1642
1642
|
}]
|
|
@@ -1646,7 +1646,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1646
1646
|
return {
|
|
1647
1647
|
content: [{
|
|
1648
1648
|
kind: "text",
|
|
1649
|
-
value: ( localize(
|
|
1649
|
+
value: ( localize(17452, "Sandbox dependency installation was cancelled by the user."))
|
|
1650
1650
|
}]
|
|
1651
1651
|
};
|
|
1652
1652
|
}
|
|
@@ -1721,11 +1721,11 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1721
1721
|
}
|
|
1722
1722
|
let error;
|
|
1723
1723
|
const automaticUnsandboxRetryReason = ( localize(
|
|
1724
|
-
|
|
1724
|
+
17453,
|
|
1725
1725
|
"The sandboxed execution output indicated the sandbox blocked the command."
|
|
1726
1726
|
));
|
|
1727
1727
|
const automaticAllowNetworkRetryReason = ( localize(
|
|
1728
|
-
|
|
1728
|
+
17454,
|
|
1729
1729
|
"The sandboxed execution output indicated the sandbox blocked required network access."
|
|
1730
1730
|
));
|
|
1731
1731
|
const isNewSession = !executionOptions.persistentSession && !( this._sessionTerminalAssociations.has(chatSessionResource));
|
|
@@ -2288,13 +2288,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2288
2288
|
_getBubblewrapUnsupportedResult() {
|
|
2289
2289
|
const settingId = AgentSandboxSettingId.AgentSandboxEnabled;
|
|
2290
2290
|
const message = ( localize(
|
|
2291
|
-
|
|
2291
|
+
17455,
|
|
2292
2292
|
"Sandboxing is not supported in this environment. To disable sandboxing, set `{0}` to `off`. The command was not executed.",
|
|
2293
2293
|
settingId
|
|
2294
2294
|
));
|
|
2295
2295
|
const settingsCommandArgs = encodeURIComponent(JSON.stringify([`@id:${settingId}`]));
|
|
2296
2296
|
const toolResultMessage = ( new MarkdownString(( localize(
|
|
2297
|
-
|
|
2297
|
+
17456,
|
|
2298
2298
|
"Sandboxing is not supported in this environment. [Open the `{0}` setting](command:workbench.action.openSettings?{1} \"Open Settings\") and set it to `off`. The command was not executed.",
|
|
2299
2299
|
settingId,
|
|
2300
2300
|
settingsCommandArgs
|
|
@@ -2314,7 +2314,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2314
2314
|
_getBubblewrapHostRestrictedResult() {
|
|
2315
2315
|
const settingId = AgentSandboxSettingId.AgentSandboxEnabled;
|
|
2316
2316
|
const message = ( localize(
|
|
2317
|
-
|
|
2317
|
+
17457,
|
|
2318
2318
|
"Sandbox creation failed due to host restrictions. Sandboxing can be disabled by setting `{0}` to `off`.",
|
|
2319
2319
|
settingId
|
|
2320
2320
|
));
|
|
@@ -2799,7 +2799,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2799
2799
|
...sendOptions,
|
|
2800
2800
|
queue: ChatRequestQueueKind.Steering,
|
|
2801
2801
|
isSystemInitiated: true,
|
|
2802
|
-
systemInitiatedLabel: ( localize(
|
|
2802
|
+
systemInitiatedLabel: ( localize(17458, "{0} may need input", commandDisplay)),
|
|
2803
2803
|
terminalExecutionId: termId
|
|
2804
2804
|
}).catch(e => {
|
|
2805
2805
|
this._logService.warn(
|
|
@@ -2839,7 +2839,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2839
2839
|
...sendOptions,
|
|
2840
2840
|
queue: ChatRequestQueueKind.Steering,
|
|
2841
2841
|
isSystemInitiated: true,
|
|
2842
|
-
systemInitiatedLabel: ( localize(
|
|
2842
|
+
systemInitiatedLabel: ( localize(17459, "{0} completed", commandDisplay)),
|
|
2843
2843
|
terminalExecutionId: termId
|
|
2844
2844
|
}).catch(e => {
|
|
2845
2845
|
this._logService.warn(
|
|
@@ -2893,7 +2893,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2893
2893
|
...sendOptions,
|
|
2894
2894
|
queue: ChatRequestQueueKind.Steering,
|
|
2895
2895
|
isSystemInitiated: true,
|
|
2896
|
-
systemInitiatedLabel: ( localize(
|
|
2896
|
+
systemInitiatedLabel: ( localize(17460, "{0} terminal exited", commandDisplay)),
|
|
2897
2897
|
terminalExecutionId: termId
|
|
2898
2898
|
}).catch(e => {
|
|
2899
2899
|
this._logService.warn(
|
|
@@ -17,12 +17,12 @@ import { getOutput } from '../outputHelpers.js';
|
|
|
17
17
|
import { buildCommandDisplayText, isMultilineCommand, normalizeCommandForExecution } from '../runInTerminalHelpers.js';
|
|
18
18
|
import { RunInTerminalTool } from './runInTerminalTool.js';
|
|
19
19
|
import { isSessionAutoApproveLevel } from './terminalToolAutoApprove.js';
|
|
20
|
-
import { TerminalToolId } from '@codingame/monaco-vscode-
|
|
20
|
+
import { TerminalToolId } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/common/tools/terminalToolIds';
|
|
21
21
|
|
|
22
22
|
const SendToTerminalToolData = {
|
|
23
23
|
id: TerminalToolId.SendToTerminal,
|
|
24
24
|
toolReferenceName: "sendToTerminal",
|
|
25
|
-
displayName: ( localize(
|
|
25
|
+
displayName: ( localize(17461, "Send to Terminal")),
|
|
26
26
|
modelDescription: `Send input text to an active terminal execution (identified by the \`id\` returned from ${TerminalToolId.RunInTerminal}). The 'command' field may be empty or whitespace to press Enter (useful for interactive prompts). By default, returns the last 20 lines of terminal output captured shortly after sending. Set 'waitForOutput' to true for interactive programs (games, REPLs, etc.) to wait until the terminal becomes idle before returning output — this gives you the program's response to your input.`,
|
|
27
27
|
icon: Codicon.terminal,
|
|
28
28
|
source: ToolDataSource.Internal,
|
|
@@ -90,16 +90,16 @@ let SendToTerminalTool = class SendToTerminalTool extends Disposable {
|
|
|
90
90
|
const pastTenseMessage = ( new MarkdownString());
|
|
91
91
|
const questionText = this._getQuestionContextForTerminal(context.chatSessionResource, args);
|
|
92
92
|
if (isEmptyInput) {
|
|
93
|
-
invocationMessage.appendMarkdown(( localize(
|
|
94
|
-
pastTenseMessage.appendMarkdown(( localize(
|
|
93
|
+
invocationMessage.appendMarkdown(( localize(17462, "Pressing `Enter` in terminal")));
|
|
94
|
+
pastTenseMessage.appendMarkdown(( localize(17463, "Pressed `Enter` in terminal")));
|
|
95
95
|
} else {
|
|
96
96
|
const displayCommand = buildCommandDisplayText(args.command);
|
|
97
97
|
const safeInlineCode = appendEscapedMarkdownInlineCode(displayCommand);
|
|
98
|
-
invocationMessage.appendMarkdown(( localize(
|
|
99
|
-
pastTenseMessage.appendMarkdown(( localize(
|
|
98
|
+
invocationMessage.appendMarkdown(( localize(17464, "Sending {0} to terminal", safeInlineCode)));
|
|
99
|
+
pastTenseMessage.appendMarkdown(( localize(17465, "Sent {0} to terminal", safeInlineCode)));
|
|
100
100
|
}
|
|
101
101
|
if (questionText) {
|
|
102
|
-
const replyPrefix = ` (${( localize(
|
|
102
|
+
const replyPrefix = ` (${( localize(17466, "replying to: "))}`;
|
|
103
103
|
invocationMessage.appendMarkdown(replyPrefix);
|
|
104
104
|
invocationMessage.appendText(questionText);
|
|
105
105
|
invocationMessage.appendMarkdown(")");
|
|
@@ -114,15 +114,15 @@ let SendToTerminalTool = class SendToTerminalTool extends Disposable {
|
|
|
114
114
|
}
|
|
115
115
|
}));
|
|
116
116
|
const safeTerminalLabel = appendEscapedMarkdownInlineCode(terminalLabel);
|
|
117
|
-
const baseMessage = isEmptyInput ? ( localize(
|
|
118
|
-
|
|
117
|
+
const baseMessage = isEmptyInput ? ( localize(17467, "Press `Enter` in terminal {0}", safeTerminalLabel)) : ( localize(
|
|
118
|
+
17468,
|
|
119
119
|
"Run {0} in terminal {1}",
|
|
120
120
|
appendEscapedMarkdownInlineCode(buildCommandDisplayText(args.command)),
|
|
121
121
|
safeTerminalLabel
|
|
122
122
|
));
|
|
123
123
|
if (instanceId !== undefined) {
|
|
124
124
|
const focusUri = createCommandUri(FocusTerminalByIdCommandId, instanceId);
|
|
125
|
-
confirmationMessage.appendMarkdown(`${baseMessage} — [${( localize(
|
|
125
|
+
confirmationMessage.appendMarkdown(`${baseMessage} — [${( localize(17469, "Focus Terminal"))}](${focusUri})`);
|
|
126
126
|
} else {
|
|
127
127
|
confirmationMessage.appendMarkdown(baseMessage);
|
|
128
128
|
}
|
|
@@ -136,7 +136,7 @@ let SendToTerminalTool = class SendToTerminalTool extends Disposable {
|
|
|
136
136
|
const isAnsweringQuestion = questionText !== undefined;
|
|
137
137
|
const shouldShowConfirmation = (!isSessionAutoApproved && !isAnsweringQuestion) || context.forceConfirmationReason !== undefined;
|
|
138
138
|
const confirmationMessages = shouldShowConfirmation ? {
|
|
139
|
-
title: ( localize(
|
|
139
|
+
title: ( localize(17470, "Send to Terminal")),
|
|
140
140
|
message: confirmationMessage,
|
|
141
141
|
allowAutoConfirm: undefined
|
|
142
142
|
} : undefined;
|