LemonCliRunners.PiRunner (lemon_cli_runners v0.1.0)

View Source

Pi Coding Agent CLI subprocess runner.

Wraps the pi CLI and streams JSONL events from:

pi [extra_args...] --print --mode json [--provider <provider>] [--model <model>] --session <token> <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