UNPKG

@code-yeongyu/senpi

Version:

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

15 lines • 1.01 kB
import { type AssistantMessage } from "@earendil-works/pi-ai/compat"; /** Providers mark post-delta failures with this prefix so a turn retry never replays visible text or tool calls. */ export declare const TURN_RETRY_SUPPRESSION_PREFIX = "senpi:no-turn-retry:"; /** * Failures the turn retry never takes, whatever their text says: a suppressed replay, a local (journal or file) * failure, a route that does not serve the model, and a context overflow, which compaction handles. */ export declare function isExcludedFromTurnRetry(message: AssistantMessage, contextWindow: number): boolean; /** * The turn retry engine's own transient-failure decision (overloaded, rate limit, server errors). The interactive * transcript reads the same predicate, so a row is folded into the retry episode only for a failure the engine retries * (senpi#6012). */ export declare function isTurnRetryableFailure(message: AssistantMessage, contextWindow: number): boolean; //# sourceMappingURL=turn-retry-eligibility.d.ts.map