Expand description
HTTP surface for inspecting/registering Blueprint state (/v1/blueprints/*).
HTTP surface for inspecting Blueprint state (= for debug / animation verification).
/v1/blueprints/:id/head returns the head Blueprint JSON;
/v1/blueprints/:id/history returns the commit-version list.
Callers pass a shared Store via Arc and mount the router.
Structs§
- Blueprints
State - Router state: BP store + the base dir used to resolve
$file/$agent_mdrefs +default_agent_kindfrom the CLI (= layer (2) of the 4-tier cascade — the CLI override layer). Whenref_base = None, ref expansion is skipped (= seed bodies are parsed as raw JSON).
Functions§
- build_
blueprints_ router - Minimal entry: no
ref_base(ref expansion skipped) and no CLI default kind override. - build_
blueprints_ router_ with_ refs - When
ref_baseis set,seed_blueprintresolves{"$file": ...}/{"$agent_md": ...}refs in the body under that base dir and expands them. Path hygiene (absolute paths and..are rejected) is enforced insideexpand_file_refs, sandboxed to the subtree under the base dir.