@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d3ara1n/pi-subagent",
3
- "version": "3.3.1",
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",
@@ -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 steers retain accent", () => {
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
- for (const status of ["queued", "done"] as const) {
48
- assert.match(formatDisplayItem({ type: "steer", status, text: "input" }, color), /^<accent>/);
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
- return fg("accent", `\u21a9 steer${marker}: ${oneLine(item.text)}`);
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);