@mastra/core 0.24.9-alpha.0 → 0.24.9

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 (105) hide show
  1. package/CHANGELOG.md +8 -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 +41 -41
  7. package/dist/ai-tracing/index.js +2 -2
  8. package/dist/ai-tracing/serialization.d.ts.map +1 -1
  9. package/dist/{chunk-3N7RP3UB.js → chunk-2BIQL3SK.js} +3 -3
  10. package/dist/{chunk-3N7RP3UB.js.map → chunk-2BIQL3SK.js.map} +1 -1
  11. package/dist/{chunk-LQJJBWFH.cjs → chunk-3L3ISSMS.cjs} +9 -9
  12. package/dist/chunk-3L3ISSMS.cjs.map +1 -0
  13. package/dist/{chunk-6ZBXSCZR.js → chunk-4DWBTEHS.js} +3 -3
  14. package/dist/{chunk-6ZBXSCZR.js.map → chunk-4DWBTEHS.js.map} +1 -1
  15. package/dist/{chunk-RR7QPRXN.js → chunk-5BMYOHKM.js} +4 -4
  16. package/dist/{chunk-RR7QPRXN.js.map → chunk-5BMYOHKM.js.map} +1 -1
  17. package/dist/{chunk-AOUR7HV5.js → chunk-5KSHWBRH.js} +4 -4
  18. package/dist/{chunk-AOUR7HV5.js.map → chunk-5KSHWBRH.js.map} +1 -1
  19. package/dist/{chunk-QCZOYIZC.js → chunk-5S5X3QPR.js} +3 -3
  20. package/dist/{chunk-QCZOYIZC.js.map → chunk-5S5X3QPR.js.map} +1 -1
  21. package/dist/{chunk-UK4QLV4O.cjs → chunk-7GUQ2EQ4.cjs} +9 -9
  22. package/dist/{chunk-UK4QLV4O.cjs.map → chunk-7GUQ2EQ4.cjs.map} +1 -1
  23. package/dist/{chunk-GWZTWJLK.js → chunk-BBE22VBK.js} +5 -5
  24. package/dist/{chunk-GWZTWJLK.js.map → chunk-BBE22VBK.js.map} +1 -1
  25. package/dist/{chunk-P67ES4L4.cjs → chunk-CSHVFDF6.cjs} +4 -4
  26. package/dist/{chunk-P67ES4L4.cjs.map → chunk-CSHVFDF6.cjs.map} +1 -1
  27. package/dist/{chunk-FTV3ZCSR.cjs → chunk-DGL7I4HZ.cjs} +9 -9
  28. package/dist/{chunk-FTV3ZCSR.cjs.map → chunk-DGL7I4HZ.cjs.map} +1 -1
  29. package/dist/{chunk-SQ4FHFMU.cjs → chunk-EHTC7VYS.cjs} +4 -4
  30. package/dist/{chunk-SQ4FHFMU.cjs.map → chunk-EHTC7VYS.cjs.map} +1 -1
  31. package/dist/{chunk-PTN7GTBG.js → chunk-EMTBCXQQ.js} +3 -3
  32. package/dist/{chunk-PTN7GTBG.js.map → chunk-EMTBCXQQ.js.map} +1 -1
  33. package/dist/{chunk-6KCZMULD.js → chunk-GEHKQTB2.js} +3 -3
  34. package/dist/{chunk-6KCZMULD.js.map → chunk-GEHKQTB2.js.map} +1 -1
  35. package/dist/{chunk-Z3PIE2HC.js → chunk-GSQD3QNR.js} +10 -10
  36. package/dist/{chunk-Z3PIE2HC.js.map → chunk-GSQD3QNR.js.map} +1 -1
  37. package/dist/{chunk-PVUCLWGL.js → chunk-HHPXFPNO.js} +3 -3
  38. package/dist/{chunk-PVUCLWGL.js.map → chunk-HHPXFPNO.js.map} +1 -1
  39. package/dist/{chunk-DM46TJNZ.cjs → chunk-MSFEDB5Z.cjs} +17 -17
  40. package/dist/{chunk-DM46TJNZ.cjs.map → chunk-MSFEDB5Z.cjs.map} +1 -1
  41. package/dist/{chunk-YWK4OFUM.js → chunk-NFJJ6B6P.js} +3 -3
  42. package/dist/{chunk-YWK4OFUM.js.map → chunk-NFJJ6B6P.js.map} +1 -1
  43. package/dist/{chunk-UG3C67I3.js → chunk-PA6Z5V6U.js} +9 -9
  44. package/dist/chunk-PA6Z5V6U.js.map +1 -0
  45. package/dist/{chunk-RLAYS3PT.cjs → chunk-PAW64WWA.cjs} +4 -4
  46. package/dist/{chunk-RLAYS3PT.cjs.map → chunk-PAW64WWA.cjs.map} +1 -1
  47. package/dist/{chunk-WHW7ZQCM.cjs → chunk-QETEFQ7T.cjs} +6 -6
  48. package/dist/{chunk-WHW7ZQCM.cjs.map → chunk-QETEFQ7T.cjs.map} +1 -1
  49. package/dist/{chunk-KPKDAZ5I.cjs → chunk-QGJF6TRY.cjs} +18 -18
  50. package/dist/{chunk-KPKDAZ5I.cjs.map → chunk-QGJF6TRY.cjs.map} +1 -1
  51. package/dist/{chunk-2L6LTY2M.cjs → chunk-QLPSR67Y.cjs} +15 -15
  52. package/dist/{chunk-2L6LTY2M.cjs.map → chunk-QLPSR67Y.cjs.map} +1 -1
  53. package/dist/{chunk-7XP3ZCBG.js → chunk-QQKRUSCB.js} +7 -7
  54. package/dist/{chunk-7XP3ZCBG.js.map → chunk-QQKRUSCB.js.map} +1 -1
  55. package/dist/{chunk-SJQ6OUHB.cjs → chunk-QWOKGSO2.cjs} +6 -6
  56. package/dist/{chunk-SJQ6OUHB.cjs.map → chunk-QWOKGSO2.cjs.map} +1 -1
  57. package/dist/{chunk-MIRRWDFC.cjs → chunk-RDD5YB3T.cjs} +4 -4
  58. package/dist/{chunk-MIRRWDFC.cjs.map → chunk-RDD5YB3T.cjs.map} +1 -1
  59. package/dist/{chunk-ZXVDL4TQ.cjs → chunk-W54LWXCG.cjs} +4 -4
  60. package/dist/{chunk-ZXVDL4TQ.cjs.map → chunk-W54LWXCG.cjs.map} +1 -1
  61. package/dist/{chunk-DQNIWOM3.cjs → chunk-ZWWHTQ72.cjs} +54 -54
  62. package/dist/{chunk-DQNIWOM3.cjs.map → chunk-ZWWHTQ72.cjs.map} +1 -1
  63. package/dist/{chunk-GLA7XHTK.js → chunk-ZZIYFEVM.js} +3 -3
  64. package/dist/{chunk-GLA7XHTK.js.map → chunk-ZZIYFEVM.js.map} +1 -1
  65. package/dist/index.cjs +73 -73
  66. package/dist/index.js +11 -11
  67. package/dist/loop/index.cjs +2 -2
  68. package/dist/loop/index.js +1 -1
  69. package/dist/mastra/index.cjs +2 -2
  70. package/dist/mastra/index.js +1 -1
  71. package/dist/memory/index.cjs +4 -4
  72. package/dist/memory/index.js +1 -1
  73. package/dist/processors/index.cjs +11 -11
  74. package/dist/processors/index.js +1 -1
  75. package/dist/relevance/index.cjs +4 -4
  76. package/dist/relevance/index.js +1 -1
  77. package/dist/scores/index.cjs +9 -9
  78. package/dist/scores/index.js +2 -2
  79. package/dist/scores/scoreTraces/index.cjs +8 -8
  80. package/dist/scores/scoreTraces/index.js +3 -3
  81. package/dist/server/index.cjs +2 -2
  82. package/dist/server/index.js +1 -1
  83. package/dist/storage/index.cjs +3 -3
  84. package/dist/storage/index.js +1 -1
  85. package/dist/stream/index.cjs +11 -11
  86. package/dist/stream/index.js +2 -2
  87. package/dist/telemetry/index.cjs +7 -7
  88. package/dist/telemetry/index.js +1 -1
  89. package/dist/test-utils/llm-mock.cjs +2 -2
  90. package/dist/test-utils/llm-mock.js +1 -1
  91. package/dist/tts/index.cjs +2 -2
  92. package/dist/tts/index.js +1 -1
  93. package/dist/utils.cjs +22 -22
  94. package/dist/utils.js +1 -1
  95. package/dist/voice/index.cjs +6 -6
  96. package/dist/voice/index.js +1 -1
  97. package/dist/workflows/evented/index.cjs +10 -10
  98. package/dist/workflows/evented/index.js +1 -1
  99. package/dist/workflows/index.cjs +17 -17
  100. package/dist/workflows/index.js +1 -1
  101. package/dist/workflows/legacy/index.cjs +22 -22
  102. package/dist/workflows/legacy/index.js +1 -1
  103. package/package.json +4 -4
  104. package/dist/chunk-LQJJBWFH.cjs.map +0 -1
  105. package/dist/chunk-UG3C67I3.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkDQNIWOM3_cjs = require('../chunk-DQNIWOM3.cjs');
3
+ var chunkZWWHTQ72_cjs = require('../chunk-ZWWHTQ72.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "loop", {
8
8
  enumerable: true,
9
- get: function () { return chunkDQNIWOM3_cjs.loop; }
9
+ get: function () { return chunkZWWHTQ72_cjs.loop; }
10
10
  });
11
11
  //# sourceMappingURL=index.cjs.map
12
12
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { loop } from '../chunk-Z3PIE2HC.js';
1
+ export { loop } from '../chunk-GSQD3QNR.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkDM46TJNZ_cjs = require('../chunk-DM46TJNZ.cjs');
3
+ var chunkMSFEDB5Z_cjs = require('../chunk-MSFEDB5Z.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Mastra", {
8
8
  enumerable: true,
9
- get: function () { return chunkDM46TJNZ_cjs.Mastra; }
9
+ get: function () { return chunkMSFEDB5Z_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-7XP3ZCBG.js';
1
+ export { Mastra } from '../chunk-QQKRUSCB.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 chunkWHW7ZQCM_cjs = require('../chunk-WHW7ZQCM.cjs');
3
+ var chunkQETEFQ7T_cjs = require('../chunk-QETEFQ7T.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraMemory", {
8
8
  enumerable: true,
9
- get: function () { return chunkWHW7ZQCM_cjs.MastraMemory; }
9
+ get: function () { return chunkQETEFQ7T_cjs.MastraMemory; }
10
10
  });
11
11
  Object.defineProperty(exports, "MemoryProcessor", {
12
12
  enumerable: true,
13
- get: function () { return chunkWHW7ZQCM_cjs.MemoryProcessor; }
13
+ get: function () { return chunkQETEFQ7T_cjs.MemoryProcessor; }
14
14
  });
15
15
  Object.defineProperty(exports, "memoryDefaultOptions", {
16
16
  enumerable: true,
17
- get: function () { return chunkWHW7ZQCM_cjs.memoryDefaultOptions; }
17
+ get: function () { return chunkQETEFQ7T_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-RR7QPRXN.js';
1
+ export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-5BMYOHKM.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 chunkDQNIWOM3_cjs = require('../chunk-DQNIWOM3.cjs');
3
+ var chunkZWWHTQ72_cjs = require('../chunk-ZWWHTQ72.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "BatchPartsProcessor", {
8
8
  enumerable: true,
9
- get: function () { return chunkDQNIWOM3_cjs.BatchPartsProcessor; }
9
+ get: function () { return chunkZWWHTQ72_cjs.BatchPartsProcessor; }
10
10
  });
11
11
  Object.defineProperty(exports, "LanguageDetector", {
12
12
  enumerable: true,
13
- get: function () { return chunkDQNIWOM3_cjs.LanguageDetector; }
13
+ get: function () { return chunkZWWHTQ72_cjs.LanguageDetector; }
14
14
  });
15
15
  Object.defineProperty(exports, "ModerationProcessor", {
16
16
  enumerable: true,
17
- get: function () { return chunkDQNIWOM3_cjs.ModerationProcessor; }
17
+ get: function () { return chunkZWWHTQ72_cjs.ModerationProcessor; }
18
18
  });
19
19
  Object.defineProperty(exports, "PIIDetector", {
20
20
  enumerable: true,
21
- get: function () { return chunkDQNIWOM3_cjs.PIIDetector; }
21
+ get: function () { return chunkZWWHTQ72_cjs.PIIDetector; }
22
22
  });
23
23
  Object.defineProperty(exports, "ProcessorState", {
24
24
  enumerable: true,
25
- get: function () { return chunkDQNIWOM3_cjs.ProcessorState; }
25
+ get: function () { return chunkZWWHTQ72_cjs.ProcessorState; }
26
26
  });
27
27
  Object.defineProperty(exports, "PromptInjectionDetector", {
28
28
  enumerable: true,
29
- get: function () { return chunkDQNIWOM3_cjs.PromptInjectionDetector; }
29
+ get: function () { return chunkZWWHTQ72_cjs.PromptInjectionDetector; }
30
30
  });
31
31
  Object.defineProperty(exports, "StructuredOutputProcessor", {
32
32
  enumerable: true,
33
- get: function () { return chunkDQNIWOM3_cjs.StructuredOutputProcessor; }
33
+ get: function () { return chunkZWWHTQ72_cjs.StructuredOutputProcessor; }
34
34
  });
35
35
  Object.defineProperty(exports, "SystemPromptScrubber", {
36
36
  enumerable: true,
37
- get: function () { return chunkDQNIWOM3_cjs.SystemPromptScrubber; }
37
+ get: function () { return chunkZWWHTQ72_cjs.SystemPromptScrubber; }
38
38
  });
39
39
  Object.defineProperty(exports, "TokenLimiterProcessor", {
40
40
  enumerable: true,
41
- get: function () { return chunkDQNIWOM3_cjs.TokenLimiterProcessor; }
41
+ get: function () { return chunkZWWHTQ72_cjs.TokenLimiterProcessor; }
42
42
  });
43
43
  Object.defineProperty(exports, "UnicodeNormalizer", {
44
44
  enumerable: true,
45
- get: function () { return chunkDQNIWOM3_cjs.UnicodeNormalizer; }
45
+ get: function () { return chunkZWWHTQ72_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-Z3PIE2HC.js';
1
+ export { BatchPartsProcessor, LanguageDetector, ModerationProcessor, PIIDetector, ProcessorState, PromptInjectionDetector, StructuredOutputProcessor, SystemPromptScrubber, TokenLimiterProcessor, UnicodeNormalizer } from '../chunk-GSQD3QNR.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 chunkP67ES4L4_cjs = require('../chunk-P67ES4L4.cjs');
3
+ var chunkCSHVFDF6_cjs = require('../chunk-CSHVFDF6.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CohereRelevanceScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunkP67ES4L4_cjs.CohereRelevanceScorer; }
9
+ get: function () { return chunkCSHVFDF6_cjs.CohereRelevanceScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
12
12
  enumerable: true,
13
- get: function () { return chunkP67ES4L4_cjs.MastraAgentRelevanceScorer; }
13
+ get: function () { return chunkCSHVFDF6_cjs.MastraAgentRelevanceScorer; }
14
14
  });
15
15
  Object.defineProperty(exports, "createSimilarityPrompt", {
16
16
  enumerable: true,
17
- get: function () { return chunkP67ES4L4_cjs.createSimilarityPrompt; }
17
+ get: function () { return chunkCSHVFDF6_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-6ZBXSCZR.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-4DWBTEHS.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 chunkFTV3ZCSR_cjs = require('../chunk-FTV3ZCSR.cjs');
4
- var chunkZXVDL4TQ_cjs = require('../chunk-ZXVDL4TQ.cjs');
3
+ var chunkDGL7I4HZ_cjs = require('../chunk-DGL7I4HZ.cjs');
4
+ var chunkW54LWXCG_cjs = require('../chunk-W54LWXCG.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "MastraScorer", {
9
9
  enumerable: true,
10
- get: function () { return chunkFTV3ZCSR_cjs.MastraScorer; }
10
+ get: function () { return chunkDGL7I4HZ_cjs.MastraScorer; }
11
11
  });
12
12
  Object.defineProperty(exports, "createScorer", {
13
13
  enumerable: true,
14
- get: function () { return chunkFTV3ZCSR_cjs.createScorer; }
14
+ get: function () { return chunkDGL7I4HZ_cjs.createScorer; }
15
15
  });
16
16
  Object.defineProperty(exports, "runExperiment", {
17
17
  enumerable: true,
18
- get: function () { return chunkFTV3ZCSR_cjs.runExperiment; }
18
+ get: function () { return chunkDGL7I4HZ_cjs.runExperiment; }
19
19
  });
20
20
  Object.defineProperty(exports, "saveScorePayloadSchema", {
21
21
  enumerable: true,
22
- get: function () { return chunkZXVDL4TQ_cjs.saveScorePayloadSchema; }
22
+ get: function () { return chunkW54LWXCG_cjs.saveScorePayloadSchema; }
23
23
  });
24
24
  Object.defineProperty(exports, "scoreResultSchema", {
25
25
  enumerable: true,
26
- get: function () { return chunkZXVDL4TQ_cjs.scoreResultSchema; }
26
+ get: function () { return chunkW54LWXCG_cjs.scoreResultSchema; }
27
27
  });
28
28
  Object.defineProperty(exports, "scoringExtractStepResultSchema", {
29
29
  enumerable: true,
30
- get: function () { return chunkZXVDL4TQ_cjs.scoringExtractStepResultSchema; }
30
+ get: function () { return chunkW54LWXCG_cjs.scoringExtractStepResultSchema; }
31
31
  });
32
32
  Object.defineProperty(exports, "scoringValueSchema", {
33
33
  enumerable: true,
34
- get: function () { return chunkZXVDL4TQ_cjs.scoringValueSchema; }
34
+ get: function () { return chunkW54LWXCG_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-PVUCLWGL.js';
2
- export { saveScorePayloadSchema, scoreResultSchema, scoringExtractStepResultSchema, scoringValueSchema } from '../chunk-PTN7GTBG.js';
1
+ export { MastraScorer, createScorer, runExperiment } from '../chunk-HHPXFPNO.js';
2
+ export { saveScorePayloadSchema, scoreResultSchema, scoringExtractStepResultSchema, scoringValueSchema } from '../chunk-EMTBCXQQ.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 chunk2L6LTY2M_cjs = require('../../chunk-2L6LTY2M.cjs');
4
- var chunkZXVDL4TQ_cjs = require('../../chunk-ZXVDL4TQ.cjs');
5
- var chunkMIRRWDFC_cjs = require('../../chunk-MIRRWDFC.cjs');
3
+ var chunkQLPSR67Y_cjs = require('../../chunk-QLPSR67Y.cjs');
4
+ var chunkW54LWXCG_cjs = require('../../chunk-W54LWXCG.cjs');
5
+ var chunkRDD5YB3T_cjs = require('../../chunk-RDD5YB3T.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 = chunkMIRRWDFC_cjs.convertMessages(tempMessage).to("AIV4.UI");
79
+ const converted = chunkRDD5YB3T_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 = chunkMIRRWDFC_cjs.convertMessages(messageInput).to("AIV4.UI");
97
+ const converted = chunkRDD5YB3T_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 = chunk2L6LTY2M_cjs.createStep({
237
+ var getTraceStep = chunkQLPSR67Y_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 = chunkZXVDL4TQ_cjs.saveScorePayloadSchema.parse(scorerResult);
365
+ const payloadToSave = chunkW54LWXCG_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 = chunk2L6LTY2M_cjs.createWorkflow({
407
+ var scoreTracesWorkflow = chunkQLPSR67Y_cjs.createWorkflow({
408
408
  id: "__batch-scoring-traces",
409
409
  inputSchema: z__default.default.object({
410
410
  targets: z__default.default.array(
@@ -1,6 +1,6 @@
1
- import { createStep, createWorkflow } from '../../chunk-AOUR7HV5.js';
2
- import { saveScorePayloadSchema } from '../../chunk-PTN7GTBG.js';
3
- import { convertMessages } from '../../chunk-YWK4OFUM.js';
1
+ import { createStep, createWorkflow } from '../../chunk-5KSHWBRH.js';
2
+ import { saveScorePayloadSchema } from '../../chunk-EMTBCXQQ.js';
3
+ import { convertMessages } from '../../chunk-NFJJ6B6P.js';
4
4
  import { MastraError } from '../../chunk-PZUZNPFM.js';
5
5
  import pMap from 'p-map';
6
6
  import z from 'zod';
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkUK4QLV4O_cjs = require('../chunk-UK4QLV4O.cjs');
3
+ var chunk7GUQ2EQ4_cjs = require('../chunk-7GUQ2EQ4.cjs');
4
4
  var chunk5NTO7S5I_cjs = require('../chunk-5NTO7S5I.cjs');
5
5
  var chunk6VOPKVYH_cjs = require('../chunk-6VOPKVYH.cjs');
6
6
  var chunkEBVYYC2Q_cjs = require('../chunk-EBVYYC2Q.cjs');
7
7
 
8
8
  // src/server/auth.ts
9
9
  var _MastraAuthProvider_decorators, _init, _a;
10
- _MastraAuthProvider_decorators = [chunkUK4QLV4O_cjs.InstrumentClass({
10
+ _MastraAuthProvider_decorators = [chunk7GUQ2EQ4_cjs.InstrumentClass({
11
11
  prefix: "auth",
12
12
  excludeMethods: ["__setTools", "__setLogger", "__setTelemetry", "#log"]
13
13
  })];
@@ -1,4 +1,4 @@
1
- import { InstrumentClass } from '../chunk-QCZOYIZC.js';
1
+ import { InstrumentClass } from '../chunk-5S5X3QPR.js';
2
2
  import { MastraError } from '../chunk-PZUZNPFM.js';
3
3
  import { MastraBase } from '../chunk-VQASQG5D.js';
4
4
  import { __decoratorStart, __decorateElement, __runInitializers } from '../chunk-3HXBPDKN.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkZZ2DSE2G_cjs = require('../chunk-ZZ2DSE2G.cjs');
4
4
  var chunk4R2TBRS7_cjs = require('../chunk-4R2TBRS7.cjs');
5
- var chunkMIRRWDFC_cjs = require('../chunk-MIRRWDFC.cjs');
5
+ var chunkRDD5YB3T_cjs = require('../chunk-RDD5YB3T.cjs');
6
6
  var chunk5NTO7S5I_cjs = require('../chunk-5NTO7S5I.cjs');
7
7
  var chunk6VOPKVYH_cjs = require('../chunk-6VOPKVYH.cjs');
8
8
 
@@ -311,7 +311,7 @@ var InMemoryMemory = class extends MemoryStorage {
311
311
  }) {
312
312
  this.logger.debug(`MockStore: getMessagesById called`);
313
313
  const rawMessages = messageIds.map((id) => this.collection.messages.get(id)).filter((message) => !!message);
314
- const list = new chunkMIRRWDFC_cjs.MessageList().add(rawMessages.map(this.parseStoredMessage), "memory");
314
+ const list = new chunkRDD5YB3T_cjs.MessageList().add(rawMessages.map(this.parseStoredMessage), "memory");
315
315
  if (format === "v1") return list.get.all.v1();
316
316
  return list.get.all.v2();
317
317
  }
@@ -341,7 +341,7 @@ var InMemoryMemory = class extends MemoryStorage {
341
341
  };
342
342
  this.collection.messages.set(key, storageMessage);
343
343
  }
344
- const list = new chunkMIRRWDFC_cjs.MessageList().add(messages, "memory");
344
+ const list = new chunkRDD5YB3T_cjs.MessageList().add(messages, "memory");
345
345
  if (format === `v2`) return list.get.all.v2();
346
346
  return list.get.all.v1();
347
347
  }
@@ -2,7 +2,7 @@ import { MastraStorage } from '../chunk-BKBVQTOH.js';
2
2
  export { MastraStorage, ensureDate, resolveMessageLimit, serializeDate } from '../chunk-BKBVQTOH.js';
3
3
  import { TABLE_WORKFLOW_SNAPSHOT, TABLE_EVALS, TABLE_TRACES } from '../chunk-SJMKDSRF.js';
4
4
  export { AI_SPAN_SCHEMA, SCORERS_SCHEMA, TABLE_AI_SPANS, TABLE_EVALS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEMAS, TABLE_SCORERS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-SJMKDSRF.js';
5
- import { MessageList } from '../chunk-YWK4OFUM.js';
5
+ import { MessageList } from '../chunk-NFJJ6B6P.js';
6
6
  import { MastraError } from '../chunk-PZUZNPFM.js';
7
7
  import { MastraBase } from '../chunk-VQASQG5D.js';
8
8
 
@@ -1,45 +1,45 @@
1
1
  'use strict';
2
2
 
3
- var chunkDQNIWOM3_cjs = require('../chunk-DQNIWOM3.cjs');
4
- var chunkMIRRWDFC_cjs = require('../chunk-MIRRWDFC.cjs');
3
+ var chunkZWWHTQ72_cjs = require('../chunk-ZWWHTQ72.cjs');
4
+ var chunkRDD5YB3T_cjs = require('../chunk-RDD5YB3T.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "AISDKV5OutputStream", {
9
9
  enumerable: true,
10
- get: function () { return chunkDQNIWOM3_cjs.AISDKV5OutputStream; }
10
+ get: function () { return chunkZWWHTQ72_cjs.AISDKV5OutputStream; }
11
11
  });
12
12
  Object.defineProperty(exports, "ChunkFrom", {
13
13
  enumerable: true,
14
- get: function () { return chunkDQNIWOM3_cjs.ChunkFrom; }
14
+ get: function () { return chunkZWWHTQ72_cjs.ChunkFrom; }
15
15
  });
16
16
  Object.defineProperty(exports, "MastraAgentNetworkStream", {
17
17
  enumerable: true,
18
- get: function () { return chunkDQNIWOM3_cjs.MastraAgentNetworkStream; }
18
+ get: function () { return chunkZWWHTQ72_cjs.MastraAgentNetworkStream; }
19
19
  });
20
20
  Object.defineProperty(exports, "MastraModelOutput", {
21
21
  enumerable: true,
22
- get: function () { return chunkDQNIWOM3_cjs.MastraModelOutput; }
22
+ get: function () { return chunkZWWHTQ72_cjs.MastraModelOutput; }
23
23
  });
24
24
  Object.defineProperty(exports, "WorkflowRunOutput", {
25
25
  enumerable: true,
26
- get: function () { return chunkDQNIWOM3_cjs.WorkflowRunOutput; }
26
+ get: function () { return chunkZWWHTQ72_cjs.WorkflowRunOutput; }
27
27
  });
28
28
  Object.defineProperty(exports, "convertFullStreamChunkToUIMessageStream", {
29
29
  enumerable: true,
30
- get: function () { return chunkDQNIWOM3_cjs.convertFullStreamChunkToUIMessageStream; }
30
+ get: function () { return chunkZWWHTQ72_cjs.convertFullStreamChunkToUIMessageStream; }
31
31
  });
32
32
  Object.defineProperty(exports, "convertMastraChunkToAISDKv5", {
33
33
  enumerable: true,
34
- get: function () { return chunkDQNIWOM3_cjs.convertMastraChunkToAISDKv5; }
34
+ get: function () { return chunkZWWHTQ72_cjs.convertMastraChunkToAISDKv5; }
35
35
  });
36
36
  Object.defineProperty(exports, "DefaultGeneratedFile", {
37
37
  enumerable: true,
38
- get: function () { return chunkMIRRWDFC_cjs.DefaultGeneratedFile; }
38
+ get: function () { return chunkRDD5YB3T_cjs.DefaultGeneratedFile; }
39
39
  });
40
40
  Object.defineProperty(exports, "DefaultGeneratedFileWithType", {
41
41
  enumerable: true,
42
- get: function () { return chunkMIRRWDFC_cjs.DefaultGeneratedFileWithType; }
42
+ get: function () { return chunkRDD5YB3T_cjs.DefaultGeneratedFileWithType; }
43
43
  });
44
44
  //# sourceMappingURL=index.cjs.map
45
45
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- export { AISDKV5OutputStream, ChunkFrom, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5 } from '../chunk-Z3PIE2HC.js';
2
- export { DefaultGeneratedFile, DefaultGeneratedFileWithType } from '../chunk-YWK4OFUM.js';
1
+ export { AISDKV5OutputStream, ChunkFrom, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5 } from '../chunk-GSQD3QNR.js';
2
+ export { DefaultGeneratedFile, DefaultGeneratedFileWithType } from '../chunk-NFJJ6B6P.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,32 +1,32 @@
1
1
  'use strict';
2
2
 
3
- var chunkUK4QLV4O_cjs = require('../chunk-UK4QLV4O.cjs');
3
+ var chunk7GUQ2EQ4_cjs = require('../chunk-7GUQ2EQ4.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "InstrumentClass", {
8
8
  enumerable: true,
9
- get: function () { return chunkUK4QLV4O_cjs.InstrumentClass; }
9
+ get: function () { return chunk7GUQ2EQ4_cjs.InstrumentClass; }
10
10
  });
11
11
  Object.defineProperty(exports, "OTLPStorageExporter", {
12
12
  enumerable: true,
13
- get: function () { return chunkUK4QLV4O_cjs.OTLPTraceExporter; }
13
+ get: function () { return chunk7GUQ2EQ4_cjs.OTLPTraceExporter; }
14
14
  });
15
15
  Object.defineProperty(exports, "Telemetry", {
16
16
  enumerable: true,
17
- get: function () { return chunkUK4QLV4O_cjs.Telemetry; }
17
+ get: function () { return chunk7GUQ2EQ4_cjs.Telemetry; }
18
18
  });
19
19
  Object.defineProperty(exports, "getBaggageValues", {
20
20
  enumerable: true,
21
- get: function () { return chunkUK4QLV4O_cjs.getBaggageValues; }
21
+ get: function () { return chunk7GUQ2EQ4_cjs.getBaggageValues; }
22
22
  });
23
23
  Object.defineProperty(exports, "hasActiveTelemetry", {
24
24
  enumerable: true,
25
- get: function () { return chunkUK4QLV4O_cjs.hasActiveTelemetry; }
25
+ get: function () { return chunk7GUQ2EQ4_cjs.hasActiveTelemetry; }
26
26
  });
27
27
  Object.defineProperty(exports, "withSpan", {
28
28
  enumerable: true,
29
- get: function () { return chunkUK4QLV4O_cjs.withSpan; }
29
+ get: function () { return chunk7GUQ2EQ4_cjs.withSpan; }
30
30
  });
31
31
  //# sourceMappingURL=index.cjs.map
32
32
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from '../chunk-QCZOYIZC.js';
1
+ export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from '../chunk-5S5X3QPR.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkSJQ6OUHB_cjs = require('../chunk-SJQ6OUHB.cjs');
3
+ var chunkQWOKGSO2_cjs = require('../chunk-QWOKGSO2.cjs');
4
4
  var ai = require('ai');
5
5
  var test = require('ai/test');
6
6
  var test$1 = require('ai-v5/test');
@@ -96,7 +96,7 @@ function createMockModel({
96
96
  });
97
97
  return mockModel;
98
98
  }
99
- var MockProvider = class extends chunkSJQ6OUHB_cjs.MastraLLMV1 {
99
+ var MockProvider = class extends chunkQWOKGSO2_cjs.MastraLLMV1 {
100
100
  constructor({
101
101
  spyGenerate,
102
102
  spyStream,
@@ -1,4 +1,4 @@
1
- import { MastraLLMV1 } from '../chunk-GLA7XHTK.js';
1
+ import { MastraLLMV1 } from '../chunk-ZZIYFEVM.js';
2
2
  import { simulateReadableStream } from 'ai';
3
3
  import { MockLanguageModelV1 } from 'ai/test';
4
4
  import { MockLanguageModelV2, convertArrayToReadableStream } from 'ai-v5/test';
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkRLAYS3PT_cjs = require('../chunk-RLAYS3PT.cjs');
3
+ var chunkPAW64WWA_cjs = require('../chunk-PAW64WWA.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraTTS", {
8
8
  enumerable: true,
9
- get: function () { return chunkRLAYS3PT_cjs.MastraTTS; }
9
+ get: function () { return chunkPAW64WWA_cjs.MastraTTS; }
10
10
  });
11
11
  //# sourceMappingURL=index.cjs.map
12
12
  //# sourceMappingURL=index.cjs.map
package/dist/tts/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { MastraTTS } from '../chunk-3N7RP3UB.js';
1
+ export { MastraTTS } from '../chunk-2BIQL3SK.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
package/dist/utils.cjs CHANGED
@@ -1,92 +1,92 @@
1
1
  'use strict';
2
2
 
3
- var chunkKPKDAZ5I_cjs = require('./chunk-KPKDAZ5I.cjs');
3
+ var chunkQGJF6TRY_cjs = require('./chunk-QGJF6TRY.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "checkEvalStorageFields", {
8
8
  enumerable: true,
9
- get: function () { return chunkKPKDAZ5I_cjs.checkEvalStorageFields; }
9
+ get: function () { return chunkQGJF6TRY_cjs.checkEvalStorageFields; }
10
10
  });
11
11
  Object.defineProperty(exports, "createMastraProxy", {
12
12
  enumerable: true,
13
- get: function () { return chunkKPKDAZ5I_cjs.createMastraProxy; }
13
+ get: function () { return chunkQGJF6TRY_cjs.createMastraProxy; }
14
14
  });
15
15
  Object.defineProperty(exports, "deepMerge", {
16
16
  enumerable: true,
17
- get: function () { return chunkKPKDAZ5I_cjs.deepMerge; }
17
+ get: function () { return chunkQGJF6TRY_cjs.deepMerge; }
18
18
  });
19
19
  Object.defineProperty(exports, "delay", {
20
20
  enumerable: true,
21
- get: function () { return chunkKPKDAZ5I_cjs.delay; }
21
+ get: function () { return chunkQGJF6TRY_cjs.delay; }
22
22
  });
23
23
  Object.defineProperty(exports, "ensureToolProperties", {
24
24
  enumerable: true,
25
- get: function () { return chunkKPKDAZ5I_cjs.ensureToolProperties; }
25
+ get: function () { return chunkQGJF6TRY_cjs.ensureToolProperties; }
26
26
  });
27
27
  Object.defineProperty(exports, "fetchWithRetry", {
28
28
  enumerable: true,
29
- get: function () { return chunkKPKDAZ5I_cjs.fetchWithRetry; }
29
+ get: function () { return chunkQGJF6TRY_cjs.fetchWithRetry; }
30
30
  });
31
31
  Object.defineProperty(exports, "generateEmptyFromSchema", {
32
32
  enumerable: true,
33
- get: function () { return chunkKPKDAZ5I_cjs.generateEmptyFromSchema; }
33
+ get: function () { return chunkQGJF6TRY_cjs.generateEmptyFromSchema; }
34
34
  });
35
35
  Object.defineProperty(exports, "getNestedValue", {
36
36
  enumerable: true,
37
- get: function () { return chunkKPKDAZ5I_cjs.getNestedValue2; }
37
+ get: function () { return chunkQGJF6TRY_cjs.getNestedValue2; }
38
38
  });
39
39
  Object.defineProperty(exports, "isCoreMessage", {
40
40
  enumerable: true,
41
- get: function () { return chunkKPKDAZ5I_cjs.isCoreMessage; }
41
+ get: function () { return chunkQGJF6TRY_cjs.isCoreMessage; }
42
42
  });
43
43
  Object.defineProperty(exports, "isUiMessage", {
44
44
  enumerable: true,
45
- get: function () { return chunkKPKDAZ5I_cjs.isUiMessage; }
45
+ get: function () { return chunkQGJF6TRY_cjs.isUiMessage; }
46
46
  });
47
47
  Object.defineProperty(exports, "isZodType", {
48
48
  enumerable: true,
49
- get: function () { return chunkKPKDAZ5I_cjs.isZodType; }
49
+ get: function () { return chunkQGJF6TRY_cjs.isZodType; }
50
50
  });
51
51
  Object.defineProperty(exports, "makeCoreTool", {
52
52
  enumerable: true,
53
- get: function () { return chunkKPKDAZ5I_cjs.makeCoreTool; }
53
+ get: function () { return chunkQGJF6TRY_cjs.makeCoreTool; }
54
54
  });
55
55
  Object.defineProperty(exports, "makeCoreToolV5", {
56
56
  enumerable: true,
57
- get: function () { return chunkKPKDAZ5I_cjs.makeCoreToolV5; }
57
+ get: function () { return chunkQGJF6TRY_cjs.makeCoreToolV5; }
58
58
  });
59
59
  Object.defineProperty(exports, "maskStreamTags", {
60
60
  enumerable: true,
61
- get: function () { return chunkKPKDAZ5I_cjs.maskStreamTags; }
61
+ get: function () { return chunkQGJF6TRY_cjs.maskStreamTags; }
62
62
  });
63
63
  Object.defineProperty(exports, "omitKeys", {
64
64
  enumerable: true,
65
- get: function () { return chunkKPKDAZ5I_cjs.omitKeys2; }
65
+ get: function () { return chunkQGJF6TRY_cjs.omitKeys2; }
66
66
  });
67
67
  Object.defineProperty(exports, "parseFieldKey", {
68
68
  enumerable: true,
69
- get: function () { return chunkKPKDAZ5I_cjs.parseFieldKey; }
69
+ get: function () { return chunkQGJF6TRY_cjs.parseFieldKey; }
70
70
  });
71
71
  Object.defineProperty(exports, "parseSqlIdentifier", {
72
72
  enumerable: true,
73
- get: function () { return chunkKPKDAZ5I_cjs.parseSqlIdentifier; }
73
+ get: function () { return chunkQGJF6TRY_cjs.parseSqlIdentifier; }
74
74
  });
75
75
  Object.defineProperty(exports, "removeUndefinedValues", {
76
76
  enumerable: true,
77
- get: function () { return chunkKPKDAZ5I_cjs.removeUndefinedValues; }
77
+ get: function () { return chunkQGJF6TRY_cjs.removeUndefinedValues; }
78
78
  });
79
79
  Object.defineProperty(exports, "resolveSerializedZodOutput", {
80
80
  enumerable: true,
81
- get: function () { return chunkKPKDAZ5I_cjs.resolveSerializedZodOutput; }
81
+ get: function () { return chunkQGJF6TRY_cjs.resolveSerializedZodOutput; }
82
82
  });
83
83
  Object.defineProperty(exports, "selectFields", {
84
84
  enumerable: true,
85
- get: function () { return chunkKPKDAZ5I_cjs.selectFields2; }
85
+ get: function () { return chunkQGJF6TRY_cjs.selectFields2; }
86
86
  });
87
87
  Object.defineProperty(exports, "setNestedValue", {
88
88
  enumerable: true,
89
- get: function () { return chunkKPKDAZ5I_cjs.setNestedValue2; }
89
+ get: function () { return chunkQGJF6TRY_cjs.setNestedValue2; }
90
90
  });
91
91
  //# sourceMappingURL=utils.cjs.map
92
92
  //# sourceMappingURL=utils.cjs.map