@tintinweb/pi-subagents 0.4.8 → 0.4.9

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.4.9] - 2026-03-18
9
+
10
+ ### Fixed
11
+ - **Conversation viewer crash in narrow terminals** ([#7](https://github.com/tintinweb/pi-subagents/issues/7)) — `buildContentLines()` in the live conversation viewer could return lines wider than the terminal when `wrapTextWithAnsi()` misjudged visible width on ANSI-heavy input (e.g. tool output with embedded escape codes, long URLs, wide tables). All content lines are now clamped with `truncateToWidth()` before returning. Same class of bug as the widget fix in v0.2.7, different component.
12
+
13
+ ### Added
14
+ - **Conversation viewer width-safety tests** — 17 tests covering `render()` and `buildContentLines()` across varied content (plain text, ANSI codes, unicode, tables, long URLs, narrow terminals). Includes mock-based regression tests that simulate upstream `wrapTextWithAnsi` returning overwidth lines, ensuring the safety net catches them.
15
+
8
16
  ## [0.4.8] - 2026-03-18
9
17
 
10
18
  ### Added
@@ -299,6 +307,7 @@ Initial release.
299
307
  - **Thinking level** — per-agent extended thinking control
300
308
  - **`/agent` and `/agents` commands**
301
309
 
310
+ [0.4.9]: https://github.com/tintinweb/pi-subagents/compare/v0.4.8...v0.4.9
302
311
  [0.4.8]: https://github.com/tintinweb/pi-subagents/compare/v0.4.7...v0.4.8
303
312
  [0.4.7]: https://github.com/tintinweb/pi-subagents/compare/v0.4.6...v0.4.7
304
313
  [0.4.6]: https://github.com/tintinweb/pi-subagents/compare/v0.4.5...v0.4.6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tintinweb/pi-subagents",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "A pi extension extension that brings smart Claude Code-style autonomous sub-agents to pi.",
5
5
  "author": "tintinweb",
6
6
  "license": "MIT",
@@ -21,9 +21,9 @@
21
21
  "autonomous"
22
22
  ],
23
23
  "dependencies": {
24
- "@mariozechner/pi-ai": "^0.57.1",
25
- "@mariozechner/pi-coding-agent": "^0.57.1",
26
- "@mariozechner/pi-tui": "^0.57.1",
24
+ "@mariozechner/pi-ai": "^0.60.0",
25
+ "@mariozechner/pi-coding-agent": "^0.60.0",
26
+ "@mariozechner/pi-tui": "^0.60.0",
27
27
  "@sinclair/typebox": "latest"
28
28
  },
29
29
  "scripts": {
@@ -238,6 +238,6 @@ export class ConversationViewer implements Component {
238
238
  lines.push(truncateToWidth(th.fg("accent", "▍ ") + th.fg("dim", act), width));
239
239
  }
240
240
 
241
- return lines;
241
+ return lines.map(l => truncateToWidth(l, width));
242
242
  }
243
243
  }