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.js
CHANGED
|
@@ -1332,6 +1332,9 @@ async function createSession(config) {
|
|
|
1332
1332
|
threadId,
|
|
1333
1333
|
maxTurns
|
|
1334
1334
|
});
|
|
1335
|
+
} else if (stateManager.getStatus() === "WAITING_FOR_INPUT") {
|
|
1336
|
+
exitReason = "waiting_for_input";
|
|
1337
|
+
log.info("session waiting for input", { agentName, threadId });
|
|
1335
1338
|
}
|
|
1336
1339
|
} catch (error) {
|
|
1337
1340
|
exitReason = "failed";
|
|
@@ -1693,14 +1696,14 @@ function defineSubagentWorkflow(config, fn) {
|
|
|
1693
1696
|
};
|
|
1694
1697
|
const result = await fn(prompt, sessionInput, context ?? {});
|
|
1695
1698
|
return {
|
|
1696
|
-
...result,
|
|
1697
1699
|
...capturedThreadId !== void 0 && { threadId: capturedThreadId },
|
|
1698
1700
|
...capturedSandboxId !== void 0 && { sandboxId: capturedSandboxId },
|
|
1699
1701
|
...capturedSnapshot !== void 0 && { snapshot: capturedSnapshot },
|
|
1700
1702
|
...capturedBaseSnapshot !== void 0 && {
|
|
1701
1703
|
baseSnapshot: capturedBaseSnapshot
|
|
1702
1704
|
},
|
|
1703
|
-
...capturedUsage !== void 0 && { usage: capturedUsage }
|
|
1705
|
+
...capturedUsage !== void 0 && { usage: capturedUsage },
|
|
1706
|
+
...result
|
|
1704
1707
|
};
|
|
1705
1708
|
};
|
|
1706
1709
|
Object.defineProperty(workflow, "name", { value: config.name });
|