zeitlich 0.2.42 → 0.2.43

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/dist/workflow.cjs CHANGED
@@ -1338,6 +1338,9 @@ async function createSession(config) {
1338
1338
  threadId,
1339
1339
  maxTurns
1340
1340
  });
1341
+ } else if (stateManager.getStatus() === "WAITING_FOR_INPUT") {
1342
+ exitReason = "waiting_for_input";
1343
+ workflow.log.info("session waiting for input", { agentName, threadId });
1341
1344
  }
1342
1345
  } catch (error) {
1343
1346
  exitReason = "failed";
@@ -1699,14 +1702,14 @@ function defineSubagentWorkflow(config, fn) {
1699
1702
  };
1700
1703
  const result = await fn(prompt, sessionInput, context ?? {});
1701
1704
  return {
1702
- ...result,
1703
1705
  ...capturedThreadId !== void 0 && { threadId: capturedThreadId },
1704
1706
  ...capturedSandboxId !== void 0 && { sandboxId: capturedSandboxId },
1705
1707
  ...capturedSnapshot !== void 0 && { snapshot: capturedSnapshot },
1706
1708
  ...capturedBaseSnapshot !== void 0 && {
1707
1709
  baseSnapshot: capturedBaseSnapshot
1708
1710
  },
1709
- ...capturedUsage !== void 0 && { usage: capturedUsage }
1711
+ ...capturedUsage !== void 0 && { usage: capturedUsage },
1712
+ ...result
1710
1713
  };
1711
1714
  };
1712
1715
  Object.defineProperty(workflow$1, "name", { value: config.name });