oira666_pi-subagent 0.3.1 → 0.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.
Files changed (3) hide show
  1. package/index.ts +1 -1
  2. package/package.json +1 -1
  3. package/tree.ts +1 -1
package/index.ts CHANGED
@@ -1226,7 +1226,7 @@ export default function (pi: ExtensionAPI) {
1226
1226
  if (typeof targetCtx.ui.setStatus !== "function") return;
1227
1227
  targetCtx.ui.setStatus(
1228
1228
  "subagent-usage",
1229
- line ? formatFooterStatusText(targetCtx, `total ${line}`) : undefined,
1229
+ line ? formatFooterStatusText(targetCtx, line) : undefined,
1230
1230
  );
1231
1231
  } catch (err) {
1232
1232
  console.error("[pi-subagent] Failed to update combined subagent status line:", err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oira666_pi-subagent",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Subagent extension for Pi coding agent. Delegate tasks to specialized agents.",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/tree.ts CHANGED
@@ -92,7 +92,7 @@ export function formatCombinedUsageStatusLine(
92
92
  const cache = cacheRead || cacheWrite
93
93
  ? ` R${formatTokens(cacheRead)} W${formatTokens(cacheWrite)}`
94
94
  : "";
95
- return ↑${formatTokens(input)} ↓${formatTokens(output)}${cache} T${formatTokens(total)} • ${turns} turn${turns === 1 ? "" : "s"} • $${cost.toFixed(4)} • ${subagentCount} subagent${subagentCount === 1 ? "" : "s"}`;
95
+ return `with subagents (${subagentCount}) Σ $${cost.toFixed(4)} • ↑${formatTokens(input)} ↓${formatTokens(output)}${cache} T${formatTokens(total)} • ${turns} turn${turns === 1 ? "" : "s"}`;
96
96
  }
97
97
 
98
98
  export function formatUsage(usage: Partial<UsageStats>, model?: string): string {