@mediadatafusion/pi-workflow-suite 0.0.19 → 0.0.21
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 +22 -0
- package/README.md +37 -20
- package/VERSION +1 -1
- package/config/prompts/mission-repair.md +1 -0
- package/config/prompts/mission-run.md +1 -0
- package/extensions/workflow-model-router.ts +2 -1
- package/extensions/workflow-modes.ts +1101 -253
- package/extensions/workflow-shortcuts.ts +114 -0
- package/extensions/workflow-state.ts +20 -0
- package/extensions/workflow-subagent-policy.ts +236 -3
- package/package.json +1 -1
- package/scripts/verify-live.sh +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable public releases will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.0.21] - 2026-06-13
|
|
6
|
+
|
|
7
|
+
### Hardened
|
|
8
|
+
|
|
9
|
+
- Hardened Mission Mode clarification and execution handoff behavior.
|
|
10
|
+
- Hardened sub-agent policy handling across workflow phases.
|
|
11
|
+
- Refined forced sub-agent exceptions and validation handoff timing.
|
|
12
|
+
- Refined Mission validation repair routing for safer continued progress.
|
|
13
|
+
- Hardened project-aware Plan/Mission resume selection.
|
|
14
|
+
- Hardened Plan Mode continuation behavior for multi-step plans.
|
|
15
|
+
|
|
16
|
+
## [0.0.20] - 2026-06-12
|
|
17
|
+
|
|
18
|
+
### Improved
|
|
19
|
+
|
|
20
|
+
- Added platform-aware Workflow Suite shortcuts so macOS keeps the existing `Ctrl+Shift` shortcuts while Windows and Linux use function-key shortcuts for Standard, Plan, Mission, widget, and preset controls.
|
|
21
|
+
- Updated inline shortcut hints, widget documentation, and package README output so Windows and Linux users see shortcuts that match the active platform profile.
|
|
22
|
+
|
|
23
|
+
### Hardened
|
|
24
|
+
|
|
25
|
+
- Added regression coverage that keeps shortcut registration, inline hints, README examples, and fallback commands aligned with the centralized shortcut registry.
|
|
26
|
+
|
|
5
27
|
## [0.0.19] - 2026-06-10
|
|
6
28
|
|
|
7
29
|
### Improved
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](#installation) [](#quick-start) [](#core-commands) [](#settings-reference)
|
|
6
6
|
|
|
7
|
-
**Workflow Suite Version:** `v0.0.
|
|
7
|
+
**Workflow Suite Version:** `v0.0.21`
|
|
8
8
|
|
|
9
9
|
## Overview
|
|
10
10
|
|
|
@@ -123,7 +123,7 @@ Pi Workflow Suite turns Pi into a guided workflow environment:
|
|
|
123
123
|
| Token Budgets | Optional per-mode token and runtime caps (`maxTokens`, `maxRuntimeHours`) for Plan, Mission, and Standard Mode. Off by default (unlimited). When enabled, Workflow Suite tracks cumulative usage and blocks further agent turns when the budget is exceeded. |
|
|
124
124
|
| Workflow Roles | Planner, Executor, Reviewer, Validator, Mission, and compaction responsibilities are separated by phase so each job has clear boundaries and can be matched to the right model. |
|
|
125
125
|
| Model Selection | Configure which provider/model and thinking level powers each workflow role, with shared defaults plus Standard-specific and Mission-specific overrides for simpler or higher-rigor setups. |
|
|
126
|
-
| Presets | Built-in and custom workflow profiles with selector commands and
|
|
126
|
+
| Presets | Built-in and custom workflow profiles with selector commands and platform-aware cycling shortcuts while active modes are running: macOS `Ctrl+Shift+U`, Windows/Linux `F4`. |
|
|
127
127
|
| Settings | Interactive grouped settings UI plus direct commands for Standard, Plan, Mission, model selection, sub-agents, widgets, compaction, themes, and safety. |
|
|
128
128
|
| Sub-agents And Skills | Bundled workflow agents and skills for discovery, planning, safe execution, validation, git-safe summaries, and project-rule audits, with clear capability boundaries. |
|
|
129
129
|
| Widgets And Status | Mode-aware top/bottom widgets, editor hints, shortcut controls, progress display, runtime summaries, and current-setting visibility. |
|
|
@@ -132,9 +132,9 @@ Pi Workflow Suite turns Pi into a guided workflow environment:
|
|
|
132
132
|
## Feature Overview
|
|
133
133
|
|
|
134
134
|
- Idle Mode as the default management state when no Standard, Plan, or Mission workflow is active.
|
|
135
|
-
- Standard Mode through `/standard` and `Ctrl+Shift+S
|
|
136
|
-
- Plan Mode through `/p
|
|
137
|
-
- Mission Mode through `/mission`, `/m`, and `Ctrl+Shift+M
|
|
135
|
+
- Standard Mode through `/standard` and the platform shortcut: macOS `Ctrl+Shift+S`, Windows/Linux `F6`.
|
|
136
|
+
- Plan Mode through `/p`, `/plan`, and the platform shortcut: macOS `Ctrl+Shift+L`, Windows/Linux `F7`.
|
|
137
|
+
- Mission Mode through `/mission`, `/m`, and the platform shortcut: macOS `Ctrl+Shift+M`, Windows/Linux `F8`.
|
|
138
138
|
- Configurable clarification in Standard Mode, plus dynamic clarification in Plan Mode and Mission Mode.
|
|
139
139
|
- Review, execution, validation, repair, retry, checkpoint, and final-validation controls where the selected mode supports them.
|
|
140
140
|
- Plan history, mission checkpoint history, Standard runtime tracking, and Mission runtime tracking.
|
|
@@ -214,7 +214,7 @@ Configurable clarification:
|
|
|
214
214
|
|
|
215
215
|
Core behavior:
|
|
216
216
|
|
|
217
|
-
- `/standard`
|
|
217
|
+
- `/standard` enters Standard Mode. The platform shortcut is macOS `Ctrl+Shift+S`, Windows/Linux `F6`.
|
|
218
218
|
- `/standard <task>` enters Standard Mode and starts that task.
|
|
219
219
|
- `/standard status` shows active Standard settings, latest auto-check decisions, and To Do progress.
|
|
220
220
|
- `/standard todo` shows dynamic To Do tracking.
|
|
@@ -598,7 +598,8 @@ Quick access:
|
|
|
598
598
|
|
|
599
599
|
```text
|
|
600
600
|
/workflow presets # open preset selector
|
|
601
|
-
Ctrl+Shift+U
|
|
601
|
+
macOS: Ctrl+Shift+U # cycle presets while Standard/Plan/Mission Mode is active
|
|
602
|
+
Windows/Linux: F4 # cycle presets while Standard/Plan/Mission Mode is active
|
|
602
603
|
/workflow presets list
|
|
603
604
|
/workflow presets apply <name>
|
|
604
605
|
/workflow presets next
|
|
@@ -610,7 +611,9 @@ Ctrl+Shift+U # cycle presets while Standard/Plan/Mission Mode
|
|
|
610
611
|
/workflow presets delete <name>
|
|
611
612
|
```
|
|
612
613
|
|
|
613
|
-
The inline editor hints stay mode-specific and avoid idle clutter. By default, active workflows display compact, human-readable shortcuts
|
|
614
|
+
The inline editor hints stay mode-specific and avoid idle clutter. By default, active workflows display compact, human-readable shortcuts for the active platform.
|
|
615
|
+
|
|
616
|
+
macOS examples:
|
|
614
617
|
|
|
615
618
|
```text
|
|
616
619
|
Idle: Standard:Ctrl+Shift+S Plan:Ctrl+Shift+L Mission:Ctrl+Shift+M
|
|
@@ -619,7 +622,16 @@ Standard: Widgets:Ctrl+Shift+T/B Preset:deep Ctrl+Shift+U Plan:Ctrl+Shift+L Miss
|
|
|
619
622
|
Mission: Widgets:Ctrl+Shift+T/B Preset:deep Ctrl+Shift+U Standard:Ctrl+Shift+S Plan:Ctrl+Shift+L
|
|
620
623
|
```
|
|
621
624
|
|
|
622
|
-
|
|
625
|
+
Windows and Linux examples:
|
|
626
|
+
|
|
627
|
+
```text
|
|
628
|
+
Idle: Standard:F6 Plan:F7 Mission:F8
|
|
629
|
+
Plan: Widgets:F2/F3 Preset:deep F4 Standard:F6 Mission:F8
|
|
630
|
+
Standard: Widgets:F2/F3 Preset:deep F4 Plan:F7 Mission:F8
|
|
631
|
+
Mission: Widgets:F2/F3 Preset:deep F4 Standard:F6 Plan:F7
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
Cross-switching is enabled by default. On macOS, `Ctrl+Shift+S` toggles Standard Mode, `Ctrl+Shift+M` from Plan Mode enters Mission Mode, and `Ctrl+Shift+L` from Mission Mode enters Plan Mode. On Windows and Linux, the matching shortcuts are `F6`, `F8`, and `F7`.
|
|
623
635
|
|
|
624
636
|
Human-friendly names are normalized for command use. For example, creating `Joe simple preset` saves it as `joe-simple-preset`, then lists the exact command to apply it. Custom presets can include Standard Mode To Do/clarification settings as well as shared Plan, Mission, sub-agent, workflow, and UI settings.
|
|
625
637
|
|
|
@@ -650,13 +662,18 @@ Depending on the active mode and settings, widgets can show:
|
|
|
650
662
|
- active preset and shortcut hints,
|
|
651
663
|
- sub-agent activity when worker orchestration is active.
|
|
652
664
|
|
|
653
|
-
|
|
665
|
+
Workflow shortcuts are platform-aware. The macOS shortcuts preserve the original Workflow Suite behavior. Windows and Linux use function-key shortcuts because common terminal hosts may not reliably deliver `Ctrl+Shift+letter` chords to Pi.
|
|
654
666
|
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
Ctrl+Shift+
|
|
658
|
-
Ctrl+Shift+
|
|
659
|
-
|
|
667
|
+
| Action | macOS | Windows | Linux / WSL | Fallback command |
|
|
668
|
+
|---|---:|---:|---:|---|
|
|
669
|
+
| Toggle Standard Mode | `Ctrl+Shift+S` | `F6` | `F6` | `/standard` |
|
|
670
|
+
| Enter Plan Mode | `Ctrl+Shift+L` | `F7` | `F7` | `/plan` |
|
|
671
|
+
| Toggle Mission Mode | `Ctrl+Shift+M` | `F8` | `F8` | `/mission` |
|
|
672
|
+
| Toggle active workflow top widget | `Ctrl+Shift+T` | `F2` | `F2` | `/workflow widgets toggle top` |
|
|
673
|
+
| Toggle active workflow bottom widget | `Ctrl+Shift+B` | `F3` | `F3` | `/workflow widgets toggle bottom` |
|
|
674
|
+
| Cycle workflow presets while Standard, Plan, or Mission Mode is active | `Ctrl+Shift+U` | `F4` | `F4` | `/workflow presets next` |
|
|
675
|
+
|
|
676
|
+
The inline editor hints use the active platform profile. A Windows or Linux user should not see macOS-only `Ctrl+Shift+letter` hints for Workflow Suite actions.
|
|
660
677
|
|
|
661
678
|
Widget commands:
|
|
662
679
|
|
|
@@ -1038,8 +1055,8 @@ pi install -l npm:@mediadatafusion/pi-workflow-suite
|
|
|
1038
1055
|
### Installing specific versions
|
|
1039
1056
|
|
|
1040
1057
|
```bash
|
|
1041
|
-
pi install npm:@mediadatafusion/pi-workflow-suite@0.0.
|
|
1042
|
-
pi install -l npm:@mediadatafusion/pi-workflow-suite@0.0.
|
|
1058
|
+
pi install npm:@mediadatafusion/pi-workflow-suite@0.0.21
|
|
1059
|
+
pi install -l npm:@mediadatafusion/pi-workflow-suite@0.0.21
|
|
1043
1060
|
```
|
|
1044
1061
|
|
|
1045
1062
|
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>`.
|
|
@@ -1245,10 +1262,10 @@ See `docs/TROUBLESHOOTING.md` for detailed diagnostics.
|
|
|
1245
1262
|
|
|
1246
1263
|
## Versioning
|
|
1247
1264
|
|
|
1248
|
-
The current preparation version is `v0.0.
|
|
1265
|
+
The current preparation version is `v0.0.21`. Version information is intentionally aligned across:
|
|
1249
1266
|
|
|
1250
|
-
- `VERSION` (`v0.0.
|
|
1251
|
-
- `package.json` (`0.0.
|
|
1267
|
+
- `VERSION` (`v0.0.21`),
|
|
1268
|
+
- `package.json` (`0.0.21`),
|
|
1252
1269
|
- `package-lock.json`,
|
|
1253
1270
|
- this README,
|
|
1254
1271
|
- Workflow Suite settings/about output.
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v0.0.
|
|
1
|
+
v0.0.21
|
|
@@ -5,6 +5,7 @@ MANDATORY STRUCTURED HANDOFF: call workflow_repair_result before final response
|
|
|
5
5
|
You are PI MISSION MODE REPAIR EXECUTOR.
|
|
6
6
|
|
|
7
7
|
Repair concrete validator-identified failures for the current mission milestone and keep going while fixes are in-scope and non-destructive. Do not re-grade validation; only Mission validation can pass repaired work.
|
|
8
|
+
Do not call `workflow_progress` in Mission Mode. Mission repair completion is tracked only by `workflow_repair_result`.
|
|
8
9
|
|
|
9
10
|
Rules:
|
|
10
11
|
- Only fix concrete issues directly related to the failed milestone validation.
|
|
@@ -5,6 +5,7 @@ MANDATORY STRUCTURED HANDOFF: call mission_milestone_result before final respons
|
|
|
5
5
|
You are PI MISSION MODE EXECUTOR.
|
|
6
6
|
|
|
7
7
|
Run only the approved current mission milestone. Do not continue to later milestones unless Mission Mode explicitly starts the next milestone.
|
|
8
|
+
Do not call `workflow_progress` in Mission Mode. Mission milestone progress is tracked only by `mission_milestone_result`.
|
|
8
9
|
|
|
9
10
|
Milestone loop expectation:
|
|
10
11
|
1. Restate the current mission and milestone.
|
|
@@ -2,6 +2,7 @@ import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "
|
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { getAgentDir, type ExtensionAPI, type ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
5
|
+
import { workflowPresetCycleShortcutLabel } from "./workflow-shortcuts.js";
|
|
5
6
|
|
|
6
7
|
export type WorkflowRole = "planner" | "executor" | "validator" | "reviewer";
|
|
7
8
|
export type MissionModelRole = WorkflowRole;
|
|
@@ -1224,7 +1225,7 @@ export function renderWorkflowPresets(settings: WorkflowSettings = loadGlobalSet
|
|
|
1224
1225
|
const active = settings.presets?.activePreset ?? WORKFLOW_CUSTOM_PRESET_MARKER;
|
|
1225
1226
|
const names = workflowPresetNames(settings);
|
|
1226
1227
|
const cards = [renderWorkflowPresetCard(WORKFLOW_CUSTOM_PRESET_MARKER, undefined, active === WORKFLOW_CUSTOM_PRESET_MARKER), ...names.map((name) => renderWorkflowPresetCard(name, catalog[name], name === active))];
|
|
1227
|
-
return `# Workflow Presets\n\nActive Preset: ${activeWorkflowPresetLabel(settings)}\nShortcut:
|
|
1228
|
+
return `# Workflow Presets\n\nActive Preset: ${activeWorkflowPresetLabel(settings)}\nShortcut: ${workflowPresetCycleShortcutLabel()} cycles saved presets while Plan/Mission/Standard Mode is active\nSelector: /workflow presets\n\n${cards.join("\n\n") || "No presets available."}\n\nQuick commands:\n- /workflow presets list\n- /workflow presets apply <name>\n- /workflow presets next\n- /workflow presets prev\n- /workflow presets save <name>\n- /workflow presets create <name> from simple|standard|deep|maximum\n- /workflow presets edit <name>\n- /workflow presets rename <old> to <new>\n- /workflow presets delete <name>\n\nBuilt-in presets are package-defined and sync with the extension. User-named custom presets are saved entries in workflow-settings.json and stay in hotkey cycling. The reserved custom marker only means no built-in or user-named preset is active. Extension updates preserve workflow-settings.json and do not overwrite custom presets. Presets adjust workflow behavior only and preserve model/provider choices, API keys, auth/session files, runtime workflow state, and shared compaction settings.`;
|
|
1228
1229
|
}
|
|
1229
1230
|
|
|
1230
1231
|
export function applyWorkflowPreset(cwd: string, requestedScope: WorkflowSettingsScope | undefined, name: string): SettingsWriteResult {
|