Releases: chagel/pi-agent-rb
Releases · chagel/pi-agent-rb
v0.1.5
Changed
- Bumped pinned upstream
pi-coding-agentversion to0.79.1(adds Claude Fable 5 model support, a globaldefaultProjectTrustsetting to configure unresolved-trust behavior, prompt template argument defaults, extension autocomplete trigger characters, and assorted fixes; no changes to the RPC protocol surface or the--approve/--no-approveflags this gem drives).
RubyGems: https://rubygems.org/gems/pi-agent-rb/versions/0.1.5
v0.1.4
Changed
- Bumped pinned upstream
pi-coding-agentversion to0.79.0(cache-hit visibility in footer, richer SDK exports, and assorted fixes; the RPC wire protocol this gem drives is unchanged). - Behavior change in pi 0.79.0: project-local inputs (
.pi/settings.json, project extensions, resources, packages) are now trust-gated. In RPC mode pi does not prompt — without a saved trust decision it silently ignores them. Pass the newapprove: trueoption to keep loading them.
Added
approve:option onClient.new/PiAgent.session/PiAgent.open:trueappends--approveto the pi spawn args (trust the project),falseappends--no-approve(explicitly ignore project inputs); the defaultnilleaves pi's own behavior untouched.
RubyGems: https://rubygems.org/gems/pi-agent-rb/versions/0.1.4
v0.1.3
Changed
- Bumped pinned upstream
pi-coding-agentversion to0.77.0(adds Claude Opus 4.8 metadata,--exclude-tools, and Codex subscription device login; no changes to the RPC protocol surface this gem drives).
Install
gem install pi-agent-rb
Full changelog: v0.1.2...v0.1.3
v0.1.2
Changed
- Minimum Ruby raised to
3.3.0(Ruby 3.2 reached EOL on 2026-04-01).
Added
- GitHub Actions CI: rspec across Ruby 3.3, 3.4, 4.0, and head; rubocop on 4.0.
- README badges (CI status, gem version, license) and an installation section.
Install
```
gem install pi-agent-rb
```
Full changelog: v0.1.1...v0.1.2
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
```