pi-agent-flow 0.4.4 → 0.4.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/index.ts +6 -20
- package/package.json +1 -1
- package/render-utils.ts +1 -1
package/index.ts
CHANGED
|
@@ -400,27 +400,13 @@ flow [type] accomplished
|
|
|
400
400
|
name: "flow",
|
|
401
401
|
label: "Flow",
|
|
402
402
|
description: [
|
|
403
|
-
"
|
|
404
|
-
"
|
|
405
|
-
"All flows run in parallel — batch independent tasks into one call.",
|
|
403
|
+
"If you cannot answer from your current context, you are forbidden from guessing.",
|
|
404
|
+
"You MUST enter to the following flow states, with tool call method.",
|
|
406
405
|
"",
|
|
407
|
-
|
|
408
|
-
"",
|
|
409
|
-
"
|
|
410
|
-
"
|
|
411
|
-
"\u2022 debug \u2014 Root-cause analysis, investigate errors and stack traces",
|
|
412
|
-
"\u2022 code \u2014 Implementation, tests, builds, deploy, git commit",
|
|
413
|
-
"\u2022 architect \u2014 Structural design, planning before building",
|
|
414
|
-
"\u2022 review \u2014 Read-only audit for security, quality, correctness",
|
|
415
|
-
"\u2022 brainstorm \u2014 Fresh ideas from a clean slate (no inherited context)",
|
|
416
|
-
"",
|
|
417
|
-
"Custom flows can be defined as .md files in .pi/agents/ (project)",
|
|
418
|
-
"or ~/.pi/agent/agents/ (user). They override bundled flows by name.",
|
|
419
|
-
"",
|
|
420
|
-
"Each flow returns: [Summary], [Done], [Not Done], [Next Steps]",
|
|
421
|
-
"",
|
|
422
|
-
"Guards: Max delegation depth and cycle prevention are enforced.",
|
|
423
|
-
"Blocked flows return an error with the reason.",
|
|
406
|
+
"Flow states are isolated \u03c0 processes with forked session snapshots. They run in parallel.",
|
|
407
|
+
'Invoke: { "flow": [{ "type": "explore", "intent": "..." }, ...] }',
|
|
408
|
+
"States: explore (tanken), debug (kensh\u014d), code (shokunin), architect (keikaku), review (kanshi), brainstorm (mushin).",
|
|
409
|
+
"Custom states configs in (create if not exists): .md files in .pi/agents/ or ~/.pi/agent/agents/.",
|
|
424
410
|
].join("\n"),
|
|
425
411
|
parameters: FlowParams,
|
|
426
412
|
|
package/package.json
CHANGED
package/render-utils.ts
CHANGED
|
@@ -88,7 +88,7 @@ export function getTruncationBudget(prefixLength: number): number {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
/** Fixed content budget for collapsed-line text (dir/exe/log). */
|
|
91
|
-
export const CONTENT_MAX =
|
|
91
|
+
export const CONTENT_MAX = 60;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* Compute how many visible chars of content fit after a prefix,
|