beeai-framework 0.1.2 → 0.1.3
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/README.md +47 -130
- package/dist/adapters/amazon-bedrock/backend/chat.d.cts +1 -1
- package/dist/adapters/amazon-bedrock/backend/chat.d.ts +1 -1
- package/dist/adapters/amazon-bedrock/backend/embedding.d.cts +1 -1
- package/dist/adapters/amazon-bedrock/backend/embedding.d.ts +1 -1
- package/dist/adapters/anthropic/backend/chat.d.cts +1 -1
- package/dist/adapters/anthropic/backend/chat.d.ts +1 -1
- package/dist/adapters/anthropic/backend/embedding.d.cts +1 -1
- package/dist/adapters/anthropic/backend/embedding.d.ts +1 -1
- package/dist/adapters/azure-openai/backend/chat.d.cts +1 -1
- package/dist/adapters/azure-openai/backend/chat.d.ts +1 -1
- package/dist/adapters/azure-openai/backend/embedding.d.cts +1 -1
- package/dist/adapters/azure-openai/backend/embedding.d.ts +1 -1
- package/dist/adapters/dummy/backend/chat.d.cts +1 -1
- package/dist/adapters/dummy/backend/chat.d.ts +1 -1
- package/dist/adapters/dummy/backend/embedding.d.cts +1 -1
- package/dist/adapters/dummy/backend/embedding.d.ts +1 -1
- package/dist/adapters/google-vertex/backend/chat.d.cts +1 -1
- package/dist/adapters/google-vertex/backend/chat.d.ts +1 -1
- package/dist/adapters/google-vertex/backend/embedding.d.cts +1 -1
- package/dist/adapters/google-vertex/backend/embedding.d.ts +1 -1
- package/dist/adapters/groq/backend/chat.d.cts +1 -1
- package/dist/adapters/groq/backend/chat.d.ts +1 -1
- package/dist/adapters/groq/backend/client.cjs +3 -3
- package/dist/adapters/groq/backend/client.cjs.map +1 -1
- package/dist/adapters/groq/backend/client.d.cts +1 -1
- package/dist/adapters/groq/backend/client.d.ts +1 -1
- package/dist/adapters/groq/backend/client.js +3 -3
- package/dist/adapters/groq/backend/client.js.map +1 -1
- package/dist/adapters/groq/backend/embedding.d.cts +1 -1
- package/dist/adapters/groq/backend/embedding.d.ts +1 -1
- package/dist/adapters/langchain/backend/chat.d.cts +1 -1
- package/dist/adapters/langchain/backend/chat.d.ts +1 -1
- package/dist/adapters/langchain/backend/embedding.d.cts +1 -1
- package/dist/adapters/langchain/backend/embedding.d.ts +1 -1
- package/dist/adapters/langchain/tools.d.cts +1 -1
- package/dist/adapters/langchain/tools.d.ts +1 -1
- package/dist/adapters/ollama/backend/chat.d.cts +1 -1
- package/dist/adapters/ollama/backend/chat.d.ts +1 -1
- package/dist/adapters/ollama/backend/client.cjs +3 -3
- package/dist/adapters/ollama/backend/client.cjs.map +1 -1
- package/dist/adapters/ollama/backend/client.d.cts +1 -1
- package/dist/adapters/ollama/backend/client.d.ts +1 -1
- package/dist/adapters/ollama/backend/client.js +3 -3
- package/dist/adapters/ollama/backend/client.js.map +1 -1
- package/dist/adapters/ollama/backend/embedding.d.cts +1 -1
- package/dist/adapters/ollama/backend/embedding.d.ts +1 -1
- package/dist/adapters/openai/backend/chat.d.cts +1 -1
- package/dist/adapters/openai/backend/chat.d.ts +1 -1
- package/dist/adapters/openai/backend/embedding.d.cts +1 -1
- package/dist/adapters/openai/backend/embedding.d.ts +1 -1
- package/dist/adapters/vercel/backend/chat.d.cts +1 -1
- package/dist/adapters/vercel/backend/chat.d.ts +1 -1
- package/dist/adapters/vercel/backend/embedding.d.cts +1 -1
- package/dist/adapters/vercel/backend/embedding.d.ts +1 -1
- package/dist/adapters/watsonx/backend/chat.cjs +4 -7
- package/dist/adapters/watsonx/backend/chat.cjs.map +1 -1
- package/dist/adapters/watsonx/backend/chat.d.cts +1 -1
- package/dist/adapters/watsonx/backend/chat.d.ts +1 -1
- package/dist/adapters/watsonx/backend/chat.js +4 -7
- package/dist/adapters/watsonx/backend/chat.js.map +1 -1
- package/dist/adapters/watsonx/backend/embedding.d.cts +1 -1
- package/dist/adapters/watsonx/backend/embedding.d.ts +1 -1
- package/dist/{agent-Bks2fOUl.d.ts → agent-D9gpIPf2.d.ts} +2 -2
- package/dist/{agent-BbaHVlob.d.cts → agent-xmwFrFrh.d.cts} +2 -2
- package/dist/agents/base.d.cts +2 -2
- package/dist/agents/base.d.ts +2 -2
- package/dist/agents/bee/agent.d.cts +3 -3
- package/dist/agents/bee/agent.d.ts +3 -3
- package/dist/agents/bee/runners/base.d.cts +3 -3
- package/dist/agents/bee/runners/base.d.ts +3 -3
- package/dist/agents/bee/runners/deep-think/runner.d.cts +3 -3
- package/dist/agents/bee/runners/deep-think/runner.d.ts +3 -3
- package/dist/agents/bee/runners/default/runner.d.cts +3 -3
- package/dist/agents/bee/runners/default/runner.d.ts +3 -3
- package/dist/agents/bee/runners/granite/runner.d.cts +3 -3
- package/dist/agents/bee/runners/granite/runner.d.ts +3 -3
- package/dist/agents/bee/types.d.cts +1 -1
- package/dist/agents/bee/types.d.ts +1 -1
- package/dist/agents/experimental/replan/agent.d.cts +2 -2
- package/dist/agents/experimental/replan/agent.d.ts +2 -2
- package/dist/agents/experimental/replan/prompts.d.cts +1 -1
- package/dist/agents/experimental/replan/prompts.d.ts +1 -1
- package/dist/agents/experimental/streamlit/agent.d.cts +2 -2
- package/dist/agents/experimental/streamlit/agent.d.ts +2 -2
- package/dist/agents/types.d.cts +2 -2
- package/dist/agents/types.d.ts +2 -2
- package/dist/backend/backend.d.cts +1 -1
- package/dist/backend/backend.d.ts +1 -1
- package/dist/backend/chat.d.cts +1 -1
- package/dist/backend/chat.d.ts +1 -1
- package/dist/backend/core.d.cts +1 -1
- package/dist/backend/core.d.ts +1 -1
- package/dist/backend/embedding.d.cts +1 -1
- package/dist/backend/embedding.d.ts +1 -1
- package/dist/{base-Csr9guq2.d.cts → base-daM6fHUP.d.cts} +1 -1
- package/dist/{base-DHhpWHQm.d.ts → base-mmG-8Pk9.d.ts} +1 -1
- package/dist/context.d.cts +1 -1
- package/dist/context.d.ts +1 -1
- package/dist/emitter/emitter.d.cts +1 -1
- package/dist/emitter/emitter.d.ts +1 -1
- package/dist/emitter/types.d.cts +1 -1
- package/dist/emitter/types.d.ts +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/instrumentation/create-telemetry-middleware.d.cts +1 -1
- package/dist/instrumentation/create-telemetry-middleware.d.ts +1 -1
- package/dist/instrumentation/helpers/utils.d.cts +1 -1
- package/dist/instrumentation/helpers/utils.d.ts +1 -1
- package/dist/internals/fetcher.d.cts +1 -1
- package/dist/internals/fetcher.d.ts +1 -1
- package/dist/internals/helpers/hash.cjs +5 -3
- package/dist/internals/helpers/hash.cjs.map +1 -1
- package/dist/internals/helpers/hash.js +5 -3
- package/dist/internals/helpers/hash.js.map +1 -1
- package/dist/memory/summarizeMemory.d.cts +1 -1
- package/dist/memory/summarizeMemory.d.ts +1 -1
- package/dist/parsers/linePrefix.d.cts +1 -1
- package/dist/parsers/linePrefix.d.ts +1 -1
- package/dist/tools/arxiv.d.cts +1 -1
- package/dist/tools/arxiv.d.ts +1 -1
- package/dist/tools/base.d.cts +1 -1
- package/dist/tools/base.d.ts +1 -1
- package/dist/tools/calculator.d.cts +1 -1
- package/dist/tools/calculator.d.ts +1 -1
- package/dist/tools/custom.d.cts +1 -1
- package/dist/tools/custom.d.ts +1 -1
- package/dist/tools/database/elasticsearch.d.cts +1 -1
- package/dist/tools/database/elasticsearch.d.ts +1 -1
- package/dist/tools/database/milvus.d.cts +1 -1
- package/dist/tools/database/milvus.d.ts +1 -1
- package/dist/tools/database/sql.d.cts +1 -1
- package/dist/tools/database/sql.d.ts +1 -1
- package/dist/tools/llm.d.cts +1 -1
- package/dist/tools/llm.d.ts +1 -1
- package/dist/tools/mcp.d.cts +1 -1
- package/dist/tools/mcp.d.ts +1 -1
- package/dist/tools/openapi.d.cts +1 -1
- package/dist/tools/openapi.d.ts +1 -1
- package/dist/tools/python/output.d.cts +1 -1
- package/dist/tools/python/output.d.ts +1 -1
- package/dist/tools/python/python.d.cts +1 -1
- package/dist/tools/python/python.d.ts +1 -1
- package/dist/tools/search/base.d.cts +1 -1
- package/dist/tools/search/base.d.ts +1 -1
- package/dist/tools/search/duckDuckGoSearch.d.cts +1 -1
- package/dist/tools/search/duckDuckGoSearch.d.ts +1 -1
- package/dist/tools/search/googleSearch.d.cts +1 -1
- package/dist/tools/search/googleSearch.d.ts +1 -1
- package/dist/tools/search/searXNGSearch.d.cts +1 -1
- package/dist/tools/search/searXNGSearch.d.ts +1 -1
- package/dist/tools/search/wikipedia.d.cts +1 -1
- package/dist/tools/search/wikipedia.d.ts +1 -1
- package/dist/tools/similarity.d.cts +1 -1
- package/dist/tools/similarity.d.ts +1 -1
- package/dist/tools/weather/openMeteo.d.cts +1 -1
- package/dist/tools/weather/openMeteo.d.ts +1 -1
- package/dist/tools/web/webCrawler.d.cts +1 -1
- package/dist/tools/web/webCrawler.d.ts +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/workflows/agent.d.cts +10 -10
- package/dist/workflows/agent.d.ts +10 -10
- package/dist/workflows/workflow.cjs +2 -2
- package/dist/workflows/workflow.cjs.map +1 -1
- package/dist/workflows/workflow.d.cts +1 -1
- package/dist/workflows/workflow.d.ts +1 -1
- package/dist/workflows/workflow.js +2 -2
- package/dist/workflows/workflow.js.map +1 -1
- package/package.json +9 -8
- package/dist/{emitter-l0W9gC1A.d.ts → emitter-BxVxGBbJ.d.ts} +1 -1
- package/dist/{emitter-BWtGHYn0.d.cts → emitter-C9EN5B0j.d.cts} +1 -1
|
@@ -4,9 +4,9 @@ import { PromptTemplate } from '../../../../template.js';
|
|
|
4
4
|
import { AnyTool } from '../../../../tools/base.js';
|
|
5
5
|
import { DefaultRunner } from '../default/runner.js';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { B as BeeInput, a as BeeAgent } from '../../../../agent-
|
|
7
|
+
import { B as BeeInput, a as BeeAgent } from '../../../../agent-D9gpIPf2.js';
|
|
8
8
|
import { GetRunContext } from '../../../../context.js';
|
|
9
|
-
import '../../../../emitter-
|
|
9
|
+
import '../../../../emitter-BxVxGBbJ.js';
|
|
10
10
|
import '../../../../internals/types.js';
|
|
11
11
|
import '../../../../internals/helpers/guards.js';
|
|
12
12
|
import '../../../../internals/serializable.js';
|
|
@@ -29,7 +29,7 @@ import '@ai-sdk/provider';
|
|
|
29
29
|
import '../../../../internals/helpers/promise.js';
|
|
30
30
|
import '../../../../internals/helpers/schema.js';
|
|
31
31
|
import 'zod-to-json-schema';
|
|
32
|
-
import '../../../../base-
|
|
32
|
+
import '../../../../base-mmG-8Pk9.js';
|
|
33
33
|
import '../../../../internals/helpers/counter.js';
|
|
34
34
|
|
|
35
35
|
declare class DeepThinkRunner extends DefaultRunner {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptTemplate } from '../../../../template.cjs';
|
|
2
|
-
import { b as BaseRunner, c as BeeRunnerLLMInput, d as BeeRunnerToolInput } from '../../../../agent-
|
|
2
|
+
import { b as BaseRunner, c as BeeRunnerLLMInput, d as BeeRunnerToolInput } from '../../../../agent-xmwFrFrh.cjs';
|
|
3
3
|
import { BeeAgentRunIteration, BeeRunInput, BeeParserInput } from '../../types.cjs';
|
|
4
4
|
import { AnyTool } from '../../../../tools/base.cjs';
|
|
5
5
|
import { LinePrefixParser } from '../../../../parsers/linePrefix.cjs';
|
|
@@ -12,9 +12,9 @@ import '../../../../internals/helpers/guards.cjs';
|
|
|
12
12
|
import '../../../../internals/serializable.cjs';
|
|
13
13
|
import 'ajv';
|
|
14
14
|
import '../../../../context.cjs';
|
|
15
|
-
import '../../../../emitter-
|
|
15
|
+
import '../../../../emitter-C9EN5B0j.cjs';
|
|
16
16
|
import '../../../../internals/helpers/promise.cjs';
|
|
17
|
-
import '../../../../base-
|
|
17
|
+
import '../../../../base-daM6fHUP.cjs';
|
|
18
18
|
import '../../../../backend/chat.cjs';
|
|
19
19
|
import 'ai';
|
|
20
20
|
import 'promise-based-task';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptTemplate } from '../../../../template.js';
|
|
2
|
-
import { b as BaseRunner, c as BeeRunnerLLMInput, d as BeeRunnerToolInput } from '../../../../agent-
|
|
2
|
+
import { b as BaseRunner, c as BeeRunnerLLMInput, d as BeeRunnerToolInput } from '../../../../agent-D9gpIPf2.js';
|
|
3
3
|
import { BeeAgentRunIteration, BeeRunInput, BeeParserInput } from '../../types.js';
|
|
4
4
|
import { AnyTool } from '../../../../tools/base.js';
|
|
5
5
|
import { LinePrefixParser } from '../../../../parsers/linePrefix.js';
|
|
@@ -12,9 +12,9 @@ import '../../../../internals/helpers/guards.js';
|
|
|
12
12
|
import '../../../../internals/serializable.js';
|
|
13
13
|
import 'ajv';
|
|
14
14
|
import '../../../../context.js';
|
|
15
|
-
import '../../../../emitter-
|
|
15
|
+
import '../../../../emitter-BxVxGBbJ.js';
|
|
16
16
|
import '../../../../internals/helpers/promise.js';
|
|
17
|
-
import '../../../../base-
|
|
17
|
+
import '../../../../base-mmG-8Pk9.js';
|
|
18
18
|
import '../../../../backend/chat.js';
|
|
19
19
|
import 'ai';
|
|
20
20
|
import 'promise-based-task';
|
|
@@ -4,9 +4,9 @@ import * as zod from 'zod';
|
|
|
4
4
|
import { AnyTool } from '../../../../tools/base.cjs';
|
|
5
5
|
import { DefaultRunner } from '../default/runner.cjs';
|
|
6
6
|
import { BeeRunOptions, BeeParserInput } from '../../types.cjs';
|
|
7
|
-
import { B as BeeInput, a as BeeAgent } from '../../../../agent-
|
|
7
|
+
import { B as BeeInput, a as BeeAgent } from '../../../../agent-xmwFrFrh.cjs';
|
|
8
8
|
import { GetRunContext } from '../../../../context.cjs';
|
|
9
|
-
import '../../../../emitter-
|
|
9
|
+
import '../../../../emitter-C9EN5B0j.cjs';
|
|
10
10
|
import '../../../../internals/types.cjs';
|
|
11
11
|
import '../../../../internals/helpers/guards.cjs';
|
|
12
12
|
import '../../../../internals/serializable.cjs';
|
|
@@ -24,7 +24,7 @@ import '../../../../internals/helpers/promise.cjs';
|
|
|
24
24
|
import '../../../../backend/message.cjs';
|
|
25
25
|
import 'ai';
|
|
26
26
|
import '../../../../memory/base.cjs';
|
|
27
|
-
import '../../../../base-
|
|
27
|
+
import '../../../../base-daM6fHUP.cjs';
|
|
28
28
|
import '../../../../backend/chat.cjs';
|
|
29
29
|
import '../../../../backend/utils.cjs';
|
|
30
30
|
import '../../../../backend/constants.cjs';
|
|
@@ -4,9 +4,9 @@ import * as zod from 'zod';
|
|
|
4
4
|
import { AnyTool } from '../../../../tools/base.js';
|
|
5
5
|
import { DefaultRunner } from '../default/runner.js';
|
|
6
6
|
import { BeeRunOptions, BeeParserInput } from '../../types.js';
|
|
7
|
-
import { B as BeeInput, a as BeeAgent } from '../../../../agent-
|
|
7
|
+
import { B as BeeInput, a as BeeAgent } from '../../../../agent-D9gpIPf2.js';
|
|
8
8
|
import { GetRunContext } from '../../../../context.js';
|
|
9
|
-
import '../../../../emitter-
|
|
9
|
+
import '../../../../emitter-BxVxGBbJ.js';
|
|
10
10
|
import '../../../../internals/types.js';
|
|
11
11
|
import '../../../../internals/helpers/guards.js';
|
|
12
12
|
import '../../../../internals/serializable.js';
|
|
@@ -24,7 +24,7 @@ import '../../../../internals/helpers/promise.js';
|
|
|
24
24
|
import '../../../../backend/message.js';
|
|
25
25
|
import 'ai';
|
|
26
26
|
import '../../../../memory/base.js';
|
|
27
|
-
import '../../../../base-
|
|
27
|
+
import '../../../../base-mmG-8Pk9.js';
|
|
28
28
|
import '../../../../backend/chat.js';
|
|
29
29
|
import '../../../../backend/utils.js';
|
|
30
30
|
import '../../../../backend/constants.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseMemory } from '../../memory/base.cjs';
|
|
2
2
|
import { Message } from '../../backend/message.cjs';
|
|
3
|
-
import { C as Callback } from '../../emitter-
|
|
3
|
+
import { C as Callback } from '../../emitter-C9EN5B0j.cjs';
|
|
4
4
|
import { AnyTool, BaseToolRunOptions, ToolOutput, ToolError } from '../../tools/base.cjs';
|
|
5
5
|
import { BeeSystemPrompt, BeeAssistantPrompt, BeeUserPrompt, BeeUserEmptyPrompt, BeeToolErrorPrompt, BeeToolInputErrorPrompt, BeeToolNoResultsPrompt, BeeToolNotFoundPrompt, BeeSchemaErrorPrompt } from './prompts.cjs';
|
|
6
6
|
import { LinePrefixParser } from '../../parsers/linePrefix.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseMemory } from '../../memory/base.js';
|
|
2
2
|
import { Message } from '../../backend/message.js';
|
|
3
|
-
import { C as Callback } from '../../emitter-
|
|
3
|
+
import { C as Callback } from '../../emitter-BxVxGBbJ.js';
|
|
4
4
|
import { AnyTool, BaseToolRunOptions, ToolOutput, ToolError } from '../../tools/base.js';
|
|
5
5
|
import { BeeSystemPrompt, BeeAssistantPrompt, BeeUserPrompt, BeeUserEmptyPrompt, BeeToolErrorPrompt, BeeToolInputErrorPrompt, BeeToolNoResultsPrompt, BeeToolNotFoundPrompt, BeeSchemaErrorPrompt } from './prompts.js';
|
|
6
6
|
import { LinePrefixParser } from '../../parsers/linePrefix.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Callback, E as Emitter } from '../../../emitter-
|
|
2
|
-
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-
|
|
1
|
+
import { C as Callback, E as Emitter } from '../../../emitter-C9EN5B0j.cjs';
|
|
2
|
+
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-daM6fHUP.cjs';
|
|
3
3
|
import { GetRunContext } from '../../../context.cjs';
|
|
4
4
|
import { Message } from '../../../backend/message.cjs';
|
|
5
5
|
import { RePlanState } from './prompts.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Callback, E as Emitter } from '../../../emitter-
|
|
2
|
-
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-
|
|
1
|
+
import { C as Callback, E as Emitter } from '../../../emitter-BxVxGBbJ.js';
|
|
2
|
+
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-mmG-8Pk9.js';
|
|
3
3
|
import { GetRunContext } from '../../../context.js';
|
|
4
4
|
import { Message } from '../../../backend/message.js';
|
|
5
5
|
import { RePlanState } from './prompts.js';
|
|
@@ -7,7 +7,7 @@ import '../../../internals/types.cjs';
|
|
|
7
7
|
import '../../../internals/helpers/guards.cjs';
|
|
8
8
|
import '../../../internals/serializable.cjs';
|
|
9
9
|
import '../../../context.cjs';
|
|
10
|
-
import '../../../emitter-
|
|
10
|
+
import '../../../emitter-C9EN5B0j.cjs';
|
|
11
11
|
import '../../../internals/helpers/promise.cjs';
|
|
12
12
|
import 'promise-based-task';
|
|
13
13
|
import '../../../cache/base.cjs';
|
|
@@ -7,7 +7,7 @@ import '../../../internals/types.js';
|
|
|
7
7
|
import '../../../internals/helpers/guards.js';
|
|
8
8
|
import '../../../internals/serializable.js';
|
|
9
9
|
import '../../../context.js';
|
|
10
|
-
import '../../../emitter-
|
|
10
|
+
import '../../../emitter-BxVxGBbJ.js';
|
|
11
11
|
import '../../../internals/helpers/promise.js';
|
|
12
12
|
import 'promise-based-task';
|
|
13
13
|
import '../../../cache/base.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as BaseAgent, b as AgentMeta, B as BaseAgentRunOptions } from '../../../base-
|
|
1
|
+
import { a as BaseAgent, b as AgentMeta, B as BaseAgentRunOptions } from '../../../base-daM6fHUP.cjs';
|
|
2
2
|
import { GetRunContext } from '../../../context.cjs';
|
|
3
|
-
import { C as Callback, E as Emitter } from '../../../emitter-
|
|
3
|
+
import { C as Callback, E as Emitter } from '../../../emitter-C9EN5B0j.cjs';
|
|
4
4
|
import { BaseMemory } from '../../../memory/base.cjs';
|
|
5
5
|
import { Message, UserMessage } from '../../../backend/message.cjs';
|
|
6
6
|
import { StreamlitAgentTemplates } from './prompts.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as BaseAgent, b as AgentMeta, B as BaseAgentRunOptions } from '../../../base-
|
|
1
|
+
import { a as BaseAgent, b as AgentMeta, B as BaseAgentRunOptions } from '../../../base-mmG-8Pk9.js';
|
|
2
2
|
import { GetRunContext } from '../../../context.js';
|
|
3
|
-
import { C as Callback, E as Emitter } from '../../../emitter-
|
|
3
|
+
import { C as Callback, E as Emitter } from '../../../emitter-BxVxGBbJ.js';
|
|
4
4
|
import { BaseMemory } from '../../../memory/base.js';
|
|
5
5
|
import { Message, UserMessage } from '../../../backend/message.js';
|
|
6
6
|
import { StreamlitAgentTemplates } from './prompts.js';
|
package/dist/agents/types.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { d as AgentCallback, c as AgentCallbackValue, b as AgentMeta, f as AnyAgent, G as GetAgentInput, e as GetAgentOutput, I as InternalAgentCallbackValue, P as PublicAgentCallbackValue } from '../base-
|
|
1
|
+
export { d as AgentCallback, c as AgentCallbackValue, b as AgentMeta, f as AnyAgent, G as GetAgentInput, e as GetAgentOutput, I as InternalAgentCallbackValue, P as PublicAgentCallbackValue } from '../base-daM6fHUP.cjs';
|
|
2
2
|
import '../internals/types.cjs';
|
|
3
3
|
import '../tools/base.cjs';
|
|
4
4
|
import '../context.cjs';
|
|
5
|
-
import '../emitter-
|
|
5
|
+
import '../emitter-C9EN5B0j.cjs';
|
|
6
6
|
import '../internals/serializable.cjs';
|
|
7
7
|
import '../internals/helpers/guards.cjs';
|
|
8
8
|
import '../internals/helpers/promise.cjs';
|
package/dist/agents/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { d as AgentCallback, c as AgentCallbackValue, b as AgentMeta, f as AnyAgent, G as GetAgentInput, e as GetAgentOutput, I as InternalAgentCallbackValue, P as PublicAgentCallbackValue } from '../base-
|
|
1
|
+
export { d as AgentCallback, c as AgentCallbackValue, b as AgentMeta, f as AnyAgent, G as GetAgentInput, e as GetAgentOutput, I as InternalAgentCallbackValue, P as PublicAgentCallbackValue } from '../base-mmG-8Pk9.js';
|
|
2
2
|
import '../internals/types.js';
|
|
3
3
|
import '../tools/base.js';
|
|
4
4
|
import '../context.js';
|
|
5
|
-
import '../emitter-
|
|
5
|
+
import '../emitter-BxVxGBbJ.js';
|
|
6
6
|
import '../internals/serializable.js';
|
|
7
7
|
import '../internals/helpers/guards.js';
|
|
8
8
|
import '../internals/helpers/promise.js';
|
|
@@ -7,7 +7,7 @@ import { OptionalExcept } from '../internals/types.cjs';
|
|
|
7
7
|
import './message.cjs';
|
|
8
8
|
import 'ai';
|
|
9
9
|
import '../context.cjs';
|
|
10
|
-
import '../emitter-
|
|
10
|
+
import '../emitter-C9EN5B0j.cjs';
|
|
11
11
|
import '../internals/helpers/promise.cjs';
|
|
12
12
|
import '../errors.cjs';
|
|
13
13
|
import 'promise-based-task';
|
|
@@ -7,7 +7,7 @@ import { OptionalExcept } from '../internals/types.js';
|
|
|
7
7
|
import './message.js';
|
|
8
8
|
import 'ai';
|
|
9
9
|
import '../context.js';
|
|
10
|
-
import '../emitter-
|
|
10
|
+
import '../emitter-BxVxGBbJ.js';
|
|
11
11
|
import '../internals/helpers/promise.js';
|
|
12
12
|
import '../errors.js';
|
|
13
13
|
import 'promise-based-task';
|
package/dist/backend/chat.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { Message, MessageContentPart } from './message.cjs';
|
|
|
2
2
|
import * as ai from 'ai';
|
|
3
3
|
import { Run, GetRunContext } from '../context.cjs';
|
|
4
4
|
import { Serializable } from '../internals/serializable.cjs';
|
|
5
|
-
import { C as Callback, E as Emitter } from '../emitter-
|
|
5
|
+
import { C as Callback, E as Emitter } from '../emitter-C9EN5B0j.cjs';
|
|
6
6
|
import { FrameworkError } from '../errors.cjs';
|
|
7
7
|
import { Task } from 'promise-based-task';
|
|
8
8
|
import { BaseCache } from '../cache/base.cjs';
|
package/dist/backend/chat.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Message, MessageContentPart } from './message.js';
|
|
|
2
2
|
import * as ai from 'ai';
|
|
3
3
|
import { Run, GetRunContext } from '../context.js';
|
|
4
4
|
import { Serializable } from '../internals/serializable.js';
|
|
5
|
-
import { C as Callback, E as Emitter } from '../emitter-
|
|
5
|
+
import { C as Callback, E as Emitter } from '../emitter-BxVxGBbJ.js';
|
|
6
6
|
import { FrameworkError } from '../errors.js';
|
|
7
7
|
import { Task } from 'promise-based-task';
|
|
8
8
|
import { BaseCache } from '../cache/base.js';
|
package/dist/backend/core.d.cts
CHANGED
|
@@ -10,7 +10,7 @@ import './utils.cjs';
|
|
|
10
10
|
import './constants.cjs';
|
|
11
11
|
import 'ai';
|
|
12
12
|
import '../context.cjs';
|
|
13
|
-
import '../emitter-
|
|
13
|
+
import '../emitter-C9EN5B0j.cjs';
|
|
14
14
|
import '../internals/helpers/promise.cjs';
|
|
15
15
|
import '../errors.cjs';
|
|
16
16
|
import 'promise-based-task';
|
package/dist/backend/core.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import './utils.js';
|
|
|
10
10
|
import './constants.js';
|
|
11
11
|
import 'ai';
|
|
12
12
|
import '../context.js';
|
|
13
|
-
import '../emitter-
|
|
13
|
+
import '../emitter-BxVxGBbJ.js';
|
|
14
14
|
import '../internals/helpers/promise.js';
|
|
15
15
|
import '../errors.js';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Run, GetRunContext } from '../context.cjs';
|
|
2
2
|
import { Serializable } from '../internals/serializable.cjs';
|
|
3
|
-
import { C as Callback, E as Emitter } from '../emitter-
|
|
3
|
+
import { C as Callback, E as Emitter } from '../emitter-C9EN5B0j.cjs';
|
|
4
4
|
import { FrameworkError } from '../errors.cjs';
|
|
5
5
|
import { FullModelName } from './utils.cjs';
|
|
6
6
|
import { ProviderName } from './constants.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Run, GetRunContext } from '../context.js';
|
|
2
2
|
import { Serializable } from '../internals/serializable.js';
|
|
3
|
-
import { C as Callback, E as Emitter } from '../emitter-
|
|
3
|
+
import { C as Callback, E as Emitter } from '../emitter-BxVxGBbJ.js';
|
|
4
4
|
import { FrameworkError } from '../errors.js';
|
|
5
5
|
import { FullModelName } from './utils.js';
|
|
6
6
|
import { ProviderName } from './constants.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Run, GetRunContext } from './context.cjs';
|
|
2
2
|
import { FrameworkError } from './errors.cjs';
|
|
3
3
|
import { Serializable } from './internals/serializable.cjs';
|
|
4
|
-
import { E as Emitter } from './emitter-
|
|
4
|
+
import { E as Emitter } from './emitter-C9EN5B0j.cjs';
|
|
5
5
|
import { BaseMemory } from './memory/base.cjs';
|
|
6
6
|
import { OmitEmpty } from './internals/types.cjs';
|
|
7
7
|
import { AnyTool } from './tools/base.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Run, GetRunContext } from './context.js';
|
|
2
2
|
import { FrameworkError } from './errors.js';
|
|
3
3
|
import { Serializable } from './internals/serializable.js';
|
|
4
|
-
import { E as Emitter } from './emitter-
|
|
4
|
+
import { E as Emitter } from './emitter-BxVxGBbJ.js';
|
|
5
5
|
import { BaseMemory } from './memory/base.js';
|
|
6
6
|
import { OmitEmpty } from './internals/types.js';
|
|
7
7
|
import { AnyTool } from './tools/base.js';
|
package/dist/context.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Emitter, C as Callback } from './emitter-
|
|
1
|
+
import { E as Emitter, C as Callback } from './emitter-C9EN5B0j.cjs';
|
|
2
2
|
import { Serializable } from './internals/serializable.cjs';
|
|
3
3
|
import { LazyPromise } from './internals/helpers/promise.cjs';
|
|
4
4
|
import './internals/types.cjs';
|
package/dist/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Emitter, C as Callback } from './emitter-
|
|
1
|
+
import { E as Emitter, C as Callback } from './emitter-BxVxGBbJ.js';
|
|
2
2
|
import { Serializable } from './internals/serializable.js';
|
|
3
3
|
import { LazyPromise } from './internals/helpers/promise.js';
|
|
4
4
|
import './internals/types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Callback, E as Emitter, g as EmitterChildInput, f as EmitterInput, e as EventMeta, d as EventTrace } from '../emitter-
|
|
1
|
+
export { C as Callback, E as Emitter, g as EmitterChildInput, f as EmitterInput, e as EventMeta, d as EventTrace } from '../emitter-C9EN5B0j.cjs';
|
|
2
2
|
import '../internals/types.cjs';
|
|
3
3
|
import '../internals/serializable.cjs';
|
|
4
4
|
import '../internals/helpers/guards.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Callback, E as Emitter, g as EmitterChildInput, f as EmitterInput, e as EventMeta, d as EventTrace } from '../emitter-
|
|
1
|
+
export { C as Callback, E as Emitter, g as EmitterChildInput, f as EmitterInput, e as EventMeta, d as EventTrace } from '../emitter-BxVxGBbJ.js';
|
|
2
2
|
import '../internals/types.js';
|
|
3
3
|
import '../internals/serializable.js';
|
|
4
4
|
import '../internals/helpers/guards.js';
|
package/dist/emitter/types.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../internals/types.cjs';
|
|
2
|
-
export { C as Callback, b as CleanupFn, c as EmitterOptions, e as EventMeta, d as EventTrace, I as InferCallbackValue, a as Matcher, M as MatcherFn, S as StringKey } from '../emitter-
|
|
2
|
+
export { C as Callback, b as CleanupFn, c as EmitterOptions, e as EventMeta, d as EventTrace, I as InferCallbackValue, a as Matcher, M as MatcherFn, S as StringKey } from '../emitter-C9EN5B0j.cjs';
|
|
3
3
|
import '../internals/helpers/guards.cjs';
|
|
4
4
|
import '../internals/serializable.cjs';
|
package/dist/emitter/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../internals/types.js';
|
|
2
|
-
export { C as Callback, b as CleanupFn, c as EmitterOptions, e as EventMeta, d as EventTrace, I as InferCallbackValue, a as Matcher, M as MatcherFn, S as StringKey } from '../emitter-
|
|
2
|
+
export { C as Callback, b as CleanupFn, c as EmitterOptions, e as EventMeta, d as EventTrace, I as InferCallbackValue, a as Matcher, M as MatcherFn, S as StringKey } from '../emitter-BxVxGBbJ.js';
|
|
3
3
|
import '../internals/helpers/guards.js';
|
|
4
4
|
import '../internals/serializable.js';
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { PromptTemplate, PromptTemplateError, PromptTemplateInput, PromptTemplat
|
|
|
3
3
|
export { AbortError, FrameworkError, FrameworkErrorOptions, NotImplementedError, ValueError } from './errors.cjs';
|
|
4
4
|
export { Version } from './version.cjs';
|
|
5
5
|
export { S as SerializeFactory, a as Serializer } from './serializer-CJx5ZpUx.cjs';
|
|
6
|
-
export { A as AgentError, a as BaseAgent, B as BaseAgentRunOptions } from './base-
|
|
6
|
+
export { A as AgentError, a as BaseAgent, B as BaseAgentRunOptions } from './base-daM6fHUP.cjs';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import './internals/serializable.cjs';
|
|
9
9
|
import './internals/types.cjs';
|
|
@@ -11,7 +11,7 @@ import './internals/helpers/guards.cjs';
|
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'ajv';
|
|
13
13
|
import './context.cjs';
|
|
14
|
-
import './emitter-
|
|
14
|
+
import './emitter-C9EN5B0j.cjs';
|
|
15
15
|
import './internals/helpers/promise.cjs';
|
|
16
16
|
import './memory/base.cjs';
|
|
17
17
|
import './backend/message.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { PromptTemplate, PromptTemplateError, PromptTemplateInput, PromptTemplat
|
|
|
3
3
|
export { AbortError, FrameworkError, FrameworkErrorOptions, NotImplementedError, ValueError } from './errors.js';
|
|
4
4
|
export { Version } from './version.js';
|
|
5
5
|
export { S as SerializeFactory, a as Serializer } from './serializer-VYDhdryk.js';
|
|
6
|
-
export { A as AgentError, a as BaseAgent, B as BaseAgentRunOptions } from './base-
|
|
6
|
+
export { A as AgentError, a as BaseAgent, B as BaseAgentRunOptions } from './base-mmG-8Pk9.js';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import './internals/serializable.js';
|
|
9
9
|
import './internals/types.js';
|
|
@@ -11,7 +11,7 @@ import './internals/helpers/guards.js';
|
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'ajv';
|
|
13
13
|
import './context.js';
|
|
14
|
-
import './emitter-
|
|
14
|
+
import './emitter-BxVxGBbJ.js';
|
|
15
15
|
import './internals/helpers/promise.js';
|
|
16
16
|
import './memory/base.js';
|
|
17
17
|
import './backend/message.js';
|
|
@@ -5,7 +5,7 @@ import '../../internals/types.cjs';
|
|
|
5
5
|
import '../../internals/helpers/guards.cjs';
|
|
6
6
|
import 'ai';
|
|
7
7
|
import '../../context.cjs';
|
|
8
|
-
import '../../emitter-
|
|
8
|
+
import '../../emitter-C9EN5B0j.cjs';
|
|
9
9
|
import '../../internals/helpers/promise.cjs';
|
|
10
10
|
import '../../errors.cjs';
|
|
11
11
|
import 'promise-based-task';
|
|
@@ -5,7 +5,7 @@ import '../../internals/types.js';
|
|
|
5
5
|
import '../../internals/helpers/guards.js';
|
|
6
6
|
import 'ai';
|
|
7
7
|
import '../../context.js';
|
|
8
|
-
import '../../emitter-
|
|
8
|
+
import '../../emitter-BxVxGBbJ.js';
|
|
9
9
|
import '../../internals/helpers/promise.js';
|
|
10
10
|
import '../../errors.js';
|
|
11
11
|
import 'promise-based-task';
|
|
@@ -2,7 +2,7 @@ import { FrameworkError } from '../errors.cjs';
|
|
|
2
2
|
import { Serializable } from './serializable.cjs';
|
|
3
3
|
import { EventSourceMessage } from '@ai-zen/node-fetch-event-source';
|
|
4
4
|
import { FetchEventSourceInit } from '@ai-zen/node-fetch-event-source/lib/cjs/fetch.js';
|
|
5
|
-
import { C as Callback, E as Emitter } from '../emitter-
|
|
5
|
+
import { C as Callback, E as Emitter } from '../emitter-C9EN5B0j.cjs';
|
|
6
6
|
import './types.cjs';
|
|
7
7
|
import './helpers/guards.cjs';
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import { FrameworkError } from '../errors.js';
|
|
|
2
2
|
import { Serializable } from './serializable.js';
|
|
3
3
|
import { EventSourceMessage } from '@ai-zen/node-fetch-event-source';
|
|
4
4
|
import { FetchEventSourceInit } from '@ai-zen/node-fetch-event-source/lib/cjs/fetch.js';
|
|
5
|
-
import { C as Callback, E as Emitter } from '../emitter-
|
|
5
|
+
import { C as Callback, E as Emitter } from '../emitter-BxVxGBbJ.js';
|
|
6
6
|
import './types.js';
|
|
7
7
|
import './helpers/guards.js';
|
|
8
8
|
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var node_crypto = require('node:crypto');
|
|
4
|
+
var errors_cjs = require('../../errors.cjs');
|
|
4
5
|
|
|
5
6
|
var __defProp = Object.defineProperty;
|
|
6
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
8
|
function createHash(input, length = 4) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
9
|
+
if (length > 32) {
|
|
10
|
+
throw new errors_cjs.NotImplementedError("Max supported hash length is 32");
|
|
11
|
+
}
|
|
12
|
+
return node_crypto.createHash("sha256").update(input).digest("hex").slice(0, length * 2);
|
|
11
13
|
}
|
|
12
14
|
__name(createHash, "createHash");
|
|
13
15
|
function createRandomHash(length = 4) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/internals/helpers/hash.ts"],"names":["createHash","input","length","
|
|
1
|
+
{"version":3,"sources":["../../../src/internals/helpers/hash.ts"],"names":["createHash","input","length","NotImplementedError","_createHash","update","digest","slice","createRandomHash","randomBytes","toString"],"mappings":";;;;;;;AAmBO,SAASA,UAAAA,CAAWC,KAAeC,EAAAA,MAAAA,GAAS,CAAC,EAAA;AAClD,EAAA,IAAIA,SAAS,EAAI,EAAA;AACf,IAAM,MAAA,IAAIC,+BAAoB,iCAAA,CAAA;AAChC;AAEA,EAAA,OAAOC,sBAAY,CAAA,QAAA,CAChBC,CAAAA,MAAAA,CAAOJ,KAAAA,CAAAA,CACPK,MAAO,CAAA,KAAA,CACPC,CAAAA,KAAAA,CAAM,CAAGL,EAAAA,MAAAA,GAAS,CAAA,CAAA;AACvB;AATgBF,MAAAA,CAAAA,UAAAA,EAAAA,YAAAA,CAAAA;AAWT,SAASQ,gBAAAA,CAAiBN,SAAS,CAAC,EAAA;AACzC,EAAA,OAAOF,WAAWS,uBAAY,CAAA,EAAA,EAAIC,QAAS,CAAA,QAAA,GAAWR,MAAAA,CAAAA;AACxD;AAFgBM,MAAAA,CAAAA,gBAAAA,EAAAA,kBAAAA,CAAAA","file":"hash.cjs","sourcesContent":["/**\n * Copyright 2025 IBM Corp.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createHash as _createHash, randomBytes } from \"node:crypto\";\nimport { NotImplementedError } from \"@/errors.js\";\n\nexport function createHash(input: string, length = 4) {\n if (length > 32) {\n throw new NotImplementedError(\"Max supported hash length is 32\");\n }\n\n return _createHash(\"sha256\")\n .update(input)\n .digest(\"hex\")\n .slice(0, length * 2);\n}\n\nexport function createRandomHash(length = 4) {\n return createHash(randomBytes(20).toString(\"base64\"), length);\n}\n"]}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { createHash as createHash$1, randomBytes } from 'node:crypto';
|
|
2
|
+
import { NotImplementedError } from '../../errors.js';
|
|
2
3
|
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
5
6
|
function createHash(input, length = 4) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
7
|
+
if (length > 32) {
|
|
8
|
+
throw new NotImplementedError("Max supported hash length is 32");
|
|
9
|
+
}
|
|
10
|
+
return createHash$1("sha256").update(input).digest("hex").slice(0, length * 2);
|
|
9
11
|
}
|
|
10
12
|
__name(createHash, "createHash");
|
|
11
13
|
function createRandomHash(length = 4) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/internals/helpers/hash.ts"],"names":["createHash","input","length","
|
|
1
|
+
{"version":3,"sources":["../../../src/internals/helpers/hash.ts"],"names":["createHash","input","length","NotImplementedError","_createHash","update","digest","slice","createRandomHash","randomBytes","toString"],"mappings":";;;;;AAmBO,SAASA,UAAAA,CAAWC,KAAeC,EAAAA,MAAAA,GAAS,CAAC,EAAA;AAClD,EAAA,IAAIA,SAAS,EAAI,EAAA;AACf,IAAM,MAAA,IAAIC,oBAAoB,iCAAA,CAAA;AAChC;AAEA,EAAA,OAAOC,YAAY,CAAA,QAAA,CAChBC,CAAAA,MAAAA,CAAOJ,KAAAA,CAAAA,CACPK,MAAO,CAAA,KAAA,CACPC,CAAAA,KAAAA,CAAM,CAAGL,EAAAA,MAAAA,GAAS,CAAA,CAAA;AACvB;AATgBF,MAAAA,CAAAA,UAAAA,EAAAA,YAAAA,CAAAA;AAWT,SAASQ,gBAAAA,CAAiBN,SAAS,CAAC,EAAA;AACzC,EAAA,OAAOF,WAAWS,WAAY,CAAA,EAAA,EAAIC,QAAS,CAAA,QAAA,GAAWR,MAAAA,CAAAA;AACxD;AAFgBM,MAAAA,CAAAA,gBAAAA,EAAAA,kBAAAA,CAAAA","file":"hash.js","sourcesContent":["/**\n * Copyright 2025 IBM Corp.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createHash as _createHash, randomBytes } from \"node:crypto\";\nimport { NotImplementedError } from \"@/errors.js\";\n\nexport function createHash(input: string, length = 4) {\n if (length > 32) {\n throw new NotImplementedError(\"Max supported hash length is 32\");\n }\n\n return _createHash(\"sha256\")\n .update(input)\n .digest(\"hex\")\n .slice(0, length * 2);\n}\n\nexport function createRandomHash(length = 4) {\n return createHash(randomBytes(20).toString(\"base64\"), length);\n}\n"]}
|
|
@@ -10,7 +10,7 @@ import 'ai';
|
|
|
10
10
|
import '../errors.cjs';
|
|
11
11
|
import 'ajv';
|
|
12
12
|
import '../context.cjs';
|
|
13
|
-
import '../emitter-
|
|
13
|
+
import '../emitter-C9EN5B0j.cjs';
|
|
14
14
|
import '../internals/helpers/promise.cjs';
|
|
15
15
|
import 'promise-based-task';
|
|
16
16
|
import '../cache/base.cjs';
|
|
@@ -10,7 +10,7 @@ import 'ai';
|
|
|
10
10
|
import '../errors.js';
|
|
11
11
|
import 'ajv';
|
|
12
12
|
import '../context.js';
|
|
13
|
-
import '../emitter-
|
|
13
|
+
import '../emitter-BxVxGBbJ.js';
|
|
14
14
|
import '../internals/helpers/promise.js';
|
|
15
15
|
import 'promise-based-task';
|
|
16
16
|
import '../cache/base.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Emitter, I as InferCallbackValue, C as Callback } from '../emitter-
|
|
1
|
+
import { E as Emitter, I as InferCallbackValue, C as Callback } from '../emitter-C9EN5B0j.cjs';
|
|
2
2
|
import { Serializable } from '../internals/serializable.cjs';
|
|
3
3
|
import { ParserField } from './field.cjs';
|
|
4
4
|
import { ValueOf } from '../internals/types.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Emitter, I as InferCallbackValue, C as Callback } from '../emitter-
|
|
1
|
+
import { E as Emitter, I as InferCallbackValue, C as Callback } from '../emitter-BxVxGBbJ.js';
|
|
2
2
|
import { Serializable } from '../internals/serializable.js';
|
|
3
3
|
import { ParserField } from './field.js';
|
|
4
4
|
import { ValueOf } from '../internals/types.js';
|
package/dist/tools/arxiv.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ import '../internals/helpers/guards.cjs';
|
|
|
9
9
|
import '../internals/serializable.cjs';
|
|
10
10
|
import 'promise-based-task';
|
|
11
11
|
import '../cache/base.cjs';
|
|
12
|
-
import '../emitter-
|
|
12
|
+
import '../emitter-C9EN5B0j.cjs';
|
|
13
13
|
import '../internals/helpers/promise.cjs';
|
|
14
14
|
import 'zod-to-json-schema';
|
|
15
15
|
|
package/dist/tools/arxiv.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import '../internals/helpers/guards.js';
|
|
|
9
9
|
import '../internals/serializable.js';
|
|
10
10
|
import 'promise-based-task';
|
|
11
11
|
import '../cache/base.js';
|
|
12
|
-
import '../emitter-
|
|
12
|
+
import '../emitter-BxVxGBbJ.js';
|
|
13
13
|
import '../internals/helpers/promise.js';
|
|
14
14
|
import 'zod-to-json-schema';
|
|
15
15
|
|
package/dist/tools/base.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ import { Task } from 'promise-based-task';
|
|
|
7
7
|
import { BaseCache } from '../cache/base.cjs';
|
|
8
8
|
import { FromSchemaLike, FromSchemaLikeRaw, AnyToolSchemaLike } from '../internals/helpers/schema.cjs';
|
|
9
9
|
import { ZodSchema, z } from 'zod';
|
|
10
|
-
import { E as Emitter, C as Callback } from '../emitter-
|
|
10
|
+
import { E as Emitter, C as Callback } from '../emitter-C9EN5B0j.cjs';
|
|
11
11
|
import '../internals/helpers/promise.cjs';
|
|
12
12
|
import '../internals/types.cjs';
|
|
13
13
|
import '../internals/helpers/guards.cjs';
|
package/dist/tools/base.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Task } from 'promise-based-task';
|
|
|
7
7
|
import { BaseCache } from '../cache/base.js';
|
|
8
8
|
import { FromSchemaLike, FromSchemaLikeRaw, AnyToolSchemaLike } from '../internals/helpers/schema.js';
|
|
9
9
|
import { ZodSchema, z } from 'zod';
|
|
10
|
-
import { E as Emitter, C as Callback } from '../emitter-
|
|
10
|
+
import { E as Emitter, C as Callback } from '../emitter-BxVxGBbJ.js';
|
|
11
11
|
import '../internals/helpers/promise.js';
|
|
12
12
|
import '../internals/types.js';
|
|
13
13
|
import '../internals/helpers/guards.js';
|
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
import { ConfigOptions, ImportObject, ImportOptions, evaluate } from 'mathjs';
|
|
4
4
|
import 'ajv';
|
|
5
5
|
import '../context.cjs';
|
|
6
|
-
import '../emitter-
|
|
6
|
+
import '../emitter-C9EN5B0j.cjs';
|
|
7
7
|
import '../internals/types.cjs';
|
|
8
8
|
import '../internals/helpers/guards.cjs';
|
|
9
9
|
import '../internals/serializable.cjs';
|