zeitlich 0.2.28 → 0.2.29

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.
Files changed (93) hide show
  1. package/README.md +121 -13
  2. package/dist/{activities-3xj_fEJK.d.ts → activities-1xrWRrGJ.d.cts} +2 -3
  3. package/dist/{activities-BzYq6jf7.d.cts → activities-DOViDCTE.d.ts} +2 -3
  4. package/dist/adapters/thread/anthropic/index.d.cts +5 -6
  5. package/dist/adapters/thread/anthropic/index.d.ts +5 -6
  6. package/dist/adapters/thread/anthropic/workflow.d.cts +4 -5
  7. package/dist/adapters/thread/anthropic/workflow.d.ts +4 -5
  8. package/dist/adapters/thread/google-genai/index.d.cts +5 -6
  9. package/dist/adapters/thread/google-genai/index.d.ts +5 -6
  10. package/dist/adapters/thread/google-genai/workflow.d.cts +4 -5
  11. package/dist/adapters/thread/google-genai/workflow.d.ts +4 -5
  12. package/dist/adapters/thread/langchain/index.d.cts +5 -6
  13. package/dist/adapters/thread/langchain/index.d.ts +5 -6
  14. package/dist/adapters/thread/langchain/workflow.d.cts +4 -5
  15. package/dist/adapters/thread/langchain/workflow.d.ts +4 -5
  16. package/dist/index.cjs +499 -8
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +66 -15
  19. package/dist/index.d.ts +66 -15
  20. package/dist/index.js +495 -10
  21. package/dist/index.js.map +1 -1
  22. package/dist/{proxy-7e7v8ccg.d.ts → proxy-78nc985d.d.ts} +1 -1
  23. package/dist/{proxy-CsB8r0RR.d.cts → proxy-Bm2UTiO_.d.cts} +1 -1
  24. package/dist/{thread-manager-D8C5QvLi.d.ts → thread-manager-07BaYu_z.d.ts} +1 -1
  25. package/dist/{thread-manager-DdVFl1IY.d.cts → thread-manager-BRE5KkHB.d.cts} +1 -1
  26. package/dist/{thread-manager-DFJ3sKKU.d.cts → thread-manager-CatBkarc.d.cts} +1 -1
  27. package/dist/{thread-manager-B5qA4v7V.d.ts → thread-manager-CxbWo7q_.d.ts} +1 -1
  28. package/dist/types-BkVoEyiH.d.ts +1211 -0
  29. package/dist/{types-BZ75HpYd.d.ts → types-DAv_SLN8.d.ts} +1 -1
  30. package/dist/{types-HbjqzyJH.d.cts → types-Dpz2gXLk.d.cts} +1 -1
  31. package/dist/types-seDYom4M.d.cts +1211 -0
  32. package/dist/workflow-B4T3la0p.d.cts +750 -0
  33. package/dist/workflow-DCmaXLZ_.d.ts +750 -0
  34. package/dist/workflow.cjs +171 -5
  35. package/dist/workflow.cjs.map +1 -1
  36. package/dist/workflow.d.cts +5 -579
  37. package/dist/workflow.d.ts +5 -579
  38. package/dist/workflow.js +170 -7
  39. package/dist/workflow.js.map +1 -1
  40. package/package.json +3 -23
  41. package/src/index.ts +7 -0
  42. package/src/lib/observability/hooks.ts +117 -0
  43. package/src/lib/observability/index.ts +13 -0
  44. package/src/lib/observability/sinks.ts +88 -0
  45. package/src/lib/sandbox/manager.ts +3 -3
  46. package/src/lib/session/session-edge-cases.integration.test.ts +1 -0
  47. package/src/lib/session/session.integration.test.ts +1 -0
  48. package/src/lib/session/session.ts +63 -0
  49. package/src/lib/session/types.ts +21 -0
  50. package/src/lib/state/manager.integration.test.ts +1 -0
  51. package/src/lib/subagent/handler.ts +17 -0
  52. package/src/lib/subagent/subagent.integration.test.ts +1 -0
  53. package/src/lib/tool-router/router-edge-cases.integration.test.ts +2 -0
  54. package/src/lib/tool-router/router.integration.test.ts +2 -0
  55. package/src/lib/tool-router/router.ts +24 -2
  56. package/src/{adapters/sandbox/virtual → lib/virtual-fs}/filesystem.ts +4 -4
  57. package/src/lib/virtual-fs/index.ts +18 -0
  58. package/src/lib/virtual-fs/manager.ts +48 -0
  59. package/src/lib/virtual-fs/proxy.ts +45 -0
  60. package/src/{adapters/sandbox/virtual → lib/virtual-fs}/types.ts +43 -33
  61. package/src/{adapters/sandbox/virtual/virtual-sandbox.test.ts → lib/virtual-fs/virtual-fs.test.ts} +15 -130
  62. package/src/lib/virtual-fs/with-virtual-fs.ts +94 -0
  63. package/src/workflow.ts +25 -8
  64. package/tsup.config.ts +0 -2
  65. package/dist/adapters/sandbox/virtual/index.cjs +0 -487
  66. package/dist/adapters/sandbox/virtual/index.cjs.map +0 -1
  67. package/dist/adapters/sandbox/virtual/index.d.cts +0 -90
  68. package/dist/adapters/sandbox/virtual/index.d.ts +0 -90
  69. package/dist/adapters/sandbox/virtual/index.js +0 -479
  70. package/dist/adapters/sandbox/virtual/index.js.map +0 -1
  71. package/dist/adapters/sandbox/virtual/workflow.cjs +0 -33
  72. package/dist/adapters/sandbox/virtual/workflow.cjs.map +0 -1
  73. package/dist/adapters/sandbox/virtual/workflow.d.cts +0 -28
  74. package/dist/adapters/sandbox/virtual/workflow.d.ts +0 -28
  75. package/dist/adapters/sandbox/virtual/workflow.js +0 -31
  76. package/dist/adapters/sandbox/virtual/workflow.js.map +0 -1
  77. package/dist/queries-DVnukByF.d.cts +0 -44
  78. package/dist/queries-kjlvsUfz.d.ts +0 -44
  79. package/dist/types-BclYm5Ic.d.cts +0 -581
  80. package/dist/types-BclYm5Ic.d.ts +0 -581
  81. package/dist/types-BgsAwN3L.d.cts +0 -125
  82. package/dist/types-BtqbM1bO.d.ts +0 -490
  83. package/dist/types-BuCEZ4dF.d.cts +0 -490
  84. package/dist/types-yU5AINiP.d.ts +0 -125
  85. package/src/adapters/sandbox/virtual/index.ts +0 -92
  86. package/src/adapters/sandbox/virtual/provider.ts +0 -121
  87. package/src/adapters/sandbox/virtual/proxy.ts +0 -53
  88. package/src/adapters/sandbox/virtual/with-virtual-sandbox.ts +0 -97
  89. package/src/lib/.env +0 -1
  90. package/src/tools/bash/.env +0 -1
  91. /package/src/{adapters/sandbox/virtual → lib/virtual-fs}/mutations.ts +0 -0
  92. /package/src/{adapters/sandbox/virtual → lib/virtual-fs}/queries.ts +0 -0
  93. /package/src/{adapters/sandbox/virtual → lib/virtual-fs}/tree.ts +0 -0
package/README.md CHANGED
@@ -58,7 +58,7 @@ A sandbox adapter provides filesystem access for tools like `Bash`, `Read`, `Wri
58
58
  | Adapter | Import | Use case |
59
59
  |---------|--------|----------|
60
60
  | In-memory | `zeitlich/adapters/sandbox/inmemory` | Tests and lightweight agents |
61
- | Virtual | `zeitlich/adapters/sandbox/virtual` | Custom resolvers with path-only ops |
61
+ | Virtual FS | `zeitlich` / `zeitlich/workflow` | Built-in virtual filesystem with custom resolvers |
62
62
  | Daytona | `zeitlich/adapters/sandbox/daytona` | Remote Daytona workspaces |
63
63
  | E2B | `zeitlich/adapters/sandbox/e2b` | E2B cloud sandboxes |
64
64
  | Bedrock | `zeitlich/adapters/sandbox/bedrock` | AWS Bedrock AgentCore Code Interpreter |
@@ -774,22 +774,16 @@ This means `readFile("a/b.txt")` is treated as `/a/b.txt` across adapters.
774
774
 
775
775
  Each `fs` instance also exposes `workspaceBase`, which is the base used for relative paths.
776
776
 
777
- **Virtual sandbox example (path-only calls):**
777
+ **Virtual filesystem example (path-only calls):**
778
778
 
779
779
  ```typescript
780
- import { createVirtualSandbox, VirtualSandboxProvider } from "zeitlich";
780
+ import { VirtualFileSystem } from "zeitlich";
781
781
 
782
- const provider = new VirtualSandboxProvider(resolver);
783
- const { sandbox } = await provider.create({
784
- resolverContext: { projectId: "p1" },
785
- workspaceBase: "/repo",
786
- });
787
-
788
- const fs = sandbox.fs;
789
- console.log(fs.workspaceBase); // "/repo"
782
+ const virtualFs = new VirtualFileSystem(fileTree, resolver, { projectId: "p1" }, "/repo");
783
+ console.log(virtualFs.workspaceBase); // "/repo"
790
784
 
791
- await fs.writeFile("src/index.ts", 'export const ok = true;\n');
792
- const content = await fs.readFile("src/index.ts"); // reads /repo/src/index.ts
785
+ await virtualFs.writeFile("src/index.ts", 'export const ok = true;\n');
786
+ const content = await virtualFs.readFile("src/index.ts"); // reads /repo/src/index.ts
793
787
  ```
794
788
 
795
789
  **Daytona sandbox example (base `/home/daytona`):**
@@ -991,6 +985,120 @@ Framework-agnostic utilities for activities, worker setup, and Node.js code:
991
985
  └─────────────────┘
992
986
  ```
993
987
 
988
+ ## Observability
989
+
990
+ Zeitlich emits structured, replay-safe logs at key lifecycle points (session start/end, each turn, tool execution, subagent spawn/completion). These flow through Temporal's built-in workflow logger with zero configuration.
991
+
992
+ ### Logging
993
+
994
+ All log messages are emitted via `@temporalio/workflow`'s `log` and automatically routed to whatever logger you configure on the Temporal Runtime. By default they go to `STDERR` via `console.error`.
995
+
996
+ **Custom logger (e.g. winston):**
997
+
998
+ ```typescript
999
+ import { Runtime, makeTelemetryFilterString } from "@temporalio/worker";
1000
+ import winston from "winston";
1001
+
1002
+ const logger = winston.createLogger({
1003
+ level: "info",
1004
+ format: winston.format.json(),
1005
+ transports: [new winston.transports.File({ filename: "worker.log" })],
1006
+ });
1007
+
1008
+ Runtime.install({
1009
+ logger,
1010
+ telemetryOptions: {
1011
+ logging: {
1012
+ filter: makeTelemetryFilterString({ core: "INFO", other: "INFO" }),
1013
+ forward: {},
1014
+ },
1015
+ },
1016
+ });
1017
+ ```
1018
+
1019
+ ### Metrics via Sinks
1020
+
1021
+ For custom metrics (Prometheus, Datadog, OpenTelemetry, etc.), zeitlich provides `ZeitlichObservabilitySinks` — a typed Temporal Sinks interface that bridges agent events from the workflow sandbox to your Node.js metrics backend.
1022
+
1023
+ **1. Register sinks on the Worker:**
1024
+
1025
+ ```typescript
1026
+ import { Worker, InjectedSinks } from "@temporalio/worker";
1027
+ import type { ZeitlichObservabilitySinks } from "zeitlich/workflow";
1028
+
1029
+ const sinks: InjectedSinks<ZeitlichObservabilitySinks> = {
1030
+ zeitlichMetrics: {
1031
+ sessionStarted: {
1032
+ fn(_workflowInfo, event) {
1033
+ sessionCounter.inc({ agent: event.agentName });
1034
+ },
1035
+ callDuringReplay: false,
1036
+ },
1037
+ sessionEnded: {
1038
+ fn(_workflowInfo, event) {
1039
+ sessionDuration.observe(event.durationMs);
1040
+ tokenCounter.inc({ type: "input" }, event.usage.inputTokens ?? 0);
1041
+ },
1042
+ callDuringReplay: false,
1043
+ },
1044
+ turnCompleted: {
1045
+ fn(_workflowInfo, event) {
1046
+ turnGauge.set({ agent: event.agentName }, event.turn);
1047
+ },
1048
+ callDuringReplay: false,
1049
+ },
1050
+ toolExecuted: {
1051
+ fn(_workflowInfo, event) {
1052
+ toolDuration.observe({ tool: event.toolName }, event.durationMs);
1053
+ if (!event.success) toolErrors.inc({ tool: event.toolName });
1054
+ },
1055
+ callDuringReplay: false,
1056
+ },
1057
+ },
1058
+ };
1059
+
1060
+ const worker = await Worker.create({ sinks, /* ... */ });
1061
+ ```
1062
+
1063
+ **2. Wire hooks in your workflow:**
1064
+
1065
+ ```typescript
1066
+ import { createSession, createObservabilityHooks } from "zeitlich/workflow";
1067
+
1068
+ const session = await createSession({
1069
+ agentName: "myAgent",
1070
+ hooks: createObservabilityHooks("myAgent"),
1071
+ // ...
1072
+ });
1073
+ ```
1074
+
1075
+ Use `composeHooks()` to combine observability hooks with your own:
1076
+
1077
+ ```typescript
1078
+ import { createObservabilityHooks, composeHooks } from "zeitlich/workflow";
1079
+
1080
+ const obs = createObservabilityHooks("myAgent");
1081
+
1082
+ const session = await createSession({
1083
+ hooks: {
1084
+ ...obs,
1085
+ onSessionEnd: composeHooks(obs.onSessionEnd, (ctx) => {
1086
+ // your custom session-end logic
1087
+ }),
1088
+ },
1089
+ });
1090
+ ```
1091
+
1092
+ ### Tracing with OpenTelemetry
1093
+
1094
+ For distributed tracing across client, workflow, and activities, use Temporal's OpenTelemetry interceptor package:
1095
+
1096
+ ```bash
1097
+ npm install @temporalio/interceptors-opentelemetry @opentelemetry/sdk-node
1098
+ ```
1099
+
1100
+ See [Temporal's tracing docs](https://docs.temporal.io/develop/typescript/observability#set-up-tracing) and the [`interceptors-opentelemetry` sample](https://github.com/temporalio/samples-typescript/tree/main/interceptors-opentelemetry) for setup.
1101
+
994
1102
  ## Requirements
995
1103
 
996
1104
  - Node.js >= 18
@@ -1,8 +1,7 @@
1
1
  import Redis from 'ioredis';
2
2
  import { Part, Content, GoogleGenAI } from '@google/genai';
3
- import { R as RouterContext, T as ToolHandlerResponse, A as ActivityToolHandler } from './types-BclYm5Ic.js';
4
- import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix } from './types-BtqbM1bO.js';
5
- import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-BZ75HpYd.js';
3
+ import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler } from './types-seDYom4M.cjs';
4
+ import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-Dpz2gXLk.cjs';
6
5
 
7
6
  /** SDK-native content type for Google GenAI human messages */
8
7
  type GoogleGenAIContent = string | Part[];
@@ -1,8 +1,7 @@
1
1
  import Redis from 'ioredis';
2
2
  import { Part, Content, GoogleGenAI } from '@google/genai';
3
- import { R as RouterContext, T as ToolHandlerResponse, A as ActivityToolHandler } from './types-BclYm5Ic.cjs';
4
- import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix } from './types-BuCEZ4dF.cjs';
5
- import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-HbjqzyJH.cjs';
3
+ import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, R as RouterContext, b as ToolHandlerResponse, c as ActivityToolHandler } from './types-BkVoEyiH.js';
4
+ import { T as ThreadManagerHooks, P as ProviderThreadManager } from './types-DAv_SLN8.js';
6
5
 
7
6
  /** SDK-native content type for Google GenAI human messages */
8
7
  type GoogleGenAIContent = string | Part[];
@@ -1,15 +1,14 @@
1
1
  import Redis from 'ioredis';
2
2
  import Anthropic from '@anthropic-ai/sdk';
3
- import { R as RouterContext, T as ToolHandlerResponse, A as ActivityToolHandler } from '../../../types-BclYm5Ic.cjs';
4
- import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BuCEZ4dF.cjs';
5
- import { A as AnthropicContent, a as AnthropicThreadManagerHooks } from '../../../thread-manager-DFJ3sKKU.cjs';
6
- export { b as AnthropicInvocationPayload, c as AnthropicThreadManager, d as AnthropicThreadManagerConfig, S as StoredMessage, e as createAnthropicThreadManager } from '../../../thread-manager-DFJ3sKKU.cjs';
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-seDYom4M.cjs';
4
+ import { A as AnthropicContent, a as AnthropicThreadManagerHooks } from '../../../thread-manager-CatBkarc.cjs';
5
+ export { b as AnthropicInvocationPayload, c as AnthropicThreadManager, d as AnthropicThreadManagerConfig, S as StoredMessage, e as createAnthropicThreadManager } from '../../../thread-manager-CatBkarc.cjs';
6
+ import '@temporalio/common';
7
7
  import '@temporalio/workflow';
8
8
  import '@temporalio/common/lib/interfaces';
9
9
  import 'zod';
10
- import '@temporalio/common';
11
10
  import '../../../types-ChAMwU3q.cjs';
12
- import '../../../types-HbjqzyJH.cjs';
11
+ import '../../../types-Dpz2gXLk.cjs';
13
12
 
14
13
  declare const ADAPTER_PREFIX: "anthropic";
15
14
  type AnthropicThreadOps<TScope extends string = ""> = PrefixedThreadOps<ScopedPrefix<TScope, typeof ADAPTER_PREFIX>, AnthropicContent>;
@@ -1,15 +1,14 @@
1
1
  import Redis from 'ioredis';
2
2
  import Anthropic from '@anthropic-ai/sdk';
3
- import { R as RouterContext, T as ToolHandlerResponse, A as ActivityToolHandler } from '../../../types-BclYm5Ic.js';
4
- import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BtqbM1bO.js';
5
- import { A as AnthropicContent, a as AnthropicThreadManagerHooks } from '../../../thread-manager-D8C5QvLi.js';
6
- export { b as AnthropicInvocationPayload, c as AnthropicThreadManager, d as AnthropicThreadManagerConfig, S as StoredMessage, e as createAnthropicThreadManager } from '../../../thread-manager-D8C5QvLi.js';
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-BkVoEyiH.js';
4
+ import { A as AnthropicContent, a as AnthropicThreadManagerHooks } from '../../../thread-manager-07BaYu_z.js';
5
+ export { b as AnthropicInvocationPayload, c as AnthropicThreadManager, d as AnthropicThreadManagerConfig, S as StoredMessage, e as createAnthropicThreadManager } from '../../../thread-manager-07BaYu_z.js';
6
+ import '@temporalio/common';
7
7
  import '@temporalio/workflow';
8
8
  import '@temporalio/common/lib/interfaces';
9
9
  import 'zod';
10
- import '@temporalio/common';
11
10
  import '../../../types-ChAMwU3q.js';
12
- import '../../../types-BZ75HpYd.js';
11
+ import '../../../types-DAv_SLN8.js';
13
12
 
14
13
  declare const ADAPTER_PREFIX: "anthropic";
15
14
  type AnthropicThreadOps<TScope extends string = ""> = PrefixedThreadOps<ScopedPrefix<TScope, typeof ADAPTER_PREFIX>, AnthropicContent>;
@@ -1,15 +1,14 @@
1
1
  import { ActivityInterfaceFor } from '@temporalio/workflow';
2
- import { T as ThreadOps } from '../../../types-BuCEZ4dF.cjs';
3
- import { A as AnthropicContent } from '../../../thread-manager-DFJ3sKKU.cjs';
4
- import { c as createThreadOpsProxy } from '../../../proxy-CsB8r0RR.cjs';
2
+ import { T as ThreadOps } from '../../../types-seDYom4M.cjs';
3
+ import { A as AnthropicContent } from '../../../thread-manager-CatBkarc.cjs';
4
+ import { c as createThreadOpsProxy } from '../../../proxy-Bm2UTiO_.cjs';
5
5
  import '@temporalio/common';
6
- import '../../../types-BclYm5Ic.cjs';
7
6
  import '@temporalio/common/lib/interfaces';
8
7
  import 'zod';
9
8
  import '../../../types-ChAMwU3q.cjs';
10
9
  import 'ioredis';
11
10
  import '@anthropic-ai/sdk';
12
- import '../../../types-HbjqzyJH.cjs';
11
+ import '../../../types-Dpz2gXLk.cjs';
13
12
 
14
13
  /**
15
14
  * Workflow-safe proxy for Anthropic thread operations.
@@ -1,15 +1,14 @@
1
1
  import { ActivityInterfaceFor } from '@temporalio/workflow';
2
- import { T as ThreadOps } from '../../../types-BtqbM1bO.js';
3
- import { A as AnthropicContent } from '../../../thread-manager-D8C5QvLi.js';
4
- import { c as createThreadOpsProxy } from '../../../proxy-7e7v8ccg.js';
2
+ import { T as ThreadOps } from '../../../types-BkVoEyiH.js';
3
+ import { A as AnthropicContent } from '../../../thread-manager-07BaYu_z.js';
4
+ import { c as createThreadOpsProxy } from '../../../proxy-78nc985d.js';
5
5
  import '@temporalio/common';
6
- import '../../../types-BclYm5Ic.js';
7
6
  import '@temporalio/common/lib/interfaces';
8
7
  import 'zod';
9
8
  import '../../../types-ChAMwU3q.js';
10
9
  import 'ioredis';
11
10
  import '@anthropic-ai/sdk';
12
- import '../../../types-BZ75HpYd.js';
11
+ import '../../../types-DAv_SLN8.js';
13
12
 
14
13
  /**
15
14
  * Workflow-safe proxy for Anthropic thread operations.
@@ -1,14 +1,13 @@
1
- import { G as GoogleGenAIThreadManagerHooks } from '../../../activities-BzYq6jf7.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-BzYq6jf7.cjs';
1
+ import { G as GoogleGenAIThreadManagerHooks } from '../../../activities-1xrWRrGJ.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-1xrWRrGJ.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-BuCEZ4dF.cjs';
6
- import '../../../types-BclYm5Ic.cjs';
5
+ import { M as ModelInvokerConfig, A as AgentResponse } from '../../../types-seDYom4M.cjs';
6
+ import '../../../types-Dpz2gXLk.cjs';
7
+ import '@temporalio/common';
7
8
  import '@temporalio/workflow';
8
9
  import '@temporalio/common/lib/interfaces';
9
10
  import 'zod';
10
- import '../../../types-HbjqzyJH.cjs';
11
- import '@temporalio/common';
12
11
  import '../../../types-ChAMwU3q.cjs';
13
12
 
14
13
  interface GoogleGenAIModelInvokerConfig {
@@ -1,14 +1,13 @@
1
- import { G as GoogleGenAIThreadManagerHooks } from '../../../activities-3xj_fEJK.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-3xj_fEJK.js';
1
+ import { G as GoogleGenAIThreadManagerHooks } from '../../../activities-DOViDCTE.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-DOViDCTE.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-BtqbM1bO.js';
6
- import '../../../types-BclYm5Ic.js';
5
+ import { M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BkVoEyiH.js';
6
+ import '../../../types-DAv_SLN8.js';
7
+ import '@temporalio/common';
7
8
  import '@temporalio/workflow';
8
9
  import '@temporalio/common/lib/interfaces';
9
10
  import 'zod';
10
- import '../../../types-BZ75HpYd.js';
11
- import '@temporalio/common';
12
11
  import '../../../types-ChAMwU3q.js';
13
12
 
14
13
  interface GoogleGenAIModelInvokerConfig {
@@ -1,15 +1,14 @@
1
1
  import { ActivityInterfaceFor } from '@temporalio/workflow';
2
- import { T as ThreadOps } from '../../../types-BuCEZ4dF.cjs';
3
- import { c as GoogleGenAIContent } from '../../../activities-BzYq6jf7.cjs';
4
- import { c as createThreadOpsProxy } from '../../../proxy-CsB8r0RR.cjs';
2
+ import { T as ThreadOps } from '../../../types-seDYom4M.cjs';
3
+ import { c as GoogleGenAIContent } from '../../../activities-1xrWRrGJ.cjs';
4
+ import { c as createThreadOpsProxy } from '../../../proxy-Bm2UTiO_.cjs';
5
5
  import '@temporalio/common';
6
- import '../../../types-BclYm5Ic.cjs';
7
6
  import '@temporalio/common/lib/interfaces';
8
7
  import 'zod';
9
8
  import '../../../types-ChAMwU3q.cjs';
10
9
  import 'ioredis';
11
10
  import '@google/genai';
12
- import '../../../types-HbjqzyJH.cjs';
11
+ import '../../../types-Dpz2gXLk.cjs';
13
12
 
14
13
  /**
15
14
  * Workflow-safe proxy for Google GenAI thread operations.
@@ -1,15 +1,14 @@
1
1
  import { ActivityInterfaceFor } from '@temporalio/workflow';
2
- import { T as ThreadOps } from '../../../types-BtqbM1bO.js';
3
- import { c as GoogleGenAIContent } from '../../../activities-3xj_fEJK.js';
4
- import { c as createThreadOpsProxy } from '../../../proxy-7e7v8ccg.js';
2
+ import { T as ThreadOps } from '../../../types-BkVoEyiH.js';
3
+ import { c as GoogleGenAIContent } from '../../../activities-DOViDCTE.js';
4
+ import { c as createThreadOpsProxy } from '../../../proxy-78nc985d.js';
5
5
  import '@temporalio/common';
6
- import '../../../types-BclYm5Ic.js';
7
6
  import '@temporalio/common/lib/interfaces';
8
7
  import 'zod';
9
8
  import '../../../types-ChAMwU3q.js';
10
9
  import 'ioredis';
11
10
  import '@google/genai';
12
- import '../../../types-BZ75HpYd.js';
11
+ import '../../../types-DAv_SLN8.js';
13
12
 
14
13
  /**
15
14
  * Workflow-safe proxy for Google GenAI thread operations.
@@ -1,16 +1,15 @@
1
1
  import Redis from 'ioredis';
2
2
  import { StoredMessage, MessageContent, BaseMessage } from '@langchain/core/messages';
3
- import { R as RouterContext, T as ToolHandlerResponse, A as ActivityToolHandler } from '../../../types-BclYm5Ic.cjs';
4
- import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BuCEZ4dF.cjs';
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-seDYom4M.cjs';
5
4
  import { BaseChatModel } from '@langchain/core/language_models/chat_models';
6
- import { L as LangChainContent, a as LangChainThreadManagerHooks } from '../../../thread-manager-DdVFl1IY.cjs';
7
- export { b as LangChainInvocationPayload, c as LangChainThreadManager, d as LangChainThreadManagerConfig, e as createLangChainThreadManager } from '../../../thread-manager-DdVFl1IY.cjs';
5
+ import { L as LangChainContent, a as LangChainThreadManagerHooks } from '../../../thread-manager-BRE5KkHB.cjs';
6
+ export { b as LangChainInvocationPayload, c as LangChainThreadManager, d as LangChainThreadManagerConfig, e as createLangChainThreadManager } from '../../../thread-manager-BRE5KkHB.cjs';
7
+ import '@temporalio/common';
8
8
  import '@temporalio/workflow';
9
9
  import '@temporalio/common/lib/interfaces';
10
10
  import 'zod';
11
- import '@temporalio/common';
12
11
  import '../../../types-ChAMwU3q.cjs';
13
- import '../../../types-HbjqzyJH.cjs';
12
+ import '../../../types-Dpz2gXLk.cjs';
14
13
 
15
14
  declare const ADAPTER_PREFIX: "langChain";
16
15
  type LangChainThreadOps<TScope extends string = ""> = PrefixedThreadOps<ScopedPrefix<TScope, typeof ADAPTER_PREFIX>, LangChainContent>;
@@ -1,16 +1,15 @@
1
1
  import Redis from 'ioredis';
2
2
  import { StoredMessage, MessageContent, BaseMessage } from '@langchain/core/messages';
3
- import { R as RouterContext, T as ToolHandlerResponse, A as ActivityToolHandler } from '../../../types-BclYm5Ic.js';
4
- import { a as ModelInvoker, P as PrefixedThreadOps, S as ScopedPrefix, M as ModelInvokerConfig, A as AgentResponse } from '../../../types-BtqbM1bO.js';
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-BkVoEyiH.js';
5
4
  import { BaseChatModel } from '@langchain/core/language_models/chat_models';
6
- import { L as LangChainContent, a as LangChainThreadManagerHooks } from '../../../thread-manager-B5qA4v7V.js';
7
- export { b as LangChainInvocationPayload, c as LangChainThreadManager, d as LangChainThreadManagerConfig, e as createLangChainThreadManager } from '../../../thread-manager-B5qA4v7V.js';
5
+ import { L as LangChainContent, a as LangChainThreadManagerHooks } from '../../../thread-manager-CxbWo7q_.js';
6
+ export { b as LangChainInvocationPayload, c as LangChainThreadManager, d as LangChainThreadManagerConfig, e as createLangChainThreadManager } from '../../../thread-manager-CxbWo7q_.js';
7
+ import '@temporalio/common';
8
8
  import '@temporalio/workflow';
9
9
  import '@temporalio/common/lib/interfaces';
10
10
  import 'zod';
11
- import '@temporalio/common';
12
11
  import '../../../types-ChAMwU3q.js';
13
- import '../../../types-BZ75HpYd.js';
12
+ import '../../../types-DAv_SLN8.js';
14
13
 
15
14
  declare const ADAPTER_PREFIX: "langChain";
16
15
  type LangChainThreadOps<TScope extends string = ""> = PrefixedThreadOps<ScopedPrefix<TScope, typeof ADAPTER_PREFIX>, LangChainContent>;
@@ -1,15 +1,14 @@
1
1
  import { ActivityInterfaceFor } from '@temporalio/workflow';
2
- import { T as ThreadOps } from '../../../types-BuCEZ4dF.cjs';
3
- import { L as LangChainContent } from '../../../thread-manager-DdVFl1IY.cjs';
4
- import { c as createThreadOpsProxy } from '../../../proxy-CsB8r0RR.cjs';
2
+ import { T as ThreadOps } from '../../../types-seDYom4M.cjs';
3
+ import { L as LangChainContent } from '../../../thread-manager-BRE5KkHB.cjs';
4
+ import { c as createThreadOpsProxy } from '../../../proxy-Bm2UTiO_.cjs';
5
5
  import '@temporalio/common';
6
- import '../../../types-BclYm5Ic.cjs';
7
6
  import '@temporalio/common/lib/interfaces';
8
7
  import 'zod';
9
8
  import '../../../types-ChAMwU3q.cjs';
10
9
  import 'ioredis';
11
10
  import '@langchain/core/messages';
12
- import '../../../types-HbjqzyJH.cjs';
11
+ import '../../../types-Dpz2gXLk.cjs';
13
12
 
14
13
  /**
15
14
  * Workflow-safe proxy for LangChain thread operations.
@@ -1,15 +1,14 @@
1
1
  import { ActivityInterfaceFor } from '@temporalio/workflow';
2
- import { T as ThreadOps } from '../../../types-BtqbM1bO.js';
3
- import { L as LangChainContent } from '../../../thread-manager-B5qA4v7V.js';
4
- import { c as createThreadOpsProxy } from '../../../proxy-7e7v8ccg.js';
2
+ import { T as ThreadOps } from '../../../types-BkVoEyiH.js';
3
+ import { L as LangChainContent } from '../../../thread-manager-CxbWo7q_.js';
4
+ import { c as createThreadOpsProxy } from '../../../proxy-78nc985d.js';
5
5
  import '@temporalio/common';
6
- import '../../../types-BclYm5Ic.js';
7
6
  import '@temporalio/common/lib/interfaces';
8
7
  import 'zod';
9
8
  import '../../../types-ChAMwU3q.js';
10
9
  import 'ioredis';
11
10
  import '@langchain/core/messages';
12
- import '../../../types-BZ75HpYd.js';
11
+ import '../../../types-DAv_SLN8.js';
13
12
 
14
13
  /**
15
14
  * Workflow-safe proxy for LangChain thread operations.