import type { ExtensionFactory } from "@ch1nyzzz/pi-coding-agent"; import { type EvoPaths } from "./paths.ts"; import { type ModelRunner } from "./reflect/model-runner.ts"; import { type TrialRecommendation } from "./reflect/retrospective.ts"; import { EvoService } from "./service.ts"; export interface AutoImproveOutcome { proposals: ReadonlyArray<{ id: string; }>; } export interface AutoRetrospectiveOutcome { proposal: { id: string; }; recommendation?: TrialRecommendation; reused?: boolean; } export interface EvoAutoImproveExtensionOptions { root?: string; paths?: EvoPaths; service?: EvoService; runner?: ModelRunner; cwd?: string; agentDir?: string; model?: string; initialDelayMs?: number; checkIntervalMs?: number; improve?: (signal: AbortSignal) => Promise; retrospect?: () => Promise; now?: () => Date; } /** * Runs the guarded scheduled-improve loop inside the live Pi session, so users * get background reflection at their configured cadence without any cron or * systemd setup. Every attempt still goes through runConfiguredImprove, which * enforces pause, cadence, quiet hours, activity, daily-limit, and lock gates. */ export declare function createEvoAutoImproveExtension(options?: EvoAutoImproveExtensionOptions): ExtensionFactory; //# sourceMappingURL=auto-improve.d.ts.map