@mediadatafusion/pi-workflow-suite 0.0.18 → 0.0.20
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 +18 -0
- package/README.md +85 -44
- package/VERSION +1 -1
- package/config/workflow-settings.example.json +1 -0
- package/extensions/workflow-model-router.ts +5 -1
- package/extensions/workflow-modes.ts +435 -244
- package/extensions/workflow-shortcuts.ts +114 -0
- package/package.json +1 -1
- package/scripts/verify-live.sh +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable public releases will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.0.20] - 2026-06-12
|
|
6
|
+
|
|
7
|
+
### Improved
|
|
8
|
+
|
|
9
|
+
- 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.
|
|
10
|
+
- Updated inline shortcut hints, widget documentation, and package README output so Windows and Linux users see shortcuts that match the active platform profile.
|
|
11
|
+
|
|
12
|
+
### Hardened
|
|
13
|
+
|
|
14
|
+
- Added regression coverage that keeps shortcut registration, inline hints, README examples, and fallback commands aligned with the centralized shortcut registry.
|
|
15
|
+
|
|
16
|
+
## [0.0.19] - 2026-06-10
|
|
17
|
+
|
|
18
|
+
### Improved
|
|
19
|
+
|
|
20
|
+
- Improved workflow widget and settings UI documentation.
|
|
21
|
+
- Refined editor hint readability controls.
|
|
22
|
+
|
|
5
23
|
## [0.0.18] - 2026-06-10
|
|
6
24
|
|
|
7
25
|
### 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.20`
|
|
8
8
|
|
|
9
9
|
## Overview
|
|
10
10
|
|
|
@@ -49,6 +49,7 @@ See Pi Workflow Suite in action: structured workflow modes, settings, runtime st
|
|
|
49
49
|
- [Workflow Roles And Model Selection](#workflow-roles-and-model-selection)
|
|
50
50
|
- [Workflow Settings UI](#workflow-settings-ui)
|
|
51
51
|
- [Workflow Presets](#workflow-presets)
|
|
52
|
+
- [Workflow Widgets And Editor Hints](#workflow-widgets-and-editor-hints)
|
|
52
53
|
- [Themes And UI](#themes-and-ui)
|
|
53
54
|
- [Sub-Agents And Parallel Work](#sub-agents-and-parallel-work)
|
|
54
55
|
- [Review, Validation, Repair, And Retry](#review-validation-repair-and-retry)
|
|
@@ -114,7 +115,7 @@ Pi Workflow Suite turns Pi into a guided workflow environment:
|
|
|
114
115
|
| Standard Mode | Direct active work with optional dynamic task-specific To Do tracking, configurable clarification, widgets, shared or Standard-specific model roles, presets, safety controls, and sub-agent orchestration. |
|
|
115
116
|
| Plan Mode | Approval-gated planning and execution where Planner, Reviewer, Executor, and Validator can each use the provider/model and thinking level that fits the phase. |
|
|
116
117
|
| Mission Mode | Long-running milestone workflows with approval, checkpoints, Mission-specific model overrides, validation gates, repair/retry, pause/resume, final-validation controls, and continuity tracking. |
|
|
117
|
-
| Themes And Startup UI | Workflow Suite themes, startup visual cards, startup logo modes, custom terminal logo text, custom brand cards,
|
|
118
|
+
| Themes And Startup UI | Workflow Suite themes, startup visual cards, startup logo modes, custom terminal logo text, custom brand cards, editor hint/status styling, widgets, and optional input border styling. |
|
|
118
119
|
| Interactive Diagrams | `workflow_diagram` Mermaid support with terminal preview, SVG-first clickable artifacts, PNG/runtime rendering support, dark-mode-friendly styling, and runtime artifact storage. |
|
|
119
120
|
| Web Research & Browser Verification | First-party `workflow_web_search`, `workflow_web_fetch`, and `workflow_browser_check` tools. Search and fetch for public web evidence with source URLs, blocked local/private/internal hosts, and time/size limits. Headless browser verification for runtime web app validation with interactive UI actions (click, type, read, screenshot, evaluate). |
|
|
120
121
|
| Repo Lock | Project-scoped Global Safety control that constrains normal file tools, bash path checks, and sub-agents to the active repository, with protected configuration paths and clear non-sandbox caveats. |
|
|
@@ -122,18 +123,18 @@ Pi Workflow Suite turns Pi into a guided workflow environment:
|
|
|
122
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. |
|
|
123
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. |
|
|
124
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. |
|
|
125
|
-
| 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`. |
|
|
126
127
|
| Settings | Interactive grouped settings UI plus direct commands for Standard, Plan, Mission, model selection, sub-agents, widgets, compaction, themes, and safety. |
|
|
127
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. |
|
|
128
|
-
| Widgets And Status | Mode-aware top/bottom widgets,
|
|
129
|
+
| Widgets And Status | Mode-aware top/bottom widgets, editor hints, shortcut controls, progress display, runtime summaries, and current-setting visibility. |
|
|
129
130
|
| Safety And Recovery | Phase-specific tool restrictions, destructive-command blocking, validation gates, install backup, live verification, audit, quarantine, sync, resume, and checkpoint tooling. |
|
|
130
131
|
|
|
131
132
|
## Feature Overview
|
|
132
133
|
|
|
133
134
|
- Idle Mode as the default management state when no Standard, Plan, or Mission workflow is active.
|
|
134
|
-
- Standard Mode through `/standard` and `Ctrl+Shift+S
|
|
135
|
-
- Plan Mode through `/p
|
|
136
|
-
- 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`.
|
|
137
138
|
- Configurable clarification in Standard Mode, plus dynamic clarification in Plan Mode and Mission Mode.
|
|
138
139
|
- Review, execution, validation, repair, retry, checkpoint, and final-validation controls where the selected mode supports them.
|
|
139
140
|
- Plan history, mission checkpoint history, Standard runtime tracking, and Mission runtime tracking.
|
|
@@ -153,7 +154,7 @@ Pi Workflow Suite turns Pi into a guided workflow environment:
|
|
|
153
154
|
|
|
154
155
|
Idle Mode is the default no-active-workflow state. It means there is no active Standard task, approved Plan execution, or Mission milestone running, but Workflow Suite still provides its management, inspection, and configuration surfaces.
|
|
155
156
|
|
|
156
|
-
Idle Mode is a first-class part of the Workflow Suite hierarchy. Users can inspect workflow status, open settings, change themes, preview startup visuals, review widget
|
|
157
|
+
Idle Mode is a first-class part of the Workflow Suite hierarchy. Users can inspect workflow status, open settings, change themes, preview startup visuals, review widget and editor hint behavior, inspect Repo Lock status through Global Safety settings, configure compaction, review installed workflow resources, and run safe runtime hygiene/status checks. Idle Mode is also where editor hints expose the primary entry points for Standard, Plan, and Mission.
|
|
157
158
|
|
|
158
159
|
Idle Mode is not a sandbox and does not imply Pi is unable to run commands. It only means Workflow Suite is not currently inside an active Standard, Plan, or Mission workflow. Repo Lock, tool guards, Pi permissions, and sub-agent configuration still determine what can run.
|
|
159
160
|
|
|
@@ -213,7 +214,7 @@ Configurable clarification:
|
|
|
213
214
|
|
|
214
215
|
Core behavior:
|
|
215
216
|
|
|
216
|
-
- `/standard`
|
|
217
|
+
- `/standard` enters Standard Mode. The platform shortcut is macOS `Ctrl+Shift+S`, Windows/Linux `F6`.
|
|
217
218
|
- `/standard <task>` enters Standard Mode and starts that task.
|
|
218
219
|
- `/standard status` shows active Standard settings, latest auto-check decisions, and To Do progress.
|
|
219
220
|
- `/standard todo` shows dynamic To Do tracking.
|
|
@@ -597,7 +598,8 @@ Quick access:
|
|
|
597
598
|
|
|
598
599
|
```text
|
|
599
600
|
/workflow presets # open preset selector
|
|
600
|
-
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
|
|
601
603
|
/workflow presets list
|
|
602
604
|
/workflow presets apply <name>
|
|
603
605
|
/workflow presets next
|
|
@@ -609,7 +611,9 @@ Ctrl+Shift+U # cycle presets from the footer/status line while
|
|
|
609
611
|
/workflow presets delete <name>
|
|
610
612
|
```
|
|
611
613
|
|
|
612
|
-
The
|
|
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:
|
|
613
617
|
|
|
614
618
|
```text
|
|
615
619
|
Idle: Standard:Ctrl+Shift+S Plan:Ctrl+Shift+L Mission:Ctrl+Shift+M
|
|
@@ -618,7 +622,16 @@ Standard: Widgets:Ctrl+Shift+T/B Preset:deep Ctrl+Shift+U Plan:Ctrl+Shift+L Miss
|
|
|
618
622
|
Mission: Widgets:Ctrl+Shift+T/B Preset:deep Ctrl+Shift+U Standard:Ctrl+Shift+S Plan:Ctrl+Shift+L
|
|
619
623
|
```
|
|
620
624
|
|
|
621
|
-
|
|
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`.
|
|
622
635
|
|
|
623
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.
|
|
624
637
|
|
|
@@ -631,9 +644,60 @@ Workflow Suite settings are separate from Pi core settings. Workflow Suite setti
|
|
|
631
644
|
|
|
632
645
|
Pi core settings use a different file pair: global `~/.pi/agent/settings.json` plus exact-current-directory project settings at `<cwd>/.pi/settings.json`. Pi core project settings do not walk parent directories. Use `./scripts/audit-settings.sh [target-cwd]` to report both scopes without printing secrets.
|
|
633
646
|
|
|
647
|
+
## Workflow Widgets And Editor Hints
|
|
648
|
+
|
|
649
|
+
Workflow widgets are one of the core Workflow Suite surfaces. Standard, Plan, and Mission Mode can show active workflow status directly in the terminal through mode-aware top and bottom widgets.
|
|
650
|
+
|
|
651
|
+
The top and bottom widgets are independent visibility surfaces. Users can show either one or both, and toggling a widget does not change the underlying workflow state. The widgets are designed to keep long-running work readable without requiring users to repeatedly ask for status.
|
|
652
|
+
|
|
653
|
+
Depending on the active mode and settings, widgets can show:
|
|
654
|
+
|
|
655
|
+
- active workflow mode and lifecycle state,
|
|
656
|
+
- current and next task, step, or milestone,
|
|
657
|
+
- segmented progress bars,
|
|
658
|
+
- Standard Mode To Do progress,
|
|
659
|
+
- Plan Mode approval, execution, validation, and repair state,
|
|
660
|
+
- Mission Mode milestone, checkpoint, validation, retry, and runtime state,
|
|
661
|
+
- selected model route and thinking level,
|
|
662
|
+
- active preset and shortcut hints,
|
|
663
|
+
- sub-agent activity when worker orchestration is active.
|
|
664
|
+
|
|
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.
|
|
666
|
+
|
|
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.
|
|
677
|
+
|
|
678
|
+
Widget commands:
|
|
679
|
+
|
|
680
|
+
```text
|
|
681
|
+
/workflow widgets status
|
|
682
|
+
/workflow widgets list
|
|
683
|
+
/workflow widgets configure
|
|
684
|
+
/workflow widgets toggle top
|
|
685
|
+
/workflow widgets toggle bottom
|
|
686
|
+
/workflow widgets on
|
|
687
|
+
/workflow widgets off
|
|
688
|
+
```
|
|
689
|
+
|
|
690
|
+
Editor hints are compact inline hints shown in the editor/input area. They can show entry shortcuts while idle and widget, preset, and mode-switch shortcuts while a workflow is active. Editor hints are configurable separately from the widget commands themselves, including visibility and contrast.
|
|
691
|
+
|
|
692
|
+
The interactive settings path is:
|
|
693
|
+
|
|
694
|
+
```text
|
|
695
|
+
/workflow settings UI Widgets
|
|
696
|
+
```
|
|
697
|
+
|
|
634
698
|
## Themes And UI
|
|
635
699
|
|
|
636
|
-
Workflow Suite themes control the palette used by Workflow Suite visual surfaces: status
|
|
700
|
+
Workflow Suite themes control the palette used by Workflow Suite visual surfaces: status text, editor hints, Standard/Plan/Mission widgets, startup visuals, and optional input-area border styling. They are Workflow Suite settings, separate from Pi core themes.
|
|
637
701
|
|
|
638
702
|
Open the interactive theme menu from the public settings surface:
|
|
639
703
|
|
|
@@ -657,7 +721,7 @@ Workflow Theme
|
|
|
657
721
|
|
|
658
722
|
How the pieces fit together:
|
|
659
723
|
|
|
660
|
-
- **Theme** changes Workflow Suite colors for widgets,
|
|
724
|
+
- **Theme** changes Workflow Suite colors for widgets, editor hints, status text, startup visuals, and optional input border styling.
|
|
661
725
|
- **Widget Text Style** controls the text treatment used by active workflow widgets.
|
|
662
726
|
- **Startup Visual** chooses the startup card layout: `none`, `minimal`, `workflow_duo`, `mission_control`, `diagnostic_center`, `data_stream`, `neural_grid`, or `custom_brand`.
|
|
663
727
|
- **Startup Text Style** controls startup visual text independently from active workflow widgets.
|
|
@@ -953,30 +1017,7 @@ Runtime tracking is active-runtime based:
|
|
|
953
1017
|
- Paused, blocked, stopped, completed, failed, draft, planned, and approved states do not accumulate active runtime.
|
|
954
1018
|
- `maxRuntimeHours` is enforced against active runtime at mission start/continue/validation/repair gates.
|
|
955
1019
|
|
|
956
|
-
Workflow entry and widget controls are available through `/standard`, `/plan`, `/mission`, and `/workflow widgets`.
|
|
957
|
-
|
|
958
|
-
```text
|
|
959
|
-
Ctrl+Shift+S toggle Standard Mode
|
|
960
|
-
Ctrl+Shift+L enter Plan Mode
|
|
961
|
-
Ctrl+Shift+M enter Mission Mode
|
|
962
|
-
Ctrl+Shift+T toggle active Standard/Plan/Mission top widget
|
|
963
|
-
Ctrl+Shift+B toggle active Standard/Plan/Mission bottom widget
|
|
964
|
-
Ctrl+Shift+U cycle presets while Standard/Plan/Mission Mode is active
|
|
965
|
-
```
|
|
966
|
-
|
|
967
|
-
Widget commands:
|
|
968
|
-
|
|
969
|
-
```text
|
|
970
|
-
/workflow widgets status
|
|
971
|
-
/workflow widgets list
|
|
972
|
-
/workflow widgets configure
|
|
973
|
-
/workflow widgets toggle top
|
|
974
|
-
/workflow widgets toggle bottom
|
|
975
|
-
/workflow widgets on
|
|
976
|
-
/workflow widgets off
|
|
977
|
-
```
|
|
978
|
-
|
|
979
|
-
Footer hints can be tuned without disabling the actual commands/shortcuts. The interactive path is `/workflow settings UI Widgets` → `Footer Hints`.
|
|
1020
|
+
Workflow entry and widget controls are available through `/standard`, `/plan`, `/mission`, and `/workflow widgets`. See [Workflow Widgets And Editor Hints](#workflow-widgets-and-editor-hints) for the top widget, bottom widget, shortcut, and editor hint controls.
|
|
980
1021
|
|
|
981
1022
|
Mission heartbeat and stale-status fields are tracked and displayed. Checkpoint interval settings record the preferred cadence for future timed checkpoint automation, while recovery actions remain user-supervised for safety.
|
|
982
1023
|
|
|
@@ -1014,8 +1055,8 @@ pi install -l npm:@mediadatafusion/pi-workflow-suite
|
|
|
1014
1055
|
### Installing specific versions
|
|
1015
1056
|
|
|
1016
1057
|
```bash
|
|
1017
|
-
pi install npm:@mediadatafusion/pi-workflow-suite@0.0.
|
|
1018
|
-
pi install -l npm:@mediadatafusion/pi-workflow-suite@0.0.
|
|
1058
|
+
pi install npm:@mediadatafusion/pi-workflow-suite@0.0.20
|
|
1059
|
+
pi install -l npm:@mediadatafusion/pi-workflow-suite@0.0.20
|
|
1019
1060
|
```
|
|
1020
1061
|
|
|
1021
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>`.
|
|
@@ -1132,7 +1173,7 @@ Primary settings areas:
|
|
|
1132
1173
|
- `missions` — Mission Mode autonomy, runtime, checkpoints, validation, repair, and mission-specific model selection.
|
|
1133
1174
|
- `subagents` — workflow phase policies, worker targets, activity indicator, parallelism preferences, and edit-concurrency guidance. These settings do not edit arbitrary sub-agent tool permissions.
|
|
1134
1175
|
- `context` — compaction provider/model, auto-trigger behavior, trigger percentage, cooldown, reserve tokens, and keep-recent tokens.
|
|
1135
|
-
- `ui` — widgets, shortcuts, Workflow Suite theme selection, startup visuals, startup logo text styling,
|
|
1176
|
+
- `ui` — widgets, shortcuts, Workflow Suite theme selection, startup visuals, startup logo text styling, editor hints, status text, and optional themed input borders.
|
|
1136
1177
|
- `safety` — bash/tool guard settings.
|
|
1137
1178
|
|
|
1138
1179
|
Important Standard Mode settings:
|
|
@@ -1221,10 +1262,10 @@ See `docs/TROUBLESHOOTING.md` for detailed diagnostics.
|
|
|
1221
1262
|
|
|
1222
1263
|
## Versioning
|
|
1223
1264
|
|
|
1224
|
-
The current preparation version is `v0.0.
|
|
1265
|
+
The current preparation version is `v0.0.20`. Version information is intentionally aligned across:
|
|
1225
1266
|
|
|
1226
|
-
- `VERSION` (`v0.0.
|
|
1227
|
-
- `package.json` (`0.0.
|
|
1267
|
+
- `VERSION` (`v0.0.20`),
|
|
1268
|
+
- `package.json` (`0.0.20`),
|
|
1228
1269
|
- `package-lock.json`,
|
|
1229
1270
|
- this README,
|
|
1230
1271
|
- Workflow Suite settings/about output.
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v0.0.
|
|
1
|
+
v0.0.20
|
|
@@ -254,6 +254,7 @@
|
|
|
254
254
|
"showActiveWorkflowSwitchHint": true,
|
|
255
255
|
"showWidgetShortcutHint": true,
|
|
256
256
|
"showPresetShortcutHint": true,
|
|
257
|
+
"editorHintContrast": "normal",
|
|
257
258
|
"workflowTheme": "aurora",
|
|
258
259
|
"workflowThemeOverrides": {},
|
|
259
260
|
"startupVisual": "mission_control",
|
|
@@ -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;
|
|
@@ -38,6 +39,7 @@ export type WorkflowStartupLogoFont = "block" | "shadow" | "outline" | "wide" |
|
|
|
38
39
|
export type WorkflowStartupLogoShadowDirection = "down_right" | "down" | "up" | "left" | "right";
|
|
39
40
|
export type WorkflowStartupLogoColorStyle = "theme" | "primary" | "split";
|
|
40
41
|
export type WorkflowWidgetTextPreset = "normal" | "bold" | "light" | "rich" | "italic" | "underline" | "terminal" | "smallcaps" | "typewriter";
|
|
42
|
+
export type WorkflowEditorHintContrast = "subtle" | "normal" | "bright" | "high";
|
|
41
43
|
export type CustomBrandBaseVisual = "minimal" | "diagnostic_center" | "workflow_duo" | "mission_control" | "data_stream" | "neural_grid";
|
|
42
44
|
export type RepairRetryGateName = "review" | "validation" | "missionValidation" | "missionFinalValidation";
|
|
43
45
|
|
|
@@ -239,6 +241,7 @@ export interface WorkflowSettings {
|
|
|
239
241
|
showActiveWorkflowSwitchHint?: boolean;
|
|
240
242
|
showWidgetShortcutHint?: boolean;
|
|
241
243
|
showPresetShortcutHint?: boolean;
|
|
244
|
+
editorHintContrast?: WorkflowEditorHintContrast;
|
|
242
245
|
workflowTheme?: string;
|
|
243
246
|
workflowThemeOverrides?: Record<string, string>;
|
|
244
247
|
widgetTextStyle?: WorkflowWidgetTextPreset;
|
|
@@ -528,6 +531,7 @@ const BUILTIN_DEFAULT_WORKFLOW_SETTINGS = {
|
|
|
528
531
|
"showActiveWorkflowSwitchHint": true,
|
|
529
532
|
"showWidgetShortcutHint": true,
|
|
530
533
|
"showPresetShortcutHint": true,
|
|
534
|
+
"editorHintContrast": "normal",
|
|
531
535
|
"workflowTheme": "aurora",
|
|
532
536
|
"workflowThemeOverrides": {},
|
|
533
537
|
"widgetTextStyle": undefined,
|
|
@@ -1221,7 +1225,7 @@ export function renderWorkflowPresets(settings: WorkflowSettings = loadGlobalSet
|
|
|
1221
1225
|
const active = settings.presets?.activePreset ?? WORKFLOW_CUSTOM_PRESET_MARKER;
|
|
1222
1226
|
const names = workflowPresetNames(settings);
|
|
1223
1227
|
const cards = [renderWorkflowPresetCard(WORKFLOW_CUSTOM_PRESET_MARKER, undefined, active === WORKFLOW_CUSTOM_PRESET_MARKER), ...names.map((name) => renderWorkflowPresetCard(name, catalog[name], name === active))];
|
|
1224
|
-
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.`;
|
|
1225
1229
|
}
|
|
1226
1230
|
|
|
1227
1231
|
export function applyWorkflowPreset(cwd: string, requestedScope: WorkflowSettingsScope | undefined, name: string): SettingsWriteResult {
|