@agimon-ai/po-workflow 0.0.0-alpha.64 → 0.0.0-alpha.66

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
@@ -216,7 +216,7 @@ maintenance. A selected tools folder also supplies the managed session's pinned
216
216
 
217
217
  In a server (web cockpit) session, a launch does not run in the session that asked for it. The
218
218
  session creates a child **workflow session** (provenance `workflow-session`), nested under it in the
219
- rail, and hands it the launch. The workflow session owns the run (`PI_SESSION_ID`), runs its step
219
+ rail, and hands it the launch. The workflow session owns the run (`PO_SESSION_ID`), runs its step
220
220
  sessions, so its agent can troubleshoot and recover the run without a workflow minor mode. The run's
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.
@@ -1906,7 +1906,7 @@ var WorkflowRegistryService = class {
1906
1906
  const runningRecordPath = (0, node_path.resolve)(runningDir, RUN_RECORD_FILENAME$1);
1907
1907
  return this.writeCoordinator.forKey(runningRecordPath)(async () => {
1908
1908
  const currentRecord = await this.readRunRecord(runningRecordPath);
1909
- if (expected !== void 0 && (currentRecord.runId !== expected.runId || currentRecord.env?.PI_SESSION_ID !== expected.ownerSessionId)) {
1909
+ if (expected !== void 0 && (currentRecord.runId !== expected.runId || currentRecord.env?.PO_SESSION_ID !== expected.ownerSessionId)) {
1910
1910
  if (expected.stop) throw new Error(`Workflow run ownership changed: ${workspace}/${runKey}`);
1911
1911
  return currentRecord;
1912
1912
  }
@@ -11181,7 +11181,7 @@ const FIX_RESTART_FROM_KEY = "restart-from";
11181
11181
  const FIX_STATUS_KEY = "status";
11182
11182
  const FIX_TERMINAL_TARGET = "stop";
11183
11183
  const REPAIR_TRIAGE_JOB_NAME = "repair-triage";
11184
- const PI_SESSION_ENV = "PI_SESSION_ID";
11184
+ const PO_SESSION_ENV = "PO_SESSION_ID";
11185
11185
  /**
11186
11186
  * RecoverWorkflowService reconstructs and replays failed workflow runs.
11187
11187
  */
@@ -11260,7 +11260,7 @@ var RecoverWorkflowService = class {
11260
11260
  const originalJob = fixRestartFrom && !activeRepair ? void 0 : record.job;
11261
11261
  if (!this.parser.resolveJobOrder(workflow.jobs, originalJob ?? null).includes(recoveredJob)) throw new Error(`Workflow run "${record.workspace}/${record.runKey}" recovery target "${recoveredJob}" is not in the workflow job order`);
11262
11262
  const ownerSessionId = claimedOwnerSessionId?.trim();
11263
- const envOverrides = ownerSessionId ? { [PI_SESSION_ENV]: ownerSessionId } : void 0;
11263
+ const envOverrides = ownerSessionId ? { [PO_SESSION_ENV]: ownerSessionId } : void 0;
11264
11264
  const replay = {
11265
11265
  runner,
11266
11266
  command: record.command,
@@ -11546,4 +11546,4 @@ Object.defineProperty(exports, "workflowShellOutput", {
11546
11546
  }
11547
11547
  });
11548
11548
 
11549
- //# sourceMappingURL=RecoverWorkflowService-BQiYI4Pg.cjs.map
11549
+ //# sourceMappingURL=RecoverWorkflowService-BR0yn0LH.cjs.map