Skip to content

v1.2.0 - Drizzle ORM support

Choose a tag to compare

@skibidiskib skibidiskib released this 26 Apr 07:59
· 22 commits to master since this release

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 *.ts files containing pgTable / mysqlTable / sqliteTable declarations.
  • Parses table name, columns, primary key, not-null, unique, and references() foreign keys.
  • Emits with the same PK | UQ | FK markers as Prisma in schema.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 / prismaSchemaPath replaced with schemaSources: SchemaSource[].
  • New parseDrizzleSchema() with conservative type allowlist and tail-scoping bound to the next field-start index (prevents phantom modifiers leaking from sibling fields).
  • --version output 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.0

Changelog

  • 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/ and src/pages/ detection (deprecated, do not use)
  • v1.0.1 — initial public release