@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
25 lines • 948 B
TypeScript
import type { CompactionResult } from "../../../compaction/index.ts";
import type { SpeculativeCompactionSnapshot } from "./speculative.ts";
export interface SpeculativeJob {
generation: number;
snapshot: SpeculativeCompactionSnapshot;
controller: AbortController;
promise: Promise<CompactionResult | undefined>;
failure: Promise<Error | undefined>;
armedAtTokens: number;
completed: boolean;
/** The finished summary, readable synchronously once `completed` is true; absent on failure or abort. */
result?: CompactionResult;
completedAt?: number;
}
export declare function trackSpeculativeJob(input: {
generation: number;
snapshot: SpeculativeCompactionSnapshot;
controller: AbortController;
settled: Promise<{
result: CompactionResult | undefined;
error: Error | undefined;
}>;
armedAtTokens: number;
}): SpeculativeJob;
//# sourceMappingURL=speculative-job.d.ts.map