@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
24 lines • 1.02 kB
TypeScript
import type { Model } from "@earendil-works/pi-ai";
import type { CompactionPreparation, CompactionResult } from "../../../compaction/index.ts";
import type { SessionEntry } from "../../../session-manager.ts";
import type { CompactionYield } from "./policy.ts";
export interface WarmCandidateFit {
fits: boolean;
projectedTokens: number;
budgetTokens: number;
}
/**
* Whether a finished warm summary is still worth applying as-is (senpi#5481): applied to the
* current branch, the summary plus everything after its anchor must land below the point where
* speculation starts (`threshold - lead`), so applying it does not leave the session one turn
* away from compacting again.
*/
export declare function assessWarmCandidateFit(input: {
branchEntries: SessionEntry[];
compaction: CompactionResult;
model: Model<string>;
contextWindow: number;
settings: CompactionPreparation["settings"];
lastYield?: CompactionYield;
}): WarmCandidateFit;
//# sourceMappingURL=warm-candidate.d.ts.map