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
RunResultin 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.