import { CancellationToken } from "../../../../../base/common/cancellation.js"; import { Disposable } from "../../../../../base/common/lifecycle.js"; import { IAgentHostService } from "../../../../../platform/agentHost/common/agentService.service.js"; import { ICloudSandboxAgentHostService } from "../../../../../platform/agentHost/common/cloudSandboxAgentHost.service.js"; import { ICloudSandboxApiService } from "../../../../../platform/agentHost/common/cloudSandboxAgentHost.service.js"; import { IMissionControlHost } from "../../../../../platform/agentHost/common/missionControlEnvironment.js"; import { IMissionControlEnvironmentService } from "../../../../../platform/agentHost/common/missionControlEnvironment.service.js"; import { IMissionControlAvailabilityService } from "../../../../../platform/agentHost/common/missionControlEnvironment.service.js"; import { IRemoteAgentHostService } from "../../../../../platform/agentHost/common/remoteAgentHostService.service.js"; import { type ConnectionTelemetryErrorClassification } from "../../../../../platform/agentHost/common/connectionTelemetry.js"; import { IConfigurationService } from "../../../../../platform/configuration/common/configuration.service.js"; import { ILogService } from "../../../../../platform/log/common/log.service.js"; import { IStorageService } from "../../../../../platform/storage/common/storage.service.js"; import { ITelemetryService } from "../../../../../platform/telemetry/common/telemetry.service.js"; import { IChatEntitlementService } from "../../../../services/chat/common/chatEntitlementService.service.js"; import { IAuthenticationService } from "../../../../services/authentication/common/authentication.service.js"; export type MissionControlConnectionAttemptClassification = ConnectionTelemetryErrorClassification & { owner: "roblourens"; comment: "User-local Mission Control connection attempts, including inventory validation and the end-to-end deadline."; outcome: { classification: "SystemMetaData"; purpose: "PerformanceAndHealth"; comment: "Success, failure, caller cancellation or the user-local connection deadline."; }; stage: { classification: "SystemMetaData"; purpose: "PerformanceAndHealth"; comment: "Environment validation or delegated relay connection."; }; durationMs: { classification: "SystemMetaData"; purpose: "PerformanceAndHealth"; isMeasurement: true; comment: "Milliseconds for the complete attempt, including environment validation."; }; }; export declare class MissionControlEnvironmentService extends Disposable implements IMissionControlEnvironmentService { private readonly _api; private readonly _connections; private readonly _local; private readonly _storage; private readonly _configuration; private readonly _entitlement; private readonly _log; private readonly _remote; private readonly _telemetry; private readonly _availabilityService; readonly _serviceBrand: undefined; readonly hosts: import("../../../../../base/common/observable.js").ISettableObservable; private _accountKey; private _ownEnvironment; private _generation; private _refreshGeneration; private _initializing; private readonly _connects; private readonly _pendingConnects; private readonly _discoveryCancellation; private readonly _lifetimeToken; constructor(_api: ICloudSandboxApiService, _connections: ICloudSandboxAgentHostService, _local: IAgentHostService, _storage: IStorageService, _configuration: IConfigurationService, _entitlement: IChatEntitlementService, _log: ILogService, authentication: IAuthenticationService, _remote: IRemoteAgentHostService, _telemetry: ITelemetryService, _availabilityService: IMissionControlAvailabilityService); get accountKey(): string | undefined; get enabled(): boolean; private get _storagePrefix(); initialize(): Promise; private _initialize; refresh(token: CancellationToken): Promise; private _refreshHosts; connect(id: string, token: CancellationToken): Promise; private _connect; disconnect(id: string): Promise; delete(id: string, token: CancellationToken): Promise; setDisplayName(id: string, name: string | undefined): void; private _requireHost; private _persist; private _restore; private _replaceHosts; private _checkGeneration; private _cancelConnect; private _withdraw; private _reportBackgroundError; }