@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
26 lines • 900 B
TypeScript
import type { AgentSession } from "../../core/agent-session.ts";
import type { RpcCommand } from "./rpc-types.ts";
type HoldInputCommand = Extract<RpcCommand, {
type: "hold_input";
}>;
export type HeldInputAnswer = {
readonly ok: true;
readonly data: {
entryId?: string;
duplicate?: boolean;
alreadyDelivered?: boolean;
};
} | {
readonly ok: false;
readonly error: string;
};
/**
* Held input speaks for the human: an interactive connection holds it, and the task parent relays a person's run
* guidance into the child it paused for that run (senpi#3811 design 4.10), naming that parent session.
*/
export declare function runHoldInput(session: AgentSession, command: HoldInputCommand, roles: {
readonly interactiveUser: boolean;
readonly taskParent: boolean;
}): HeldInputAnswer;
export {};
//# sourceMappingURL=held-input-commands.d.ts.map