@mastra/core 0.10.4 → 0.10.5

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 (103) hide show
  1. package/dist/agent/index.cjs +4 -4
  2. package/dist/agent/index.d.cts +1 -1
  3. package/dist/agent/index.d.ts +1 -1
  4. package/dist/agent/index.js +2 -2
  5. package/dist/{base-icHjkcs-.d.ts → base-CmIdgTSq.d.ts} +37 -31
  6. package/dist/{base-Bdc5hWla.d.cts → base-_mZ6e_qo.d.cts} +37 -31
  7. package/dist/chunk-2RZXEVWT.js +68 -0
  8. package/dist/{chunk-UFQERGWG.js → chunk-32XBQVNY.js} +117 -28
  9. package/dist/{chunk-TRJIWZKM.js → chunk-3SY7GRSA.js} +1 -1
  10. package/dist/{chunk-PUG7THT5.cjs → chunk-6EMFDXAQ.cjs} +4 -4
  11. package/dist/{chunk-36UICULV.js → chunk-6PQRSQZF.js} +35 -5
  12. package/dist/{chunk-VB4S54R3.cjs → chunk-7L56W43N.cjs} +118 -29
  13. package/dist/{chunk-62ZSDIUK.js → chunk-BMED2N3R.js} +1 -1
  14. package/dist/{chunk-I2KL5KMY.js → chunk-CMEK3A3W.js} +2 -2
  15. package/dist/{chunk-HGPLTKJA.cjs → chunk-D2ULEJL3.cjs} +2 -2
  16. package/dist/{chunk-AX6IHSGY.js → chunk-DPKEVI6Q.js} +1 -1
  17. package/dist/{chunk-ZKUUYDOQ.cjs → chunk-EFJIVMMM.cjs} +21 -21
  18. package/dist/{chunk-SI2ENZ3O.js → chunk-F2DBWJK3.js} +1 -1
  19. package/dist/{chunk-Z37B4W7B.js → chunk-HIQ3FPBN.js} +1 -1
  20. package/dist/{chunk-RO5VPM3P.cjs → chunk-HVI3SKIH.cjs} +278 -55
  21. package/dist/{chunk-GV6P24NY.cjs → chunk-ISRXIKDS.cjs} +4 -4
  22. package/dist/{chunk-QVROTSA5.cjs → chunk-J7MLMW6O.cjs} +2 -2
  23. package/dist/{chunk-PVGSY24V.js → chunk-LDNCERLU.js} +7 -0
  24. package/dist/{chunk-S6WRT7GI.cjs → chunk-LRMKKZ6M.cjs} +2 -2
  25. package/dist/{chunk-BBAQW23O.cjs → chunk-OLSQRA2V.cjs} +7 -0
  26. package/dist/chunk-Q65UGFQK.cjs +70 -0
  27. package/dist/{chunk-ZAXPU6F2.cjs → chunk-QQ3KHYKE.cjs} +35 -5
  28. package/dist/{chunk-ZWYZGIV3.cjs → chunk-QQT4XTOG.cjs} +279 -73
  29. package/dist/{chunk-XUODQRSL.cjs → chunk-TGK6JO2D.cjs} +3 -3
  30. package/dist/{chunk-JYLH5IY3.cjs → chunk-VRDDTY4O.cjs} +87 -16
  31. package/dist/{chunk-SWJKOFCU.js → chunk-VZDPK54I.js} +262 -56
  32. package/dist/{chunk-HFEELWJO.js → chunk-YDGX5LRI.js} +274 -51
  33. package/dist/{chunk-7UNDRBOU.js → chunk-YLCFUSJ4.js} +86 -15
  34. package/dist/{chunk-IZGRJXUQ.js → chunk-Z7SBZ7XB.js} +1 -1
  35. package/dist/error/index.cjs +5 -5
  36. package/dist/error/index.d.cts +7 -0
  37. package/dist/error/index.d.ts +7 -0
  38. package/dist/error/index.js +1 -1
  39. package/dist/eval/index.d.cts +1 -1
  40. package/dist/eval/index.d.ts +1 -1
  41. package/dist/index.cjs +48 -48
  42. package/dist/index.d.cts +2 -2
  43. package/dist/index.d.ts +2 -2
  44. package/dist/index.js +12 -12
  45. package/dist/integration/index.d.cts +1 -1
  46. package/dist/integration/index.d.ts +1 -1
  47. package/dist/llm/index.d.cts +1 -1
  48. package/dist/llm/index.d.ts +1 -1
  49. package/dist/mastra/index.cjs +2 -2
  50. package/dist/mastra/index.d.cts +1 -1
  51. package/dist/mastra/index.d.ts +1 -1
  52. package/dist/mastra/index.js +1 -1
  53. package/dist/mcp/index.d.cts +1 -1
  54. package/dist/mcp/index.d.ts +1 -1
  55. package/dist/memory/index.cjs +4 -4
  56. package/dist/memory/index.d.cts +1 -1
  57. package/dist/memory/index.d.ts +1 -1
  58. package/dist/memory/index.js +1 -1
  59. package/dist/network/index.cjs +11 -5
  60. package/dist/network/index.d.cts +1 -1
  61. package/dist/network/index.d.ts +1 -1
  62. package/dist/network/index.js +10 -4
  63. package/dist/relevance/index.cjs +4 -4
  64. package/dist/relevance/index.d.cts +1 -1
  65. package/dist/relevance/index.d.ts +1 -1
  66. package/dist/relevance/index.js +1 -1
  67. package/dist/server/index.cjs +9 -3
  68. package/dist/server/index.d.cts +2 -2
  69. package/dist/server/index.d.ts +2 -2
  70. package/dist/server/index.js +8 -2
  71. package/dist/storage/index.cjs +12 -12
  72. package/dist/storage/index.d.cts +2 -2
  73. package/dist/storage/index.d.ts +2 -2
  74. package/dist/storage/index.js +4 -4
  75. package/dist/telemetry/index.cjs +7 -7
  76. package/dist/telemetry/index.d.cts +1 -1
  77. package/dist/telemetry/index.d.ts +1 -1
  78. package/dist/telemetry/index.js +1 -1
  79. package/dist/tools/index.d.cts +2 -2
  80. package/dist/tools/index.d.ts +2 -2
  81. package/dist/tts/index.cjs +2 -2
  82. package/dist/tts/index.js +1 -1
  83. package/dist/utils.cjs +14 -14
  84. package/dist/utils.d.cts +2 -2
  85. package/dist/utils.d.ts +2 -2
  86. package/dist/utils.js +1 -1
  87. package/dist/vector/index.cjs +2 -2
  88. package/dist/vector/index.js +1 -1
  89. package/dist/voice/index.cjs +4 -4
  90. package/dist/voice/index.d.cts +1 -1
  91. package/dist/voice/index.d.ts +1 -1
  92. package/dist/voice/index.js +1 -1
  93. package/dist/workflows/index.cjs +9 -9
  94. package/dist/workflows/index.d.cts +14 -7
  95. package/dist/workflows/index.d.ts +14 -7
  96. package/dist/workflows/index.js +1 -1
  97. package/dist/workflows/legacy/index.cjs +22 -22
  98. package/dist/workflows/legacy/index.d.cts +2 -2
  99. package/dist/workflows/legacy/index.d.ts +2 -2
  100. package/dist/workflows/legacy/index.js +1 -1
  101. package/package.json +2 -2
  102. package/dist/chunk-IM7CLVLZ.js +0 -43
  103. package/dist/chunk-LEK3J7YN.cjs +0 -45
@@ -1,7 +1,7 @@
1
1
  import { Handler, Context, MiddlewareHandler } from 'hono';
2
2
  import { DescribeRouteOptions } from 'hono-openapi';
3
- import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-Bdc5hWla.cjs';
4
- export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-Bdc5hWla.cjs';
3
+ import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-_mZ6e_qo.cjs';
4
+ export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-_mZ6e_qo.cjs';
5
5
  import 'ai';
6
6
  import '../base-DVVTzIQy.cjs';
7
7
  import '@opentelemetry/api';
@@ -1,7 +1,7 @@
1
1
  import { Handler, Context, MiddlewareHandler } from 'hono';
2
2
  import { DescribeRouteOptions } from 'hono-openapi';
3
- import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-icHjkcs-.js';
4
- export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-icHjkcs-.js';
3
+ import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-CmIdgTSq.js';
4
+ export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-CmIdgTSq.js';
5
5
  import 'ai';
6
6
  import '../base-BbdvunNJ.js';
7
7
  import '@opentelemetry/api';
@@ -1,4 +1,5 @@
1
- import { InstrumentClass } from '../chunk-36UICULV.js';
1
+ import { InstrumentClass } from '../chunk-6PQRSQZF.js';
2
+ import { MastraError } from '../chunk-LDNCERLU.js';
2
3
  import { MastraBase } from '../chunk-5IEKR756.js';
3
4
  import { __decoratorStart, __decorateElement, __runInitializers } from '../chunk-C6A6W6XS.js';
4
5
 
@@ -35,7 +36,12 @@ MastraAuthProvider = /*@__PURE__*/(_ => {
35
36
  // src/server/index.ts
36
37
  function registerApiRoute(path, options) {
37
38
  if (path.startsWith("/api/")) {
38
- throw new Error(`Path must not start with "/api", it's reserved for internal API routes`);
39
+ throw new MastraError({
40
+ id: "MASTRA_SERVER_API_PATH_RESERVED",
41
+ text: `Path must not start with "/api", it's reserved for internal API routes`,
42
+ domain: "MASTRA_SERVER" /* MASTRA_SERVER */,
43
+ category: "USER" /* USER */
44
+ });
39
45
  }
40
46
  return {
41
47
  path,
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkZKUUYDOQ_cjs = require('../chunk-ZKUUYDOQ.cjs');
4
- var chunkXUODQRSL_cjs = require('../chunk-XUODQRSL.cjs');
5
- var chunkZAXPU6F2_cjs = require('../chunk-ZAXPU6F2.cjs');
3
+ var chunkEFJIVMMM_cjs = require('../chunk-EFJIVMMM.cjs');
4
+ var chunkTGK6JO2D_cjs = require('../chunk-TGK6JO2D.cjs');
5
+ var chunkQQ3KHYKE_cjs = require('../chunk-QQ3KHYKE.cjs');
6
6
 
7
7
  // src/storage/mock.ts
8
- var MockStore = class extends chunkZKUUYDOQ_cjs.MastraStorage {
8
+ var MockStore = class extends chunkEFJIVMMM_cjs.MastraStorage {
9
9
  data = {
10
10
  mastra_workflow_snapshot: {},
11
11
  mastra_evals: {},
@@ -96,7 +96,7 @@ var MockStore = class extends chunkZKUUYDOQ_cjs.MastraStorage {
96
96
  const key = message.id;
97
97
  this.data.mastra_messages[key] = message;
98
98
  }
99
- const list = new chunkXUODQRSL_cjs.MessageList().add(messages, "memory");
99
+ const list = new chunkTGK6JO2D_cjs.MessageList().add(messages, "memory");
100
100
  if (format === `v2`) return list.get.all.v2();
101
101
  return list.get.all.v1();
102
102
  }
@@ -258,30 +258,30 @@ var MockStore = class extends chunkZKUUYDOQ_cjs.MastraStorage {
258
258
 
259
259
  Object.defineProperty(exports, "MastraStorage", {
260
260
  enumerable: true,
261
- get: function () { return chunkZKUUYDOQ_cjs.MastraStorage; }
261
+ get: function () { return chunkEFJIVMMM_cjs.MastraStorage; }
262
262
  });
263
263
  Object.defineProperty(exports, "TABLE_EVALS", {
264
264
  enumerable: true,
265
- get: function () { return chunkZAXPU6F2_cjs.TABLE_EVALS; }
265
+ get: function () { return chunkQQ3KHYKE_cjs.TABLE_EVALS; }
266
266
  });
267
267
  Object.defineProperty(exports, "TABLE_MESSAGES", {
268
268
  enumerable: true,
269
- get: function () { return chunkZAXPU6F2_cjs.TABLE_MESSAGES; }
269
+ get: function () { return chunkQQ3KHYKE_cjs.TABLE_MESSAGES; }
270
270
  });
271
271
  Object.defineProperty(exports, "TABLE_SCHEMAS", {
272
272
  enumerable: true,
273
- get: function () { return chunkZAXPU6F2_cjs.TABLE_SCHEMAS; }
273
+ get: function () { return chunkQQ3KHYKE_cjs.TABLE_SCHEMAS; }
274
274
  });
275
275
  Object.defineProperty(exports, "TABLE_THREADS", {
276
276
  enumerable: true,
277
- get: function () { return chunkZAXPU6F2_cjs.TABLE_THREADS; }
277
+ get: function () { return chunkQQ3KHYKE_cjs.TABLE_THREADS; }
278
278
  });
279
279
  Object.defineProperty(exports, "TABLE_TRACES", {
280
280
  enumerable: true,
281
- get: function () { return chunkZAXPU6F2_cjs.TABLE_TRACES; }
281
+ get: function () { return chunkQQ3KHYKE_cjs.TABLE_TRACES; }
282
282
  });
283
283
  Object.defineProperty(exports, "TABLE_WORKFLOW_SNAPSHOT", {
284
284
  enumerable: true,
285
- get: function () { return chunkZAXPU6F2_cjs.TABLE_WORKFLOW_SNAPSHOT; }
285
+ get: function () { return chunkQQ3KHYKE_cjs.TABLE_WORKFLOW_SNAPSHOT; }
286
286
  });
287
287
  exports.MockStore = MockStore;
@@ -1,5 +1,5 @@
1
- import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun, P as PaginationInfo } from '../base-Bdc5hWla.cjs';
2
- export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, z as PaginationArgs, B as StorageGetTracesArg, F as TABLE_EVALS, G as TABLE_MESSAGES, J as TABLE_SCHEMAS, H as TABLE_THREADS, I as TABLE_TRACES, D as TABLE_WORKFLOW_SNAPSHOT } from '../base-Bdc5hWla.cjs';
1
+ import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun, P as PaginationInfo } from '../base-_mZ6e_qo.cjs';
2
+ export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, z as PaginationArgs, B as StorageGetTracesArg, G as TABLE_EVALS, H as TABLE_MESSAGES, K as TABLE_SCHEMAS, I as TABLE_THREADS, J as TABLE_TRACES, F as TABLE_WORKFLOW_SNAPSHOT } from '../base-_mZ6e_qo.cjs';
3
3
  import { T as Trace } from '../base-DVVTzIQy.cjs';
4
4
  import 'ai';
5
5
  import 'zod';
@@ -1,5 +1,5 @@
1
- import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun, P as PaginationInfo } from '../base-icHjkcs-.js';
2
- export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, z as PaginationArgs, B as StorageGetTracesArg, F as TABLE_EVALS, G as TABLE_MESSAGES, J as TABLE_SCHEMAS, H as TABLE_THREADS, I as TABLE_TRACES, D as TABLE_WORKFLOW_SNAPSHOT } from '../base-icHjkcs-.js';
1
+ import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun, P as PaginationInfo } from '../base-CmIdgTSq.js';
2
+ export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, z as PaginationArgs, B as StorageGetTracesArg, G as TABLE_EVALS, H as TABLE_MESSAGES, K as TABLE_SCHEMAS, I as TABLE_THREADS, J as TABLE_TRACES, F as TABLE_WORKFLOW_SNAPSHOT } from '../base-CmIdgTSq.js';
3
3
  import { T as Trace } from '../base-BbdvunNJ.js';
4
4
  import 'ai';
5
5
  import 'zod';
@@ -1,7 +1,7 @@
1
- import { MastraStorage } from '../chunk-62ZSDIUK.js';
2
- export { MastraStorage } from '../chunk-62ZSDIUK.js';
3
- import { MessageList } from '../chunk-AX6IHSGY.js';
4
- export { TABLE_EVALS, TABLE_MESSAGES, TABLE_SCHEMAS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-36UICULV.js';
1
+ import { MastraStorage } from '../chunk-BMED2N3R.js';
2
+ export { MastraStorage } from '../chunk-BMED2N3R.js';
3
+ import { MessageList } from '../chunk-DPKEVI6Q.js';
4
+ export { TABLE_EVALS, TABLE_MESSAGES, TABLE_SCHEMAS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-6PQRSQZF.js';
5
5
 
6
6
  // src/storage/mock.ts
7
7
  var MockStore = class extends MastraStorage {
@@ -1,30 +1,30 @@
1
1
  'use strict';
2
2
 
3
- var chunkZAXPU6F2_cjs = require('../chunk-ZAXPU6F2.cjs');
3
+ var chunkQQ3KHYKE_cjs = require('../chunk-QQ3KHYKE.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "InstrumentClass", {
8
8
  enumerable: true,
9
- get: function () { return chunkZAXPU6F2_cjs.InstrumentClass; }
9
+ get: function () { return chunkQQ3KHYKE_cjs.InstrumentClass; }
10
10
  });
11
11
  Object.defineProperty(exports, "OTLPStorageExporter", {
12
12
  enumerable: true,
13
- get: function () { return chunkZAXPU6F2_cjs.OTLPTraceExporter; }
13
+ get: function () { return chunkQQ3KHYKE_cjs.OTLPTraceExporter; }
14
14
  });
15
15
  Object.defineProperty(exports, "Telemetry", {
16
16
  enumerable: true,
17
- get: function () { return chunkZAXPU6F2_cjs.Telemetry; }
17
+ get: function () { return chunkQQ3KHYKE_cjs.Telemetry; }
18
18
  });
19
19
  Object.defineProperty(exports, "getBaggageValues", {
20
20
  enumerable: true,
21
- get: function () { return chunkZAXPU6F2_cjs.getBaggageValues; }
21
+ get: function () { return chunkQQ3KHYKE_cjs.getBaggageValues; }
22
22
  });
23
23
  Object.defineProperty(exports, "hasActiveTelemetry", {
24
24
  enumerable: true,
25
- get: function () { return chunkZAXPU6F2_cjs.hasActiveTelemetry; }
25
+ get: function () { return chunkQQ3KHYKE_cjs.hasActiveTelemetry; }
26
26
  });
27
27
  Object.defineProperty(exports, "withSpan", {
28
28
  enumerable: true,
29
- get: function () { return chunkZAXPU6F2_cjs.withSpan; }
29
+ get: function () { return chunkQQ3KHYKE_cjs.withSpan; }
30
30
  });
@@ -3,7 +3,7 @@ import { SpanKind, Context } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
5
  import { I as IMastraLogger } from '../logger-CpL0z5v_.cjs';
6
- import { o as MastraStorage } from '../base-Bdc5hWla.cjs';
6
+ import { o as MastraStorage } from '../base-_mZ6e_qo.cjs';
7
7
  import '../error/index.cjs';
8
8
  import 'stream';
9
9
  import 'ai';
@@ -3,7 +3,7 @@ import { SpanKind, Context } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
5
  import { I as IMastraLogger } from '../logger-DtVDdb81.js';
6
- import { o as MastraStorage } from '../base-icHjkcs-.js';
6
+ import { o as MastraStorage } from '../base-CmIdgTSq.js';
7
7
  import '../error/index.js';
8
8
  import 'stream';
9
9
  import 'ai';
@@ -1 +1 @@
1
- export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from '../chunk-36UICULV.js';
1
+ export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from '../chunk-6PQRSQZF.js';
@@ -1,5 +1,5 @@
1
- import { V as VercelTool, c as ToolAction } from '../base-Bdc5hWla.cjs';
2
- export { C as CoreTool, aq as InternalCoreTool, ao as Tool, ar as ToolExecutionContext, ap as createTool } from '../base-Bdc5hWla.cjs';
1
+ import { V as VercelTool, c as ToolAction } from '../base-_mZ6e_qo.cjs';
2
+ export { C as CoreTool, ar as InternalCoreTool, ap as Tool, as as ToolExecutionContext, aq as createTool } from '../base-_mZ6e_qo.cjs';
3
3
  import '../base-DVVTzIQy.cjs';
4
4
  import 'ai';
5
5
  import 'zod';
@@ -1,5 +1,5 @@
1
- import { V as VercelTool, c as ToolAction } from '../base-icHjkcs-.js';
2
- export { C as CoreTool, aq as InternalCoreTool, ao as Tool, ar as ToolExecutionContext, ap as createTool } from '../base-icHjkcs-.js';
1
+ import { V as VercelTool, c as ToolAction } from '../base-CmIdgTSq.js';
2
+ export { C as CoreTool, ar as InternalCoreTool, ap as Tool, as as ToolExecutionContext, aq as createTool } from '../base-CmIdgTSq.js';
3
3
  import '../base-BbdvunNJ.js';
4
4
  import 'ai';
5
5
  import 'zod';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkS6WRT7GI_cjs = require('../chunk-S6WRT7GI.cjs');
3
+ var chunkLRMKKZ6M_cjs = require('../chunk-LRMKKZ6M.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraTTS", {
8
8
  enumerable: true,
9
- get: function () { return chunkS6WRT7GI_cjs.MastraTTS; }
9
+ get: function () { return chunkLRMKKZ6M_cjs.MastraTTS; }
10
10
  });
package/dist/tts/index.js CHANGED
@@ -1 +1 @@
1
- export { MastraTTS } from '../chunk-SI2ENZ3O.js';
1
+ export { MastraTTS } from '../chunk-F2DBWJK3.js';
package/dist/utils.cjs CHANGED
@@ -1,58 +1,58 @@
1
1
  'use strict';
2
2
 
3
- var chunkQVROTSA5_cjs = require('./chunk-QVROTSA5.cjs');
3
+ var chunkJ7MLMW6O_cjs = require('./chunk-J7MLMW6O.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "checkEvalStorageFields", {
8
8
  enumerable: true,
9
- get: function () { return chunkQVROTSA5_cjs.checkEvalStorageFields; }
9
+ get: function () { return chunkJ7MLMW6O_cjs.checkEvalStorageFields; }
10
10
  });
11
11
  Object.defineProperty(exports, "createMastraProxy", {
12
12
  enumerable: true,
13
- get: function () { return chunkQVROTSA5_cjs.createMastraProxy; }
13
+ get: function () { return chunkJ7MLMW6O_cjs.createMastraProxy; }
14
14
  });
15
15
  Object.defineProperty(exports, "deepMerge", {
16
16
  enumerable: true,
17
- get: function () { return chunkQVROTSA5_cjs.deepMerge; }
17
+ get: function () { return chunkJ7MLMW6O_cjs.deepMerge; }
18
18
  });
19
19
  Object.defineProperty(exports, "delay", {
20
20
  enumerable: true,
21
- get: function () { return chunkQVROTSA5_cjs.delay; }
21
+ get: function () { return chunkJ7MLMW6O_cjs.delay; }
22
22
  });
23
23
  Object.defineProperty(exports, "ensureToolProperties", {
24
24
  enumerable: true,
25
- get: function () { return chunkQVROTSA5_cjs.ensureToolProperties; }
25
+ get: function () { return chunkJ7MLMW6O_cjs.ensureToolProperties; }
26
26
  });
27
27
  Object.defineProperty(exports, "isCoreMessage", {
28
28
  enumerable: true,
29
- get: function () { return chunkQVROTSA5_cjs.isCoreMessage; }
29
+ get: function () { return chunkJ7MLMW6O_cjs.isCoreMessage; }
30
30
  });
31
31
  Object.defineProperty(exports, "isUiMessage", {
32
32
  enumerable: true,
33
- get: function () { return chunkQVROTSA5_cjs.isUiMessage; }
33
+ get: function () { return chunkJ7MLMW6O_cjs.isUiMessage; }
34
34
  });
35
35
  Object.defineProperty(exports, "isZodType", {
36
36
  enumerable: true,
37
- get: function () { return chunkQVROTSA5_cjs.isZodType; }
37
+ get: function () { return chunkJ7MLMW6O_cjs.isZodType; }
38
38
  });
39
39
  Object.defineProperty(exports, "makeCoreTool", {
40
40
  enumerable: true,
41
- get: function () { return chunkQVROTSA5_cjs.makeCoreTool; }
41
+ get: function () { return chunkJ7MLMW6O_cjs.makeCoreTool; }
42
42
  });
43
43
  Object.defineProperty(exports, "maskStreamTags", {
44
44
  enumerable: true,
45
- get: function () { return chunkQVROTSA5_cjs.maskStreamTags; }
45
+ get: function () { return chunkJ7MLMW6O_cjs.maskStreamTags; }
46
46
  });
47
47
  Object.defineProperty(exports, "parseFieldKey", {
48
48
  enumerable: true,
49
- get: function () { return chunkQVROTSA5_cjs.parseFieldKey; }
49
+ get: function () { return chunkJ7MLMW6O_cjs.parseFieldKey; }
50
50
  });
51
51
  Object.defineProperty(exports, "parseSqlIdentifier", {
52
52
  enumerable: true,
53
- get: function () { return chunkQVROTSA5_cjs.parseSqlIdentifier; }
53
+ get: function () { return chunkJ7MLMW6O_cjs.parseSqlIdentifier; }
54
54
  });
55
55
  Object.defineProperty(exports, "resolveSerializedZodOutput", {
56
56
  enumerable: true,
57
- get: function () { return chunkQVROTSA5_cjs.resolveSerializedZodOutput; }
57
+ get: function () { return chunkJ7MLMW6O_cjs.resolveSerializedZodOutput; }
58
58
  });
package/dist/utils.d.cts CHANGED
@@ -1,4 +1,4 @@
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, h as MCPServerBase } from './base-Bdc5hWla.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, D as DefaultEngineType, g as AgentNetwork, h as MCPServerBase } from './base-_mZ6e_qo.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';
@@ -97,7 +97,7 @@ declare function makeCoreTool(originalTool: ToolToConvert, options: ToolOptions,
97
97
  declare function createMastraProxy({ mastra, logger }: {
98
98
  mastra: Mastra;
99
99
  logger: IMastraLogger;
100
- }): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, LegacyWorkflow<LegacyStep<string, any, any, StepExecutionContext<any, WorkflowContext<any, LegacyStep<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<Step<string, any, any, any, any>[], string, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, MastraVector>, Record<string, MastraTTS>, IMastraLogger, Record<string, AgentNetwork>, Record<string, MCPServerBase>>;
100
+ }): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, LegacyWorkflow<LegacyStep<string, any, any, StepExecutionContext<any, WorkflowContext<any, LegacyStep<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<Step<string, any, any, any, any, any>[], string, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, DefaultEngineType, z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, MastraVector>, Record<string, MastraTTS>, IMastraLogger, Record<string, AgentNetwork>, Record<string, MCPServerBase>>;
101
101
  declare function checkEvalStorageFields(traceObject: any, logger?: IMastraLogger): boolean;
102
102
  declare function isUiMessage(message: CoreMessage | Message): message is Message;
103
103
  declare function isCoreMessage(message: CoreMessage | Message): message is CoreMessage;
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
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, h as MCPServerBase } from './base-icHjkcs-.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, D as DefaultEngineType, g as AgentNetwork, h as MCPServerBase } from './base-CmIdgTSq.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';
@@ -97,7 +97,7 @@ declare function makeCoreTool(originalTool: ToolToConvert, options: ToolOptions,
97
97
  declare function createMastraProxy({ mastra, logger }: {
98
98
  mastra: Mastra;
99
99
  logger: IMastraLogger;
100
- }): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, LegacyWorkflow<LegacyStep<string, any, any, StepExecutionContext<any, WorkflowContext<any, LegacyStep<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<Step<string, any, any, any, any>[], string, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, MastraVector>, Record<string, MastraTTS>, IMastraLogger, Record<string, AgentNetwork>, Record<string, MCPServerBase>>;
100
+ }): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, LegacyWorkflow<LegacyStep<string, any, any, StepExecutionContext<any, WorkflowContext<any, LegacyStep<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<Step<string, any, any, any, any, any>[], string, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, DefaultEngineType, z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, MastraVector>, Record<string, MastraTTS>, IMastraLogger, Record<string, AgentNetwork>, Record<string, MCPServerBase>>;
101
101
  declare function checkEvalStorageFields(traceObject: any, logger?: IMastraLogger): boolean;
102
102
  declare function isUiMessage(message: CoreMessage | Message): message is Message;
103
103
  declare function isCoreMessage(message: CoreMessage | Message): message is CoreMessage;
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-TRJIWZKM.js';
1
+ export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-3SY7GRSA.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkLEK3J7YN_cjs = require('../chunk-LEK3J7YN.cjs');
3
+ var chunkQ65UGFQK_cjs = require('../chunk-Q65UGFQK.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraVector", {
8
8
  enumerable: true,
9
- get: function () { return chunkLEK3J7YN_cjs.MastraVector; }
9
+ get: function () { return chunkQ65UGFQK_cjs.MastraVector; }
10
10
  });
@@ -1 +1 @@
1
- export { MastraVector } from '../chunk-IM7CLVLZ.js';
1
+ export { MastraVector } from '../chunk-2RZXEVWT.js';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkJYLH5IY3_cjs = require('../chunk-JYLH5IY3.cjs');
3
+ var chunkVRDDTY4O_cjs = require('../chunk-VRDDTY4O.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CompositeVoice", {
8
8
  enumerable: true,
9
- get: function () { return chunkJYLH5IY3_cjs.CompositeVoice; }
9
+ get: function () { return chunkVRDDTY4O_cjs.CompositeVoice; }
10
10
  });
11
11
  Object.defineProperty(exports, "DefaultVoice", {
12
12
  enumerable: true,
13
- get: function () { return chunkJYLH5IY3_cjs.DefaultVoice; }
13
+ get: function () { return chunkVRDDTY4O_cjs.DefaultVoice; }
14
14
  });
15
15
  Object.defineProperty(exports, "MastraVoice", {
16
16
  enumerable: true,
17
- get: function () { return chunkJYLH5IY3_cjs.MastraVoice; }
17
+ get: function () { return chunkVRDDTY4O_cjs.MastraVoice; }
18
18
  });
@@ -1,4 +1,4 @@
1
- export { bw as CompositeVoice, bx as DefaultVoice, bv as MastraVoice, bu as VoiceConfig, bt as VoiceEventMap, bs as VoiceEventType } from '../base-Bdc5hWla.cjs';
1
+ export { bx as CompositeVoice, by as DefaultVoice, bw as MastraVoice, bv as VoiceConfig, bu as VoiceEventMap, bt as VoiceEventType } from '../base-_mZ6e_qo.cjs';
2
2
  import 'ai';
3
3
  import '../base-DVVTzIQy.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { bw as CompositeVoice, bx as DefaultVoice, bv as MastraVoice, bu as VoiceConfig, bt as VoiceEventMap, bs as VoiceEventType } from '../base-icHjkcs-.js';
1
+ export { bx as CompositeVoice, by as DefaultVoice, bw as MastraVoice, bv as VoiceConfig, bu as VoiceEventMap, bt as VoiceEventType } from '../base-CmIdgTSq.js';
2
2
  import 'ai';
3
3
  import '../base-BbdvunNJ.js';
4
4
  import '@opentelemetry/api';
@@ -1 +1 @@
1
- export { CompositeVoice, DefaultVoice, MastraVoice } from '../chunk-7UNDRBOU.js';
1
+ export { CompositeVoice, DefaultVoice, MastraVoice } from '../chunk-YLCFUSJ4.js';
@@ -1,38 +1,38 @@
1
1
  'use strict';
2
2
 
3
- var chunkVB4S54R3_cjs = require('../chunk-VB4S54R3.cjs');
3
+ var chunk7L56W43N_cjs = require('../chunk-7L56W43N.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "DefaultExecutionEngine", {
8
8
  enumerable: true,
9
- get: function () { return chunkVB4S54R3_cjs.DefaultExecutionEngine; }
9
+ get: function () { return chunk7L56W43N_cjs.DefaultExecutionEngine; }
10
10
  });
11
11
  Object.defineProperty(exports, "ExecutionEngine", {
12
12
  enumerable: true,
13
- get: function () { return chunkVB4S54R3_cjs.ExecutionEngine; }
13
+ get: function () { return chunk7L56W43N_cjs.ExecutionEngine; }
14
14
  });
15
15
  Object.defineProperty(exports, "Run", {
16
16
  enumerable: true,
17
- get: function () { return chunkVB4S54R3_cjs.Run; }
17
+ get: function () { return chunk7L56W43N_cjs.Run; }
18
18
  });
19
19
  Object.defineProperty(exports, "Workflow", {
20
20
  enumerable: true,
21
- get: function () { return chunkVB4S54R3_cjs.Workflow; }
21
+ get: function () { return chunk7L56W43N_cjs.Workflow; }
22
22
  });
23
23
  Object.defineProperty(exports, "cloneStep", {
24
24
  enumerable: true,
25
- get: function () { return chunkVB4S54R3_cjs.cloneStep; }
25
+ get: function () { return chunk7L56W43N_cjs.cloneStep; }
26
26
  });
27
27
  Object.defineProperty(exports, "cloneWorkflow", {
28
28
  enumerable: true,
29
- get: function () { return chunkVB4S54R3_cjs.cloneWorkflow; }
29
+ get: function () { return chunk7L56W43N_cjs.cloneWorkflow; }
30
30
  });
31
31
  Object.defineProperty(exports, "createStep", {
32
32
  enumerable: true,
33
- get: function () { return chunkVB4S54R3_cjs.createStep; }
33
+ get: function () { return chunk7L56W43N_cjs.createStep; }
34
34
  });
35
35
  Object.defineProperty(exports, "createWorkflow", {
36
36
  enumerable: true,
37
- get: function () { return chunkVB4S54R3_cjs.createWorkflow; }
37
+ get: function () { return chunk7L56W43N_cjs.createWorkflow; }
38
38
  });
@@ -1,5 +1,5 @@
1
- import { ba as ExecutionEngine, bg as StepResult, b9 as ExecutionGraph, b2 as SerializedStepFlowEntry, b0 as StepFlowEntry, f as Step, bb as ExecuteFunction } from '../base-Bdc5hWla.cjs';
2
- export { bi as DynamicMapping, bl as ExtractSchemaFromStep, bk as ExtractSchemaType, bj as PathsToStringProps, b8 as Run, b1 as SerializedStep, bd as StepFailure, bf as StepRunning, bc as StepSuccess, be as StepSuspended, bh as StepsRecord, bn as StreamEvent, bm as VariableReference, bo as WatchEvent, e as Workflow, at as WorkflowConfig, b7 as WorkflowResult, bq as WorkflowRunState, bp as ZodPathType, b4 as cloneStep, b6 as cloneWorkflow, b3 as createStep, b5 as createWorkflow } from '../base-Bdc5hWla.cjs';
1
+ import { bb as ExecutionEngine, bh as StepResult, ba as ExecutionGraph, b3 as SerializedStepFlowEntry, b1 as StepFlowEntry, f as Step, bc as ExecuteFunction, D as DefaultEngineType } from '../base-_mZ6e_qo.cjs';
2
+ export { bj as DynamicMapping, bm as ExtractSchemaFromStep, bl as ExtractSchemaType, bk as PathsToStringProps, b9 as Run, b2 as SerializedStep, be as StepFailure, bg as StepRunning, bd as StepSuccess, bf as StepSuspended, bi as StepsRecord, bo as StreamEvent, bn as VariableReference, bp as WatchEvent, e as Workflow, au as WorkflowConfig, b8 as WorkflowResult, br as WorkflowRunState, bq as ZodPathType, b5 as cloneStep, b7 as cloneWorkflow, b4 as createStep, b6 as createWorkflow } from '../base-_mZ6e_qo.cjs';
3
3
  import { Span } from '@opentelemetry/api';
4
4
  import { RuntimeContext } from '../runtime-context/index.cjs';
5
5
  import 'ai';
@@ -118,7 +118,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
118
118
  entry: {
119
119
  type: 'conditional';
120
120
  steps: StepFlowEntry[];
121
- conditions: ExecuteFunction<any, any, any, any>[];
121
+ conditions: ExecuteFunction<any, any, any, any, DefaultEngineType>[];
122
122
  };
123
123
  prevStep: StepFlowEntry;
124
124
  prevOutput: any;
@@ -141,7 +141,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
141
141
  entry: {
142
142
  type: 'loop';
143
143
  step: Step;
144
- condition: ExecuteFunction<any, any, any, any>;
144
+ condition: ExecuteFunction<any, any, any, any, DefaultEngineType>;
145
145
  loopType: 'dowhile' | 'dountil';
146
146
  };
147
147
  prevStep: StepFlowEntry;
@@ -184,12 +184,15 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
184
184
  };
185
185
  runtimeContext: RuntimeContext;
186
186
  }): Promise<StepResult<any, any, any, any>>;
187
- protected persistStepUpdate({ workflowId, runId, stepResults, serializedStepGraph, executionContext, }: {
187
+ protected persistStepUpdate({ workflowId, runId, stepResults, serializedStepGraph, executionContext, workflowStatus, result, error, }: {
188
188
  workflowId: string;
189
189
  runId: string;
190
190
  stepResults: Record<string, StepResult<any, any, any, any>>;
191
191
  serializedStepGraph: SerializedStepFlowEntry[];
192
192
  executionContext: ExecutionContext;
193
+ workflowStatus: 'success' | 'failed' | 'suspended' | 'running';
194
+ result?: Record<string, any>;
195
+ error?: string | Error;
193
196
  }): Promise<void>;
194
197
  executeEntry({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, runtimeContext, }: {
195
198
  workflowId: string;
@@ -209,7 +212,11 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
209
212
  emit: (event: string, data: any) => Promise<void>;
210
213
  };
211
214
  runtimeContext: RuntimeContext;
212
- }): Promise<StepResult<any, any, any, any>>;
215
+ }): Promise<{
216
+ result: StepResult<any, any, any, any>;
217
+ stepResults?: Record<string, StepResult<any, any, any, any>>;
218
+ executionContext?: ExecutionContext;
219
+ }>;
213
220
  }
214
221
 
215
- export { DefaultExecutionEngine, ExecuteFunction, type ExecutionContext, ExecutionEngine, ExecutionGraph, SerializedStepFlowEntry, Step, StepFlowEntry, StepResult };
222
+ export { DefaultEngineType, DefaultExecutionEngine, ExecuteFunction, type ExecutionContext, ExecutionEngine, ExecutionGraph, SerializedStepFlowEntry, Step, StepFlowEntry, StepResult };
@@ -1,5 +1,5 @@
1
- import { ba as ExecutionEngine, bg as StepResult, b9 as ExecutionGraph, b2 as SerializedStepFlowEntry, b0 as StepFlowEntry, f as Step, bb as ExecuteFunction } from '../base-icHjkcs-.js';
2
- export { bi as DynamicMapping, bl as ExtractSchemaFromStep, bk as ExtractSchemaType, bj as PathsToStringProps, b8 as Run, b1 as SerializedStep, bd as StepFailure, bf as StepRunning, bc as StepSuccess, be as StepSuspended, bh as StepsRecord, bn as StreamEvent, bm as VariableReference, bo as WatchEvent, e as Workflow, at as WorkflowConfig, b7 as WorkflowResult, bq as WorkflowRunState, bp as ZodPathType, b4 as cloneStep, b6 as cloneWorkflow, b3 as createStep, b5 as createWorkflow } from '../base-icHjkcs-.js';
1
+ import { bb as ExecutionEngine, bh as StepResult, ba as ExecutionGraph, b3 as SerializedStepFlowEntry, b1 as StepFlowEntry, f as Step, bc as ExecuteFunction, D as DefaultEngineType } from '../base-CmIdgTSq.js';
2
+ export { bj as DynamicMapping, bm as ExtractSchemaFromStep, bl as ExtractSchemaType, bk as PathsToStringProps, b9 as Run, b2 as SerializedStep, be as StepFailure, bg as StepRunning, bd as StepSuccess, bf as StepSuspended, bi as StepsRecord, bo as StreamEvent, bn as VariableReference, bp as WatchEvent, e as Workflow, au as WorkflowConfig, b8 as WorkflowResult, br as WorkflowRunState, bq as ZodPathType, b5 as cloneStep, b7 as cloneWorkflow, b4 as createStep, b6 as createWorkflow } from '../base-CmIdgTSq.js';
3
3
  import { Span } from '@opentelemetry/api';
4
4
  import { RuntimeContext } from '../runtime-context/index.js';
5
5
  import 'ai';
@@ -118,7 +118,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
118
118
  entry: {
119
119
  type: 'conditional';
120
120
  steps: StepFlowEntry[];
121
- conditions: ExecuteFunction<any, any, any, any>[];
121
+ conditions: ExecuteFunction<any, any, any, any, DefaultEngineType>[];
122
122
  };
123
123
  prevStep: StepFlowEntry;
124
124
  prevOutput: any;
@@ -141,7 +141,7 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
141
141
  entry: {
142
142
  type: 'loop';
143
143
  step: Step;
144
- condition: ExecuteFunction<any, any, any, any>;
144
+ condition: ExecuteFunction<any, any, any, any, DefaultEngineType>;
145
145
  loopType: 'dowhile' | 'dountil';
146
146
  };
147
147
  prevStep: StepFlowEntry;
@@ -184,12 +184,15 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
184
184
  };
185
185
  runtimeContext: RuntimeContext;
186
186
  }): Promise<StepResult<any, any, any, any>>;
187
- protected persistStepUpdate({ workflowId, runId, stepResults, serializedStepGraph, executionContext, }: {
187
+ protected persistStepUpdate({ workflowId, runId, stepResults, serializedStepGraph, executionContext, workflowStatus, result, error, }: {
188
188
  workflowId: string;
189
189
  runId: string;
190
190
  stepResults: Record<string, StepResult<any, any, any, any>>;
191
191
  serializedStepGraph: SerializedStepFlowEntry[];
192
192
  executionContext: ExecutionContext;
193
+ workflowStatus: 'success' | 'failed' | 'suspended' | 'running';
194
+ result?: Record<string, any>;
195
+ error?: string | Error;
193
196
  }): Promise<void>;
194
197
  executeEntry({ workflowId, runId, entry, prevStep, serializedStepGraph, stepResults, resume, executionContext, emitter, runtimeContext, }: {
195
198
  workflowId: string;
@@ -209,7 +212,11 @@ declare class DefaultExecutionEngine extends ExecutionEngine {
209
212
  emit: (event: string, data: any) => Promise<void>;
210
213
  };
211
214
  runtimeContext: RuntimeContext;
212
- }): Promise<StepResult<any, any, any, any>>;
215
+ }): Promise<{
216
+ result: StepResult<any, any, any, any>;
217
+ stepResults?: Record<string, StepResult<any, any, any, any>>;
218
+ executionContext?: ExecutionContext;
219
+ }>;
213
220
  }
214
221
 
215
- export { DefaultExecutionEngine, ExecuteFunction, type ExecutionContext, ExecutionEngine, ExecutionGraph, SerializedStepFlowEntry, Step, StepFlowEntry, StepResult };
222
+ export { DefaultEngineType, DefaultExecutionEngine, ExecuteFunction, type ExecutionContext, ExecutionEngine, ExecutionGraph, SerializedStepFlowEntry, Step, StepFlowEntry, StepResult };
@@ -1 +1 @@
1
- export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow } from '../chunk-UFQERGWG.js';
1
+ export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow } from '../chunk-32XBQVNY.js';