@agimon-ai/po-workflow 0.0.0-alpha.42 → 0.0.0-alpha.44
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/README.md +14 -14
- package/dist/extensions/native.mjs +2 -2
- package/dist/extensions/native.mjs.map +1 -1
- package/dist/extensions/server.cjs +443 -383
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.d.mts.map +1 -1
- package/dist/extensions/server.mjs +444 -384
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/extensions/web.mjs +10 -37
- package/dist/extensions/web.mjs.map +1 -1
- package/llms.txt +6 -8
- package/package.json +9 -12
- package/src/prompts/codemode-how-to-workflow/SKILL.md +74 -0
- package/src/prompts/{po-author-workflow → help-how-to-workflow}/SKILL.md +10 -4
- package/skills/workflow-recovery/SKILL.md +0 -85
- package/src/prompts/codemode-how-to-dynamic-workflow/SKILL.md +0 -43
- package/src/prompts/po-use-workflow/SKILL.md +0 -21
package/README.md
CHANGED
|
@@ -15,8 +15,8 @@ Workflow files describe job dependencies and host-executed steps, while Po provi
|
|
|
15
15
|
|
|
16
16
|
## Install
|
|
17
17
|
|
|
18
|
-
The seeded `modes.yaml` selects
|
|
19
|
-
|
|
18
|
+
The seeded `modes.yaml` selects the `workflow` layer in `minimal`, `copilot` and `examples`.
|
|
19
|
+
Remove it from a mode to omit Workflow there. No minor-mode activation is required.
|
|
20
20
|
|
|
21
21
|
## Define a workflow
|
|
22
22
|
|
|
@@ -63,16 +63,17 @@ and wait for a completion notification.
|
|
|
63
63
|
|
|
64
64
|
## Dynamic workflows
|
|
65
65
|
|
|
66
|
-
The package also supplies the `dynamicWorkflow` code-mode namespace
|
|
67
|
-
|
|
68
|
-
`
|
|
69
|
-
|
|
66
|
+
The package also supplies the `dynamicWorkflow` code-mode namespace: tracked Mastra
|
|
67
|
+
workflows composed with `then`, `parallel`, `branch` and bounded `foreach`, with live
|
|
68
|
+
`team.run` transcripts. It is available when the `workflow` layer is selected, with no
|
|
69
|
+
minor-mode gate. Inside a YAML run, a `customRun` step's agent can use it
|
|
70
70
|
for fan-out whose shape is only known at run time, and the run view shows those runs under
|
|
71
|
-
that step. See the [code-mode guide](src/prompts/codemode-how-to-
|
|
71
|
+
that step. See the [code-mode guide](src/prompts/codemode-how-to-workflow/SKILL.md).
|
|
72
72
|
Tracker state is in memory per session; it is not persisted with the run record.
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
Select the `workflow` layer in `modes.yaml`. Existing default-package entries still work
|
|
75
|
+
and deduplicate with the layer. No configuration migration runs, and persisted
|
|
76
|
+
`minorModes: [workflow]` has no effect.
|
|
76
77
|
|
|
77
78
|
## Storage, concurrency, and lifecycle
|
|
78
79
|
|
|
@@ -97,16 +98,15 @@ adopts the eligible failure, validates the evidence, and transfers ownership to
|
|
|
97
98
|
Live controls remain scoped to the owning session. Recovery does not launch a second copy beside a
|
|
98
99
|
still-running job and does not guarantee that parent-session work survives shutdown.
|
|
99
100
|
|
|
100
|
-
The package
|
|
101
|
-
|
|
102
|
-
mode is active. Deactivating Workflow mode hides them; cached files may remain.
|
|
101
|
+
The package ships two skills: pinned, ungated `codemode-how-to-workflow` for both namespaces,
|
|
102
|
+
and unpinned, Help-gated `help-how-to-workflow` for authoring and maintenance.
|
|
103
103
|
|
|
104
104
|
## Workflow sessions
|
|
105
105
|
|
|
106
106
|
In a server (web cockpit) session, a launch does not run in the session that asked for it. The
|
|
107
107
|
session creates a child **workflow session** (provenance `workflow-session`), nested under it in the
|
|
108
108
|
rail, and hands it the launch. The workflow session owns the run (`PI_SESSION_ID`), runs its step
|
|
109
|
-
sessions,
|
|
109
|
+
sessions, so its agent can troubleshoot and recover the run without a workflow minor mode. The run's
|
|
110
110
|
environment also carries `PO_WORKFLOW_LAUNCHER_SESSION_ID`, naming the launching session, which
|
|
111
111
|
lists the run in its Activity group, is told when it ends, and may read its status.
|
|
112
112
|
|
|
@@ -163,7 +163,7 @@ Business Source License 1.1: free for personal use, organisations under USD 1M r
|
|
|
163
163
|
|
|
164
164
|
## Native execution contract
|
|
165
165
|
|
|
166
|
-
Agent steps require an effective `runConfig.majorMode`; delegated workflows require top-level `runConfig.majorMode` before their owner child is created. Selection projects major mode, minor modes, profile and domains
|
|
166
|
+
Agent steps require an effective `runConfig.majorMode`; delegated workflows require top-level `runConfig.majorMode` before their owner child is created. Selection projects major mode, minor modes, profile and domains unchanged. `subagentModel` and `subagentThinking` set Team preferences independently of the step model.
|
|
167
167
|
|
|
168
168
|
The native host requires execution-state inspection before creating agent steps. After settlement it waits for idle, no pending messages and a known background snapshot without core holds or holding-provider errors before checking decisions. Unknown ownership waits closed without consuming reminders; stops interrupt reads and retry delays. Running commands stop holding an inline step after five idle minutes, but its decision gate still runs before session release.
|
|
169
169
|
|
|
@@ -1803,7 +1803,7 @@ function Choice({ label, options, value, onChange }) {
|
|
|
1803
1803
|
children: option
|
|
1804
1804
|
}, option))] });
|
|
1805
1805
|
}
|
|
1806
|
-
function WorkflowLaunch({ sessionId, workflow, initialPrompt, sendSessionFrame,
|
|
1806
|
+
function WorkflowLaunch({ sessionId, workflow, initialPrompt, sendSessionFrame, onClose }) {
|
|
1807
1807
|
const [prompt, setPrompt] = useState(initialPrompt);
|
|
1808
1808
|
const [inputs, setInputs] = useState(() => initialInputs(workflow));
|
|
1809
1809
|
const [runner, setRunner] = useState(() => initialRunner(workflow));
|
|
@@ -1818,7 +1818,7 @@ function WorkflowLaunch({ sessionId, workflow, initialPrompt, sendSessionFrame,
|
|
|
1818
1818
|
choice,
|
|
1819
1819
|
...prompt.trim() === "" ? {} : { prompt: prompt.trim() }
|
|
1820
1820
|
};
|
|
1821
|
-
const problems =
|
|
1821
|
+
const problems = launchProblems(workflow, request);
|
|
1822
1822
|
const line = workflowLaunchLine(request);
|
|
1823
1823
|
return /* @__PURE__ */ jsxs(View, {
|
|
1824
1824
|
style: styles$1.body,
|