UNPKG

@code-yeongyu/senpi

Version:

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

18 lines • 902 B
import type { FallbackReason } from "./controller-types.ts"; /** One chain rung that failed during a turn's fallback walk: the model it ran on and its provider error. */ export interface FallbackRungFailure { model: string; reason: FallbackReason; error: string; } /** Appends a rung failure unless it repeats the last one (one failure can be offered to the walk twice). */ export declare function recordRungFailure(failures: FallbackRungFailure[], failure: FallbackRungFailure): void; /** * The exhaustion text every surface shows: the failure that started the walk first, then each later rung * (senpi#4084). Without recorded rungs it falls back to the last error, as older events carried only that. */ export declare function describeFallbackExhaustion(event: { lastError: string; failures?: readonly FallbackRungFailure[]; }): string; //# sourceMappingURL=exhaustion.d.ts.map