LemonCliRunners.OpencodeRunner (lemon_cli_runners v0.1.0)

View Source

OpenCode CLI subprocess runner.

Wraps the opencode CLI and streams JSONL events from:

opencode run --format json [--session <ses_...>] [--model <model>] -- <prompt>

Summary

Functions

Cancel a running runner

Run synchronously and return the final result

Start the runner

Get the event stream from a running runner

Functions

cancel(pid, reason \\ :user_requested)

Cancel a running runner

run(opts)

Run synchronously and return the final result

start_link(opts)

Start the runner

stream(pid)

Get the event stream from a running runner