@ouispec/contract
v0.4.2
Published
The OUI integrator contract (ADR-0226 §3): versioned JSON Schemas for the control table, control-kind registration, tier 2 mapping, binding, action effect, room catalog, manifest, knowledge, oui.config.json, approvals and event declarations; the TypeScrip
Readme
@ouispec/contract
The OUI integrator contract (ADR-0226 §3): the JSON Schemas a product builds against, versioned together by MANIFEST_VERSION, the TypeScript types generated from them, a validator, and the integrator guide.
schemas/*.json— the authority. Each$idishttps://schemas.closurestudio.ai/oui/v<major>/<file>; the event declarations keep their own…/agent-sdk/event-declarations/v1.json. Published as@ouispec/contract/schemas/<file>.@ouispec/contract— the generated types (ControlTableFile,AgentBinding,OuiManifest,Approvals' messages, …),MANIFEST_VERSION, and every schema as a value (CONTRACT_SCHEMAS).@ouispec/contract/validate—contractProblems(ref, value), by file or by type name.@ouispec/contract/codegen— the one schema-to-TypeScript renderer, also used for a product's event payload types.
Edit a schema or a guide/ section, then pnpm generate: it rewrites src/generated/ and INTEGRATOR-GUIDE.md. pnpm build fails when either is stale.
