@pi-archimedes/subagent 2.13.0 → 2.14.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-archimedes/subagent",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/archimedes-codes/pi-archimedes.git"
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
],
|
|
16
16
|
"main": "./src/index.ts",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@pi-archimedes/core": "2.
|
|
19
|
-
"@pi-archimedes/todo": "2.
|
|
18
|
+
"@pi-archimedes/core": "2.14.0",
|
|
19
|
+
"@pi-archimedes/todo": "2.14.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@earendil-works/pi-ai": ">=1.2.0",
|
package/src/row-block.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* `VisualLinePreview`/`truncateToVisualLines`, which are handed `render(width)`'s
|
|
6
6
|
* width. That module is not importable (pi's export map is `.` and `./rpc-entry`),
|
|
7
7
|
* so the rows here get the same behaviour from pi-tui's own helpers — the
|
|
8
|
-
* sanctioned route
|
|
8
|
+
* sanctioned route: pi's `docs/tui.md` (in `@earendil-works/pi-coding-agent`)
|
|
9
|
+
* asks for pi-tui's own width helpers over hand-rolled measurement.
|
|
9
10
|
*
|
|
10
11
|
* Two kinds of content, because the subagent draws two kinds of thing:
|
|
11
12
|
*
|
|
@@ -16,7 +17,9 @@
|
|
|
16
17
|
* would become a multi-row block instead of one full-width row.
|
|
17
18
|
* * a **block** — multi-line content that is meant to be read in full (the
|
|
18
19
|
* expanded view's output, its task text, its tool-call history). It wraps,
|
|
19
|
-
* as it always has
|
|
20
|
+
* as it always has. ADR 0020 governs the model-facing tool result, not
|
|
21
|
+
* this view; its reasoning — never cap what the reader has no other
|
|
22
|
+
* source for — carries over, and `expanded.ts` reads it the same way.
|
|
20
23
|
*
|
|
21
24
|
* The width therefore arrives per-render and nothing is cached across renders
|
|
22
25
|
* except keyed by (content, width).
|
|
@@ -594,7 +594,8 @@ describe("subagent tool rows: width audit", () => {
|
|
|
594
594
|
});
|
|
595
595
|
|
|
596
596
|
// The collapsed view is a summary: one row per line, cut at the frame. The
|
|
597
|
-
// expanded view is where the run is meant to be read in full (ADR 0020
|
|
597
|
+
// expanded view is where the run is meant to be read in full (ADR 0020 sets
|
|
598
|
+
// the no-other-source rule for the model-facing content; it carries here), so a
|
|
598
599
|
// line that carries content and no second copy of it — the stats line: turns,
|
|
599
600
|
// tools, tokens, duration, cost — has to keep wrapping there. As a row it is
|
|
600
601
|
// cut at the frame, and below ~64 columns the tail (tokens, duration, cost)
|