defineCatalog creates data-only contracts and generation instructions.
defineRegistry binds those contracts to trusted React components.
defineCatalog is re-exported from the React package, the resulting
definition is framework-neutral data. defineRegistry is the React-specific
step. defineRUI rejects mismatched catalog and registry objects.
Contract rules
- Catalog IDs use
namespace.name@major.minorornamespace.name@major.minor.patch. - Component names start with an uppercase letter.
- Component prop schemas must be valid, closed object schemas with
additionalProperties: false. - Core components are included unless
includeCore: falseis explicit. - Descriptions and keywords drive compact relevance retrieval.
rui.instructions(userPrompt) to obtain catalog-aware generation
instructions for your host’s model request. The returned string contains no
provider configuration and does not perform a network request.