@mastra/core 0.24.8 → 0.24.9-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 (121) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/agent/index.cjs +13 -13
  3. package/dist/agent/index.js +2 -2
  4. package/dist/agent/input-processor/index.cjs +6 -6
  5. package/dist/agent/input-processor/index.js +1 -1
  6. package/dist/ai-tracing/index.cjs +56 -39
  7. package/dist/ai-tracing/index.d.ts +1 -0
  8. package/dist/ai-tracing/index.d.ts.map +1 -1
  9. package/dist/ai-tracing/index.js +2 -1
  10. package/dist/ai-tracing/serialization.d.ts +60 -0
  11. package/dist/ai-tracing/serialization.d.ts.map +1 -0
  12. package/dist/ai-tracing/spans/base.d.ts +0 -17
  13. package/dist/ai-tracing/spans/base.d.ts.map +1 -1
  14. package/dist/ai-tracing/spans/default.d.ts.map +1 -1
  15. package/dist/{chunk-FQTJPLCW.cjs → chunk-2L6LTY2M.cjs} +15 -15
  16. package/dist/{chunk-FQTJPLCW.cjs.map → chunk-2L6LTY2M.cjs.map} +1 -1
  17. package/dist/{chunk-V2IMZSNO.js → chunk-3N7RP3UB.js} +3 -3
  18. package/dist/{chunk-V2IMZSNO.js.map → chunk-3N7RP3UB.js.map} +1 -1
  19. package/dist/{chunk-RP4YCZP7.js → chunk-6KCZMULD.js} +3 -3
  20. package/dist/{chunk-RP4YCZP7.js.map → chunk-6KCZMULD.js.map} +1 -1
  21. package/dist/{chunk-E5NCEJEJ.js → chunk-6ZBXSCZR.js} +3 -3
  22. package/dist/{chunk-E5NCEJEJ.js.map → chunk-6ZBXSCZR.js.map} +1 -1
  23. package/dist/{chunk-N6P5GJRO.js → chunk-7XP3ZCBG.js} +7 -7
  24. package/dist/{chunk-N6P5GJRO.js.map → chunk-7XP3ZCBG.js.map} +1 -1
  25. package/dist/{chunk-2BY7C6Y7.js → chunk-AOUR7HV5.js} +4 -4
  26. package/dist/{chunk-2BY7C6Y7.js.map → chunk-AOUR7HV5.js.map} +1 -1
  27. package/dist/{chunk-CNIM7N4E.cjs → chunk-DM46TJNZ.cjs} +17 -17
  28. package/dist/{chunk-CNIM7N4E.cjs.map → chunk-DM46TJNZ.cjs.map} +1 -1
  29. package/dist/{chunk-YYKN3NDZ.cjs → chunk-DQNIWOM3.cjs} +54 -54
  30. package/dist/{chunk-YYKN3NDZ.cjs.map → chunk-DQNIWOM3.cjs.map} +1 -1
  31. package/dist/{chunk-X5JTTWMF.cjs → chunk-FTV3ZCSR.cjs} +9 -9
  32. package/dist/{chunk-X5JTTWMF.cjs.map → chunk-FTV3ZCSR.cjs.map} +1 -1
  33. package/dist/{chunk-6VB52TJV.js → chunk-GLA7XHTK.js} +3 -3
  34. package/dist/{chunk-6VB52TJV.js.map → chunk-GLA7XHTK.js.map} +1 -1
  35. package/dist/{chunk-PPAIPZ6C.js → chunk-GWZTWJLK.js} +6 -45
  36. package/dist/chunk-GWZTWJLK.js.map +1 -0
  37. package/dist/{chunk-YPYLWTZI.cjs → chunk-KPKDAZ5I.cjs} +18 -58
  38. package/dist/chunk-KPKDAZ5I.cjs.map +1 -0
  39. package/dist/chunk-LQJJBWFH.cjs +130 -0
  40. package/dist/chunk-LQJJBWFH.cjs.map +1 -0
  41. package/dist/{chunk-4YYPQOP7.cjs → chunk-MIRRWDFC.cjs} +4 -4
  42. package/dist/{chunk-4YYPQOP7.cjs.map → chunk-MIRRWDFC.cjs.map} +1 -1
  43. package/dist/{chunk-2YE6RNCZ.cjs → chunk-P67ES4L4.cjs} +4 -4
  44. package/dist/{chunk-2YE6RNCZ.cjs.map → chunk-P67ES4L4.cjs.map} +1 -1
  45. package/dist/{chunk-RLYWCJQ6.js → chunk-PTN7GTBG.js} +3 -3
  46. package/dist/{chunk-RLYWCJQ6.js.map → chunk-PTN7GTBG.js.map} +1 -1
  47. package/dist/{chunk-2YN6HGEH.js → chunk-PVUCLWGL.js} +3 -3
  48. package/dist/{chunk-2YN6HGEH.js.map → chunk-PVUCLWGL.js.map} +1 -1
  49. package/dist/{chunk-DSUKMFZY.js → chunk-QCZOYIZC.js} +92 -111
  50. package/dist/chunk-QCZOYIZC.js.map +1 -0
  51. package/dist/{chunk-DISETAP2.cjs → chunk-RLAYS3PT.cjs} +4 -4
  52. package/dist/{chunk-DISETAP2.cjs.map → chunk-RLAYS3PT.cjs.map} +1 -1
  53. package/dist/{chunk-Z6ZIJYKK.js → chunk-RR7QPRXN.js} +4 -4
  54. package/dist/{chunk-Z6ZIJYKK.js.map → chunk-RR7QPRXN.js.map} +1 -1
  55. package/dist/{chunk-RQPGIUUA.cjs → chunk-SJQ6OUHB.cjs} +6 -6
  56. package/dist/{chunk-RQPGIUUA.cjs.map → chunk-SJQ6OUHB.cjs.map} +1 -1
  57. package/dist/{chunk-3IDFSGG3.cjs → chunk-SQ4FHFMU.cjs} +4 -4
  58. package/dist/{chunk-3IDFSGG3.cjs.map → chunk-SQ4FHFMU.cjs.map} +1 -1
  59. package/dist/chunk-UG3C67I3.js +124 -0
  60. package/dist/chunk-UG3C67I3.js.map +1 -0
  61. package/dist/{chunk-5PSD3IKG.cjs → chunk-UK4QLV4O.cjs} +92 -111
  62. package/dist/chunk-UK4QLV4O.cjs.map +1 -0
  63. package/dist/{chunk-ICICKWAG.cjs → chunk-WHW7ZQCM.cjs} +6 -6
  64. package/dist/{chunk-ICICKWAG.cjs.map → chunk-WHW7ZQCM.cjs.map} +1 -1
  65. package/dist/{chunk-GIK7MM2K.js → chunk-YWK4OFUM.js} +3 -3
  66. package/dist/{chunk-GIK7MM2K.js.map → chunk-YWK4OFUM.js.map} +1 -1
  67. package/dist/{chunk-Y2BH2LUD.js → chunk-Z3PIE2HC.js} +10 -10
  68. package/dist/{chunk-Y2BH2LUD.js.map → chunk-Z3PIE2HC.js.map} +1 -1
  69. package/dist/{chunk-RWPKCFZT.cjs → chunk-ZXVDL4TQ.cjs} +4 -4
  70. package/dist/{chunk-RWPKCFZT.cjs.map → chunk-ZXVDL4TQ.cjs.map} +1 -1
  71. package/dist/index.cjs +73 -73
  72. package/dist/index.js +11 -11
  73. package/dist/loop/index.cjs +2 -2
  74. package/dist/loop/index.js +1 -1
  75. package/dist/loop/workflows/agentic-execution/index.d.ts +24 -24
  76. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +16 -16
  77. package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +8 -8
  78. package/dist/loop/workflows/agentic-loop/index.d.ts +24 -24
  79. package/dist/loop/workflows/schema.d.ts +8 -8
  80. package/dist/mastra/index.cjs +2 -2
  81. package/dist/mastra/index.js +1 -1
  82. package/dist/memory/index.cjs +4 -4
  83. package/dist/memory/index.js +1 -1
  84. package/dist/processors/index.cjs +11 -11
  85. package/dist/processors/index.js +1 -1
  86. package/dist/relevance/index.cjs +4 -4
  87. package/dist/relevance/index.js +1 -1
  88. package/dist/scores/index.cjs +9 -9
  89. package/dist/scores/index.js +2 -2
  90. package/dist/scores/scoreTraces/index.cjs +8 -8
  91. package/dist/scores/scoreTraces/index.js +3 -3
  92. package/dist/server/index.cjs +2 -2
  93. package/dist/server/index.js +1 -1
  94. package/dist/storage/index.cjs +3 -3
  95. package/dist/storage/index.js +1 -1
  96. package/dist/stream/index.cjs +11 -11
  97. package/dist/stream/index.js +2 -2
  98. package/dist/telemetry/index.cjs +7 -7
  99. package/dist/telemetry/index.js +1 -1
  100. package/dist/telemetry/telemetry.d.ts.map +1 -1
  101. package/dist/telemetry/telemetry.decorators.d.ts.map +1 -1
  102. package/dist/test-utils/llm-mock.cjs +2 -2
  103. package/dist/test-utils/llm-mock.js +1 -1
  104. package/dist/tts/index.cjs +2 -2
  105. package/dist/tts/index.js +1 -1
  106. package/dist/utils.cjs +22 -22
  107. package/dist/utils.js +1 -1
  108. package/dist/voice/index.cjs +6 -6
  109. package/dist/voice/index.js +1 -1
  110. package/dist/workflows/evented/index.cjs +10 -10
  111. package/dist/workflows/evented/index.js +1 -1
  112. package/dist/workflows/index.cjs +17 -17
  113. package/dist/workflows/index.js +1 -1
  114. package/dist/workflows/legacy/index.cjs +22 -22
  115. package/dist/workflows/legacy/index.js +1 -1
  116. package/dist/workflows/legacy/machine.d.ts +1 -1
  117. package/package.json +3 -3
  118. package/dist/chunk-5PSD3IKG.cjs.map +0 -1
  119. package/dist/chunk-DSUKMFZY.js.map +0 -1
  120. package/dist/chunk-PPAIPZ6C.js.map +0 -1
  121. package/dist/chunk-YPYLWTZI.cjs.map +0 -1
@@ -58,6 +58,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
58
58
  }>;
59
59
  steps: import("zod").ZodArray<import("zod").ZodAny, "many">;
60
60
  }, "strip", import("zod").ZodTypeAny, {
61
+ steps: any[];
61
62
  usage: {
62
63
  inputTokens: number;
63
64
  outputTokens: number;
@@ -65,7 +66,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
65
66
  reasoningTokens?: number | undefined;
66
67
  cachedInputTokens?: number | undefined;
67
68
  };
68
- steps: any[];
69
69
  text?: string | undefined;
70
70
  reasoning?: any[] | undefined;
71
71
  sources?: any[] | undefined;
@@ -78,6 +78,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
78
78
  staticToolResults?: any[] | undefined;
79
79
  dynamicToolResults?: any[] | undefined;
80
80
  }, {
81
+ steps: any[];
81
82
  usage: {
82
83
  inputTokens: number;
83
84
  outputTokens: number;
@@ -85,7 +86,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
85
86
  reasoningTokens?: number | undefined;
86
87
  cachedInputTokens?: number | undefined;
87
88
  };
88
- steps: any[];
89
89
  text?: string | undefined;
90
90
  reasoning?: any[] | undefined;
91
91
  sources?: any[] | undefined;
@@ -120,8 +120,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
120
120
  headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
121
121
  request: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
122
122
  }, "strip", import("zod").ZodTypeAny, {
123
- id?: string | undefined;
124
123
  providerMetadata?: Record<string, any> | undefined;
124
+ id?: string | undefined;
125
125
  headers?: Record<string, string> | undefined;
126
126
  model?: string | undefined;
127
127
  request?: Record<string, any> | undefined;
@@ -133,8 +133,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
133
133
  modelProvider: string;
134
134
  } | undefined;
135
135
  }, {
136
- id?: string | undefined;
137
136
  providerMetadata?: Record<string, any> | undefined;
137
+ id?: string | undefined;
138
138
  headers?: Record<string, string> | undefined;
139
139
  model?: string | undefined;
140
140
  request?: Record<string, any> | undefined;
@@ -206,6 +206,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
206
206
  }>;
207
207
  }, "strip", import("zod").ZodTypeAny, {
208
208
  output: {
209
+ steps: any[];
209
210
  usage: {
210
211
  inputTokens: number;
211
212
  outputTokens: number;
@@ -213,7 +214,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
213
214
  reasoningTokens?: number | undefined;
214
215
  cachedInputTokens?: number | undefined;
215
216
  };
216
- steps: any[];
217
217
  text?: string | undefined;
218
218
  reasoning?: any[] | undefined;
219
219
  sources?: any[] | undefined;
@@ -228,8 +228,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
228
228
  };
229
229
  messageId: string;
230
230
  metadata: {
231
- id?: string | undefined;
232
231
  providerMetadata?: Record<string, any> | undefined;
232
+ id?: string | undefined;
233
233
  headers?: Record<string, string> | undefined;
234
234
  model?: string | undefined;
235
235
  request?: Record<string, any> | undefined;
@@ -264,6 +264,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
264
264
  };
265
265
  }, {
266
266
  output: {
267
+ steps: any[];
267
268
  usage: {
268
269
  inputTokens: number;
269
270
  outputTokens: number;
@@ -271,7 +272,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
271
272
  reasoningTokens?: number | undefined;
272
273
  cachedInputTokens?: number | undefined;
273
274
  };
274
- steps: any[];
275
275
  text?: string | undefined;
276
276
  reasoning?: any[] | undefined;
277
277
  sources?: any[] | undefined;
@@ -286,8 +286,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
286
286
  };
287
287
  messageId: string;
288
288
  metadata: {
289
- id?: string | undefined;
290
289
  providerMetadata?: Record<string, any> | undefined;
290
+ id?: string | undefined;
291
291
  headers?: Record<string, string> | undefined;
292
292
  model?: string | undefined;
293
293
  request?: Record<string, any> | undefined;
@@ -368,6 +368,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
368
368
  }>;
369
369
  steps: import("zod").ZodArray<import("zod").ZodAny, "many">;
370
370
  }, "strip", import("zod").ZodTypeAny, {
371
+ steps: any[];
371
372
  usage: {
372
373
  inputTokens: number;
373
374
  outputTokens: number;
@@ -375,7 +376,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
375
376
  reasoningTokens?: number | undefined;
376
377
  cachedInputTokens?: number | undefined;
377
378
  };
378
- steps: any[];
379
379
  text?: string | undefined;
380
380
  reasoning?: any[] | undefined;
381
381
  sources?: any[] | undefined;
@@ -388,6 +388,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
388
388
  staticToolResults?: any[] | undefined;
389
389
  dynamicToolResults?: any[] | undefined;
390
390
  }, {
391
+ steps: any[];
391
392
  usage: {
392
393
  inputTokens: number;
393
394
  outputTokens: number;
@@ -395,7 +396,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
395
396
  reasoningTokens?: number | undefined;
396
397
  cachedInputTokens?: number | undefined;
397
398
  };
398
- steps: any[];
399
399
  text?: string | undefined;
400
400
  reasoning?: any[] | undefined;
401
401
  sources?: any[] | undefined;
@@ -430,8 +430,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
430
430
  headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
431
431
  request: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
432
432
  }, "strip", import("zod").ZodTypeAny, {
433
- id?: string | undefined;
434
433
  providerMetadata?: Record<string, any> | undefined;
434
+ id?: string | undefined;
435
435
  headers?: Record<string, string> | undefined;
436
436
  model?: string | undefined;
437
437
  request?: Record<string, any> | undefined;
@@ -443,8 +443,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
443
443
  modelProvider: string;
444
444
  } | undefined;
445
445
  }, {
446
- id?: string | undefined;
447
446
  providerMetadata?: Record<string, any> | undefined;
447
+ id?: string | undefined;
448
448
  headers?: Record<string, string> | undefined;
449
449
  model?: string | undefined;
450
450
  request?: Record<string, any> | undefined;
@@ -516,6 +516,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
516
516
  }>;
517
517
  }, "strip", import("zod").ZodTypeAny, {
518
518
  output: {
519
+ steps: any[];
519
520
  usage: {
520
521
  inputTokens: number;
521
522
  outputTokens: number;
@@ -523,7 +524,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
523
524
  reasoningTokens?: number | undefined;
524
525
  cachedInputTokens?: number | undefined;
525
526
  };
526
- steps: any[];
527
527
  text?: string | undefined;
528
528
  reasoning?: any[] | undefined;
529
529
  sources?: any[] | undefined;
@@ -538,8 +538,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
538
538
  };
539
539
  messageId: string;
540
540
  metadata: {
541
- id?: string | undefined;
542
541
  providerMetadata?: Record<string, any> | undefined;
542
+ id?: string | undefined;
543
543
  headers?: Record<string, string> | undefined;
544
544
  model?: string | undefined;
545
545
  request?: Record<string, any> | undefined;
@@ -574,6 +574,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
574
574
  };
575
575
  }, {
576
576
  output: {
577
+ steps: any[];
577
578
  usage: {
578
579
  inputTokens: number;
579
580
  outputTokens: number;
@@ -581,7 +582,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
581
582
  reasoningTokens?: number | undefined;
582
583
  cachedInputTokens?: number | undefined;
583
584
  };
584
- steps: any[];
585
585
  text?: string | undefined;
586
586
  reasoning?: any[] | undefined;
587
587
  sources?: any[] | undefined;
@@ -596,8 +596,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
596
596
  };
597
597
  messageId: string;
598
598
  metadata: {
599
- id?: string | undefined;
600
599
  providerMetadata?: Record<string, any> | undefined;
600
+ id?: string | undefined;
601
601
  headers?: Record<string, string> | undefined;
602
602
  model?: string | undefined;
603
603
  request?: Record<string, any> | undefined;
@@ -678,6 +678,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
678
678
  }>;
679
679
  steps: import("zod").ZodArray<import("zod").ZodAny, "many">;
680
680
  }, "strip", import("zod").ZodTypeAny, {
681
+ steps: any[];
681
682
  usage: {
682
683
  inputTokens: number;
683
684
  outputTokens: number;
@@ -685,7 +686,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
685
686
  reasoningTokens?: number | undefined;
686
687
  cachedInputTokens?: number | undefined;
687
688
  };
688
- steps: any[];
689
689
  text?: string | undefined;
690
690
  reasoning?: any[] | undefined;
691
691
  sources?: any[] | undefined;
@@ -698,6 +698,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
698
698
  staticToolResults?: any[] | undefined;
699
699
  dynamicToolResults?: any[] | undefined;
700
700
  }, {
701
+ steps: any[];
701
702
  usage: {
702
703
  inputTokens: number;
703
704
  outputTokens: number;
@@ -705,7 +706,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
705
706
  reasoningTokens?: number | undefined;
706
707
  cachedInputTokens?: number | undefined;
707
708
  };
708
- steps: any[];
709
709
  text?: string | undefined;
710
710
  reasoning?: any[] | undefined;
711
711
  sources?: any[] | undefined;
@@ -740,8 +740,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
740
740
  headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
741
741
  request: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
742
742
  }, "strip", import("zod").ZodTypeAny, {
743
- id?: string | undefined;
744
743
  providerMetadata?: Record<string, any> | undefined;
744
+ id?: string | undefined;
745
745
  headers?: Record<string, string> | undefined;
746
746
  model?: string | undefined;
747
747
  request?: Record<string, any> | undefined;
@@ -753,8 +753,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
753
753
  modelProvider: string;
754
754
  } | undefined;
755
755
  }, {
756
- id?: string | undefined;
757
756
  providerMetadata?: Record<string, any> | undefined;
757
+ id?: string | undefined;
758
758
  headers?: Record<string, string> | undefined;
759
759
  model?: string | undefined;
760
760
  request?: Record<string, any> | undefined;
@@ -826,6 +826,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
826
826
  }>;
827
827
  }, "strip", import("zod").ZodTypeAny, {
828
828
  output: {
829
+ steps: any[];
829
830
  usage: {
830
831
  inputTokens: number;
831
832
  outputTokens: number;
@@ -833,7 +834,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
833
834
  reasoningTokens?: number | undefined;
834
835
  cachedInputTokens?: number | undefined;
835
836
  };
836
- steps: any[];
837
837
  text?: string | undefined;
838
838
  reasoning?: any[] | undefined;
839
839
  sources?: any[] | undefined;
@@ -848,8 +848,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
848
848
  };
849
849
  messageId: string;
850
850
  metadata: {
851
- id?: string | undefined;
852
851
  providerMetadata?: Record<string, any> | undefined;
852
+ id?: string | undefined;
853
853
  headers?: Record<string, string> | undefined;
854
854
  model?: string | undefined;
855
855
  request?: Record<string, any> | undefined;
@@ -884,6 +884,7 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
884
884
  };
885
885
  }, {
886
886
  output: {
887
+ steps: any[];
887
888
  usage: {
888
889
  inputTokens: number;
889
890
  outputTokens: number;
@@ -891,7 +892,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
891
892
  reasoningTokens?: number | undefined;
892
893
  cachedInputTokens?: number | undefined;
893
894
  };
894
- steps: any[];
895
895
  text?: string | undefined;
896
896
  reasoning?: any[] | undefined;
897
897
  sources?: any[] | undefined;
@@ -906,8 +906,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
906
906
  };
907
907
  messageId: string;
908
908
  metadata: {
909
- id?: string | undefined;
910
909
  providerMetadata?: Record<string, any> | undefined;
910
+ id?: string | undefined;
911
911
  headers?: Record<string, string> | undefined;
912
912
  model?: string | undefined;
913
913
  request?: Record<string, any> | undefined;
@@ -162,6 +162,7 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
162
162
  }>;
163
163
  steps: z.ZodArray<z.ZodAny, "many">;
164
164
  }, "strip", z.ZodTypeAny, {
165
+ steps: any[];
165
166
  usage: {
166
167
  inputTokens: number;
167
168
  outputTokens: number;
@@ -169,7 +170,6 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
169
170
  reasoningTokens?: number | undefined;
170
171
  cachedInputTokens?: number | undefined;
171
172
  };
172
- steps: any[];
173
173
  text?: string | undefined;
174
174
  reasoning?: any[] | undefined;
175
175
  sources?: any[] | undefined;
@@ -182,6 +182,7 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
182
182
  staticToolResults?: any[] | undefined;
183
183
  dynamicToolResults?: any[] | undefined;
184
184
  }, {
185
+ steps: any[];
185
186
  usage: {
186
187
  inputTokens: number;
187
188
  outputTokens: number;
@@ -189,7 +190,6 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
189
190
  reasoningTokens?: number | undefined;
190
191
  cachedInputTokens?: number | undefined;
191
192
  };
192
- steps: any[];
193
193
  text?: string | undefined;
194
194
  reasoning?: any[] | undefined;
195
195
  sources?: any[] | undefined;
@@ -224,8 +224,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
224
224
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
225
225
  request: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
226
226
  }, "strip", z.ZodTypeAny, {
227
- id?: string | undefined;
228
227
  providerMetadata?: Record<string, any> | undefined;
228
+ id?: string | undefined;
229
229
  headers?: Record<string, string> | undefined;
230
230
  model?: string | undefined;
231
231
  request?: Record<string, any> | undefined;
@@ -237,8 +237,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
237
237
  modelProvider: string;
238
238
  } | undefined;
239
239
  }, {
240
- id?: string | undefined;
241
240
  providerMetadata?: Record<string, any> | undefined;
241
+ id?: string | undefined;
242
242
  headers?: Record<string, string> | undefined;
243
243
  model?: string | undefined;
244
244
  request?: Record<string, any> | undefined;
@@ -310,6 +310,7 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
310
310
  }>;
311
311
  }, "strip", z.ZodTypeAny, {
312
312
  output: {
313
+ steps: any[];
313
314
  usage: {
314
315
  inputTokens: number;
315
316
  outputTokens: number;
@@ -317,7 +318,6 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
317
318
  reasoningTokens?: number | undefined;
318
319
  cachedInputTokens?: number | undefined;
319
320
  };
320
- steps: any[];
321
321
  text?: string | undefined;
322
322
  reasoning?: any[] | undefined;
323
323
  sources?: any[] | undefined;
@@ -332,8 +332,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
332
332
  };
333
333
  messageId: string;
334
334
  metadata: {
335
- id?: string | undefined;
336
335
  providerMetadata?: Record<string, any> | undefined;
336
+ id?: string | undefined;
337
337
  headers?: Record<string, string> | undefined;
338
338
  model?: string | undefined;
339
339
  request?: Record<string, any> | undefined;
@@ -368,6 +368,7 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
368
368
  };
369
369
  }, {
370
370
  output: {
371
+ steps: any[];
371
372
  usage: {
372
373
  inputTokens: number;
373
374
  outputTokens: number;
@@ -375,7 +376,6 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
375
376
  reasoningTokens?: number | undefined;
376
377
  cachedInputTokens?: number | undefined;
377
378
  };
378
- steps: any[];
379
379
  text?: string | undefined;
380
380
  reasoning?: any[] | undefined;
381
381
  sources?: any[] | undefined;
@@ -390,8 +390,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
390
390
  };
391
391
  messageId: string;
392
392
  metadata: {
393
- id?: string | undefined;
394
393
  providerMetadata?: Record<string, any> | undefined;
394
+ id?: string | undefined;
395
395
  headers?: Record<string, string> | undefined;
396
396
  model?: string | undefined;
397
397
  request?: Record<string, any> | undefined;
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkCNIM7N4E_cjs = require('../chunk-CNIM7N4E.cjs');
3
+ var chunkDM46TJNZ_cjs = require('../chunk-DM46TJNZ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Mastra", {
8
8
  enumerable: true,
9
- get: function () { return chunkCNIM7N4E_cjs.Mastra; }
9
+ get: function () { return chunkDM46TJNZ_cjs.Mastra; }
10
10
  });
11
11
  //# sourceMappingURL=index.cjs.map
12
12
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { Mastra } from '../chunk-N6P5GJRO.js';
1
+ export { Mastra } from '../chunk-7XP3ZCBG.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var chunkICICKWAG_cjs = require('../chunk-ICICKWAG.cjs');
3
+ var chunkWHW7ZQCM_cjs = require('../chunk-WHW7ZQCM.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraMemory", {
8
8
  enumerable: true,
9
- get: function () { return chunkICICKWAG_cjs.MastraMemory; }
9
+ get: function () { return chunkWHW7ZQCM_cjs.MastraMemory; }
10
10
  });
11
11
  Object.defineProperty(exports, "MemoryProcessor", {
12
12
  enumerable: true,
13
- get: function () { return chunkICICKWAG_cjs.MemoryProcessor; }
13
+ get: function () { return chunkWHW7ZQCM_cjs.MemoryProcessor; }
14
14
  });
15
15
  Object.defineProperty(exports, "memoryDefaultOptions", {
16
16
  enumerable: true,
17
- get: function () { return chunkICICKWAG_cjs.memoryDefaultOptions; }
17
+ get: function () { return chunkWHW7ZQCM_cjs.memoryDefaultOptions; }
18
18
  });
19
19
  //# sourceMappingURL=index.cjs.map
20
20
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-Z6ZIJYKK.js';
1
+ export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-RR7QPRXN.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,48 +1,48 @@
1
1
  'use strict';
2
2
 
3
- var chunkYYKN3NDZ_cjs = require('../chunk-YYKN3NDZ.cjs');
3
+ var chunkDQNIWOM3_cjs = require('../chunk-DQNIWOM3.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "BatchPartsProcessor", {
8
8
  enumerable: true,
9
- get: function () { return chunkYYKN3NDZ_cjs.BatchPartsProcessor; }
9
+ get: function () { return chunkDQNIWOM3_cjs.BatchPartsProcessor; }
10
10
  });
11
11
  Object.defineProperty(exports, "LanguageDetector", {
12
12
  enumerable: true,
13
- get: function () { return chunkYYKN3NDZ_cjs.LanguageDetector; }
13
+ get: function () { return chunkDQNIWOM3_cjs.LanguageDetector; }
14
14
  });
15
15
  Object.defineProperty(exports, "ModerationProcessor", {
16
16
  enumerable: true,
17
- get: function () { return chunkYYKN3NDZ_cjs.ModerationProcessor; }
17
+ get: function () { return chunkDQNIWOM3_cjs.ModerationProcessor; }
18
18
  });
19
19
  Object.defineProperty(exports, "PIIDetector", {
20
20
  enumerable: true,
21
- get: function () { return chunkYYKN3NDZ_cjs.PIIDetector; }
21
+ get: function () { return chunkDQNIWOM3_cjs.PIIDetector; }
22
22
  });
23
23
  Object.defineProperty(exports, "ProcessorState", {
24
24
  enumerable: true,
25
- get: function () { return chunkYYKN3NDZ_cjs.ProcessorState; }
25
+ get: function () { return chunkDQNIWOM3_cjs.ProcessorState; }
26
26
  });
27
27
  Object.defineProperty(exports, "PromptInjectionDetector", {
28
28
  enumerable: true,
29
- get: function () { return chunkYYKN3NDZ_cjs.PromptInjectionDetector; }
29
+ get: function () { return chunkDQNIWOM3_cjs.PromptInjectionDetector; }
30
30
  });
31
31
  Object.defineProperty(exports, "StructuredOutputProcessor", {
32
32
  enumerable: true,
33
- get: function () { return chunkYYKN3NDZ_cjs.StructuredOutputProcessor; }
33
+ get: function () { return chunkDQNIWOM3_cjs.StructuredOutputProcessor; }
34
34
  });
35
35
  Object.defineProperty(exports, "SystemPromptScrubber", {
36
36
  enumerable: true,
37
- get: function () { return chunkYYKN3NDZ_cjs.SystemPromptScrubber; }
37
+ get: function () { return chunkDQNIWOM3_cjs.SystemPromptScrubber; }
38
38
  });
39
39
  Object.defineProperty(exports, "TokenLimiterProcessor", {
40
40
  enumerable: true,
41
- get: function () { return chunkYYKN3NDZ_cjs.TokenLimiterProcessor; }
41
+ get: function () { return chunkDQNIWOM3_cjs.TokenLimiterProcessor; }
42
42
  });
43
43
  Object.defineProperty(exports, "UnicodeNormalizer", {
44
44
  enumerable: true,
45
- get: function () { return chunkYYKN3NDZ_cjs.UnicodeNormalizer; }
45
+ get: function () { return chunkDQNIWOM3_cjs.UnicodeNormalizer; }
46
46
  });
47
47
  //# sourceMappingURL=index.cjs.map
48
48
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { BatchPartsProcessor, LanguageDetector, ModerationProcessor, PIIDetector, ProcessorState, PromptInjectionDetector, StructuredOutputProcessor, SystemPromptScrubber, TokenLimiterProcessor, UnicodeNormalizer } from '../chunk-Y2BH2LUD.js';
1
+ export { BatchPartsProcessor, LanguageDetector, ModerationProcessor, PIIDetector, ProcessorState, PromptInjectionDetector, StructuredOutputProcessor, SystemPromptScrubber, TokenLimiterProcessor, UnicodeNormalizer } from '../chunk-Z3PIE2HC.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var chunk2YE6RNCZ_cjs = require('../chunk-2YE6RNCZ.cjs');
3
+ var chunkP67ES4L4_cjs = require('../chunk-P67ES4L4.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CohereRelevanceScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunk2YE6RNCZ_cjs.CohereRelevanceScorer; }
9
+ get: function () { return chunkP67ES4L4_cjs.CohereRelevanceScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
12
12
  enumerable: true,
13
- get: function () { return chunk2YE6RNCZ_cjs.MastraAgentRelevanceScorer; }
13
+ get: function () { return chunkP67ES4L4_cjs.MastraAgentRelevanceScorer; }
14
14
  });
15
15
  Object.defineProperty(exports, "createSimilarityPrompt", {
16
16
  enumerable: true,
17
- get: function () { return chunk2YE6RNCZ_cjs.createSimilarityPrompt; }
17
+ get: function () { return chunkP67ES4L4_cjs.createSimilarityPrompt; }
18
18
  });
19
19
  //# sourceMappingURL=index.cjs.map
20
20
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-E5NCEJEJ.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-6ZBXSCZR.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,37 +1,37 @@
1
1
  'use strict';
2
2
 
3
- var chunkX5JTTWMF_cjs = require('../chunk-X5JTTWMF.cjs');
4
- var chunkRWPKCFZT_cjs = require('../chunk-RWPKCFZT.cjs');
3
+ var chunkFTV3ZCSR_cjs = require('../chunk-FTV3ZCSR.cjs');
4
+ var chunkZXVDL4TQ_cjs = require('../chunk-ZXVDL4TQ.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "MastraScorer", {
9
9
  enumerable: true,
10
- get: function () { return chunkX5JTTWMF_cjs.MastraScorer; }
10
+ get: function () { return chunkFTV3ZCSR_cjs.MastraScorer; }
11
11
  });
12
12
  Object.defineProperty(exports, "createScorer", {
13
13
  enumerable: true,
14
- get: function () { return chunkX5JTTWMF_cjs.createScorer; }
14
+ get: function () { return chunkFTV3ZCSR_cjs.createScorer; }
15
15
  });
16
16
  Object.defineProperty(exports, "runExperiment", {
17
17
  enumerable: true,
18
- get: function () { return chunkX5JTTWMF_cjs.runExperiment; }
18
+ get: function () { return chunkFTV3ZCSR_cjs.runExperiment; }
19
19
  });
20
20
  Object.defineProperty(exports, "saveScorePayloadSchema", {
21
21
  enumerable: true,
22
- get: function () { return chunkRWPKCFZT_cjs.saveScorePayloadSchema; }
22
+ get: function () { return chunkZXVDL4TQ_cjs.saveScorePayloadSchema; }
23
23
  });
24
24
  Object.defineProperty(exports, "scoreResultSchema", {
25
25
  enumerable: true,
26
- get: function () { return chunkRWPKCFZT_cjs.scoreResultSchema; }
26
+ get: function () { return chunkZXVDL4TQ_cjs.scoreResultSchema; }
27
27
  });
28
28
  Object.defineProperty(exports, "scoringExtractStepResultSchema", {
29
29
  enumerable: true,
30
- get: function () { return chunkRWPKCFZT_cjs.scoringExtractStepResultSchema; }
30
+ get: function () { return chunkZXVDL4TQ_cjs.scoringExtractStepResultSchema; }
31
31
  });
32
32
  Object.defineProperty(exports, "scoringValueSchema", {
33
33
  enumerable: true,
34
- get: function () { return chunkRWPKCFZT_cjs.scoringValueSchema; }
34
+ get: function () { return chunkZXVDL4TQ_cjs.scoringValueSchema; }
35
35
  });
36
36
  //# sourceMappingURL=index.cjs.map
37
37
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- export { MastraScorer, createScorer, runExperiment } from '../chunk-2YN6HGEH.js';
2
- export { saveScorePayloadSchema, scoreResultSchema, scoringExtractStepResultSchema, scoringValueSchema } from '../chunk-RLYWCJQ6.js';
1
+ export { MastraScorer, createScorer, runExperiment } from '../chunk-PVUCLWGL.js';
2
+ export { saveScorePayloadSchema, scoreResultSchema, scoringExtractStepResultSchema, scoringValueSchema } from '../chunk-PTN7GTBG.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkFQTJPLCW_cjs = require('../../chunk-FQTJPLCW.cjs');
4
- var chunkRWPKCFZT_cjs = require('../../chunk-RWPKCFZT.cjs');
5
- var chunk4YYPQOP7_cjs = require('../../chunk-4YYPQOP7.cjs');
3
+ var chunk2L6LTY2M_cjs = require('../../chunk-2L6LTY2M.cjs');
4
+ var chunkZXVDL4TQ_cjs = require('../../chunk-ZXVDL4TQ.cjs');
5
+ var chunkMIRRWDFC_cjs = require('../../chunk-MIRRWDFC.cjs');
6
6
  var chunk5NTO7S5I_cjs = require('../../chunk-5NTO7S5I.cjs');
7
7
  var pMap = require('p-map');
8
8
  var z = require('zod');
@@ -76,7 +76,7 @@ function normalizeMessageContent(content) {
76
76
  role: "user",
77
77
  parts: content.map((part) => ({ type: part.type, text: part.text }))
78
78
  };
79
- const converted = chunk4YYPQOP7_cjs.convertMessages(tempMessage).to("AIV4.UI");
79
+ const converted = chunkMIRRWDFC_cjs.convertMessages(tempMessage).to("AIV4.UI");
80
80
  return converted[0]?.content || "";
81
81
  }
82
82
  function convertToUIMessage(message, createdAt) {
@@ -94,7 +94,7 @@ function convertToUIMessage(message, createdAt) {
94
94
  parts: message.content.map((part) => ({ type: part.type, text: part.text }))
95
95
  };
96
96
  }
97
- const converted = chunk4YYPQOP7_cjs.convertMessages(messageInput).to("AIV4.UI");
97
+ const converted = chunkMIRRWDFC_cjs.convertMessages(messageInput).to("AIV4.UI");
98
98
  const result = converted[0];
99
99
  if (!result) {
100
100
  throw new Error("Failed to convert message");
@@ -234,7 +234,7 @@ function transformTraceToScorerInputAndOutput(trace) {
234
234
  }
235
235
 
236
236
  // src/scores/scoreTraces/scoreTracesWorkflow.ts
237
- var getTraceStep = chunkFQTJPLCW_cjs.createStep({
237
+ var getTraceStep = chunk2L6LTY2M_cjs.createStep({
238
238
  id: "__process-trace-scoring",
239
239
  inputSchema: z__default.default.object({
240
240
  targets: z__default.default.array(
@@ -362,7 +362,7 @@ async function runScorerOnTarget({
362
362
  await attachScoreToSpan({ storage, span, scoreRecord: savedScoreRecord });
363
363
  }
364
364
  async function validateAndSaveScore({ storage, scorerResult }) {
365
- const payloadToSave = chunkRWPKCFZT_cjs.saveScorePayloadSchema.parse(scorerResult);
365
+ const payloadToSave = chunkZXVDL4TQ_cjs.saveScorePayloadSchema.parse(scorerResult);
366
366
  const result = await storage.saveScore(payloadToSave);
367
367
  return result.score;
368
368
  }
@@ -404,7 +404,7 @@ async function attachScoreToSpan({
404
404
  updates: { links: [...existingLinks, link] }
405
405
  });
406
406
  }
407
- var scoreTracesWorkflow = chunkFQTJPLCW_cjs.createWorkflow({
407
+ var scoreTracesWorkflow = chunk2L6LTY2M_cjs.createWorkflow({
408
408
  id: "__batch-scoring-traces",
409
409
  inputSchema: z__default.default.object({
410
410
  targets: z__default.default.array(