@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
17 lines • 819 B
TypeScript
import type { CompactionSettings } from "../../../compaction/index.ts";
import type { ContextUsage, ExtensionMode } from "../../types.ts";
import { type CompactionYield } from "./policy.ts";
export declare const IDLE_COMPACTION_INSTRUCTIONS = "Proactively compact at idle before the next agent turn, while the user is not waiting.";
export interface IdleCompactionDecision {
willRetry: boolean;
aborted: boolean;
settings: CompactionSettings;
usage: ContextUsage | undefined;
contextWindow: number;
breakerTripped: boolean;
lastYield?: CompactionYield;
mode: ExtensionMode;
}
export declare function shouldRunIdleCompaction(decision: IdleCompactionDecision): boolean;
export declare function shouldWarmAtIdle(decision: IdleCompactionDecision): boolean;
//# sourceMappingURL=idle.d.ts.map