Skip to main content

Module runner

Module runner 

Source
Expand description

Non-interactive runner (S10).

Takes a single prompt, runs it through the agent, captures assistant text for stdout, diagnostics for stderr, and returns an exit code.

Structs§

NonInteractiveHooks
Hooks for non-interactive mode with tool safety policy.
NonInteractiveResult
Captured output from a non-interactive run.
NonInteractiveRunner
Non-interactive runner that executes a single prompt and captures output.

Enums§

ExitCode
Exit codes for the non-interactive runner.

Constants§

NDJSON_SCHEMA_VERSION
NDJSON output schema version.

Functions§

format_persist_errors
Format any captured session persist errors into a stderr suffix.