@mastra/core 1.13.0 → 1.13.1

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/CHANGELOG.md +9 -0
  2. package/dist/agent/index.cjs +8 -8
  3. package/dist/agent/index.js +1 -1
  4. package/dist/{chunk-632KY2FA.cjs → chunk-334VHLAR.cjs} +23 -23
  5. package/dist/{chunk-632KY2FA.cjs.map → chunk-334VHLAR.cjs.map} +1 -1
  6. package/dist/{chunk-L66I3YSY.js → chunk-5QTS4EAT.js} +3 -3
  7. package/dist/{chunk-L66I3YSY.js.map → chunk-5QTS4EAT.js.map} +1 -1
  8. package/dist/{chunk-DH66HVHZ.cjs → chunk-6Q3ZFEII.cjs} +3 -3
  9. package/dist/{chunk-DH66HVHZ.cjs.map → chunk-6Q3ZFEII.cjs.map} +1 -1
  10. package/dist/{chunk-2LYJXRD7.cjs → chunk-7XDXDITO.cjs} +7 -7
  11. package/dist/{chunk-2LYJXRD7.cjs.map → chunk-7XDXDITO.cjs.map} +1 -1
  12. package/dist/{chunk-2GKPFOQH.js → chunk-AMNS5DF2.js} +8 -8
  13. package/dist/{chunk-2GKPFOQH.js.map → chunk-AMNS5DF2.js.map} +1 -1
  14. package/dist/{chunk-TRUVWKEY.js → chunk-B3GKSY42.js} +3 -3
  15. package/dist/{chunk-TRUVWKEY.js.map → chunk-B3GKSY42.js.map} +1 -1
  16. package/dist/{chunk-SBVDJ5Z7.cjs → chunk-CVHX5NQY.cjs} +15 -15
  17. package/dist/{chunk-SBVDJ5Z7.cjs.map → chunk-CVHX5NQY.cjs.map} +1 -1
  18. package/dist/{chunk-KB3YS4NC.cjs → chunk-DE2ZO3EV.cjs} +47 -47
  19. package/dist/{chunk-KB3YS4NC.cjs.map → chunk-DE2ZO3EV.cjs.map} +1 -1
  20. package/dist/{chunk-3Y6B3RK4.js → chunk-FERHLP5X.js} +4 -4
  21. package/dist/{chunk-3Y6B3RK4.js.map → chunk-FERHLP5X.js.map} +1 -1
  22. package/dist/{chunk-K3M2OD5N.js → chunk-GP4MO5B6.js} +4 -3
  23. package/dist/chunk-GP4MO5B6.js.map +1 -0
  24. package/dist/{chunk-GAQJFSFI.js → chunk-IBB623FC.js} +6 -6
  25. package/dist/{chunk-GAQJFSFI.js.map → chunk-IBB623FC.js.map} +1 -1
  26. package/dist/{chunk-K7QTTUTL.cjs → chunk-J333Z653.cjs} +9 -9
  27. package/dist/{chunk-K7QTTUTL.cjs.map → chunk-J333Z653.cjs.map} +1 -1
  28. package/dist/{chunk-O6EEO6H6.js → chunk-LYABHLZT.js} +3 -3
  29. package/dist/{chunk-O6EEO6H6.js.map → chunk-LYABHLZT.js.map} +1 -1
  30. package/dist/{chunk-MBWVMU2V.cjs → chunk-P2F6NZPK.cjs} +185 -185
  31. package/dist/{chunk-MBWVMU2V.cjs.map → chunk-P2F6NZPK.cjs.map} +1 -1
  32. package/dist/{chunk-ENXNLZOX.js → chunk-R5GYOR52.js} +3 -3
  33. package/dist/{chunk-ENXNLZOX.js.map → chunk-R5GYOR52.js.map} +1 -1
  34. package/dist/{chunk-ILVF3GQC.js → chunk-RGG5FM37.js} +4 -4
  35. package/dist/{chunk-ILVF3GQC.js.map → chunk-RGG5FM37.js.map} +1 -1
  36. package/dist/{chunk-DORUEGYO.cjs → chunk-S255NXHH.cjs} +12 -11
  37. package/dist/chunk-S255NXHH.cjs.map +1 -0
  38. package/dist/{chunk-WKKUCOSS.cjs → chunk-UAVVTLHL.cjs} +5 -5
  39. package/dist/{chunk-WKKUCOSS.cjs.map → chunk-UAVVTLHL.cjs.map} +1 -1
  40. package/dist/{chunk-CSVJ4ROQ.cjs → chunk-V2NCW7QL.cjs} +5 -5
  41. package/dist/{chunk-CSVJ4ROQ.cjs.map → chunk-V2NCW7QL.cjs.map} +1 -1
  42. package/dist/{chunk-VJJGOU4M.js → chunk-YWZ4XNJQ.js} +4 -4
  43. package/dist/{chunk-VJJGOU4M.js.map → chunk-YWZ4XNJQ.js.map} +1 -1
  44. package/dist/{chunk-5MG3A5L4.cjs → chunk-Z7DIN6EF.cjs} +6 -6
  45. package/dist/{chunk-5MG3A5L4.cjs.map → chunk-Z7DIN6EF.cjs.map} +1 -1
  46. package/dist/{chunk-KPKJY76F.js → chunk-ZX4VFWA4.js} +3 -3
  47. package/dist/{chunk-KPKJY76F.js.map → chunk-ZX4VFWA4.js.map} +1 -1
  48. package/dist/datasets/index.cjs +11 -11
  49. package/dist/datasets/index.js +1 -1
  50. package/dist/docs/SKILL.md +1 -1
  51. package/dist/docs/assets/SOURCE_MAP.json +164 -164
  52. package/dist/evals/index.cjs +5 -5
  53. package/dist/evals/index.js +2 -2
  54. package/dist/evals/scoreTraces/index.cjs +3 -3
  55. package/dist/evals/scoreTraces/index.js +1 -1
  56. package/dist/harness/index.cjs +7 -7
  57. package/dist/harness/index.js +5 -5
  58. package/dist/index.cjs +2 -2
  59. package/dist/index.js +1 -1
  60. package/dist/llm/index.cjs +16 -16
  61. package/dist/llm/index.js +5 -5
  62. package/dist/loop/index.cjs +14 -14
  63. package/dist/loop/index.js +1 -1
  64. package/dist/mastra/index.cjs +2 -2
  65. package/dist/mastra/index.js +1 -1
  66. package/dist/memory/index.cjs +14 -14
  67. package/dist/memory/index.js +1 -1
  68. package/dist/models-dev-J6H4MDDS.js +3 -0
  69. package/dist/{models-dev-562OPULG.js.map → models-dev-J6H4MDDS.js.map} +1 -1
  70. package/dist/models-dev-NNNX6HMQ.cjs +12 -0
  71. package/dist/{models-dev-6KB3OWD4.cjs.map → models-dev-NNNX6HMQ.cjs.map} +1 -1
  72. package/dist/netlify-3DEYXRVR.cjs +12 -0
  73. package/dist/{netlify-USTLHJSL.cjs.map → netlify-3DEYXRVR.cjs.map} +1 -1
  74. package/dist/netlify-45XINYG6.js +3 -0
  75. package/dist/{netlify-Z5TEPY4B.js.map → netlify-45XINYG6.js.map} +1 -1
  76. package/dist/processor-provider/index.cjs +10 -10
  77. package/dist/processor-provider/index.js +1 -1
  78. package/dist/processors/index.cjs +42 -42
  79. package/dist/processors/index.js +1 -1
  80. package/dist/provider-registry-LSMHTOLE.cjs +40 -0
  81. package/dist/{provider-registry-7DIG7MYE.cjs.map → provider-registry-LSMHTOLE.cjs.map} +1 -1
  82. package/dist/provider-registry-YCFZ6HTH.js +3 -0
  83. package/dist/{provider-registry-PVY4JPVT.js.map → provider-registry-YCFZ6HTH.js.map} +1 -1
  84. package/dist/relevance/index.cjs +3 -3
  85. package/dist/relevance/index.js +1 -1
  86. package/dist/stream/aisdk/v5/transform.d.ts.map +1 -1
  87. package/dist/stream/index.cjs +8 -8
  88. package/dist/stream/index.js +1 -1
  89. package/dist/tool-loop-agent/index.cjs +4 -4
  90. package/dist/tool-loop-agent/index.js +1 -1
  91. package/dist/workflows/evented/index.cjs +10 -10
  92. package/dist/workflows/evented/index.js +1 -1
  93. package/dist/workflows/index.cjs +24 -24
  94. package/dist/workflows/index.js +1 -1
  95. package/package.json +10 -10
  96. package/dist/chunk-DORUEGYO.cjs.map +0 -1
  97. package/dist/chunk-K3M2OD5N.js.map +0 -1
  98. package/dist/models-dev-562OPULG.js +0 -3
  99. package/dist/models-dev-6KB3OWD4.cjs +0 -12
  100. package/dist/netlify-USTLHJSL.cjs +0 -12
  101. package/dist/netlify-Z5TEPY4B.js +0 -3
  102. package/dist/provider-registry-7DIG7MYE.cjs +0 -40
  103. package/dist/provider-registry-PVY4JPVT.js +0 -3
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkDORUEGYO_cjs = require('./chunk-DORUEGYO.cjs');
3
+ var chunkS255NXHH_cjs = require('./chunk-S255NXHH.cjs');
4
4
  var chunkZCBG4ZQT_cjs = require('./chunk-ZCBG4ZQT.cjs');
5
5
  var chunkSHN25XWN_cjs = require('./chunk-SHN25XWN.cjs');
6
6
  var chunkCLKMJINC_cjs = require('./chunk-CLKMJINC.cjs');
@@ -60,7 +60,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
60
60
  let suspended;
61
61
  let bailed;
62
62
  const startedAt = Date.now();
63
- const { inputData, validationError } = await chunkDORUEGYO_cjs.validateStepInput({
63
+ const { inputData, validationError } = await chunkS255NXHH_cjs.validateStepInput({
64
64
  prevOutput: typeof params.foreachIdx === "number" ? params.input?.[params.foreachIdx] : params.input,
65
65
  step,
66
66
  validateInputs: params.validateInputs ?? true
@@ -91,7 +91,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
91
91
  const callId = crypto.randomUUID();
92
92
  const outputWriter = this.createOutputWriter(runId);
93
93
  const stepOutput = await step.execute(
94
- chunkDORUEGYO_cjs.createDeprecationProxy(
94
+ chunkS255NXHH_cjs.createDeprecationProxy(
95
95
  {
96
96
  workflowId: params.workflowId,
97
97
  runId,
@@ -106,9 +106,9 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
106
106
  resumeData: params.resumeData,
107
107
  suspendData: suspendDataToUse,
108
108
  getInitData: () => stepResults?.input,
109
- getStepResult: chunkDORUEGYO_cjs.getStepResult.bind(this, stepResults),
109
+ getStepResult: chunkS255NXHH_cjs.getStepResult.bind(this, stepResults),
110
110
  suspend: async (suspendPayload, suspendOptions) => {
111
- const { suspendData, validationError: validationError2 } = await chunkDORUEGYO_cjs.validateStepSuspendData({
111
+ const { suspendData, validationError: validationError2 } = await chunkS255NXHH_cjs.validateStepSuspendData({
112
112
  suspendData: suspendPayload,
113
113
  step,
114
114
  validateInputs: params.validateInputs ?? true
@@ -161,7 +161,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
161
161
  },
162
162
  {
163
163
  paramName: "runCount",
164
- deprecationMessage: chunkDORUEGYO_cjs.runCountDeprecationMessage,
164
+ deprecationMessage: chunkS255NXHH_cjs.runCountDeprecationMessage,
165
165
  logger: this.logger
166
166
  }
167
167
  )
@@ -233,7 +233,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
233
233
  // Preserve TripWire data as plain object for proper serialization
234
234
  // Important: Check `error` not `errorInstance` because getErrorFromUnknown
235
235
  // converts the error and loses the prototype chain
236
- tripwire: error instanceof chunkDORUEGYO_cjs.TripWire ? {
236
+ tripwire: error instanceof chunkS255NXHH_cjs.TripWire ? {
237
237
  reason: error.message,
238
238
  retry: error.options?.retry,
239
239
  metadata: error.options?.metadata,
@@ -291,7 +291,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
291
291
  const callId = crypto.randomUUID();
292
292
  const outputWriter = this.createOutputWriter(runId);
293
293
  return condition(
294
- chunkDORUEGYO_cjs.createDeprecationProxy(
294
+ chunkS255NXHH_cjs.createDeprecationProxy(
295
295
  {
296
296
  workflowId,
297
297
  runId,
@@ -302,7 +302,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
302
302
  retryCount,
303
303
  resumeData,
304
304
  getInitData: () => stepResults?.input,
305
- getStepResult: chunkDORUEGYO_cjs.getStepResult.bind(this, stepResults),
305
+ getStepResult: chunkS255NXHH_cjs.getStepResult.bind(this, stepResults),
306
306
  bail: (_result) => {
307
307
  throw new Error("Not implemented");
308
308
  },
@@ -329,7 +329,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
329
329
  },
330
330
  {
331
331
  paramName: "runCount",
332
- deprecationMessage: chunkDORUEGYO_cjs.runCountDeprecationMessage,
332
+ deprecationMessage: chunkS255NXHH_cjs.runCountDeprecationMessage,
333
333
  logger: this.logger
334
334
  }
335
335
  )
@@ -349,7 +349,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
349
349
  const callId = crypto.randomUUID();
350
350
  const outputWriter = this.createOutputWriter(runId);
351
351
  return await step.fn(
352
- chunkDORUEGYO_cjs.createDeprecationProxy(
352
+ chunkS255NXHH_cjs.createDeprecationProxy(
353
353
  {
354
354
  workflowId: params.workflowId,
355
355
  runId,
@@ -363,7 +363,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
363
363
  retryCount,
364
364
  resumeData: params.resumeData,
365
365
  getInitData: () => stepResults?.input,
366
- getStepResult: chunkDORUEGYO_cjs.getStepResult.bind(this, stepResults),
366
+ getStepResult: chunkS255NXHH_cjs.getStepResult.bind(this, stepResults),
367
367
  suspend: async (_suspendPayload) => {
368
368
  throw new Error("Not implemented");
369
369
  },
@@ -392,7 +392,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
392
392
  },
393
393
  {
394
394
  paramName: "runCount",
395
- deprecationMessage: chunkDORUEGYO_cjs.runCountDeprecationMessage,
395
+ deprecationMessage: chunkS255NXHH_cjs.runCountDeprecationMessage,
396
396
  logger: this.logger
397
397
  }
398
398
  )
@@ -416,7 +416,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
416
416
  const callId = crypto.randomUUID();
417
417
  const outputWriter = this.createOutputWriter(runId);
418
418
  const result = await step.fn(
419
- chunkDORUEGYO_cjs.createDeprecationProxy(
419
+ chunkS255NXHH_cjs.createDeprecationProxy(
420
420
  {
421
421
  workflowId: params.workflowId,
422
422
  runId,
@@ -430,7 +430,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
430
430
  retryCount,
431
431
  resumeData: params.resumeData,
432
432
  getInitData: () => stepResults?.input,
433
- getStepResult: chunkDORUEGYO_cjs.getStepResult.bind(this, stepResults),
433
+ getStepResult: chunkS255NXHH_cjs.getStepResult.bind(this, stepResults),
434
434
  suspend: async (_suspendPayload) => {
435
435
  throw new Error("Not implemented");
436
436
  },
@@ -459,7 +459,7 @@ var StepExecutor = class extends chunkRO47SMI7_cjs.MastraBase {
459
459
  },
460
460
  {
461
461
  paramName: "runCount",
462
- deprecationMessage: chunkDORUEGYO_cjs.runCountDeprecationMessage,
462
+ deprecationMessage: chunkS255NXHH_cjs.runCountDeprecationMessage,
463
463
  logger: this.logger
464
464
  }
465
465
  )
@@ -478,7 +478,7 @@ function isTripwireChunk(chunk) {
478
478
  }
479
479
  function createTripWireFromChunk(chunk) {
480
480
  const { payload } = chunk;
481
- return new chunkDORUEGYO_cjs.TripWire(
481
+ return new chunkS255NXHH_cjs.TripWire(
482
482
  payload.reason || "Agent tripwire triggered",
483
483
  {
484
484
  retry: payload.retry,
@@ -2097,7 +2097,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
2097
2097
  runId
2098
2098
  }) ?? { context: {} };
2099
2099
  const nestedWorkflow = step.step;
2100
- const timeTravelParams = chunkDORUEGYO_cjs.createTimeTravelExecutionParams({
2100
+ const timeTravelParams = chunkS255NXHH_cjs.createTimeTravelExecutionParams({
2101
2101
  steps: timeTravel.steps.slice(1),
2102
2102
  inputData: timeTravel.inputData,
2103
2103
  resumeData: timeTravel.resumeData,
@@ -2197,7 +2197,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
2197
2197
  for (const [key, value] of Object.entries(requestContext)) {
2198
2198
  rc.set(key, value);
2199
2199
  }
2200
- const { resumeData: timeTravelResumeData, validationError: timeTravelResumeValidationError } = await chunkDORUEGYO_cjs.validateStepResumeData({
2200
+ const { resumeData: timeTravelResumeData, validationError: timeTravelResumeValidationError } = await chunkS255NXHH_cjs.validateStepResumeData({
2201
2201
  resumeData: timeTravel?.stepResults[step.step.id]?.status === "suspended" ? timeTravel?.resumeData : void 0,
2202
2202
  step: step.step
2203
2203
  });
@@ -3018,7 +3018,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
3018
3018
 
3019
3019
  // src/workflows/evented/workflow.ts
3020
3020
  function cloneWorkflow(workflow, opts) {
3021
- const wf = new chunkDORUEGYO_cjs.Workflow({
3021
+ const wf = new chunkS255NXHH_cjs.Workflow({
3022
3022
  id: opts.id,
3023
3023
  inputSchema: workflow.inputSchema,
3024
3024
  outputSchema: workflow.outputSchema,
@@ -3047,16 +3047,16 @@ function cloneStep(step, opts) {
3047
3047
  };
3048
3048
  }
3049
3049
  function isAgent(input) {
3050
- return input instanceof chunkDORUEGYO_cjs.Agent;
3050
+ return input instanceof chunkS255NXHH_cjs.Agent;
3051
3051
  }
3052
3052
  function isToolStep(input) {
3053
3053
  return input instanceof chunkE7PW4ZAB_cjs.Tool;
3054
3054
  }
3055
3055
  function isStepParams(input) {
3056
- return input !== null && typeof input === "object" && "id" in input && "execute" in input && !(input instanceof chunkDORUEGYO_cjs.Agent) && !(input instanceof chunkE7PW4ZAB_cjs.Tool);
3056
+ return input !== null && typeof input === "object" && "id" in input && "execute" in input && !(input instanceof chunkS255NXHH_cjs.Agent) && !(input instanceof chunkE7PW4ZAB_cjs.Tool);
3057
3057
  }
3058
3058
  function isProcessor(obj) {
3059
- return obj !== null && typeof obj === "object" && "id" in obj && typeof obj.id === "string" && !(obj instanceof chunkDORUEGYO_cjs.Agent) && !(obj instanceof chunkE7PW4ZAB_cjs.Tool) && (typeof obj.processInput === "function" || typeof obj.processInputStep === "function" || typeof obj.processOutputStream === "function" || typeof obj.processOutputResult === "function" || typeof obj.processOutputStep === "function");
3059
+ return obj !== null && typeof obj === "object" && "id" in obj && typeof obj.id === "string" && !(obj instanceof chunkS255NXHH_cjs.Agent) && !(obj instanceof chunkE7PW4ZAB_cjs.Tool) && (typeof obj.processInput === "function" || typeof obj.processInputStep === "function" || typeof obj.processOutputStream === "function" || typeof obj.processOutputResult === "function" || typeof obj.processOutputStep === "function");
3060
3060
  }
3061
3061
  function createStep(params, agentOrToolOptions) {
3062
3062
  if (isAgent(params)) {
@@ -3121,7 +3121,7 @@ async function processAgentStream(params) {
3121
3121
  }
3122
3122
  }
3123
3123
  if (streamFormat !== "legacy") {
3124
- await chunkDORUEGYO_cjs.forwardAgentStreamChunk({ writer, chunk });
3124
+ await chunkS255NXHH_cjs.forwardAgentStreamChunk({ writer, chunk });
3125
3125
  }
3126
3126
  }
3127
3127
  try {
@@ -3179,7 +3179,7 @@ function createStepFromAgent(params, agentOrToolOptions) {
3179
3179
  };
3180
3180
  const llm = await params.getLLM({ requestContext });
3181
3181
  const modelInfo = llm.getModel();
3182
- const isV2Model = chunkDORUEGYO_cjs.isSupportedLanguageModel(modelInfo);
3182
+ const isV2Model = chunkS255NXHH_cjs.isSupportedLanguageModel(modelInfo);
3183
3183
  let structuredResult = null;
3184
3184
  const handleFinish = (result) => {
3185
3185
  const resultWithObject = result;
@@ -3346,8 +3346,8 @@ function createStepFromProcessor(processor) {
3346
3346
  return {
3347
3347
  id: `processor:${processor.id}`,
3348
3348
  description: processor.name ?? `Processor ${processor.id}`,
3349
- inputSchema: chunkVWJ7H3MJ_cjs.toStandardSchema(chunkDORUEGYO_cjs.ProcessorStepSchema),
3350
- outputSchema: chunkVWJ7H3MJ_cjs.toStandardSchema(chunkDORUEGYO_cjs.ProcessorStepOutputSchema),
3349
+ inputSchema: chunkVWJ7H3MJ_cjs.toStandardSchema(chunkS255NXHH_cjs.ProcessorStepSchema),
3350
+ outputSchema: chunkVWJ7H3MJ_cjs.toStandardSchema(chunkS255NXHH_cjs.ProcessorStepOutputSchema),
3351
3351
  execute: async ({ inputData, requestContext, ...obsFields }) => {
3352
3352
  const observabilityContext = chunkW26XAFT3_cjs.resolveObservabilityContext(obsFields);
3353
3353
  const input = inputData;
@@ -3380,7 +3380,7 @@ function createStepFromProcessor(processor) {
3380
3380
  abortSignal
3381
3381
  } = input;
3382
3382
  const abort = (reason, options) => {
3383
- throw new chunkDORUEGYO_cjs.TripWire(reason || `Tripwire triggered by ${processor.id}`, options, processor.id);
3383
+ throw new chunkS255NXHH_cjs.TripWire(reason || `Tripwire triggered by ${processor.id}`, options, processor.id);
3384
3384
  };
3385
3385
  let currentMessageId = messageId;
3386
3386
  const rotateCurrentResponseMessageId = rotateResponseMessageId ? () => {
@@ -3450,7 +3450,7 @@ function createStepFromProcessor(processor) {
3450
3450
  processorSpan?.end({ output: result });
3451
3451
  return result;
3452
3452
  } catch (error) {
3453
- if (error instanceof chunkDORUEGYO_cjs.TripWire) {
3453
+ if (error instanceof chunkS255NXHH_cjs.TripWire) {
3454
3454
  processorSpan?.end({ output: { tripwire: error.message } });
3455
3455
  } else {
3456
3456
  processorSpan?.error({ error, endSpan: true });
@@ -3493,7 +3493,7 @@ function createStepFromProcessor(processor) {
3493
3493
  systemMessages: result.getAllSystemMessages()
3494
3494
  };
3495
3495
  } else if (Array.isArray(result)) {
3496
- chunkDORUEGYO_cjs.ProcessorRunner.applyMessagesToMessageList(
3496
+ chunkS255NXHH_cjs.ProcessorRunner.applyMessagesToMessageList(
3497
3497
  result,
3498
3498
  passThrough.messageList,
3499
3499
  idsBeforeProcessing,
@@ -3503,7 +3503,7 @@ function createStepFromProcessor(processor) {
3503
3503
  return { ...passThrough, messages: result };
3504
3504
  } else if (result && "messages" in result && "systemMessages" in result) {
3505
3505
  const typedResult = result;
3506
- chunkDORUEGYO_cjs.ProcessorRunner.applyMessagesToMessageList(
3506
+ chunkS255NXHH_cjs.ProcessorRunner.applyMessagesToMessageList(
3507
3507
  typedResult.messages,
3508
3508
  passThrough.messageList,
3509
3509
  idsBeforeProcessing,
@@ -3551,13 +3551,13 @@ function createStepFromProcessor(processor) {
3551
3551
  messageId: currentMessageId,
3552
3552
  rotateResponseMessageId: rotateCurrentResponseMessageId
3553
3553
  });
3554
- const validatedResult = await chunkDORUEGYO_cjs.ProcessorRunner.validateAndFormatProcessInputStepResult(result, {
3554
+ const validatedResult = await chunkS255NXHH_cjs.ProcessorRunner.validateAndFormatProcessInputStepResult(result, {
3555
3555
  messageList: passThrough.messageList,
3556
3556
  processor,
3557
3557
  stepNumber: stepNumber ?? 0
3558
3558
  });
3559
3559
  if (validatedResult.messages) {
3560
- chunkDORUEGYO_cjs.ProcessorRunner.applyMessagesToMessageList(
3560
+ chunkS255NXHH_cjs.ProcessorRunner.applyMessagesToMessageList(
3561
3561
  validatedResult.messages,
3562
3562
  passThrough.messageList,
3563
3563
  idsBeforeProcessing,
@@ -3622,7 +3622,7 @@ function createStepFromProcessor(processor) {
3622
3622
  delete mutableState[spanKey];
3623
3623
  }
3624
3624
  } catch (error) {
3625
- if (error instanceof chunkDORUEGYO_cjs.TripWire) {
3625
+ if (error instanceof chunkS255NXHH_cjs.TripWire) {
3626
3626
  processorSpan2?.end({ output: { tripwire: error.message } });
3627
3627
  } else {
3628
3628
  processorSpan2?.error({ error, endSpan: true });
@@ -3673,7 +3673,7 @@ function createStepFromProcessor(processor) {
3673
3673
  systemMessages: result.getAllSystemMessages()
3674
3674
  };
3675
3675
  } else if (Array.isArray(result)) {
3676
- chunkDORUEGYO_cjs.ProcessorRunner.applyMessagesToMessageList(
3676
+ chunkS255NXHH_cjs.ProcessorRunner.applyMessagesToMessageList(
3677
3677
  result,
3678
3678
  passThrough.messageList,
3679
3679
  idsBeforeProcessing,
@@ -3683,7 +3683,7 @@ function createStepFromProcessor(processor) {
3683
3683
  return { ...passThrough, messages: result };
3684
3684
  } else if (result && "messages" in result && "systemMessages" in result) {
3685
3685
  const typedResult = result;
3686
- chunkDORUEGYO_cjs.ProcessorRunner.applyMessagesToMessageList(
3686
+ chunkS255NXHH_cjs.ProcessorRunner.applyMessagesToMessageList(
3687
3687
  typedResult.messages,
3688
3688
  passThrough.messageList,
3689
3689
  idsBeforeProcessing,
@@ -3739,7 +3739,7 @@ function createStepFromProcessor(processor) {
3739
3739
  systemMessages: result.getAllSystemMessages()
3740
3740
  };
3741
3741
  } else if (Array.isArray(result)) {
3742
- chunkDORUEGYO_cjs.ProcessorRunner.applyMessagesToMessageList(
3742
+ chunkS255NXHH_cjs.ProcessorRunner.applyMessagesToMessageList(
3743
3743
  result,
3744
3744
  passThrough.messageList,
3745
3745
  idsBeforeProcessing,
@@ -3749,7 +3749,7 @@ function createStepFromProcessor(processor) {
3749
3749
  return { ...passThrough, messages: result };
3750
3750
  } else if (result && "messages" in result && "systemMessages" in result) {
3751
3751
  const typedResult = result;
3752
- chunkDORUEGYO_cjs.ProcessorRunner.applyMessagesToMessageList(
3752
+ chunkS255NXHH_cjs.ProcessorRunner.applyMessagesToMessageList(
3753
3753
  typedResult.messages,
3754
3754
  passThrough.messageList,
3755
3755
  idsBeforeProcessing,
@@ -3793,7 +3793,7 @@ function createWorkflow(params) {
3793
3793
  executionEngine
3794
3794
  });
3795
3795
  }
3796
- var EventedWorkflow = class extends chunkDORUEGYO_cjs.Workflow {
3796
+ var EventedWorkflow = class extends chunkS255NXHH_cjs.Workflow {
3797
3797
  constructor(params) {
3798
3798
  super(params);
3799
3799
  this.engineType = "evented";
@@ -3867,7 +3867,7 @@ var EventedWorkflow = class extends chunkDORUEGYO_cjs.Workflow {
3867
3867
  return run;
3868
3868
  }
3869
3869
  };
3870
- var EventedRun = class extends chunkDORUEGYO_cjs.Run {
3870
+ var EventedRun = class extends chunkS255NXHH_cjs.Run {
3871
3871
  constructor(params) {
3872
3872
  super(params);
3873
3873
  this.serializedStepGraph = params.serializedStepGraph;
@@ -4079,7 +4079,7 @@ var EventedRun = class extends chunkDORUEGYO_cjs.Run {
4079
4079
  }
4080
4080
  }
4081
4081
  });
4082
- this.streamOutput = new chunkDORUEGYO_cjs.WorkflowRunOutput({
4082
+ this.streamOutput = new chunkS255NXHH_cjs.WorkflowRunOutput({
4083
4083
  runId: this.runId,
4084
4084
  workflowId: this.workflowId,
4085
4085
  stream
@@ -4145,7 +4145,7 @@ var EventedRun = class extends chunkDORUEGYO_cjs.Run {
4145
4145
  }
4146
4146
  }
4147
4147
  });
4148
- this.streamOutput = new chunkDORUEGYO_cjs.WorkflowRunOutput({
4148
+ this.streamOutput = new chunkS255NXHH_cjs.WorkflowRunOutput({
4149
4149
  runId: this.runId,
4150
4150
  workflowId: this.workflowId,
4151
4151
  stream
@@ -4378,7 +4378,7 @@ function isExecutableStep(step) {
4378
4378
  }
4379
4379
 
4380
4380
  // src/workflows/evented/execution-engine.ts
4381
- var EventedExecutionEngine = class extends chunkDORUEGYO_cjs.ExecutionEngine {
4381
+ var EventedExecutionEngine = class extends chunkS255NXHH_cjs.ExecutionEngine {
4382
4382
  eventProcessor;
4383
4383
  constructor({
4384
4384
  mastra,
@@ -4418,7 +4418,7 @@ var EventedExecutionEngine = class extends chunkDORUEGYO_cjs.ExecutionEngine {
4418
4418
  await ack?.();
4419
4419
  await pubsub.unsubscribe("workflows-finish", finishCb);
4420
4420
  if (event.type === "workflow.fail" && event.data.stepResults) {
4421
- event.data.stepResults = chunkDORUEGYO_cjs.hydrateSerializedStepErrors(event.data.stepResults);
4421
+ event.data.stepResults = chunkS255NXHH_cjs.hydrateSerializedStepErrors(event.data.stepResults);
4422
4422
  }
4423
4423
  resolveResult(event.data);
4424
4424
  return;
@@ -4500,7 +4500,7 @@ var EventedExecutionEngine = class extends chunkDORUEGYO_cjs.ExecutionEngine {
4500
4500
  const { __state: _removedState, ...stepResultsWithoutTopLevelState } = resultData.stepResults ?? {};
4501
4501
  const cleanStepResults = {};
4502
4502
  for (const [stepId, stepResult] of Object.entries(stepResultsWithoutTopLevelState)) {
4503
- cleanStepResults[stepId] = chunkDORUEGYO_cjs.cleanStepResult(stepResult);
4503
+ cleanStepResults[stepId] = chunkS255NXHH_cjs.cleanStepResult(stepResult);
4504
4504
  }
4505
4505
  let callbackArg;
4506
4506
  if (resultData.prevResult.status === "failed") {
@@ -4617,5 +4617,5 @@ exports.cloneStep = cloneStep;
4617
4617
  exports.cloneWorkflow = cloneWorkflow;
4618
4618
  exports.createStep = createStep;
4619
4619
  exports.createWorkflow = createWorkflow;
4620
- //# sourceMappingURL=chunk-KB3YS4NC.cjs.map
4621
- //# sourceMappingURL=chunk-KB3YS4NC.cjs.map
4620
+ //# sourceMappingURL=chunk-DE2ZO3EV.cjs.map
4621
+ //# sourceMappingURL=chunk-DE2ZO3EV.cjs.map