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.js CHANGED
@@ -1336,6 +1336,9 @@ async function createSession(config) {
1336
1336
  threadId,
1337
1337
  maxTurns
1338
1338
  });
1339
+ } else if (stateManager.getStatus() === "WAITING_FOR_INPUT") {
1340
+ exitReason = "waiting_for_input";
1341
+ log.info("session waiting for input", { agentName, threadId });
1339
1342
  }
1340
1343
  } catch (error) {
1341
1344
  exitReason = "failed";
@@ -1790,14 +1793,14 @@ function defineSubagentWorkflow(config, fn) {
1790
1793
  };
1791
1794
  const result = await fn(prompt, sessionInput, context ?? {});
1792
1795
  return {
1793
- ...result,
1794
1796
  ...capturedThreadId !== void 0 && { threadId: capturedThreadId },
1795
1797
  ...capturedSandboxId !== void 0 && { sandboxId: capturedSandboxId },
1796
1798
  ...capturedSnapshot !== void 0 && { snapshot: capturedSnapshot },
1797
1799
  ...capturedBaseSnapshot !== void 0 && {
1798
1800
  baseSnapshot: capturedBaseSnapshot
1799
1801
  },
1800
- ...capturedUsage !== void 0 && { usage: capturedUsage }
1802
+ ...capturedUsage !== void 0 && { usage: capturedUsage },
1803
+ ...result
1801
1804
  };
1802
1805
  };
1803
1806
  Object.defineProperty(workflow, "name", { value: config.name });