@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
|
@@ -1,36 +1,77 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
|
-
import {
|
|
4
|
+
import { isCancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
5
|
+
import { Disposable, toDisposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
6
|
import { raceTimeout, DeferredPromise } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
6
|
-
import
|
|
7
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
7
8
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
8
9
|
import { IEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service';
|
|
9
10
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
11
|
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
11
12
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { AgentHostAhpJsonlLoggingSettingId } from '
|
|
15
|
-
import { RemoteAgentHostsSettingId,
|
|
16
|
-
import {
|
|
13
|
+
import { observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/observable/common/platformObservableUtils';
|
|
14
|
+
import { hasKey } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
15
|
+
import { AgentHostAhpJsonlLoggingSettingId } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService';
|
|
16
|
+
import { RemoteAgentHostEntryType, RemoteAgentHostsSettingId, isRawRemoteAgentHostEntry, isLegacySshRawEntry, WEBSOCKET_ENTRY_TYPE_CONFIG, RemoteAgentHostsEnabledSettingId, RemoteAgentHostAutoConnectSettingId, getEntryTypeConfig, RemoteAgentHostConnectionStatus } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/remoteAgentHostService';
|
|
17
|
+
import { hasExhaustedReconnectAttempts, computeReconnectDelay } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/reconnectPolicy';
|
|
18
|
+
import { NonReconnectableTransportError, AgentHostTransportFailureReason } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/sessionTransport';
|
|
19
|
+
import { AgentHostProtocolClient, InitialAuthenticationError } from './agentHostProtocolClient.js';
|
|
17
20
|
import { WebSocketClientTransport } from './webSocketClientTransport.js';
|
|
18
21
|
import { normalizeRemoteAgentHostAddress, agentHostAuthority, AGENT_HOST_LABEL_FORMATTER, AGENT_HOST_SCHEME } from '@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentHostUri';
|
|
19
|
-
import { isDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
20
22
|
import { PROTOCOL_VERSION } from '../common/state/protocol/version/registry.js';
|
|
23
|
+
import { editorWindowAgentHostClientInfo } from '../common/agentHostClientInfo.js';
|
|
24
|
+
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
25
|
+
import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
|
|
26
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
21
27
|
|
|
22
28
|
var RemoteAgentHostService_1;
|
|
23
|
-
const SSH_REMOTE_AGENT_HOSTS_STORAGE_KEY = "remoteAgentHost.sshConnections";
|
|
24
29
|
function disposeEntry(entry) {
|
|
25
30
|
entry.store.dispose();
|
|
26
31
|
entry.transportDisposable?.dispose();
|
|
27
32
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
function isTerminalConnectError(err) {
|
|
34
|
+
return err instanceof NonReconnectableTransportError || isCancellationError(err);
|
|
35
|
+
}
|
|
36
|
+
class WebSocketConnectionFactory extends Disposable {
|
|
37
|
+
constructor(
|
|
38
|
+
_instantiationService,
|
|
39
|
+
_configurationService,
|
|
40
|
+
_environmentService,
|
|
41
|
+
_clientInfo
|
|
42
|
+
) {
|
|
43
|
+
super();
|
|
44
|
+
this._instantiationService = _instantiationService;
|
|
45
|
+
this._configurationService = _configurationService;
|
|
46
|
+
this._environmentService = _environmentService;
|
|
47
|
+
this._clientInfo = _clientInfo;
|
|
48
|
+
this.kind = RemoteAgentHostEntryType.WebSocket;
|
|
49
|
+
this._rawEntries = observableConfigValue(RemoteAgentHostsSettingId, [], this._configurationService);
|
|
50
|
+
this.entries = derived(this, reader => ( this._rawEntries.read(reader).filter(isRawRemoteAgentHostEntry).filter(entry => !isLegacySshRawEntry(entry)).map(entry => WEBSOCKET_ENTRY_TYPE_CONFIG.fromRaw(entry))));
|
|
51
|
+
}
|
|
52
|
+
createConnection(entry, _options) {
|
|
53
|
+
if (entry.connection.type !== RemoteAgentHostEntryType.WebSocket) {
|
|
54
|
+
throw ( new Error(`WebSocket factory cannot create a ${entry.connection.type} connection.`));
|
|
55
|
+
}
|
|
56
|
+
const address = entry.connection.address;
|
|
57
|
+
const ahpLoggingEnabled = !!this._configurationService.getValue(AgentHostAhpJsonlLoggingSettingId);
|
|
58
|
+
const transportFactory = () => this._instantiationService.createInstance(
|
|
59
|
+
WebSocketClientTransport,
|
|
60
|
+
address,
|
|
61
|
+
entry.connectionToken,
|
|
62
|
+
ahpLoggingEnabled ? {
|
|
63
|
+
logsHome: this._environmentService.logsHome,
|
|
64
|
+
connectionId: address,
|
|
65
|
+
transport: "websocket"
|
|
66
|
+
} : undefined
|
|
67
|
+
);
|
|
68
|
+
const connection = this._instantiationService.createInstance(AgentHostProtocolClient, address, transportFactory, {
|
|
69
|
+
clientInfo: this._clientInfo()
|
|
70
|
+
});
|
|
71
|
+
return Promise.resolve({
|
|
72
|
+
connection
|
|
73
|
+
});
|
|
31
74
|
}
|
|
32
|
-
const candidate = value;
|
|
33
|
-
return typeof candidate.address === "string" && typeof candidate.name === "string" && (candidate.connectionToken === undefined || typeof candidate.connectionToken === "string") && (candidate.sshConfigHost === undefined || typeof candidate.sshConfigHost === "string") && (candidate.sshHostName === undefined || typeof candidate.sshHostName === "string") && (candidate.sshUser === undefined || typeof candidate.sshUser === "string") && (candidate.sshPort === undefined || typeof candidate.sshPort === "number");
|
|
34
75
|
}
|
|
35
76
|
let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
36
77
|
static {
|
|
@@ -39,22 +80,18 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
39
80
|
static {
|
|
40
81
|
this.ConnectionWaitTimeout = 10000;
|
|
41
82
|
}
|
|
42
|
-
static {
|
|
43
|
-
this.ReconnectInitialDelay = 1000;
|
|
44
|
-
}
|
|
45
|
-
static {
|
|
46
|
-
this.ReconnectMaxDelay = 30000;
|
|
47
|
-
}
|
|
48
83
|
static {
|
|
49
84
|
this.UpgradeRequestTimeout = 5 * 60 * 1000;
|
|
50
85
|
}
|
|
86
|
+
get clientInfo() {
|
|
87
|
+
return editorWindowAgentHostClientInfo;
|
|
88
|
+
}
|
|
51
89
|
constructor(
|
|
52
90
|
_configurationService,
|
|
53
91
|
_instantiationService,
|
|
54
92
|
_logService,
|
|
55
93
|
_labelService,
|
|
56
|
-
_environmentService
|
|
57
|
-
_storageService
|
|
94
|
+
_environmentService
|
|
58
95
|
) {
|
|
59
96
|
super();
|
|
60
97
|
this._configurationService = _configurationService;
|
|
@@ -62,30 +99,62 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
62
99
|
this._logService = _logService;
|
|
63
100
|
this._labelService = _labelService;
|
|
64
101
|
this._environmentService = _environmentService;
|
|
65
|
-
this._storageService = _storageService;
|
|
66
102
|
this._onDidChangeConnections = this._register(( new Emitter()));
|
|
67
103
|
this.onDidChangeConnections = this._onDidChangeConnections.event;
|
|
68
104
|
this._entries = ( new Map());
|
|
105
|
+
this._connectionFactories = ( new Map());
|
|
106
|
+
this._connectionFactoriesObservable = observableValue(this, []);
|
|
107
|
+
this._configuredEntries = derived(this, reader => {
|
|
108
|
+
let entries = [];
|
|
109
|
+
for (const factory of this._connectionFactoriesObservable.read(reader)) {
|
|
110
|
+
for (const entry of factory.entries.read(reader)) {
|
|
111
|
+
entries = this._upsertEntry(entries, entry);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return entries;
|
|
115
|
+
});
|
|
116
|
+
this._pendingConnects = ( new Map());
|
|
69
117
|
this._names = ( new Map());
|
|
70
118
|
this._tokens = ( new Map());
|
|
71
|
-
this._registeredEntries = ( new Map());
|
|
72
119
|
this._pendingConnectionWaits = ( new Map());
|
|
120
|
+
this._failedReconnects = ( new Map());
|
|
73
121
|
this._reconnectTimeouts = ( new Map());
|
|
74
122
|
this._reconnectAttempts = ( new Map());
|
|
75
123
|
this._labelFormatters = ( new Map());
|
|
76
|
-
this.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
124
|
+
this._remoteAgentHostsEnabled = observableConfigValue(RemoteAgentHostsEnabledSettingId, true, this._configurationService);
|
|
125
|
+
this._remoteAgentHostsAutoConnect = observableConfigValue(RemoteAgentHostAutoConnectSettingId, true, this._configurationService);
|
|
126
|
+
this._register(this.registerConnectionFactory(this._register(( new WebSocketConnectionFactory(
|
|
127
|
+
this._instantiationService,
|
|
128
|
+
this._configurationService,
|
|
129
|
+
this._environmentService,
|
|
130
|
+
() => this.clientInfo
|
|
131
|
+
)))));
|
|
132
|
+
this._register(autorun(reader => {
|
|
133
|
+
this._configuredEntries.read(reader);
|
|
134
|
+
this._remoteAgentHostsEnabled.read(reader);
|
|
135
|
+
this._remoteAgentHostsAutoConnect.read(reader);
|
|
136
|
+
this._reconcileConnections();
|
|
80
137
|
}));
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
138
|
+
}
|
|
139
|
+
_entryAddress(entry) {
|
|
140
|
+
const config = getEntryTypeConfig(entry.connection.type);
|
|
141
|
+
const address = config.address(entry.connection);
|
|
142
|
+
return config.normalizedAddress ? normalizeRemoteAgentHostAddress(address) : address;
|
|
143
|
+
}
|
|
144
|
+
_normalizeEntry(entry) {
|
|
145
|
+
const config = getEntryTypeConfig(entry.connection.type);
|
|
146
|
+
if (!config.normalizedAddress || !hasKey(entry.connection, {
|
|
147
|
+
address: true
|
|
148
|
+
})) {
|
|
149
|
+
return entry;
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
...entry,
|
|
153
|
+
connection: {
|
|
154
|
+
...entry.connection,
|
|
155
|
+
address: normalizeRemoteAgentHostAddress(entry.connection.address)
|
|
156
|
+
}
|
|
157
|
+
};
|
|
89
158
|
}
|
|
90
159
|
get connections() {
|
|
91
160
|
const result = [];
|
|
@@ -93,26 +162,30 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
93
162
|
result.push({
|
|
94
163
|
address,
|
|
95
164
|
name: this._names.get(address) ?? address,
|
|
96
|
-
clientId: entry.client
|
|
97
|
-
defaultDirectory: entry.client
|
|
165
|
+
clientId: entry.client?.clientId,
|
|
166
|
+
defaultDirectory: entry.client?.defaultDirectory,
|
|
98
167
|
status: entry.status
|
|
99
168
|
});
|
|
100
169
|
}
|
|
101
170
|
return result;
|
|
102
171
|
}
|
|
103
172
|
get configuredEntries() {
|
|
104
|
-
return ( this.
|
|
105
|
-
|
|
106
|
-
|
|
173
|
+
return ( this._configuredEntries.get().map(entry => this._normalizeEntry(entry)));
|
|
174
|
+
}
|
|
175
|
+
registerConnectionFactory(factory) {
|
|
176
|
+
if (( this._connectionFactories.has(factory.kind))) {
|
|
177
|
+
throw ( new Error(
|
|
178
|
+
`A remote agent host connection factory is already registered for ${factory.kind}.`
|
|
179
|
+
));
|
|
180
|
+
}
|
|
181
|
+
this._connectionFactories.set(factory.kind, factory);
|
|
182
|
+
this._connectionFactoriesObservable.set([...( this._connectionFactories.values())], undefined);
|
|
183
|
+
return toDisposable(() => {
|
|
184
|
+
if (this._connectionFactories.get(factory.kind) === factory) {
|
|
185
|
+
this._connectionFactories.delete(factory.kind);
|
|
186
|
+
this._connectionFactoriesObservable.set([...( this._connectionFactories.values())], undefined);
|
|
107
187
|
}
|
|
108
|
-
|
|
109
|
-
...e,
|
|
110
|
-
connection: {
|
|
111
|
-
...e.connection,
|
|
112
|
-
address: normalizeRemoteAgentHostAddress(e.connection.address)
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
}));
|
|
188
|
+
});
|
|
116
189
|
}
|
|
117
190
|
getConnection(address) {
|
|
118
191
|
const normalized = normalizeRemoteAgentHostAddress(address);
|
|
@@ -129,20 +202,16 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
129
202
|
}
|
|
130
203
|
getEntryByAddress(address) {
|
|
131
204
|
const normalized = normalizeRemoteAgentHostAddress(address);
|
|
132
|
-
|
|
133
|
-
if (registered) {
|
|
134
|
-
return registered;
|
|
135
|
-
}
|
|
136
|
-
return this.configuredEntries.find(e => normalizeRemoteAgentHostAddress(getEntryAddress(e)) === normalized);
|
|
205
|
+
return this.configuredEntries.find(entry => this._entryAddress(entry) === normalized);
|
|
137
206
|
}
|
|
138
207
|
async triggerServerUpgrade(address, method) {
|
|
139
208
|
const normalized = normalizeRemoteAgentHostAddress(address);
|
|
140
|
-
const
|
|
141
|
-
if (!
|
|
142
|
-
throw ( new Error(`No remote agent host
|
|
209
|
+
const client = this._entries.get(normalized)?.client;
|
|
210
|
+
if (!client) {
|
|
211
|
+
throw ( new Error(`No usable remote agent host client found for ${address}.`));
|
|
143
212
|
}
|
|
144
213
|
const result = await raceTimeout(
|
|
145
|
-
|
|
214
|
+
client.triggerVscodeUpgrade(method),
|
|
146
215
|
RemoteAgentHostService_1.UpgradeRequestTimeout
|
|
147
216
|
);
|
|
148
217
|
if (result === undefined) {
|
|
@@ -152,119 +221,98 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
152
221
|
}
|
|
153
222
|
return result;
|
|
154
223
|
}
|
|
155
|
-
reconnect(address) {
|
|
224
|
+
reconnect(address, userInitiated = true) {
|
|
225
|
+
if (this._store.isDisposed) {
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
156
228
|
const normalized = normalizeRemoteAgentHostAddress(address);
|
|
157
|
-
|
|
158
|
-
|
|
229
|
+
if (( this._pendingConnects.has(normalized))) {
|
|
230
|
+
if (userInitiated) {
|
|
231
|
+
this._failedReconnects.delete(normalized);
|
|
232
|
+
this._cancelReconnect(normalized);
|
|
233
|
+
this._reconnectAttempts.delete(normalized);
|
|
234
|
+
}
|
|
159
235
|
return;
|
|
160
236
|
}
|
|
161
|
-
|
|
237
|
+
this._failedReconnects.delete(normalized);
|
|
238
|
+
const configuredEntry = this._configuredEntries.get().find(entry => this._entryAddress(entry) === normalized);
|
|
239
|
+
if (!configuredEntry) {
|
|
240
|
+
this._failedReconnects.set(normalized, ( new Error(`No remote agent host entry is staged for ${normalized}.`)));
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
if (!( this._connectionFactories.has(configuredEntry.connection.type))) {
|
|
244
|
+
this._failedReconnects.set(normalized, ( new Error(
|
|
245
|
+
`No connection factory is registered for ${configuredEntry.connection.type}.`
|
|
246
|
+
)));
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
const entryToReconnect = {
|
|
250
|
+
...configuredEntry,
|
|
251
|
+
connectionToken: this._tokens.get(normalized) ?? configuredEntry.connectionToken
|
|
252
|
+
};
|
|
162
253
|
this._cancelReconnect(normalized);
|
|
163
|
-
|
|
254
|
+
if (userInitiated) {
|
|
255
|
+
this._reconnectAttempts.delete(normalized);
|
|
256
|
+
}
|
|
164
257
|
const entry = this._entries.get(normalized);
|
|
165
258
|
if (entry) {
|
|
166
259
|
this._entries.delete(normalized);
|
|
167
260
|
entry.store.dispose();
|
|
261
|
+
if (!entry.reconnectTransfersTransportOwnership) {
|
|
262
|
+
entry.transportDisposable?.dispose();
|
|
263
|
+
}
|
|
264
|
+
this._onDidChangeConnections.fire();
|
|
168
265
|
}
|
|
169
|
-
this._connectTo(
|
|
266
|
+
void this._connectTo(entryToReconnect, {
|
|
267
|
+
userInitiated
|
|
268
|
+
});
|
|
170
269
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
270
|
+
reconnectNow(address) {
|
|
271
|
+
const normalized = normalizeRemoteAgentHostAddress(address);
|
|
272
|
+
if (this._entries.get(normalized)?.client?.reconnectNow()) {
|
|
273
|
+
return;
|
|
174
274
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
const address = getEntryAddress(entry);
|
|
183
|
-
const existingConnection = this._getConnectionInfo(address);
|
|
184
|
-
await this._storeConfiguredEntries(this._upsertConfiguredEntry(entry));
|
|
185
|
-
if (existingConnection) {
|
|
186
|
-
return {
|
|
187
|
-
...existingConnection,
|
|
188
|
-
name: entry.name
|
|
189
|
-
};
|
|
275
|
+
this.reconnect(normalized, true);
|
|
276
|
+
}
|
|
277
|
+
async waitForConnection(address) {
|
|
278
|
+
if (this._store.isDisposed) {
|
|
279
|
+
throw ( new Error("Remote agent host service is disposed."));
|
|
190
280
|
}
|
|
191
|
-
if (
|
|
192
|
-
|
|
193
|
-
address,
|
|
194
|
-
name: entry.name,
|
|
195
|
-
clientId: "",
|
|
196
|
-
status: RemoteAgentHostConnectionStatus.disconnected
|
|
197
|
-
};
|
|
281
|
+
if (!this._remoteAgentHostsEnabled.get()) {
|
|
282
|
+
throw ( new Error("Remote agent host connections are not enabled."));
|
|
198
283
|
}
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
|
|
284
|
+
const normalizedAddress = normalizeRemoteAgentHostAddress(address);
|
|
285
|
+
const existingConnection = this._getConnectionInfo(normalizedAddress);
|
|
286
|
+
if (existingConnection) {
|
|
287
|
+
return existingConnection;
|
|
288
|
+
}
|
|
289
|
+
const reconnectFailure = this._failedReconnects.get(normalizedAddress);
|
|
290
|
+
if (reconnectFailure) {
|
|
291
|
+
throw reconnectFailure;
|
|
292
|
+
}
|
|
293
|
+
const wait = this._getOrCreateConnectionWait(normalizedAddress);
|
|
294
|
+
const pendingConnect = this._pendingConnects.get(normalizedAddress);
|
|
295
|
+
if (pendingConnect) {
|
|
296
|
+
await pendingConnect;
|
|
297
|
+
const connected = this._getConnectionInfo(normalizedAddress);
|
|
298
|
+
if (connected) {
|
|
299
|
+
return connected;
|
|
300
|
+
}
|
|
301
|
+
return wait.p;
|
|
202
302
|
}
|
|
203
|
-
const wait = this._getOrCreateConnectionWait(address);
|
|
204
303
|
const connection = await raceTimeout(wait.p, RemoteAgentHostService_1.ConnectionWaitTimeout, () => {
|
|
205
|
-
this._pendingConnectionWaits.delete(
|
|
304
|
+
this._pendingConnectionWaits.delete(normalizedAddress);
|
|
206
305
|
});
|
|
207
306
|
if (!connection) {
|
|
208
|
-
throw ( new Error(`Timed out connecting to ${
|
|
307
|
+
throw ( new Error(`Timed out connecting to ${normalizedAddress}`));
|
|
209
308
|
}
|
|
210
309
|
return connection;
|
|
211
310
|
}
|
|
212
|
-
async addManagedConnection(
|
|
213
|
-
entry,
|
|
214
|
-
connection,
|
|
215
|
-
transportDisposable,
|
|
216
|
-
status = RemoteAgentHostConnectionStatus.connected
|
|
217
|
-
) {
|
|
218
|
-
if (!this._configurationService.getValue(RemoteAgentHostsEnabledSettingId)) {
|
|
219
|
-
throw ( new Error("Remote agent host connections are not enabled."));
|
|
220
|
-
}
|
|
221
|
-
const address = getEntryAddress(entry);
|
|
222
|
-
const existingEntry = this._entries.get(address);
|
|
223
|
-
if (existingEntry) {
|
|
224
|
-
this._entries.delete(address);
|
|
225
|
-
existingEntry.store.dispose();
|
|
226
|
-
}
|
|
227
|
-
const store = ( new DisposableStore());
|
|
228
|
-
const protocolClient = connection;
|
|
229
|
-
store.add(protocolClient);
|
|
230
|
-
const connEntry = {
|
|
231
|
-
store,
|
|
232
|
-
client: protocolClient,
|
|
233
|
-
transportDisposable,
|
|
234
|
-
connected: RemoteAgentHostConnectionStatus.isConnected(status),
|
|
235
|
-
status
|
|
236
|
-
};
|
|
237
|
-
this._entries.set(address, connEntry);
|
|
238
|
-
this._names.set(address, entry.name);
|
|
239
|
-
this._registeredEntries.set(address, entry);
|
|
240
|
-
this._updateHostLabelFormatter(address, entry.name);
|
|
241
|
-
if (entry.connectionToken) {
|
|
242
|
-
this._tokens.set(address, entry.connectionToken);
|
|
243
|
-
}
|
|
244
|
-
store.add(protocolClient.onDidClose(() => {
|
|
245
|
-
if (this._entries.get(address) === connEntry) {
|
|
246
|
-
connEntry.connected = false;
|
|
247
|
-
connEntry.status = RemoteAgentHostConnectionStatus.disconnected;
|
|
248
|
-
this._onDidChangeConnections.fire();
|
|
249
|
-
}
|
|
250
|
-
}));
|
|
251
|
-
await this._storeConfiguredEntries(this._upsertConfiguredEntry(entry));
|
|
252
|
-
this._onDidChangeConnections.fire();
|
|
253
|
-
return {
|
|
254
|
-
address,
|
|
255
|
-
name: entry.name,
|
|
256
|
-
clientId: protocolClient.clientId,
|
|
257
|
-
defaultDirectory: protocolClient.defaultDirectory,
|
|
258
|
-
status
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
311
|
async removeRemoteAgentHost(address) {
|
|
262
312
|
const normalized = normalizeRemoteAgentHostAddress(address);
|
|
263
|
-
const entries = this._getConfiguredEntries().filter(e => normalizeRemoteAgentHostAddress(getEntryAddress(e)) !== normalized);
|
|
264
|
-
await this._storeConfiguredEntries(entries);
|
|
265
313
|
this._names.delete(normalized);
|
|
266
314
|
this._tokens.delete(normalized);
|
|
267
|
-
this.
|
|
315
|
+
this._failedReconnects.delete(normalized);
|
|
268
316
|
this._clearHostLabelFormatter(normalized);
|
|
269
317
|
this._cancelReconnect(normalized);
|
|
270
318
|
this._reconnectAttempts.delete(normalized);
|
|
@@ -282,19 +330,22 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
282
330
|
notifyConnectionClosed(address) {
|
|
283
331
|
const normalized = normalizeRemoteAgentHostAddress(address);
|
|
284
332
|
const entry = this._entries.get(normalized);
|
|
285
|
-
if (entry) {
|
|
333
|
+
if (entry?.client) {
|
|
286
334
|
this._logService.info(
|
|
287
335
|
`[RemoteAgentHost] notifyConnectionClosed: notifying protocol client for ${normalized}`
|
|
288
336
|
);
|
|
289
337
|
entry.client.notifyTransportClosed();
|
|
290
338
|
} else {
|
|
291
339
|
this._logService.info(
|
|
292
|
-
`[RemoteAgentHost] notifyConnectionClosed: no
|
|
340
|
+
`[RemoteAgentHost] notifyConnectionClosed: no active client found for ${normalized}`
|
|
293
341
|
);
|
|
294
342
|
}
|
|
295
343
|
}
|
|
296
344
|
_reconcileConnections() {
|
|
297
|
-
if (
|
|
345
|
+
if (this._store.isDisposed) {
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
if (!this._remoteAgentHostsEnabled.get()) {
|
|
298
349
|
for (const address of [...( this._entries.keys())]) {
|
|
299
350
|
this._cancelReconnect(address);
|
|
300
351
|
this._removeConnection(address);
|
|
@@ -303,16 +354,14 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
303
354
|
this._tokens.clear();
|
|
304
355
|
this._reconnectAttempts.clear();
|
|
305
356
|
for (const address of [...( this._labelFormatters.keys())]) {
|
|
306
|
-
|
|
307
|
-
this._clearHostLabelFormatter(address);
|
|
308
|
-
}
|
|
357
|
+
this._clearHostLabelFormatter(address);
|
|
309
358
|
}
|
|
310
359
|
return;
|
|
311
360
|
}
|
|
312
|
-
const configuredEntries = this.
|
|
313
|
-
const entriesWithAddress = ( configuredEntries.map(
|
|
314
|
-
entry
|
|
315
|
-
address:
|
|
361
|
+
const configuredEntries = this._configuredEntries.get();
|
|
362
|
+
const entriesWithAddress = ( configuredEntries.map(entry => ({
|
|
363
|
+
entry,
|
|
364
|
+
address: this._entryAddress(entry)
|
|
316
365
|
})));
|
|
317
366
|
const desired = ( new Set(( entriesWithAddress.map(e => e.address))));
|
|
318
367
|
this._logService.info(
|
|
@@ -334,7 +383,7 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
334
383
|
}
|
|
335
384
|
}
|
|
336
385
|
for (const address of [...( this._labelFormatters.keys())]) {
|
|
337
|
-
if (!( desired.has(address))
|
|
386
|
+
if (!( desired.has(address))) {
|
|
338
387
|
this._clearHostLabelFormatter(address);
|
|
339
388
|
}
|
|
340
389
|
}
|
|
@@ -350,72 +399,162 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
350
399
|
entry,
|
|
351
400
|
address
|
|
352
401
|
} of entriesWithAddress) {
|
|
353
|
-
if (!( this._entries.has(address)) &&
|
|
354
|
-
this._connectTo(
|
|
402
|
+
if (!( this._entries.has(address)) && !( this._pendingConnects.has(address)) && this._shouldAutoConnect(entry)) {
|
|
403
|
+
void this._connectTo(entry, {
|
|
404
|
+
userInitiated: false
|
|
405
|
+
});
|
|
355
406
|
}
|
|
356
407
|
}
|
|
357
408
|
if (namesChanged) {
|
|
358
409
|
this._onDidChangeConnections.fire();
|
|
359
410
|
}
|
|
360
411
|
}
|
|
361
|
-
_connectTo(
|
|
362
|
-
if (
|
|
412
|
+
_connectTo(entryToConnect, options) {
|
|
413
|
+
if (this._store.isDisposed) {
|
|
414
|
+
return Promise.resolve();
|
|
415
|
+
}
|
|
416
|
+
const entryToCreate = this._normalizeEntry(entryToConnect);
|
|
417
|
+
const address = this._entryAddress(entryToCreate);
|
|
418
|
+
const existingPendingConnect = this._pendingConnects.get(address);
|
|
419
|
+
if (existingPendingConnect) {
|
|
420
|
+
return existingPendingConnect;
|
|
421
|
+
}
|
|
422
|
+
const pendingConnect = ( new DeferredPromise());
|
|
423
|
+
this._pendingConnects.set(address, pendingConnect.p);
|
|
424
|
+
void (async () => {
|
|
425
|
+
try {
|
|
426
|
+
await this._createAndConnect(entryToCreate, address, options);
|
|
427
|
+
} catch (err) {
|
|
428
|
+
this._logService.error(`[RemoteAgentHost] Unexpected error connecting to ${address}`, err);
|
|
429
|
+
} finally {
|
|
430
|
+
if (this._pendingConnects.get(address) === pendingConnect.p) {
|
|
431
|
+
this._pendingConnects.delete(address);
|
|
432
|
+
}
|
|
433
|
+
void pendingConnect.complete();
|
|
434
|
+
}
|
|
435
|
+
})();
|
|
436
|
+
return pendingConnect.p;
|
|
437
|
+
}
|
|
438
|
+
async _createAndConnect(entryToCreate, address, options) {
|
|
439
|
+
if (this._store.isDisposed || !this._remoteAgentHostsEnabled.get()) {
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
const factory = this._connectionFactories.get(entryToCreate.connection.type);
|
|
443
|
+
if (!factory) {
|
|
444
|
+
const error = ( new Error(
|
|
445
|
+
`No connection factory is registered for ${entryToCreate.connection.type}.`
|
|
446
|
+
));
|
|
447
|
+
this._logService.error(`[RemoteAgentHost] ${error.message} at ${address}`);
|
|
448
|
+
this._failedReconnects.set(address, error);
|
|
449
|
+
this._rejectPendingConnectionWait(address, error);
|
|
363
450
|
return;
|
|
364
451
|
}
|
|
365
452
|
const existingEntry = this._entries.get(address);
|
|
366
453
|
if (existingEntry) {
|
|
367
454
|
this._entries.delete(address);
|
|
368
|
-
existingEntry
|
|
455
|
+
disposeEntry(existingEntry);
|
|
456
|
+
}
|
|
457
|
+
let createdConnection;
|
|
458
|
+
try {
|
|
459
|
+
createdConnection = await factory.createConnection(entryToCreate, options);
|
|
460
|
+
} catch (err) {
|
|
461
|
+
this._logService.error(
|
|
462
|
+
`[RemoteAgentHost] Failed to create a connection to ${address}. Verify address and connectionToken`,
|
|
463
|
+
err
|
|
464
|
+
);
|
|
465
|
+
const disconnectReason = err instanceof NonReconnectableTransportError ? err.reason : AgentHostTransportFailureReason.Unknown;
|
|
466
|
+
this._entries.set(address, {
|
|
467
|
+
store: ( new DisposableStore()),
|
|
468
|
+
connected: false,
|
|
469
|
+
status: RemoteAgentHostConnectionStatus.disconnectedBecause(disconnectReason),
|
|
470
|
+
reconnectTransfersTransportOwnership: false
|
|
471
|
+
});
|
|
472
|
+
this._rejectPendingConnectionWait(address, err);
|
|
473
|
+
this._pendingConnects.delete(address);
|
|
474
|
+
this._onDidChangeConnections.fire();
|
|
475
|
+
if (!isTerminalConnectError(err) && !this._store.isDisposed && this._remoteAgentHostsEnabled.get()) {
|
|
476
|
+
this._scheduleReconnect(address, entryToCreate.connectionToken);
|
|
477
|
+
}
|
|
478
|
+
return;
|
|
479
|
+
}
|
|
480
|
+
if (this._store.isDisposed || !this._remoteAgentHostsEnabled.get() || !( this._configuredEntries.get().some(entry => this._entryAddress(entry) === address)) || ( this._entries.has(address))) {
|
|
481
|
+
createdConnection.connection.dispose();
|
|
482
|
+
createdConnection.transportDisposable?.dispose();
|
|
483
|
+
this._rejectPendingConnectionWait(address, ( new Error(
|
|
484
|
+
`Connection attempt for ${address} was discarded because it is no longer active.`
|
|
485
|
+
)));
|
|
486
|
+
return;
|
|
369
487
|
}
|
|
370
488
|
const store = ( new DisposableStore());
|
|
371
|
-
const
|
|
372
|
-
const transportFactory = () => this._instantiationService.createInstance(WebSocketClientTransport, address, connectionToken, ahpLoggingEnabled ? {
|
|
373
|
-
logsHome: this._environmentService.logsHome,
|
|
374
|
-
connectionId: address,
|
|
375
|
-
transport: "websocket"
|
|
376
|
-
} : undefined);
|
|
377
|
-
const client = store.add(
|
|
378
|
-
this._instantiationService.createInstance(RemoteAgentHostProtocolClient, address, transportFactory, undefined)
|
|
379
|
-
);
|
|
489
|
+
const client = store.add(createdConnection.connection);
|
|
380
490
|
const entry = {
|
|
381
491
|
store,
|
|
382
492
|
client,
|
|
493
|
+
transportDisposable: createdConnection.transportDisposable,
|
|
494
|
+
reconnectTransfersTransportOwnership: createdConnection.reconnectTransfersTransportOwnership ?? false,
|
|
383
495
|
connected: false,
|
|
384
496
|
status: RemoteAgentHostConnectionStatus.connecting
|
|
385
497
|
};
|
|
386
498
|
this._entries.set(address, entry);
|
|
387
499
|
const isCurrentEntry = () => this._entries.get(address) === entry;
|
|
388
|
-
store.add(client.onDidClose(
|
|
500
|
+
store.add(client.onDidClose(reason => {
|
|
389
501
|
if (!isCurrentEntry()) {
|
|
390
502
|
return;
|
|
391
503
|
}
|
|
392
504
|
this._logService.warn(`[RemoteAgentHost] Connection closed: ${address}`);
|
|
393
505
|
entry.connected = false;
|
|
394
|
-
entry.status = RemoteAgentHostConnectionStatus.
|
|
506
|
+
entry.status = RemoteAgentHostConnectionStatus.disconnectedBecause(reason ?? AgentHostTransportFailureReason.Unknown);
|
|
507
|
+
entry.client = undefined;
|
|
508
|
+
disposeEntry(entry);
|
|
509
|
+
this._onDidChangeConnections.fire();
|
|
510
|
+
this._scheduleReconnect(address, entryToCreate.connectionToken);
|
|
511
|
+
}));
|
|
512
|
+
store.add(client.onDidScheduleReconnect(() => {
|
|
513
|
+
if (!isCurrentEntry() || entry.status.kind !== "reconnecting") {
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
entry.status = RemoteAgentHostConnectionStatus.reconnectingUntil(client.nextReconnectAt);
|
|
395
517
|
this._onDidChangeConnections.fire();
|
|
396
|
-
this._scheduleReconnect(address, connectionToken);
|
|
397
518
|
}));
|
|
398
519
|
store.add(client.onDidChangeConnectionState(state => {
|
|
399
520
|
if (!isCurrentEntry()) {
|
|
400
521
|
return;
|
|
401
522
|
}
|
|
402
523
|
switch (state) {
|
|
403
|
-
case
|
|
524
|
+
case "reconnecting":
|
|
404
525
|
entry.connected = false;
|
|
405
|
-
entry.status = RemoteAgentHostConnectionStatus.
|
|
526
|
+
entry.status = RemoteAgentHostConnectionStatus.reconnectingUntil(client.nextReconnectAt);
|
|
406
527
|
this._onDidChangeConnections.fire();
|
|
407
528
|
break;
|
|
408
|
-
case
|
|
529
|
+
case "connected":
|
|
409
530
|
entry.connected = true;
|
|
410
531
|
entry.status = RemoteAgentHostConnectionStatus.connected;
|
|
532
|
+
this._reconnectAttempts.delete(address);
|
|
533
|
+
this._resolvePendingConnectionWait(address);
|
|
534
|
+
this._onDidChangeConnections.fire();
|
|
535
|
+
break;
|
|
536
|
+
case "connecting":
|
|
537
|
+
case "closed":
|
|
538
|
+
break;
|
|
539
|
+
case "incompatible":
|
|
540
|
+
entry.connected = false;
|
|
541
|
+
entry.status = RemoteAgentHostConnectionStatus.incompatible(
|
|
542
|
+
"Authentication failed during connection initialization.",
|
|
543
|
+
[PROTOCOL_VERSION]
|
|
544
|
+
);
|
|
545
|
+
this._reconnectAttempts.delete(address);
|
|
411
546
|
this._onDidChangeConnections.fire();
|
|
412
547
|
break;
|
|
413
548
|
}
|
|
414
549
|
}));
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
550
|
+
try {
|
|
551
|
+
this._logService.info(`[RemoteAgentHost] Connecting to ${address}`);
|
|
552
|
+
this._onDidChangeConnections.fire();
|
|
553
|
+
await client.connect();
|
|
554
|
+
if (store.isDisposed || !isCurrentEntry()) {
|
|
555
|
+
if (!store.isDisposed) {
|
|
556
|
+
disposeEntry(entry);
|
|
557
|
+
}
|
|
419
558
|
return;
|
|
420
559
|
}
|
|
421
560
|
this._logService.info(`[RemoteAgentHost] Connected to ${address}`);
|
|
@@ -424,11 +563,14 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
424
563
|
this._reconnectAttempts.delete(address);
|
|
425
564
|
this._resolvePendingConnectionWait(address);
|
|
426
565
|
this._onDidChangeConnections.fire();
|
|
427
|
-
}
|
|
566
|
+
} catch (err) {
|
|
428
567
|
if (!isCurrentEntry()) {
|
|
568
|
+
if (!store.isDisposed) {
|
|
569
|
+
disposeEntry(entry);
|
|
570
|
+
}
|
|
429
571
|
return;
|
|
430
572
|
}
|
|
431
|
-
const incompatible = RemoteAgentHostConnectionStatus.fromConnectError(err, [PROTOCOL_VERSION]);
|
|
573
|
+
const incompatible = err instanceof InitialAuthenticationError ? RemoteAgentHostConnectionStatus.incompatible(err.message, [PROTOCOL_VERSION]) : RemoteAgentHostConnectionStatus.fromConnectError(err, [PROTOCOL_VERSION]);
|
|
432
574
|
if (incompatible) {
|
|
433
575
|
this._logService.warn(
|
|
434
576
|
`[RemoteAgentHost] Incompatible with ${address}: ${incompatible.kind === "incompatible" ? incompatible.message : ""}`
|
|
@@ -443,37 +585,72 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
443
585
|
`[RemoteAgentHost] Failed to connect to ${address}. Verify address and connectionToken`,
|
|
444
586
|
err
|
|
445
587
|
);
|
|
446
|
-
entry.status
|
|
447
|
-
|
|
448
|
-
|
|
588
|
+
if (RemoteAgentHostConnectionStatus.isReconnecting(entry.status)) {
|
|
589
|
+
this._logService.info(
|
|
590
|
+
`[RemoteAgentHost] Handshake with ${address} was interrupted; the protocol client is restoring the connection`
|
|
591
|
+
);
|
|
592
|
+
return;
|
|
593
|
+
}
|
|
594
|
+
const disconnectReason = err instanceof NonReconnectableTransportError ? err.reason : AgentHostTransportFailureReason.Unknown;
|
|
595
|
+
entry.status = RemoteAgentHostConnectionStatus.disconnectedBecause(disconnectReason);
|
|
596
|
+
entry.client = undefined;
|
|
597
|
+
disposeEntry(entry);
|
|
449
598
|
this._rejectPendingConnectionWait(address, err);
|
|
450
599
|
this._onDidChangeConnections.fire();
|
|
451
|
-
this._scheduleReconnect(address, connectionToken);
|
|
452
|
-
}
|
|
600
|
+
this._scheduleReconnect(address, entryToCreate.connectionToken);
|
|
601
|
+
}
|
|
453
602
|
}
|
|
454
603
|
_scheduleReconnect(address, connectionToken) {
|
|
455
|
-
|
|
604
|
+
const configuredEntry = this._configuredEntries.get().find(entry => this._entryAddress(entry) === address);
|
|
605
|
+
if (!configuredEntry) {
|
|
456
606
|
this._logService.info(`[RemoteAgentHost] Not reconnecting to ${address}: no longer configured`);
|
|
457
607
|
return;
|
|
458
608
|
}
|
|
459
|
-
const
|
|
609
|
+
const reconnectPolicy = getEntryTypeConfig(configuredEntry.connection.type).reconnect;
|
|
610
|
+
if (!reconnectPolicy.autoRestore) {
|
|
611
|
+
this._logService.info(
|
|
612
|
+
`[RemoteAgentHost] Not reconnecting to ${address}: automatic restore is disabled`
|
|
613
|
+
);
|
|
614
|
+
return;
|
|
615
|
+
}
|
|
616
|
+
if (getEntryTypeConfig(configuredEntry.connection.type).dialedFromEntries && !this._shouldAutoConnect(configuredEntry)) {
|
|
617
|
+
this._logService.info(
|
|
618
|
+
`[RemoteAgentHost] Not reconnecting to ${address}: automatic connection is disabled`
|
|
619
|
+
);
|
|
620
|
+
return;
|
|
621
|
+
}
|
|
622
|
+
const previousAttempts = this._reconnectAttempts.get(address) ?? 0;
|
|
623
|
+
if (hasExhaustedReconnectAttempts(reconnectPolicy, previousAttempts)) {
|
|
624
|
+
this._logService.warn(
|
|
625
|
+
`[RemoteAgentHost] Stopped reconnecting to ${address}: reached attempt limit (${previousAttempts})`
|
|
626
|
+
);
|
|
627
|
+
return;
|
|
628
|
+
}
|
|
629
|
+
const attempt = previousAttempts + 1;
|
|
460
630
|
this._reconnectAttempts.set(address, attempt);
|
|
461
|
-
const delay =
|
|
462
|
-
RemoteAgentHostService_1.ReconnectInitialDelay * Math.pow(2, attempt - 1),
|
|
463
|
-
RemoteAgentHostService_1.ReconnectMaxDelay
|
|
464
|
-
);
|
|
631
|
+
const delay = computeReconnectDelay(reconnectPolicy, attempt);
|
|
465
632
|
this._logService.info(
|
|
466
633
|
`[RemoteAgentHost] Scheduling reconnect to ${address} in ${delay}ms (attempt ${attempt})`
|
|
467
634
|
);
|
|
468
635
|
this._cancelReconnect(address);
|
|
469
636
|
const timeout = setTimeout(() => {
|
|
470
637
|
this._reconnectTimeouts.delete(address);
|
|
471
|
-
|
|
472
|
-
|
|
638
|
+
const currentEntry = this._configuredEntries.get().find(entry => this._entryAddress(entry) === address);
|
|
639
|
+
if (currentEntry && (!getEntryTypeConfig(currentEntry.connection.type).dialedFromEntries || this._shouldAutoConnect(currentEntry))) {
|
|
640
|
+
void this._connectTo({
|
|
641
|
+
...currentEntry,
|
|
642
|
+
connectionToken: connectionToken ?? this._tokens.get(address) ?? currentEntry.connectionToken
|
|
643
|
+
}, {
|
|
644
|
+
userInitiated: false
|
|
645
|
+
});
|
|
473
646
|
}
|
|
474
647
|
}, delay);
|
|
475
648
|
this._reconnectTimeouts.set(address, timeout);
|
|
476
649
|
}
|
|
650
|
+
_shouldAutoConnect(entry) {
|
|
651
|
+
const config = getEntryTypeConfig(entry.connection.type);
|
|
652
|
+
return config.dialedFromEntries && (!config.autoConnectGated || this._remoteAgentHostsAutoConnect.get());
|
|
653
|
+
}
|
|
477
654
|
_cancelReconnect(address) {
|
|
478
655
|
const timeout = this._reconnectTimeouts.get(address);
|
|
479
656
|
if (timeout !== undefined) {
|
|
@@ -481,128 +658,15 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
481
658
|
this._reconnectTimeouts.delete(address);
|
|
482
659
|
}
|
|
483
660
|
}
|
|
484
|
-
_isAddressConfigured(address) {
|
|
485
|
-
const entries = this._getConfiguredEntries();
|
|
486
|
-
return ( entries.some(e => normalizeRemoteAgentHostAddress(getEntryAddress(e)) === address));
|
|
487
|
-
}
|
|
488
661
|
_getConnectionInfo(address) {
|
|
489
662
|
return this.connections.find(
|
|
490
663
|
connection => connection.address === address && RemoteAgentHostConnectionStatus.isConnected(connection.status)
|
|
491
664
|
);
|
|
492
665
|
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
const configuredEntries = this._mergeConfiguredEntries(this._getConfiguredSettingEntriesForTarget(), this._getStoredSSHEntries());
|
|
498
|
-
const normalizedAddress = normalizeRemoteAgentHostAddress(getEntryAddress(entry));
|
|
499
|
-
const existingIndex = configuredEntries.findIndex(
|
|
500
|
-
e => normalizeRemoteAgentHostAddress(getEntryAddress(e)) === normalizedAddress
|
|
501
|
-
);
|
|
502
|
-
if (existingIndex === -1) {
|
|
503
|
-
return [...configuredEntries, entry];
|
|
504
|
-
}
|
|
505
|
-
return ( configuredEntries.map((e, index) => index === existingIndex ? entry : e));
|
|
506
|
-
}
|
|
507
|
-
_getConfigurationTarget() {
|
|
508
|
-
const inspected = this._configurationService.inspect(RemoteAgentHostsSettingId);
|
|
509
|
-
if (inspected.userLocalValue !== undefined) {
|
|
510
|
-
return ConfigurationTarget.USER_LOCAL;
|
|
511
|
-
}
|
|
512
|
-
if (inspected.userRemoteValue !== undefined) {
|
|
513
|
-
return ConfigurationTarget.USER_REMOTE;
|
|
514
|
-
}
|
|
515
|
-
if (inspected.userValue !== undefined) {
|
|
516
|
-
return ConfigurationTarget.USER;
|
|
517
|
-
}
|
|
518
|
-
return ConfigurationTarget.USER;
|
|
519
|
-
}
|
|
520
|
-
async _storeConfiguredEntries(entries) {
|
|
521
|
-
this._storeStoredSSHEntries(
|
|
522
|
-
entries.filter(entry => entry.connection.type === RemoteAgentHostEntryType.SSH)
|
|
523
|
-
);
|
|
524
|
-
const raw = ( entries.filter(entry => entry.connection.type !== RemoteAgentHostEntryType.SSH).map(entryToRawEntry)).filter(isDefined);
|
|
525
|
-
await this._configurationService.updateValue(RemoteAgentHostsSettingId, raw, this._getConfigurationTarget());
|
|
526
|
-
}
|
|
527
|
-
_getConfiguredSettingEntries() {
|
|
528
|
-
return ( (this._configurationService.getValue(RemoteAgentHostsSettingId) ?? []).map(rawEntryToEntry)).filter(isDefined);
|
|
529
|
-
}
|
|
530
|
-
_getConfiguredSettingEntriesForTarget() {
|
|
531
|
-
return ( this._getConfiguredRawEntriesForTarget().map(rawEntryToEntry)).filter(isDefined);
|
|
532
|
-
}
|
|
533
|
-
_getConfiguredRawEntriesForTarget() {
|
|
534
|
-
const target = this._getConfigurationTarget();
|
|
535
|
-
const inspected = this._configurationService.inspect(RemoteAgentHostsSettingId);
|
|
536
|
-
switch (target) {
|
|
537
|
-
case ConfigurationTarget.USER_LOCAL:
|
|
538
|
-
return inspected.userLocalValue ?? [];
|
|
539
|
-
case ConfigurationTarget.USER_REMOTE:
|
|
540
|
-
return inspected.userRemoteValue ?? [];
|
|
541
|
-
default:
|
|
542
|
-
return inspected.userValue ?? [];
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
_getStoredSSHEntries() {
|
|
546
|
-
const raw = this._storageService.get(SSH_REMOTE_AGENT_HOSTS_STORAGE_KEY, StorageScope.APPLICATION);
|
|
547
|
-
if (!raw) {
|
|
548
|
-
return [];
|
|
549
|
-
}
|
|
550
|
-
try {
|
|
551
|
-
const parsed = JSON.parse(raw);
|
|
552
|
-
if (!Array.isArray(parsed)) {
|
|
553
|
-
return [];
|
|
554
|
-
}
|
|
555
|
-
return ( parsed.map(
|
|
556
|
-
item => isRawRemoteAgentHostEntry(item) ? rawEntryToEntry(item) : undefined
|
|
557
|
-
)).filter(entry => entry?.connection.type === RemoteAgentHostEntryType.SSH);
|
|
558
|
-
} catch {
|
|
559
|
-
return [];
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
_storeStoredSSHEntries(entries) {
|
|
563
|
-
const raw = ( entries.filter(entry => entry.connection.type === RemoteAgentHostEntryType.SSH).map(entryToRawEntry)).filter(isDefined);
|
|
564
|
-
if (raw.length === 0) {
|
|
565
|
-
this._storageService.remove(SSH_REMOTE_AGENT_HOSTS_STORAGE_KEY, StorageScope.APPLICATION);
|
|
566
|
-
} else {
|
|
567
|
-
this._storageService.store(
|
|
568
|
-
SSH_REMOTE_AGENT_HOSTS_STORAGE_KEY,
|
|
569
|
-
JSON.stringify(raw),
|
|
570
|
-
StorageScope.APPLICATION,
|
|
571
|
-
StorageTarget.USER
|
|
572
|
-
);
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
_migrateSSHEntriesFromSetting() {
|
|
576
|
-
const configuredEntries = this._getConfiguredSettingEntriesForTarget();
|
|
577
|
-
const sshEntries = configuredEntries.filter(entry => entry.connection.type === RemoteAgentHostEntryType.SSH);
|
|
578
|
-
if (sshEntries.length === 0) {
|
|
579
|
-
return;
|
|
580
|
-
}
|
|
581
|
-
const migratedEntries = this._mergeConfiguredEntries(this._getStoredSSHEntries(), sshEntries);
|
|
582
|
-
this._storeStoredSSHEntries(migratedEntries);
|
|
583
|
-
const nonSSHEntries = configuredEntries.filter(entry => entry.connection.type !== RemoteAgentHostEntryType.SSH);
|
|
584
|
-
const raw = ( nonSSHEntries.map(entryToRawEntry)).filter(isDefined);
|
|
585
|
-
this._configurationService.updateValue(RemoteAgentHostsSettingId, raw, this._getConfigurationTarget()).catch(err => {
|
|
586
|
-
this._logService.error(
|
|
587
|
-
"[RemoteAgentHost] Failed to migrate SSH connection details from settings to storage",
|
|
588
|
-
err
|
|
589
|
-
);
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
_mergeConfiguredEntries(base, incoming) {
|
|
593
|
-
let result = base;
|
|
594
|
-
for (const entry of incoming) {
|
|
595
|
-
const normalizedAddress = normalizeRemoteAgentHostAddress(getEntryAddress(entry));
|
|
596
|
-
const existingIndex = result.findIndex(
|
|
597
|
-
e => normalizeRemoteAgentHostAddress(getEntryAddress(e)) === normalizedAddress
|
|
598
|
-
);
|
|
599
|
-
if (existingIndex === -1) {
|
|
600
|
-
result = [...result, entry];
|
|
601
|
-
} else {
|
|
602
|
-
result = ( result.map((e, index) => index === existingIndex ? entry : e));
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
return result;
|
|
666
|
+
_upsertEntry(entries, entry) {
|
|
667
|
+
const address = this._entryAddress(entry);
|
|
668
|
+
const existingIndex = entries.findIndex(candidate => this._entryAddress(candidate) === address);
|
|
669
|
+
return existingIndex === -1 ? [...entries, entry] : ( entries.map((candidate, index) => index === existingIndex ? entry : candidate));
|
|
606
670
|
}
|
|
607
671
|
_getOrCreateConnectionWait(address) {
|
|
608
672
|
let wait = this._pendingConnectionWaits.get(address);
|
|
@@ -616,6 +680,7 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
616
680
|
return immediateWait;
|
|
617
681
|
}
|
|
618
682
|
wait = ( new DeferredPromise());
|
|
683
|
+
wait.p.then(undefined, () => {});
|
|
619
684
|
this._pendingConnectionWaits.set(address, wait);
|
|
620
685
|
return wait;
|
|
621
686
|
}
|
|
@@ -662,6 +727,7 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
662
727
|
}
|
|
663
728
|
this._reconnectTimeouts.clear();
|
|
664
729
|
this._reconnectAttempts.clear();
|
|
730
|
+
this._pendingConnects.clear();
|
|
665
731
|
for (const [address, wait] of this._pendingConnectionWaits) {
|
|
666
732
|
void wait.error(( new Error(`Remote agent host service disposed before connecting to ${address}`)));
|
|
667
733
|
}
|
|
@@ -677,6 +743,6 @@ let RemoteAgentHostService = class RemoteAgentHostService extends Disposable {
|
|
|
677
743
|
super.dispose();
|
|
678
744
|
}
|
|
679
745
|
};
|
|
680
|
-
RemoteAgentHostService = RemoteAgentHostService_1 = ( __decorate([( __param(0, IConfigurationService)), ( __param(1, IInstantiationService)), ( __param(2, ILogService)), ( __param(3, ILabelService)), ( __param(4, IEnvironmentService))
|
|
746
|
+
RemoteAgentHostService = RemoteAgentHostService_1 = ( __decorate([( __param(0, IConfigurationService)), ( __param(1, IInstantiationService)), ( __param(2, ILogService)), ( __param(3, ILabelService)), ( __param(4, IEnvironmentService))], RemoteAgentHostService));
|
|
681
747
|
|
|
682
748
|
export { RemoteAgentHostService };
|