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;
/v1/blueprints/:id/binding-requirements returns the declaration-side
BindRequest list an operator’s capability manifest must cover.
Callers pass a shared Store via Arc and mount the router.
Structs§
- Binding
Requirements Response - Response body for
GET /v1/blueprints/:id/binding-requirements. - 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), no CLI default kind override, andstrict_embed = false(backward-compat = the server accepts raw refs and runs the linker itself whenref_baseis set). - 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.