zeitlich 0.2.17 → 0.2.18
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/adapters/sandbox/virtual/index.d.cts +3 -3
- package/dist/adapters/sandbox/virtual/index.d.ts +3 -3
- package/dist/adapters/thread/google-genai/index.d.cts +2 -2
- package/dist/adapters/thread/google-genai/index.d.ts +2 -2
- package/dist/adapters/thread/langchain/index.d.cts +2 -2
- package/dist/adapters/thread/langchain/index.d.ts +2 -2
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{queries-DlJ3jE48.d.cts → queries-DnX72m_Y.d.cts} +1 -1
- package/dist/{queries-BlC1I3DK.d.ts → queries-TwukRZ8b.d.ts} +1 -1
- package/dist/{types-NkiAxU4t.d.ts → types-CdB2D5Sq.d.ts} +2 -2
- package/dist/{types-BMXzv7TN.d.cts → types-CmOSypVk.d.cts} +2 -2
- package/dist/{types-BMXzv7TN.d.ts → types-CmOSypVk.d.ts} +2 -2
- package/dist/{types-Bh-BbfCp.d.cts → types-DRvq2miV.d.cts} +2 -2
- package/dist/workflow.cjs +4 -2
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.d.cts +7 -7
- package/dist/workflow.d.ts +7 -7
- package/dist/workflow.js +4 -2
- package/dist/workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/subagent/define.ts +1 -1
- package/src/lib/subagent/register.ts +7 -4
- package/src/lib/subagent/subagent.integration.test.ts +116 -67
- package/src/lib/subagent/types.ts +1 -1
- package/src/lib/tool-router/router.ts +2 -1
- package/src/lib/tool-router/types.ts +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as FileEntryMetadata, V as VirtualSandboxCreateOptions, a as FileResolver, b as VirtualSandboxContext, T as TreeMutation, c as FileEntry, d as VirtualSandbox } from '../../../queries-
|
|
2
|
-
export { e as FileTreeAccessor, f as VirtualFileTree, g as VirtualSandboxFileSystem, h as VirtualSandboxState, i as filesWithMimeType, j as hasDirectory, k as hasFileWithMimeType } from '../../../queries-
|
|
1
|
+
import { F as FileEntryMetadata, V as VirtualSandboxCreateOptions, a as FileResolver, b as VirtualSandboxContext, T as TreeMutation, c as FileEntry, d as VirtualSandbox } from '../../../queries-DnX72m_Y.cjs';
|
|
2
|
+
export { e as FileTreeAccessor, f as VirtualFileTree, g as VirtualSandboxFileSystem, h as VirtualSandboxState, i as filesWithMimeType, j as hasDirectory, k as hasFileWithMimeType } from '../../../queries-DnX72m_Y.cjs';
|
|
3
3
|
import { b as SandboxProvider, c as SandboxCapabilities, e as SandboxCreateResult } from '../../../types-BMRzfELQ.cjs';
|
|
4
4
|
import { WorkflowClient } from '@temporalio/client';
|
|
5
|
-
import { A as ActivityToolHandler } from '../../../types-
|
|
5
|
+
import { A as ActivityToolHandler } from '../../../types-CmOSypVk.cjs';
|
|
6
6
|
import '@temporalio/common';
|
|
7
7
|
import 'zod';
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as FileEntryMetadata, V as VirtualSandboxCreateOptions, a as FileResolver, b as VirtualSandboxContext, T as TreeMutation, c as FileEntry, d as VirtualSandbox } from '../../../queries-
|
|
2
|
-
export { e as FileTreeAccessor, f as VirtualFileTree, g as VirtualSandboxFileSystem, h as VirtualSandboxState, i as filesWithMimeType, j as hasDirectory, k as hasFileWithMimeType } from '../../../queries-
|
|
1
|
+
import { F as FileEntryMetadata, V as VirtualSandboxCreateOptions, a as FileResolver, b as VirtualSandboxContext, T as TreeMutation, c as FileEntry, d as VirtualSandbox } from '../../../queries-TwukRZ8b.js';
|
|
2
|
+
export { e as FileTreeAccessor, f as VirtualFileTree, g as VirtualSandboxFileSystem, h as VirtualSandboxState, i as filesWithMimeType, j as hasDirectory, k as hasFileWithMimeType } from '../../../queries-TwukRZ8b.js';
|
|
3
3
|
import { b as SandboxProvider, c as SandboxCapabilities, e as SandboxCreateResult } from '../../../types-BMRzfELQ.js';
|
|
4
4
|
import { WorkflowClient } from '@temporalio/client';
|
|
5
|
-
import { A as ActivityToolHandler } from '../../../types-
|
|
5
|
+
import { A as ActivityToolHandler } from '../../../types-CmOSypVk.js';
|
|
6
6
|
import '@temporalio/common';
|
|
7
7
|
import 'zod';
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import { Content, GoogleGenAI, Part } from '@google/genai';
|
|
3
|
-
import { T as ThreadOps, M as ModelInvoker, a as ModelInvokerConfig, A as AgentResponse } from '../../../types-
|
|
3
|
+
import { T as ThreadOps, M as ModelInvoker, a as ModelInvokerConfig, A as AgentResponse } from '../../../types-DRvq2miV.cjs';
|
|
4
4
|
import { B as BaseThreadManager } from '../../../types-35POpVfa.cjs';
|
|
5
|
-
import { M as MessageContent, T as ToolMessageContent } from '../../../types-
|
|
5
|
+
import { M as MessageContent, T as ToolMessageContent } from '../../../types-CmOSypVk.cjs';
|
|
6
6
|
import '@temporalio/common';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../../../types-BMRzfELQ.cjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
2
|
import { Content, GoogleGenAI, Part } from '@google/genai';
|
|
3
|
-
import { T as ThreadOps, M as ModelInvoker, a as ModelInvokerConfig, A as AgentResponse } from '../../../types-
|
|
3
|
+
import { T as ThreadOps, M as ModelInvoker, a as ModelInvokerConfig, A as AgentResponse } from '../../../types-CdB2D5Sq.js';
|
|
4
4
|
import { B as BaseThreadManager } from '../../../types-35POpVfa.js';
|
|
5
|
-
import { M as MessageContent, T as ToolMessageContent } from '../../../types-
|
|
5
|
+
import { M as MessageContent, T as ToolMessageContent } from '../../../types-CmOSypVk.js';
|
|
6
6
|
import '@temporalio/common';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../../../types-BMRzfELQ.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
|
-
import { T as ThreadOps, M as ModelInvoker, a as ModelInvokerConfig, A as AgentResponse } from '../../../types-
|
|
2
|
+
import { T as ThreadOps, M as ModelInvoker, a as ModelInvokerConfig, A as AgentResponse } from '../../../types-DRvq2miV.cjs';
|
|
3
3
|
import { StoredMessage, MessageContent, $InferMessageContent, MessageStructure } from '@langchain/core/messages';
|
|
4
4
|
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
|
|
5
5
|
import { B as BaseThreadManager } from '../../../types-35POpVfa.cjs';
|
|
6
6
|
import '@temporalio/common';
|
|
7
|
-
import '../../../types-
|
|
7
|
+
import '../../../types-CmOSypVk.cjs';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import '../../../types-BMRzfELQ.cjs';
|
|
10
10
|
import '@temporalio/workflow';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Redis from 'ioredis';
|
|
2
|
-
import { T as ThreadOps, M as ModelInvoker, a as ModelInvokerConfig, A as AgentResponse } from '../../../types-
|
|
2
|
+
import { T as ThreadOps, M as ModelInvoker, a as ModelInvokerConfig, A as AgentResponse } from '../../../types-CdB2D5Sq.js';
|
|
3
3
|
import { StoredMessage, MessageContent, $InferMessageContent, MessageStructure } from '@langchain/core/messages';
|
|
4
4
|
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
|
|
5
5
|
import { B as BaseThreadManager } from '../../../types-35POpVfa.js';
|
|
6
6
|
import '@temporalio/common';
|
|
7
|
-
import '../../../types-
|
|
7
|
+
import '../../../types-CmOSypVk.js';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import '../../../types-BMRzfELQ.js';
|
|
10
10
|
import '@temporalio/workflow';
|
package/dist/index.cjs
CHANGED
|
@@ -17,7 +17,7 @@ function createToolRouter(options) {
|
|
|
17
17
|
for (const [_key, tool] of Object.entries(options.tools)) {
|
|
18
18
|
toolMap.set(tool.name, tool);
|
|
19
19
|
}
|
|
20
|
-
const isEnabled = (tool) => tool.enabled ?? true;
|
|
20
|
+
const isEnabled = (tool) => typeof tool.enabled === "function" ? tool.enabled() : tool.enabled ?? true;
|
|
21
21
|
if (options.plugins) {
|
|
22
22
|
for (const plugin of options.plugins) {
|
|
23
23
|
toolMap.set(plugin.name, plugin);
|
|
@@ -387,7 +387,9 @@ function createSubagentHandler(subagents) {
|
|
|
387
387
|
// src/lib/subagent/register.ts
|
|
388
388
|
function buildSubagentRegistration(subagents) {
|
|
389
389
|
if (subagents.length === 0) return null;
|
|
390
|
-
const getEnabled = () => subagents.filter(
|
|
390
|
+
const getEnabled = () => subagents.filter(
|
|
391
|
+
(s) => typeof s.enabled === "function" ? s.enabled() : s.enabled ?? true
|
|
392
|
+
);
|
|
391
393
|
const subagentHooksMap = /* @__PURE__ */ new Map();
|
|
392
394
|
for (const s of subagents) {
|
|
393
395
|
if (s.hooks) subagentHooksMap.set(s.agentName, s.hooks);
|