/** * Correction Service * * Stores and retrieves developer corrections to AI behavior. * Uses AI-native detection - corrections are explicitly recorded * when the AI recognizes user feedback as a correction. */ import type { Correction, CorrectionWarning } from "../types/correction.js"; /** * Service for managing code corrections and learning from mistakes. * * Stores and retrieves corrections for patterns, enabling the system * to learn from previous mistakes and apply consistent fixes. */ export declare class CorrectionService { private projectRoot; private correctionsPath; private indexPath; private cachedCorrections; /** * @param projectRoot - Root directory of the project */ constructor(projectRoot: string); /** * Initialize corrections directory */ initialize(): Promise; /** * Record a correction to memory */ recordCorrection(correction: Partial): Promise; /** * Get warnings for current context */ getWarnings(currentContext: { taskDescription: string; files?: string[]; techStack?: string[]; phase?: string; }): Promise; /** * Format warnings as context injection */ formatWarningsAsContext(warnings: CorrectionWarning[]): string; /** * Extract tags from correction content */ private extractTags; /** * Match correction against current context */ private matchCorrection; /** * Load all corrections from disk */ private loadAllCorrections; /** * Save a correction back to disk */ private saveCorrection; /** * Update index with new correction */ private updateIndex; } //# sourceMappingURL=correction-service.d.ts.map