pi-agent-rb 1.2.2 → 1.2.4

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: d812943288299bb5f5f86dbb770ca3304d3d3aff76adff8343d75614ac1e9086
4
- data.tar.gz: a4a0962142abee43f5b31a02d9c7db221884b9d163f66f4a40386c2fdf6feee2
3
+ metadata.gz: bfcb5693e6ad80474fd5bfb7cf617a9074420810d7dd2f0d182f4a7cd7ca5704
4
+ data.tar.gz: 1ed54f1463dc3affc9a22557784e4cc3f0fd2124edd62a09a0cee0b80963cd0c
5
5
  SHA512:
6
- metadata.gz: f0022fe8acd2d26f99236f6ae0a3b85b11519096e55260eab374f477f99d56df31692b688a6dfd4333cb57d4b2faa1b9aa83fda95b6e71fefe99e97633f54ee8
7
- data.tar.gz: 6befef34ee061b511fc75e7607194ca9adf0600de47a7314100b4a8ca7d972d1035205c7350cc25de6d4a60e1d68a446521f609de0e3218ab1be9b464f342c2a
6
+ metadata.gz: 6c47740cc6c5e2cb579077712480b55613cbf3a335c07da5032e76702515e8d075faee8ea4e488c6e6ec903765b3ee5c9c10895aad7164d156e8b5cdb1d7aac0
7
+ data.tar.gz: 14acb2265fe345c5dd5e326b42aba0f71f000f1bc7c6b9e369fe4fbcbb34a10e717df397d76c81567d71193049877f72571ada32642a49716060b1b6400fdd46
data/CHANGELOG.md CHANGED
@@ -7,6 +7,71 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.4] - 2026-11-21
11
+
12
+ Tracks pi 1.6.0 (rolls up `1.5.1`, `1.5.2`, and `1.6.0`). No gem API change:
13
+ the JSONL RPC command/response/event shapes this gem drives are unchanged
14
+ between pi 1.5.0 and 1.6.0. The RPC-mode changes (`src/modes/rpc/rpc-mode.ts`,
15
+ `docs/rpc.md`) are shutdown behavior (1.5.1) and session-replacement event
16
+ ordering / stderr diagnostics (1.6.0); both are compatible with this gem.
17
+
18
+ ### Changed
19
+ - Bumped pinned upstream `pi-coding-agent` version to `1.6.0` (from `1.5.0`).
20
+ - `1.5.1` — `pi auth login/logout` shell commands; idle prompt cache warming
21
+ (`cacheWarming` now defaults to `"idle"`); Anthropic message threads;
22
+ richer Mermaid rendering; GitHub Copilot classifiers; `pi update` package
23
+ summaries; new default models (e.g. `anthropic` now defaults to Claude
24
+ Opus 5.5). RPC mode: an extension's `ctx.shutdown()` while idle now exits
25
+ immediately; after stdin EOF pi waits for pending work (e.g. MCP token
26
+ refresh) before exiting, and a single SIGTERM/SIGHUP during shutdown no
27
+ longer interrupts cleanup (a second signal still exits at once). This is
28
+ compatible with `Transport::Subprocess#close` (stdin EOF, then bounded
29
+ SIGTERM/SIGKILL escalation). Breaking for extension authors / model config
30
+ only (`GrepOperations.readFile` no longer used for context lines;
31
+ OpenAI-compatible requests omit empty `tools`). Not used by this gem.
32
+ Release notes: https://github.com/earendil-works/pi/releases/tag/v1.5.1
33
+ - `1.5.2` — interactive `Continue`/`Fork`/`Cancel` when a session's working
34
+ directory no longer exists; `/import` cleanup fix; Anthropic OAuth client
35
+ version fix. No RPC change.
36
+ Release notes: https://github.com/earendil-works/pi/releases/tag/v1.5.2
37
+ - `1.6.0` — GPT-6.2 Astra / Sol (Sol is the new default for `openai`,
38
+ `azure`, `openai-codex`); find tool path patterns are now relative to the
39
+ search directory; more provider errors (`Connection closed.`, socket
40
+ error codes) trigger automatic retries; `undici` security update. RPC
41
+ mode: after `new_session` / `switch_session` / `fork` / `clone`, extension
42
+ `session_start` handlers run once (not twice) and events they emit (e.g.
43
+ `entry_appended`) now reach the client, possibly before the command's
44
+ response; session-replacement diagnostics go to stderr (surfaced via
45
+ `on_stderr`); `pi.events` handler errors arrive as `extension_error`;
46
+ `get_last_assistant_text` skips aborted/errored assistant messages.
47
+ Response shapes are unchanged and the client already fans out
48
+ unsolicited events independently of pending requests. Breaking for
49
+ extension authors only (component `render()` returns `readonly
50
+ string[]`). Not used by this gem.
51
+ Release notes: https://github.com/earendil-works/pi/releases/tag/v1.6.0
52
+
53
+ ## [1.2.3] - 2026-11-05
54
+
55
+ Tracks pi 1.5.0. No gem API change: the RPC mode sources (`src/modes/rpc/*`)
56
+ and `docs/rpc.md` are unchanged between pi 1.4.0 and 1.5.0, so the JSONL RPC
57
+ command/response shapes this gem drives are the same. The only wire-visible
58
+ addition is the optional `usage.cost.totalFromProvider` flag on assistant
59
+ messages, which passes through untouched.
60
+
61
+ ### Changed
62
+ - Bumped pinned upstream `pi-coding-agent` version to `1.5.0` (from `1.4.0`).
63
+ - `1.5.0` — extension update changelogs (`pi.changelogPath`,
64
+ `collapseChangelog`); faster incremental streaming/rendering of large tool
65
+ calls; custom self-update commands (`PI_SELF_UPDATE_COMMAND` /
66
+ `selfUpdateCommand`); GPT-6.1 Terra models; `pi.exec()` `maxBuffer` with a
67
+ `truncated` result flag; provider-reported billed cost
68
+ (`usage.cost.totalFromProvider`). Breaking for extension authors only: tool
69
+ argument validation now runs on `@earendil-works/pi-schema` (TypeBox-only
70
+ features such as `Type.Refine()`/codecs no longer apply; plain JSON Schema
71
+ and MCP tools get the same coercion; validation error wording changed).
72
+ Not used by this gem.
73
+ Release notes: https://github.com/earendil-works/pi/releases/tag/v1.5.0
74
+
10
75
  ## [1.2.2] - 2026-10-30
11
76
 
12
77
  Tracks pi 1.4.0. No gem API change: the RPC mode sources (`src/modes/rpc/*`)
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` 0.80.4+ on `PATH` (install via `npm i -g @earendil-works/pi-coding-agent`)
17
- - This gem is pinned against pi `1.4.0`; other versions may work but are not verified.
17
+ - This gem is pinned against pi `1.6.0`; other versions may work but are not verified.
18
18
 
19
19
  ## Installation
20
20
 
@@ -105,7 +105,7 @@ Pi emits `agent_end` after each low-level agent run, but may then retry,
105
105
  compact and retry, or process queued continuations. It emits
106
106
  `agent_settled` only when no automatic work remains, so high-level streams
107
107
  use that as their completion boundary. Upstream added the RPC event in pi
108
- 0.80.4; it is available in this gem's pinned pi 1.4.0.
108
+ 0.80.4; it is available in this gem's pinned pi 1.6.0.
109
109
 
110
110
  `events` is a lower-level, prompt-less drain of the same stream. Because it
111
111
  subscribes lazily when iteration begins, it only works when you subscribe
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PiAgent
4
- VERSION = "1.2.2"
4
+ VERSION = "1.2.4"
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 = "1.4.0"
8
+ SUPPORTED_PI_VERSION = "1.6.0"
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: 1.2.2
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - chagel