Skip to main content

Module loader

Module loader 

Source
Expand description

Compat shim — the Blueprint loader (expand_file_refs / load_blueprint_from_path / pre_read_default_agent_kind / LoadError) moved to the sibling mlua-swarm-compile crate’s linker module so that the CLI (mse bp lint / mse bp build) and the server register path share one linker binary instead of two hand-copied bodies. This module re-exports the moved surface for pre-migration call sites; new code should reach into mlua_swarm_compile::linker directly (issue 4c4e3eb8 Phase 2).

Enums§

LoadError
Everything that can go wrong while loading and $file/$agent_md expanding a Blueprint from disk.

Functions§

expand_file_refs
Backward-compat adapter — resolves refs against a single-tier cascade (only base). New callers should use expand_file_refs_with_config to opt into the full cascade.
load_blueprint_from_path
Load a Blueprint from a file path. Detects JSON vs. YAML by extension, recursively expands $file refs, and parses the result into a typed Blueprint.
pre_read_default_agent_kind
Pull default_agent_kind out of the raw BP JSON top level. Falls back to the schema’s Default impl (Operator) if the key is missing or its type does not match. This is the first stage of resolving the default kind used inside expand_file_refs when a $agent_md has no sibling kind override.