import type { CodeValidationExecutor } from "../code/worktree.ts"; import type { EvoPaths } from "../paths.ts"; import type { ModelRunner } from "../reflect/model-runner.ts"; import { EvoService } from "../service.ts"; import type { EvoControlConfig, EvolutionResearchPlan, EvolutionRun, Proposal } from "../types.ts"; import { type EvolutionEvaluationResult } from "./evaluator.ts"; import { type EvolutionReleaseResult } from "./release.ts"; import { type UnknownAbiBuilderRequest } from "./unknown-abi.ts"; export interface RunEvolutionCycleOptions { paths: EvoPaths; runner: ModelRunner; service?: EvoService; cwd?: string; /** Repository that code candidates patch; defaults to Evo-Pi's own source repository. */ repositoryCwd?: string; agentDir?: string; request?: string; trigger?: EvolutionRun["trigger"]; config?: EvoControlConfig; maxCorpusBytes?: number; codeValidationExecutor?: CodeValidationExecutor; /** Test/development escape hatch for component process validation. */ componentSandbox?: boolean; signal?: AbortSignal; /** Existing queued run created by the background launcher. */ runId?: string; } export interface EvolutionCycleResult { run: EvolutionRun; proposals: Proposal[]; evaluation?: EvolutionEvaluationResult; release?: EvolutionReleaseResult; } export interface RunUnknownAbiBuilderCycleOptions { paths: EvoPaths; request: unknown; runner: ModelRunner; service?: EvoService; /** Stable bundle observed by pack import; drift fails before a run is created. */ parentDigest?: string; cwd?: string; /** Repository that the infrastructure patch is staged against; defaults to Evo-Pi's own source repository. */ repositoryCwd?: string; agentDir?: string; config?: EvoControlConfig; codeValidationExecutor?: CodeValidationExecutor; signal?: AbortSignal; } export interface UnknownAbiBuilderCycleResult { run: EvolutionRun; proposal: Proposal; request: UnknownAbiBuilderRequest; plan: EvolutionResearchPlan; nextAction: string; } export declare function runEvolutionCycle(options: RunEvolutionCycleOptions): Promise; export declare function runUnknownAbiBuilderCycle(options: RunUnknownAbiBuilderCycleOptions): Promise; //# sourceMappingURL=cycle.d.ts.map