import { parseDocument } from 'yaml';
export class AutofixEngine {
    aplicarFixes(content, fixers) {
        if (!content || fixers.length === 0)
            return content;
        const doc = parseDocument(content);
        if (doc.errors.length > 0)
            return content;
        for (const fix of fixers) {
            try {
                fix(doc);
            }
            catch { }
        }
        return doc.toString();
    }
}
export const autofixEngine = new AutofixEngine();
//# sourceMappingURL=autofix-engine.js.map