/** * FixAgent — Lightweight single-call violation fixer. * * Makes one Anthropic API call with the file content, violation details, * and available tokens. Validates the fix, retries once if needed. * Much cheaper than the full 8-agent pipeline (~20K tokens vs ~160K). */ import type { KnowledgeGraph } from '../knowledge-graph/index.js'; import type { ViolationIssue, FixAttempt } from './types.js'; import type { Pacer } from './pacer.js'; export declare class FixAgent { private apiKey; private model; private rootDir; private knowledgeGraph; private pacer; private client; private tokenValidator; private namingValidator; private guidelinesCache; constructor(apiKey: string, model: string, rootDir: string, knowledgeGraph: KnowledgeGraph, pacer: Pacer); /** * Attempt to fix a single violation issue. */ fix(issue: ViolationIssue): Promise; /** * Build the system prompt for the fix-agent. */ private buildSystemPrompt; /** * Build the user message with the file content and violation details. */ private buildUserMessage; /** * Extract code from the API response. */ private extractCode; /** * Validate content by writing to a temp file and running validators. */ private validateContent; /** * Check that the fix is minimal — doesn't touch too many lines beyond the violation site. */ private isMinimalChange; /** * Get relevant token names for the violations in this issue. */ private getRelevantTokens; /** * Load and cache code guidelines. */ private getGuidelines; } //# sourceMappingURL=fix-agent.d.ts.map