v0.1.0
First release of pi-agent-rb — a Ruby client for the pi coding agent, driving pi --mode rpc over its JSONL protocol.
Verified against pi 0.75.3.
Added
- Initial project scaffold.
popen3transport with JSONL framing and request correlation.- Pluggable transport.
SessionAPI with typed event stream.Session#runsingle-shot helper (pi print-mode equivalent).Sessioncommands:cycle_model,available_models,messages,last_assistant_text,compact,new_session,switch_session.Session#session_stats.- Session forking and error mapping.
- Image attachments;
follow_upuses a dedicated command. - Extension UI protocol.
Fixed
Session#set_modelnow sendsprovider/modelId(pi rejected the previous singlemodelfield).Session#set_thinkingnow sends theset_thinking_levelcommand.
Install
```
gem install pi-agent-rb
```