Registry
A central store of all registered components. Used byh() for dispatch and by agents/tools to discover what components are available and what props they accept.
registry.register(component)
Adds a component to the registry. Must be called with a component created bydefineComponent.
ContractError if the argument was not created with defineComponent.
registry.get(name)
Returns the component function for a given name, orundefined if not found.
registry.has(name)
Returnstrue if a component with that name is registered.
registry.list()
Returns an array of all registered components with their prop schemas — structured for programmatic use.registry.manifest()
Returnsregistry.list() serialized as a JSON string. Designed to be passed to an AI agent as context — the agent can read the manifest and know exactly what components exist and how to call them.