pi-agent-rb 0.1.16 → 0.1.18

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: d793e6488ae98eed6a102443d15553b761d83b4682f0099fdcf14a5f9b7c376d
4
- data.tar.gz: 433f772b9f82a1c001123340a0c98c9c2c13d42b4456476f2dfece76102e6031
3
+ metadata.gz: a86ab7926d2a79fcd0b1777fa3e646762e2940b570a2b3b23ec05f1b6a2b61ad
4
+ data.tar.gz: cbc2d4df9b4999003e0b2733d190beb0f972997478d3365ecd14770602440c8a
5
5
  SHA512:
6
- metadata.gz: ebace74bbe76021696c294fbc40ae54f8dbeb77ddb66556f02b06b936904b3eee60af0d798bda9cce2f9e744e0f0a961aaecb2ae780fe9a359857e28633c6843
7
- data.tar.gz: ff11c2ef0282b3fabcb9e00deb8392037d4677d04cdfcfe4205f00b2a01860326ba68c113689fef16e8e07ede114e3f6d2c95281cf32bed135691c57ab728107
6
+ metadata.gz: dc0fc51144b3820a94753bede3a0f3f14df30cf1b16bce2e4e87530b1a3fb7f9dcc422910ceefcd3ccff42a7978a4c4f81ccc5182606be89aa176cc4375819c9
7
+ data.tar.gz: 88100dce5b222fde9d481a402190dc1d6dbb205de75ee8f2528a95b697e752ed68696f3c642dabbb749bd00a9bf1e76a8a8846fe7ded16227e0e300bdfceb8f8
data/CHANGELOG.md CHANGED
@@ -7,6 +7,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.18] - 2026-07-21
11
+
12
+ ### Added
13
+ - `Session#available_thinking_levels`, wrapping the upstream
14
+ `get_available_thinking_levels` RPC command (added in pi `0.81.0`).
15
+ Returns the thinking levels supported by the current model as an array of
16
+ strings (e.g. `["off", "low", "medium", "high"]`), or `["off"]` for a
17
+ model without reasoning support. Complements the existing `set_thinking`.
18
+
19
+ ### Changed
20
+ - Bumped pinned upstream `pi-coding-agent` version to `0.81.1` (from
21
+ `0.80.10`), covering both `0.81.0` and `0.81.1`.
22
+ - `0.81.0` adds local llama.cpp model management, full provider
23
+ extensions (extensions can register complete pi-ai providers), Qwen
24
+ Token Plan built-in providers, and expanded usage accounting for
25
+ tools, compaction, and branch summaries. The one change touching the
26
+ JSONL RPC surface this gem drives is the new
27
+ `get_available_thinking_levels` command, now exposed as
28
+ `Session#available_thinking_levels`.
29
+ - `0.81.1` adds resilient compaction/branch summaries that retry
30
+ transient provider failures, emitting new `summarization_retry_*`
31
+ lifecycle events (`summarization_retry_scheduled`,
32
+ `summarization_retry_attempt_start`, `summarization_retry_finished`) to
33
+ RPC consumers, plus checksummed release source archives. The retry
34
+ events flow through `PiAgent::Event` transparently — it preserves the
35
+ native payload on `#raw` and exposes `#type` as a symbol — so no gem
36
+ change is needed to consume them.
37
+ - No RPC commands or responses changed shape across either release, so
38
+ the rest is provider/model/accounting concerns that leave the existing
39
+ contract unchanged.
40
+
41
+ ## [0.1.17] - 2026-07-17
42
+
43
+ ### Changed
44
+ - Bumped pinned upstream `pi-coding-agent` version to `0.80.10` (from
45
+ `0.80.9`). Upstream is a Kimi Coding maintenance patch: K3 now uses
46
+ adaptive thinking correctly (exposing its supported max level and
47
+ replaying empty-signature thinking blocks), inherited Kimi Coding
48
+ requests use Anthropic adaptive thinking effort without token budgets,
49
+ and inherited Kimi K3 pricing/thinking-level metadata plus catalog
50
+ generation for xAI models are fixed. All of these are provider/model
51
+ metadata concerns; no new RPC commands were added and the JSONL RPC
52
+ surface this gem drives is unchanged — this is a pin bump only.
53
+
10
54
  ## [0.1.16] - 2026-07-16
11
55
 
12
56
  ### 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.9`; other versions may work but are not verified.
17
+ - This gem is pinned against pi `0.81.1`; other versions may work but are not verified.
18
18
 
19
19
  ## Installation
20
20
 
@@ -70,7 +70,7 @@ end
70
70
  Other session methods:
71
71
 
72
72
  - Prompting: `steer`, `follow_up`, `events`, `abort`
73
- - Model: `set_model`, `cycle_model`, `available_models`, `set_thinking`
73
+ - Model: `set_model`, `cycle_model`, `available_models`, `set_thinking`, `available_thinking_levels`
74
74
  - State: `get_state`, `messages`, `last_assistant_text`, `session_stats`
75
75
  - Context: `compact`
76
76
  - Sessions: `new_session`, `switch_session`, `fork`, `clone_session`,
@@ -138,6 +138,13 @@ module PiAgent
138
138
  self
139
139
  end
140
140
 
141
+ # Thinking levels supported by the current model, as an array of strings
142
+ # (e.g. ["off", "low", "medium", "high"]). Returns ["off"] for a model
143
+ # without reasoning support.
144
+ def available_thinking_levels
145
+ request_data("get_available_thinking_levels").fetch("levels", [])
146
+ end
147
+
141
148
  def get_state
142
149
  @client.request("get_state").value!(timeout: DEFAULT_ACK_TIMEOUT)
143
150
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PiAgent
4
- VERSION = "0.1.16"
4
+ VERSION = "0.1.18"
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.9"
8
+ SUPPORTED_PI_VERSION = "0.81.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.1.16
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - chagel