pi-agent-flow 0.2.3 → 0.2.5
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/render.ts +4 -4
package/package.json
CHANGED
package/render.ts
CHANGED
|
@@ -229,7 +229,7 @@ function renderFlowCollapsed(
|
|
|
229
229
|
): Text {
|
|
230
230
|
const stats = formatCompactStats(r.usage, r.model);
|
|
231
231
|
const typeName = formatFlowTypeName(r.type);
|
|
232
|
-
let text = `${theme.
|
|
232
|
+
let text = `${theme.fg("accent", theme.bold(typeName))} ${theme.fg("dim", "─")} ${theme.fg("dim", stats)}`;
|
|
233
233
|
if (error && r.stopReason) text += ` ${theme.fg("error", `[${r.stopReason}]`)}`;
|
|
234
234
|
|
|
235
235
|
// DIR: line (intent/objective)
|
|
@@ -241,7 +241,7 @@ function renderFlowCollapsed(
|
|
|
241
241
|
const lastTool = getLastToolCall(r.messages);
|
|
242
242
|
if (lastTool) {
|
|
243
243
|
const exeStr = formatFlowToolCall(lastTool.name, lastTool.args, theme.fg.bind(theme));
|
|
244
|
-
text += `\n${theme.fg("dim", "├─ EXE:")} ${exeStr}`;
|
|
244
|
+
text += `\n${theme.fg("dim", "├─ EXE:")} ${truncateChars(exeStr, 50)}`;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
// LOG: line (last assistant text or streaming)
|
|
@@ -358,7 +358,7 @@ function renderActivityPanel(
|
|
|
358
358
|
|
|
359
359
|
// Header line
|
|
360
360
|
const headerPrefix = isLast ? "└─" : "├─";
|
|
361
|
-
let headerLine = `${theme.fg("dim", headerPrefix)} ${theme.
|
|
361
|
+
let headerLine = `${theme.fg("dim", headerPrefix)} ${theme.fg("accent", theme.bold(typeName))} ${theme.fg("dim", "─")} ${theme.fg("dim", stats)}`;
|
|
362
362
|
if (error && r.stopReason) {
|
|
363
363
|
headerLine += ` ${theme.fg("error", `[${r.stopReason}]`)}`;
|
|
364
364
|
}
|
|
@@ -376,7 +376,7 @@ function renderActivityPanel(
|
|
|
376
376
|
const lastTool = getLastToolCall(r.messages);
|
|
377
377
|
if (lastTool) {
|
|
378
378
|
const exeStr = formatFlowToolCall(lastTool.name, lastTool.args, theme.fg.bind(theme));
|
|
379
|
-
container.addChild(new Text(`${theme.fg("dim", indent + "├─ EXE:")} ${exeStr}`, 0, 0));
|
|
379
|
+
container.addChild(new Text(`${theme.fg("dim", indent + "├─ EXE:")} ${truncateChars(exeStr, 50)}`, 0, 0));
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
// LOG: line (last assistant text)
|