@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
27 lines • 848 B
TypeScript
import type { AgentSession } from "../../core/agent-session.ts";
import type { RpcCommand } from "./rpc-types.ts";
type PauseForRun = Extract<RpcCommand, {
type: "pause_for_run";
}>;
type ResumeForRun = Extract<RpcCommand, {
type: "resume_for_run";
}>;
type Answer<T> = {
readonly ok: true;
readonly data: T;
} | {
readonly ok: false;
readonly error: string;
};
export declare function runPauseForRun(session: AgentSession, command: PauseForRun, taskParent: boolean): Promise<Answer<{
held: true;
childSeq: number;
}>>;
export declare function runResumeForRun(session: AgentSession, command: ResumeForRun, taskParent: boolean): Promise<Answer<{
released: boolean;
reason?: "stale" | "not_held";
otherHoldLive?: boolean;
turnId?: string;
}>>;
export {};
//# sourceMappingURL=run-hold-commands.d.ts.map