@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
13 lines • 1.14 kB
TypeScript
/**
* Who a terminal control connection speaks for, and what it delivers (senpi#6294). `set_client_info` declares the
* connection's roles and, as on the RPC host, the remote device it speaks for (`remoteOrigin`, fixed once declared);
* `admit_external_message` runs the RPC host's one implementation (`admit-external-message-command.ts`) on this
* terminal's session, with the device taken from the connection, never from the record.
*/
import type { AgentSession } from "../../core/agent-session.ts";
import type { RpcAdmitExternalMessageCommand } from "../rpc/admit-external-message-wire.ts";
import { type ControlAttachments } from "./session-control-attach.ts";
import { type ControlCommand, type ControlConnection } from "./session-control-server.ts";
export declare function setClientInfo(attachments: ControlAttachments, connection: ControlConnection, command: ControlCommand): object;
export declare function admitTerminalDelivery(session: AgentSession, attachments: ControlAttachments, connection: ControlConnection, command: RpcAdmitExternalMessageCommand): object;
//# sourceMappingURL=session-control-peer-commands.d.ts.map