Expand description
The host API contract (catalog/host.json) as constants, plus the client
messages every platform host sends (tests/host_fixtures.rs gates the
constants against the JSON).
Constants§
- A2UI_
MESSAGE_ KINDS - The four A2UI v0.9 server messages.
- DEFAULT_
FUNCTION_ DECISION - The default function policy’s
default. - DEFAULT_
MEDIA_ SCHEMES - The media loader’s schemes when the host lists none (no
file). - DEFAULT_
URL_ SCHEMES - EXTENSION_
MESSAGE_ KINDS - The two Exponential UI extensions.
- FUNCTION_
DECISIONS - FUNCTION_
DENIED - FUNCTION_
NOT_ FOUND - HOST_
CONTRACT_ VERSION - HOST_
ERROR_ CODES - INVALID_
MESSAGE - MCP_
ACTION_ TOOL - MCP_
MIME_ TYPES - MEDIA_
MAX_ BYTES media.limits: what every image loader enforces.- MEDIA_
MAX_ PIXELS - MEDIA_
OPTION_ KEYS - MEDIA_
RULE_ KEYS - MEDIA_
TIMEOUT_ MS - MESSAGE_
KINDS - Every message kind the router takes, A2UI first.
- OP_
KINDS - What the router turns a message into.
- PACKAGE_
REQUIRED - PAINT_
ERROR_ HOOK - The renderer → host hook a failed painter calls (
paint.hook). - PRIVATE_
HOSTS - VAPP-107: the hosts
decide_urldenies by default (urls.privateHosts, the rule itself issuper::is_private_host). - RECORD_
KIND_ PATTERN - VAPP-122: a record kind’s name (
package.records.kindPattern). - RENDER_
FAILED - A component’s painter failed (
paint.errorCode). - SOURCE_
DENIED - VAPP-107: a
bindDataModeloutside a package surface’ssources. - SOURCE_
PARAMS_ ENCODING - VAPP-122: how the
bindaction appends its params (sources.paramsEncoding). - SOURCE_
PATTERN - A binding source URI (
<scheme>:<name>[?k=v&…]). - SSE_
EVENTS - SURFACE_
COMMANDS - SURFACE_
FORMATTER - SURFACE_
NOT_ FOUND - SURFACE_
SETTINGS - Round 2: what a host hands each surface besides messages — the
SurfaceSettingskeys, the host formatter’s methods, the commands. - TEMPLATE_
NOT_ FOUND - UNSUPPORTED_
CATALOG - URL_
REASONS - VALIDATION_
FAILED
Functions§
- action_
message - A client action message (A2UI v0.9
action).contextnull ={};payloadonly when it has keys (JSObject.keys(payload).length). - error_
message - A client error message (A2UI v0.9
error);pathonly when given. - host_
contract catalog/host.jsonwithout its$comments, rebuilt from the constants.