Skip to main content

Module schema

Module schema 

Source
Expand description

Static schema metadata for the authorable node kinds and non-node surfaces.

Exposes the canonical list of node kinds, one-line summaries, and the recognized attribute names for each kind. The attribute list is derived directly from the parser’s own known_props_for_kind table so the two can never silently diverge.

Also exposes page_attributes, asset_attributes, and document_attributes for the three non-node authorable surfaces, derived from the same parser-side PAGE_KNOWN_PROPS, ASSET_KNOWN_PROPS, and DOCUMENT_KNOWN_PROPS constants.

Token-type schema (token_types, token_type_summary, token_type_descriptor) mirrors the node-kind surface and provides agent-readable value-form, child-node structure, and minimal correct examples for every authorable token type.

Structs§

NodeContentDescriptor
Full content descriptor for a node kind that accepts authorable child content.
TokenTypeDescriptor
Full schema descriptor for one authorable token type.
VariantDescriptor
Full schema descriptor for the variants / override surface.

Functions§

asset_attributes
Return the recognized attribute names for an asset declaration node.
asset_summary
One-line description of the asset surface.
attribute_type
Return a concise, agent-readable type hint for the named attribute.
attribute_type_for_kind
Return a concise, agent-readable type hint for the named attribute on the given node kind.
diagnostic_codes
The full catalog of diagnostic codes the engine can emit, each with its severity and a one-line summary.
diagnostics_summary
One-line description of the diagnostics surface (the root diagnostics { … } lint-policy block).
diagnostics_verbs
The policy verbs accepted inside a diagnostics { … } block, in canonical order (allow, deny, warn).
document_attributes
Return the recognized attribute names for the root zenith document node.
document_summary
One-line description of the document surface (the root zenith node).
node_attributes
Return the recognized attribute names for the given node kind.
node_content
Return the child-content descriptor for the given node kind, or None if the kind accepts no authorable child content (e.g. rect, ellipse, line).
node_example
Return a minimal, syntactically correct full-node example for a node kind.
node_kinds
All authorable node kinds in their canonical KDL-name form.
node_summary
Return a one-line description of the named node kind, or None if the kind is not recognised.
page_attributes
Return the recognized attribute names for a page node.
page_summary
One-line description of the page surface.
token_type_descriptor
Return the full descriptor for the named token type, or None if the type is not recognised.
token_type_summary
Return a one-line description of the named token type, or None if the type is not recognised.
token_types
All authorable token types in their canonical type= string form.
variant_descriptor
Return the descriptor for the variants / override surface.