UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

13 lines • 1.21 kB
import type { AgentSession } from "../../core/agent-session.ts"; import { type ControlAttachments } from "./session-control-attach.ts"; import { type ControlCommand, type ControlConnection } from "./session-control-server.ts"; export declare const TUI_RPC_COMMANDS: readonly ["open_session", "park_session", "claim_session", "get_snapshot", "subscribe_sessions", "unsubscribe_sessions", "steer", "follow_up", "prompt", "admit_external_message", "get_effect_status", "set_client_info", "attach_session", "release_attachment", "abort", "mcp_presenter_context", "mcp_form_presented", "mcp_form_response", "mcp_form_sync", "mcp_presenter_secret_answer"]; export interface RpcCommandContext { /** This endpoint's instance id: the `expectedHostInstance` an `attach_session` may name. */ readonly instanceId: string; readonly session: AgentSession; readonly attachments: ControlAttachments; } /** `null` = answered on the writer already; `undefined` = not a command this file owns. */ export declare function runTuiRpcCommand(context: RpcCommandContext, connection: ControlConnection, command: ControlCommand): Promise<object | null | undefined>; //# sourceMappingURL=session-control-rpc-commands.d.ts.map