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 +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +1 -1
- data/lib/pi_agent/session.rb +18 -0
- data/lib/pi_agent/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14f4bc43c791c394b325afc3352d848f6859a69f6ec8ac5c84c4caf05fe2ab7c
|
|
4
|
+
data.tar.gz: '0707285b43d67a86e76f41cd6c64ed543da143d26a7d59ba0b707d624cf92e5b'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
|
data/lib/pi_agent/session.rb
CHANGED
|
@@ -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.
|
data/lib/pi_agent/version.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module PiAgent
|
|
4
|
-
VERSION = "0.1.
|
|
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.
|
|
8
|
+
SUPPORTED_PI_VERSION = "0.80.3"
|
|
9
9
|
end
|