Repository navigation
v1.52.0 — Offline database design assistant and slow-query hints
Added
- Offline database design assistant.
dbcli design init|validate|render|diff|proposeauthors and reviews a version-controlleddbcli.design.jsonbeside the code. Every subcommand is offline: none opens a connection, executes DDL, or calls a provider, anddesign initis the only writer — to the explicit--outputpath, refusing to overwrite.validateis fail-closed, sorender,diff, andproposerefuse to work whileerrorfindings remain;renderemitsjson,markdown, ormermaid. - Design drift comparison and review-only proposals.
design diffanddesign proposecompare the artifact against the local schema cache (--against-cache) or local ORM definitions (--against-orm, supporting Prisma, DDL, Drizzle, TypeORM, Sequelize, and JSON), with--orm-formatand--ignorefor control.proposeturns drift into a plan a human reviews and never applies a write: each entry carries adry-runormigration-reviewsafety level pluspreflight,rollback, andverificationsteps. - Two further design review rules.
REVERSE_RELATIONSHIP(error) fires when the same endpoints are declared again in the opposite direction, andPREFIX_REDUNDANT_INDEX(warn) fires when a non-unique index is a leading-column prefix of a longer index. - Passive slow-query hint on
queryandq. At or above--slow-ms(default 1000,0disables), a finished query gains a Performance hint footer andmetadata.performanceAdvisory. It reuses the execution time already measured — noEXPLAIN, no schema read, no second request. The recommendation is engine-aware: PostgreSQL, MySQL, MariaDB, and Redis are pointed atguide slow-query; MongoDB and Elasticsearch state the timing instead.--recoverysuppresses the hint so that envelope keeps its contract.
Changed
- Skill reference documents the new surface.
skills/dbcli/reference.mdgains thedesignsection (subcommands, artifact shape, finding codes and severities, the review-onlyproposecontract, and workflows) plus the--slow-msflag and themetadata.performanceAdvisoryshape, disambiguated from the proxy flag of the same name.
Tests
- Gherkin CLI workflow coverage for workspace inspection, blacklist review, and the verification prune dry run.
Full Changelog: v1.51.2...v1.52.0