UNPKG

@code-yeongyu/senpi

Version:

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

16 lines • 844 B
import type { AgentSession } from "../../core/agent-session.ts"; import type { ConnectionOrigin } from "../../core/turn-origin.ts"; import { type RpcClientInput } from "./client-admission-record.ts"; type InputOutput = { readonly output: (record: object) => void; readonly promptCalls: Set<Promise<unknown>>; }; /** The sending connection's declared role; a connection that never declared `interactive_user` is an agent's. */ type InputClient = { readonly interactiveUser: boolean; readonly connectionOrigin?: ConnectionOrigin; }; /** The same admission path serves classic stdio, shared sessions, and worker sessions. */ export declare function handleClientInput(session: AgentSession, command: RpcClientInput, io: InputOutput, client?: InputClient): Promise<void>; export {}; //# sourceMappingURL=client-input-handler.d.ts.map