@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.
Files changed (93) hide show
  1. package/dist/agent/index.cjs +4 -4
  2. package/dist/agent/index.d.cts +8 -8
  3. package/dist/agent/index.d.ts +8 -8
  4. package/dist/agent/index.js +2 -2
  5. package/dist/{base-DVVTzIQy.d.cts → base-B_y9sMg0.d.cts} +1 -1
  6. package/dist/{base-B_WEJuiR.d.cts → base-Bu9IeyHt.d.cts} +48 -15
  7. package/dist/{base-BbdvunNJ.d.ts → base-ClrXcCRx.d.ts} +1 -1
  8. package/dist/{base-DnSegjq5.d.ts → base-D6PagN3X.d.ts} +48 -15
  9. package/dist/base.d.cts +2 -2
  10. package/dist/base.d.ts +2 -2
  11. package/dist/bundler/index.d.cts +2 -2
  12. package/dist/bundler/index.d.ts +2 -2
  13. package/dist/{chunk-V73Z32LN.js → chunk-5S3K64EU.js} +1 -1
  14. package/dist/{chunk-2D7NOO7S.cjs → chunk-6Y4UL5Z6.cjs} +11 -0
  15. package/dist/{chunk-QZ3VZRUU.cjs → chunk-7H2GET5Z.cjs} +6 -2
  16. package/dist/{chunk-YXQF4U4L.js → chunk-7XQIPES3.js} +5 -1
  17. package/dist/{chunk-CHBIZNA3.cjs → chunk-CWXF3ZG4.cjs} +31 -9
  18. package/dist/{chunk-GKCO24Z4.cjs → chunk-CZGP56Y3.cjs} +2 -2
  19. package/dist/{chunk-WTTYHREJ.js → chunk-HM4AOWTY.js} +1 -1
  20. package/dist/{chunk-DO5R43AJ.js → chunk-JQOMTERC.js} +11 -1
  21. package/dist/{chunk-FBURVKXA.js → chunk-O7YOEBDC.js} +220 -41
  22. package/dist/{chunk-E4A4XDDG.cjs → chunk-SO4GUX3Q.cjs} +221 -42
  23. package/dist/{chunk-EYJXFYUH.cjs → chunk-SUF6QXSI.cjs} +70 -40
  24. package/dist/{chunk-QIQOR45O.js → chunk-VMIMBLH4.js} +31 -9
  25. package/dist/{chunk-U2LC4K7N.cjs → chunk-X73RHIY2.cjs} +2 -2
  26. package/dist/{chunk-WK3SHUOG.js → chunk-Y2FKASKG.js} +61 -31
  27. package/dist/deployer/index.d.cts +2 -2
  28. package/dist/deployer/index.d.ts +2 -2
  29. package/dist/eval/index.d.cts +6 -6
  30. package/dist/eval/index.d.ts +6 -6
  31. package/dist/index.cjs +22 -22
  32. package/dist/index.d.cts +5 -5
  33. package/dist/index.d.ts +5 -5
  34. package/dist/index.js +7 -7
  35. package/dist/integration/index.d.cts +10 -10
  36. package/dist/integration/index.d.ts +10 -10
  37. package/dist/llm/index.d.cts +6 -6
  38. package/dist/llm/index.d.ts +6 -6
  39. package/dist/logger/index.cjs +8 -4
  40. package/dist/logger/index.d.cts +2 -2
  41. package/dist/logger/index.d.ts +2 -2
  42. package/dist/logger/index.js +1 -1
  43. package/dist/{logger-CpL0z5v_.d.cts → logger-B8XXh6ya.d.cts} +2 -1
  44. package/dist/{logger-DtVDdb81.d.ts → logger-Bpa2oLL4.d.ts} +2 -1
  45. package/dist/mastra/index.cjs +2 -2
  46. package/dist/mastra/index.d.cts +4 -4
  47. package/dist/mastra/index.d.ts +4 -4
  48. package/dist/mastra/index.js +1 -1
  49. package/dist/mcp/index.d.cts +8 -8
  50. package/dist/mcp/index.d.ts +8 -8
  51. package/dist/memory/index.cjs +4 -4
  52. package/dist/memory/index.d.cts +6 -6
  53. package/dist/memory/index.d.ts +6 -6
  54. package/dist/memory/index.js +1 -1
  55. package/dist/network/index.cjs +2 -2
  56. package/dist/network/index.d.cts +6 -6
  57. package/dist/network/index.d.ts +6 -6
  58. package/dist/network/index.js +1 -1
  59. package/dist/network/vNext/index.cjs +37 -23
  60. package/dist/network/vNext/index.d.cts +8 -8
  61. package/dist/network/vNext/index.d.ts +8 -8
  62. package/dist/network/vNext/index.js +26 -12
  63. package/dist/relevance/index.cjs +4 -4
  64. package/dist/relevance/index.d.cts +8 -8
  65. package/dist/relevance/index.d.ts +8 -8
  66. package/dist/relevance/index.js +1 -1
  67. package/dist/server/index.d.cts +7 -7
  68. package/dist/server/index.d.ts +7 -7
  69. package/dist/storage/index.cjs +2 -2
  70. package/dist/storage/index.d.cts +7 -7
  71. package/dist/storage/index.d.ts +7 -7
  72. package/dist/storage/index.js +1 -1
  73. package/dist/telemetry/index.d.cts +6 -6
  74. package/dist/telemetry/index.d.ts +6 -6
  75. package/dist/tools/index.d.cts +9 -9
  76. package/dist/tools/index.d.ts +9 -9
  77. package/dist/tts/index.d.cts +2 -2
  78. package/dist/tts/index.d.ts +2 -2
  79. package/dist/utils.d.cts +3 -3
  80. package/dist/utils.d.ts +3 -3
  81. package/dist/vector/index.d.cts +2 -2
  82. package/dist/vector/index.d.ts +2 -2
  83. package/dist/voice/index.d.cts +6 -6
  84. package/dist/voice/index.d.ts +6 -6
  85. package/dist/workflows/index.cjs +10 -10
  86. package/dist/workflows/index.d.cts +34 -13
  87. package/dist/workflows/index.d.ts +34 -13
  88. package/dist/workflows/index.js +1 -1
  89. package/dist/workflows/legacy/index.cjs +22 -22
  90. package/dist/workflows/legacy/index.d.cts +11 -11
  91. package/dist/workflows/legacy/index.d.ts +11 -11
  92. package/dist/workflows/legacy/index.js +1 -1
  93. 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-DVVTzIQy.cjs';
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-CpL0z5v_.cjs';
6
- import { o as MastraStorage } from '../base-B_WEJuiR.cjs';
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-BbdvunNJ.js';
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-DtVDdb81.js';
6
- import { o as MastraStorage } from '../base-DnSegjq5.js';
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';
@@ -1,22 +1,22 @@
1
- import { V as VercelTool, c as ToolAction } from '../base-B_WEJuiR.cjs';
2
- export { C as CoreTool, at as InternalCoreTool, ar as Tool, au as ToolExecutionContext, as as createTool } from '../base-B_WEJuiR.cjs';
3
- import '../base-DVVTzIQy.cjs';
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-CpL0z5v_.cjs';
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';
@@ -1,22 +1,22 @@
1
- import { V as VercelTool, c as ToolAction } from '../base-DnSegjq5.js';
2
- export { C as CoreTool, at as InternalCoreTool, ar as Tool, au as ToolExecutionContext, as as createTool } from '../base-DnSegjq5.js';
3
- import '../base-BbdvunNJ.js';
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-DtVDdb81.js';
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';
@@ -1,6 +1,6 @@
1
- import { M as MastraBase } from '../base-DVVTzIQy.cjs';
1
+ import { M as MastraBase } from '../base-B_y9sMg0.cjs';
2
2
  import '@opentelemetry/api';
3
- import '../logger-CpL0z5v_.cjs';
3
+ import '../logger-B8XXh6ya.cjs';
4
4
  import '../error/index.cjs';
5
5
  import 'stream';
6
6
  import '@opentelemetry/sdk-trace-base';
@@ -1,6 +1,6 @@
1
- import { M as MastraBase } from '../base-BbdvunNJ.js';
1
+ import { M as MastraBase } from '../base-ClrXcCRx.js';
2
2
  import '@opentelemetry/api';
3
- import '../logger-DtVDdb81.js';
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-B_WEJuiR.cjs';
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-CpL0z5v_.cjs';
9
- import './base-DVVTzIQy.cjs';
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-DnSegjq5.js';
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-DtVDdb81.js';
9
- import './base-BbdvunNJ.js';
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';
@@ -1,7 +1,7 @@
1
- import { M as MastraBase } from '../base-DVVTzIQy.cjs';
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-CpL0z5v_.cjs';
4
+ import '../logger-B8XXh6ya.cjs';
5
5
  import '../error/index.cjs';
6
6
  import 'stream';
7
7
  import '@opentelemetry/sdk-trace-base';
@@ -1,7 +1,7 @@
1
- import { M as MastraBase } from '../base-BbdvunNJ.js';
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-DtVDdb81.js';
4
+ import '../logger-Bpa2oLL4.js';
5
5
  import '../error/index.js';
6
6
  import 'stream';
7
7
  import '@opentelemetry/sdk-trace-base';
@@ -1,21 +1,21 @@
1
- export { bJ as CompositeVoice, bK as DefaultVoice, bI as MastraVoice, bH as VoiceConfig, bG as VoiceEventMap, bF as VoiceEventType } from '../base-B_WEJuiR.cjs';
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-DVVTzIQy.cjs';
3
+ import '../base-B_y9sMg0.cjs';
4
4
  import '@opentelemetry/api';
5
- import '../logger-CpL0z5v_.cjs';
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';
@@ -1,21 +1,21 @@
1
- export { bJ as CompositeVoice, bK as DefaultVoice, bI as MastraVoice, bH as VoiceConfig, bG as VoiceEventMap, bF as VoiceEventType } from '../base-DnSegjq5.js';
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-BbdvunNJ.js';
3
+ import '../base-ClrXcCRx.js';
4
4
  import '@opentelemetry/api';
5
- import '../logger-DtVDdb81.js';
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';
@@ -1,42 +1,42 @@
1
1
  'use strict';
2
2
 
3
- var chunkE4A4XDDG_cjs = require('../chunk-E4A4XDDG.cjs');
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 chunkE4A4XDDG_cjs.DefaultExecutionEngine; }
9
+ get: function () { return chunkSO4GUX3Q_cjs.DefaultExecutionEngine; }
10
10
  });
11
11
  Object.defineProperty(exports, "ExecutionEngine", {
12
12
  enumerable: true,
13
- get: function () { return chunkE4A4XDDG_cjs.ExecutionEngine; }
13
+ get: function () { return chunkSO4GUX3Q_cjs.ExecutionEngine; }
14
14
  });
15
15
  Object.defineProperty(exports, "Run", {
16
16
  enumerable: true,
17
- get: function () { return chunkE4A4XDDG_cjs.Run; }
17
+ get: function () { return chunkSO4GUX3Q_cjs.Run; }
18
18
  });
19
19
  Object.defineProperty(exports, "Workflow", {
20
20
  enumerable: true,
21
- get: function () { return chunkE4A4XDDG_cjs.Workflow; }
21
+ get: function () { return chunkSO4GUX3Q_cjs.Workflow; }
22
22
  });
23
23
  Object.defineProperty(exports, "cloneStep", {
24
24
  enumerable: true,
25
- get: function () { return chunkE4A4XDDG_cjs.cloneStep; }
25
+ get: function () { return chunkSO4GUX3Q_cjs.cloneStep; }
26
26
  });
27
27
  Object.defineProperty(exports, "cloneWorkflow", {
28
28
  enumerable: true,
29
- get: function () { return chunkE4A4XDDG_cjs.cloneWorkflow; }
29
+ get: function () { return chunkSO4GUX3Q_cjs.cloneWorkflow; }
30
30
  });
31
31
  Object.defineProperty(exports, "createStep", {
32
32
  enumerable: true,
33
- get: function () { return chunkE4A4XDDG_cjs.createStep; }
33
+ get: function () { return chunkSO4GUX3Q_cjs.createStep; }
34
34
  });
35
35
  Object.defineProperty(exports, "createWorkflow", {
36
36
  enumerable: true,
37
- get: function () { return chunkE4A4XDDG_cjs.createWorkflow; }
37
+ get: function () { return chunkSO4GUX3Q_cjs.createWorkflow; }
38
38
  });
39
39
  Object.defineProperty(exports, "mapVariable", {
40
40
  enumerable: true,
41
- get: function () { return chunkE4A4XDDG_cjs.mapVariable; }
41
+ get: function () { return chunkSO4GUX3Q_cjs.mapVariable; }
42
42
  });
@@ -1,22 +1,22 @@
1
- import { bj as ExecutionEngine, bl as Emitter, br as StepResult, bi as ExecutionGraph, ba as SerializedStepFlowEntry, b8 as StepFlowEntry, f as Step, bk as ExecuteFunction, aw as DefaultEngineType } from '../base-B_WEJuiR.cjs';
2
- export { bt as DynamicMapping, bw as ExtractSchemaFromStep, bv as ExtractSchemaType, bu as PathsToStringProps, bh as Run, b9 as SerializedStep, bn as StepFailure, bp as StepRunning, bm as StepSuccess, bo as StepSuspended, bq as StepWaiting, bs as StepsRecord, by as StreamEvent, bx as VariableReference, bA as WatchEvent, e as Workflow, ax as WorkflowConfig, bg as WorkflowResult, bC as WorkflowRunState, bz as WorkflowRunStatus, bB as ZodPathType, bd as cloneStep, bf as cloneWorkflow, bc as createStep, be as createWorkflow, bb as mapVariable } from '../base-B_WEJuiR.cjs';
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-DVVTzIQy.cjs';
7
- import '../logger-CpL0z5v_.cjs';
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 { bj as ExecutionEngine, bl as Emitter, br as StepResult, bi as ExecutionGraph, ba as SerializedStepFlowEntry, b8 as StepFlowEntry, f as Step, bk as ExecuteFunction, aw as DefaultEngineType } from '../base-DnSegjq5.js';
2
- export { bt as DynamicMapping, bw as ExtractSchemaFromStep, bv as ExtractSchemaType, bu as PathsToStringProps, bh as Run, b9 as SerializedStep, bn as StepFailure, bp as StepRunning, bm as StepSuccess, bo as StepSuspended, bq as StepWaiting, bs as StepsRecord, by as StreamEvent, bx as VariableReference, bA as WatchEvent, e as Workflow, ax as WorkflowConfig, bg as WorkflowResult, bC as WorkflowRunState, bz as WorkflowRunStatus, bB as ZodPathType, bd as cloneStep, bf as cloneWorkflow, bc as createStep, be as createWorkflow, bb as mapVariable } from '../base-DnSegjq5.js';
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-BbdvunNJ.js';
7
- import '../logger-DtVDdb81.js';
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>;
@@ -1 +1 @@
1
- export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from '../chunk-FBURVKXA.js';
1
+ export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from '../chunk-O7YOEBDC.js';