pi-ultracode 0.10.0 → 0.10.1
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/workflow/tool.ts +9 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-ultracode",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Adaptive semantic-depth workflow orchestration for Pi, with focused, standard, and deep modes, isolated subagents, worktree delivery, structured output, and durable resume.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
package/src/workflow/tool.ts
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
WORKFLOW_PROMPT_SNIPPET,
|
|
15
15
|
WORKFLOW_TOOL_DESCRIPTION,
|
|
16
16
|
} from "../prompts.ts";
|
|
17
|
-
import { redactCommand, safeDisplayText } from "./display-text.ts";
|
|
17
|
+
import { DISPLAY_INPUT_LIMIT, redactCommand, safeDisplayText, safeTranscriptText } from "./display-text.ts";
|
|
18
18
|
import { parseWorkflowScript, normalizeScript } from "./parser.ts";
|
|
19
19
|
import {
|
|
20
20
|
ABSOLUTE_MAX_AGENTS,
|
|
@@ -603,8 +603,14 @@ export function createWorkflowTool(deps: WorkflowToolDeps = {}): ToolDefinition<
|
|
|
603
603
|
signal?.removeEventListener("abort", onOuterAbort);
|
|
604
604
|
}
|
|
605
605
|
},
|
|
606
|
-
renderCall(
|
|
607
|
-
|
|
606
|
+
renderCall(args, theme) {
|
|
607
|
+
const title = theme.fg("toolTitle", theme.bold("workflow"));
|
|
608
|
+
// Arguments arrive incrementally; display source without parsing incomplete JavaScript.
|
|
609
|
+
if (typeof args.script === "string" && args.script.length > 0) {
|
|
610
|
+
return new Text(`${title}\n${theme.fg("toolOutput", safeTranscriptText(args.script, DISPLAY_INPUT_LIMIT))}`, 0, 0);
|
|
611
|
+
}
|
|
612
|
+
const source = args.scriptPath || args.name;
|
|
613
|
+
return new Text(source ? `${title} ${theme.fg("muted", safeDisplayText(source, 240))}` : title, 0, 0);
|
|
608
614
|
},
|
|
609
615
|
renderResult(result, { isPartial, expanded }, theme) {
|
|
610
616
|
const snapshot = result.details as WorkflowSnapshot | undefined;
|