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/index.cjs CHANGED
@@ -1342,6 +1342,9 @@ async function createSession(config) {
1342
1342
  threadId,
1343
1343
  maxTurns
1344
1344
  });
1345
+ } else if (stateManager.getStatus() === "WAITING_FOR_INPUT") {
1346
+ exitReason = "waiting_for_input";
1347
+ workflow.log.info("session waiting for input", { agentName, threadId });
1345
1348
  }
1346
1349
  } catch (error) {
1347
1350
  exitReason = "failed";
@@ -1796,14 +1799,14 @@ function defineSubagentWorkflow(config, fn) {
1796
1799
  };
1797
1800
  const result = await fn(prompt, sessionInput, context ?? {});
1798
1801
  return {
1799
- ...result,
1800
1802
  ...capturedThreadId !== void 0 && { threadId: capturedThreadId },
1801
1803
  ...capturedSandboxId !== void 0 && { sandboxId: capturedSandboxId },
1802
1804
  ...capturedSnapshot !== void 0 && { snapshot: capturedSnapshot },
1803
1805
  ...capturedBaseSnapshot !== void 0 && {
1804
1806
  baseSnapshot: capturedBaseSnapshot
1805
1807
  },
1806
- ...capturedUsage !== void 0 && { usage: capturedUsage }
1808
+ ...capturedUsage !== void 0 && { usage: capturedUsage },
1809
+ ...result
1807
1810
  };
1808
1811
  };
1809
1812
  Object.defineProperty(workflow$1, "name", { value: config.name });