@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
19 lines • 949 B
TypeScript
import type { OpenRpcSession } from "./session-registry.ts";
/** Owns both in-flight builds and ready parks, including the races with claim, expiry and shutdown. */
export declare class HostParkLedger {
private readonly parks;
private readonly replacements;
private stopped;
private readonly close;
constructor(close: (opened: OpenRpcSession) => Promise<void>);
get size(): number;
park(key: string, build: () => Promise<OpenRpcSession>): Promise<"parked" | "already_parked" | "full">;
/** A claim never waits for a build, and consumes the ready park synchronously. */
take(key: string): OpenRpcSession | undefined;
finish(key: string): void;
replace(key: string, build: () => Promise<OpenRpcSession>): void;
/** Fences new builds synchronously; every build already accepted is closed when it finishes. */
stop(): Promise<void>;
private retire;
}
//# sourceMappingURL=host-park-ledger.d.ts.map