@d3ara1n/pi-subagent 3.3.1 → 3.3.2
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 +1 -1
- package/src/activity.test.ts +3 -4
- package/src/utils.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d3ara1n/pi-subagent",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Role-based subagent orchestration for pi — delegates tasks to specialized pi child processes with configurable model roles",
|
|
6
6
|
"main": "src/index.ts",
|
package/src/activity.test.ts
CHANGED
|
@@ -42,11 +42,10 @@ test("queued items share the visible limit and consumption changes only the mark
|
|
|
42
42
|
assert.equal(buildDisplayItems(log).length, 7);
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
test("queued rendering uses status for every display type and
|
|
45
|
+
test("queued rendering uses status for every display type and steer color follows delivery status", () => {
|
|
46
46
|
const color = (name: string, text: string) => `<${name}>${text}</${name}>`;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
47
|
+
assert.match(formatDisplayItem({ type: "steer", status: "queued", text: "input" }, color), /^<accent>/);
|
|
48
|
+
assert.match(formatDisplayItem({ type: "steer", status: "done", text: "input" }, color), /^<dim>/);
|
|
50
49
|
assert.equal(formatDisplayItem({ type: "steer", status: "done", text: "queued" }, plain), "\u21a9 steer: queued");
|
|
51
50
|
assert.match(formatDisplayItem({ type: "thinking", status: "queued" }, plain), /\(queued\)/);
|
|
52
51
|
assert.match(formatDisplayItem({ type: "toolCall", name: "read", args: {}, status: "queued" }, plain), /\(queued\)/);
|
package/src/utils.ts
CHANGED
|
@@ -288,7 +288,10 @@ export function formatDisplayItem(
|
|
|
288
288
|
const queued = item.status === "queued";
|
|
289
289
|
const marker = queued ? " (queued)" : "";
|
|
290
290
|
if (item.type === "steer") {
|
|
291
|
-
|
|
291
|
+
// Color follows delivery status like every other entry (queued = accent,
|
|
292
|
+
// consumed = dim); the ↩ glyph alone carries the external-origin marker.
|
|
293
|
+
const steerColor = queued ? "accent" : "dim";
|
|
294
|
+
return fg(steerColor, `\u21a9 steer${marker}: ${oneLine(item.text)}`);
|
|
292
295
|
}
|
|
293
296
|
if (queued) {
|
|
294
297
|
const body = item.type === "thinking" ? "thinking" : formatToolCall(item.name, item.args, (_c, text) => text);
|