@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
11 lines • 696 B
TypeScript
/**
* Runs a pool health write that must never decide the request's outcome
* (senpi#3285). Health is advisory: when the state file stays locked past its
* bound, the write is skipped and logged, and the request carries on. A lost
* block costs at most one extra failover attempt later; a lost success marker
* also leaves that slot's half-open probe lease in place, so other callers skip
* the slot until the lease expires (30 s). Every other failure still propagates.
*/
export declare function writeHealthUnlessStoreBusy<T>(what: string, write: () => Promise<T>): Promise<T | typeof STORE_BUSY>;
export declare const STORE_BUSY: unique symbol;
//# sourceMappingURL=health-write.d.ts.map