PostgreSQL-first, schema-aware deployment control with LLM agents and deterministic CI gates. v0.16.12 — active development, frequent releases (weekly + hotfixes). Key differentiators: 38 AST-based lint rules, tamper detection without a DB connection (offline), regression detection on hotfix reverts, drift detection with shadow DB verification, and LLM-powered 'implement'/'audit'/'explain' commands that encode domain expertise into migration files. Supports MySQL and SQLite with 17 generic lint rules. Uses native CLI (psql/mysql/sqlite3) for execution; focuses on what to forbid rather than a rich execution engine.
npm install migraguardNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal workflow: install, create migration with migraguard:up/:down directives, run check (lint+tamper), apply with drift detection, and verify idempotency on a shadow database.
Update Node.js to version 20 or higher.
Use import or dynamic import() in your project.
Install agent-contracts-runtime with npm install --save-dev agent-contracts-runtime
Provide a different DATABASE_URL for --shadow-database-url.
Add '-- migraguard:up' and '-- migraguard:down' comments to your migration files.
Use --dialect mysql or --dialect sqlite; expect fewer lint rules.
Use import instead: import 'migraguard' or use dynamic import().
Install: npm install --save-dev agent-contracts-runtime
Provide --shadow-database-url 'postgres://user:pass@localhost:5432/shadowdb'
Update Node.js to v20+ via nvm or download from nodejs.org
Wait for the other process to finish, or use --force if safe (not recommended).