@mastra/core 0.10.8 → 0.10.9
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/agent/index.cjs +4 -4
- package/dist/agent/index.d.cts +8 -8
- package/dist/agent/index.d.ts +8 -8
- package/dist/agent/index.js +2 -2
- package/dist/{base-DVVTzIQy.d.cts → base-B_y9sMg0.d.cts} +1 -1
- package/dist/{base-B_WEJuiR.d.cts → base-Bu9IeyHt.d.cts} +48 -15
- package/dist/{base-BbdvunNJ.d.ts → base-ClrXcCRx.d.ts} +1 -1
- package/dist/{base-DnSegjq5.d.ts → base-D6PagN3X.d.ts} +48 -15
- package/dist/base.d.cts +2 -2
- package/dist/base.d.ts +2 -2
- package/dist/bundler/index.d.cts +2 -2
- package/dist/bundler/index.d.ts +2 -2
- package/dist/{chunk-V73Z32LN.js → chunk-5S3K64EU.js} +1 -1
- package/dist/{chunk-2D7NOO7S.cjs → chunk-6Y4UL5Z6.cjs} +11 -0
- package/dist/{chunk-QZ3VZRUU.cjs → chunk-7H2GET5Z.cjs} +6 -2
- package/dist/{chunk-YXQF4U4L.js → chunk-7XQIPES3.js} +5 -1
- package/dist/{chunk-CHBIZNA3.cjs → chunk-CWXF3ZG4.cjs} +31 -9
- package/dist/{chunk-GKCO24Z4.cjs → chunk-CZGP56Y3.cjs} +2 -2
- package/dist/{chunk-WTTYHREJ.js → chunk-HM4AOWTY.js} +1 -1
- package/dist/{chunk-DO5R43AJ.js → chunk-JQOMTERC.js} +11 -1
- package/dist/{chunk-FBURVKXA.js → chunk-O7YOEBDC.js} +220 -41
- package/dist/{chunk-E4A4XDDG.cjs → chunk-SO4GUX3Q.cjs} +221 -42
- package/dist/{chunk-EYJXFYUH.cjs → chunk-SUF6QXSI.cjs} +70 -40
- package/dist/{chunk-QIQOR45O.js → chunk-VMIMBLH4.js} +31 -9
- package/dist/{chunk-U2LC4K7N.cjs → chunk-X73RHIY2.cjs} +2 -2
- package/dist/{chunk-WK3SHUOG.js → chunk-Y2FKASKG.js} +61 -31
- package/dist/deployer/index.d.cts +2 -2
- package/dist/deployer/index.d.ts +2 -2
- package/dist/eval/index.d.cts +6 -6
- package/dist/eval/index.d.ts +6 -6
- package/dist/index.cjs +22 -22
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -7
- package/dist/integration/index.d.cts +10 -10
- package/dist/integration/index.d.ts +10 -10
- package/dist/llm/index.d.cts +6 -6
- package/dist/llm/index.d.ts +6 -6
- package/dist/logger/index.cjs +8 -4
- package/dist/logger/index.d.cts +2 -2
- package/dist/logger/index.d.ts +2 -2
- package/dist/logger/index.js +1 -1
- package/dist/{logger-CpL0z5v_.d.cts → logger-B8XXh6ya.d.cts} +2 -1
- package/dist/{logger-DtVDdb81.d.ts → logger-Bpa2oLL4.d.ts} +2 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.cts +4 -4
- package/dist/mastra/index.d.ts +4 -4
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.d.cts +8 -8
- package/dist/mcp/index.d.ts +8 -8
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.d.cts +6 -6
- package/dist/memory/index.d.ts +6 -6
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +2 -2
- package/dist/network/index.d.cts +6 -6
- package/dist/network/index.d.ts +6 -6
- package/dist/network/index.js +1 -1
- package/dist/network/vNext/index.cjs +37 -23
- package/dist/network/vNext/index.d.cts +8 -8
- package/dist/network/vNext/index.d.ts +8 -8
- package/dist/network/vNext/index.js +26 -12
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +8 -8
- package/dist/relevance/index.d.ts +8 -8
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.d.cts +7 -7
- package/dist/server/index.d.ts +7 -7
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.d.cts +7 -7
- package/dist/storage/index.d.ts +7 -7
- package/dist/storage/index.js +1 -1
- package/dist/telemetry/index.d.cts +6 -6
- package/dist/telemetry/index.d.ts +6 -6
- package/dist/tools/index.d.cts +9 -9
- package/dist/tools/index.d.ts +9 -9
- package/dist/tts/index.d.cts +2 -2
- package/dist/tts/index.d.ts +2 -2
- package/dist/utils.d.cts +3 -3
- package/dist/utils.d.ts +3 -3
- package/dist/vector/index.d.cts +2 -2
- package/dist/vector/index.d.ts +2 -2
- package/dist/voice/index.d.cts +6 -6
- package/dist/voice/index.d.ts +6 -6
- package/dist/workflows/index.cjs +10 -10
- package/dist/workflows/index.d.cts +34 -13
- package/dist/workflows/index.d.ts +34 -13
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.d.cts +11 -11
- package/dist/workflows/legacy/index.d.ts +11 -11
- package/dist/workflows/legacy/index.js +1 -1
- package/package.json +4 -4
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from '../base-
|
|
1
|
+
export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from '../base-B_y9sMg0.cjs';
|
|
2
2
|
import { SpanKind, Context } from '@opentelemetry/api';
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
|
-
import { I as IMastraLogger } from '../logger-
|
|
6
|
-
import { o as MastraStorage } from '../base-
|
|
5
|
+
import { I as IMastraLogger } from '../logger-B8XXh6ya.cjs';
|
|
6
|
+
import { o as MastraStorage } from '../base-Bu9IeyHt.cjs';
|
|
7
7
|
import '../error/index.cjs';
|
|
8
8
|
import 'stream';
|
|
9
9
|
import 'ai';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'json-schema';
|
|
12
|
-
import '../tts/index.cjs';
|
|
13
|
-
import '../vector/index.cjs';
|
|
14
|
-
import '../vector/filter/index.cjs';
|
|
15
12
|
import '../types-Bo1uigWx.cjs';
|
|
16
13
|
import 'sift';
|
|
17
14
|
import '../runtime-context/index.cjs';
|
|
18
15
|
import 'xstate';
|
|
19
16
|
import 'node:events';
|
|
17
|
+
import '../vector/index.cjs';
|
|
18
|
+
import '../vector/filter/index.cjs';
|
|
19
|
+
import '../tts/index.cjs';
|
|
20
20
|
import 'node:http';
|
|
21
21
|
import 'hono';
|
|
22
22
|
import 'stream/web';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from '../base-
|
|
1
|
+
export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from '../base-ClrXcCRx.js';
|
|
2
2
|
import { SpanKind, Context } from '@opentelemetry/api';
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
|
-
import { I as IMastraLogger } from '../logger-
|
|
6
|
-
import { o as MastraStorage } from '../base-
|
|
5
|
+
import { I as IMastraLogger } from '../logger-Bpa2oLL4.js';
|
|
6
|
+
import { o as MastraStorage } from '../base-D6PagN3X.js';
|
|
7
7
|
import '../error/index.js';
|
|
8
8
|
import 'stream';
|
|
9
9
|
import 'ai';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'json-schema';
|
|
12
|
-
import '../tts/index.js';
|
|
13
|
-
import '../vector/index.js';
|
|
14
|
-
import '../vector/filter/index.js';
|
|
15
12
|
import '../types-Bo1uigWx.js';
|
|
16
13
|
import 'sift';
|
|
17
14
|
import '../runtime-context/index.js';
|
|
18
15
|
import 'xstate';
|
|
19
16
|
import 'node:events';
|
|
17
|
+
import '../vector/index.js';
|
|
18
|
+
import '../vector/filter/index.js';
|
|
19
|
+
import '../tts/index.js';
|
|
20
20
|
import 'node:http';
|
|
21
21
|
import 'hono';
|
|
22
22
|
import 'stream/web';
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { V as VercelTool, c as ToolAction } from '../base-
|
|
2
|
-
export { C as CoreTool, at as InternalCoreTool, ar as Tool, au as ToolExecutionContext, as as createTool } from '../base-
|
|
3
|
-
import '../base-
|
|
1
|
+
import { V as VercelTool, c as ToolAction } from '../base-Bu9IeyHt.cjs';
|
|
2
|
+
export { C as CoreTool, at as InternalCoreTool, ar as Tool, au as ToolExecutionContext, as as createTool } from '../base-Bu9IeyHt.cjs';
|
|
3
|
+
import '../base-B_y9sMg0.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../logger-
|
|
6
|
+
import '../logger-B8XXh6ya.cjs';
|
|
7
7
|
import '../error/index.cjs';
|
|
8
8
|
import 'stream';
|
|
9
9
|
import 'json-schema';
|
|
10
|
-
import '../tts/index.cjs';
|
|
11
|
-
import '@opentelemetry/api';
|
|
12
|
-
import '@opentelemetry/sdk-trace-base';
|
|
13
|
-
import '../vector/index.cjs';
|
|
14
|
-
import '../vector/filter/index.cjs';
|
|
15
10
|
import '../types-Bo1uigWx.cjs';
|
|
16
11
|
import 'sift';
|
|
17
12
|
import '../runtime-context/index.cjs';
|
|
13
|
+
import '@opentelemetry/api';
|
|
18
14
|
import 'xstate';
|
|
19
15
|
import 'node:events';
|
|
16
|
+
import '../vector/index.cjs';
|
|
17
|
+
import '../vector/filter/index.cjs';
|
|
18
|
+
import '../tts/index.cjs';
|
|
19
|
+
import '@opentelemetry/sdk-trace-base';
|
|
20
20
|
import 'node:http';
|
|
21
21
|
import 'hono';
|
|
22
22
|
import 'stream/web';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { V as VercelTool, c as ToolAction } from '../base-
|
|
2
|
-
export { C as CoreTool, at as InternalCoreTool, ar as Tool, au as ToolExecutionContext, as as createTool } from '../base-
|
|
3
|
-
import '../base-
|
|
1
|
+
import { V as VercelTool, c as ToolAction } from '../base-D6PagN3X.js';
|
|
2
|
+
export { C as CoreTool, at as InternalCoreTool, ar as Tool, au as ToolExecutionContext, as as createTool } from '../base-D6PagN3X.js';
|
|
3
|
+
import '../base-ClrXcCRx.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../logger-
|
|
6
|
+
import '../logger-Bpa2oLL4.js';
|
|
7
7
|
import '../error/index.js';
|
|
8
8
|
import 'stream';
|
|
9
9
|
import 'json-schema';
|
|
10
|
-
import '../tts/index.js';
|
|
11
|
-
import '@opentelemetry/api';
|
|
12
|
-
import '@opentelemetry/sdk-trace-base';
|
|
13
|
-
import '../vector/index.js';
|
|
14
|
-
import '../vector/filter/index.js';
|
|
15
10
|
import '../types-Bo1uigWx.js';
|
|
16
11
|
import 'sift';
|
|
17
12
|
import '../runtime-context/index.js';
|
|
13
|
+
import '@opentelemetry/api';
|
|
18
14
|
import 'xstate';
|
|
19
15
|
import 'node:events';
|
|
16
|
+
import '../vector/index.js';
|
|
17
|
+
import '../vector/filter/index.js';
|
|
18
|
+
import '../tts/index.js';
|
|
19
|
+
import '@opentelemetry/sdk-trace-base';
|
|
20
20
|
import 'node:http';
|
|
21
21
|
import 'hono';
|
|
22
22
|
import 'stream/web';
|
package/dist/tts/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as MastraBase } from '../base-
|
|
1
|
+
import { M as MastraBase } from '../base-B_y9sMg0.cjs';
|
|
2
2
|
import '@opentelemetry/api';
|
|
3
|
-
import '../logger-
|
|
3
|
+
import '../logger-B8XXh6ya.cjs';
|
|
4
4
|
import '../error/index.cjs';
|
|
5
5
|
import 'stream';
|
|
6
6
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/tts/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as MastraBase } from '../base-
|
|
1
|
+
import { M as MastraBase } from '../base-ClrXcCRx.js';
|
|
2
2
|
import '@opentelemetry/api';
|
|
3
|
-
import '../logger-
|
|
3
|
+
import '../logger-Bpa2oLL4.js';
|
|
4
4
|
import '../error/index.js';
|
|
5
5
|
import 'stream';
|
|
6
6
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, N as NewAgentNetwork, h as MCPServerBase } from './base-
|
|
1
|
+
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, N as NewAgentNetwork, h as MCPServerBase } from './base-Bu9IeyHt.cjs';
|
|
2
2
|
import { LanguageModelV1, CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.cjs';
|
|
4
4
|
import { MastraVector } from './vector/index.cjs';
|
|
5
5
|
import { VectorFilter } from './vector/filter/index.cjs';
|
|
6
6
|
import { M as Metric } from './types-Bo1uigWx.cjs';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
-
import { I as IMastraLogger } from './logger-
|
|
9
|
-
import './base-
|
|
8
|
+
import { I as IMastraLogger } from './logger-B8XXh6ya.cjs';
|
|
9
|
+
import './base-B_y9sMg0.cjs';
|
|
10
10
|
import { RuntimeContext } from './runtime-context/index.cjs';
|
|
11
11
|
import 'json-schema';
|
|
12
12
|
import 'sift';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, N as NewAgentNetwork, h as MCPServerBase } from './base-
|
|
1
|
+
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, N as NewAgentNetwork, h as MCPServerBase } from './base-D6PagN3X.js';
|
|
2
2
|
import { LanguageModelV1, CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.js';
|
|
4
4
|
import { MastraVector } from './vector/index.js';
|
|
5
5
|
import { VectorFilter } from './vector/filter/index.js';
|
|
6
6
|
import { M as Metric } from './types-Bo1uigWx.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
-
import { I as IMastraLogger } from './logger-
|
|
9
|
-
import './base-
|
|
8
|
+
import { I as IMastraLogger } from './logger-Bpa2oLL4.js';
|
|
9
|
+
import './base-ClrXcCRx.js';
|
|
10
10
|
import { RuntimeContext } from './runtime-context/index.js';
|
|
11
11
|
import 'json-schema';
|
|
12
12
|
import 'sift';
|
package/dist/vector/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as MastraBase } from '../base-
|
|
1
|
+
import { M as MastraBase } from '../base-B_y9sMg0.cjs';
|
|
2
2
|
import { VectorFilter } from './filter/index.cjs';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
|
-
import '../logger-
|
|
4
|
+
import '../logger-B8XXh6ya.cjs';
|
|
5
5
|
import '../error/index.cjs';
|
|
6
6
|
import 'stream';
|
|
7
7
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/vector/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as MastraBase } from '../base-
|
|
1
|
+
import { M as MastraBase } from '../base-ClrXcCRx.js';
|
|
2
2
|
import { VectorFilter } from './filter/index.js';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
|
-
import '../logger-
|
|
4
|
+
import '../logger-Bpa2oLL4.js';
|
|
5
5
|
import '../error/index.js';
|
|
6
6
|
import 'stream';
|
|
7
7
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/voice/index.d.cts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { bL as CompositeVoice, bM as DefaultVoice, bK as MastraVoice, bJ as VoiceConfig, bI as VoiceEventMap, bH as VoiceEventType } from '../base-Bu9IeyHt.cjs';
|
|
2
2
|
import 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-B_y9sMg0.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
|
-
import '../logger-
|
|
5
|
+
import '../logger-B8XXh6ya.cjs';
|
|
6
6
|
import '../error/index.cjs';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import 'json-schema';
|
|
11
|
-
import '../tts/index.cjs';
|
|
12
|
-
import '../vector/index.cjs';
|
|
13
|
-
import '../vector/filter/index.cjs';
|
|
14
11
|
import '../types-Bo1uigWx.cjs';
|
|
15
12
|
import 'sift';
|
|
16
13
|
import '../runtime-context/index.cjs';
|
|
17
14
|
import 'xstate';
|
|
18
15
|
import 'node:events';
|
|
16
|
+
import '../vector/index.cjs';
|
|
17
|
+
import '../vector/filter/index.cjs';
|
|
18
|
+
import '../tts/index.cjs';
|
|
19
19
|
import 'node:http';
|
|
20
20
|
import 'hono';
|
|
21
21
|
import 'stream/web';
|
package/dist/voice/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { bL as CompositeVoice, bM as DefaultVoice, bK as MastraVoice, bJ as VoiceConfig, bI as VoiceEventMap, bH as VoiceEventType } from '../base-D6PagN3X.js';
|
|
2
2
|
import 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-ClrXcCRx.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
|
-
import '../logger-
|
|
5
|
+
import '../logger-Bpa2oLL4.js';
|
|
6
6
|
import '../error/index.js';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import 'json-schema';
|
|
11
|
-
import '../tts/index.js';
|
|
12
|
-
import '../vector/index.js';
|
|
13
|
-
import '../vector/filter/index.js';
|
|
14
11
|
import '../types-Bo1uigWx.js';
|
|
15
12
|
import 'sift';
|
|
16
13
|
import '../runtime-context/index.js';
|
|
17
14
|
import 'xstate';
|
|
18
15
|
import 'node:events';
|
|
16
|
+
import '../vector/index.js';
|
|
17
|
+
import '../vector/filter/index.js';
|
|
18
|
+
import '../tts/index.js';
|
|
19
19
|
import 'node:http';
|
|
20
20
|
import 'hono';
|
|
21
21
|
import 'stream/web';
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSO4GUX3Q_cjs = require('../chunk-SO4GUX3Q.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "DefaultExecutionEngine", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkSO4GUX3Q_cjs.DefaultExecutionEngine; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkSO4GUX3Q_cjs.ExecutionEngine; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Run", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkSO4GUX3Q_cjs.Run; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "Workflow", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkSO4GUX3Q_cjs.Workflow; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "cloneStep", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkSO4GUX3Q_cjs.cloneStep; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkSO4GUX3Q_cjs.cloneWorkflow; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "createStep", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkSO4GUX3Q_cjs.createStep; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createWorkflow", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkSO4GUX3Q_cjs.createWorkflow; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "mapVariable", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkSO4GUX3Q_cjs.mapVariable; }
|
|
42
42
|
});
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { bm as ExecutionEngine, f as Step, bo as Emitter, bu as StepResult, bl as ExecutionGraph, bc as SerializedStepFlowEntry, ba as StepFlowEntry, bn as ExecuteFunction, aw as DefaultEngineType } from '../base-Bu9IeyHt.cjs';
|
|
2
|
+
export { bw as DynamicMapping, bz as ExtractSchemaFromStep, by as ExtractSchemaType, bx as PathsToStringProps, bk as Run, bb as SerializedStep, bq as StepFailure, bs as StepRunning, bp as StepSuccess, br as StepSuspended, bt as StepWaiting, bd as StepWithComponent, bv as StepsRecord, bB as StreamEvent, bA as VariableReference, bD as WatchEvent, e as Workflow, ax as WorkflowConfig, bj as WorkflowResult, bF as WorkflowRunState, bC as WorkflowRunStatus, bE as ZodPathType, bg as cloneStep, bi as cloneWorkflow, bf as createStep, bh as createWorkflow, be as mapVariable } from '../base-Bu9IeyHt.cjs';
|
|
3
3
|
import { Span } from '@opentelemetry/api';
|
|
4
4
|
import { RuntimeContext } from '../runtime-context/index.cjs';
|
|
5
5
|
import 'ai';
|
|
6
|
-
import '../base-
|
|
7
|
-
import '../logger-
|
|
6
|
+
import '../base-B_y9sMg0.cjs';
|
|
7
|
+
import '../logger-B8XXh6ya.cjs';
|
|
8
8
|
import '../error/index.cjs';
|
|
9
9
|
import 'stream';
|
|
10
10
|
import '@opentelemetry/sdk-trace-base';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'json-schema';
|
|
13
|
-
import '../tts/index.cjs';
|
|
14
|
-
import '../vector/index.cjs';
|
|
15
|
-
import '../vector/filter/index.cjs';
|
|
16
13
|
import '../types-Bo1uigWx.cjs';
|
|
17
14
|
import 'sift';
|
|
18
15
|
import 'xstate';
|
|
19
16
|
import 'node:events';
|
|
17
|
+
import '../vector/index.cjs';
|
|
18
|
+
import '../vector/filter/index.cjs';
|
|
19
|
+
import '../tts/index.cjs';
|
|
20
20
|
import 'node:http';
|
|
21
21
|
import 'hono';
|
|
22
22
|
import 'stream/web';
|
|
@@ -44,6 +44,20 @@ type ExecutionContext = {
|
|
|
44
44
|
* Default implementation of the ExecutionEngine using XState
|
|
45
45
|
*/
|
|
46
46
|
declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
47
|
+
/**
|
|
48
|
+
* The runCounts map is used to keep track of the run count for each step.
|
|
49
|
+
* The step id is used as the key and the run count is the value.
|
|
50
|
+
*/
|
|
51
|
+
protected runCounts: Map<string, number>;
|
|
52
|
+
/**
|
|
53
|
+
* Get or generate the run count for a step.
|
|
54
|
+
* If the step id is not in the map, it will be added and the run count will be 0.
|
|
55
|
+
* If the step id is in the map, it will return the run count.
|
|
56
|
+
*
|
|
57
|
+
* @param stepId - The id of the step.
|
|
58
|
+
* @returns The run count for the step.
|
|
59
|
+
*/
|
|
60
|
+
protected getOrGenerateRunCount(stepId: Step['id']): number;
|
|
47
61
|
protected fmtReturnValue<TOutput>(executionSpan: Span | undefined, emitter: Emitter, stepResults: Record<string, StepResult<any, any, any, any>>, lastOutput: StepResult<any, any, any, any>, error?: Error | string): Promise<TOutput>;
|
|
48
62
|
/**
|
|
49
63
|
* Executes a workflow run with the provided execution graph and input
|
|
@@ -69,6 +83,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
69
83
|
delay?: number;
|
|
70
84
|
};
|
|
71
85
|
runtimeContext: RuntimeContext;
|
|
86
|
+
abortController: AbortController;
|
|
72
87
|
}): Promise<TOutput>;
|
|
73
88
|
getStepOutput(stepResults: Record<string, any>, step?: StepFlowEntry): any;
|
|
74
89
|
executeSleep({ duration }: {
|
|
@@ -80,7 +95,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
80
95
|
emitter: Emitter;
|
|
81
96
|
timeout?: number;
|
|
82
97
|
}): Promise<any>;
|
|
83
|
-
executeStep({ workflowId, runId, step, stepResults, executionContext, resume, prevOutput, emitter, runtimeContext, }: {
|
|
98
|
+
executeStep({ workflowId, runId, step, stepResults, executionContext, resume, prevOutput, emitter, abortController, runtimeContext, }: {
|
|
84
99
|
workflowId: string;
|
|
85
100
|
runId: string;
|
|
86
101
|
step: Step<string, any, any>;
|
|
@@ -92,9 +107,10 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
92
107
|
};
|
|
93
108
|
prevOutput: any;
|
|
94
109
|
emitter: Emitter;
|
|
110
|
+
abortController: AbortController;
|
|
95
111
|
runtimeContext: RuntimeContext;
|
|
96
112
|
}): Promise<StepResult<any, any, any, any>>;
|
|
97
|
-
executeParallel({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
113
|
+
executeParallel({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
98
114
|
workflowId: string;
|
|
99
115
|
runId: string;
|
|
100
116
|
entry: {
|
|
@@ -112,9 +128,10 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
112
128
|
};
|
|
113
129
|
executionContext: ExecutionContext;
|
|
114
130
|
emitter: Emitter;
|
|
131
|
+
abortController: AbortController;
|
|
115
132
|
runtimeContext: RuntimeContext;
|
|
116
133
|
}): Promise<StepResult<any, any, any, any>>;
|
|
117
|
-
executeConditional({ workflowId, runId, entry, prevOutput, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
134
|
+
executeConditional({ workflowId, runId, entry, prevOutput, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
118
135
|
workflowId: string;
|
|
119
136
|
runId: string;
|
|
120
137
|
serializedStepGraph: SerializedStepFlowEntry[];
|
|
@@ -134,9 +151,10 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
134
151
|
};
|
|
135
152
|
executionContext: ExecutionContext;
|
|
136
153
|
emitter: Emitter;
|
|
154
|
+
abortController: AbortController;
|
|
137
155
|
runtimeContext: RuntimeContext;
|
|
138
156
|
}): Promise<StepResult<any, any, any, any>>;
|
|
139
|
-
executeLoop({ workflowId, runId, entry, prevOutput, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
157
|
+
executeLoop({ workflowId, runId, entry, prevOutput, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
140
158
|
workflowId: string;
|
|
141
159
|
runId: string;
|
|
142
160
|
entry: {
|
|
@@ -156,9 +174,10 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
156
174
|
};
|
|
157
175
|
executionContext: ExecutionContext;
|
|
158
176
|
emitter: Emitter;
|
|
177
|
+
abortController: AbortController;
|
|
159
178
|
runtimeContext: RuntimeContext;
|
|
160
179
|
}): Promise<StepResult<any, any, any, any>>;
|
|
161
|
-
executeForeach({ workflowId, runId, entry, prevOutput, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
180
|
+
executeForeach({ workflowId, runId, entry, prevOutput, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
162
181
|
workflowId: string;
|
|
163
182
|
runId: string;
|
|
164
183
|
entry: {
|
|
@@ -179,6 +198,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
179
198
|
};
|
|
180
199
|
executionContext: ExecutionContext;
|
|
181
200
|
emitter: Emitter;
|
|
201
|
+
abortController: AbortController;
|
|
182
202
|
runtimeContext: RuntimeContext;
|
|
183
203
|
}): Promise<StepResult<any, any, any, any>>;
|
|
184
204
|
protected persistStepUpdate({ workflowId, runId, stepResults, serializedStepGraph, executionContext, workflowStatus, result, error, }: {
|
|
@@ -191,7 +211,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
191
211
|
result?: Record<string, any>;
|
|
192
212
|
error?: string | Error;
|
|
193
213
|
}): Promise<void>;
|
|
194
|
-
executeEntry({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
214
|
+
executeEntry({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
195
215
|
workflowId: string;
|
|
196
216
|
runId: string;
|
|
197
217
|
entry: StepFlowEntry;
|
|
@@ -206,6 +226,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
206
226
|
};
|
|
207
227
|
executionContext: ExecutionContext;
|
|
208
228
|
emitter: Emitter;
|
|
229
|
+
abortController: AbortController;
|
|
209
230
|
runtimeContext: RuntimeContext;
|
|
210
231
|
}): Promise<{
|
|
211
232
|
result: StepResult<any, any, any, any>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { bm as ExecutionEngine, f as Step, bo as Emitter, bu as StepResult, bl as ExecutionGraph, bc as SerializedStepFlowEntry, ba as StepFlowEntry, bn as ExecuteFunction, aw as DefaultEngineType } from '../base-D6PagN3X.js';
|
|
2
|
+
export { bw as DynamicMapping, bz as ExtractSchemaFromStep, by as ExtractSchemaType, bx as PathsToStringProps, bk as Run, bb as SerializedStep, bq as StepFailure, bs as StepRunning, bp as StepSuccess, br as StepSuspended, bt as StepWaiting, bd as StepWithComponent, bv as StepsRecord, bB as StreamEvent, bA as VariableReference, bD as WatchEvent, e as Workflow, ax as WorkflowConfig, bj as WorkflowResult, bF as WorkflowRunState, bC as WorkflowRunStatus, bE as ZodPathType, bg as cloneStep, bi as cloneWorkflow, bf as createStep, bh as createWorkflow, be as mapVariable } from '../base-D6PagN3X.js';
|
|
3
3
|
import { Span } from '@opentelemetry/api';
|
|
4
4
|
import { RuntimeContext } from '../runtime-context/index.js';
|
|
5
5
|
import 'ai';
|
|
6
|
-
import '../base-
|
|
7
|
-
import '../logger-
|
|
6
|
+
import '../base-ClrXcCRx.js';
|
|
7
|
+
import '../logger-Bpa2oLL4.js';
|
|
8
8
|
import '../error/index.js';
|
|
9
9
|
import 'stream';
|
|
10
10
|
import '@opentelemetry/sdk-trace-base';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'json-schema';
|
|
13
|
-
import '../tts/index.js';
|
|
14
|
-
import '../vector/index.js';
|
|
15
|
-
import '../vector/filter/index.js';
|
|
16
13
|
import '../types-Bo1uigWx.js';
|
|
17
14
|
import 'sift';
|
|
18
15
|
import 'xstate';
|
|
19
16
|
import 'node:events';
|
|
17
|
+
import '../vector/index.js';
|
|
18
|
+
import '../vector/filter/index.js';
|
|
19
|
+
import '../tts/index.js';
|
|
20
20
|
import 'node:http';
|
|
21
21
|
import 'hono';
|
|
22
22
|
import 'stream/web';
|
|
@@ -44,6 +44,20 @@ type ExecutionContext = {
|
|
|
44
44
|
* Default implementation of the ExecutionEngine using XState
|
|
45
45
|
*/
|
|
46
46
|
declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
47
|
+
/**
|
|
48
|
+
* The runCounts map is used to keep track of the run count for each step.
|
|
49
|
+
* The step id is used as the key and the run count is the value.
|
|
50
|
+
*/
|
|
51
|
+
protected runCounts: Map<string, number>;
|
|
52
|
+
/**
|
|
53
|
+
* Get or generate the run count for a step.
|
|
54
|
+
* If the step id is not in the map, it will be added and the run count will be 0.
|
|
55
|
+
* If the step id is in the map, it will return the run count.
|
|
56
|
+
*
|
|
57
|
+
* @param stepId - The id of the step.
|
|
58
|
+
* @returns The run count for the step.
|
|
59
|
+
*/
|
|
60
|
+
protected getOrGenerateRunCount(stepId: Step['id']): number;
|
|
47
61
|
protected fmtReturnValue<TOutput>(executionSpan: Span | undefined, emitter: Emitter, stepResults: Record<string, StepResult<any, any, any, any>>, lastOutput: StepResult<any, any, any, any>, error?: Error | string): Promise<TOutput>;
|
|
48
62
|
/**
|
|
49
63
|
* Executes a workflow run with the provided execution graph and input
|
|
@@ -69,6 +83,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
69
83
|
delay?: number;
|
|
70
84
|
};
|
|
71
85
|
runtimeContext: RuntimeContext;
|
|
86
|
+
abortController: AbortController;
|
|
72
87
|
}): Promise<TOutput>;
|
|
73
88
|
getStepOutput(stepResults: Record<string, any>, step?: StepFlowEntry): any;
|
|
74
89
|
executeSleep({ duration }: {
|
|
@@ -80,7 +95,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
80
95
|
emitter: Emitter;
|
|
81
96
|
timeout?: number;
|
|
82
97
|
}): Promise<any>;
|
|
83
|
-
executeStep({ workflowId, runId, step, stepResults, executionContext, resume, prevOutput, emitter, runtimeContext, }: {
|
|
98
|
+
executeStep({ workflowId, runId, step, stepResults, executionContext, resume, prevOutput, emitter, abortController, runtimeContext, }: {
|
|
84
99
|
workflowId: string;
|
|
85
100
|
runId: string;
|
|
86
101
|
step: Step<string, any, any>;
|
|
@@ -92,9 +107,10 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
92
107
|
};
|
|
93
108
|
prevOutput: any;
|
|
94
109
|
emitter: Emitter;
|
|
110
|
+
abortController: AbortController;
|
|
95
111
|
runtimeContext: RuntimeContext;
|
|
96
112
|
}): Promise<StepResult<any, any, any, any>>;
|
|
97
|
-
executeParallel({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
113
|
+
executeParallel({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
98
114
|
workflowId: string;
|
|
99
115
|
runId: string;
|
|
100
116
|
entry: {
|
|
@@ -112,9 +128,10 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
112
128
|
};
|
|
113
129
|
executionContext: ExecutionContext;
|
|
114
130
|
emitter: Emitter;
|
|
131
|
+
abortController: AbortController;
|
|
115
132
|
runtimeContext: RuntimeContext;
|
|
116
133
|
}): Promise<StepResult<any, any, any, any>>;
|
|
117
|
-
executeConditional({ workflowId, runId, entry, prevOutput, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
134
|
+
executeConditional({ workflowId, runId, entry, prevOutput, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
118
135
|
workflowId: string;
|
|
119
136
|
runId: string;
|
|
120
137
|
serializedStepGraph: SerializedStepFlowEntry[];
|
|
@@ -134,9 +151,10 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
134
151
|
};
|
|
135
152
|
executionContext: ExecutionContext;
|
|
136
153
|
emitter: Emitter;
|
|
154
|
+
abortController: AbortController;
|
|
137
155
|
runtimeContext: RuntimeContext;
|
|
138
156
|
}): Promise<StepResult<any, any, any, any>>;
|
|
139
|
-
executeLoop({ workflowId, runId, entry, prevOutput, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
157
|
+
executeLoop({ workflowId, runId, entry, prevOutput, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
140
158
|
workflowId: string;
|
|
141
159
|
runId: string;
|
|
142
160
|
entry: {
|
|
@@ -156,9 +174,10 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
156
174
|
};
|
|
157
175
|
executionContext: ExecutionContext;
|
|
158
176
|
emitter: Emitter;
|
|
177
|
+
abortController: AbortController;
|
|
159
178
|
runtimeContext: RuntimeContext;
|
|
160
179
|
}): Promise<StepResult<any, any, any, any>>;
|
|
161
|
-
executeForeach({ workflowId, runId, entry, prevOutput, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
180
|
+
executeForeach({ workflowId, runId, entry, prevOutput, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
162
181
|
workflowId: string;
|
|
163
182
|
runId: string;
|
|
164
183
|
entry: {
|
|
@@ -179,6 +198,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
179
198
|
};
|
|
180
199
|
executionContext: ExecutionContext;
|
|
181
200
|
emitter: Emitter;
|
|
201
|
+
abortController: AbortController;
|
|
182
202
|
runtimeContext: RuntimeContext;
|
|
183
203
|
}): Promise<StepResult<any, any, any, any>>;
|
|
184
204
|
protected persistStepUpdate({ workflowId, runId, stepResults, serializedStepGraph, executionContext, workflowStatus, result, error, }: {
|
|
@@ -191,7 +211,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
191
211
|
result?: Record<string, any>;
|
|
192
212
|
error?: string | Error;
|
|
193
213
|
}): Promise<void>;
|
|
194
|
-
executeEntry({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, runtimeContext, }: {
|
|
214
|
+
executeEntry({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, abortController, runtimeContext, }: {
|
|
195
215
|
workflowId: string;
|
|
196
216
|
runId: string;
|
|
197
217
|
entry: StepFlowEntry;
|
|
@@ -206,6 +226,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
|
|
|
206
226
|
};
|
|
207
227
|
executionContext: ExecutionContext;
|
|
208
228
|
emitter: Emitter;
|
|
229
|
+
abortController: AbortController;
|
|
209
230
|
runtimeContext: RuntimeContext;
|
|
210
231
|
}): Promise<{
|
|
211
232
|
result: StepResult<any, any, any, any>;
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from '../chunk-
|
|
1
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from '../chunk-O7YOEBDC.js';
|