@skenion/contracts
v0.79.1
Published
Generated Skenion v0 wire contracts
Readme
@skenion/contracts
Generated TypeScript DTOs, JSON Schema constants, contract identity, and strict validators for the Skenion v0 wire protocol.
TypeSpec under the source repository's typespec/ directory owns separate
Object, Package, Project, MIDI, ObjectHost, Studio, and Runtime bounded
contexts. Cross-field rules are emitted once and consumed by both TypeScript
and Rust validators.
TypeScript validators are compiled to Ajv standalone ESM during generation. Importing the package does not compile schemas or require string code generation, including in browser and desktop WebView CSP environments.
Do not edit src/generated/. Change TypeSpec or the shared generation layer at
the repository root and run pnpm run generate. Runtime execution semantics,
package installation policy, and Object implementations are intentionally not
part of this package.
Domain-owned JSON Schema constants are available from
@skenion/contracts/{object,project,transport,midi,package,object-host,studio,runtime}/v0.1/schema.
The Package module owns manifest and plan schemas; ObjectHost and Studio bridge
schemas are not exported from the Runtime module.
Canonical repository: https://github.com/skenion/skenion-contracts
