@agimon-ai/po-workflow 0.0.0-alpha.122 → 0.0.0-alpha.123
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
|
@@ -221,6 +221,9 @@ sessions, so its agent can troubleshoot and recover the run without a workflow m
|
|
|
221
221
|
environment also carries `PO_WORKFLOW_LAUNCHER_SESSION_ID`, naming the launching session, which
|
|
222
222
|
lists the run in its Activity group, is told when it ends, and may read its status.
|
|
223
223
|
|
|
224
|
+
- Pass `sessionName` to `launch_workflow`, `workflow.launch`, or the `po/workflow-launch` service's
|
|
225
|
+
overrides to name the new workflow session. It defaults to the workflow's name, then its filename.
|
|
226
|
+
`name` still names the run context directory; existing owner sessions are not renamed.
|
|
224
227
|
- The workflow session's rail row shows the run (`workflow · build › test · 4m`, or a failure or
|
|
225
228
|
pause marked like a pending question) through the host's per-session activity line.
|
|
226
229
|
- Success is posted without starting a turn. Failure wakes the workflow owner for local diagnosis;
|
|
@@ -4702,6 +4702,7 @@ const RunWorkflowInputSchema = zod.z.strictObject({
|
|
|
4702
4702
|
continueOnError: zod.z.boolean().optional().describe("Continue past step failures"),
|
|
4703
4703
|
prompt: zod.z.string().optional().describe("User prompt for user_prompt trigger workflows"),
|
|
4704
4704
|
name: zod.z.string().optional().describe("Name for the workflow run context directory"),
|
|
4705
|
+
sessionName: zod.z.string().trim().min(1).optional().describe("Name for a newly created workflow session; defaults to the workflow name or filename"),
|
|
4705
4706
|
workspace: zod.z.string().optional().describe("Workspace for workflow registry storage"),
|
|
4706
4707
|
statusFile: zod.z.string().optional().describe("Write terminal workflow run JSON to this file after completion")
|
|
4707
4708
|
});
|
|
@@ -5995,6 +5996,8 @@ interface RunWorkflowInput {
|
|
|
5995
5996
|
workflowPath: string; runner?: string; command?: string; choice?: string; profile?: string; job?: string;
|
|
5996
5997
|
inputs?: Record<string, string>; env?: Record<string, string>; secretFile?: string; launcher?: 'cmux' | 'tmux';
|
|
5997
5998
|
dryRun?: boolean; continueOnError?: boolean; prompt?: string; name?: string;
|
|
5999
|
+
/** Name for a newly created workflow session; defaults to the workflow name or filename. */
|
|
6000
|
+
sessionName?: string;
|
|
5998
6001
|
workspace?: string; statusFile?: string;
|
|
5999
6002
|
}
|
|
6000
6003
|
interface WorkflowListResult {
|
|
@@ -7367,7 +7370,8 @@ function createWorkflowServerRuntime(host, serverHost, runtime, resolveSecrets,
|
|
|
7367
7370
|
creatingWorkflowSessions += 1;
|
|
7368
7371
|
let child;
|
|
7369
7372
|
try {
|
|
7370
|
-
const
|
|
7373
|
+
const entry = (await catalogReader.read(where.cwd)).find((candidate) => candidate.path === workflowPath);
|
|
7374
|
+
const name = input.sessionName ?? workflowSessionName(workflowPath, entry?.name);
|
|
7371
7375
|
const workflow = await feature.parser.parseWorkflowFile(workflowPath);
|
|
7372
7376
|
const config = require_RecoverWorkflowService.poTemplateRunConfigSchema.parse(workflow.runConfig ?? {});
|
|
7373
7377
|
const majorMode = workflow.sessionConfig?.majorMode ?? config.majorMode;
|