/** * Agent Reviewer — LLM-powered diff review step for the executor loop. * * Slots into the validation pipeline after lint/build/test pass but before commit. * Analyzes the current git diff and returns structured feedback that can be fed * back into the next iteration via lastValidationFeedback. */ import type { ValidationResult } from './validation.js'; /** Review severity levels */ export type ReviewSeverity = 'error' | 'warning' | 'info'; export type ReviewFinding = { severity: ReviewSeverity; message: string; file?: string; line?: number; }; export type ReviewResult = { passed: boolean; findings: ReviewFinding[]; model?: string; /** Raw LLM response for debugging */ raw?: string; }; /** * Run the agent reviewer on the current diff. * Returns null if no diff exists or no LLM provider is available. */ export declare function runReview(cwd: string): Promise; /** * Format review findings as a ValidationResult for the executor loop. * This allows the reviewer to slot into the existing validation pipeline. */ export declare function formatReviewAsValidation(result: ReviewResult): ValidationResult; /** * Format review findings as feedback text for the lastValidationFeedback mechanism. */ export declare function formatReviewFeedback(result: ReviewResult): string; //# sourceMappingURL=reviewer.d.ts.map