@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
15 lines • 1.02 kB
TypeScript
export type CompactionFailureKind = "compaction" | "auto-compaction" | "overflow-recovery";
export type CompactionFailureStep = "provider" | "resend" | "larger-context" | "nothing-to-compact" | "compact-again" | "self-explained";
/** Which step a failure names: a transient provider error during overflow recovery is worth resending (senpi#4329). */
export declare function compactionFailureStep(kind: CompactionFailureKind, cause: string, options?: {
readonly model?: string;
}): CompactionFailureStep;
/**
* The `compaction_end` failure text: the lead, the cause class with one next step that works on every
* surface, then the raw cause as a diagnostic (senpi#4329). The raw text stays in the message so
* consumers that read it (the TUI's transient-failure banner, overflow retry) see what they saw before.
*/
export declare function formatCompactionFailure(kind: CompactionFailureKind, error: string, options?: {
readonly model?: string;
}): string;
//# sourceMappingURL=compaction-failure-text.d.ts.map