@codingame/monaco-vscode-chat-service-override 36.2.7 → 37.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -0
- package/index.js +92 -10
- package/package.json +5 -5
- package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.d.ts +10 -3
- package/vscode/src/vs/platform/agentHost/browser/agentHostConnectionsService.js +54 -17
- package/vscode/src/vs/platform/agentHost/browser/agentHostEnablementService.d.ts +14 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostEnablementService.js +46 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHostIpcChannelTransport.d.ts +7 -2
- package/vscode/src/vs/platform/agentHost/browser/agentHostIpcChannelTransport.js +34 -2
- package/vscode/src/vs/platform/agentHost/browser/{remoteAgentHostProtocolClient.d.ts → agentHostProtocolClient.d.ts} +240 -60
- package/vscode/src/vs/platform/agentHost/browser/agentHostProtocolClient.js +1911 -0
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.d.ts +30 -33
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostServiceImpl.js +381 -315
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.d.ts +3 -1
- package/vscode/src/vs/platform/agentHost/browser/webSocketClientTransport.js +2 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostClientInfo.d.ts +9 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostClientInfo.js +20 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostExtensionProtocol.d.ts +144 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostExtensionProtocol.js +20 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.d.ts +14 -6
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemProvider.js +14 -10
- package/vscode/src/vs/platform/agentHost/common/agentHostFileSystemService.js +1 -1
- package/vscode/src/vs/platform/agentHost/common/agentHostManagedRules.d.ts +47 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostManagedRules.js +75 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostManagedSettings.d.ts +68 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostManagedSettings.js +161 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostStarter.config.contribution.js +288 -45
- package/vscode/src/vs/platform/agentHost/common/agentMerge.d.ts +261 -0
- package/vscode/src/vs/platform/agentHost/common/agentMerge.js +67 -0
- package/vscode/src/vs/platform/agentHost/common/agentSdkSetup.d.ts +53 -0
- package/vscode/src/vs/platform/agentHost/common/agentSdkSetup.js +45 -0
- package/vscode/src/vs/platform/agentHost/common/changesetUri.d.ts +130 -0
- package/vscode/src/vs/platform/agentHost/common/changesetUri.js +27 -0
- package/vscode/src/vs/platform/agentHost/common/customAgents.d.ts +8 -2
- package/vscode/src/vs/platform/agentHost/common/customAgents.js +7 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentChatSurfaceMeta.d.ts +39 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentChatSurfaceMeta.js +25 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCompletionAttachmentMeta.d.ts +110 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentCompletionAttachmentMeta.js +38 -0
- package/vscode/src/vs/platform/agentHost/common/meta/agentHostArtifactRemovalMeta.d.ts +4 -0
- package/vscode/src/vs/platform/agentHost/common/meta/clientPluginCustomizationMeta.d.ts +7 -0
- package/vscode/src/vs/platform/agentHost/common/meta/clientPluginCustomizationMeta.js +14 -0
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.d.ts +3 -3
- package/vscode/src/vs/platform/agentHost/common/sandboxConfigSchema.js +16 -24
- package/vscode/src/vs/platform/agentHost/common/semanticSearchConstants.d.ts +8 -0
- package/vscode/src/vs/platform/agentHost/common/semanticSearchConstants.js +8 -0
- package/vscode/src/vs/platform/agentHost/common/sessionArtifacts.d.ts +75 -0
- package/vscode/src/vs/platform/agentHost/common/sessionArtifacts.js +84 -0
- package/vscode/src/vs/platform/agentHost/common/shellInitScript.d.ts +24 -0
- package/vscode/src/vs/platform/agentHost/common/shellInitScript.js +63 -0
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.d.ts +71 -20
- package/vscode/src/vs/platform/agentHost/common/state/agentSubscription.js +187 -26
- package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.d.ts +30 -0
- package/vscode/src/vs/platform/agentHost/common/state/legacyProtocolCompatibility.js +87 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-annotations/reducer.js +2 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation/reducer.d.ts +4 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation/reducer.js +37 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation-run/reducer.d.ts +4 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-automation-run/reducer.js +45 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/reducer.d.ts +5 -4
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-changeset/reducer.js +100 -35
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-chat/reducer.js +193 -49
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-session/reducer.js +161 -40
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-terminal/reducer.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/channels-terminal/reducer.js +5 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/reducer-helpers.d.ts +2 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/timestamps.d.ts +1 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/timestamps.js +7 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/version/registry.js +114 -3
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.d.ts +28 -5
- package/vscode/src/vs/platform/agentHost/common/state/sessionActions.js +4 -2
- package/vscode/src/vs/platform/agentHost/common/state/sessionWorkingDirectories.d.ts +34 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionWorkingDirectories.js +28 -0
- package/vscode/src/vs/platform/agentHost/common/worktreePaths.d.ts +24 -0
- package/vscode/src/vs/platform/agentHost/common/worktreePaths.js +15 -0
- package/vscode/src/vs/platform/browserView/common/browserChatToolReferenceNames.d.ts +1 -1
- package/vscode/src/vs/platform/chat/common/aiAgentEnv.d.ts +18 -0
- package/vscode/src/vs/platform/chat/common/aiAgentEnv.js +6 -0
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.d.ts +5 -1
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.js +77 -5
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.d.ts +1 -1
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.js +9 -5
- package/vscode/src/vs/platform/networkFilter/common/settings.d.ts +1 -5
- package/vscode/src/vs/platform/networkFilter/common/settings.js +0 -4
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.d.ts +19 -7
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxEngine.js +49 -37
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxReadAllowList.d.ts +2 -1
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxReadAllowList.js +12 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxRuntimeConfigurationPerOperation.js +1 -2
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +1 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/autoApproveParseSafety.d.ts +5 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/autoApproveParseSafety.js +7 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/cmdDelayedExpansion.d.ts +5 -0
- package/vscode/src/vs/platform/terminal/common/autoApprove/cmdDelayedExpansion.js +8 -0
- package/vscode/src/vs/{workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers → platform/terminal/common/autoApprove}/sedFileWriteParser.d.ts +1 -2
- package/vscode/src/vs/workbench/browser/chatChangesPill.d.ts +29 -0
- package/vscode/src/vs/workbench/browser/chatChangesPill.js +84 -0
- package/vscode/src/vs/workbench/common/chatPullRequest.d.ts +19 -0
- package/vscode/src/vs/workbench/common/chatPullRequest.js +53 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +342 -155
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.d.ts +25 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +150 -67
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +5 -3
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.js +39 -9
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.d.ts +1 -1
- 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.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +54 -17
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +11 -11
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +9 -9
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +5 -5
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.js +5 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +2 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/media/voiceModeOnboarding.css +252 -0
- 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.d.ts +146 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +889 -0
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +2 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +3 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +32 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +214 -161
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +10 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +256 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +11 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +19 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +30 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +19 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFindActions.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFindActions.js +237 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +7 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +68 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +17 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +17 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +68 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +21 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/createPluginAction.js +222 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.d.ts +64 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.js +530 -305
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openAgentHostStateFileAction.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openAgentHostStateFileAction.js +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentHostCompletionAction.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentHostCompletionAction.js +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginCommands.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginCommands.js +95 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +10 -6
- 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 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +86 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +61 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.d.ts +43 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostActiveClientService.js +326 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.d.ts +112 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostCustomizationService.js +33 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostImportConversationStore.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostImportConversationStore.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.d.ts +28 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLocalCustomizations.js +110 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupport.d.ts +131 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupport.js +638 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupportScope.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostMcpServerSupportScope.js +202 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostModeSynchronizer.d.ts +24 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostModeSynchronizer.js +26 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostPermissionUiContribution.js +10 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostProtectedResourcesService.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostProtectedResourcesService.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostResponseFileChanges.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostResponseFileChanges.js +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionInputPills.js +624 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.d.ts +90 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectorySynchronizer.js +207 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostShellInitSynchronizer.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostShellInitSynchronizer.js +140 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolSetEnablementService.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolSetEnablementService.js +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostToolUtils.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.d.ts +74 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.js +511 -171
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSessionConfig.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/applyAgentHostSessionConfig.js +48 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.d.ts +55 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/syncedCustomizationBundler.js +210 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +43 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +46 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +216 -110
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +9 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +26 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +30 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/unifiedQuickAccess.css +6 -6
- 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.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/externalSessionsFilterMenu.js +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/sessionSummaryHover.css +104 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHover.d.ts +115 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHover.js +168 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHoverService.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/sessionSummaryHoverService.js +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessionsConfiguration.js +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +16 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.d.ts +7 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemSource.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.js +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +48 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +913 -220
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +148 -84
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +161 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +2367 -247
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +21 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementSectionRegistry.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementSectionRegistry.js +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationPresentation.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationPresentation.js +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePage.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWelcomePagePromptLaunchers.js +143 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +10 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCardList.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCardList.js +302 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +49 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationGroupHeaderRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigration.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigration.js +240 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationAccessibility.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationAccessibility.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationCategories.d.ts +82 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationCategories.js +762 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationDashboard.d.ts +80 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationDashboard.js +279 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationMigrationServiceImpl.js +437 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.d.ts +85 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedAgentPluginDetail.js +697 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedExtensionToolsDetail.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.d.ts +40 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/embeddedMcpServerDetail.js +164 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/galleryItemRenderer.js +6 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +260 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +2097 -589
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpServerCustomizationMigration.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpServerCustomizationMigration.js +860 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +2229 -1338
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationWelcomePromptLaunchers.css +79 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/customizationMigrationDashboard.css +354 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +85 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +1550 -357
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/promptsServiceCustomizationItemProvider.js +13 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.d.ts +38 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/toolsListWidget.js +637 -319
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +28 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatPasteTargetService.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatPasteTargetService.js +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatReferenceAttachmentWidget.contribution.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatReferenceAttachmentWidget.contribution.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/transcriptContextAttachmentWidget.contribution.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/transcriptContextAttachmentWidget.contribution.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +1675 -633
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.d.ts +93 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostChatDebugProvider.js +823 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostLogSources.d.ts +132 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostLogSources.js +446 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostUsageSidecar.d.ts +183 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/agentHostUsageSidecar.js +218 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +45 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheExplorerView.js +163 -136
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCacheInsights.js +72 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +22 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +105 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEnablement.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEnablement.js +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +27 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +22 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHookContentRenderer.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +76 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugWireLogView.d.ts +145 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugWireLogView.js +839 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +277 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +8 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +35 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +16 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/notebookCellChanges.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImageCarouselService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPills.d.ts +86 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPills.js +282 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +14 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +37 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +135 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +22 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutlineCreator.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutlineCreator.js +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementPreview.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementPreview.js +114 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievements.contribution.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievements.contribution.js +326 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditor.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditor.js +99 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditorInput.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsEditorInput.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsWidget.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPetAchievementsWidget.js +301 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPromoNotification.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPromoNotification.js +103 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.d.ts +9 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotaNotification.js +103 -196
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +36 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +51 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +31 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +65 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +291 -138
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/media/chatSetup.css +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/media/microsoft-dark.svg +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/media/microsoft-light.svg +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSideChat.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSideChat.js +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +59 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +221 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +15 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +21 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSubmitRequestHandlerService.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSubmitRequestHandlerService.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +23 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +62 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +15 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +97 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/claudePluginRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContext.contribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.d.ts +11 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +24 -16
- 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 +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationConfig.js +232 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationContribution.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/expNotification/chatExpNotificationContribution.js +127 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/feedbackSurvey/chatModelFeedbackSurveyPromptContribution.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/feedbackSurvey/chatModelFeedbackSurveyPromptContribution.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/hasByokModelsContribution.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatPetAchievements.css +236 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorOverlay.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorOverlay.js +260 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.d.ts +39 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackService.js +155 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.d.ts +10 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginAutoUpdate.js +29 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginGitCommandService.js +76 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +53 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginUrlHandler.js +8 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +29 -71
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +36 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +5 -5
- 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 +9 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +5 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/media/promptTimeline.css +820 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptBucketing.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptBucketing.js +100 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimeline.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimeline.contribution.js +51 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineCard.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineCard.js +113 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineGutterRail.d.ts +146 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineGutterRail.js +440 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineLayout.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineLayout.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineModel.d.ts +194 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineModel.js +525 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRail.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRulerRail.d.ts +128 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineRulerRail.js +460 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineStickyHeader.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineStickyHeader.js +120 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineWidgetContrib.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptTimeline/promptTimelineWidgetContrib.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +25 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionChatPillOptions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionChatPillOptions.js +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionPullRequestPill.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionPullRequestPill.js +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.d.ts +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.js +361 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/telemetry/chatEditorTopologyTelemetry.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/telemetry/chatEditorTopologyTelemetry.js +90 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/clientToolSetsContribution.js +25 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +77 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +60 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +60 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +10 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +13 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +44 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/utilityModelContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.d.ts +52 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.js +446 -79
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceInputUtils.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceInputUtils.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.js +297 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentOpenChat.d.ts +137 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentOpenChat.js +714 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentOpenChat.css +379 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatFind/chatFindAccessibilityHelp.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatFind/chatFindAccessibilityHelp.js +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatPetWidgetService.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatPetWidgetService.js +172 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNoticeHub.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNoticeHub.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +41 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletions.js +133 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/agentHostInputCompletionsBase.js +11 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatEditorInputContentProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCommandArgumentHint.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCommandArgumentHint.js +96 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletionUtils.js +36 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +67 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +23 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +72 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputPlaceholderDecoration.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/{agentsVoice/common/agentsVoiceColors.js → chat/browser/widget/input/editor/chatInputPlaceholderDecoration.js} +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputReferenceDecorations.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputReferenceDecorations.js +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +21 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +48 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +457 -142
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +22 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +6 -22
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationBlueprint.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationBlueprint.js +163 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +27 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +79 -32
- package/vscode/src/vs/workbench/contrib/chat/common/chatNotification.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatNotification.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +44 -11
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +404 -51
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +64 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +33 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSideChatService.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSideChatService.js +70 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +18 -5
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +43 -14
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +4 -9
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +164 -71
- 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/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/promptLinkProvider.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkProvider.js +19 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +172 -159
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/customizationMigrationService.d.ts +115 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/customizationMigrationService.js +69 -0
- package/vscode/src/vs/workbench/contrib/chat/common/sessionChatPills.d.ts +60 -0
- package/vscode/src/vs/workbench/contrib/chat/common/sessionChatPills.js +139 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.js +21 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.d.ts +25 -2
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +55 -18
- 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/inlineChat.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditReviewSession.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditReviewSession.js +323 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionResolver.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionResolver.js +79 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +118 -13
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.d.ts +81 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +85 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +17 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +23 -23
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +17 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +81 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatSessionResolver.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatSessionResolver.js +86 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +97 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.d.ts +2 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/agentHostSandboxForwarder.js +10 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/largeOutputFileWriter.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +42 -36
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +10 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +25 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +4 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/consoleCompactor/consoleCompactor.d.ts +70 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/consoleCompactor/consoleCompactor.js +4316 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +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 +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +188 -148
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sendToTerminalTool.js +10 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +82 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.d.ts +5 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.js +5 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalOutput.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalOutput.js +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +27 -8
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +205 -0
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +1580 -0
- package/vscode/src/vs/workbench/services/agentEditorComments/browser/agentEditorCommentsOverlayWidget.d.ts +30 -0
- package/vscode/src/vs/workbench/services/agentEditorComments/browser/agentEditorCommentsOverlayWidget.js +175 -0
- package/vscode/src/vs/workbench/services/agentEditorComments/browser/media/agentEditorCommentsOverlayWidget.css +65 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/agentSdkSetupService.d.ts +47 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/agentSdkSetupService.js +129 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.d.ts +26 -8
- package/vscode/src/vs/workbench/services/agentHost/browser/editorRemoteAgentHostServiceClient.js +89 -27
- package/vscode/src/vs/workbench/services/agentHost/browser/webAgentHostEnablementService.d.ts +8 -0
- package/vscode/src/vs/workbench/services/agentHost/browser/webAgentHostEnablementService.js +28 -0
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.js +5 -1
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostResourceService.d.ts +18 -18
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostResourceService.js +159 -60
- package/vscode/src/vs/workbench/services/agentHost/common/editorRemoteAgentHostTransport.d.ts +47 -0
- package/vscode/src/vs/workbench/services/agentHost/common/editorRemoteAgentHostTransport.js +362 -0
- package/vscode/src/vs/platform/agentHost/browser/agentHost.config.contribution.d.ts +0 -1
- package/vscode/src/vs/platform/agentHost/browser/agentHost.config.contribution.js +0 -40
- package/vscode/src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.js +0 -1110
- package/vscode/src/vs/platform/agentHost/common/agentHost.config.contribution.js +0 -76
- package/vscode/src/vs/platform/agentHost/common/agentHostResourceService.d.ts +0 -63
- package/vscode/src/vs/platform/agentHost/common/agentHostResourceService.js +0 -25
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.d.ts +0 -254
- package/vscode/src/vs/platform/agentHost/common/agentHostSchema.js +0 -451
- package/vscode/src/vs/platform/agentHost/common/agentService.d.ts +0 -1294
- package/vscode/src/vs/platform/agentHost/common/agentService.js +0 -92
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/errors.d.ts +0 -186
- package/vscode/src/vs/platform/agentHost/common/state/protocol/common/errors.js +0 -10
- package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.d.ts +0 -42
- package/vscode/src/vs/platform/agentHost/common/state/sessionTransport.js +0 -7
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoice.js +0 -15
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/agentsVoiceColors.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +0 -243
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openCopilotCliStateFileAction.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/openCopilotCliStateFileAction.js +0 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.d.ts +0 -92
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginActions.js +0 -224
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostNewSessionFolderService.js +0 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +0 -96
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentDisabledInputTipContribution.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentDisabledInputTipContribution.js +0 -152
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/automationsListWidget.d.ts +0 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/automationsListWidget.js +0 -772
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseFileChangesService.js +0 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/enablementActions.js +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/media/planReviewFeedback.css +0 -160
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorActions.js +0 -123
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.d.ts +0 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/planReviewFeedback/planReviewFeedbackEditorContribution.js +0 -572
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.d.ts +0 -125
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.js +0 -399
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.d.ts +0 -321
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.js +0 -2117
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceToolDispatchService.js +0 -367
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automation.d.ts +0 -78
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.service.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationDialogService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationRunner.service.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationRunner.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.d.ts +0 -46
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.service.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationsEnabled.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/common/automations/automationsEnabled.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/automations/schedule.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/chat/common/automations/schedule.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginEnablement.js +0 -177
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.d.ts +0 -67
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/fileBackedInstalledPluginsStore.js +0 -195
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/marketplaceReference.js +0 -264
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +0 -190
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +0 -865
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/strictKnownMarketplaces.js +0 -122
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +0 -24
- /package/vscode/src/vs/{workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers → platform/terminal/common/autoApprove}/sedFileWriteParser.js +0 -0
- /package/vscode/src/vs/{platform/agentHost/common/agentHost.config.contribution.d.ts → workbench/contrib/chat/browser/agentSessionsConfiguration.d.ts} +0 -0
|
@@ -24,6 +24,8 @@ import { ConfirmationOptionKind } from '@codingame/monaco-vscode-api/vscode/vs/p
|
|
|
24
24
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/channels-terminal/state';
|
|
25
25
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/channels-changeset/state';
|
|
26
26
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/channels-resource-watch/state';
|
|
27
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/channels-automation/state';
|
|
28
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/channels-automation-run/state';
|
|
27
29
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
28
30
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
29
31
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -44,6 +46,8 @@ import { getSandboxPrecheckInputsForToolInvocation } from '../../../../chat/brow
|
|
|
44
46
|
import { TerminalToolConfirmationStorageKeys } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart';
|
|
45
47
|
import { ElicitationState, ChatRequestQueueKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
46
48
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
49
|
+
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
50
|
+
import { ChatConfiguration, isAutoApproveLevel, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
47
51
|
import { LanguageModelPartAudience } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels';
|
|
48
52
|
import { ChatModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel';
|
|
49
53
|
import { ChatElicitationRequestPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatElicitationRequestPart';
|
|
@@ -53,7 +57,7 @@ import { ToolDataSource, ToolInvocationPresentation } from '@codingame/monaco-vs
|
|
|
53
57
|
import { ILanguageModelToolsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service';
|
|
54
58
|
import { ITerminalChatService, ITerminalService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service';
|
|
55
59
|
import { ITerminalProfileResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal.service';
|
|
56
|
-
import { TerminalChatCommandId } from '
|
|
60
|
+
import { TerminalChatCommandId } from '../../../chat/browser/terminalChat.js';
|
|
57
61
|
import { TerminalChatAgentToolsSettingId, DEFAULT_IDLE_SILENCE_TIMEOUT_MS } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration';
|
|
58
62
|
import '../../common/terminalSandboxService.js';
|
|
59
63
|
import { getRecommendedToolsOverRunInTerminal } from '../alternativeRecommendation.js';
|
|
@@ -78,13 +82,14 @@ import { CommandLineCdPrefixRewriter } from './commandLineRewriter/commandLineCd
|
|
|
78
82
|
import { CommandLinePreventHistoryRewriter } from './commandLineRewriter/commandLinePreventHistoryRewriter.js';
|
|
79
83
|
import { CommandLinePwshChainOperatorRewriter } from './commandLineRewriter/commandLinePwshChainOperatorRewriter.js';
|
|
80
84
|
import { CommandLineSandboxRewriter } from './commandLineRewriter/commandLineSandboxRewriter.js';
|
|
85
|
+
import { compact } from './consoleCompactor/consoleCompactor.js';
|
|
81
86
|
import { OutputMonitor } from './monitoring/outputMonitor.js';
|
|
82
87
|
import { OutputMonitorState } from './monitoring/types.js';
|
|
83
88
|
import { outputLooksSandboxBlocked, outputLooksSandboxNetworkBlocked, SandboxOutputAnalyzer } from './sandboxOutputAnalyzer.js';
|
|
84
89
|
import { TerminalCommandArtifactCollector } from './terminalCommandArtifactCollector.js';
|
|
85
90
|
import { isToolEligibleForTerminalAutoApproval, isTerminalAutoApproveAllowed, isSessionAutoApproveLevel } from './terminalToolAutoApprove.js';
|
|
86
91
|
import { TerminalToolId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/terminalToolIds';
|
|
87
|
-
import { TerminalSandboxPrerequisiteCheck
|
|
92
|
+
import { TerminalSandboxPrerequisiteCheck } from '../../../../../../platform/sandbox/common/terminalSandboxService.js';
|
|
88
93
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
89
94
|
import { ITerminalSandboxService } from '@codingame/monaco-vscode-api/vscode/vs/platform/sandbox/common/terminalSandboxService.service';
|
|
90
95
|
import { constObservable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/constObservable';
|
|
@@ -94,7 +99,7 @@ const TERMINAL_SANDBOX_DOCUMENTATION_URL = "https://aka.ms/vscode-sandboxing";
|
|
|
94
99
|
const TOOL_REFERENCE_NAME = "runInTerminal";
|
|
95
100
|
const LEGACY_TOOL_REFERENCE_FULL_NAMES = ["runCommands/runInTerminal"];
|
|
96
101
|
const INPUT_NEEDED_NOTIFICATION_THROTTLE_MS = 5000;
|
|
97
|
-
function createPowerShellModelDescription(shell, sandboxingOptions) {
|
|
102
|
+
function createPowerShellModelDescription(shell, sandboxingOptions, includeElevationGuidance) {
|
|
98
103
|
const isWinPwsh = isWindowsPowerShell(shell);
|
|
99
104
|
const parts = [
|
|
100
105
|
`This tool allows you to execute ${isWinPwsh ? "Windows PowerShell 5.1" : "PowerShell"} commands in a persistent terminal session, preserving environment variables, working directory, and other context across multiple commands.`,
|
|
@@ -143,6 +148,9 @@ function createPowerShellModelDescription(shell, sandboxingOptions) {
|
|
|
143
148
|
"- Use Test-Path to check file/directory existence",
|
|
144
149
|
"- Be specific with Select-Object properties to avoid excessive output",
|
|
145
150
|
"- Avoid printing credentials unless absolutely required",
|
|
151
|
+
...(includeElevationGuidance ? [
|
|
152
|
+
"- Avoid commands that trigger an interactive elevation prompt, such as Start-Process -Verb RunAs or runas.exe. They block on a UAC/password prompt that cannot be answered in this mode, and secrets must never be routed through the model. If elevated privileges are required, tell the user to run the command themselves and stop — do NOT retry the command with variations."
|
|
153
|
+
] : []),
|
|
146
154
|
`- NEVER run Start-Sleep or similar wait commands. You will be automatically notified on your next turn when async terminal commands or timed-out sync commands complete or need input. Do NOT poll for completion.`,
|
|
147
155
|
"- NEVER pipe interactive commands through Select-Object, Where-Object, or other filters — this hides prompts and prevents the terminal from detecting when input is needed. Run interactive commands without pipes.",
|
|
148
156
|
"",
|
|
@@ -245,7 +253,7 @@ function createSandboxProperties(sandboxingOptions) {
|
|
|
245
253
|
}
|
|
246
254
|
};
|
|
247
255
|
}
|
|
248
|
-
function createGenericDescription(sandboxingOptions) {
|
|
256
|
+
function createGenericDescription(sandboxingOptions, includeElevationGuidance) {
|
|
249
257
|
const parts = [`
|
|
250
258
|
Command Execution:
|
|
251
259
|
- Use && to chain simple commands on one line
|
|
@@ -286,7 +294,7 @@ Best Practices:
|
|
|
286
294
|
- Use find with -exec or xargs for file operations
|
|
287
295
|
- Be specific with commands to avoid excessive output
|
|
288
296
|
- Avoid printing credentials unless absolutely required
|
|
289
|
-
- NEVER run sleep or similar wait commands in a terminal. You will be automatically notified on your next turn when async terminal commands or timed-out sync commands complete or need input. Do NOT poll for completion.
|
|
297
|
+
${includeElevationGuidance ? "- Avoid commands that require interactive privilege escalation, such as sudo/su/doas without a non-interactive flag (e.g. sudo -n). They block on a password prompt that cannot be answered in this mode, and secrets must never be routed through the model. If a command needs elevated privileges, tell the user to run it themselves in the terminal and stop — do NOT retry the command with variations.\n" : ""}- NEVER run sleep or similar wait commands in a terminal. You will be automatically notified on your next turn when async terminal commands or timed-out sync commands complete or need input. Do NOT poll for completion.
|
|
290
298
|
- NEVER pipe interactive commands through tail, head, grep, or other filters — this hides prompts and prevents the terminal from detecting when input is needed. Run interactive commands without pipes.
|
|
291
299
|
|
|
292
300
|
Interactive Input Handling:
|
|
@@ -297,18 +305,18 @@ Interactive Input Handling:
|
|
|
297
305
|
- Continue one prompt at a time until the command finishes.`);
|
|
298
306
|
return parts.join("");
|
|
299
307
|
}
|
|
300
|
-
function createBashModelDescription(sandboxingOptions) {
|
|
308
|
+
function createBashModelDescription(sandboxingOptions, includeElevationGuidance) {
|
|
301
309
|
return [
|
|
302
310
|
"This tool allows you to execute shell commands in a persistent bash terminal session, preserving environment variables, working directory, and other context across multiple commands.",
|
|
303
|
-
createGenericDescription(sandboxingOptions),
|
|
311
|
+
createGenericDescription(sandboxingOptions, includeElevationGuidance),
|
|
304
312
|
"- Use [[ ]] for conditional tests instead of [ ]",
|
|
305
313
|
"- Prefer $() over backticks for command substitution"
|
|
306
314
|
].join("\n");
|
|
307
315
|
}
|
|
308
|
-
function createZshModelDescription(sandboxingOptions) {
|
|
316
|
+
function createZshModelDescription(sandboxingOptions, includeElevationGuidance) {
|
|
309
317
|
return [
|
|
310
318
|
"This tool allows you to execute shell commands in a persistent zsh terminal session, preserving environment variables, working directory, and other context across multiple commands.",
|
|
311
|
-
createGenericDescription(sandboxingOptions),
|
|
319
|
+
createGenericDescription(sandboxingOptions, includeElevationGuidance),
|
|
312
320
|
"- Use type to check command type (builtin, function, alias)",
|
|
313
321
|
"- Use jobs, fg, bg for job control",
|
|
314
322
|
"- Use [[ ]] for conditional tests instead of [ ]",
|
|
@@ -320,10 +328,10 @@ function createZshModelDescription(sandboxingOptions) {
|
|
|
320
328
|
"- NEVER use status as a variable name (it is read-only in zsh). Use exit_code or ret instead"
|
|
321
329
|
].join("\n");
|
|
322
330
|
}
|
|
323
|
-
function createFishModelDescription(sandboxingOptions) {
|
|
331
|
+
function createFishModelDescription(sandboxingOptions, includeElevationGuidance) {
|
|
324
332
|
return [
|
|
325
333
|
"This tool allows you to execute shell commands in a persistent fish terminal session, preserving environment variables, working directory, and other context across multiple commands.",
|
|
326
|
-
createGenericDescription(sandboxingOptions),
|
|
334
|
+
createGenericDescription(sandboxingOptions, includeElevationGuidance),
|
|
327
335
|
"- Use type to check command type (builtin, function, alias)",
|
|
328
336
|
"- Use jobs, fg, bg for job control",
|
|
329
337
|
"- Use test expressions for conditionals (no [[ ]] syntax)",
|
|
@@ -338,6 +346,8 @@ async function createRunInTerminalToolData(accessor) {
|
|
|
338
346
|
const configurationService = accessor.get(IConfigurationService);
|
|
339
347
|
const allowToRunUnsandboxedCommands = configurationService.getValue(AgentSandboxSettingId.AgentSandboxAllowUnsandboxedCommands) === true;
|
|
340
348
|
const retryWithAllowNetworkRequestsSetting = configurationService.getValue(AgentSandboxSettingId.AgentSandboxRetryWithAllowNetworkRequests) === true;
|
|
349
|
+
const defaultPermissionLevel = configurationService.getValue(ChatConfiguration.DefaultPermissionLevel);
|
|
350
|
+
const includeElevationGuidance = configurationService.getValue(TerminalChatAgentToolsSettingId.EnableAutoApprove) === true || configurationService.getValue(ChatConfiguration.GlobalAutoApprove) === true || isAutoApproveLevel(defaultPermissionLevel);
|
|
341
351
|
const profileFetcher = instantiationService.createInstance(TerminalProfileFetcher);
|
|
342
352
|
const [shell, os, isSandboxEnabled, isSandboxAllowNetworkEnabled] = await Promise.all([
|
|
343
353
|
profileFetcher.getCopilotShell(),
|
|
@@ -360,13 +370,13 @@ async function createRunInTerminalToolData(accessor) {
|
|
|
360
370
|
});
|
|
361
371
|
let modelDescription;
|
|
362
372
|
if (shell && os && isPowerShell(shell, os)) {
|
|
363
|
-
modelDescription = createPowerShellModelDescription(shell, sandboxingOptions);
|
|
373
|
+
modelDescription = createPowerShellModelDescription(shell, sandboxingOptions, includeElevationGuidance);
|
|
364
374
|
} else if (shell && os && isZsh(shell, os)) {
|
|
365
|
-
modelDescription = createZshModelDescription(sandboxingOptions);
|
|
375
|
+
modelDescription = createZshModelDescription(sandboxingOptions, includeElevationGuidance);
|
|
366
376
|
} else if (shell && os && isFish(shell, os)) {
|
|
367
|
-
modelDescription = createFishModelDescription(sandboxingOptions);
|
|
377
|
+
modelDescription = createFishModelDescription(sandboxingOptions, includeElevationGuidance);
|
|
368
378
|
} else {
|
|
369
|
-
modelDescription = createBashModelDescription(sandboxingOptions);
|
|
379
|
+
modelDescription = createBashModelDescription(sandboxingOptions, includeElevationGuidance);
|
|
370
380
|
}
|
|
371
381
|
const sharedProperties = {
|
|
372
382
|
command: {
|
|
@@ -387,9 +397,9 @@ async function createRunInTerminalToolData(accessor) {
|
|
|
387
397
|
id: TerminalToolId.RunInTerminal,
|
|
388
398
|
toolReferenceName: TOOL_REFERENCE_NAME,
|
|
389
399
|
legacyToolReferenceFullNames: LEGACY_TOOL_REFERENCE_FULL_NAMES,
|
|
390
|
-
displayName: ( localize(
|
|
400
|
+
displayName: ( localize(17083, "Run in Terminal")),
|
|
391
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.`,
|
|
392
|
-
userDescription: ( localize(
|
|
402
|
+
userDescription: ( localize(17084, "Run commands in the terminal")),
|
|
393
403
|
source: ToolDataSource.Internal,
|
|
394
404
|
icon: Codicon.terminal,
|
|
395
405
|
inputSchema: {
|
|
@@ -452,10 +462,13 @@ function shouldAutomaticallyRetryAllowNetworkInSandboxed(options) {
|
|
|
452
462
|
outputLooksRetryable: outputLooksSandboxNetworkBlocked
|
|
453
463
|
});
|
|
454
464
|
}
|
|
465
|
+
function outputLooksBubblewrapHostRestricted(output) {
|
|
466
|
+
return /bwrap:\s*No permissions to create new namespace/i.test(output.replace(/\s+/g, " "));
|
|
467
|
+
}
|
|
455
468
|
const telemetryIgnoredSequences = [
|
|
456
469
|
"\u001b[I",
|
|
457
470
|
"\u001b[O"];
|
|
458
|
-
const altBufferMessage = "\n" + ( localize(
|
|
471
|
+
const altBufferMessage = "\n" + ( localize(17085, "The command opened the alternate buffer."));
|
|
459
472
|
function buildCompletionNotificationCommand(command) {
|
|
460
473
|
const firstNewline = command.search(/\r|\n/);
|
|
461
474
|
const hasMoreLines = firstNewline !== -1;
|
|
@@ -547,13 +560,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
547
560
|
}
|
|
548
561
|
_getUnsandboxedExecutionDisabledMessage() {
|
|
549
562
|
return localize(
|
|
550
|
-
|
|
563
|
+
17086,
|
|
551
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."
|
|
552
565
|
);
|
|
553
566
|
}
|
|
554
567
|
_getAllowNetworkRequestDisabledMessage() {
|
|
555
568
|
return localize(
|
|
556
|
-
|
|
569
|
+
17087,
|
|
557
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."
|
|
558
571
|
);
|
|
559
572
|
}
|
|
@@ -567,7 +580,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
567
580
|
_buildSandboxFileAccessDeniedMessage(deniedPaths) {
|
|
568
581
|
const deniedPathsMessage = ( deniedPaths.map(path => `write: ${path}`)).join("\n");
|
|
569
582
|
return localize(
|
|
570
|
-
|
|
583
|
+
17088,
|
|
571
584
|
"Access Denied: The command was not executed because the terminal sandbox does not allow access to the requested file paths:\n{0}",
|
|
572
585
|
deniedPathsMessage
|
|
573
586
|
);
|
|
@@ -592,6 +605,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
592
605
|
_workspaceContextService,
|
|
593
606
|
_chatWidgetService,
|
|
594
607
|
_agentSessionsService,
|
|
608
|
+
_chatSessionsService,
|
|
595
609
|
lifecycleService
|
|
596
610
|
) {
|
|
597
611
|
super();
|
|
@@ -611,6 +625,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
611
625
|
this._workspaceContextService = _workspaceContextService;
|
|
612
626
|
this._chatWidgetService = _chatWidgetService;
|
|
613
627
|
this._agentSessionsService = _agentSessionsService;
|
|
628
|
+
this._chatSessionsService = _chatSessionsService;
|
|
614
629
|
this._archivedSessionListener = this._register(( new MutableDisposable()));
|
|
615
630
|
this._sessionTerminalAssociations = ( new ResourceMap());
|
|
616
631
|
this._sessionTerminalInstances = ( new ResourceMap());
|
|
@@ -696,13 +711,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
696
711
|
const partialInput = context.rawInput;
|
|
697
712
|
if (partialInput && typeof partialInput === "object" && partialInput.command) {
|
|
698
713
|
const truncatedCommand = buildCommandDisplayText(partialInput.command);
|
|
699
|
-
const invocationMessage = ( new MarkdownString(( localize(
|
|
714
|
+
const invocationMessage = ( new MarkdownString(( localize(17089, "Running `{0}`", escapeMarkdownSyntaxTokens(truncatedCommand)))));
|
|
700
715
|
return {
|
|
701
716
|
invocationMessage
|
|
702
717
|
};
|
|
703
718
|
}
|
|
704
719
|
return {
|
|
705
|
-
invocationMessage: ( localize(
|
|
720
|
+
invocationMessage: ( localize(17090, "Running command"))
|
|
706
721
|
};
|
|
707
722
|
}
|
|
708
723
|
async prepareToolInvocation(context, token) {
|
|
@@ -742,10 +757,15 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
742
757
|
let requiresAllowNetworkConfirmation = explicitAllowNetworkRequest;
|
|
743
758
|
let requestAllowNetworkReason = explicitAllowNetworkRequest ? args.requestAllowNetworkReason : undefined;
|
|
744
759
|
const missingDependencies = sandboxPrereqs.failedCheck === TerminalSandboxPrerequisiteCheck.Dependencies && sandboxPrereqs.missingDependencies?.length ? sandboxPrereqs.missingDependencies : undefined;
|
|
760
|
+
const canInstallMissingDependencies = !!missingDependencies && sandboxPrereqs.canInstallMissingDependencies === true;
|
|
745
761
|
const sandboxRemediations = sandboxPrereqs.failedCheck === TerminalSandboxPrerequisiteCheck.Bubblewrap && sandboxPrereqs.remediations?.length ? [...sandboxPrereqs.remediations] : undefined;
|
|
746
762
|
const sandboxPrerequisiteFailure = sandboxPrereqs.failedCheck === TerminalSandboxPrerequisiteCheck.Bubblewrap && !sandboxRemediations ? ( localize(
|
|
747
|
-
|
|
763
|
+
17091,
|
|
748
764
|
"Bubblewrap is installed but cannot create the required sandbox namespace on this system. The command was not executed."
|
|
765
|
+
)) : missingDependencies && !canInstallMissingDependencies ? ( localize(
|
|
766
|
+
17092,
|
|
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
|
+
missingDependencies.join(", ")
|
|
749
769
|
)) : undefined;
|
|
750
770
|
const terminalToolSessionId = generateUuid();
|
|
751
771
|
const terminalCommandId = `tool-${generateUuid()}`;
|
|
@@ -753,7 +773,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
753
773
|
const commandToDisplay = normalizeTerminalCommandForDisplay(args.command);
|
|
754
774
|
return {
|
|
755
775
|
invocationMessage: ( new MarkdownString(( localize(
|
|
756
|
-
|
|
776
|
+
17093,
|
|
757
777
|
"Not running `{0}` because unsandboxed execution is disabled",
|
|
758
778
|
escapeMarkdownSyntaxTokens(buildCommandDisplayText(commandToDisplay))
|
|
759
779
|
)))),
|
|
@@ -779,7 +799,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
779
799
|
const commandToDisplay = normalizeTerminalCommandForDisplay(args.command);
|
|
780
800
|
return {
|
|
781
801
|
invocationMessage: ( new MarkdownString(( localize(
|
|
782
|
-
|
|
802
|
+
17094,
|
|
783
803
|
"Not running `{0}` because unrestricted network access in the sandbox is disabled",
|
|
784
804
|
escapeMarkdownSyntaxTokens(buildCommandDisplayText(commandToDisplay))
|
|
785
805
|
)))),
|
|
@@ -842,46 +862,25 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
842
862
|
sandboxPrerequisiteFailure
|
|
843
863
|
};
|
|
844
864
|
let sandboxPrerequisiteConfirmation = undefined;
|
|
845
|
-
if (missingDependencies) {
|
|
865
|
+
if (missingDependencies && canInstallMissingDependencies) {
|
|
846
866
|
const depsList = missingDependencies.join(", ");
|
|
847
867
|
sandboxPrerequisiteConfirmation = {
|
|
848
|
-
title: ( localize(
|
|
868
|
+
title: ( localize(17095, "Missing Sandbox Dependencies")),
|
|
849
869
|
message: ( new MarkdownString(( localize(
|
|
850
|
-
|
|
870
|
+
17096,
|
|
851
871
|
"The following dependencies required for sandboxed execution are not installed: {0}. Would you like to install them?",
|
|
852
872
|
depsList
|
|
853
873
|
)))),
|
|
854
874
|
customOptions: [{
|
|
855
875
|
id: "install",
|
|
856
|
-
label: ( localize(
|
|
876
|
+
label: ( localize(17097, "Install")),
|
|
857
877
|
kind: ConfirmationOptionKind.Approve
|
|
858
878
|
}, {
|
|
859
879
|
id: "cancel",
|
|
860
|
-
label: ( localize(
|
|
880
|
+
label: ( localize(17098, "Cancel")),
|
|
861
881
|
kind: ConfirmationOptionKind.Deny
|
|
862
882
|
}]
|
|
863
883
|
};
|
|
864
|
-
} else if (sandboxRemediations) {
|
|
865
|
-
const customOptions = [];
|
|
866
|
-
if (sandboxRemediations.includes(
|
|
867
|
-
TerminalSandboxPreCheckRemediation.DisableUnprivilagedusernamespaceRestriction
|
|
868
|
-
)) {
|
|
869
|
-
customOptions.push({
|
|
870
|
-
id: TerminalSandboxPreCheckRemediation.DisableUnprivilagedusernamespaceRestriction,
|
|
871
|
-
label: ( localize(15333, "Apply Fix and Retry")),
|
|
872
|
-
kind: ConfirmationOptionKind.Approve
|
|
873
|
-
});
|
|
874
|
-
}
|
|
875
|
-
customOptions.push({
|
|
876
|
-
id: "cancel",
|
|
877
|
-
label: ( localize(15334, "Cancel")),
|
|
878
|
-
kind: ConfirmationOptionKind.Deny
|
|
879
|
-
});
|
|
880
|
-
sandboxPrerequisiteConfirmation = {
|
|
881
|
-
title: ( localize(15335, "Repair Bubblewrap Sandbox")),
|
|
882
|
-
message: ( new MarkdownString(( localize(15336, "Bubblewrap cannot create the sandbox environment.")))),
|
|
883
|
-
customOptions
|
|
884
|
-
};
|
|
885
884
|
}
|
|
886
885
|
const alternativeRecommendation = getRecommendedToolsOverRunInTerminal(args.command, this._languageModelToolsService);
|
|
887
886
|
if (alternativeRecommendation) {
|
|
@@ -975,12 +974,12 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
975
974
|
cwdLabel: directoryLabel,
|
|
976
975
|
cdPrefix
|
|
977
976
|
};
|
|
978
|
-
confirmationTitle = ( localize(
|
|
977
|
+
confirmationTitle = ( localize(17099, "Run `{0}` command within `{1}`?", shellType, directoryLabel));
|
|
979
978
|
} else {
|
|
980
979
|
toolSpecificData.confirmation = {
|
|
981
980
|
commandLine: commandToDisplay
|
|
982
981
|
};
|
|
983
|
-
confirmationTitle = ( localize(
|
|
982
|
+
confirmationTitle = ( localize(17100, "Run `{0}` command?", shellType));
|
|
984
983
|
}
|
|
985
984
|
const commandForPresenter = extractedCd?.command ?? commandToDisplay;
|
|
986
985
|
let presenterInput = commandForPresenter;
|
|
@@ -1001,7 +1000,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1001
1000
|
if (extractedCd && toolSpecificData.confirmation?.cwdLabel) {
|
|
1002
1001
|
if (presenterResult.languageDisplayName) {
|
|
1003
1002
|
confirmationTitle = ( localize(
|
|
1004
|
-
|
|
1003
|
+
17101,
|
|
1005
1004
|
"Run `{0}` command in `{1}` within `{2}`?",
|
|
1006
1005
|
presenterResult.languageDisplayName,
|
|
1007
1006
|
shellType,
|
|
@@ -1009,7 +1008,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1009
1008
|
));
|
|
1010
1009
|
} else {
|
|
1011
1010
|
confirmationTitle = ( localize(
|
|
1012
|
-
|
|
1011
|
+
17102,
|
|
1013
1012
|
"Run command in `{0}` within `{1}`?",
|
|
1014
1013
|
shellType,
|
|
1015
1014
|
toolSpecificData.confirmation.cwdLabel
|
|
@@ -1018,13 +1017,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1018
1017
|
} else {
|
|
1019
1018
|
if (presenterResult.languageDisplayName) {
|
|
1020
1019
|
confirmationTitle = ( localize(
|
|
1021
|
-
|
|
1020
|
+
17103,
|
|
1022
1021
|
"Run `{0}` command in `{1}`?",
|
|
1023
1022
|
presenterResult.languageDisplayName,
|
|
1024
1023
|
shellType
|
|
1025
1024
|
));
|
|
1026
1025
|
} else {
|
|
1027
|
-
confirmationTitle = ( localize(
|
|
1026
|
+
confirmationTitle = ( localize(17104, "Run command in `{0}`?", shellType));
|
|
1028
1027
|
}
|
|
1029
1028
|
}
|
|
1030
1029
|
if (!presenterResult.processOtherPresenters) {
|
|
@@ -1035,43 +1034,39 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1035
1034
|
}
|
|
1036
1035
|
if (requiresUnsandboxConfirmation) {
|
|
1037
1036
|
confirmationTitle = blockedDomains?.length ? ( localize(
|
|
1038
|
-
|
|
1037
|
+
17105,
|
|
1039
1038
|
"Run `{0}` command outside the [sandbox]({1}) to access {2}?",
|
|
1040
1039
|
shellType,
|
|
1041
1040
|
TERMINAL_SANDBOX_DOCUMENTATION_URL,
|
|
1042
1041
|
this._formatBlockedDomainsForTitle(blockedDomains)
|
|
1043
1042
|
)) : ( localize(
|
|
1044
|
-
|
|
1043
|
+
17106,
|
|
1045
1044
|
"Run `{0}` command outside the [sandbox]({1})?",
|
|
1046
1045
|
shellType,
|
|
1047
1046
|
TERMINAL_SANDBOX_DOCUMENTATION_URL
|
|
1048
1047
|
));
|
|
1049
1048
|
} else if (requiresAllowNetworkConfirmation) {
|
|
1050
|
-
confirmationTitle = ( localize(
|
|
1051
|
-
15345,
|
|
1052
|
-
"Allow the sandbox to run `{0}` command with unrestricted network access.",
|
|
1053
|
-
shellType
|
|
1054
|
-
));
|
|
1049
|
+
confirmationTitle = ( localize(17107, "Allow {0} command to access the network?", shellType));
|
|
1055
1050
|
}
|
|
1056
1051
|
const shouldShowConfirmation = (!isFinalAutoApproved && (!isSessionAutoApproved || requiresAllowNetworkConfirmation)) || context.forceConfirmationReason !== undefined;
|
|
1057
|
-
const explanation = args.explanation || ( localize(
|
|
1058
|
-
const goal = args.goal || ( localize(
|
|
1052
|
+
const explanation = args.explanation || ( localize(17108, "No explanation provided"));
|
|
1053
|
+
const goal = args.goal || ( localize(17109, "No goal provided"));
|
|
1059
1054
|
const confirmationMessage = requiresUnsandboxConfirmation ? ( new MarkdownString(( localize(
|
|
1060
|
-
|
|
1055
|
+
17110,
|
|
1061
1056
|
"Explanation: {0}\n\nGoal: {1}\n\nReason for leaving the sandbox: {2}",
|
|
1062
1057
|
explanation,
|
|
1063
1058
|
goal,
|
|
1064
|
-
requestUnsandboxedExecutionReason || ( localize(
|
|
1059
|
+
requestUnsandboxedExecutionReason || ( localize(17111, "The model indicated that this command needs unsandboxed access."))
|
|
1065
1060
|
)))) : requiresAllowNetworkConfirmation ? ( new MarkdownString(( localize(
|
|
1066
|
-
|
|
1061
|
+
17112,
|
|
1067
1062
|
"Explanation: {0}\n\nGoal: {1}\n\nReason for allowing unrestricted network access in the sandbox: {2}",
|
|
1068
1063
|
explanation,
|
|
1069
1064
|
goal,
|
|
1070
1065
|
requestAllowNetworkReason || ( localize(
|
|
1071
|
-
|
|
1066
|
+
17113,
|
|
1072
1067
|
"The model indicated that this sandboxed command needs unrestricted network access."
|
|
1073
1068
|
))
|
|
1074
|
-
)))) : ( new MarkdownString(( localize(
|
|
1069
|
+
)))) : ( new MarkdownString(( localize(17114, "Explanation: {0}\n\nGoal: {1}", explanation, goal))));
|
|
1075
1070
|
const confirmationMessages = shouldShowConfirmation ? {
|
|
1076
1071
|
title: confirmationTitle,
|
|
1077
1072
|
message: confirmationMessage,
|
|
@@ -1082,10 +1077,10 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1082
1077
|
const rawDisplayCommand = toolSpecificData.commandLine.forDisplay ?? toolSpecificData.commandLine.toolEdited ?? toolSpecificData.commandLine.original;
|
|
1083
1078
|
const displayCommand = rawDisplayCommand.length > 80 ? rawDisplayCommand.substring(0, 77) + "..." : rawDisplayCommand;
|
|
1084
1079
|
const invocationMessage = toolSpecificData.commandLine.isSandboxWrapped ? ( new MarkdownString(( localize(
|
|
1085
|
-
|
|
1080
|
+
17115,
|
|
1086
1081
|
"Running `{0}` in sandbox",
|
|
1087
1082
|
escapeMarkdownSyntaxTokens(displayCommand)
|
|
1088
|
-
)))) : ( new MarkdownString(( localize(
|
|
1083
|
+
)))) : ( new MarkdownString(( localize(17116, "Running `{0}`", escapeMarkdownSyntaxTokens(displayCommand)))));
|
|
1089
1084
|
return {
|
|
1090
1085
|
invocationMessage,
|
|
1091
1086
|
icon: toolSpecificData.commandLine.isSandboxWrapped ? Codicon.terminalSecure : Codicon.terminal,
|
|
@@ -1098,7 +1093,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1098
1093
|
return `\`${blockedDomains[0]}\``;
|
|
1099
1094
|
}
|
|
1100
1095
|
return localize(
|
|
1101
|
-
|
|
1096
|
+
17117,
|
|
1102
1097
|
"`{0}` and {1} more domains",
|
|
1103
1098
|
blockedDomains[0],
|
|
1104
1099
|
blockedDomains.length - 1
|
|
@@ -1108,13 +1103,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1108
1103
|
if (deniedDomains.length === blockedDomains.length && deniedDomains.length > 0) {
|
|
1109
1104
|
if (blockedDomains.length === 1) {
|
|
1110
1105
|
return localize(
|
|
1111
|
-
|
|
1106
|
+
17118,
|
|
1112
1107
|
"This command accesses {0}, which is blocked by chat.agent.deniedNetworkDomains.",
|
|
1113
1108
|
blockedDomains[0]
|
|
1114
1109
|
);
|
|
1115
1110
|
}
|
|
1116
1111
|
return localize(
|
|
1117
|
-
|
|
1112
|
+
17119,
|
|
1118
1113
|
"This command accesses {0} and {1} more domains that are blocked by chat.agent.deniedNetworkDomains.",
|
|
1119
1114
|
blockedDomains[0],
|
|
1120
1115
|
blockedDomains.length - 1
|
|
@@ -1123,13 +1118,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1123
1118
|
if (deniedDomains.length > 0) {
|
|
1124
1119
|
if (blockedDomains.length === 1) {
|
|
1125
1120
|
return localize(
|
|
1126
|
-
|
|
1121
|
+
17120,
|
|
1127
1122
|
"This command accesses {0}, which is blocked by chat.agent.deniedNetworkDomains or not added to chat.agent.allowedNetworkDomains.",
|
|
1128
1123
|
blockedDomains[0]
|
|
1129
1124
|
);
|
|
1130
1125
|
}
|
|
1131
1126
|
return localize(
|
|
1132
|
-
|
|
1127
|
+
17121,
|
|
1133
1128
|
"This command accesses {0} and {1} more domains that are blocked by chat.agent.deniedNetworkDomains or not added to chat.agent.allowedNetworkDomains.",
|
|
1134
1129
|
blockedDomains[0],
|
|
1135
1130
|
blockedDomains.length - 1
|
|
@@ -1137,13 +1132,13 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1137
1132
|
}
|
|
1138
1133
|
if (blockedDomains.length === 1) {
|
|
1139
1134
|
return localize(
|
|
1140
|
-
|
|
1135
|
+
17122,
|
|
1141
1136
|
"This command accesses {0}, which is not permitted by the current chat.agent.sandbox configuration.",
|
|
1142
1137
|
blockedDomains[0]
|
|
1143
1138
|
);
|
|
1144
1139
|
}
|
|
1145
1140
|
return localize(
|
|
1146
|
-
|
|
1141
|
+
17123,
|
|
1147
1142
|
"This command accesses {0} and {1} more domains that are not permitted by the current chat.agent.sandbox configuration.",
|
|
1148
1143
|
blockedDomains[0],
|
|
1149
1144
|
blockedDomains.length - 1
|
|
@@ -1257,11 +1252,11 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1257
1252
|
resolve(value);
|
|
1258
1253
|
};
|
|
1259
1254
|
const confirmationMessage = retryKind === "allowNetwork" ? ( new MarkdownString(( localize(
|
|
1260
|
-
|
|
1255
|
+
17124,
|
|
1261
1256
|
"`{0}`",
|
|
1262
1257
|
escapeMarkdownSyntaxTokens(buildCommandDisplayText(command))
|
|
1263
1258
|
)))) : ( new MarkdownString(( localize(
|
|
1264
|
-
|
|
1259
|
+
17125,
|
|
1265
1260
|
"`{0}`",
|
|
1266
1261
|
escapeMarkdownSyntaxTokens(buildCommandDisplayText(command))
|
|
1267
1262
|
))));
|
|
@@ -1269,8 +1264,8 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1269
1264
|
this._getAutomaticSandboxRetryTitle(retryKind, shellType, blockedDomains),
|
|
1270
1265
|
confirmationMessage,
|
|
1271
1266
|
"",
|
|
1272
|
-
( localize(
|
|
1273
|
-
( localize(
|
|
1267
|
+
( localize(17126, "Allow")),
|
|
1268
|
+
( localize(17127, "Skip")),
|
|
1274
1269
|
async () => {
|
|
1275
1270
|
resolveOnce(true);
|
|
1276
1271
|
part.hide();
|
|
@@ -1296,22 +1291,22 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1296
1291
|
_getAutomaticSandboxRetryTitle(retryKind, shellType, blockedDomains) {
|
|
1297
1292
|
if (retryKind === "allowNetwork") {
|
|
1298
1293
|
return blockedDomains?.length ? ( new MarkdownString(( localize(
|
|
1299
|
-
|
|
1294
|
+
17128,
|
|
1300
1295
|
"Retry `{0}` command in the sandbox by allowing network access to {1}?",
|
|
1301
1296
|
shellType,
|
|
1302
1297
|
this._formatBlockedDomainsForTitle(blockedDomains)
|
|
1303
1298
|
)))) : ( new MarkdownString(( localize(
|
|
1304
|
-
|
|
1299
|
+
17129,
|
|
1305
1300
|
"Retry `{0}` command in the sandbox by allowing network access?",
|
|
1306
1301
|
shellType
|
|
1307
1302
|
))));
|
|
1308
1303
|
}
|
|
1309
1304
|
return blockedDomains?.length ? ( new MarkdownString(( localize(
|
|
1310
|
-
|
|
1305
|
+
17130,
|
|
1311
1306
|
"Run `{0}` command outside the sandbox to access {1}?",
|
|
1312
1307
|
shellType,
|
|
1313
1308
|
this._formatBlockedDomainsForTitle(blockedDomains)
|
|
1314
|
-
)))) : ( new MarkdownString(( localize(
|
|
1309
|
+
)))) : ( new MarkdownString(( localize(17131, "Run `{0}` command outside the sandbox?", shellType))));
|
|
1315
1310
|
}
|
|
1316
1311
|
_registerSensitiveInputElicitation(
|
|
1317
1312
|
chatSessionResource,
|
|
@@ -1339,10 +1334,10 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1339
1334
|
if (chatModel instanceof ChatModel) {
|
|
1340
1335
|
const request = chatModel.getRequests().at(-1);
|
|
1341
1336
|
if (request) {
|
|
1342
|
-
const infoPart = ( new ChatElicitationRequestPart(( new MarkdownString(( localize(
|
|
1343
|
-
|
|
1337
|
+
const infoPart = ( new ChatElicitationRequestPart(( new MarkdownString(( localize(17132, "Terminal command cancelled — sensitive input required")))), ( new MarkdownString(( localize(
|
|
1338
|
+
17133,
|
|
1344
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."
|
|
1345
|
-
)))), "", ( localize(
|
|
1340
|
+
)))), "", ( localize(17134, "Dismiss")), "", async () => {
|
|
1346
1341
|
infoPart.hide();
|
|
1347
1342
|
return ElicitationState.Accepted;
|
|
1348
1343
|
}, async () => {
|
|
@@ -1366,10 +1361,10 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1366
1361
|
if (!request) {
|
|
1367
1362
|
return;
|
|
1368
1363
|
}
|
|
1369
|
-
const part = ( new ChatElicitationRequestPart(( new MarkdownString(( localize(
|
|
1370
|
-
|
|
1364
|
+
const part = ( new ChatElicitationRequestPart(( new MarkdownString(( localize(17135, "Terminal is waiting for sensitive input")))), ( new MarkdownString(( localize(
|
|
1365
|
+
17136,
|
|
1371
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."
|
|
1372
|
-
)))), "", ( localize(
|
|
1367
|
+
)))), "", ( localize(17137, "Focus Terminal")), ( localize(17138, "Cancel Command")), async () => {
|
|
1373
1368
|
pending = undefined;
|
|
1374
1369
|
part.hide();
|
|
1375
1370
|
try {
|
|
@@ -1415,14 +1410,14 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1415
1410
|
const progress = {
|
|
1416
1411
|
kind: "externalToolInvocationUpdate",
|
|
1417
1412
|
toolCallId,
|
|
1418
|
-
toolName: ( localize(
|
|
1413
|
+
toolName: ( localize(17083, "Run in Terminal")),
|
|
1419
1414
|
isComplete,
|
|
1420
1415
|
invocationMessage: retryKind === "allowNetwork" ? ( new MarkdownString(( localize(
|
|
1421
|
-
|
|
1416
|
+
17139,
|
|
1422
1417
|
"Running `{0}` in the sandbox with unrestricted network access",
|
|
1423
1418
|
escapeMarkdownSyntaxTokens(displayCommand)
|
|
1424
1419
|
)))) : ( new MarkdownString(( localize(
|
|
1425
|
-
|
|
1420
|
+
17140,
|
|
1426
1421
|
"Running `{0}` outside the sandbox",
|
|
1427
1422
|
escapeMarkdownSyntaxTokens(displayCommand)
|
|
1428
1423
|
)))),
|
|
@@ -1600,7 +1595,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1600
1595
|
content: [{
|
|
1601
1596
|
kind: "text",
|
|
1602
1597
|
value: ( localize(
|
|
1603
|
-
|
|
1598
|
+
17141,
|
|
1604
1599
|
"Sandbox dependency installation failed (exit code {0}). The command was not executed.",
|
|
1605
1600
|
exitCode
|
|
1606
1601
|
))
|
|
@@ -1612,7 +1607,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1612
1607
|
content: [{
|
|
1613
1608
|
kind: "text",
|
|
1614
1609
|
value: ( localize(
|
|
1615
|
-
|
|
1610
|
+
17142,
|
|
1616
1611
|
"Could not determine whether sandbox dependency installation succeeded. The command was not executed."
|
|
1617
1612
|
))
|
|
1618
1613
|
}]
|
|
@@ -1624,41 +1619,40 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1624
1619
|
content: [{
|
|
1625
1620
|
kind: "text",
|
|
1626
1621
|
value: refreshedPrereqs.failedCheck === TerminalSandboxPrerequisiteCheck.Bubblewrap && refreshedPrereqs.remediations?.length ? ( localize(
|
|
1627
|
-
|
|
1622
|
+
17143,
|
|
1628
1623
|
"Sandbox dependencies were installed, but bubblewrap cannot create the required sandbox namespace. Run the command again to choose an available repair option."
|
|
1629
1624
|
)) : refreshedPrereqs.failedCheck === TerminalSandboxPrerequisiteCheck.Bubblewrap ? ( localize(
|
|
1630
|
-
|
|
1625
|
+
17144,
|
|
1631
1626
|
"Sandbox dependencies were installed, but bubblewrap cannot create the required sandbox namespace on this system. The command was not executed."
|
|
1632
1627
|
)) : ( localize(
|
|
1633
|
-
|
|
1628
|
+
17145,
|
|
1634
1629
|
"Sandbox prerequisites are still not satisfied after installation. The command was not executed."
|
|
1635
1630
|
))
|
|
1636
1631
|
}]
|
|
1637
1632
|
};
|
|
1638
1633
|
}
|
|
1639
|
-
this._logService.info(
|
|
1640
|
-
"RunInTerminalTool: Sandbox dependency installation succeeded, proceeding with command execution"
|
|
1641
|
-
);
|
|
1642
|
-
} else {
|
|
1643
|
-
this._logService.info("RunInTerminalTool: User cancelled sandbox dependency installation");
|
|
1634
|
+
this._logService.info("RunInTerminalTool: Sandbox dependency installation succeeded");
|
|
1644
1635
|
return {
|
|
1645
1636
|
content: [{
|
|
1646
1637
|
kind: "text",
|
|
1647
|
-
value: ( localize(
|
|
1638
|
+
value: ( localize(
|
|
1639
|
+
17146,
|
|
1640
|
+
"Sandbox dependencies were installed successfully. If the issue persists, reload the window and try running the command again."
|
|
1641
|
+
))
|
|
1648
1642
|
}]
|
|
1649
1643
|
};
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
|
-
if (toolSpecificData.sandboxRemediations?.length) {
|
|
1653
|
-
const selectedRemediation = invocation.selectedCustomButton;
|
|
1654
|
-
if (!selectedRemediation || !toolSpecificData.sandboxRemediations.includes(selectedRemediation)) {
|
|
1644
|
+
} else {
|
|
1645
|
+
this._logService.info("RunInTerminalTool: User cancelled sandbox dependency installation");
|
|
1655
1646
|
return {
|
|
1656
1647
|
content: [{
|
|
1657
1648
|
kind: "text",
|
|
1658
|
-
value: ( localize(
|
|
1649
|
+
value: ( localize(17147, "Sandbox dependency installation was cancelled by the user."))
|
|
1659
1650
|
}]
|
|
1660
1651
|
};
|
|
1661
1652
|
}
|
|
1653
|
+
}
|
|
1654
|
+
if (toolSpecificData.sandboxRemediations?.length) {
|
|
1655
|
+
const selectedRemediation = toolSpecificData.sandboxRemediations[0];
|
|
1662
1656
|
const {
|
|
1663
1657
|
exitCode
|
|
1664
1658
|
} = await this._terminalSandboxService.runSandboxRemediation(
|
|
@@ -1668,34 +1662,14 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1668
1662
|
sandboxPrerequisiteTerminalOptions
|
|
1669
1663
|
);
|
|
1670
1664
|
if (exitCode !== 0) {
|
|
1671
|
-
return
|
|
1672
|
-
content: [{
|
|
1673
|
-
kind: "text",
|
|
1674
|
-
value: exitCode === undefined ? ( localize(
|
|
1675
|
-
15386,
|
|
1676
|
-
"Could not determine whether the bubblewrap repair succeeded. The command was not executed."
|
|
1677
|
-
)) : ( localize(
|
|
1678
|
-
15387,
|
|
1679
|
-
"Bubblewrap repair failed (exit code {0}). The command was not executed.",
|
|
1680
|
-
exitCode
|
|
1681
|
-
))
|
|
1682
|
-
}]
|
|
1683
|
-
};
|
|
1665
|
+
return this._getBubblewrapUnsupportedResult();
|
|
1684
1666
|
}
|
|
1685
1667
|
const refreshedPrereqs = await this._terminalSandboxService.checkForSandboxingPrereqs(true, sandboxPrecheckInputs);
|
|
1686
1668
|
if (refreshedPrereqs.failedCheck !== undefined) {
|
|
1687
|
-
return
|
|
1688
|
-
content: [{
|
|
1689
|
-
kind: "text",
|
|
1690
|
-
value: ( localize(
|
|
1691
|
-
15388,
|
|
1692
|
-
"Bubblewrap still cannot create the required sandbox namespace after remediation. The command was not executed."
|
|
1693
|
-
))
|
|
1694
|
-
}]
|
|
1695
|
-
};
|
|
1669
|
+
return this._getBubblewrapUnsupportedResult();
|
|
1696
1670
|
}
|
|
1697
1671
|
this._logService.info(
|
|
1698
|
-
"RunInTerminalTool: Bubblewrap remediation succeeded, proceeding with command execution"
|
|
1672
|
+
"RunInTerminalTool: Bubblewrap remediation and capability recheck succeeded, proceeding with command execution"
|
|
1699
1673
|
);
|
|
1700
1674
|
}
|
|
1701
1675
|
const executionOptions = this._resolveExecutionOptions(args);
|
|
@@ -1747,11 +1721,11 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
1747
1721
|
}
|
|
1748
1722
|
let error;
|
|
1749
1723
|
const automaticUnsandboxRetryReason = ( localize(
|
|
1750
|
-
|
|
1724
|
+
17148,
|
|
1751
1725
|
"The sandboxed execution output indicated the sandbox blocked the command."
|
|
1752
1726
|
));
|
|
1753
1727
|
const automaticAllowNetworkRetryReason = ( localize(
|
|
1754
|
-
|
|
1728
|
+
17149,
|
|
1755
1729
|
"The sandboxed execution output indicated the sandbox blocked required network access."
|
|
1756
1730
|
));
|
|
1757
1731
|
const isNewSession = !executionOptions.persistentSession && !( this._sessionTerminalAssociations.has(chatSessionResource));
|
|
@@ -2170,6 +2144,9 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2170
2144
|
if (altBufferResult) {
|
|
2171
2145
|
return altBufferResult;
|
|
2172
2146
|
}
|
|
2147
|
+
if (didSandboxWrapCommand && outputLooksBubblewrapHostRestricted(terminalResult)) {
|
|
2148
|
+
return this._getBubblewrapHostRestrictedResult();
|
|
2149
|
+
}
|
|
2173
2150
|
const shouldAutoRetryUnsandboxed = shouldAutomaticallyRetryUnsandboxed({
|
|
2174
2151
|
allowUnsandboxedCommands,
|
|
2175
2152
|
didSandboxWrapCommand,
|
|
@@ -2264,7 +2241,20 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2264
2241
|
if (outputAnalyzerMessage) {
|
|
2265
2242
|
resultText.push(`${outputAnalyzerMessage}\n`);
|
|
2266
2243
|
}
|
|
2267
|
-
|
|
2244
|
+
let outputForResult = terminalResult;
|
|
2245
|
+
if (this._configurationService.getValue(TerminalChatAgentToolsSettingId.OutputCompaction) === true) {
|
|
2246
|
+
try {
|
|
2247
|
+
const commandForCompaction = toolSpecificData.commandLine.forDisplay ?? command;
|
|
2248
|
+
const report = compact(commandForCompaction, terminalResult);
|
|
2249
|
+
this._telemetry.logCompaction(report);
|
|
2250
|
+
if (report.applied) {
|
|
2251
|
+
outputForResult = report.compactedOutput;
|
|
2252
|
+
}
|
|
2253
|
+
} catch {
|
|
2254
|
+
this._telemetry.logCompactionFailed();
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
const processedOutput = await this._largeOutputFileWriter.processOutput(outputForResult);
|
|
2268
2258
|
resultText.push(processedOutput);
|
|
2269
2259
|
const isError = exitCode !== undefined && exitCode !== 0;
|
|
2270
2260
|
const endCwd = await toolTerminal.instance.getCwdResource();
|
|
@@ -2285,7 +2275,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2285
2275
|
output: [{
|
|
2286
2276
|
type: "embed",
|
|
2287
2277
|
isText: true,
|
|
2288
|
-
value:
|
|
2278
|
+
value: outputForResult
|
|
2289
2279
|
}],
|
|
2290
2280
|
isError: true
|
|
2291
2281
|
} : undefined,
|
|
@@ -2295,6 +2285,47 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2295
2285
|
}, ...imageContent]
|
|
2296
2286
|
};
|
|
2297
2287
|
}
|
|
2288
|
+
_getBubblewrapUnsupportedResult() {
|
|
2289
|
+
const settingId = AgentSandboxSettingId.AgentSandboxEnabled;
|
|
2290
|
+
const message = ( localize(
|
|
2291
|
+
17150,
|
|
2292
|
+
"Sandboxing is not supported in this environment. To disable sandboxing, set `{0}` to `off`. The command was not executed.",
|
|
2293
|
+
settingId
|
|
2294
|
+
));
|
|
2295
|
+
const settingsCommandArgs = encodeURIComponent(JSON.stringify([`@id:${settingId}`]));
|
|
2296
|
+
const toolResultMessage = ( new MarkdownString(( localize(
|
|
2297
|
+
17151,
|
|
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
|
+
settingId,
|
|
2300
|
+
settingsCommandArgs
|
|
2301
|
+
)), {
|
|
2302
|
+
isTrusted: {
|
|
2303
|
+
enabledCommands: ["workbench.action.openSettings"]
|
|
2304
|
+
}
|
|
2305
|
+
}));
|
|
2306
|
+
return {
|
|
2307
|
+
content: [{
|
|
2308
|
+
kind: "text",
|
|
2309
|
+
value: message
|
|
2310
|
+
}],
|
|
2311
|
+
toolResultMessage
|
|
2312
|
+
};
|
|
2313
|
+
}
|
|
2314
|
+
_getBubblewrapHostRestrictedResult() {
|
|
2315
|
+
const settingId = AgentSandboxSettingId.AgentSandboxEnabled;
|
|
2316
|
+
const message = ( localize(
|
|
2317
|
+
17152,
|
|
2318
|
+
"Sandbox creation failed due to host restrictions. Sandboxing can be disabled by setting `{0}` to `off`.",
|
|
2319
|
+
settingId
|
|
2320
|
+
));
|
|
2321
|
+
return {
|
|
2322
|
+
content: [{
|
|
2323
|
+
kind: "text",
|
|
2324
|
+
value: message
|
|
2325
|
+
}],
|
|
2326
|
+
toolResultMessage: message
|
|
2327
|
+
};
|
|
2328
|
+
}
|
|
2298
2329
|
_buildInputNeededSteeringText(chatSessionResource, termId, hungHint) {
|
|
2299
2330
|
const isAutoApproved = isSessionAutoApproveLevel(
|
|
2300
2331
|
chatSessionResource,
|
|
@@ -2680,7 +2711,16 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2680
2711
|
if (lastRequest) {
|
|
2681
2712
|
sendOptions.userSelectedModelId = lastRequest.modelId;
|
|
2682
2713
|
sendOptions.modeInfo = lastRequest.modeInfo;
|
|
2683
|
-
|
|
2714
|
+
const previousAgentId = lastRequest.response?.agent?.id;
|
|
2715
|
+
sendOptions.agentIdSilent = previousAgentId;
|
|
2716
|
+
const contribution = previousAgentId ? this._chatSessionsService.getChatSessionContribution(previousAgentId) : undefined;
|
|
2717
|
+
const autoAttachEnabled = contribution ? contribution.autoAttachReferences === true : true;
|
|
2718
|
+
if (autoAttachEnabled) {
|
|
2719
|
+
sendOptions.instructionContext = {
|
|
2720
|
+
modeKind: lastRequest.modeInfo?.kind ?? ChatModeKind.Agent,
|
|
2721
|
+
enabledTools: lastRequest.userSelectedTools
|
|
2722
|
+
};
|
|
2723
|
+
}
|
|
2684
2724
|
if (lastRequest.userSelectedTools) {
|
|
2685
2725
|
sendOptions.userSelectedTools = constObservable(lastRequest.userSelectedTools);
|
|
2686
2726
|
}
|
|
@@ -2759,7 +2799,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2759
2799
|
...sendOptions,
|
|
2760
2800
|
queue: ChatRequestQueueKind.Steering,
|
|
2761
2801
|
isSystemInitiated: true,
|
|
2762
|
-
systemInitiatedLabel: ( localize(
|
|
2802
|
+
systemInitiatedLabel: ( localize(17153, "{0} may need input", commandDisplay)),
|
|
2763
2803
|
terminalExecutionId: termId
|
|
2764
2804
|
}).catch(e => {
|
|
2765
2805
|
this._logService.warn(
|
|
@@ -2799,7 +2839,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2799
2839
|
...sendOptions,
|
|
2800
2840
|
queue: ChatRequestQueueKind.Steering,
|
|
2801
2841
|
isSystemInitiated: true,
|
|
2802
|
-
systemInitiatedLabel: ( localize(
|
|
2842
|
+
systemInitiatedLabel: ( localize(17154, "{0} completed", commandDisplay)),
|
|
2803
2843
|
terminalExecutionId: termId
|
|
2804
2844
|
}).catch(e => {
|
|
2805
2845
|
this._logService.warn(
|
|
@@ -2853,7 +2893,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2853
2893
|
...sendOptions,
|
|
2854
2894
|
queue: ChatRequestQueueKind.Steering,
|
|
2855
2895
|
isSystemInitiated: true,
|
|
2856
|
-
systemInitiatedLabel: ( localize(
|
|
2896
|
+
systemInitiatedLabel: ( localize(17155, "{0} terminal exited", commandDisplay)),
|
|
2857
2897
|
terminalExecutionId: termId
|
|
2858
2898
|
}).catch(e => {
|
|
2859
2899
|
this._logService.warn(
|
|
@@ -2905,7 +2945,7 @@ let RunInTerminalTool = class RunInTerminalTool extends Disposable {
|
|
|
2905
2945
|
}
|
|
2906
2946
|
}
|
|
2907
2947
|
};
|
|
2908
|
-
RunInTerminalTool = RunInTerminalTool_1 = ( __decorate([( __param(0, IChatService)), ( __param(1, IConfigurationService)), ( __param(2, IFileService)), ( __param(3, IHistoryService)), ( __param(4, IInstantiationService)), ( __param(5, ILabelService)), ( __param(6, ILanguageModelToolsService)), ( __param(7, IRemoteAgentService)), ( __param(8, IStorageService)), ( __param(9, ITerminalChatService)), ( __param(10, ITerminalLogService)), ( __param(11, ITerminalService)), ( __param(12, ITerminalSandboxService)), ( __param(13, IWorkspaceContextService)), ( __param(14, IChatWidgetService)), ( __param(15, IAgentSessionsService)), ( __param(16, ILifecycleService))], RunInTerminalTool));
|
|
2948
|
+
RunInTerminalTool = RunInTerminalTool_1 = ( __decorate([( __param(0, IChatService)), ( __param(1, IConfigurationService)), ( __param(2, IFileService)), ( __param(3, IHistoryService)), ( __param(4, IInstantiationService)), ( __param(5, ILabelService)), ( __param(6, ILanguageModelToolsService)), ( __param(7, IRemoteAgentService)), ( __param(8, IStorageService)), ( __param(9, ITerminalChatService)), ( __param(10, ITerminalLogService)), ( __param(11, ITerminalService)), ( __param(12, ITerminalSandboxService)), ( __param(13, IWorkspaceContextService)), ( __param(14, IChatWidgetService)), ( __param(15, IAgentSessionsService)), ( __param(16, IChatSessionsService)), ( __param(17, ILifecycleService))], RunInTerminalTool));
|
|
2909
2949
|
let ActiveTerminalExecution = class ActiveTerminalExecution extends Disposable {
|
|
2910
2950
|
get completionPromise() {
|
|
2911
2951
|
return this._completionDeferred.p;
|
|
@@ -3122,4 +3162,4 @@ let TerminalProfileFetcher = class TerminalProfileFetcher {
|
|
|
3122
3162
|
};
|
|
3123
3163
|
TerminalProfileFetcher = TerminalProfileFetcher_1 = ( __decorate([( __param(0, IConfigurationService)), ( __param(1, ITerminalProfileResolverService)), ( __param(2, IRemoteAgentService)), ( __param(3, IFileService)), ( __param(4, ITerminalLogService))], TerminalProfileFetcher));
|
|
3124
3164
|
|
|
3125
|
-
export { RunInTerminalTool, TerminalProfileFetcher, buildCompletionNotificationCommand, createRunInTerminalToolData, createSandboxLines, createSandboxProperties, shouldAutomaticallyRetryAllowNetworkInSandboxed, shouldAutomaticallyRetryUnsandboxed };
|
|
3165
|
+
export { RunInTerminalTool, TerminalProfileFetcher, buildCompletionNotificationCommand, createRunInTerminalToolData, createSandboxLines, createSandboxProperties, outputLooksBubblewrapHostRestricted, shouldAutomaticallyRetryAllowNetworkInSandboxed, shouldAutomaticallyRetryUnsandboxed };
|