pub async fn run(
cli: Cli,
providers: &ProviderRegistry,
) -> Result<ExitCode, PreRunError>Expand description
Build and drive one session; returns the process exit code.
Every terminal state of a started run yields a report (the engine’s
run() is infallible) — only pre-run setup can fail here.
§Errors
PreRunError on config/setup failures before a run exists (bad --cwd,
unknown/misconfigured provider, empty prompt): stderr + exit 1, nothing on
stdout.