@devmedic/autofix-engine
v0.1.0
Published
Fix conflict resolution, dry-run verification against triggering rules, atomic changeset application.
Downloads
34
Readme
@devmedic/autofix-engine
Turns fixable Normalized Issues into safe, real file
changes: preview/dry-run, conflict detection, atomic writes, transactional
apply with automatic rollback, and undo — all with no rule-specific fix
logic of its own. See docs/guide.md for the full guide.
import { planFixesFromIssues, applyFixes, undoTransaction } from '@devmedic/autofix-engine';
const plan = await planFixesFromIssues(issues, { projectRoot });
const result = await applyFixes(plan, { backupDir: '.devmedic/backups' });
// ... later, if needed:
await undoTransaction(result.transactionId, '.devmedic/backups');Only the engine — no CLI wiring, no rule fix logic, no UI. Preview, apply, and undo are the whole surface.
Depends on
@devmedic/core@devmedic/rule-engine@devmedic/issue-engine
