import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; import { Disposable, IReference } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable"; import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service"; import { IAgentCreateChatOptions, IAgentCreateSessionConfig, IAgentHostInspectInfo, IAgentHostSocketInfo, IAgentResolveSessionConfigParams, IAgentSessionConfigCompletionsParams, IAgentSessionMetadata, AuthenticateParams, AuthenticateResult, IMcpNotification } from "../../../../platform/agentHost/common/agentService.js"; import { IAgentHostService } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/agentService.service"; import type { IActiveSubscriptionInfo, IAgentSubscription } from "../../../../platform/agentHost/common/state/agentSubscription.js"; import type { CompletionsParams, CompletionsResult, CreateTerminalParams, ResolveSessionConfigResult, SessionConfigCompletionsResult } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/commands"; import type { InvokeChangesetOperationParams, InvokeChangesetOperationResult } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/protocol/channels-changeset/commands"; import type { ActionEnvelope, INotification, IRootConfigChangedAction, SessionAction, TerminalAction, ClientAnnotationsAction } from "../../../../platform/agentHost/common/state/sessionActions.js"; import type { IRemoteWatchHandle } from "../../../../platform/agentHost/common/agentHostFileSystemProvider.js"; import type { CreateResourceWatchParams, CreateResourceWatchResult, ResourceCopyParams, ResourceCopyResult, ResourceDeleteParams, ResourceDeleteResult, ResourceListResult, ResourceMkdirParams, ResourceMkdirResult, ResourceMoveParams, ResourceMoveResult, ResourceReadResult, ResourceResolveParams, ResourceResolveResult, ResourceWriteParams, ResourceWriteResult } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/sessionProtocol"; import { ComponentToState, RootState, StateComponents } from "@codingame/monaco-vscode-api/vscode/vs/platform/agentHost/common/state/sessionState"; import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service"; /** * Connects the renderer to the agent host that the remote server has * already started, by proxying AHP frames over the remote agent's IPC pipe. * * Local-only methods on {@link IAgentHostService} (`restartAgentHost`, * `startWebSocketServer`, `getInspectInfo`) are stubbed — the lifecycle of * the agent host is owned by whoever spawned it on the remote. */ export declare class EditorRemoteAgentHostServiceClient extends Disposable implements IAgentHostService { private readonly _logService; readonly _serviceBrand: undefined; private readonly _onAgentHostExit; readonly onAgentHostExit: Event; private readonly _onAgentHostStart; readonly onAgentHostStart: Event; private readonly _authenticationPending; readonly authenticationPending: IObservable; private _authenticationSettled; private readonly _protocolClient; private readonly _noopRootState; private _connectStarted; constructor(remoteAgentService: IRemoteAgentService, configurationService: IConfigurationService, instantiationService: IInstantiationService, _logService: ILogService); private _connect; private _requireClient; setAuthenticationPending(pending: boolean): void; restartAgentHost(): Promise; startWebSocketServer(): Promise; getInspectInfo(_tryEnable: boolean): Promise; get clientId(): string; get rootState(): IAgentSubscription; get onDidNotification(): Event; get onDidAction(): Event; get onMcpNotification(): Event; getSubscription(kind: T, resource: URI, owner: string): IReference>; getSubscriptionUnmanaged(kind: T, resource: URI): IAgentSubscription | undefined; getInflightSessionCreate(resource: URI): Promise | undefined; getActiveSubscriptions(): readonly IActiveSubscriptionInfo[]; dispatch(channel: string, action: SessionAction | TerminalAction | ClientAnnotationsAction | IRootConfigChangedAction): void; authenticate(params: AuthenticateParams): Promise; listSessions(): Promise; createSession(config?: IAgentCreateSessionConfig): Promise; resolveSessionConfig(params: IAgentResolveSessionConfigParams): Promise; sessionConfigCompletions(params: IAgentSessionConfigCompletionsParams): Promise; completions(params: CompletionsParams): Promise; getCompletionTriggerCharacters(): Promise; disposeSession(session: URI): Promise; createChat(session: URI, chat: URI, options?: IAgentCreateChatOptions): Promise; disposeChat(chat: URI): Promise; createTerminal(params: CreateTerminalParams): Promise; disposeTerminal(terminal: URI): Promise; invokeChangesetOperation(params: InvokeChangesetOperationParams): Promise; handleMcpRequest(channel: string, method: string, params: Record | undefined): Promise; resourceList(uri: URI): Promise; resourceRead(uri: URI): Promise; resourceWrite(params: ResourceWriteParams): Promise; resourceCopy(params: ResourceCopyParams): Promise; resourceDelete(params: ResourceDeleteParams): Promise; resourceMove(params: ResourceMoveParams): Promise; resourceResolve(params: ResourceResolveParams): Promise; resourceMkdir(params: ResourceMkdirParams): Promise; createResourceWatch(params: CreateResourceWatchParams): Promise; watchResource(params: CreateResourceWatchParams): Promise; }