@agimon-ai/po-workflow 0.0.0-alpha.84 → 0.0.0-alpha.85

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.
@@ -7186,6 +7186,7 @@ function createWorkflowServerRuntime(host, serverHost, runtime, resolveSecrets,
7186
7186
  */
7187
7187
  const launchIn = async (owner, parameters) => {
7188
7188
  if (serverHost.context.requestApi === void 0) return textResult(`Error: this host cannot reach session ${owner} to launch the workflow there.`, true);
7189
+ watchOwner(owner);
7189
7190
  const response = await serverHost.context.requestApi({
7190
7191
  scope: "session",
7191
7192
  sessionId: owner
@@ -7629,6 +7630,7 @@ function createWorkflowServerRuntime(host, serverHost, runtime, resolveSecrets,
7629
7630
  const ownerId = record.admission?.ownerSessionId ?? request.previousRun.ownerSessionId;
7630
7631
  const owner = publicServices?.owner(ownerId);
7631
7632
  if (!owner) throw new Error("Workflow recovery owner is unavailable; admission remains pending.");
7633
+ watchOwner(ownerId);
7632
7634
  await owner.recover(request.previousRun, request.options?.runner, admission);
7633
7635
  } else {
7634
7636
  const input = await admissionInput(request);
@@ -7636,6 +7638,7 @@ function createWorkflowServerRuntime(host, serverHost, runtime, resolveSecrets,
7636
7638
  if (ownerId !== void 0) {
7637
7639
  const owner = publicServices?.owner(ownerId);
7638
7640
  if (!owner) throw new Error("Workflow launch owner is unavailable; admission remains pending.");
7641
+ watchOwner(ownerId);
7639
7642
  await owner.launch(input, {
7640
7643
  ...admission,
7641
7644
  ownerSessionId: ownerId