Repository navigation
Split the schema monolith into per-domain files under src/schema/ - #28
Merged
Merged
Conversation
565 lines doing ten files' work: common (slug/musical-time/sample-rate building blocks), manifest, song (song+tempo+arrangement), assets, effects (params + inserts), targets (the rule union), mix, track (clip/loop), take, generation — with schema/index.ts as the barrel, so importers keep one import path. A pure move: every schema, comment, and KeyOrder verbatim; the only visibility change is that the shared building blocks (ticks, samples, time shapes, effect params) are now exported from their modules. Rides along per the #27 review footnotes: build-graph.md and the say rule comment soften "hidden from say -v entirely" to what the probing established (system-selected Siri voices match no nameable entry; a few Siri-branded regional voices do list), and the caveat now names the cache edge — after a Settings toggle, Siri renders keep pre-toggle bytes until text/voice/rate changes the key, which is also what lets a good render survive drift.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/schema/schemas.tshad grown to 565 lines doing ten files' work. It's now one file per project-file domain —common(slug, musical time shapes, sample rates),manifest,song(song + tempo + arrangement),assets,effects(params + inserts),targets(the rule union),mix,track(clip/loop),take,generation— withschema/index.tsas the barrel, so consumers keep a single import path (all 18 importers repointedschemas.js→index.js, nothing else about them changes).A pure move: every schema, comment, and KeyOrder is verbatim. The only visibility change is that shared building blocks (
ticks,samples, the musical-time shapes, effect param objects) are now exported from their modules, since the domains import them across files.Also carries the two non-blocking footnotes from the #27 scoped review, as that review suggested:
say -ventirely" is now stated as what the probing actually established — the system-selected Siri voices match no nameable entry (a few Siri-branded regional voices do list), and nothing is literally named "Siri" for the magic string to shadow. Fixed in build-graph.md and the rule comment.voice: Sirirenders keep serving pre-toggle bytes untiltext/voice/ratechanges the key — and why that's also the feature (a good render survives voice drift until the recipe itself moves).Typecheck clean, 222 tests pass.
Note
Low Risk
Structural refactor with no schema semantics change; risk is limited to import-path mistakes or accidental export drift, mitigated by unchanged tests and verbatim schema move.
Overview
Replaces the single
schemas.ts(~545 lines) with one module per project-file domain (common,manifest,song,assets,effects,targets,mix,track,take,generation) and aschema/index.tsbarrel so the public import path stays../schema/index.js. All consumers that importedschemas.jsare repointed toindex.js; schemas, KeyOrders, and comments are otherwise unchanged aside from exporting shared pieces (e.g.ticks, effect param objects) where cross-file imports need them.Docs and
sayrule comments are tightened forvoice: Siri: system-selected Siri voices are not nameable viasay -v(only some regional Siri-branded names list), andbuild-graph.mdnow states that the cache does not watch Settings—existingSirirenders keep pre-toggle bytes untiltext/voice/ratechange the action key, which is intentional stability against voice drift.Reviewed by Cursor Bugbot for commit 5bd4e9f. Configure here.