kumiko codegen
kumiko codegen [<path>]Reads r.defineEvent / r.entity calls in the app and emits:
.kumiko/define.ts— the runtime registry the app’s bootstrap importstypes.generated.d.ts— the type maps your IDE picks up
Idempotent — re-running with no changes leaves files untouched. CI-safe for a “is the checkout in sync?” gate.
When to run
Section titled “When to run”- After adding/renaming an event or entity
- After pulling changes from another dev that touched events/entities
- As a
postinstallhook (already wired — seepackage.json)
Output
Section titled “Output”✓ codegen done — 41 events, 87ms output: .kumiko/ types: rewritten define: unchangedunchanged means the file already matched what would be written —
this is the “no work to do” exit, not an error.
See also
Section titled “See also”kumiko create— usually followed by codegenkumiko build— run codegen first if events changed