@mediadatafusion/pi-workflow-suite 0.0.21 → 0.0.22

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable public releases will be documented in this file.
4
4
 
5
+ ## [0.0.22] - 2026-06-14
6
+
7
+ ### Improved
8
+
9
+ - Refined Standard Mode sub-agent worker bucket handling.
10
+ - Refreshed Plan Mode README commands and recovery notes.
11
+
5
12
  ## [0.0.21] - 2026-06-13
6
13
 
7
14
  ### Hardened
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![Install](https://cdn.jsdelivr.net/npm/@mediadatafusion/pi-workflow-suite@0.0.12/docs/assets/readme-link-install.svg)](#installation) [![Quick Start](https://cdn.jsdelivr.net/npm/@mediadatafusion/pi-workflow-suite@0.0.12/docs/assets/readme-link-quick-start.svg)](#quick-start) [![Commands](https://cdn.jsdelivr.net/npm/@mediadatafusion/pi-workflow-suite@0.0.12/docs/assets/readme-link-commands.svg)](#core-commands) [![Settings](https://cdn.jsdelivr.net/npm/@mediadatafusion/pi-workflow-suite@0.0.12/docs/assets/readme-link-settings.svg)](#settings-reference)
6
6
 
7
- **Workflow Suite Version:** `v0.0.21`
7
+ **Workflow Suite Version:** `v0.0.22`
8
8
 
9
9
  ## Overview
10
10
 
@@ -246,36 +246,63 @@ The reviewer is a pre-execution second opinion on the approved plan and risk pro
246
246
 
247
247
  Core behavior:
248
248
 
249
- - Plain `/p` enters Plan Mode and waits for your next message.
250
- - `/p <task>` starts planning immediately.
251
- - `/plan <task>` provides the same workflow through the full command name.
249
+ - Plain `/p` or `/plan` enters Plan Mode and waits for your next message.
250
+ - `/p <task>` or `/plan <task>` starts planning immediately.
252
251
  - The planner must choose either `PLAN_DECISION: clarify` or `PLAN_DECISION: plan`.
253
252
  - Clarification questions are generated from the actual task, not static boilerplate.
254
- - Execution is approval-gated.
255
- - Execution must follow the approved plan only.
253
+ - Execution is approval-gated and must follow the approved plan only.
254
+ - Plan execution tracks approved steps through `workflow_progress`.
255
+ - Review is a pre-execution second opinion when enabled.
256
256
  - Validation is read-only and reports PASS, PARTIAL PASS, FAIL, or UNKNOWN.
257
- - Plan history can save draft, revised, and approved plans.
257
+ - Repair, retry, and revalidation recover failed or partial validation when safe.
258
+ - Plan history saves draft, revised, approved, completed, and archived plan records.
259
+ - `/plan resume` or `/p resume` restores current or recoverable Plan state and shows the next action or resume menu; it does not auto-run workflow gates.
260
+ - `/plan continue` or `/p continue` advances the current or recovered Plan through the next configured gate, such as review, execution, validation, repair, or final completion.
258
261
 
259
262
  Common commands:
260
263
 
261
264
  ```text
265
+ Entry and status:
262
266
  /p
267
+ /plan
263
268
  /p <task>
269
+ /plan <task>
264
270
  /p status
271
+ /plan status
272
+
273
+ Approval and revision:
265
274
  /p approve
266
- /p revise <feedback>
267
- /p cancel
268
- /plan
269
- /plan <task>
270
275
  /plan approve
276
+ /p revise <feedback>
271
277
  /plan revise <feedback>
272
- /plan cancel
278
+
279
+ Resume and continuation:
280
+ /p resume
281
+ /plan resume
282
+ /p continue
283
+ /plan continue
284
+
285
+ Validation repair:
286
+ /p repair
287
+ /plan repair
288
+ /p retry
289
+ /plan retry
290
+ /p revalidate
291
+ /plan revalidate
292
+
293
+ Clarification, execution, and history:
273
294
  /clarify questions
274
295
  /clarify answer 1A 2C
275
296
  /execute
276
297
  /validate
277
298
  /workflow plans list
278
299
  /workflow plans list latest
300
+ /workflow plans list <id>
301
+ /workflow plans cleanup [limit]
302
+
303
+ Exit:
304
+ /p cancel
305
+ /plan cancel
279
306
  ```
280
307
 
281
308
  ## Mission Mode
@@ -977,6 +1004,11 @@ Plan history can persist workflow plans under Pi runtime state. Saved plans incl
977
1004
  - clarification questions and answers,
978
1005
  - final plan,
979
1006
  - approval status,
1007
+ - execution summary and final report,
1008
+ - reviewer report and review history,
1009
+ - validation verdict and validation report,
1010
+ - repair status, repair attempt, and repair history,
1011
+ - progress and runtime snapshot,
980
1012
  - model role usage,
981
1013
  - sub-agent metadata,
982
1014
  - save reason.
@@ -1055,8 +1087,8 @@ pi install -l npm:@mediadatafusion/pi-workflow-suite
1055
1087
  ### Installing specific versions
1056
1088
 
1057
1089
  ```bash
1058
- pi install npm:@mediadatafusion/pi-workflow-suite@0.0.21
1059
- pi install -l npm:@mediadatafusion/pi-workflow-suite@0.0.21
1090
+ pi install npm:@mediadatafusion/pi-workflow-suite@0.0.22
1091
+ pi install -l npm:@mediadatafusion/pi-workflow-suite@0.0.22
1060
1092
  ```
1061
1093
 
1062
1094
  An unversioned install follows normal update behavior: `pi update` and `pi update --extensions` will pick up new package releases. A versioned install pins the package to that version. Pinned package specs are intentionally skipped by Pi's normal package update commands. To move a pinned install to a newer version, reinstall with the desired version. To switch back to latest tracking, use the unversioned install command without `@<version>`.
@@ -1140,6 +1172,8 @@ Choose Mission Mode when you want milestone-based, resumable work:
1140
1172
  | `/workflow status` | List current workflow, Standard, Plan, and Mission state. |
1141
1173
  | `/standard` | Enter Standard Mode for direct active work. |
1142
1174
  | `/p` / `/plan` | Plan a task before editing. |
1175
+ | `/plan resume` | Restore current or recoverable Plan state and show the next action. |
1176
+ | `/plan continue` | Continue an approved or recovered Plan through the next configured gate. |
1143
1177
  | `/clarify` | Answer Plan Mode clarification questions. |
1144
1178
  | `/execute` | Run an approved plan. |
1145
1179
  | `/validate` | Validate implementation against the approved plan. |
@@ -1262,10 +1296,10 @@ See `docs/TROUBLESHOOTING.md` for detailed diagnostics.
1262
1296
 
1263
1297
  ## Versioning
1264
1298
 
1265
- The current preparation version is `v0.0.21`. Version information is intentionally aligned across:
1299
+ The current preparation version is `v0.0.22`. Version information is intentionally aligned across:
1266
1300
 
1267
- - `VERSION` (`v0.0.21`),
1268
- - `package.json` (`0.0.21`),
1301
+ - `VERSION` (`v0.0.22`),
1302
+ - `package.json` (`0.0.22`),
1269
1303
  - `package-lock.json`,
1270
1304
  - this README,
1271
1305
  - Workflow Suite settings/about output.
package/VERSION CHANGED
@@ -1 +1 @@
1
- v0.0.21
1
+ v0.0.22
@@ -4920,7 +4920,7 @@ function standardPrompt(state: WorkflowState, settings: ReturnType<typeof loadWo
4920
4920
  const todoMode = standardTodoMode(settings);
4921
4921
  const standardModelRole = effectiveStandardModelRole(settings);
4922
4922
  const standardSubagentPolicyBlock = standardSubagentsAllowed(settings)
4923
- ? `Standard sub-agent policy:\n- active phase: ${state.standardActivePhase ?? "Planning"}${state.standardWorkKind ? ` (${state.standardWorkKind})` : ""}\n- agentScope: ${settings.standard.subagentScope ?? "user"}\n- planning/research: ${activeWorkerTargetLabel(standardPhasePolicy(settings, "Planning"), standardWorkerCount(settings, "Planning"))}\n- execution: ${activeWorkerTargetLabel(standardPhasePolicy(settings, "Execution"), standardWorkerCount(settings, "Execution"))}\n- repair: ${activeWorkerTargetLabel(standardPhasePolicy(settings, "Repair"), standardWorkerCount(settings, "Repair"))}\n- review: ${activeWorkerTargetLabel(standardPhasePolicy(settings, "Review"), standardWorkerCount(settings, "Review"))}\n- validation: ${activeWorkerTargetLabel(standardPhasePolicy(settings, "Validation"), standardWorkerCount(settings, "Validation"))}\nUse any configured package, user, or project agent that fits the task. When calling subagent in Standard Mode, pass agentScope=${settings.standard.subagentScope ?? "user"} and workflowPhase=planning, execution, repair, review, or validation. Do not launch execution sub-agents merely for read-only summaries, status updates, action-item reports, or docs/repo inspection; use execution sub-agents only before actual mutation or execution-class bash. If the active Standard phase is execution or repair and that phase policy is forced, satisfy the required sub-agent usage before edit/write/unsafe bash.`
4923
+ ? `Standard sub-agent policy:\n- current worker bucket: ${state.standardActivePhase ?? "Planning"}${state.standardWorkKind ? ` (${state.standardWorkKind})` : ""}\n- agentScope: ${settings.standard.subagentScope ?? "user"}\n- planning/research: ${activeWorkerTargetLabel(standardPhasePolicy(settings, "Planning"), standardWorkerCount(settings, "Planning"))}\n- execution: ${activeWorkerTargetLabel(standardPhasePolicy(settings, "Execution"), standardWorkerCount(settings, "Execution"))}\n- repair: ${activeWorkerTargetLabel(standardPhasePolicy(settings, "Repair"), standardWorkerCount(settings, "Repair"))}\n- review: ${activeWorkerTargetLabel(standardPhasePolicy(settings, "Review"), standardWorkerCount(settings, "Review"))}\n- validation: ${activeWorkerTargetLabel(standardPhasePolicy(settings, "Validation"), standardWorkerCount(settings, "Validation"))}\nUse any configured package, user, or project agent that fits the task. When calling subagent in Standard Mode, pass agentScope=${settings.standard.subagentScope ?? "user"} and workflowPhase=planning, execution, repair, review, or validation. These workflowPhase labels are Standard worker buckets only; they do not move Standard into Plan/Mission review or validation UI. Do not launch execution sub-agents merely for read-only summaries, status updates, action-item reports, or docs/repo inspection; use execution sub-agents only before actual mutation or execution-class bash. If the active Standard worker bucket is execution or repair and that bucket policy is forced, satisfy the required sub-agent usage before edit/write/unsafe bash.`
4924
4924
  : "Standard Mode sub-agent delegation is disabled by settings.";
4925
4925
  const standardSubagentDecisionInstruction = standardSubagentsAllowed(settings)
4926
4926
  ? "For Standard auto/deep/maximum sub-agent policies, internally decide delegate or skip. Delegate for non-trivial parallelizable research, validation, repair, or implementation prep. Skip for trivial read-only/status work or when no useful parallel worker exists. Do not print internal sub-agent policy deliberation; if no worker runs, give only a concise user-facing skip reason when a Sub-Agent Usage Summary is naturally relevant."
@@ -16804,6 +16804,7 @@ Pi Version: v${VERSION}
16804
16804
  if (standardForcedSubagentSafeBash(command)) return;
16805
16805
  }
16806
16806
  if (event.toolName === "edit" || event.toolName === "write" || event.toolName === "bash") phase = "Execution";
16807
+ else if (event.toolName === "subagent" && isRecord(event.input)) phase = parseSubagentWorkflowPhase(event.input.workflowPhase) ?? phase;
16807
16808
  }
16808
16809
  if (event.toolName === WORKFLOW_EXECUTION_RESULT_TOOL || event.toolName === MISSION_MILESTONE_RESULT_TOOL) phase = "Execution";
16809
16810
  if (event.toolName === WORKFLOW_REPAIR_RESULT_TOOL) phase = "Repair";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediadatafusion/pi-workflow-suite",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "Multi-agent workflow suite for Pi with Idle, Standard, Plan, Mission, approval gates, reviewer/validator roles, sub-agents, model routing, web search/fetch, browser checks, diagrams, compaction, presets, settings, themes, widgets, and Repo Lock.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {