Repository navigation
feat: let .reylo.yaml turn the sqlcommenter comment off - #60
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
ℹ️ No critical issues. Two rough edges are worth a look.
Reviewed changes
This review covers the new sqlcommenter key in .reylo.yaml, from the engine's parser through the build step, the type check and the docs.
- Project file key:
sqlcommenter: Option<bool>inengine/core/src/config.rs, resolved totrueunless the file saysfalse(src/project.ts). All three artifacts are rebuilt. - Build step and type check:
src/loader.ts,src/mapper.tsandsite/scripts/capture-types.tsskipwithSqlcommenterwhen the key is off. The hover's note comes from the newsqlNote(commented). - Invalidation: the flag is added to the
Session.forkey and the mapper'sconfigIdentity, so a running process builds new imports with the new setting. - Docs and tests: a new
### sqlcommentersection in Configuration and a link from Usage. The new tests cover the default and the off case, plus switching it back on in the same process.
claude-opus-5-5 | 𝕏
63ddb65 to
c3acea0
Compare
There was a problem hiding this comment.
✅ No new issues found. Both points from the last review are fixed.
Reviewed changes
Since the last Pullfrog review, the build step now tells the bundlers which project files a module's text depends on. The engine artifacts were also rebuilt over main.
- Bundler invalidation:
sqlModulenow returnswatched, which is the project'swatchedfiles that exist on disk: the project file and the.envfiles. The Vite, webpack and esbuild adapters register these beside the.reylo/entry, so changingsqlcommenterrebuilds modules that were already built.tests/analyze.test.tschecks whatwatchedholds. Toolingtype:sqlModule's return type and doc comment insrc/engine-package.tsnow includewatched.src/register-worker.tsreads onlycode, so it is unaffected.- Dead export: removed
SQL_NOTE. Thesrc/index.tscomment now namessqlNote. - Artifacts: rebuilt all three
engine.wasmovera8537a6.
claude-opus-5-5 | 𝕏
c3acea0 to
531232e
Compare
sqlcommenter in the project file, true when absent, switches the comment that names each statement's file; sqlcommenter: false leaves it off.
531232e to
a64dafa
Compare

Every statement a build step writes ends with a comment naming its
.sqlfile, in sqlcommenter's format. This addssqlcommenterto the project file to switch it. It is on when absent, andsqlcommenter: falseleaves the comment off:sqlcommenterin the engine's project-file parser (engine/core/src/config.rs), which refuses unknown keys, so all three engine artifacts are rebuilt in oneengine/build.shrun.src/project.tsresolves it totrueunless the file saysfalse.sql, the declaration'ssqlliteral and the hover's note all leave the comment out (sqlNoteinsrc/doc-comment.ts).Session.forkeys its sessions on the setting, so the next build after the project file changes uses a new session.sqlcommentersubsection, and a link from Usage's.sql.Test plan
cargo test -p reylo-engine-core config;engine/build.sh(all three artifacts)nub run typecheck;nub run testagainst throwaway Postgres 18 and MySQL 8.4, with the labs linked: 221 pass, 0 skippedsqlcommenter: false, the built module'ssql, a run on SQLite, the declaration'ssqlliteral and its note; then, in the same process, the project file turned back on gives the commenttests/project.test.ts: on by default, off withsqlcommenter: falsesite:nub run capture(no change: the docs keep the default) andnub run build; the subsection checked at desktop and phone widths