@signalridge/pi-workflows 1.8.0 → 1.10.0
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 +15 -0
- package/README.md +31 -1
- package/package.json +2 -2
- package/skills/workflow-authoring/SKILL.md +1 -1
- package/skills/workflow-authoring/references/capabilities.md +1 -1
- package/skills/workflow-authoring/references/capability-details.md +1 -1
- package/skills/workflow-patterns/SKILL.md +1 -1
- package/skills/workflow-review/SKILL.md +1 -1
- package/src/engine.ts +1088 -395
- package/src/index.ts +286 -53
- package/src/inspection.ts +544 -0
- package/src/journal.ts +33 -11
- package/src/orchestrator.ts +22 -4
- package/src/runtime.ts +387 -148
- package/src/status-actions.ts +143 -0
- package/src/ui-bus.ts +243 -0
- package/src/ui-command-center.ts +1032 -0
- package/src/ui-inspection.ts +206 -0
- package/src/ui-presentation.ts +196 -0
- package/src/ui.ts +43 -265
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.10.0
|
|
4
|
+
### Minor Changes
|
|
5
|
+
|
|
6
|
+
- a4dc1de: Expose optional session/branch-owned status navigation to the existing workflow navigator and add compact run-authoritative footer counts without changing execution or widget behavior.
|
|
7
|
+
|
|
8
|
+
## 1.9.0
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- 2c7f8f1: Add live, keyboard-controllable workflow inspection with stable run selection, phase and call drill-down, bounded result views, and state-aware pause/resume/stop controls. Retain authoritative observed progress separately from durable journal facts, and preserve named nested-workflow resolution when resuming from controls or provider recovery.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [2c7f8f1]
|
|
16
|
+
- @signalridge/pi-subagents-protocol@1.6.0
|
|
17
|
+
|
|
3
18
|
## 1.8.0
|
|
4
19
|
### Minor Changes
|
|
5
20
|
|
package/README.md
CHANGED
|
@@ -241,6 +241,18 @@ workflow, and the review skill before accepting a topology or recovery change.
|
|
|
241
241
|
`session_start` (Pi cannot unregister commands, so registration happens there
|
|
242
242
|
rather than at factory time, and existing commands are never overwritten).
|
|
243
243
|
|
|
244
|
+
### Live command center
|
|
245
|
+
|
|
246
|
+
`/workflows` opens a live, explicitly focused navigator; `/workflows watch <runId>` opens that run directly. Outside TUI, watch reports a snapshot rather than occupying an uncancellable wait. Escape closes observation without stopping execution.
|
|
247
|
+
|
|
248
|
+
Select a run, then a phase/task/call or its final result. Details have an independently scrollable viewport, while legal controls and help remain pinned. Navigation follows stable identities across updates, removal and resize. Use the displayed selection keybindings, Tab for controls, `p` to pause and `r` to resume. Stop is non-resumable and requires the displayed explicit confirmation; repeating a legacy-terminal key must not confirm it. A pending cleanup is not completion: the inspector keeps uncertainty visible and can recheck owned cleanup.
|
|
249
|
+
|
|
250
|
+
Phase entry, task attempts and call attribution come from fenced runtime observations. Declared phases never prove completion, and restored journal-only facts do not invent historical labels or entered phases. Exact phase identities distinguish labels whose bounded display copies look the same. Logical calls, replayed calls and physical dispatches are separate counters. Presentation snapshots are detached and bounded; they contain no prompts or conversation histories.
|
|
251
|
+
|
|
252
|
+
A selected root agent call can open its retained conversation through the subagent owner's optional exact-attempt UI endpoint. Unknown or reused old attempts are not redirected to a newer child. Workflow controls remain here; steering, child stop, sessions, model policy and foreground handoff remain in `pi-subagents`. The optional UI protocol does not change the required managed v4 handshake.
|
|
253
|
+
|
|
254
|
+
The passive progress panel uses a terminal-height row budget, prioritizes live calls and reports overflow rather than growing as runs × calls. Names/results are sanitized only in display copies; journals and stored source remain unchanged. Fullscreen, regular terminal, RPC and print paths retain their distinct public API boundaries.
|
|
255
|
+
|
|
244
256
|
### Background result notifications
|
|
245
257
|
|
|
246
258
|
Completed background runs are buffered in branch-local pending-delivery markers
|
|
@@ -342,7 +354,7 @@ generic reminder stripping is used. Regression tests exercise the real SDK,
|
|
|
342
354
|
faux provider, and native user-message component, not a physical terminal or a
|
|
343
355
|
live model service.
|
|
344
356
|
|
|
345
|
-
Navigator
|
|
357
|
+
Navigator, command-notification and result metadata is sanitized only in display copies through `pi-ui`;
|
|
346
358
|
stored results and journals stay original. Detail screens keep actions reachable
|
|
347
359
|
in a row-bounded viewport; PgUp/PgDn scroll the detail independently of ↑↓ actions.
|
|
348
360
|
|
|
@@ -532,3 +544,21 @@ used it.
|
|
|
532
544
|
- **Schema validation is client-side.** The managed request does not assume a structured-output tool; the runtime asks for JSON, parses, validates (including `additionalProperties`), and repairs across bounded attempts.
|
|
533
545
|
|
|
534
546
|
State is persisted as `pi.appendEntry("pi-workflows:journal", ...)` custom entries (schema v4), including frozen invocation args, resolved tier identity, terminal result previews, script revisions, named nested-workflow result boundaries, and durable removals. Interrupted/provider-limited runs replay from the journal; pre-schema-v4 journals are quarantined rather than replayed. Foreground `AbortSignal`s stop owned children through explicit owner-scoped stop/quiescence, and dispose/branch replacement reject stale waiters. Navigation preflight vetoes while agents or workflows are active or cleaning up, without interrupting them. An accepted tree commit fences old callbacks in either extension load order and restores only the committed branch; preflight itself is not a commit point.
|
|
547
|
+
|
|
548
|
+
## Status navigation
|
|
549
|
+
|
|
550
|
+
With a compatible status selector, **Ctrl+Alt+S**, choose **Workflow runs**, then
|
|
551
|
+
**Enter** opens this package's existing workflow navigator. `/workflows` and its
|
|
552
|
+
watch/detail paths remain unchanged. Querying this optional TUI-only endpoint
|
|
553
|
+
never opens a screen, starts/resumes a run, or sends a model/user message. Each
|
|
554
|
+
selection belongs to one live session/branch surface; navigation and reload
|
|
555
|
+
retire it rather than redirecting an old selection to another owner. Only
|
|
556
|
+
bounded identifiers and labels cross this presentation wire, not execution
|
|
557
|
+
controls, source, logs, or callbacks.
|
|
558
|
+
|
|
559
|
+
The compact `pi-workflows` footer reports `A` active runs (pending, running,
|
|
560
|
+
pausing, stopping) and `P` paused/interrupted runs. With only retained terminal
|
|
561
|
+
runs it reports `C` completed, `F` failed, and `S` stopped counts; an empty run
|
|
562
|
+
list clears it. Counts reflect run status, never inferred child completion.
|
|
563
|
+
This uses the existing progress refresh cadence without adding another widget
|
|
564
|
+
or taking focus.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalridge/pi-workflows",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Deterministic JavaScript orchestration workflows backed by pi-subagents managed spawning.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@sinclair/typebox": "*"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@signalridge/pi-subagents-protocol": "^1.
|
|
24
|
+
"@signalridge/pi-subagents-protocol": "^1.6.0",
|
|
25
25
|
"@signalridge/pi-ui": "^1.4.0",
|
|
26
26
|
"acorn": "^8.16.0"
|
|
27
27
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: workflow-authoring
|
|
3
3
|
description: Design, write, review, and debug Pi JavaScript workflows that coordinate multiple subagents. Use when a request needs named dependencies, bounded fan-out, per-item pipelines, quality gates, saved or nested workflows, pause/resume, or workflow progress; do not use it merely to run an existing named workflow.
|
|
4
4
|
metadata:
|
|
5
|
-
version: "1.
|
|
5
|
+
version: "1.10.0"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Workflow authoring
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Workflow capability index
|
|
3
3
|
|
|
4
4
|
Contract format: `2.0.0`<br>
|
|
5
|
-
Contract content / skill / extension: `1.
|
|
5
|
+
Contract content / skill / extension: `1.10.0`
|
|
6
6
|
|
|
7
7
|
This compact generated index covers supported runtime globals and workflow-tool inputs. For constraints, compatibility behavior, internal boundaries, and dynamic-reference ownership, follow the [exhaustive generated facts](capability-details.md).
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Exhaustive workflow capability facts
|
|
3
3
|
|
|
4
4
|
Contract format: `2.0.0`<br>
|
|
5
|
-
Contract content / skill / extension: `1.
|
|
5
|
+
Contract content / skill / extension: `1.10.0`
|
|
6
6
|
|
|
7
7
|
Every exact fact below is projected from the installed extension's capability contract. Explanatory judgment belongs in the hand-written references next to this file.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: workflow-patterns
|
|
3
3
|
description: Choose and run one of Pi's built-in multi-agent workflows for research, adversarial review, code review, multi-perspective analysis, or codebase auditing. Use when the request matches a named pattern; use workflow-authoring instead for a new script or custom topology.
|
|
4
4
|
metadata:
|
|
5
|
-
version: "1.
|
|
5
|
+
version: "1.10.0"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Built-in workflow patterns
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: workflow-review
|
|
3
3
|
description: Audit an existing Pi JavaScript workflow for topology, prompt/data flow, limits, failure handling, cancellation, resume safety, and publication compatibility. Use when reviewing or debugging a workflow script or saved run; do not use to run a standard named workflow.
|
|
4
4
|
metadata:
|
|
5
|
-
version: "1.
|
|
5
|
+
version: "1.10.0"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Workflow review
|