pi-agent-rb 0.1.10 → 0.1.12

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: d1f5829656d4c036d0fff4550cdd8b7b3a0c62fbc31f214ee0bf50c2dfa4ea14
4
+ data.tar.gz: 36a326da55dfacd15f1915b048cae64ceaaa7acb7464213cf9fd09d5662bd6ef
5
5
  SHA512:
6
- metadata.gz: 22022aa55d47d49cd2d9b547a2ee846e590dd4bbe3133a577b579662b806d560a99a852f0ee9667c5bdd9138cd32c6292f2d217cedf8e1d2acd1a76fd77ffbf3
7
- data.tar.gz: aaa78bfe30ee3e2b9db5aab67b0eba26bbd6c8e62a3d3626aff496a0c345815fde43fe001894bccfbec01497fc8586244140a7f597d22cb73d825f034414e441
6
+ metadata.gz: ac9c8fda5691cd4aa35faf0e000251da8f3bd8725ec15a8a1c45140fd2a0bad5c2d6a5c780be9eee8f2824a01ac6da2c007cfe963306a136ddf6dcfea0ccb028
7
+ data.tar.gz: d54267794c0498cc92a4234c629ebbb4c30ec12510119ca41d0358da6f5313419b05379c9d17fcf5c66d4690bd37a26994275082e584634b98b6ef0d69a9c776
data/CHANGELOG.md CHANGED
@@ -7,6 +7,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.12] - 2026-07-09
11
+
12
+ ### Changed
13
+ - Bumped pinned upstream `pi-coding-agent` version to `0.80.5` (from
14
+ `0.80.3`). This range is a library/SDK and provider maintenance batch:
15
+ Claude Sonnet 5 on Copilot and Bedrock prompt caching, GPT-5.6 metadata,
16
+ refreshed model catalogs, bash-timeout validation, extension hooks
17
+ (`before_provider_headers`, `InlineExtension`), session storage exports
18
+ (`InMemorySessionStorage`, `JsonlSessionStorage`), custom jsonl session
19
+ header metadata, and numerous provider/streaming fixes. No new RPC
20
+ commands were added to the protocol surface this gem drives, so the
21
+ client API is unchanged — this is a pin bump only.
22
+
23
+ ## [0.1.11] - 2026-06-30
24
+
25
+ ### Changed
26
+ - Bumped pinned upstream `pi-coding-agent` version to `0.80.3`. This release
27
+ adds two RPC commands to the protocol surface (`get_entries`, `get_tree`),
28
+ a package `./rpc-entry` export for launching pi directly in RPC mode, and
29
+ a raft of SDK/library-level changes (Claude Sonnet 5 support, `gpt-5.5` as
30
+ the default OpenAI model, provider/streaming fixes). The existing RPC
31
+ commands this gem drives are unchanged.
32
+
33
+ ### Added
34
+ - `Session#entries(since:)` wraps the new `get_entries` RPC command: session
35
+ entries in append order, including pre-compaction history and abandoned
36
+ branches. Pass `since:` (a stable entry id) as a durable cursor to fetch
37
+ only entries after it. Returns `{ "entries" => [...], "leafId" => ... }`.
38
+ - `Session#tree` wraps the new `get_tree` RPC command: the session as a tree
39
+ of entries. Returns `{ "tree" => [...], "leafId" => ... }`.
40
+
10
41
  ## [0.1.10] - 2026-06-25
11
42
 
12
43
  ### 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.5`; 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.12"
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.5"
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.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - chagel