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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
|
-
import { J as JsonValue } from './types-
|
|
3
|
-
import { StoredMessage, BaseMessage
|
|
4
|
-
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-
|
|
2
|
+
import { J as JsonValue } from './types-ChAy_jSP.js';
|
|
3
|
+
import { MessageContent, StoredMessage, BaseMessage } from '@langchain/core/messages';
|
|
4
|
+
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-BkX4HLzi.js';
|
|
5
5
|
|
|
6
6
|
/** SDK-native content type for LangChain human messages */
|
|
7
7
|
type LangChainContent = string | MessageContent;
|
|
@@ -31,4 +31,4 @@ interface LangChainThreadManager extends ProviderThreadManager<StoredMessage, La
|
|
|
31
31
|
*/
|
|
32
32
|
declare function createLangChainThreadManager(config: LangChainThreadManagerConfig): LangChainThreadManager;
|
|
33
33
|
|
|
34
|
-
export { type LangChainContent as L, type LangChainThreadManagerHooks as a, type
|
|
34
|
+
export { type LangChainContent as L, type LangChainThreadManagerHooks as a, type LangChainInvocationPayload as b, type LangChainThreadManager as c, type LangChainThreadManagerConfig as d, createLangChainThreadManager as e };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import Anthropic from '@anthropic-ai/sdk';
|
|
3
|
-
import { J as JsonValue } from './types-
|
|
4
|
-
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-
|
|
3
|
+
import { J as JsonValue } from './types-ChAy_jSP.js';
|
|
4
|
+
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-BkX4HLzi.js';
|
|
5
5
|
|
|
6
6
|
/** SDK-native content type for Anthropic human messages */
|
|
7
7
|
type AnthropicContent = string | Anthropic.Messages.ContentBlockParam[];
|
|
@@ -39,4 +39,4 @@ interface AnthropicThreadManager extends ProviderThreadManager<StoredMessage, An
|
|
|
39
39
|
*/
|
|
40
40
|
declare function createAnthropicThreadManager(config: AnthropicThreadManagerConfig): AnthropicThreadManager;
|
|
41
41
|
|
|
42
|
-
export { type AnthropicContent as A, type StoredMessage as S, type AnthropicThreadManagerHooks as a, type
|
|
42
|
+
export { type AnthropicContent as A, type StoredMessage as S, type AnthropicThreadManagerHooks as a, type AnthropicInvocationPayload as b, type AnthropicThreadManager as c, type AnthropicThreadManagerConfig as d, createAnthropicThreadManager as e };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import Anthropic from '@anthropic-ai/sdk';
|
|
3
|
-
import { J as JsonValue } from './types-
|
|
4
|
-
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-
|
|
3
|
+
import { J as JsonValue } from './types-CdALEF3z.cjs';
|
|
4
|
+
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-C66-BVBr.cjs';
|
|
5
5
|
|
|
6
6
|
/** SDK-native content type for Anthropic human messages */
|
|
7
7
|
type AnthropicContent = string | Anthropic.Messages.ContentBlockParam[];
|
|
@@ -39,4 +39,4 @@ interface AnthropicThreadManager extends ProviderThreadManager<StoredMessage, An
|
|
|
39
39
|
*/
|
|
40
40
|
declare function createAnthropicThreadManager(config: AnthropicThreadManagerConfig): AnthropicThreadManager;
|
|
41
41
|
|
|
42
|
-
export { type AnthropicContent as A, type StoredMessage as S, type AnthropicThreadManagerHooks as a, type
|
|
42
|
+
export { type AnthropicContent as A, type StoredMessage as S, type AnthropicThreadManagerHooks as a, type AnthropicInvocationPayload as b, type AnthropicThreadManager as c, type AnthropicThreadManagerConfig as d, createAnthropicThreadManager as e };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
|
-
import { J as JsonValue } from './types-
|
|
3
|
-
import { StoredMessage, BaseMessage
|
|
4
|
-
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-
|
|
2
|
+
import { J as JsonValue } from './types-CdALEF3z.cjs';
|
|
3
|
+
import { MessageContent, StoredMessage, BaseMessage } from '@langchain/core/messages';
|
|
4
|
+
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-C66-BVBr.cjs';
|
|
5
5
|
|
|
6
6
|
/** SDK-native content type for LangChain human messages */
|
|
7
7
|
type LangChainContent = string | MessageContent;
|
|
@@ -31,4 +31,4 @@ interface LangChainThreadManager extends ProviderThreadManager<StoredMessage, La
|
|
|
31
31
|
*/
|
|
32
32
|
declare function createLangChainThreadManager(config: LangChainThreadManagerConfig): LangChainThreadManager;
|
|
33
33
|
|
|
34
|
-
export { type LangChainContent as L, type LangChainThreadManagerHooks as a, type
|
|
34
|
+
export { type LangChainContent as L, type LangChainThreadManagerHooks as a, type LangChainInvocationPayload as b, type LangChainThreadManager as c, type LangChainThreadManagerConfig as d, createLangChainThreadManager as e };
|
|
@@ -1774,4 +1774,4 @@ interface ZeitlichSession<M = unknown, HasSandbox extends boolean = boolean> {
|
|
|
1774
1774
|
}): Promise<SessionResult<M, T, HasSandbox>>;
|
|
1775
1775
|
}
|
|
1776
1776
|
|
|
1777
|
-
export { type
|
|
1777
|
+
export { type SandboxShutdown as $, type AgentResponse as A, type BaseAgentState as B, type PostToolUseFailureHookContext as C, type PostToolUseFailureHookResult as D, type PostToolUseHook as E, type FileEntryMetadata as F, type PostToolUseHookContext as G, type Hooks as H, type InferToolResults as I, type JsonValue as J, type PreHumanMessageAppendHook as K, type PreHumanMessageAppendHookContext as L, type ModelInvokerConfig as M, type PreToolUseHook as N, type PreToolUseHookContext as O, type PersistedThreadState as P, type PreToolUseHookResult as Q, type RouterContext as R, type ScopedPrefix as S, type ThreadOps as T, type ProcessToolCallsContext as U, type VirtualFsContext as V, type ProcessToolCallsResult as W, type RawToolCall as X, type RewindSignal as Y, type RunAgentActivity as Z, type SandboxInit as _, type ModelInvoker as a, type SerializableToolDefinition as a0, type SessionConfig as a1, type SessionEndHook as a2, type SessionEndHookContext as a3, type SessionExitReason as a4, type SessionRequiredCaps as a5, type SessionResult as a6, type SessionStartHook as a7, type SessionStartHookContext as a8, type SubagentChildWorkflowOptions as a9, VirtualFileSystem as aA, type VirtualFileTree as aB, type VirtualFsOps as aC, type VirtualFsState as aD, type WorkflowTask as aE, type ZeitlichSession as aF, isTerminalStatus as aG, type ToolRouterOptions as aH, type SubagentConfig as aa, type SubagentContinuationCaps as ab, type SubagentDefinition as ac, type SubagentFnResult as ad, type SubagentHandlerResponse as ae, type SubagentHooks as af, type SubagentSandboxConfig as ag, type SubagentSandboxShutdown as ah, type SubagentSessionInput as ai, type SubagentWorkflow as aj, type SubagentWorkflowInput as ak, type TaskStatus as al, type ThreadInit as am, type TokenUsage as an, type ToolArgs as ao, type ToolCallResult as ap, type ToolCallResultUnion as aq, type ToolDefinition as ar, type ToolHandler as as, type ToolHooks as at, type ToolMap as au, type ToolNames as av, type ToolResult as aw, type ToolRouter as ax, type ToolRouterHooks as ay, type ToolWithHandler as az, type PrefixedThreadOps as b, type ToolHandlerResponse as c, type ActivityToolHandler as d, type ToolResultConfig as e, type RunAgentConfig as f, type SkillProvider as g, type SkillMetadata as h, type Skill as i, type FileResolver as j, type TreeMutation as k, type PrefixedVirtualFsOps as l, type AgentConfig as m, type AgentFile as n, type AgentState as o, type AgentStateManager as p, type AgentStatus as q, type AppendToolResultFn as r, type FileEntry as s, type JsonPrimitive as t, type JsonSerializable as u, type ParsedToolCall as v, type ParsedToolCallUnion as w, type PostHumanMessageAppendHook as x, type PostHumanMessageAppendHookContext as y, type PostToolUseFailureHook as z };
|
|
@@ -1774,4 +1774,4 @@ interface ZeitlichSession<M = unknown, HasSandbox extends boolean = boolean> {
|
|
|
1774
1774
|
}): Promise<SessionResult<M, T, HasSandbox>>;
|
|
1775
1775
|
}
|
|
1776
1776
|
|
|
1777
|
-
export { type
|
|
1777
|
+
export { type SandboxShutdown as $, type AgentResponse as A, type BaseAgentState as B, type PostToolUseFailureHookContext as C, type PostToolUseFailureHookResult as D, type PostToolUseHook as E, type FileEntryMetadata as F, type PostToolUseHookContext as G, type Hooks as H, type InferToolResults as I, type JsonValue as J, type PreHumanMessageAppendHook as K, type PreHumanMessageAppendHookContext as L, type ModelInvokerConfig as M, type PreToolUseHook as N, type PreToolUseHookContext as O, type PersistedThreadState as P, type PreToolUseHookResult as Q, type RouterContext as R, type ScopedPrefix as S, type ThreadOps as T, type ProcessToolCallsContext as U, type VirtualFsContext as V, type ProcessToolCallsResult as W, type RawToolCall as X, type RewindSignal as Y, type RunAgentActivity as Z, type SandboxInit as _, type ModelInvoker as a, type SerializableToolDefinition as a0, type SessionConfig as a1, type SessionEndHook as a2, type SessionEndHookContext as a3, type SessionExitReason as a4, type SessionRequiredCaps as a5, type SessionResult as a6, type SessionStartHook as a7, type SessionStartHookContext as a8, type SubagentChildWorkflowOptions as a9, VirtualFileSystem as aA, type VirtualFileTree as aB, type VirtualFsOps as aC, type VirtualFsState as aD, type WorkflowTask as aE, type ZeitlichSession as aF, isTerminalStatus as aG, type ToolRouterOptions as aH, type SubagentConfig as aa, type SubagentContinuationCaps as ab, type SubagentDefinition as ac, type SubagentFnResult as ad, type SubagentHandlerResponse as ae, type SubagentHooks as af, type SubagentSandboxConfig as ag, type SubagentSandboxShutdown as ah, type SubagentSessionInput as ai, type SubagentWorkflow as aj, type SubagentWorkflowInput as ak, type TaskStatus as al, type ThreadInit as am, type TokenUsage as an, type ToolArgs as ao, type ToolCallResult as ap, type ToolCallResultUnion as aq, type ToolDefinition as ar, type ToolHandler as as, type ToolHooks as at, type ToolMap as au, type ToolNames as av, type ToolResult as aw, type ToolRouter as ax, type ToolRouterHooks as ay, type ToolWithHandler as az, type PrefixedThreadOps as b, type ToolHandlerResponse as c, type ActivityToolHandler as d, type ToolResultConfig as e, type RunAgentConfig as f, type SkillProvider as g, type SkillMetadata as h, type Skill as i, type FileResolver as j, type TreeMutation as k, type PrefixedVirtualFsOps as l, type AgentConfig as m, type AgentFile as n, type AgentState as o, type AgentStateManager as p, type AgentStatus as q, type AppendToolResultFn as r, type FileEntry as s, type JsonPrimitive as t, type JsonSerializable as u, type ParsedToolCall as v, type ParsedToolCallUnion as w, type PostHumanMessageAppendHook as x, type PostHumanMessageAppendHookContext as y, type PostToolUseFailureHook as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as SandboxFileSystem, F as FileStat, D as DirentEntry,
|
|
1
|
+
import { c as SandboxFileSystem, F as FileStat, D as DirentEntry, b as Sandbox$1, a as SandboxCreateOptions } from './types-CJ7tCdl6.cjs';
|
|
2
2
|
import { Sandbox } from '@daytonaio/sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as SandboxFileSystem, F as FileStat, D as DirentEntry,
|
|
1
|
+
import { c as SandboxFileSystem, F as FileStat, D as DirentEntry, b as Sandbox$1, a as SandboxCreateOptions } from './types-CJ7tCdl6.js';
|
|
2
2
|
import { Sandbox } from '@daytonaio/sdk';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { au as ToolMap, _ as SandboxInit, ah as SubagentSandboxShutdown, a1 as SessionConfig, aF as ZeitlichSession, $ as SandboxShutdown, am as ThreadInit, u as JsonSerializable, B as BaseAgentState, p as AgentStateManager, aH as ToolRouterOptions, ax as ToolRouter, R as RouterContext, J as JsonValue, az as ToolWithHandler, w as ParsedToolCallUnion, av as ToolNames, ac as SubagentDefinition, af as SubagentHooks, ag as SubagentSandboxConfig, aa as SubagentConfig, ai as SubagentSessionInput, ad as SubagentFnResult, a7 as SessionStartHook, a2 as SessionEndHook, E as PostToolUseHook, z as PostToolUseFailureHook, a4 as SessionExitReason, an as TokenUsage, f as RunAgentConfig, A as AgentResponse, F as FileEntryMetadata, aB as VirtualFileTree, k as TreeMutation, s as FileEntry, aC as VirtualFsOps, h as SkillMetadata, i as Skill, c as ToolHandlerResponse, as as ToolHandler, aE as WorkflowTask, d as ActivityToolHandler } from './types-ChAy_jSP.js';
|
|
2
2
|
import z$1, { z } from 'zod';
|
|
3
3
|
import './types-CJ7tCdl6.js';
|
|
4
4
|
import { Duration } from '@temporalio/common';
|
|
@@ -856,4 +856,4 @@ declare const createAskUserQuestionHandler: () => ActivityToolHandler<AskUserQue
|
|
|
856
856
|
}[];
|
|
857
857
|
}>;
|
|
858
858
|
|
|
859
|
-
export {
|
|
859
|
+
export { hasDirectory as $, type AskUserQuestionArgs as A, type BashArgs as B, createTaskGetHandler as C, DEFAULT_SUBAGENT_WORKFLOW_RUN_TIMEOUT as D, createTaskListHandler as E, type FileEditArgs as F, type GlobArgs as G, createTaskUpdateHandler as H, createToolRouter as I, defineSubagent as J, defineSubagentWorkflow as K, defineTool as L, defineWorkflow as M, editTool as N, type ObservabilityHooks as O, filesWithMimeType as P, formatVirtualFileTree as Q, type ReadSkillArgs as R, type SessionEndedEvent as S, THREAD_TTL_SECONDS as T, getShortId as U, getThreadListKey as V, type WorkflowConfig as W, getThreadMetaKey as X, globTool as Y, type ZeitlichObservabilitySinks as Z, grepTool as _, type FileReadArgs as a, hasFileWithMimeType as a0, hasNoOtherToolCalls as a1, parseSkillFile as a2, proxyRunAgent as a3, proxyVirtualFsOps as a4, readFileTool as a5, taskCreateTool as a6, taskGetTool as a7, taskListTool as a8, taskUpdateTool as a9, writeFileTool as aa, type FileWriteArgs as b, type FileTreeAccessor as c, type GrepArgs as d, type SessionStartedEvent as e, type SubagentArgs as f, type TaskCreateArgs as g, type TaskGetArgs as h, type TaskListArgs as i, type TaskUpdateArgs as j, type ToolExecutedEvent as k, type TurnCompletedEvent as l, type WorkflowInput as m, type WorkflowSessionInput as n, applyVirtualTreeMutations as o, askUserQuestionTool as p, bashTool as q, composeHooks as r, createAgentStateManager as s, createAskUserQuestionHandler as t, createBashToolDescription as u, createObservabilityHooks as v, createReadSkillHandler as w, createReadSkillTool as x, createSession as y, createTaskCreateHandler as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { au as ToolMap, _ as SandboxInit, ah as SubagentSandboxShutdown, a1 as SessionConfig, aF as ZeitlichSession, $ as SandboxShutdown, am as ThreadInit, u as JsonSerializable, B as BaseAgentState, p as AgentStateManager, aH as ToolRouterOptions, ax as ToolRouter, R as RouterContext, J as JsonValue, az as ToolWithHandler, w as ParsedToolCallUnion, av as ToolNames, ac as SubagentDefinition, af as SubagentHooks, ag as SubagentSandboxConfig, aa as SubagentConfig, ai as SubagentSessionInput, ad as SubagentFnResult, a7 as SessionStartHook, a2 as SessionEndHook, E as PostToolUseHook, z as PostToolUseFailureHook, a4 as SessionExitReason, an as TokenUsage, f as RunAgentConfig, A as AgentResponse, F as FileEntryMetadata, aB as VirtualFileTree, k as TreeMutation, s as FileEntry, aC as VirtualFsOps, h as SkillMetadata, i as Skill, c as ToolHandlerResponse, as as ToolHandler, aE as WorkflowTask, d as ActivityToolHandler } from './types-CdALEF3z.cjs';
|
|
2
2
|
import z$1, { z } from 'zod';
|
|
3
3
|
import './types-CJ7tCdl6.cjs';
|
|
4
4
|
import { Duration } from '@temporalio/common';
|
|
@@ -856,4 +856,4 @@ declare const createAskUserQuestionHandler: () => ActivityToolHandler<AskUserQue
|
|
|
856
856
|
}[];
|
|
857
857
|
}>;
|
|
858
858
|
|
|
859
|
-
export {
|
|
859
|
+
export { hasDirectory as $, type AskUserQuestionArgs as A, type BashArgs as B, createTaskGetHandler as C, DEFAULT_SUBAGENT_WORKFLOW_RUN_TIMEOUT as D, createTaskListHandler as E, type FileEditArgs as F, type GlobArgs as G, createTaskUpdateHandler as H, createToolRouter as I, defineSubagent as J, defineSubagentWorkflow as K, defineTool as L, defineWorkflow as M, editTool as N, type ObservabilityHooks as O, filesWithMimeType as P, formatVirtualFileTree as Q, type ReadSkillArgs as R, type SessionEndedEvent as S, THREAD_TTL_SECONDS as T, getShortId as U, getThreadListKey as V, type WorkflowConfig as W, getThreadMetaKey as X, globTool as Y, type ZeitlichObservabilitySinks as Z, grepTool as _, type FileReadArgs as a, hasFileWithMimeType as a0, hasNoOtherToolCalls as a1, parseSkillFile as a2, proxyRunAgent as a3, proxyVirtualFsOps as a4, readFileTool as a5, taskCreateTool as a6, taskGetTool as a7, taskListTool as a8, taskUpdateTool as a9, writeFileTool as aa, type FileWriteArgs as b, type FileTreeAccessor as c, type GrepArgs as d, type SessionStartedEvent as e, type SubagentArgs as f, type TaskCreateArgs as g, type TaskGetArgs as h, type TaskListArgs as i, type TaskUpdateArgs as j, type ToolExecutedEvent as k, type TurnCompletedEvent as l, type WorkflowInput as m, type WorkflowSessionInput as n, applyVirtualTreeMutations as o, askUserQuestionTool as p, bashTool as q, composeHooks as r, createAgentStateManager as s, createAskUserQuestionHandler as t, createBashToolDescription as u, createObservabilityHooks as v, createReadSkillHandler as w, createReadSkillTool as x, createSession as y, createTaskCreateHandler as z };
|
package/dist/workflow.cjs
CHANGED
|
@@ -1094,10 +1094,7 @@ async function createSession(config) {
|
|
|
1094
1094
|
stateManager.run();
|
|
1095
1095
|
}
|
|
1096
1096
|
);
|
|
1097
|
-
const lifecycle = resolveSessionLifecycle(
|
|
1098
|
-
sandboxInit,
|
|
1099
|
-
sandboxShutdown
|
|
1100
|
-
);
|
|
1097
|
+
const lifecycle = resolveSessionLifecycle(sandboxInit, sandboxShutdown);
|
|
1101
1098
|
const sandboxMode = lifecycle.mode;
|
|
1102
1099
|
const resolvedShutdown = lifecycle.shutdown;
|
|
1103
1100
|
let sandboxId;
|
|
@@ -1172,20 +1169,6 @@ async function createSession(config) {
|
|
|
1172
1169
|
...baseSnapshot && { baseSnapshot }
|
|
1173
1170
|
});
|
|
1174
1171
|
}
|
|
1175
|
-
if (hooks.onSessionStart) {
|
|
1176
|
-
await hooks.onSessionStart({
|
|
1177
|
-
threadId,
|
|
1178
|
-
agentName,
|
|
1179
|
-
metadata
|
|
1180
|
-
});
|
|
1181
|
-
}
|
|
1182
|
-
workflow.log.info("session started", {
|
|
1183
|
-
agentName,
|
|
1184
|
-
threadId,
|
|
1185
|
-
threadMode,
|
|
1186
|
-
maxTurns,
|
|
1187
|
-
...sandboxId && { sandboxId }
|
|
1188
|
-
});
|
|
1189
1172
|
const sessionStartMs = Date.now();
|
|
1190
1173
|
const systemPrompt = stateManager.getSystemPrompt();
|
|
1191
1174
|
const rehydrateFromSlice = (slice) => {
|
|
@@ -1258,6 +1241,20 @@ async function createSession(config) {
|
|
|
1258
1241
|
);
|
|
1259
1242
|
let exitReason = "completed";
|
|
1260
1243
|
let finalMessage = null;
|
|
1244
|
+
if (hooks.onSessionStart) {
|
|
1245
|
+
await hooks.onSessionStart({
|
|
1246
|
+
threadId,
|
|
1247
|
+
agentName,
|
|
1248
|
+
metadata
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
workflow.log.info("session started", {
|
|
1252
|
+
agentName,
|
|
1253
|
+
threadId,
|
|
1254
|
+
threadMode,
|
|
1255
|
+
maxTurns,
|
|
1256
|
+
...sandboxId && { sandboxId }
|
|
1257
|
+
});
|
|
1261
1258
|
try {
|
|
1262
1259
|
let assistantId;
|
|
1263
1260
|
while (stateManager.isRunning() && !stateManager.isTerminal() && stateManager.getTurns() < maxTurns) {
|