UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

31 lines • 1.28 kB
import type { CircuitAdmission, FallbackCircuitAccess } from "./circuit.ts"; /** * Non-retryable failures that still say the entry is unusable for everyone: * billing and account quota/budget exhaustion. Auth and request-shape rejections * are not outages and never open a circuit. */ export declare function isHealthExhaustionFailure(errorMessage: string | undefined): boolean; /** * One session's side of the shared breaker: at most one probe token, taken by * atomic admission before the session switches to (or starts on) an entry, and * given back on every terminal path - accepted, failed, aborted, or abandoned. */ export declare class CircuitProbes { private readonly circuits; private token; constructor(circuits: FallbackCircuitAccess | undefined); isOpen(selector: string): boolean; governs(selector: string): boolean; isExhausted(selector: string): boolean; admit(selector: string): CircuitAdmission["kind"]; holds(selector: string): boolean; get probing(): string | undefined; noteFailure(selector: string, failure: { retryAfterMs?: number; errorMessage?: string; }): void; accept(selector: string): void; release(): void; releaseAll(): void; } //# sourceMappingURL=circuit-probes.d.ts.map