zeitlich 0.2.30 → 0.2.31
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-NT3rcw66.d.ts → activities-DRSdt8Y3.d.ts} +2 -2
- package/dist/{activities-BeveyY9b.d.cts → activities-qPkJDAiq.d.cts} +2 -2
- 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.d.cts +4 -4
- package/dist/adapters/thread/langchain/index.d.ts +4 -4
- package/dist/adapters/thread/langchain/workflow.d.cts +4 -4
- package/dist/adapters/thread/langchain/workflow.d.ts +4 -4
- package/dist/index.cjs +28 -4
- 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 +28 -4
- package/dist/index.js.map +1 -1
- package/dist/{proxy-OJihshQF.d.cts → proxy-BDQ3Rj6R.d.cts} +1 -1
- package/dist/{proxy-BgswT47M.d.ts → proxy-BkvkV2oU.d.ts} +1 -1
- package/dist/{thread-manager-lfN0V-gH.d.cts → thread-manager-BLgvv9Gf.d.cts} +1 -1
- package/dist/{thread-manager-iUplxEZt.d.ts → thread-manager-Cv82H1wi.d.ts} +1 -1
- package/dist/{thread-manager-DH0zv05W.d.cts → thread-manager-DowU4ntB.d.cts} +1 -1
- package/dist/{thread-manager-BS477gj8.d.ts → thread-manager-HsAYkyAV.d.ts} +1 -1
- package/dist/{types-D90Q5aOh.d.ts → types-BmS-Huc0.d.ts} +6 -1
- package/dist/{types-DVdT5ybA.d.cts → types-CjeGWQm1.d.cts} +6 -1
- package/dist/{types-CCIc7Eam.d.ts → types-D6UKZZtj.d.ts} +1 -1
- package/dist/{types-DgIVPOa1.d.cts → types-e_38QaKo.d.cts} +1 -1
- package/dist/{workflow-Cj4DxGdM.d.cts → workflow-CNshfqSO.d.cts} +1 -1
- package/dist/{workflow-CzrBdCcJ.d.ts → workflow-CTcrPZAV.d.ts} +1 -1
- package/dist/workflow.cjs +13 -1
- 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 +13 -1
- package/dist/workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/session/session.ts +15 -1
- package/src/lib/types.ts +2 -0
- package/src/lib/virtual-fs/filesystem.ts +15 -0
- package/src/lib/virtual-fs/types.ts +2 -0
- package/src/lib/virtual-fs/virtual-fs.test.ts +64 -0
- package/src/lib/virtual-fs/with-virtual-fs.ts +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import { Part, Content, GoogleGenAI } from '@google/genai';
|
|
3
|
-
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler } from './types-
|
|
4
|
-
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-
|
|
3
|
+
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler } from './types-BmS-Huc0.js';
|
|
4
|
+
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-D6UKZZtj.js';
|
|
5
5
|
|
|
6
6
|
/** SDK-native content type for Google GenAI human messages */
|
|
7
7
|
type GoogleGenAIContent = string | Part[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import { Part, Content, GoogleGenAI } from '@google/genai';
|
|
3
|
-
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler } from './types-
|
|
4
|
-
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-
|
|
3
|
+
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler } from './types-CjeGWQm1.cjs';
|
|
4
|
+
import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-e_38QaKo.cjs';
|
|
5
5
|
|
|
6
6
|
/** SDK-native content type for Google GenAI human messages */
|
|
7
7
|
type GoogleGenAIContent = string | Part[];
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import Anthropic from '@anthropic-ai/sdk';
|
|
3
|
-
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-
|
|
4
|
-
import { A as AnthropicContent, a as AnthropicThreadManagerHooks } from '../../../thread-manager-
|
|
5
|
-
export { b as AnthropicInvocationPayload, c as AnthropicThreadManager, d as AnthropicThreadManagerConfig, S as StoredMessage, e as createAnthropicThreadManager } from '../../../thread-manager-
|
|
3
|
+
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-CjeGWQm1.cjs';
|
|
4
|
+
import { A as AnthropicContent, a as AnthropicThreadManagerHooks } from '../../../thread-manager-BLgvv9Gf.cjs';
|
|
5
|
+
export { b as AnthropicInvocationPayload, c as AnthropicThreadManager, d as AnthropicThreadManagerConfig, S as StoredMessage, e as createAnthropicThreadManager } from '../../../thread-manager-BLgvv9Gf.cjs';
|
|
6
6
|
import '@temporalio/common';
|
|
7
7
|
import '@temporalio/workflow';
|
|
8
8
|
import '@temporalio/common/lib/interfaces';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '../../../types-AujBIMMn.cjs';
|
|
11
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-e_38QaKo.cjs';
|
|
12
12
|
|
|
13
13
|
declare const ADAPTER_PREFIX: "anthropic";
|
|
14
14
|
type AnthropicThreadOps<TScope extends string = ""> = PrefixedThreadOps<ScopedPrefix<TScope, typeof ADAPTER_PREFIX>, AnthropicContent>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import Anthropic from '@anthropic-ai/sdk';
|
|
3
|
-
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-
|
|
4
|
-
import { A as AnthropicContent, a as AnthropicThreadManagerHooks } from '../../../thread-manager-
|
|
5
|
-
export { b as AnthropicInvocationPayload, c as AnthropicThreadManager, d as AnthropicThreadManagerConfig, S as StoredMessage, e as createAnthropicThreadManager } from '../../../thread-manager-
|
|
3
|
+
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BmS-Huc0.js';
|
|
4
|
+
import { A as AnthropicContent, a as AnthropicThreadManagerHooks } from '../../../thread-manager-HsAYkyAV.js';
|
|
5
|
+
export { b as AnthropicInvocationPayload, c as AnthropicThreadManager, d as AnthropicThreadManagerConfig, S as StoredMessage, e as createAnthropicThreadManager } from '../../../thread-manager-HsAYkyAV.js';
|
|
6
6
|
import '@temporalio/common';
|
|
7
7
|
import '@temporalio/workflow';
|
|
8
8
|
import '@temporalio/common/lib/interfaces';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '../../../types-AujBIMMn.js';
|
|
11
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-D6UKZZtj.js';
|
|
12
12
|
|
|
13
13
|
declare const ADAPTER_PREFIX: "anthropic";
|
|
14
14
|
type AnthropicThreadOps<TScope extends string = ""> = PrefixedThreadOps<ScopedPrefix<TScope, typeof ADAPTER_PREFIX>, AnthropicContent>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ActivityInterfaceFor } from '@temporalio/workflow';
|
|
2
|
-
import { T as ThreadOps } from '../../../types-
|
|
3
|
-
import { A as AnthropicContent } from '../../../thread-manager-
|
|
4
|
-
import { c as createThreadOpsProxy } from '../../../proxy-
|
|
2
|
+
import { T as ThreadOps } from '../../../types-CjeGWQm1.cjs';
|
|
3
|
+
import { A as AnthropicContent } from '../../../thread-manager-BLgvv9Gf.cjs';
|
|
4
|
+
import { c as createThreadOpsProxy } from '../../../proxy-BDQ3Rj6R.cjs';
|
|
5
5
|
import '@temporalio/common';
|
|
6
6
|
import '@temporalio/common/lib/interfaces';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../../../types-AujBIMMn.cjs';
|
|
9
9
|
import 'ioredis';
|
|
10
10
|
import '@anthropic-ai/sdk';
|
|
11
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-e_38QaKo.cjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Workflow-safe proxy for Anthropic thread operations.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ActivityInterfaceFor } from '@temporalio/workflow';
|
|
2
|
-
import { T as ThreadOps } from '../../../types-
|
|
3
|
-
import { A as AnthropicContent } from '../../../thread-manager-
|
|
4
|
-
import { c as createThreadOpsProxy } from '../../../proxy-
|
|
2
|
+
import { T as ThreadOps } from '../../../types-BmS-Huc0.js';
|
|
3
|
+
import { A as AnthropicContent } from '../../../thread-manager-HsAYkyAV.js';
|
|
4
|
+
import { c as createThreadOpsProxy } from '../../../proxy-BkvkV2oU.js';
|
|
5
5
|
import '@temporalio/common';
|
|
6
6
|
import '@temporalio/common/lib/interfaces';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../../../types-AujBIMMn.js';
|
|
9
9
|
import 'ioredis';
|
|
10
10
|
import '@anthropic-ai/sdk';
|
|
11
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-D6UKZZtj.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Workflow-safe proxy for Anthropic thread operations.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { G as GoogleGenAIThreadManagerHooks } from '../../../activities-
|
|
2
|
-
export { a as GoogleGenAIAdapter, b as GoogleGenAIAdapterConfig, c as GoogleGenAIContent, d as GoogleGenAIInvocationPayload, e as GoogleGenAIThreadManager, f as GoogleGenAIThreadManagerConfig, g as GoogleGenAIThreadOps, h as GoogleGenAIToolResponse, S as StoredContent, i as createGoogleGenAIAdapter, j as createGoogleGenAIThreadManager } from '../../../activities-
|
|
1
|
+
import { G as GoogleGenAIThreadManagerHooks } from '../../../activities-qPkJDAiq.cjs';
|
|
2
|
+
export { a as GoogleGenAIAdapter, b as GoogleGenAIAdapterConfig, c as GoogleGenAIContent, d as GoogleGenAIInvocationPayload, e as GoogleGenAIThreadManager, f as GoogleGenAIThreadManagerConfig, g as GoogleGenAIThreadOps, h as GoogleGenAIToolResponse, S as StoredContent, i as createGoogleGenAIAdapter, j as createGoogleGenAIThreadManager } from '../../../activities-qPkJDAiq.cjs';
|
|
3
3
|
import Redis from 'ioredis';
|
|
4
4
|
import { GoogleGenAI, Content } from '@google/genai';
|
|
5
|
-
import { M as ModelInvokerConfig, A as AgentResponse } from '../../../types-
|
|
6
|
-
import '../../../types-
|
|
5
|
+
import { M as ModelInvokerConfig, A as AgentResponse } from '../../../types-CjeGWQm1.cjs';
|
|
6
|
+
import '../../../types-e_38QaKo.cjs';
|
|
7
7
|
import '@temporalio/common';
|
|
8
8
|
import '@temporalio/workflow';
|
|
9
9
|
import '@temporalio/common/lib/interfaces';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { G as GoogleGenAIThreadManagerHooks } from '../../../activities-
|
|
2
|
-
export { a as GoogleGenAIAdapter, b as GoogleGenAIAdapterConfig, c as GoogleGenAIContent, d as GoogleGenAIInvocationPayload, e as GoogleGenAIThreadManager, f as GoogleGenAIThreadManagerConfig, g as GoogleGenAIThreadOps, h as GoogleGenAIToolResponse, S as StoredContent, i as createGoogleGenAIAdapter, j as createGoogleGenAIThreadManager } from '../../../activities-
|
|
1
|
+
import { G as GoogleGenAIThreadManagerHooks } from '../../../activities-DRSdt8Y3.js';
|
|
2
|
+
export { a as GoogleGenAIAdapter, b as GoogleGenAIAdapterConfig, c as GoogleGenAIContent, d as GoogleGenAIInvocationPayload, e as GoogleGenAIThreadManager, f as GoogleGenAIThreadManagerConfig, g as GoogleGenAIThreadOps, h as GoogleGenAIToolResponse, S as StoredContent, i as createGoogleGenAIAdapter, j as createGoogleGenAIThreadManager } from '../../../activities-DRSdt8Y3.js';
|
|
3
3
|
import Redis from 'ioredis';
|
|
4
4
|
import { GoogleGenAI, Content } from '@google/genai';
|
|
5
|
-
import { M as ModelInvokerConfig, A as AgentResponse } from '../../../types-
|
|
6
|
-
import '../../../types-
|
|
5
|
+
import { M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BmS-Huc0.js';
|
|
6
|
+
import '../../../types-D6UKZZtj.js';
|
|
7
7
|
import '@temporalio/common';
|
|
8
8
|
import '@temporalio/workflow';
|
|
9
9
|
import '@temporalio/common/lib/interfaces';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ActivityInterfaceFor } from '@temporalio/workflow';
|
|
2
|
-
import { T as ThreadOps } from '../../../types-
|
|
3
|
-
import { c as GoogleGenAIContent } from '../../../activities-
|
|
4
|
-
import { c as createThreadOpsProxy } from '../../../proxy-
|
|
2
|
+
import { T as ThreadOps } from '../../../types-CjeGWQm1.cjs';
|
|
3
|
+
import { c as GoogleGenAIContent } from '../../../activities-qPkJDAiq.cjs';
|
|
4
|
+
import { c as createThreadOpsProxy } from '../../../proxy-BDQ3Rj6R.cjs';
|
|
5
5
|
import '@temporalio/common';
|
|
6
6
|
import '@temporalio/common/lib/interfaces';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../../../types-AujBIMMn.cjs';
|
|
9
9
|
import 'ioredis';
|
|
10
10
|
import '@google/genai';
|
|
11
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-e_38QaKo.cjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Workflow-safe proxy for Google GenAI thread operations.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ActivityInterfaceFor } from '@temporalio/workflow';
|
|
2
|
-
import { T as ThreadOps } from '../../../types-
|
|
3
|
-
import { c as GoogleGenAIContent } from '../../../activities-
|
|
4
|
-
import { c as createThreadOpsProxy } from '../../../proxy-
|
|
2
|
+
import { T as ThreadOps } from '../../../types-BmS-Huc0.js';
|
|
3
|
+
import { c as GoogleGenAIContent } from '../../../activities-DRSdt8Y3.js';
|
|
4
|
+
import { c as createThreadOpsProxy } from '../../../proxy-BkvkV2oU.js';
|
|
5
5
|
import '@temporalio/common';
|
|
6
6
|
import '@temporalio/common/lib/interfaces';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../../../types-AujBIMMn.js';
|
|
9
9
|
import 'ioredis';
|
|
10
10
|
import '@google/genai';
|
|
11
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-D6UKZZtj.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Workflow-safe proxy for Google GenAI thread operations.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import { StoredMessage, MessageContent, BaseMessage } from '@langchain/core/messages';
|
|
3
|
-
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-
|
|
3
|
+
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-CjeGWQm1.cjs';
|
|
4
4
|
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
|
|
5
|
-
import { L as LangChainContent, a as LangChainThreadManagerHooks } from '../../../thread-manager-
|
|
6
|
-
export { b as LangChainInvocationPayload, c as LangChainThreadManager, d as LangChainThreadManagerConfig, e as createLangChainThreadManager } from '../../../thread-manager-
|
|
5
|
+
import { L as LangChainContent, a as LangChainThreadManagerHooks } from '../../../thread-manager-DowU4ntB.cjs';
|
|
6
|
+
export { b as LangChainInvocationPayload, c as LangChainThreadManager, d as LangChainThreadManagerConfig, e as createLangChainThreadManager } from '../../../thread-manager-DowU4ntB.cjs';
|
|
7
7
|
import '@temporalio/common';
|
|
8
8
|
import '@temporalio/workflow';
|
|
9
9
|
import '@temporalio/common/lib/interfaces';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '../../../types-AujBIMMn.cjs';
|
|
12
|
-
import '../../../types-
|
|
12
|
+
import '../../../types-e_38QaKo.cjs';
|
|
13
13
|
|
|
14
14
|
declare const ADAPTER_PREFIX: "langChain";
|
|
15
15
|
type LangChainThreadOps<TScope extends string = ""> = PrefixedThreadOps<ScopedPrefix<TScope, typeof ADAPTER_PREFIX>, LangChainContent>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import { StoredMessage, MessageContent, BaseMessage } from '@langchain/core/messages';
|
|
3
|
-
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-
|
|
3
|
+
import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BmS-Huc0.js';
|
|
4
4
|
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
|
|
5
|
-
import { L as LangChainContent, a as LangChainThreadManagerHooks } from '../../../thread-manager-
|
|
6
|
-
export { b as LangChainInvocationPayload, c as LangChainThreadManager, d as LangChainThreadManagerConfig, e as createLangChainThreadManager } from '../../../thread-manager-
|
|
5
|
+
import { L as LangChainContent, a as LangChainThreadManagerHooks } from '../../../thread-manager-Cv82H1wi.js';
|
|
6
|
+
export { b as LangChainInvocationPayload, c as LangChainThreadManager, d as LangChainThreadManagerConfig, e as createLangChainThreadManager } from '../../../thread-manager-Cv82H1wi.js';
|
|
7
7
|
import '@temporalio/common';
|
|
8
8
|
import '@temporalio/workflow';
|
|
9
9
|
import '@temporalio/common/lib/interfaces';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '../../../types-AujBIMMn.js';
|
|
12
|
-
import '../../../types-
|
|
12
|
+
import '../../../types-D6UKZZtj.js';
|
|
13
13
|
|
|
14
14
|
declare const ADAPTER_PREFIX: "langChain";
|
|
15
15
|
type LangChainThreadOps<TScope extends string = ""> = PrefixedThreadOps<ScopedPrefix<TScope, typeof ADAPTER_PREFIX>, LangChainContent>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ActivityInterfaceFor } from '@temporalio/workflow';
|
|
2
|
-
import { T as ThreadOps } from '../../../types-
|
|
3
|
-
import { L as LangChainContent } from '../../../thread-manager-
|
|
4
|
-
import { c as createThreadOpsProxy } from '../../../proxy-
|
|
2
|
+
import { T as ThreadOps } from '../../../types-CjeGWQm1.cjs';
|
|
3
|
+
import { L as LangChainContent } from '../../../thread-manager-DowU4ntB.cjs';
|
|
4
|
+
import { c as createThreadOpsProxy } from '../../../proxy-BDQ3Rj6R.cjs';
|
|
5
5
|
import '@temporalio/common';
|
|
6
6
|
import '@temporalio/common/lib/interfaces';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../../../types-AujBIMMn.cjs';
|
|
9
9
|
import 'ioredis';
|
|
10
10
|
import '@langchain/core/messages';
|
|
11
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-e_38QaKo.cjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Workflow-safe proxy for LangChain thread operations.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ActivityInterfaceFor } from '@temporalio/workflow';
|
|
2
|
-
import { T as ThreadOps } from '../../../types-
|
|
3
|
-
import { L as LangChainContent } from '../../../thread-manager-
|
|
4
|
-
import { c as createThreadOpsProxy } from '../../../proxy-
|
|
2
|
+
import { T as ThreadOps } from '../../../types-BmS-Huc0.js';
|
|
3
|
+
import { L as LangChainContent } from '../../../thread-manager-Cv82H1wi.js';
|
|
4
|
+
import { c as createThreadOpsProxy } from '../../../proxy-BkvkV2oU.js';
|
|
5
5
|
import '@temporalio/common';
|
|
6
6
|
import '@temporalio/common/lib/interfaces';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../../../types-AujBIMMn.js';
|
|
9
9
|
import 'ioredis';
|
|
10
10
|
import '@langchain/core/messages';
|
|
11
|
-
import '../../../types-
|
|
11
|
+
import '../../../types-D6UKZZtj.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Workflow-safe proxy for LangChain thread operations.
|
package/dist/index.cjs
CHANGED
|
@@ -843,8 +843,20 @@ async function createSession({
|
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
845
|
const result = await virtualFsOps.resolveFileTree(virtualFsConfig.ctx);
|
|
846
|
+
const skillFiles = skills ? collectSkillFiles(skills) : void 0;
|
|
847
|
+
const fileTree = skillFiles ? [
|
|
848
|
+
...result.fileTree,
|
|
849
|
+
...Object.entries(skillFiles).map(([path, content]) => ({
|
|
850
|
+
id: `skill:${path}`,
|
|
851
|
+
path,
|
|
852
|
+
size: content.length,
|
|
853
|
+
mtime: (/* @__PURE__ */ new Date()).toISOString(),
|
|
854
|
+
metadata: {}
|
|
855
|
+
}))
|
|
856
|
+
] : result.fileTree;
|
|
846
857
|
stateManager.mergeUpdate({
|
|
847
|
-
fileTree
|
|
858
|
+
fileTree,
|
|
859
|
+
...skillFiles && { inlineFiles: skillFiles }
|
|
848
860
|
});
|
|
849
861
|
}
|
|
850
862
|
if (hooks.onSessionStart) {
|
|
@@ -2371,7 +2383,7 @@ function inferDirectories(entries, workspaceBase) {
|
|
|
2371
2383
|
return dirs;
|
|
2372
2384
|
}
|
|
2373
2385
|
var VirtualFileSystem = class {
|
|
2374
|
-
constructor(tree, resolver, ctx, workspaceBase = "/") {
|
|
2386
|
+
constructor(tree, resolver, ctx, workspaceBase = "/", inlineFiles) {
|
|
2375
2387
|
this.resolver = resolver;
|
|
2376
2388
|
this.ctx = ctx;
|
|
2377
2389
|
this.workspaceBase = normalisePath(workspaceBase);
|
|
@@ -2379,11 +2391,18 @@ var VirtualFileSystem = class {
|
|
|
2379
2391
|
tree.map((e) => [normalisePath(e.path, this.workspaceBase), e])
|
|
2380
2392
|
);
|
|
2381
2393
|
this.directories = inferDirectories(tree, this.workspaceBase);
|
|
2394
|
+
this.inlineFiles = new Map(
|
|
2395
|
+
inlineFiles ? Object.entries(inlineFiles).map(([p, c]) => [
|
|
2396
|
+
normalisePath(p, this.workspaceBase),
|
|
2397
|
+
c
|
|
2398
|
+
]) : []
|
|
2399
|
+
);
|
|
2382
2400
|
}
|
|
2383
2401
|
workspaceBase;
|
|
2384
2402
|
entries;
|
|
2385
2403
|
directories;
|
|
2386
2404
|
mutations = [];
|
|
2405
|
+
inlineFiles;
|
|
2387
2406
|
/** Return all mutations accumulated during this invocation. */
|
|
2388
2407
|
getMutations() {
|
|
2389
2408
|
return this.mutations;
|
|
@@ -2397,12 +2416,16 @@ var VirtualFileSystem = class {
|
|
|
2397
2416
|
// --------------------------------------------------------------------------
|
|
2398
2417
|
async readFile(path) {
|
|
2399
2418
|
const norm = normalisePath(path, this.workspaceBase);
|
|
2419
|
+
const inline = this.inlineFiles.get(norm);
|
|
2420
|
+
if (inline !== void 0) return inline;
|
|
2400
2421
|
const entry = this.entries.get(norm);
|
|
2401
2422
|
if (!entry) throw new Error(`ENOENT: no such file: ${path}`);
|
|
2402
2423
|
return this.resolver.readFile(entry.id, this.ctx, entry.metadata);
|
|
2403
2424
|
}
|
|
2404
2425
|
async readFileBuffer(path) {
|
|
2405
2426
|
const norm = normalisePath(path, this.workspaceBase);
|
|
2427
|
+
const inline = this.inlineFiles.get(norm);
|
|
2428
|
+
if (inline !== void 0) return new TextEncoder().encode(inline);
|
|
2406
2429
|
const entry = this.entries.get(norm);
|
|
2407
2430
|
if (!entry) throw new Error(`ENOENT: no such file: ${path}`);
|
|
2408
2431
|
return this.resolver.readFileBuffer(entry.id, this.ctx, entry.metadata);
|
|
@@ -2633,7 +2656,7 @@ var VirtualFileSystem = class {
|
|
|
2633
2656
|
function withVirtualFs(client, resolver, handler) {
|
|
2634
2657
|
return async (args, context) => {
|
|
2635
2658
|
const state = await queryParentWorkflowState(client);
|
|
2636
|
-
const { fileTree, ctx, workspaceBase } = state;
|
|
2659
|
+
const { fileTree, ctx, workspaceBase, inlineFiles } = state;
|
|
2637
2660
|
if (!fileTree) {
|
|
2638
2661
|
return {
|
|
2639
2662
|
toolResponse: `Error: No fileTree in agent state. The ${context.toolName} tool requires a virtual filesystem.`,
|
|
@@ -2644,7 +2667,8 @@ function withVirtualFs(client, resolver, handler) {
|
|
|
2644
2667
|
fileTree,
|
|
2645
2668
|
resolver,
|
|
2646
2669
|
ctx,
|
|
2647
|
-
workspaceBase ?? "/"
|
|
2670
|
+
workspaceBase ?? "/",
|
|
2671
|
+
inlineFiles
|
|
2648
2672
|
);
|
|
2649
2673
|
const response = await handler(args, { ...context, virtualFs });
|
|
2650
2674
|
const mutations = virtualFs.getMutations();
|