Expand description
Parse the human-editable SDL source format (written by init) into an
EntityGraphIR. This mirrors the behaviour of parseSdl() in
@prometheus-ags/entity-graph-sdl.
The source format has entities as a JSON object (keyed by name), whereas the IR uses a flat array. The parser also validates field types, enum values, and relation cross-references, matching the TypeScript reference implementation.
Structsยง
- AiRaw ๐
- Local
First ๐Raw - SdlConfig
Raw ๐ - SdlDocument ๐
- SdlEntity
Def ๐ - SdlField
Def ๐ - SdlRelation
Def ๐
Functionsยง
- parse_
relation_ ๐kind - parse_
scalar ๐ - parse_
sdl_ source - Parse the human-editable SDL source JSON into an
EntityGraphIR.