@mastra/core 1.22.0-alpha.2 → 1.22.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 (128) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/dist/agent/agent.d.ts.map +1 -1
  3. package/dist/agent/index.cjs +8 -8
  4. package/dist/agent/index.js +1 -1
  5. package/dist/browser/browser.d.ts +155 -6
  6. package/dist/browser/browser.d.ts.map +1 -1
  7. package/dist/browser/index.cjs +292 -69
  8. package/dist/browser/index.cjs.map +1 -1
  9. package/dist/browser/index.d.ts +1 -1
  10. package/dist/browser/index.d.ts.map +1 -1
  11. package/dist/browser/index.js +292 -69
  12. package/dist/browser/index.js.map +1 -1
  13. package/dist/browser/thread-manager.d.ts +41 -6
  14. package/dist/browser/thread-manager.d.ts.map +1 -1
  15. package/dist/channels/index.cjs +4 -4
  16. package/dist/channels/index.js +1 -1
  17. package/dist/{chunk-T5EPN63U.cjs → chunk-4CUUOZHE.cjs} +9 -9
  18. package/dist/{chunk-T5EPN63U.cjs.map → chunk-4CUUOZHE.cjs.map} +1 -1
  19. package/dist/{chunk-DOBLNWJ4.js → chunk-7RUFTPIY.js} +4 -4
  20. package/dist/{chunk-DOBLNWJ4.js.map → chunk-7RUFTPIY.js.map} +1 -1
  21. package/dist/{chunk-OBEZWZWL.cjs → chunk-AUJ7TUEZ.cjs} +185 -185
  22. package/dist/{chunk-OBEZWZWL.cjs.map → chunk-AUJ7TUEZ.cjs.map} +1 -1
  23. package/dist/{chunk-27O5T2VT.cjs → chunk-CXQ3QR5K.cjs} +48 -48
  24. package/dist/{chunk-27O5T2VT.cjs.map → chunk-CXQ3QR5K.cjs.map} +1 -1
  25. package/dist/{chunk-YEAJ4WNU.js → chunk-DRITAH5L.js} +3 -3
  26. package/dist/{chunk-YEAJ4WNU.js.map → chunk-DRITAH5L.js.map} +1 -1
  27. package/dist/{chunk-7BCOOVHZ.js → chunk-GYQ22SLZ.js} +4 -4
  28. package/dist/{chunk-7BCOOVHZ.js.map → chunk-GYQ22SLZ.js.map} +1 -1
  29. package/dist/{chunk-CMAULWNV.js → chunk-HPVNBI7J.js} +3 -3
  30. package/dist/{chunk-CMAULWNV.js.map → chunk-HPVNBI7J.js.map} +1 -1
  31. package/dist/{chunk-6RXPK4SK.js → chunk-HXX4JDIB.js} +3 -3
  32. package/dist/{chunk-6RXPK4SK.js.map → chunk-HXX4JDIB.js.map} +1 -1
  33. package/dist/{chunk-XQLIIZJB.cjs → chunk-KLHUYSDF.cjs} +6 -6
  34. package/dist/{chunk-XQLIIZJB.cjs.map → chunk-KLHUYSDF.cjs.map} +1 -1
  35. package/dist/{chunk-NKRYR7II.js → chunk-NLN4DDI6.js} +6 -6
  36. package/dist/{chunk-NKRYR7II.js.map → chunk-NLN4DDI6.js.map} +1 -1
  37. package/dist/{chunk-ELXVJWPF.js → chunk-NMRSL5GT.js} +9 -9
  38. package/dist/{chunk-ELXVJWPF.js.map → chunk-NMRSL5GT.js.map} +1 -1
  39. package/dist/{chunk-RSJKFDKP.cjs → chunk-NVMXENQS.cjs} +17 -17
  40. package/dist/{chunk-RSJKFDKP.cjs.map → chunk-NVMXENQS.cjs.map} +1 -1
  41. package/dist/{chunk-KAEFU5PR.cjs → chunk-PJERQ3YG.cjs} +3 -3
  42. package/dist/chunk-PJERQ3YG.cjs.map +1 -0
  43. package/dist/{chunk-WOFPOL3K.cjs → chunk-QFVPZL25.cjs} +5 -5
  44. package/dist/{chunk-WOFPOL3K.cjs.map → chunk-QFVPZL25.cjs.map} +1 -1
  45. package/dist/{chunk-XW5P6CHZ.cjs → chunk-RHKFYYB6.cjs} +26 -24
  46. package/dist/chunk-RHKFYYB6.cjs.map +1 -0
  47. package/dist/{chunk-O4GMYDMB.js → chunk-TULT7C36.js} +6 -4
  48. package/dist/chunk-TULT7C36.js.map +1 -0
  49. package/dist/{chunk-KYUKC4QI.cjs → chunk-UZVGJ26K.cjs} +77 -77
  50. package/dist/{chunk-KYUKC4QI.cjs.map → chunk-UZVGJ26K.cjs.map} +1 -1
  51. package/dist/{chunk-PQGC24JT.js → chunk-V5FLTMXK.js} +3 -3
  52. package/dist/chunk-V5FLTMXK.js.map +1 -0
  53. package/dist/{chunk-HLG6JE5B.cjs → chunk-VDXTOWVO.cjs} +16 -14
  54. package/dist/chunk-VDXTOWVO.cjs.map +1 -0
  55. package/dist/{chunk-BE4GXCOK.cjs → chunk-VRH5HTH5.cjs} +7 -7
  56. package/dist/{chunk-BE4GXCOK.cjs.map → chunk-VRH5HTH5.cjs.map} +1 -1
  57. package/dist/{chunk-X4JB5HFS.js → chunk-WTVDTW4F.js} +14 -12
  58. package/dist/chunk-WTVDTW4F.js.map +1 -0
  59. package/dist/{chunk-XZJRR6NR.js → chunk-Y7KNCAZY.js} +3 -3
  60. package/dist/{chunk-XZJRR6NR.js.map → chunk-Y7KNCAZY.js.map} +1 -1
  61. package/dist/datasets/index.cjs +11 -11
  62. package/dist/datasets/index.js +1 -1
  63. package/dist/docs/SKILL.md +1 -1
  64. package/dist/docs/assets/SOURCE_MAP.json +154 -154
  65. package/dist/evals/index.cjs +5 -5
  66. package/dist/evals/index.js +2 -2
  67. package/dist/evals/scoreTraces/index.cjs +3 -3
  68. package/dist/evals/scoreTraces/index.js +1 -1
  69. package/dist/harness/index.cjs +7 -7
  70. package/dist/harness/index.js +5 -5
  71. package/dist/index.cjs +2 -2
  72. package/dist/index.js +1 -1
  73. package/dist/llm/index.cjs +20 -20
  74. package/dist/llm/index.js +5 -5
  75. package/dist/llm/model/provider-types.generated.d.ts +3 -2
  76. package/dist/loop/index.cjs +14 -14
  77. package/dist/loop/index.js +1 -1
  78. package/dist/mastra/index.cjs +2 -2
  79. package/dist/mastra/index.js +1 -1
  80. package/dist/mastra-33MCZUH4.cjs +12 -0
  81. package/dist/{mastra-FLOYM4EW.cjs.map → mastra-33MCZUH4.cjs.map} +1 -1
  82. package/dist/mastra-RY543V4U.js +3 -0
  83. package/dist/{mastra-YQRFVXLA.js.map → mastra-RY543V4U.js.map} +1 -1
  84. package/dist/memory/index.cjs +17 -17
  85. package/dist/memory/index.js +1 -1
  86. package/dist/models-dev-2BJQPEQJ.js +3 -0
  87. package/dist/{models-dev-URH3VX3L.js.map → models-dev-2BJQPEQJ.js.map} +1 -1
  88. package/dist/models-dev-OZGJCJIG.cjs +12 -0
  89. package/dist/{models-dev-2W4M2TXF.cjs.map → models-dev-OZGJCJIG.cjs.map} +1 -1
  90. package/dist/netlify-N7PUN3NA.js +3 -0
  91. package/dist/{netlify-S7UHC335.js.map → netlify-N7PUN3NA.js.map} +1 -1
  92. package/dist/netlify-TSDN7D7F.cjs +12 -0
  93. package/dist/{netlify-LCIM6BYA.cjs.map → netlify-TSDN7D7F.cjs.map} +1 -1
  94. package/dist/processor-provider/index.cjs +10 -10
  95. package/dist/processor-provider/index.js +1 -1
  96. package/dist/processors/index.cjs +44 -44
  97. package/dist/processors/index.js +1 -1
  98. package/dist/provider-registry-DBWCMPP3.cjs +40 -0
  99. package/dist/{provider-registry-GK7MD55F.cjs.map → provider-registry-DBWCMPP3.cjs.map} +1 -1
  100. package/dist/provider-registry-EINTM27D.js +3 -0
  101. package/dist/{provider-registry-PN4KYENK.js.map → provider-registry-EINTM27D.js.map} +1 -1
  102. package/dist/provider-registry.json +6 -4
  103. package/dist/relevance/index.cjs +3 -3
  104. package/dist/relevance/index.js +1 -1
  105. package/dist/stream/index.cjs +8 -8
  106. package/dist/stream/index.js +1 -1
  107. package/dist/tool-loop-agent/index.cjs +4 -4
  108. package/dist/tool-loop-agent/index.js +1 -1
  109. package/dist/workflows/evented/index.cjs +10 -10
  110. package/dist/workflows/evented/index.js +1 -1
  111. package/dist/workflows/index.cjs +24 -24
  112. package/dist/workflows/index.js +1 -1
  113. package/package.json +9 -9
  114. package/src/llm/model/provider-types.generated.d.ts +3 -2
  115. package/dist/chunk-HLG6JE5B.cjs.map +0 -1
  116. package/dist/chunk-KAEFU5PR.cjs.map +0 -1
  117. package/dist/chunk-O4GMYDMB.js.map +0 -1
  118. package/dist/chunk-PQGC24JT.js.map +0 -1
  119. package/dist/chunk-X4JB5HFS.js.map +0 -1
  120. package/dist/chunk-XW5P6CHZ.cjs.map +0 -1
  121. package/dist/mastra-FLOYM4EW.cjs +0 -12
  122. package/dist/mastra-YQRFVXLA.js +0 -3
  123. package/dist/models-dev-2W4M2TXF.cjs +0 -12
  124. package/dist/models-dev-URH3VX3L.js +0 -3
  125. package/dist/netlify-LCIM6BYA.cjs +0 -12
  126. package/dist/netlify-S7UHC335.js +0 -3
  127. package/dist/provider-registry-GK7MD55F.cjs +0 -40
  128. package/dist/provider-registry-PN4KYENK.js +0 -3
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkHLG6JE5B_cjs = require('./chunk-HLG6JE5B.cjs');
3
+ var chunkVDXTOWVO_cjs = require('./chunk-VDXTOWVO.cjs');
4
4
  var chunkZCBG4ZQT_cjs = require('./chunk-ZCBG4ZQT.cjs');
5
5
  var chunk4T5MI4MY_cjs = require('./chunk-4T5MI4MY.cjs');
6
6
  var chunkXB5NKHYR_cjs = require('./chunk-XB5NKHYR.cjs');
@@ -61,7 +61,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
61
61
  let suspended;
62
62
  let bailed;
63
63
  const startedAt = Date.now();
64
- const { inputData, validationError } = await chunkHLG6JE5B_cjs.validateStepInput({
64
+ const { inputData, validationError } = await chunkVDXTOWVO_cjs.validateStepInput({
65
65
  prevOutput: typeof params.foreachIdx === "number" ? params.input?.[params.foreachIdx] : params.input,
66
66
  step,
67
67
  validateInputs: params.validateInputs ?? true
@@ -94,7 +94,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
94
94
  const stepOutput = await chunkDLBIUFZL_cjs.executeWithContext({
95
95
  span: params.tracingContext?.currentSpan,
96
96
  fn: () => step.execute(
97
- chunkHLG6JE5B_cjs.createDeprecationProxy(
97
+ chunkVDXTOWVO_cjs.createDeprecationProxy(
98
98
  {
99
99
  workflowId: params.workflowId,
100
100
  runId,
@@ -109,9 +109,9 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
109
109
  resumeData: params.resumeData,
110
110
  suspendData: suspendDataToUse,
111
111
  getInitData: () => stepResults?.input,
112
- getStepResult: chunkHLG6JE5B_cjs.getStepResult.bind(this, stepResults),
112
+ getStepResult: chunkVDXTOWVO_cjs.getStepResult.bind(this, stepResults),
113
113
  suspend: async (suspendPayload, suspendOptions) => {
114
- const { suspendData, validationError: validationError2 } = await chunkHLG6JE5B_cjs.validateStepSuspendData({
114
+ const { suspendData, validationError: validationError2 } = await chunkVDXTOWVO_cjs.validateStepSuspendData({
115
115
  suspendData: suspendPayload,
116
116
  step,
117
117
  validateInputs: params.validateInputs ?? true
@@ -164,7 +164,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
164
164
  },
165
165
  {
166
166
  paramName: "runCount",
167
- deprecationMessage: chunkHLG6JE5B_cjs.runCountDeprecationMessage,
167
+ deprecationMessage: chunkVDXTOWVO_cjs.runCountDeprecationMessage,
168
168
  logger: this.logger
169
169
  }
170
170
  )
@@ -237,7 +237,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
237
237
  // Preserve TripWire data as plain object for proper serialization
238
238
  // Important: Check `error` not `errorInstance` because getErrorFromUnknown
239
239
  // converts the error and loses the prototype chain
240
- tripwire: error instanceof chunkHLG6JE5B_cjs.TripWire ? {
240
+ tripwire: error instanceof chunkVDXTOWVO_cjs.TripWire ? {
241
241
  reason: error.message,
242
242
  retry: error.options?.retry,
243
243
  metadata: error.options?.metadata,
@@ -295,7 +295,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
295
295
  const callId = crypto.randomUUID();
296
296
  const outputWriter = this.createOutputWriter(runId);
297
297
  return condition(
298
- chunkHLG6JE5B_cjs.createDeprecationProxy(
298
+ chunkVDXTOWVO_cjs.createDeprecationProxy(
299
299
  {
300
300
  workflowId,
301
301
  runId,
@@ -306,7 +306,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
306
306
  retryCount,
307
307
  resumeData,
308
308
  getInitData: () => stepResults?.input,
309
- getStepResult: chunkHLG6JE5B_cjs.getStepResult.bind(this, stepResults),
309
+ getStepResult: chunkVDXTOWVO_cjs.getStepResult.bind(this, stepResults),
310
310
  bail: (_result) => {
311
311
  throw new Error("Not implemented");
312
312
  },
@@ -333,7 +333,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
333
333
  },
334
334
  {
335
335
  paramName: "runCount",
336
- deprecationMessage: chunkHLG6JE5B_cjs.runCountDeprecationMessage,
336
+ deprecationMessage: chunkVDXTOWVO_cjs.runCountDeprecationMessage,
337
337
  logger: this.logger
338
338
  }
339
339
  )
@@ -353,7 +353,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
353
353
  const callId = crypto.randomUUID();
354
354
  const outputWriter = this.createOutputWriter(runId);
355
355
  return await step.fn(
356
- chunkHLG6JE5B_cjs.createDeprecationProxy(
356
+ chunkVDXTOWVO_cjs.createDeprecationProxy(
357
357
  {
358
358
  workflowId: params.workflowId,
359
359
  runId,
@@ -367,7 +367,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
367
367
  retryCount,
368
368
  resumeData: params.resumeData,
369
369
  getInitData: () => stepResults?.input,
370
- getStepResult: chunkHLG6JE5B_cjs.getStepResult.bind(this, stepResults),
370
+ getStepResult: chunkVDXTOWVO_cjs.getStepResult.bind(this, stepResults),
371
371
  suspend: async (_suspendPayload) => {
372
372
  throw new Error("Not implemented");
373
373
  },
@@ -396,7 +396,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
396
396
  },
397
397
  {
398
398
  paramName: "runCount",
399
- deprecationMessage: chunkHLG6JE5B_cjs.runCountDeprecationMessage,
399
+ deprecationMessage: chunkVDXTOWVO_cjs.runCountDeprecationMessage,
400
400
  logger: this.logger
401
401
  }
402
402
  )
@@ -420,7 +420,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
420
420
  const callId = crypto.randomUUID();
421
421
  const outputWriter = this.createOutputWriter(runId);
422
422
  const result = await step.fn(
423
- chunkHLG6JE5B_cjs.createDeprecationProxy(
423
+ chunkVDXTOWVO_cjs.createDeprecationProxy(
424
424
  {
425
425
  workflowId: params.workflowId,
426
426
  runId,
@@ -434,7 +434,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
434
434
  retryCount,
435
435
  resumeData: params.resumeData,
436
436
  getInitData: () => stepResults?.input,
437
- getStepResult: chunkHLG6JE5B_cjs.getStepResult.bind(this, stepResults),
437
+ getStepResult: chunkVDXTOWVO_cjs.getStepResult.bind(this, stepResults),
438
438
  suspend: async (_suspendPayload) => {
439
439
  throw new Error("Not implemented");
440
440
  },
@@ -463,7 +463,7 @@ var StepExecutor = class extends chunkDKK77FIJ_cjs.MastraBase {
463
463
  },
464
464
  {
465
465
  paramName: "runCount",
466
- deprecationMessage: chunkHLG6JE5B_cjs.runCountDeprecationMessage,
466
+ deprecationMessage: chunkVDXTOWVO_cjs.runCountDeprecationMessage,
467
467
  logger: this.logger
468
468
  }
469
469
  )
@@ -482,7 +482,7 @@ function isTripwireChunk(chunk) {
482
482
  }
483
483
  function createTripWireFromChunk(chunk) {
484
484
  const { payload } = chunk;
485
- return new chunkHLG6JE5B_cjs.TripWire(
485
+ return new chunkVDXTOWVO_cjs.TripWire(
486
486
  payload.reason || "Agent tripwire triggered",
487
487
  {
488
488
  retry: payload.retry,
@@ -2101,7 +2101,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
2101
2101
  runId
2102
2102
  }) ?? { context: {} };
2103
2103
  const nestedWorkflow = step.step;
2104
- const timeTravelParams = chunkHLG6JE5B_cjs.createTimeTravelExecutionParams({
2104
+ const timeTravelParams = chunkVDXTOWVO_cjs.createTimeTravelExecutionParams({
2105
2105
  steps: timeTravel.steps.slice(1),
2106
2106
  inputData: timeTravel.inputData,
2107
2107
  resumeData: timeTravel.resumeData,
@@ -2201,7 +2201,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
2201
2201
  for (const [key, value] of Object.entries(requestContext)) {
2202
2202
  rc.set(key, value);
2203
2203
  }
2204
- const { resumeData: timeTravelResumeData, validationError: timeTravelResumeValidationError } = await chunkHLG6JE5B_cjs.validateStepResumeData({
2204
+ const { resumeData: timeTravelResumeData, validationError: timeTravelResumeValidationError } = await chunkVDXTOWVO_cjs.validateStepResumeData({
2205
2205
  resumeData: timeTravel?.stepResults[step.step.id]?.status === "suspended" ? timeTravel?.resumeData : void 0,
2206
2206
  step: step.step
2207
2207
  });
@@ -3022,7 +3022,7 @@ var WorkflowEventProcessor = class extends EventProcessor {
3022
3022
 
3023
3023
  // src/workflows/evented/workflow.ts
3024
3024
  function cloneWorkflow(workflow, opts) {
3025
- const wf = new chunkHLG6JE5B_cjs.Workflow({
3025
+ const wf = new chunkVDXTOWVO_cjs.Workflow({
3026
3026
  id: opts.id,
3027
3027
  inputSchema: workflow.inputSchema,
3028
3028
  outputSchema: workflow.outputSchema,
@@ -3051,16 +3051,16 @@ function cloneStep(step, opts) {
3051
3051
  };
3052
3052
  }
3053
3053
  function isAgent(input) {
3054
- return input instanceof chunkHLG6JE5B_cjs.Agent;
3054
+ return input instanceof chunkVDXTOWVO_cjs.Agent;
3055
3055
  }
3056
3056
  function isToolStep(input) {
3057
3057
  return input instanceof chunkLDLHW3QN_cjs.Tool;
3058
3058
  }
3059
3059
  function isStepParams(input) {
3060
- return input !== null && typeof input === "object" && "id" in input && "execute" in input && !(input instanceof chunkHLG6JE5B_cjs.Agent) && !(input instanceof chunkLDLHW3QN_cjs.Tool);
3060
+ return input !== null && typeof input === "object" && "id" in input && "execute" in input && !(input instanceof chunkVDXTOWVO_cjs.Agent) && !(input instanceof chunkLDLHW3QN_cjs.Tool);
3061
3061
  }
3062
3062
  function isProcessor(obj) {
3063
- return obj !== null && typeof obj === "object" && "id" in obj && typeof obj.id === "string" && !(obj instanceof chunkHLG6JE5B_cjs.Agent) && !(obj instanceof chunkLDLHW3QN_cjs.Tool) && (typeof obj.processInput === "function" || typeof obj.processInputStep === "function" || typeof obj.processOutputStream === "function" || typeof obj.processOutputResult === "function" || typeof obj.processOutputStep === "function");
3063
+ return obj !== null && typeof obj === "object" && "id" in obj && typeof obj.id === "string" && !(obj instanceof chunkVDXTOWVO_cjs.Agent) && !(obj instanceof chunkLDLHW3QN_cjs.Tool) && (typeof obj.processInput === "function" || typeof obj.processInputStep === "function" || typeof obj.processOutputStream === "function" || typeof obj.processOutputResult === "function" || typeof obj.processOutputStep === "function");
3064
3064
  }
3065
3065
  function createStep(params, agentOrToolOptions) {
3066
3066
  if (isAgent(params)) {
@@ -3125,7 +3125,7 @@ async function processAgentStream(params) {
3125
3125
  }
3126
3126
  }
3127
3127
  if (streamFormat !== "legacy") {
3128
- await chunkHLG6JE5B_cjs.forwardAgentStreamChunk({ writer, chunk });
3128
+ await chunkVDXTOWVO_cjs.forwardAgentStreamChunk({ writer, chunk });
3129
3129
  }
3130
3130
  }
3131
3131
  try {
@@ -3183,7 +3183,7 @@ function createStepFromAgent(params, agentOrToolOptions) {
3183
3183
  };
3184
3184
  const llm = await params.getLLM({ requestContext });
3185
3185
  const modelInfo = llm.getModel();
3186
- const isV2Model = chunkHLG6JE5B_cjs.isSupportedLanguageModel(modelInfo);
3186
+ const isV2Model = chunkVDXTOWVO_cjs.isSupportedLanguageModel(modelInfo);
3187
3187
  let structuredResult = null;
3188
3188
  const handleFinish = (result) => {
3189
3189
  const resultWithObject = result;
@@ -3350,8 +3350,8 @@ function createStepFromProcessor(processor) {
3350
3350
  return {
3351
3351
  id: `processor:${processor.id}`,
3352
3352
  description: processor.name ?? `Processor ${processor.id}`,
3353
- inputSchema: chunkXB4FLS7A_cjs.toStandardSchema(chunkHLG6JE5B_cjs.ProcessorStepSchema),
3354
- outputSchema: chunkXB4FLS7A_cjs.toStandardSchema(chunkHLG6JE5B_cjs.ProcessorStepOutputSchema),
3353
+ inputSchema: chunkXB4FLS7A_cjs.toStandardSchema(chunkVDXTOWVO_cjs.ProcessorStepSchema),
3354
+ outputSchema: chunkXB4FLS7A_cjs.toStandardSchema(chunkVDXTOWVO_cjs.ProcessorStepOutputSchema),
3355
3355
  execute: async ({ inputData, requestContext, ...obsFields }) => {
3356
3356
  const observabilityContext = chunkW6PDQCCN_cjs.resolveObservabilityContext(obsFields);
3357
3357
  const input = inputData;
@@ -3386,7 +3386,7 @@ function createStepFromProcessor(processor) {
3386
3386
  abortSignal
3387
3387
  } = input;
3388
3388
  const abort = (reason, options) => {
3389
- throw new chunkHLG6JE5B_cjs.TripWire(reason || `Tripwire triggered by ${processor.id}`, options, processor.id);
3389
+ throw new chunkVDXTOWVO_cjs.TripWire(reason || `Tripwire triggered by ${processor.id}`, options, processor.id);
3390
3390
  };
3391
3391
  let currentMessageId = messageId;
3392
3392
  const rotateCurrentResponseMessageId = rotateResponseMessageId ? () => {
@@ -3418,7 +3418,7 @@ function createStepFromProcessor(processor) {
3418
3418
  if (processorStates) {
3419
3419
  let ps = processorStates.get(processor.id);
3420
3420
  if (!ps) {
3421
- ps = new chunkHLG6JE5B_cjs.ProcessorState();
3421
+ ps = new chunkVDXTOWVO_cjs.ProcessorState();
3422
3422
  processorStates.set(processor.id, ps);
3423
3423
  }
3424
3424
  processorState = ps.customState;
@@ -3467,7 +3467,7 @@ function createStepFromProcessor(processor) {
3467
3467
  processorSpan?.end({ output: result });
3468
3468
  return result;
3469
3469
  } catch (error) {
3470
- if (error instanceof chunkHLG6JE5B_cjs.TripWire) {
3470
+ if (error instanceof chunkVDXTOWVO_cjs.TripWire) {
3471
3471
  processorSpan?.end({ output: { tripwire: error.message } });
3472
3472
  } else {
3473
3473
  processorSpan?.error({ error, endSpan: true });
@@ -3510,7 +3510,7 @@ function createStepFromProcessor(processor) {
3510
3510
  systemMessages: result.getAllSystemMessages()
3511
3511
  };
3512
3512
  } else if (Array.isArray(result)) {
3513
- chunkHLG6JE5B_cjs.ProcessorRunner.applyMessagesToMessageList(
3513
+ chunkVDXTOWVO_cjs.ProcessorRunner.applyMessagesToMessageList(
3514
3514
  result,
3515
3515
  passThrough.messageList,
3516
3516
  idsBeforeProcessing,
@@ -3520,7 +3520,7 @@ function createStepFromProcessor(processor) {
3520
3520
  return { ...passThrough, messages: result };
3521
3521
  } else if (result && "messages" in result && "systemMessages" in result) {
3522
3522
  const typedResult = result;
3523
- chunkHLG6JE5B_cjs.ProcessorRunner.applyMessagesToMessageList(
3523
+ chunkVDXTOWVO_cjs.ProcessorRunner.applyMessagesToMessageList(
3524
3524
  typedResult.messages,
3525
3525
  passThrough.messageList,
3526
3526
  idsBeforeProcessing,
@@ -3568,13 +3568,13 @@ function createStepFromProcessor(processor) {
3568
3568
  messageId: currentMessageId,
3569
3569
  rotateResponseMessageId: rotateCurrentResponseMessageId
3570
3570
  });
3571
- const validatedResult = await chunkHLG6JE5B_cjs.ProcessorRunner.validateAndFormatProcessInputStepResult(result, {
3571
+ const validatedResult = await chunkVDXTOWVO_cjs.ProcessorRunner.validateAndFormatProcessInputStepResult(result, {
3572
3572
  messageList: passThrough.messageList,
3573
3573
  processor,
3574
3574
  stepNumber: stepNumber ?? 0
3575
3575
  });
3576
3576
  if (validatedResult.messages) {
3577
- chunkHLG6JE5B_cjs.ProcessorRunner.applyMessagesToMessageList(
3577
+ chunkVDXTOWVO_cjs.ProcessorRunner.applyMessagesToMessageList(
3578
3578
  validatedResult.messages,
3579
3579
  passThrough.messageList,
3580
3580
  idsBeforeProcessing,
@@ -3639,7 +3639,7 @@ function createStepFromProcessor(processor) {
3639
3639
  delete mutableState[spanKey];
3640
3640
  }
3641
3641
  } catch (error) {
3642
- if (error instanceof chunkHLG6JE5B_cjs.TripWire) {
3642
+ if (error instanceof chunkVDXTOWVO_cjs.TripWire) {
3643
3643
  processorSpan2?.end({ output: { tripwire: error.message } });
3644
3644
  } else {
3645
3645
  processorSpan2?.error({ error, endSpan: true });
@@ -3690,7 +3690,7 @@ function createStepFromProcessor(processor) {
3690
3690
  systemMessages: result.getAllSystemMessages()
3691
3691
  };
3692
3692
  } else if (Array.isArray(result)) {
3693
- chunkHLG6JE5B_cjs.ProcessorRunner.applyMessagesToMessageList(
3693
+ chunkVDXTOWVO_cjs.ProcessorRunner.applyMessagesToMessageList(
3694
3694
  result,
3695
3695
  passThrough.messageList,
3696
3696
  idsBeforeProcessing,
@@ -3700,7 +3700,7 @@ function createStepFromProcessor(processor) {
3700
3700
  return { ...passThrough, messages: result };
3701
3701
  } else if (result && "messages" in result && "systemMessages" in result) {
3702
3702
  const typedResult = result;
3703
- chunkHLG6JE5B_cjs.ProcessorRunner.applyMessagesToMessageList(
3703
+ chunkVDXTOWVO_cjs.ProcessorRunner.applyMessagesToMessageList(
3704
3704
  typedResult.messages,
3705
3705
  passThrough.messageList,
3706
3706
  idsBeforeProcessing,
@@ -3756,7 +3756,7 @@ function createStepFromProcessor(processor) {
3756
3756
  systemMessages: result.getAllSystemMessages()
3757
3757
  };
3758
3758
  } else if (Array.isArray(result)) {
3759
- chunkHLG6JE5B_cjs.ProcessorRunner.applyMessagesToMessageList(
3759
+ chunkVDXTOWVO_cjs.ProcessorRunner.applyMessagesToMessageList(
3760
3760
  result,
3761
3761
  passThrough.messageList,
3762
3762
  idsBeforeProcessing,
@@ -3766,7 +3766,7 @@ function createStepFromProcessor(processor) {
3766
3766
  return { ...passThrough, messages: result };
3767
3767
  } else if (result && "messages" in result && "systemMessages" in result) {
3768
3768
  const typedResult = result;
3769
- chunkHLG6JE5B_cjs.ProcessorRunner.applyMessagesToMessageList(
3769
+ chunkVDXTOWVO_cjs.ProcessorRunner.applyMessagesToMessageList(
3770
3770
  typedResult.messages,
3771
3771
  passThrough.messageList,
3772
3772
  idsBeforeProcessing,
@@ -3810,7 +3810,7 @@ function createWorkflow(params) {
3810
3810
  executionEngine
3811
3811
  });
3812
3812
  }
3813
- var EventedWorkflow = class extends chunkHLG6JE5B_cjs.Workflow {
3813
+ var EventedWorkflow = class extends chunkVDXTOWVO_cjs.Workflow {
3814
3814
  constructor(params) {
3815
3815
  super(params);
3816
3816
  this.engineType = "evented";
@@ -3884,7 +3884,7 @@ var EventedWorkflow = class extends chunkHLG6JE5B_cjs.Workflow {
3884
3884
  return run;
3885
3885
  }
3886
3886
  };
3887
- var EventedRun = class extends chunkHLG6JE5B_cjs.Run {
3887
+ var EventedRun = class extends chunkVDXTOWVO_cjs.Run {
3888
3888
  constructor(params) {
3889
3889
  super(params);
3890
3890
  this.serializedStepGraph = params.serializedStepGraph;
@@ -4096,7 +4096,7 @@ var EventedRun = class extends chunkHLG6JE5B_cjs.Run {
4096
4096
  }
4097
4097
  }
4098
4098
  });
4099
- this.streamOutput = new chunkHLG6JE5B_cjs.WorkflowRunOutput({
4099
+ this.streamOutput = new chunkVDXTOWVO_cjs.WorkflowRunOutput({
4100
4100
  runId: this.runId,
4101
4101
  workflowId: this.workflowId,
4102
4102
  stream
@@ -4162,7 +4162,7 @@ var EventedRun = class extends chunkHLG6JE5B_cjs.Run {
4162
4162
  }
4163
4163
  }
4164
4164
  });
4165
- this.streamOutput = new chunkHLG6JE5B_cjs.WorkflowRunOutput({
4165
+ this.streamOutput = new chunkVDXTOWVO_cjs.WorkflowRunOutput({
4166
4166
  runId: this.runId,
4167
4167
  workflowId: this.workflowId,
4168
4168
  stream
@@ -4395,7 +4395,7 @@ function isExecutableStep(step) {
4395
4395
  }
4396
4396
 
4397
4397
  // src/workflows/evented/execution-engine.ts
4398
- var EventedExecutionEngine = class extends chunkHLG6JE5B_cjs.ExecutionEngine {
4398
+ var EventedExecutionEngine = class extends chunkVDXTOWVO_cjs.ExecutionEngine {
4399
4399
  eventProcessor;
4400
4400
  constructor({
4401
4401
  mastra,
@@ -4435,7 +4435,7 @@ var EventedExecutionEngine = class extends chunkHLG6JE5B_cjs.ExecutionEngine {
4435
4435
  await ack?.();
4436
4436
  await pubsub.unsubscribe("workflows-finish", finishCb);
4437
4437
  if (event.type === "workflow.fail" && event.data.stepResults) {
4438
- event.data.stepResults = chunkHLG6JE5B_cjs.hydrateSerializedStepErrors(event.data.stepResults);
4438
+ event.data.stepResults = chunkVDXTOWVO_cjs.hydrateSerializedStepErrors(event.data.stepResults);
4439
4439
  }
4440
4440
  resolveResult(event.data);
4441
4441
  return;
@@ -4517,7 +4517,7 @@ var EventedExecutionEngine = class extends chunkHLG6JE5B_cjs.ExecutionEngine {
4517
4517
  const { __state: _removedState, ...stepResultsWithoutTopLevelState } = resultData.stepResults ?? {};
4518
4518
  const cleanStepResults = {};
4519
4519
  for (const [stepId, stepResult] of Object.entries(stepResultsWithoutTopLevelState)) {
4520
- cleanStepResults[stepId] = chunkHLG6JE5B_cjs.cleanStepResult(stepResult);
4520
+ cleanStepResults[stepId] = chunkVDXTOWVO_cjs.cleanStepResult(stepResult);
4521
4521
  }
4522
4522
  let callbackArg;
4523
4523
  if (resultData.prevResult.status === "failed") {
@@ -4634,5 +4634,5 @@ exports.cloneStep = cloneStep;
4634
4634
  exports.cloneWorkflow = cloneWorkflow;
4635
4635
  exports.createStep = createStep;
4636
4636
  exports.createWorkflow = createWorkflow;
4637
- //# sourceMappingURL=chunk-27O5T2VT.cjs.map
4638
- //# sourceMappingURL=chunk-27O5T2VT.cjs.map
4637
+ //# sourceMappingURL=chunk-CXQ3QR5K.cjs.map
4638
+ //# sourceMappingURL=chunk-CXQ3QR5K.cjs.map