@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
11 lines • 730 B
TypeScript
import type { RpcCommand, RpcResponse } from "./rpc-types.ts";
import type { OpenRpcSession } from "./session-registry.ts";
import type { RouterContext } from "./session-router-context.ts";
export type OpenAcceptance = (opened: OpenRpcSession) => Promise<void>;
type OpenCommand = Extract<RpcCommand, {
type: "open_session" | "attach_session";
}>;
/** Register the client's ID before physical open; identical pending/completed retries never open again. */
export declare function compactOpen(host: RouterContext, command: OpenCommand, physical: (accept: OpenAcceptance, signal: AbortSignal) => Promise<RpcResponse | undefined>): Promise<RpcResponse | undefined>;
export {};
//# sourceMappingURL=compact-open-admission.d.ts.map