@mastra/core 0.9.2 → 0.9.3-alpha.0

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 (73) hide show
  1. package/dist/agent/index.cjs +2 -2
  2. package/dist/agent/index.d.cts +1 -1
  3. package/dist/agent/index.d.ts +1 -1
  4. package/dist/agent/index.js +1 -1
  5. package/dist/{base-B3g_Q3KV.d.cts → base-Cs0ddGCf.d.cts} +5 -5
  6. package/dist/{base-Dq_YZkEc.d.ts → base-CzHSMvOb.d.ts} +5 -5
  7. package/dist/{chunk-ZVBLRU4W.cjs → chunk-22CFFDPA.cjs} +5 -5
  8. package/dist/{chunk-QV4ZJLWA.js → chunk-2UAN6SRJ.js} +1 -1
  9. package/dist/{chunk-6FW4DXZO.cjs → chunk-4DEDPTLO.cjs} +2 -2
  10. package/dist/{chunk-SIQPAONL.js → chunk-6HHSM7FP.js} +1 -1
  11. package/dist/{chunk-URYHOYKQ.js → chunk-KSH5B376.js} +3 -3
  12. package/dist/{chunk-B7N24G5E.cjs → chunk-O6EYGXZO.cjs} +2 -2
  13. package/dist/chunk-OHIRECYU.cjs +930 -0
  14. package/dist/{chunk-2JNVEJCM.js → chunk-PPNVAI5G.js} +1 -1
  15. package/dist/{chunk-JTKSOVYL.cjs → chunk-QJJD56YR.cjs} +2 -2
  16. package/dist/{chunk-IBKW4TJU.js → chunk-TZIOJX3N.js} +1 -1
  17. package/dist/chunk-WD3HYQV3.js +911 -0
  18. package/dist/{chunk-HAFLSGW5.cjs → chunk-WYL4MKWH.cjs} +14 -14
  19. package/dist/eval/index.d.cts +1 -1
  20. package/dist/eval/index.d.ts +1 -1
  21. package/dist/index.cjs +57 -57
  22. package/dist/index.d.cts +3 -3
  23. package/dist/index.d.ts +3 -3
  24. package/dist/index.js +8 -8
  25. package/dist/integration/index.cjs +3 -3
  26. package/dist/integration/index.d.cts +1 -1
  27. package/dist/integration/index.d.ts +1 -1
  28. package/dist/integration/index.js +1 -1
  29. package/dist/llm/index.d.cts +1 -1
  30. package/dist/llm/index.d.ts +1 -1
  31. package/dist/mastra/index.d.cts +1 -1
  32. package/dist/mastra/index.d.ts +1 -1
  33. package/dist/memory/index.cjs +4 -4
  34. package/dist/memory/index.d.cts +1 -1
  35. package/dist/memory/index.d.ts +1 -1
  36. package/dist/memory/index.js +1 -1
  37. package/dist/network/index.cjs +4 -4
  38. package/dist/network/index.d.cts +1 -1
  39. package/dist/network/index.d.ts +1 -1
  40. package/dist/network/index.js +2 -2
  41. package/dist/relevance/index.cjs +4 -4
  42. package/dist/relevance/index.d.cts +1 -1
  43. package/dist/relevance/index.d.ts +1 -1
  44. package/dist/relevance/index.js +1 -1
  45. package/dist/server/index.d.cts +1 -1
  46. package/dist/server/index.d.ts +1 -1
  47. package/dist/storage/index.d.cts +1 -1
  48. package/dist/storage/index.d.ts +1 -1
  49. package/dist/storage/libsql/index.d.cts +1 -1
  50. package/dist/storage/libsql/index.d.ts +1 -1
  51. package/dist/telemetry/index.d.cts +1 -1
  52. package/dist/telemetry/index.d.ts +1 -1
  53. package/dist/tools/index.cjs +4 -4
  54. package/dist/tools/index.d.cts +1 -1
  55. package/dist/tools/index.d.ts +1 -1
  56. package/dist/tools/index.js +1 -1
  57. package/dist/utils.cjs +12 -12
  58. package/dist/utils.d.cts +7 -6
  59. package/dist/utils.d.ts +7 -6
  60. package/dist/utils.js +1 -1
  61. package/dist/voice/index.d.cts +1 -1
  62. package/dist/voice/index.d.ts +1 -1
  63. package/dist/workflows/index.cjs +22 -22
  64. package/dist/workflows/index.d.cts +2 -2
  65. package/dist/workflows/index.d.ts +2 -2
  66. package/dist/workflows/index.js +1 -1
  67. package/dist/workflows/vNext/index.cjs +13 -13
  68. package/dist/workflows/vNext/index.d.cts +2 -2
  69. package/dist/workflows/vNext/index.d.ts +2 -2
  70. package/dist/workflows/vNext/index.js +11 -11
  71. package/package.json +7 -5
  72. package/dist/chunk-D2Y3ET63.cjs +0 -362
  73. package/dist/chunk-ZCJJ6XOH.js +0 -344
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkHAFLSGW5_cjs = require('../chunk-HAFLSGW5.cjs');
4
- var chunkD2Y3ET63_cjs = require('../chunk-D2Y3ET63.cjs');
3
+ var chunkWYL4MKWH_cjs = require('../chunk-WYL4MKWH.cjs');
4
+ var chunkOHIRECYU_cjs = require('../chunk-OHIRECYU.cjs');
5
5
  var chunkD63P5O4Q_cjs = require('../chunk-D63P5O4Q.cjs');
6
6
  var chunkO7IW545H_cjs = require('../chunk-O7IW545H.cjs');
7
7
  var zod = require('zod');
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkD63P5O4Q_cjs.MastraBase {
17
17
  this.#instructions = config.instructions;
18
18
  this.#agents = config.agents;
19
19
  this.#model = config.model;
20
- this.#routingAgent = new chunkHAFLSGW5_cjs.Agent({
20
+ this.#routingAgent = new chunkWYL4MKWH_cjs.Agent({
21
21
  name: config.name,
22
22
  instructions: this.getInstructions(),
23
23
  model: this.#model,
@@ -29,7 +29,7 @@ var AgentNetwork = class extends chunkD63P5O4Q_cjs.MastraBase {
29
29
  }
30
30
  getTools() {
31
31
  return {
32
- transmit: chunkD2Y3ET63_cjs.createTool({
32
+ transmit: chunkOHIRECYU_cjs.createTool({
33
33
  id: "transmit",
34
34
  description: "Call one or more specialized agents to handle specific tasks",
35
35
  inputSchema: zod.z.object({
@@ -1,4 +1,4 @@
1
- export { b3 as AgentNetwork, b5 as AgentNetworkConfig } from '../base-B3g_Q3KV.cjs';
1
+ export { b4 as AgentNetwork, b5 as AgentNetworkConfig } from '../base-Cs0ddGCf.cjs';
2
2
  import 'ai';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { b3 as AgentNetwork, b5 as AgentNetworkConfig } from '../base-Dq_YZkEc.js';
1
+ export { b4 as AgentNetwork, b5 as AgentNetworkConfig } from '../base-CzHSMvOb.js';
2
2
  import 'ai';
3
3
  import '../base-DT2poiVK.js';
4
4
  import '@opentelemetry/api';
@@ -1,5 +1,5 @@
1
- import { Agent } from '../chunk-URYHOYKQ.js';
2
- import { createTool } from '../chunk-ZCJJ6XOH.js';
1
+ import { Agent } from '../chunk-KSH5B376.js';
2
+ import { createTool } from '../chunk-WD3HYQV3.js';
3
3
  import { MastraBase } from '../chunk-CLJQYXNM.js';
4
4
  import { RegisteredLogger } from '../chunk-2BVZNKLX.js';
5
5
  import { z } from 'zod';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunk6FW4DXZO_cjs = require('../chunk-6FW4DXZO.cjs');
3
+ var chunk4DEDPTLO_cjs = require('../chunk-4DEDPTLO.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CohereRelevanceScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunk6FW4DXZO_cjs.CohereRelevanceScorer; }
9
+ get: function () { return chunk4DEDPTLO_cjs.CohereRelevanceScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
12
12
  enumerable: true,
13
- get: function () { return chunk6FW4DXZO_cjs.MastraAgentRelevanceScorer; }
13
+ get: function () { return chunk4DEDPTLO_cjs.MastraAgentRelevanceScorer; }
14
14
  });
15
15
  Object.defineProperty(exports, "createSimilarityPrompt", {
16
16
  enumerable: true,
17
- get: function () { return chunk6FW4DXZO_cjs.createSimilarityPrompt; }
17
+ get: function () { return chunk4DEDPTLO_cjs.createSimilarityPrompt; }
18
18
  });
@@ -1,5 +1,5 @@
1
1
  import '../base-BihKcqDY.cjs';
2
- import { b4 as MastraLanguageModel } from '../base-B3g_Q3KV.cjs';
2
+ import { b1 as MastraLanguageModel } from '../base-Cs0ddGCf.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.cjs';
5
5
  import 'stream';
@@ -1,5 +1,5 @@
1
1
  import '../base-DT2poiVK.js';
2
- import { b4 as MastraLanguageModel } from '../base-Dq_YZkEc.js';
2
+ import { b1 as MastraLanguageModel } from '../base-CzHSMvOb.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-CquI0inB.js';
5
5
  import 'stream';
@@ -1 +1 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-SIQPAONL.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-6HHSM7FP.js';
@@ -1,6 +1,6 @@
1
1
  import { Handler, MiddlewareHandler } from 'hono';
2
2
  import { DescribeRouteOptions } from 'hono-openapi';
3
- import { M as Methods, a as Mastra, A as ApiRoute } from '../base-B3g_Q3KV.cjs';
3
+ import { M as Methods, a as Mastra, A as ApiRoute } from '../base-Cs0ddGCf.cjs';
4
4
  import 'ai';
5
5
  import '../base-BihKcqDY.cjs';
6
6
  import '@opentelemetry/api';
@@ -1,6 +1,6 @@
1
1
  import { Handler, MiddlewareHandler } from 'hono';
2
2
  import { DescribeRouteOptions } from 'hono-openapi';
3
- import { M as Methods, a as Mastra, A as ApiRoute } from '../base-Dq_YZkEc.js';
3
+ import { M as Methods, a as Mastra, A as ApiRoute } from '../base-CzHSMvOb.js';
4
4
  import 'ai';
5
5
  import '../base-DT2poiVK.js';
6
6
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-B3g_Q3KV.cjs';
1
+ export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-Cs0ddGCf.cjs';
2
2
  import 'ai';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-Dq_YZkEc.js';
1
+ export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-CzHSMvOb.js';
2
2
  import 'ai';
3
3
  import '../base-DT2poiVK.js';
4
4
  import '@opentelemetry/api';
@@ -1,5 +1,5 @@
1
1
  import { Config } from '@libsql/client';
2
- import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-B3g_Q3KV.cjs';
2
+ import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-Cs0ddGCf.cjs';
3
3
  import 'ai';
4
4
  import '../../base-BihKcqDY.cjs';
5
5
  import '@opentelemetry/api';
@@ -1,5 +1,5 @@
1
1
  import { Config } from '@libsql/client';
2
- import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-Dq_YZkEc.js';
2
+ import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-CzHSMvOb.js';
3
3
  import 'ai';
4
4
  import '../../base-DT2poiVK.js';
5
5
  import '@opentelemetry/api';
@@ -3,7 +3,7 @@ import { SpanKind } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
5
  import { L as Logger } from '../index-CquI0inB.cjs';
6
- import { b as MastraStorage } from '../base-B3g_Q3KV.cjs';
6
+ import { b as MastraStorage } from '../base-Cs0ddGCf.cjs';
7
7
  import 'stream';
8
8
  import 'pino';
9
9
  import 'ai';
@@ -3,7 +3,7 @@ import { SpanKind } from '@opentelemetry/api';
3
3
  import { ExportResult } from '@opentelemetry/core';
4
4
  import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
5
5
  import { L as Logger } from '../index-CquI0inB.js';
6
- import { b as MastraStorage } from '../base-Dq_YZkEc.js';
6
+ import { b as MastraStorage } from '../base-CzHSMvOb.js';
7
7
  import 'stream';
8
8
  import 'pino';
9
9
  import 'ai';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkD2Y3ET63_cjs = require('../chunk-D2Y3ET63.cjs');
3
+ var chunkOHIRECYU_cjs = require('../chunk-OHIRECYU.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Tool", {
8
8
  enumerable: true,
9
- get: function () { return chunkD2Y3ET63_cjs.Tool; }
9
+ get: function () { return chunkOHIRECYU_cjs.Tool; }
10
10
  });
11
11
  Object.defineProperty(exports, "createTool", {
12
12
  enumerable: true,
13
- get: function () { return chunkD2Y3ET63_cjs.createTool; }
13
+ get: function () { return chunkOHIRECYU_cjs.createTool; }
14
14
  });
15
15
  Object.defineProperty(exports, "isVercelTool", {
16
16
  enumerable: true,
17
- get: function () { return chunkD2Y3ET63_cjs.isVercelTool; }
17
+ get: function () { return chunkOHIRECYU_cjs.isVercelTool; }
18
18
  });
@@ -1,4 +1,4 @@
1
- export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-B3g_Q3KV.cjs';
1
+ export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-Cs0ddGCf.cjs';
2
2
  export { isVercelTool } from '../utils.cjs';
3
3
  import 'ai';
4
4
  import '../base-BihKcqDY.cjs';
@@ -1,4 +1,4 @@
1
- export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-Dq_YZkEc.js';
1
+ export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-CzHSMvOb.js';
2
2
  export { isVercelTool } from '../utils.js';
3
3
  import 'ai';
4
4
  import '../base-DT2poiVK.js';
@@ -1 +1 @@
1
- export { Tool, createTool, isVercelTool } from '../chunk-ZCJJ6XOH.js';
1
+ export { Tool, createTool, isVercelTool } from '../chunk-WD3HYQV3.js';
package/dist/utils.cjs CHANGED
@@ -1,50 +1,50 @@
1
1
  'use strict';
2
2
 
3
- var chunkD2Y3ET63_cjs = require('./chunk-D2Y3ET63.cjs');
3
+ var chunkOHIRECYU_cjs = require('./chunk-OHIRECYU.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "checkEvalStorageFields", {
8
8
  enumerable: true,
9
- get: function () { return chunkD2Y3ET63_cjs.checkEvalStorageFields; }
9
+ get: function () { return chunkOHIRECYU_cjs.checkEvalStorageFields; }
10
10
  });
11
11
  Object.defineProperty(exports, "createMastraProxy", {
12
12
  enumerable: true,
13
- get: function () { return chunkD2Y3ET63_cjs.createMastraProxy; }
13
+ get: function () { return chunkOHIRECYU_cjs.createMastraProxy; }
14
14
  });
15
15
  Object.defineProperty(exports, "deepMerge", {
16
16
  enumerable: true,
17
- get: function () { return chunkD2Y3ET63_cjs.deepMerge; }
17
+ get: function () { return chunkOHIRECYU_cjs.deepMerge; }
18
18
  });
19
19
  Object.defineProperty(exports, "delay", {
20
20
  enumerable: true,
21
- get: function () { return chunkD2Y3ET63_cjs.delay; }
21
+ get: function () { return chunkOHIRECYU_cjs.delay; }
22
22
  });
23
23
  Object.defineProperty(exports, "ensureAllMessagesAreCoreMessages", {
24
24
  enumerable: true,
25
- get: function () { return chunkD2Y3ET63_cjs.ensureAllMessagesAreCoreMessages; }
25
+ get: function () { return chunkOHIRECYU_cjs.ensureAllMessagesAreCoreMessages; }
26
26
  });
27
27
  Object.defineProperty(exports, "ensureToolProperties", {
28
28
  enumerable: true,
29
- get: function () { return chunkD2Y3ET63_cjs.ensureToolProperties; }
29
+ get: function () { return chunkOHIRECYU_cjs.ensureToolProperties; }
30
30
  });
31
31
  Object.defineProperty(exports, "isVercelTool", {
32
32
  enumerable: true,
33
- get: function () { return chunkD2Y3ET63_cjs.isVercelTool; }
33
+ get: function () { return chunkOHIRECYU_cjs.isVercelTool; }
34
34
  });
35
35
  Object.defineProperty(exports, "isZodType", {
36
36
  enumerable: true,
37
- get: function () { return chunkD2Y3ET63_cjs.isZodType; }
37
+ get: function () { return chunkOHIRECYU_cjs.isZodType; }
38
38
  });
39
39
  Object.defineProperty(exports, "makeCoreTool", {
40
40
  enumerable: true,
41
- get: function () { return chunkD2Y3ET63_cjs.makeCoreTool; }
41
+ get: function () { return chunkOHIRECYU_cjs.makeCoreTool; }
42
42
  });
43
43
  Object.defineProperty(exports, "maskStreamTags", {
44
44
  enumerable: true,
45
- get: function () { return chunkD2Y3ET63_cjs.maskStreamTags; }
45
+ get: function () { return chunkOHIRECYU_cjs.maskStreamTags; }
46
46
  });
47
47
  Object.defineProperty(exports, "resolveSerializedZodOutput", {
48
48
  enumerable: true,
49
- get: function () { return chunkD2Y3ET63_cjs.resolveSerializedZodOutput; }
49
+ get: function () { return chunkOHIRECYU_cjs.resolveSerializedZodOutput; }
50
50
  });
package/dist/utils.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { ar as VercelTool, C as ToolAction, b1 as ToolsInput, a as Mastra, b2 as MastraPrimitives, H as MastraMemory, as as CoreTool, F as Agent, L as Workflow, K as Step, at as StepExecutionContext, aJ as WorkflowContext, t as NewWorkflow, N as NewStep, b3 as AgentNetwork } from './base-B3g_Q3KV.cjs';
2
- import { CoreMessage, Message } from 'ai';
1
+ import { ar as VercelTool, C as ToolAction, a as Mastra, b2 as MastraPrimitives, H as MastraMemory, b3 as ToolsInput, as as CoreTool, F as Agent, L as Workflow, K as Step, at as StepExecutionContext, aJ as WorkflowContext, t as NewWorkflow, N as NewStep, b4 as AgentNetwork } from './base-Cs0ddGCf.cjs';
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 { a as Metric } from './types-BtMyV38I.cjs';
@@ -63,12 +63,13 @@ interface ToolOptions {
63
63
  runId?: string;
64
64
  threadId?: string;
65
65
  resourceId?: string;
66
- logger: Logger;
66
+ logger?: Logger;
67
67
  description?: string;
68
68
  mastra?: (Mastra & MastraPrimitives) | MastraPrimitives;
69
69
  runtimeContext: RuntimeContext;
70
70
  memory?: MastraMemory;
71
71
  agentName?: string;
72
+ model?: LanguageModelV1;
72
73
  }
73
74
  type ToolToConvert = VercelTool | ToolAction<any, any, any>;
74
75
  /**
@@ -85,12 +86,12 @@ declare function isZodType(value: unknown): value is z.ZodType;
85
86
  declare function ensureToolProperties(tools: ToolsInput): ToolsInput;
86
87
  /**
87
88
  * Converts a Vercel Tool or Mastra Tool into a CoreTool format
88
- * @param tool - The tool to convert (either VercelTool or ToolAction)
89
+ * @param originalTool - The tool to convert (either VercelTool or ToolAction)
89
90
  * @param options - Tool options including Mastra-specific settings
90
91
  * @param logType - Type of tool to log (tool or toolset)
91
92
  * @returns A CoreTool that can be used by the system
92
93
  */
93
- declare function makeCoreTool(tool: ToolToConvert, options: ToolOptions, logType?: 'tool' | 'toolset' | 'client-tool'): CoreTool;
94
+ declare function makeCoreTool(originalTool: ToolToConvert, options: ToolOptions, logType?: 'tool' | 'toolset' | 'client-tool'): CoreTool;
94
95
  /**
95
96
  * Creates a proxy for a Mastra instance to handle deprecated properties
96
97
  * @param mastra - The Mastra instance to proxy
@@ -104,4 +105,4 @@ declare function createMastraProxy({ mastra, logger }: {
104
105
  declare function checkEvalStorageFields(traceObject: any, logger?: Logger): boolean;
105
106
  declare function ensureAllMessagesAreCoreMessages(messages: (CoreMessage | Message)[]): CoreMessage[];
106
107
 
107
- export { type TagMaskOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput };
108
+ export { type TagMaskOptions, type ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput };
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { ar as VercelTool, C as ToolAction, b1 as ToolsInput, a as Mastra, b2 as MastraPrimitives, H as MastraMemory, as as CoreTool, F as Agent, L as Workflow, K as Step, at as StepExecutionContext, aJ as WorkflowContext, t as NewWorkflow, N as NewStep, b3 as AgentNetwork } from './base-Dq_YZkEc.js';
2
- import { CoreMessage, Message } from 'ai';
1
+ import { ar as VercelTool, C as ToolAction, a as Mastra, b2 as MastraPrimitives, H as MastraMemory, b3 as ToolsInput, as as CoreTool, F as Agent, L as Workflow, K as Step, at as StepExecutionContext, aJ as WorkflowContext, t as NewWorkflow, N as NewStep, b4 as AgentNetwork } from './base-CzHSMvOb.js';
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 { a as Metric } from './types-BtMyV38I.js';
@@ -63,12 +63,13 @@ interface ToolOptions {
63
63
  runId?: string;
64
64
  threadId?: string;
65
65
  resourceId?: string;
66
- logger: Logger;
66
+ logger?: Logger;
67
67
  description?: string;
68
68
  mastra?: (Mastra & MastraPrimitives) | MastraPrimitives;
69
69
  runtimeContext: RuntimeContext;
70
70
  memory?: MastraMemory;
71
71
  agentName?: string;
72
+ model?: LanguageModelV1;
72
73
  }
73
74
  type ToolToConvert = VercelTool | ToolAction<any, any, any>;
74
75
  /**
@@ -85,12 +86,12 @@ declare function isZodType(value: unknown): value is z.ZodType;
85
86
  declare function ensureToolProperties(tools: ToolsInput): ToolsInput;
86
87
  /**
87
88
  * Converts a Vercel Tool or Mastra Tool into a CoreTool format
88
- * @param tool - The tool to convert (either VercelTool or ToolAction)
89
+ * @param originalTool - The tool to convert (either VercelTool or ToolAction)
89
90
  * @param options - Tool options including Mastra-specific settings
90
91
  * @param logType - Type of tool to log (tool or toolset)
91
92
  * @returns A CoreTool that can be used by the system
92
93
  */
93
- declare function makeCoreTool(tool: ToolToConvert, options: ToolOptions, logType?: 'tool' | 'toolset' | 'client-tool'): CoreTool;
94
+ declare function makeCoreTool(originalTool: ToolToConvert, options: ToolOptions, logType?: 'tool' | 'toolset' | 'client-tool'): CoreTool;
94
95
  /**
95
96
  * Creates a proxy for a Mastra instance to handle deprecated properties
96
97
  * @param mastra - The Mastra instance to proxy
@@ -104,4 +105,4 @@ declare function createMastraProxy({ mastra, logger }: {
104
105
  declare function checkEvalStorageFields(traceObject: any, logger?: Logger): boolean;
105
106
  declare function ensureAllMessagesAreCoreMessages(messages: (CoreMessage | Message)[]): CoreMessage[];
106
107
 
107
- export { type TagMaskOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput };
108
+ export { type TagMaskOptions, type ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput };
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-ZCJJ6XOH.js';
1
+ export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-WD3HYQV3.js';
@@ -1,4 +1,4 @@
1
- export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-B3g_Q3KV.cjs';
1
+ export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-Cs0ddGCf.cjs';
2
2
  import 'ai';
3
3
  import '../base-BihKcqDY.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-Dq_YZkEc.js';
1
+ export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-CzHSMvOb.js';
2
2
  import 'ai';
3
3
  import '../base-DT2poiVK.js';
4
4
  import '@opentelemetry/api';
@@ -1,90 +1,90 @@
1
1
  'use strict';
2
2
 
3
- var chunkHAFLSGW5_cjs = require('../chunk-HAFLSGW5.cjs');
3
+ var chunkWYL4MKWH_cjs = require('../chunk-WYL4MKWH.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Step", {
8
8
  enumerable: true,
9
- get: function () { return chunkHAFLSGW5_cjs.Step; }
9
+ get: function () { return chunkWYL4MKWH_cjs.Step; }
10
10
  });
11
11
  Object.defineProperty(exports, "WhenConditionReturnValue", {
12
12
  enumerable: true,
13
- get: function () { return chunkHAFLSGW5_cjs.WhenConditionReturnValue; }
13
+ get: function () { return chunkWYL4MKWH_cjs.WhenConditionReturnValue; }
14
14
  });
15
15
  Object.defineProperty(exports, "Workflow", {
16
16
  enumerable: true,
17
- get: function () { return chunkHAFLSGW5_cjs.Workflow; }
17
+ get: function () { return chunkWYL4MKWH_cjs.Workflow; }
18
18
  });
19
19
  Object.defineProperty(exports, "agentToStep", {
20
20
  enumerable: true,
21
- get: function () { return chunkHAFLSGW5_cjs.agentToStep; }
21
+ get: function () { return chunkWYL4MKWH_cjs.agentToStep; }
22
22
  });
23
23
  Object.defineProperty(exports, "getActivePathsAndStatus", {
24
24
  enumerable: true,
25
- get: function () { return chunkHAFLSGW5_cjs.getActivePathsAndStatus; }
25
+ get: function () { return chunkWYL4MKWH_cjs.getActivePathsAndStatus; }
26
26
  });
27
27
  Object.defineProperty(exports, "getResultActivePaths", {
28
28
  enumerable: true,
29
- get: function () { return chunkHAFLSGW5_cjs.getResultActivePaths; }
29
+ get: function () { return chunkWYL4MKWH_cjs.getResultActivePaths; }
30
30
  });
31
31
  Object.defineProperty(exports, "getStepResult", {
32
32
  enumerable: true,
33
- get: function () { return chunkHAFLSGW5_cjs.getStepResult; }
33
+ get: function () { return chunkWYL4MKWH_cjs.getStepResult; }
34
34
  });
35
35
  Object.defineProperty(exports, "getSuspendedPaths", {
36
36
  enumerable: true,
37
- get: function () { return chunkHAFLSGW5_cjs.getSuspendedPaths; }
37
+ get: function () { return chunkWYL4MKWH_cjs.getSuspendedPaths; }
38
38
  });
39
39
  Object.defineProperty(exports, "isAgent", {
40
40
  enumerable: true,
41
- get: function () { return chunkHAFLSGW5_cjs.isAgent; }
41
+ get: function () { return chunkWYL4MKWH_cjs.isAgent; }
42
42
  });
43
43
  Object.defineProperty(exports, "isConditionalKey", {
44
44
  enumerable: true,
45
- get: function () { return chunkHAFLSGW5_cjs.isConditionalKey; }
45
+ get: function () { return chunkWYL4MKWH_cjs.isConditionalKey; }
46
46
  });
47
47
  Object.defineProperty(exports, "isErrorEvent", {
48
48
  enumerable: true,
49
- get: function () { return chunkHAFLSGW5_cjs.isErrorEvent; }
49
+ get: function () { return chunkWYL4MKWH_cjs.isErrorEvent; }
50
50
  });
51
51
  Object.defineProperty(exports, "isFinalState", {
52
52
  enumerable: true,
53
- get: function () { return chunkHAFLSGW5_cjs.isFinalState; }
53
+ get: function () { return chunkWYL4MKWH_cjs.isFinalState; }
54
54
  });
55
55
  Object.defineProperty(exports, "isLimboState", {
56
56
  enumerable: true,
57
- get: function () { return chunkHAFLSGW5_cjs.isLimboState; }
57
+ get: function () { return chunkWYL4MKWH_cjs.isLimboState; }
58
58
  });
59
59
  Object.defineProperty(exports, "isTransitionEvent", {
60
60
  enumerable: true,
61
- get: function () { return chunkHAFLSGW5_cjs.isTransitionEvent; }
61
+ get: function () { return chunkWYL4MKWH_cjs.isTransitionEvent; }
62
62
  });
63
63
  Object.defineProperty(exports, "isVariableReference", {
64
64
  enumerable: true,
65
- get: function () { return chunkHAFLSGW5_cjs.isVariableReference; }
65
+ get: function () { return chunkWYL4MKWH_cjs.isVariableReference; }
66
66
  });
67
67
  Object.defineProperty(exports, "isWorkflow", {
68
68
  enumerable: true,
69
- get: function () { return chunkHAFLSGW5_cjs.isWorkflow; }
69
+ get: function () { return chunkWYL4MKWH_cjs.isWorkflow; }
70
70
  });
71
71
  Object.defineProperty(exports, "mergeChildValue", {
72
72
  enumerable: true,
73
- get: function () { return chunkHAFLSGW5_cjs.mergeChildValue; }
73
+ get: function () { return chunkWYL4MKWH_cjs.mergeChildValue; }
74
74
  });
75
75
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
76
76
  enumerable: true,
77
- get: function () { return chunkHAFLSGW5_cjs.recursivelyCheckForFinalState; }
77
+ get: function () { return chunkWYL4MKWH_cjs.recursivelyCheckForFinalState; }
78
78
  });
79
79
  Object.defineProperty(exports, "resolveVariables", {
80
80
  enumerable: true,
81
- get: function () { return chunkHAFLSGW5_cjs.resolveVariables; }
81
+ get: function () { return chunkWYL4MKWH_cjs.resolveVariables; }
82
82
  });
83
83
  Object.defineProperty(exports, "updateStepInHierarchy", {
84
84
  enumerable: true,
85
- get: function () { return chunkHAFLSGW5_cjs.updateStepInHierarchy; }
85
+ get: function () { return chunkWYL4MKWH_cjs.updateStepInHierarchy; }
86
86
  });
87
87
  Object.defineProperty(exports, "workflowToStep", {
88
88
  enumerable: true,
89
- get: function () { return chunkHAFLSGW5_cjs.workflowToStep; }
89
+ get: function () { return chunkWYL4MKWH_cjs.workflowToStep; }
90
90
  });
@@ -1,5 +1,5 @@
1
- import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext, b1 as ToolsInput, a as Mastra, au as StepAction, aI as WorkflowRunResult } from '../base-B3g_Q3KV.cjs';
2
- export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-B3g_Q3KV.cjs';
1
+ import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext, b3 as ToolsInput, a as Mastra, au as StepAction, aI as WorkflowRunResult } from '../base-Cs0ddGCf.cjs';
2
+ export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-Cs0ddGCf.cjs';
3
3
  import { z } from 'zod';
4
4
  import { a as Metric } from '../types-BtMyV38I.cjs';
5
5
  import { L as Logger } from '../index-CquI0inB.cjs';
@@ -1,5 +1,5 @@
1
- import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext, b1 as ToolsInput, a as Mastra, au as StepAction, aI as WorkflowRunResult } from '../base-Dq_YZkEc.js';
2
- export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-Dq_YZkEc.js';
1
+ import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext, b3 as ToolsInput, a as Mastra, au as StepAction, aI as WorkflowRunResult } from '../base-CzHSMvOb.js';
2
+ export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-CzHSMvOb.js';
3
3
  import { z } from 'zod';
4
4
  import { a as Metric } from '../types-BtMyV38I.js';
5
5
  import { L as Logger } from '../index-CquI0inB.js';
@@ -1 +1 @@
1
- export { Step, WhenConditionReturnValue, Workflow, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-URYHOYKQ.js';
1
+ export { Step, WhenConditionReturnValue, Workflow, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-KSH5B376.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkHAFLSGW5_cjs = require('../../chunk-HAFLSGW5.cjs');
4
- var chunkD2Y3ET63_cjs = require('../../chunk-D2Y3ET63.cjs');
5
- var chunkLABUWBKX_cjs = require('../../chunk-LABUWBKX.cjs');
3
+ var chunkWYL4MKWH_cjs = require('../../chunk-WYL4MKWH.cjs');
4
+ var chunkOHIRECYU_cjs = require('../../chunk-OHIRECYU.cjs');
6
5
  var chunkD63P5O4Q_cjs = require('../../chunk-D63P5O4Q.cjs');
7
6
  var chunkO7IW545H_cjs = require('../../chunk-O7IW545H.cjs');
7
+ var chunkLABUWBKX_cjs = require('../../chunk-LABUWBKX.cjs');
8
8
  var crypto = require('crypto');
9
9
  var EventEmitter = require('events');
10
10
  var zod = require('zod');
@@ -631,7 +631,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
631
631
 
632
632
  // src/workflows/vNext/workflow.ts
633
633
  function createStep(params) {
634
- if (params instanceof chunkHAFLSGW5_cjs.Agent) {
634
+ if (params instanceof chunkWYL4MKWH_cjs.Agent) {
635
635
  return {
636
636
  id: params.name,
637
637
  // @ts-ignore
@@ -655,7 +655,7 @@ function createStep(params) {
655
655
  }
656
656
  };
657
657
  }
658
- if (params instanceof chunkD2Y3ET63_cjs.Tool) {
658
+ if (params instanceof chunkOHIRECYU_cjs.Tool) {
659
659
  if (!params.inputSchema || !params.outputSchema) {
660
660
  throw new Error("Tool must have input and output schemas defined");
661
661
  }
@@ -781,7 +781,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
781
781
  id: step.id,
782
782
  description: step.description,
783
783
  component: step.component,
784
- stepFlow: step.stepFlow
784
+ serializedStepFlow: step.serializedStepFlow
785
785
  }
786
786
  });
787
787
  this.steps[step.id] = step;
@@ -802,7 +802,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
802
802
  id: mappingStep2.id,
803
803
  description: mappingStep2.description,
804
804
  component: mappingStep2.component,
805
- stepFlow: mappingStep2.stepFlow
805
+ serializedStepFlow: mappingStep2.serializedStepFlow
806
806
  }
807
807
  });
808
808
  return this;
@@ -854,7 +854,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
854
854
  id: mappingStep.id,
855
855
  description: mappingStep.description,
856
856
  component: mappingStep.component,
857
- stepFlow: mappingStep.stepFlow
857
+ serializedStepFlow: mappingStep.serializedStepFlow
858
858
  }
859
859
  });
860
860
  return this;
@@ -870,7 +870,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
870
870
  id: step.id,
871
871
  description: step.description,
872
872
  component: step.component,
873
- stepFlow: step.stepFlow
873
+ serializedStepFlow: step.serializedStepFlow
874
874
  }
875
875
  }))
876
876
  });
@@ -895,7 +895,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
895
895
  id: step.id,
896
896
  description: step.description,
897
897
  component: step.component,
898
- stepFlow: step.stepFlow
898
+ serializedStepFlow: step.serializedStepFlow
899
899
  }
900
900
  })),
901
901
  serializedConditions: steps.map(([cond, _step]) => ({ id: `${_step.id}-condition`, fn: cond.toString() }))
@@ -919,7 +919,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
919
919
  id: step.id,
920
920
  description: step.description,
921
921
  component: step.component,
922
- stepFlow: step.stepFlow
922
+ serializedStepFlow: step.serializedStepFlow
923
923
  },
924
924
  serializedCondition: { id: `${step.id}-condition`, fn: condition.toString() },
925
925
  loopType: "dowhile"
@@ -941,7 +941,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
941
941
  id: step.id,
942
942
  description: step.description,
943
943
  component: step.component,
944
- stepFlow: step.stepFlow
944
+ serializedStepFlow: step.serializedStepFlow
945
945
  },
946
946
  serializedCondition: { id: `${step.id}-condition`, fn: condition.toString() },
947
947
  loopType: "dountil"
@@ -957,7 +957,7 @@ var NewWorkflow = class extends chunkD63P5O4Q_cjs.MastraBase {
957
957
  id: step.id,
958
958
  description: step.description,
959
959
  component: step.component,
960
- stepFlow: step.stepFlow
960
+ serializedStepFlow: step.serializedStepFlow
961
961
  },
962
962
  opts: opts ?? { concurrency: 1 }
963
963
  });