pi-agent-rb 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 764c10abd215cb94244b349a446dd3743637196556fe3b302abf0c221c78d554
4
- data.tar.gz: 19cc0cc64de81a17d120dceffe88ad862c959c210d791400b1883e160648a0ea
3
+ metadata.gz: 14f4bc43c791c394b325afc3352d848f6859a69f6ec8ac5c84c4caf05fe2ab7c
4
+ data.tar.gz: '0707285b43d67a86e76f41cd6c64ed543da143d26a7d59ba0b707d624cf92e5b'
5
5
  SHA512:
6
- metadata.gz: 22022aa55d47d49cd2d9b547a2ee846e590dd4bbe3133a577b579662b806d560a99a852f0ee9667c5bdd9138cd32c6292f2d217cedf8e1d2acd1a76fd77ffbf3
7
- data.tar.gz: aaa78bfe30ee3e2b9db5aab67b0eba26bbd6c8e62a3d3626aff496a0c345815fde43fe001894bccfbec01497fc8586244140a7f597d22cb73d825f034414e441
6
+ metadata.gz: aaf855bf9c7a2a579cb951e54f6f72a64239e0f21184649e895807a2e5f8d12e8bd7905c40c0c0b81ffc356ced87053919b7739a6535e9244c536a357d32a99d
7
+ data.tar.gz: eb80da11fc8315e93a29dfe59036b342642a50baa33f2d50047fa53158f47da84e6dfcb26eec3ec965155306cdea144702b5e4308ac86f6a5d70cfd74bf1b1af
data/CHANGELOG.md CHANGED
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.11] - 2026-06-30
11
+
12
+ ### Changed
13
+ - Bumped pinned upstream `pi-coding-agent` version to `0.80.3`. This release
14
+ adds two RPC commands to the protocol surface (`get_entries`, `get_tree`),
15
+ a package `./rpc-entry` export for launching pi directly in RPC mode, and
16
+ a raft of SDK/library-level changes (Claude Sonnet 5 support, `gpt-5.5` as
17
+ the default OpenAI model, provider/streaming fixes). The existing RPC
18
+ commands this gem drives are unchanged.
19
+
20
+ ### Added
21
+ - `Session#entries(since:)` wraps the new `get_entries` RPC command: session
22
+ entries in append order, including pre-compaction history and abandoned
23
+ branches. Pass `since:` (a stable entry id) as a durable cursor to fetch
24
+ only entries after it. Returns `{ "entries" => [...], "leafId" => ... }`.
25
+ - `Session#tree` wraps the new `get_tree` RPC command: the session as a tree
26
+ of entries. Returns `{ "tree" => [...], "leafId" => ... }`.
27
+
10
28
  ## [0.1.10] - 2026-06-25
11
29
 
12
30
  ### Changed
data/README.md CHANGED
@@ -14,7 +14,7 @@ building interactive agent UIs (web, TUI) on top of pi.
14
14
 
15
15
  - Ruby 3.3+
16
16
  - `pi` on `PATH` (install via `npm i -g @earendil-works/pi-coding-agent`)
17
- - This gem is pinned against pi `0.80.2`; other versions may work but are not verified.
17
+ - This gem is pinned against pi `0.80.3`; other versions may work but are not verified.
18
18
 
19
19
  ## Installation
20
20
 
@@ -188,6 +188,24 @@ module PiAgent
188
188
  request_data("get_fork_messages").fetch("messages", [])
189
189
  end
190
190
 
191
+ # Session entries in append order (excluding the session header). Unlike
192
+ # `messages`, this includes pre-compaction history and abandoned branches.
193
+ # Entry ids are stable, so pass `since:` (the last entry id you have seen)
194
+ # to get only entries strictly after it — a durable cursor across restarts.
195
+ # Returns { "entries" => [...], "leafId" => <id or nil> }.
196
+ def entries(since: nil)
197
+ params = {}
198
+ params[:since] = since if since
199
+ request_data("get_entries", params)
200
+ end
201
+
202
+ # The session as a tree of entries. Each node is
203
+ # { "entry" =>, "children" => [...], "label"? =>, "labelTimestamp"? => }.
204
+ # Returns { "tree" => [...], "leafId" => <id or nil> }.
205
+ def tree
206
+ request_data("get_tree")
207
+ end
208
+
191
209
  # Fork a new branch from a previous user message (an entryId from
192
210
  # `fork_messages`). Returns { "text" => <forked-from text>,
193
211
  # "cancelled" => bool }; `cancelled` is true if an extension vetoed it.
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PiAgent
4
- VERSION = "0.1.10"
4
+ VERSION = "0.1.11"
5
5
 
6
6
  # Pinned upstream pi-coding-agent version this gem is verified against.
7
7
  # See: https://www.npmjs.com/package/@earendil-works/pi-coding-agent
8
- SUPPORTED_PI_VERSION = "0.80.2"
8
+ SUPPORTED_PI_VERSION = "0.80.3"
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pi-agent-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - chagel