@actantdb/types
v0.0.14
Published
Generated TypeScript bindings of actant-contracts (the single source of truth for all public types). Hand-edits forbidden.
Downloads
2,469
Readme
@actantdb/types
Generated TypeScript bindings of crates/actant-contracts — the single source of truth for every public type, error, event, command, and schema in ActantDB.
Hand-edits are forbidden. Every file under src/generated/ is regenerated from actant-contracts by cargo run -p actant-contracts -- codegen-ts.
Why this exists
See /CLAUDE.md §F3. Prose specs do not survive parallel coding-agent implementation across many crates: agents re-derive their own interpretations. The contract crate is the only place these types live; this package is the consumable TypeScript view.
Update protocol
- Modify
crates/actant-contractswith the proposed change. - Run
cargo run -p actant-contracts -- check-compat— fails if the change is backward-incompatible without an explicit version bump. - Run
cargo run -p actant-contracts -- codegen-ts— regeneratespackages/actant-types/src/generated/*. - Commit both the Rust + the regenerated TypeScript in the same PR.
No package may add a public type that crosses package boundaries without going through this protocol.
