Skip to main content

resolve_spawn_args

Function resolve_spawn_args 

Source
pub fn resolve_spawn_args(
    path: &str,
    task: &str,
    model: Option<String>,
    workdir: &str,
    yolo: bool,
    allow: Vec<String>,
    max_depth: Option<usize>,
    regions: HashMap<String, String>,
    no_seed_commands: bool,
) -> Result<SpawnArgs>
Expand description

Resolve the local inputs of a spawn request: find the manifest, mint a run id from the agent’s directory name, record the working directory, and resolve any dynamic --<region> flags (raw values, @path or literal) against the blueprint’s declared caller-input regions.

regions maps a flag name to its raw value. An unknown region name (one the blueprint doesn’t read as caller input) is a hard error here - fast, local typo protection before the daemon is contacted.