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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/workflow.cjs +5 -2
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.js +5 -2
- package/dist/workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/session/session-edge-cases.integration.test.ts +16 -10
- package/src/lib/session/session.ts +8 -0
- package/src/lib/subagent/workflow.ts +2 -2
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 });
|