Skip to main content

Module run_non_interactive

Module run_non_interactive 

Source
Expand description

Headless driver for mermaid run <prompt>.

Same reducer + same effect runner + same providers + same tools as the interactive path. Differences: no TerminalGuard, no crossterm events, no tick timer, no render. One synthetic Msg::SubmitPrompt seeds the reducer; the loop spins until state.turn == Idle and the queue is empty.

Structs§

RunOptions
Per-invocation options for run_non_interactive.
RunResult
Output shape the CLI prints.

Functions§

format_result
Render a RunResult in the requested output format.
run_non_interactive_with
Drive one prompt to completion with explicit per-call options. Bounded by a generous 20-minute wall-clock so a runaway model doesn’t hang a script.