/** * Remote namespaces the Session cluster calls. One parameter for one concept: * the generated surface a Session and its manager reach the Host through. * * @module @deepseek-ai/dsh-api-session-controller/client/sessions/remotes */ import type { EncodedImageAttachment } from '@deepseek-ai/dsh-attachment/types'; import type { ClientRemote } from '@deepseek-ai/dsh-api-gateway/client'; import type { SessionId } from '@deepseek-ai/dsh-session/types'; import type { SubagentCatalog, SubagentInterruptReceipt, SubagentPromptReceipt, SubagentPromptRequest } from '@deepseek-ai/dsh-subagent/client'; import type { RemoteResult } from '@deepseek-ai/dsh-typert-protocol'; import type { SessionRemote } from '../transport.ts'; /** Narrow Commands namespace consumed by a Client Session. */ export interface SessionCommandsRemote { execute(agentId: SessionId, line: string, images: readonly EncodedImageAttachment[], signal?: AbortSignal): Promise>; } /** Narrow subagent namespace consumed by a Client Session and its manager. */ export interface SessionSubagentsRemote { list(parentSessionId: SessionId, signal?: AbortSignal): Promise>; prompt(request: SubagentPromptRequest, signal?: AbortSignal): Promise>; interruptByParent(childSessionId: SessionId, parentSessionId: SessionId, mode: 'continuable'): Promise>; } /** Generated Remote namespaces consumed by the Client Session object layer. */ export interface SessionRemotes { readonly $stream: ClientRemote['$stream']; readonly commands: SessionCommandsRemote; readonly session: SessionRemote; readonly subagents: SessionSubagentsRemote; } //# sourceMappingURL=remotes.d.ts.map