@codingame/monaco-vscode-chat-service-override 38.0.6 → 38.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common.js +0 -53
- package/index.js +0 -3
- package/package.json +5 -5
- package/session.js +0 -3
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/missionControlAgentHostContribution.js +1 -1
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/remoteAgentHostActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionListController.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/editorCloudSandboxContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHost.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostChatContribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +1 -1
- package/vscode/src/vs/platform/agentHost/browser/webPubSubRelayTransport.d.ts +0 -135
- package/vscode/src/vs/platform/agentHost/browser/webPubSubRelayTransport.js +0 -510
- package/vscode/src/vs/platform/agentHost/common/agentModelNotices.d.ts +0 -22
- package/vscode/src/vs/platform/agentHost/common/agentModelNotices.js +0 -21
- package/vscode/src/vs/platform/agentHost/common/cloudSandboxAgentHost.d.ts +0 -273
- package/vscode/src/vs/platform/agentHost/common/cloudSandboxAgentHost.js +0 -61
- package/vscode/src/vs/platform/agentHost/common/meta/agentModelMeta.d.ts +0 -7
- package/vscode/src/vs/platform/agentHost/common/meta/agentModelMeta.js +0 -17
- package/vscode/src/vs/platform/agentHost/common/meta/copilotd/cloudSandboxProjectMeta.d.ts +0 -12
- package/vscode/src/vs/platform/agentHost/common/meta/copilotd/cloudSandboxProjectMeta.js +0 -48
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelEnsembleMeta.d.ts +0 -8
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelEnsembleMeta.js +0 -11
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelPricing.d.ts +0 -114
- package/vscode/src/vs/platform/agentHost/common/meta/vscode/agentModelPricing.js +0 -141
- package/vscode/src/vs/platform/agentHost/common/taskEventReplay.d.ts +0 -48
- package/vscode/src/vs/platform/agentHost/common/taskEventReplay.js +0 -238
- package/vscode/src/vs/platform/agentHost/common/webPubSub/chunking.d.ts +0 -102
- package/vscode/src/vs/platform/agentHost/common/webPubSub/chunking.js +0 -260
- package/vscode/src/vs/platform/agentHost/common/webPubSub/framing.d.ts +0 -102
- package/vscode/src/vs/platform/agentHost/common/webPubSub/framing.js +0 -115
- package/vscode/src/vs/platform/agentHost/common/webPubSub/groups.d.ts +0 -46
- package/vscode/src/vs/platform/agentHost/common/webPubSub/groups.js +0 -92
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +0 -9
- package/vscode/src/vs/sessions/contrib/chat/browser/voiceBridge.contribution.d.ts +0 -14
- package/vscode/src/vs/sessions/contrib/chat/browser/voiceBridge.contribution.js +0 -385
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudAutomationStore.d.ts +0 -67
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudAutomationStore.js +0 -695
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudSandboxSessionConfig.d.ts +0 -4
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/cloudSandboxSessionConfig.js +0 -39
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessions.contribution.d.ts +0 -1
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessions.contribution.js +0 -59
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.d.ts +0 -1
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsActions.js +0 -83
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.d.ts +0 -87
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsChangesets.js +0 -176
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.d.ts +0 -422
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/copilotChatSessionsProvider.js +0 -2444
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/githubCloudAutomationStore.d.ts +0 -91
- package/vscode/src/vs/sessions/contrib/providers/copilotChatSessions/browser/githubCloudAutomationStore.js +0 -620
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHost.contribution.d.ts +0 -1
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHost.contribution.js +0 -5
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.d.ts +0 -46
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxAgentHostContribution.js +0 -321
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.d.ts +0 -104
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/cloudSandboxSessionsProvider.js +0 -345
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.js +0 -611
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceSessionsPicker.js +0 -85
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.d.ts +0 -200
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidget.js +0 -981
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWidgetBinding.js +0 -206
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/agentsVoiceWindowService.js +0 -368
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/confirmationComponent.js +0 -57
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.d.ts +0 -33
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/feedbackDialog.js +0 -98
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.d.ts +0 -32
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/headerComponent.js +0 -186
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/onboardingComponent.js +0 -116
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.d.ts +0 -32
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/sessionListComponent.js +0 -226
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/statusRowsComponent.js +0 -138
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.d.ts +0 -32
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/tokens.js +0 -29
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/transcriptComponent.js +0 -108
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/components/voiceBarComponent.js +0 -63
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/media/voiceModeOnboarding.css +0 -252
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscripts.contribution.js +0 -178
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.d.ts +0 -47
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/transcriptsView/voiceTranscriptsView.js +0 -322
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.d.ts +0 -146
- package/vscode/src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.js +0 -890
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.d.ts +0 -132
- package/vscode/src/vs/workbench/contrib/agentsVoice/common/voiceTranscriptStore.js +0 -237
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.d.ts +0 -120
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostLanguageModelProvider.js +0 -234
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +0 -164
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/repositoryPicker.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/repositoryPicker.js +0 -122
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupMicrosoftProbe.d.ts +0 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupMicrosoftProbe.js +0 -213
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxAgentHostService.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxAgentHostService.js +0 -561
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.d.ts +0 -133
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxApiService.js +0 -1176
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxConnectionCustomization.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxConnectionCustomization.js +0 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxCredentialRefresh.d.ts +0 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxCredentialRefresh.js +0 -220
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxHistoryCache.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxHistoryCache.js +0 -184
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxLegacySessionPreparation.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxLegacySessionPreparation.js +0 -165
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxModels.d.ts +0 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxModels.js +0 -162
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxReadOnlySessionHandler.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxReadOnlySessionHandler.js +0 -129
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionContribution.d.ts +0 -166
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionContribution.js +0 -838
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionHandler.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxSessionHandler.js +0 -604
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.d.ts +0 -289
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/cloudSandboxTelemetry.js +0 -497
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlCredentialSealing.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlCredentialSealing.js +0 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentService.d.ts +0 -73
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlEnvironmentService.js +0 -398
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.d.ts +0 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.js +0 -296
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.d.ts +0 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/speechToText/voiceCodeTranscriptionClient.js +0 -361
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.d.ts +0 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.js +0 -198
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.d.ts +0 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.js +0 -871
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.d.ts +0 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/voiceInputMode/voiceInputMode.js +0 -297
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/chat/common/voicePlaybackService.js +0 -118
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { CancellationToken, CancellationTokenSource } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
-
import { Disposable, DisposableStore, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
|
|
4
|
-
import { type ICloudSandboxConnectOptions } from "../../../../../platform/agentHost/common/cloudSandboxAgentHost.js";
|
|
5
|
-
import { ICloudSandboxAgentHostService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/cloudSandboxAgentHost.service";
|
|
6
|
-
import { ICloudSandboxApiService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/cloudSandboxAgentHost.service";
|
|
7
|
-
import { type IAgentSessionMetadata } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agent";
|
|
8
|
-
import { IAgentConnection } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService";
|
|
9
|
-
import { IAgentHostService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService.service";
|
|
10
|
-
import { RemoteAgentHostConnectionStatus } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/remoteAgentHostService";
|
|
11
|
-
import { IRemoteAgentHostService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/remoteAgentHostService.service";
|
|
12
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
13
|
-
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
14
|
-
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
15
|
-
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
16
|
-
import { IWorkspaceTrustManagementService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service";
|
|
17
|
-
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
18
|
-
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
19
|
-
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
20
|
-
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
21
|
-
import { IRemoteAgentHostConnectionCustomizationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostConnectionCustomization.service";
|
|
22
|
-
/** A discovered sandbox environment we can create a provider for. */
|
|
23
|
-
export interface ICloudSandboxSessionEnvironment {
|
|
24
|
-
readonly environmentId: string;
|
|
25
|
-
readonly eventType?: string;
|
|
26
|
-
readonly sessionId?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Mission Control task owning the session. Persisted AHP history is addressed per task, so this
|
|
29
|
-
* is what makes the conversation readable once the environment is unreachable.
|
|
30
|
-
*/
|
|
31
|
-
readonly taskId?: string;
|
|
32
|
-
readonly name: string;
|
|
33
|
-
readonly repoName?: string;
|
|
34
|
-
readonly hasRepository?: boolean;
|
|
35
|
-
readonly updatedAt?: string;
|
|
36
|
-
readonly isArchived?: boolean;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* The repository a discovered session belongs to, matching the shape the sandbox host reports once
|
|
40
|
-
* connected so reconnecting does not visibly regroup the session.
|
|
41
|
-
*
|
|
42
|
-
* The `https` URI identifies the repository but is not backed by a file system provider, so a
|
|
43
|
-
* session discovered this way cannot browse its files until it connects.
|
|
44
|
-
*/
|
|
45
|
-
export declare function discoveredSessionProject(repoName: string | undefined): IAgentSessionMetadata["project"];
|
|
46
|
-
/** The window-specific list maintained by shared sandbox discovery and activation. */
|
|
47
|
-
export interface ICloudSandboxSessionList extends IDisposable {
|
|
48
|
-
readonly connectionStatus: IObservable<RemoteAgentHostConnectionStatus>;
|
|
49
|
-
seedSessions(sessions: readonly IAgentSessionMetadata[], options?: {
|
|
50
|
-
readonly updateExisting?: boolean;
|
|
51
|
-
readonly workspaceless?: boolean;
|
|
52
|
-
}): void;
|
|
53
|
-
getSessionModifiedTime(sessionId: string): number | undefined;
|
|
54
|
-
setLabel?(label: string): void;
|
|
55
|
-
setConnection(connection: IAgentConnection, defaultDirectory: string | undefined): void;
|
|
56
|
-
setConnectionStatus(status: RemoteAgentHostConnectionStatus): void;
|
|
57
|
-
setSessionArchived(rawId: string, archived: boolean): void;
|
|
58
|
-
}
|
|
59
|
-
export declare abstract class CloudSandboxSessionContribution<T extends ICloudSandboxSessionList> extends Disposable implements IWorkbenchContribution {
|
|
60
|
-
private readonly _cloudSandboxService;
|
|
61
|
-
protected readonly _apiService: ICloudSandboxApiService;
|
|
62
|
-
private readonly _remoteAgentHostService;
|
|
63
|
-
private readonly _connectionCustomizations;
|
|
64
|
-
private readonly _configurationService;
|
|
65
|
-
protected readonly _instantiationService: IInstantiationService;
|
|
66
|
-
private readonly _chatSessionsService;
|
|
67
|
-
private readonly _logService;
|
|
68
|
-
private readonly _chatEntitlementService;
|
|
69
|
-
private readonly _hostService;
|
|
70
|
-
private readonly _storageService;
|
|
71
|
-
private readonly _workspaceTrustManagementService;
|
|
72
|
-
private readonly _localAgentHostService;
|
|
73
|
-
/** Provider instances keyed by connection address (`cloudsandbox:<envId>`). */
|
|
74
|
-
protected readonly _providerInstances: Map<string, T>;
|
|
75
|
-
private readonly _providerStores;
|
|
76
|
-
private _persistedInventory;
|
|
77
|
-
/** Environment metadata keyed by connection address, for on-demand reconnect. */
|
|
78
|
-
private readonly _environments;
|
|
79
|
-
/** In-flight connects keyed by address, so concurrent opens share one attempt. */
|
|
80
|
-
private readonly _pendingConnects;
|
|
81
|
-
/**
|
|
82
|
-
* Addresses being provisioned right now. A task we just created is not yet visible to a
|
|
83
|
-
* discovery pass that started before it existed, so reconciliation would see a brand-new
|
|
84
|
-
* environment as one that has vanished and tear it down mid-provision.
|
|
85
|
-
*/
|
|
86
|
-
protected readonly _provisioning: Set<string>;
|
|
87
|
-
/** History-backed providers retained through their first live connection. */
|
|
88
|
-
private readonly _historyHandlers;
|
|
89
|
-
/**
|
|
90
|
-
* Cancelled when the feature is disabled (or the contribution is disposed), so in-flight
|
|
91
|
-
* discovery and connects abort instead of committing state after teardown has run.
|
|
92
|
-
*/
|
|
93
|
-
protected _enabledCts: CancellationTokenSource;
|
|
94
|
-
/** Serializes discovery so overlapping triggers can't interleave reconciliation. */
|
|
95
|
-
private _discoveryInFlight;
|
|
96
|
-
private _discoveryQueued;
|
|
97
|
-
private _discoveryToken;
|
|
98
|
-
private _discoveryIncremental;
|
|
99
|
-
private _lastDiscoveryAttempt;
|
|
100
|
-
private _lastFullDiscovery;
|
|
101
|
-
private _discoveryRetryInterval;
|
|
102
|
-
private _accountKey;
|
|
103
|
-
private readonly _deletedTaskIds;
|
|
104
|
-
constructor(_cloudSandboxService: ICloudSandboxAgentHostService, _apiService: ICloudSandboxApiService, _remoteAgentHostService: IRemoteAgentHostService, _connectionCustomizations: IRemoteAgentHostConnectionCustomizationService, _configurationService: IConfigurationService, _instantiationService: IInstantiationService, _chatSessionsService: IChatSessionsService, _logService: ILogService, _chatEntitlementService: IChatEntitlementService, _hostService: IHostService, _storageService: IStorageService, _workspaceTrustManagementService: IWorkspaceTrustManagementService, _localAgentHostService: IAgentHostService);
|
|
105
|
-
protected _refreshIfStale(): Promise<void>;
|
|
106
|
-
/** Share overlapping scans, queuing at most one full scan when a stronger refresh is needed. */
|
|
107
|
-
protected _discoverAndSeed(incremental?: boolean, retry?: boolean): Promise<void>;
|
|
108
|
-
private _doDiscoverAndSeed;
|
|
109
|
-
private _seedDiscoveredSession;
|
|
110
|
-
protected _restoreAccount(accountKey: string | undefined): boolean;
|
|
111
|
-
private _readInventory;
|
|
112
|
-
protected _persistInventory(): void;
|
|
113
|
-
protected _ownsSandboxSession(address: string, rawId: string): boolean;
|
|
114
|
-
protected _renameSandboxSession(address: string, rawId: string, title: string): Promise<void>;
|
|
115
|
-
protected _setSandboxSessionArchived(address: string, rawId: string, archived: boolean, token?: CancellationToken): Promise<void>;
|
|
116
|
-
protected _deleteSandboxSession(address: string, sessionIds: readonly string[], removeSession: (rawId: string) => void, token?: CancellationToken): Promise<void>;
|
|
117
|
-
/**
|
|
118
|
-
* Cancel pending work and remove the connection while retaining the provider and its cached sessions.
|
|
119
|
-
*/
|
|
120
|
-
protected _disconnectEnvironment(address: string): Promise<void>;
|
|
121
|
-
private _cancelPendingConnect;
|
|
122
|
-
/**
|
|
123
|
-
* Fully tear down an environment: dispose its provider (unregistering it and its sessions) and
|
|
124
|
-
* remove its connection + credential refresher. Used when an environment vanishes from discovery
|
|
125
|
-
* or the feature is disabled.
|
|
126
|
-
*/
|
|
127
|
-
private _teardownEnvironment;
|
|
128
|
-
/** Tear down every known sandbox environment (feature disabled). */
|
|
129
|
-
private _teardownAll;
|
|
130
|
-
/** Map each known sandbox connection authority to its address (`cloudsandbox:<envId>`). */
|
|
131
|
-
private _authoritiesByAddress;
|
|
132
|
-
/** Resolve the sandbox address owning a remote-agent-host session type, if any. */
|
|
133
|
-
private _findAddressForSessionType;
|
|
134
|
-
/** Whether the chat surface can hand off persisted history and offline drafts to a live connection. */
|
|
135
|
-
protected get supportsBackgroundConnection(): boolean;
|
|
136
|
-
/** Makes recorded history available independently of the surface's connection-on-open policy. */
|
|
137
|
-
protected _waitForActivation(sessionType: string): Promise<boolean>;
|
|
138
|
-
private _connectOnOpen;
|
|
139
|
-
/** An unreadable record must not trigger an automatic resume in surfaces without background connection support. */
|
|
140
|
-
private _isEnvironmentOnline;
|
|
141
|
-
/** Registers one provider that can promote its recorded conversations in place. */
|
|
142
|
-
private _activateHistory;
|
|
143
|
-
private _registerLiveSessionProvider;
|
|
144
|
-
private _clearSessionHandlers;
|
|
145
|
-
/**
|
|
146
|
-
* Ensure a provider exists for the environment and establish (or reuse) the
|
|
147
|
-
* connection. Resolves with the connection's display address.
|
|
148
|
-
*/
|
|
149
|
-
connect(options: ICloudSandboxConnectOptions): Promise<string>;
|
|
150
|
-
/**
|
|
151
|
-
* Return a provider to a state the user can act on after its connect failed. Defers to the
|
|
152
|
-
* service when it has something live to report, so a failure that raced a successful dial does
|
|
153
|
-
* not overwrite a good status, and leaves `incompatible` alone since redialing cannot fix it.
|
|
154
|
-
*/
|
|
155
|
-
private _settleFailedConnect;
|
|
156
|
-
protected _isEnabled(): boolean;
|
|
157
|
-
private _updateEnablement;
|
|
158
|
-
protected abstract _updateRegistration(): void;
|
|
159
|
-
/** Create the sessions provider for an environment if it doesn't exist yet. */
|
|
160
|
-
protected _ensureProvider(env: ICloudSandboxSessionEnvironment): void;
|
|
161
|
-
protected abstract _createProvider(env: ICloudSandboxSessionEnvironment, store: DisposableStore): T;
|
|
162
|
-
/** Wire each live connection to its provider so session enumeration runs. */
|
|
163
|
-
private _wireConnections;
|
|
164
|
-
/** Push the service's authoritative connection status onto each provider. */
|
|
165
|
-
private _updateConnectionStatuses;
|
|
166
|
-
}
|