v1.2.0 - Drizzle ORM support
What is new
Multi-source schema detection — ai-codex now picks up Drizzle ORM tables alongside Prisma models in the same project.
Drizzle support
- Walks
db/,src/db/,lib/db/,src/lib/db/,app/db/,database/,drizzle/for*.tsfiles containingpgTable/mysqlTable/sqliteTabledeclarations. - Parses table name, columns, primary key, not-null, unique, and
references()foreign keys. - Emits with the same
PK | UQ | FKmarkers as Prisma inschema.md.
Mixed projects
Projects with both Prisma and Drizzle (e.g. legacy migration in flight) get both sources indexed in the same schema.md.
Internals
FrameworkInfo.hasPrisma/prismaSchemaPathreplaced withschemaSources: SchemaSource[].- New
parseDrizzleSchema()with conservative type allowlist and tail-scoping bound to the next field-start index (prevents phantom modifiers leaking from sibling fields). --versionoutput string corrected to v1.2.0.
Closes
- #3 — Drizzle ORM support
Install
npm install -g ai-codex@1.2.0
# or
npx ai-codex@1.2.0Changelog
- v1.1.3 — Pages Router walker
- v1.1.2 — count-based heuristic for stray
src/app/(regression fix from 1.1.1) - v1.1.1 —
src/app/andsrc/pages/detection (deprecated, do not use) - v1.0.1 — initial public release