/** * Agentic AI execution for implementation comparisons. * * Uses {@link AIService} to run an AI CLI in agentic mode (with write tools) * inside a worktree, capturing the implementation output with full telemetry, * tracing, and retry support. * * @module */ import type { AIService } from '../ai/service.js'; import type { ImplementationRunResult } from './types.js'; /** * Options for executing an implementation run. */ export interface ExecuteOptions { /** The task description */ task: string; /** Plan text from the previous `are plan` run (omit for plan-less runs) */ planText?: string; /** Working directory (worktree path) */ cwd: string; /** Git ref (SHA) of the branch fork point — used to measure cumulative changes across all sessions */ baseRef?: string; /** Model to use */ model?: string; /** Debug mode */ debug?: boolean; /** Run test suite after implementation */ runTests?: boolean; /** Run build after implementation */ runBuild?: boolean; /** Run linter after implementation */ runLint?: boolean; /** AI service instance for subprocess management */ aiService: AIService; } /** * Execute an AI implementation run in a worktree using the AI service in agentic mode. * * Invokes the AI with write tools enabled (Read, Glob, Grep, Bash, Write, Edit) * so it can create and modify files, run commands, and implement the plan. * All calls go through {@link AIService} for retry logic, telemetry, and * subprocess logging. * * @param options - Execution options * @returns Implementation run result with metrics and token usage */ export declare function executeImplementation(options: ExecuteOptions): Promise; //# sourceMappingURL=executor.d.ts.map