Skip to main content

resolve_programmatic_run

Function resolve_programmatic_run 

Source
pub fn resolve_programmatic_run(
    options: &AnalysisOptions,
    entry: &ProgrammaticEntry,
) -> Result<ResolvedRun, ProgrammaticError>
Expand description

Resolve the run of one programmatic call.

options.host names the surface and the environment snapshot. None means the Rust API with a snapshot of the process environment. The surface names the origin of each given value: an option of the Rust API, an option of the Node bindings, or an MCP tool parameter.

ยงErrors

Returns the structured error of ProgrammaticError with the same code and context as the runners: FALLOW_INVALID_ROOT, FALLOW_INVALID_CONFIG_PATH, FALLOW_INVALID_THREADS, FALLOW_CONFIG_LOAD_FAILED, FALLOW_COMBINED_EMPTY or FALLOW_AUDIT_NO_ANALYSIS.