zeitlich 0.2.44 → 0.2.45
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/{activities-DnmNOnq4.d.cts → activities-Coafq5zr.d.cts} +4 -4
- package/dist/{activities-CPIB2v2C.d.ts → activities-CrN-ghLo.d.ts} +4 -4
- package/dist/adapters/sandbox/daytona/index.d.cts +2 -2
- package/dist/adapters/sandbox/daytona/index.d.ts +2 -2
- package/dist/adapters/sandbox/daytona/workflow.d.cts +1 -1
- package/dist/adapters/sandbox/daytona/workflow.d.ts +1 -1
- package/dist/adapters/sandbox/e2b/index.d.cts +1 -1
- package/dist/adapters/sandbox/e2b/index.d.ts +1 -1
- package/dist/adapters/thread/anthropic/index.d.cts +4 -4
- package/dist/adapters/thread/anthropic/index.d.ts +4 -4
- package/dist/adapters/thread/anthropic/workflow.d.cts +4 -4
- package/dist/adapters/thread/anthropic/workflow.d.ts +4 -4
- package/dist/adapters/thread/google-genai/index.d.cts +4 -4
- package/dist/adapters/thread/google-genai/index.d.ts +4 -4
- package/dist/adapters/thread/google-genai/workflow.d.cts +4 -4
- package/dist/adapters/thread/google-genai/workflow.d.ts +4 -4
- package/dist/adapters/thread/langchain/index.cjs +11 -11
- package/dist/adapters/thread/langchain/index.cjs.map +1 -1
- package/dist/adapters/thread/langchain/index.d.cts +4 -4
- package/dist/adapters/thread/langchain/index.d.ts +4 -4
- package/dist/adapters/thread/langchain/index.js +12 -8
- package/dist/adapters/thread/langchain/index.js.map +1 -1
- package/dist/adapters/thread/langchain/workflow.d.cts +4 -4
- package/dist/adapters/thread/langchain/workflow.d.ts +4 -4
- package/dist/index.cjs +26 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +27 -26
- package/dist/index.js.map +1 -1
- package/dist/{proxy-DTnc5rqT.d.cts → proxy-Bf7uI-Hw.d.cts} +1 -1
- package/dist/{proxy-B7Xi1znZ.d.ts → proxy-COqA95FW.d.ts} +1 -1
- package/dist/{thread-manager-D2xorI-J.d.ts → thread-manager-BhkOyQ1I.d.ts} +4 -4
- package/dist/{thread-manager-BAv340mi.d.ts → thread-manager-Bi1XlbpJ.d.ts} +3 -3
- package/dist/{thread-manager-BlX2TwRN.d.cts → thread-manager-BsLO3Fgc.d.cts} +3 -3
- package/dist/{thread-manager-BWv6ZXI3.d.cts → thread-manager-wRVVBFgj.d.cts} +4 -4
- package/dist/{types-Clhqautb.d.ts → types-BkX4HLzi.d.ts} +1 -1
- package/dist/{types-DRJt1TMi.d.cts → types-C66-BVBr.d.cts} +1 -1
- package/dist/{types-4Wmk-wRq.d.cts → types-CdALEF3z.d.cts} +1 -1
- package/dist/{types-DKsCdAtQ.d.ts → types-ChAy_jSP.d.ts} +1 -1
- package/dist/{types-C90VoEpt.d.cts → types-CjY93AWZ.d.cts} +1 -1
- package/dist/{types-DpFD8ofR.d.ts → types-gVa5XCWD.d.ts} +1 -1
- package/dist/{workflow-D32TRMr-.d.ts → workflow-BwT5EybR.d.ts} +2 -2
- package/dist/{workflow-XVt0ww8K.d.cts → workflow-DMmiaw6w.d.cts} +2 -2
- package/dist/workflow.cjs +15 -18
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.d.cts +2 -2
- package/dist/workflow.d.ts +2 -2
- package/dist/workflow.js +15 -18
- package/dist/workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/session/session.ts +18 -22
- package/src/lib/.env +0 -1
- package/src/tools/bash/.env +0 -1
package/package.json
CHANGED
|
@@ -163,8 +163,7 @@ export async function createSession<
|
|
|
163
163
|
unknown,
|
|
164
164
|
SandboxCapability
|
|
165
165
|
>;
|
|
166
|
-
const wideOps = (): WideSandboxOps =>
|
|
167
|
-
sandboxOps as unknown as WideSandboxOps;
|
|
166
|
+
const wideOps = (): WideSandboxOps => sandboxOps as unknown as WideSandboxOps;
|
|
168
167
|
// ---------------------------------------------------------------------------
|
|
169
168
|
// Thread resolution
|
|
170
169
|
// ---------------------------------------------------------------------------
|
|
@@ -276,10 +275,7 @@ export async function createSession<
|
|
|
276
275
|
// defaults are. Both surfaces consult `resolveSessionLifecycle`
|
|
277
276
|
// (or its type-level equivalent) before checking individual
|
|
278
277
|
// mode/shutdown values.
|
|
279
|
-
const lifecycle = resolveSessionLifecycle(
|
|
280
|
-
sandboxInit,
|
|
281
|
-
sandboxShutdown
|
|
282
|
-
);
|
|
278
|
+
const lifecycle = resolveSessionLifecycle(sandboxInit, sandboxShutdown);
|
|
283
279
|
const sandboxMode: SandboxInit["mode"] | undefined = lifecycle.mode;
|
|
284
280
|
const resolvedShutdown: SubagentSandboxShutdown = lifecycle.shutdown;
|
|
285
281
|
let sandboxId: string | undefined;
|
|
@@ -383,22 +379,6 @@ export async function createSession<
|
|
|
383
379
|
});
|
|
384
380
|
}
|
|
385
381
|
|
|
386
|
-
if (hooks.onSessionStart) {
|
|
387
|
-
await hooks.onSessionStart({
|
|
388
|
-
threadId,
|
|
389
|
-
agentName,
|
|
390
|
-
metadata,
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
log.info("session started", {
|
|
395
|
-
agentName,
|
|
396
|
-
threadId,
|
|
397
|
-
threadMode,
|
|
398
|
-
maxTurns,
|
|
399
|
-
...(sandboxId && { sandboxId }),
|
|
400
|
-
});
|
|
401
|
-
|
|
402
382
|
const sessionStartMs = Date.now();
|
|
403
383
|
const systemPrompt = stateManager.getSystemPrompt();
|
|
404
384
|
|
|
@@ -490,6 +470,22 @@ export async function createSession<
|
|
|
490
470
|
let exitReason: SessionExitReason = "completed";
|
|
491
471
|
let finalMessage: M | null = null;
|
|
492
472
|
|
|
473
|
+
if (hooks.onSessionStart) {
|
|
474
|
+
await hooks.onSessionStart({
|
|
475
|
+
threadId,
|
|
476
|
+
agentName,
|
|
477
|
+
metadata,
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
log.info("session started", {
|
|
482
|
+
agentName,
|
|
483
|
+
threadId,
|
|
484
|
+
threadMode,
|
|
485
|
+
maxTurns,
|
|
486
|
+
...(sandboxId && { sandboxId }),
|
|
487
|
+
});
|
|
488
|
+
|
|
493
489
|
try {
|
|
494
490
|
// Per-turn assistant message id. Pre-generated in the workflow
|
|
495
491
|
// so the runAgent activity can truncate the thread from this id
|
package/src/lib/.env
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
E2B_API_KEY=e2b_39af116424059782e2aee6942fd70237cc2126c9
|
package/src/tools/bash/.env
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
E2B_API_KEY=e2b_39af116424059782e2aee6942fd70237cc2126c9
|