pi-agent-rb 0.2.0 → 0.2.1

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: 24f258d02d946aa8752944f4438581126665c94b5ee1253e61c8ebd16ecb6596
4
- data.tar.gz: f98727ad546acbc6ea8dee3e2cf52af1cf7694f3875181fdec16c3773fd2e0b7
3
+ metadata.gz: eb219f216edc0f9a1077814bc561d50ced56bf59265665b5f62e508029421d64
4
+ data.tar.gz: e17ce2b8d2766358b5504abd6fcff507633c3835d60db1256f15bdeb25e326ff
5
5
  SHA512:
6
- metadata.gz: 32e5f3a97a2f6b890a1f1c8aecdd59125a4588b6879e815471ad2257942d291a6ccc5c46d32e4bd04abe13020e8ccb4cde1643dfb9230bea9e7974bb8008513f
7
- data.tar.gz: '099b2a2267bd8a7212c6d90473775d54a22e7d80982471682ae339cd01875383561bd77364f9f9fe54c8a9514ae26023811ec24a8bcbe1b2dd035f1412f30377'
6
+ metadata.gz: 334fbe076244a764f72daa7778e1ae19734c13a9ff414ced6691d5854c9704dc1462c08f0be66f90ac319bfaace117c0ef8c836f36a69d1483477ae3b79004ee
7
+ data.tar.gz: d5d2e098f31f88615808708245776cf6c33b9c0d48ed70a87dbc0261dc53fe4e77d1e8b711e0a69a2b1600d0f55c7bbfd99239fdadb14d6addcfc29ff8db5890
data/CHANGELOG.md CHANGED
@@ -7,6 +7,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.1] - 2026-07-25
11
+
12
+ ### Changed
13
+ - Bumped pinned upstream `pi-coding-agent` version to `0.82.1` (from
14
+ `0.81.1`, rolling up `0.82.0` and `0.82.1`). This is a provider/tooling
15
+ and reliability batch; none of the changes alter the JSONL RPC
16
+ command/response shapes this gem drives, so no gem API change is required.
17
+ - `0.82.1` adds Claude Opus 5 (Anthropic and Amazon Bedrock, with
18
+ adaptive thinking), `ANTHROPIC_AUTH_TOKEN` bearer auth for
19
+ Anthropic-compatible gateways, and faster/more resilient model
20
+ catalogs (pi.dev revalidates with `If-None-Match`). It exposes the
21
+ `outputPad` setting to custom message renderers and fixes
22
+ compaction/branch summaries for header-only auth providers, `/models`
23
+ hiding of unavailable scoped models, startup context-file `EISDIR`
24
+ warnings, and llama.cpp catalog persistence. All provider/SDK/TUI
25
+ concerns, leaving the RPC contract unchanged.
26
+ - `0.82.0` details follow.
27
+ - Adds constrained tool sampling (`Tool.constrainedSampling` with strict
28
+ JSON Schema and OpenAI Lark/regex grammars) plus `supportsGrammarTools`
29
+ / `supportsStrictTools` model capability metadata. This is an
30
+ SDK/extension tool-configuration concern, not part of the RPC surface.
31
+ - Adds OpenRouter OAuth PKCE and Kimi Code subscription sign-in via
32
+ `/login`, and exposes `PI_SESSION_ID`, `PI_SESSION_FILE`, `PI_PROVIDER`,
33
+ `PI_MODEL`, and `PI_REASONING_LEVEL` to commands run by built-in and
34
+ factory-created bash tools.
35
+ - Adds streaming `bash_execution_update` events for direct RPC bash
36
+ commands, correlated with request IDs. These flow through
37
+ `PiAgent::Event` transparently — it preserves the native payload on
38
+ `#raw` and exposes `#type` as a symbol — so no gem change is needed to
39
+ consume them.
40
+ - The remainder are inherited provider/retry/model-catalog fixes (DNS
41
+ lookup retries, OpenRouter cache breakpoints, protobufjs 7.6.5 security
42
+ bump, catalog mtime and llama.cpp context fixes) that leave the RPC
43
+ contract unchanged.
44
+
10
45
  ## [0.2.0] - 2026-07-23
11
46
 
12
47
  Minor (not patch) release: besides the stream-truncation fix, the block form
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 `0.81.1`; other versions may work but are not verified.
17
+ - This gem is pinned against pi `0.82.1`; 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 0.81.1.
108
+ 0.80.4; it is available in this gem's pinned pi 0.82.1.
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 = "0.2.0"
4
+ VERSION = "0.2.1"
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.81.1"
8
+ SUPPORTED_PI_VERSION = "0.82.1"
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - chagel