@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 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 Workflow in `default.packages`. Keep it there or select it through
19
- a layer; its tools remain inactive until Workflow mode is enabled.
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 (formerly
67
- `@agimon-ai/po-dynamic-workflow`): tracked Mastra workflows composed with `then`, `parallel`,
68
- `branch` and bounded `foreach`, with live `team.run` transcripts. It is available in every
69
- agent session, without Workflow mode. Inside a YAML run, a `customRun` step's agent can use it
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-dynamic-workflow/SKILL.md).
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
- If an older `modes.yaml` still names the `dynamic-workflow` layer, remove that layer and its
75
- mentions under `majorMode`. Until then it resolves to an empty compatibility package.
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 publishes `workflow-recovery`, `po-author-workflow` for writing workflow
101
- definitions, and `po-use-workflow` for launching, monitoring, and recovering runs while Workflow
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, and has Workflow mode on, so its agent can troubleshoot and recover the run. The run's
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, adding the workflow minor mode once. `subagentModel` and `subagentThinking` set Team preferences independently of the step model.
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, activeMinorModes, onClose }) {
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 = [...activeMinorModes !== void 0 && !activeMinorModes.includes("workflow") ? ["Workflow mode is off: turn it on from Minor modes to launch."] : [], ...launchProblems(workflow, request)];
1821
+ const problems = launchProblems(workflow, request);
1822
1822
  const line = workflowLaunchLine(request);
1823
1823
  return /* @__PURE__ */ jsxs(View, {
1824
1824
  style: styles$1.body,