@pi-archimedes/subagent 2.12.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/README.md +6 -6
- package/package.json +5 -5
- package/src/row-block.ts +5 -2
- package/src/tool-row.width-audit.test.ts +2 -1
package/README.md
CHANGED
|
@@ -24,10 +24,10 @@ New to Pi? Pi itself is a one-time global install and needs Node.js ≥ 22.19.0:
|
|
|
24
24
|
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
After installing Pi, choose one installation command above, then `cd` into your project and run `pi`. Inside the session, `/login` signs you in and `/model` picks a model — the [setup section](https://github.com/
|
|
27
|
+
After installing Pi, choose one installation command above, then `cd` into your project and run `pi`. Inside the session, `/login` signs you in and `/model` picks a model — the [setup section](https://github.com/archimedes-codes/pi-archimedes#setup) covers the first run. `/reload` picks the dispatch tool up in a running session.
|
|
28
28
|
|
|
29
29
|
<div align="center">
|
|
30
|
-
<img src="https://raw.githubusercontent.com/
|
|
30
|
+
<img src="https://raw.githubusercontent.com/archimedes-codes/pi-archimedes/main/docs/images/subagents-main-view.png" width="750" alt="Subagents parallel streaming view">
|
|
31
31
|
</div>
|
|
32
32
|
|
|
33
33
|
## Dispatching
|
|
@@ -102,16 +102,16 @@ Independent tasks go in a `tasks` array — mix defined agents and config-less t
|
|
|
102
102
|
Available with the suite (and subagent enabled), `/agents` opens the interactive manager: a searchable list, model and tool pickers, cross-scope collision warnings, and dirty-tracking on save.
|
|
103
103
|
|
|
104
104
|
<p align="center">
|
|
105
|
-
<img src="https://raw.githubusercontent.com/
|
|
105
|
+
<img src="https://raw.githubusercontent.com/archimedes-codes/pi-archimedes/main/docs/images/subagents-agent-view.png" width="650" alt="Subagents agent details view">
|
|
106
106
|
</p>
|
|
107
107
|
|
|
108
108
|
<p align="center">
|
|
109
|
-
<img src="https://raw.githubusercontent.com/
|
|
110
|
-
<img src="https://raw.githubusercontent.com/
|
|
109
|
+
<img src="https://raw.githubusercontent.com/archimedes-codes/pi-archimedes/main/docs/images/subagents-model-selection.png" width="48%" alt="Model selection">
|
|
110
|
+
<img src="https://raw.githubusercontent.com/archimedes-codes/pi-archimedes/main/docs/images/subagents-tool-selection.png" width="48%" alt="Tool selection">
|
|
111
111
|
</p>
|
|
112
112
|
|
|
113
113
|
## Part of the suite
|
|
114
114
|
|
|
115
115
|
The full suite is the supported connected setup. With the relevant components loaded together, a subagent's tokens and cost ride its own tool result into the footer's totals, subagent tasks get their own columns on the todo board, and subagent `ask` questions surface in your terminal. On/off is managed by the suite: toggle via `/plugins` (`archimedes.subagent.enabled`, default on).
|
|
116
116
|
|
|
117
|
-
← [Back to pi-archimedes](https://github.com/
|
|
117
|
+
← [Back to pi-archimedes](https://github.com/archimedes-codes/pi-archimedes)
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-archimedes/subagent",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
|
-
"url": "https://github.com/
|
|
6
|
+
"url": "https://github.com/archimedes-codes/pi-archimedes.git"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
9
|
"keywords": [
|
|
@@ -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",
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
"extensions": [
|
|
37
37
|
"./src/index.ts"
|
|
38
38
|
],
|
|
39
|
-
"image": "https://raw.githubusercontent.com/
|
|
39
|
+
"image": "https://raw.githubusercontent.com/archimedes-codes/pi-archimedes/main/docs/images/subagents-main-view.png"
|
|
40
40
|
}
|
|
41
41
|
}
|
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)
|