@mastra/core 1.31.0-alpha.4 → 1.31.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 (132) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/dist/agent/durable/index.cjs +22 -22
  3. package/dist/agent/durable/index.js +4 -4
  4. package/dist/agent/index.cjs +9 -9
  5. package/dist/agent/index.js +1 -1
  6. package/dist/browser/index.cjs +2 -2
  7. package/dist/browser/index.js +1 -1
  8. package/dist/channels/index.cjs +4 -4
  9. package/dist/channels/index.js +1 -1
  10. package/dist/{chunk-2J3YSWHO.cjs → chunk-3LHTPHZP.cjs} +59 -59
  11. package/dist/{chunk-2J3YSWHO.cjs.map → chunk-3LHTPHZP.cjs.map} +1 -1
  12. package/dist/{chunk-UADG5CCD.js → chunk-43WNQPFP.js} +4 -4
  13. package/dist/{chunk-UADG5CCD.js.map → chunk-43WNQPFP.js.map} +1 -1
  14. package/dist/{chunk-W6E5CCSB.js → chunk-53NCBZKI.js} +4 -4
  15. package/dist/{chunk-W6E5CCSB.js.map → chunk-53NCBZKI.js.map} +1 -1
  16. package/dist/{chunk-WRJUVUIZ.cjs → chunk-5B6LXG5O.cjs} +389 -389
  17. package/dist/{chunk-WRJUVUIZ.cjs.map → chunk-5B6LXG5O.cjs.map} +1 -1
  18. package/dist/{chunk-GB2U2Y3P.js → chunk-5QMK4T3X.js} +3 -3
  19. package/dist/{chunk-GB2U2Y3P.js.map → chunk-5QMK4T3X.js.map} +1 -1
  20. package/dist/{chunk-BLU4IC6F.cjs → chunk-6MVINWPK.cjs} +14 -14
  21. package/dist/{chunk-BLU4IC6F.cjs.map → chunk-6MVINWPK.cjs.map} +1 -1
  22. package/dist/{chunk-7LKPZXDM.js → chunk-7AX25YLX.js} +4 -4
  23. package/dist/{chunk-7LKPZXDM.js.map → chunk-7AX25YLX.js.map} +1 -1
  24. package/dist/{chunk-QABIZQB7.js → chunk-BME3IGZD.js} +3 -3
  25. package/dist/{chunk-QABIZQB7.js.map → chunk-BME3IGZD.js.map} +1 -1
  26. package/dist/{chunk-CDS2VUE2.cjs → chunk-DNNICOYK.cjs} +20 -20
  27. package/dist/{chunk-CDS2VUE2.cjs.map → chunk-DNNICOYK.cjs.map} +1 -1
  28. package/dist/{chunk-VR5VNHNZ.js → chunk-FAPA556P.js} +8 -8
  29. package/dist/{chunk-VR5VNHNZ.js.map → chunk-FAPA556P.js.map} +1 -1
  30. package/dist/{chunk-AUQH3O4N.js → chunk-HAU2MDSW.js} +4 -4
  31. package/dist/{chunk-AUQH3O4N.js.map → chunk-HAU2MDSW.js.map} +1 -1
  32. package/dist/{chunk-3734AUDT.js → chunk-J72QZMTT.js} +6 -6
  33. package/dist/{chunk-3734AUDT.js.map → chunk-J72QZMTT.js.map} +1 -1
  34. package/dist/{chunk-IFC3YAVV.cjs → chunk-JH7D3XKB.cjs} +19 -19
  35. package/dist/{chunk-IFC3YAVV.cjs.map → chunk-JH7D3XKB.cjs.map} +1 -1
  36. package/dist/{chunk-XBCX5E3N.js → chunk-KXI7J3FZ.js} +3 -3
  37. package/dist/chunk-KXI7J3FZ.js.map +1 -0
  38. package/dist/{chunk-UCSM3GWM.js → chunk-LD7UCH6D.js} +3 -3
  39. package/dist/{chunk-UCSM3GWM.js.map → chunk-LD7UCH6D.js.map} +1 -1
  40. package/dist/{chunk-YBNPB36J.cjs → chunk-OSMMAURN.cjs} +9 -9
  41. package/dist/{chunk-YBNPB36J.cjs.map → chunk-OSMMAURN.cjs.map} +1 -1
  42. package/dist/{chunk-WDCXTDRR.cjs → chunk-SI6NWTR2.cjs} +7 -7
  43. package/dist/{chunk-WDCXTDRR.cjs.map → chunk-SI6NWTR2.cjs.map} +1 -1
  44. package/dist/{chunk-EE2UB4VX.js → chunk-TRVPCCVP.js} +3 -3
  45. package/dist/{chunk-EE2UB4VX.js.map → chunk-TRVPCCVP.js.map} +1 -1
  46. package/dist/{chunk-PBKTHAF5.cjs → chunk-TSGU2S4P.cjs} +5 -5
  47. package/dist/{chunk-PBKTHAF5.cjs.map → chunk-TSGU2S4P.cjs.map} +1 -1
  48. package/dist/{chunk-HTAWEZ7M.cjs → chunk-TUZTUFQO.cjs} +3 -3
  49. package/dist/{chunk-HTAWEZ7M.cjs.map → chunk-TUZTUFQO.cjs.map} +1 -1
  50. package/dist/{chunk-2CAB6LW3.cjs → chunk-V4RZ4FO4.cjs} +224 -224
  51. package/dist/{chunk-2CAB6LW3.cjs.map → chunk-V4RZ4FO4.cjs.map} +1 -1
  52. package/dist/{chunk-GUYKZ5U2.cjs → chunk-VWZ44FD3.cjs} +7 -7
  53. package/dist/{chunk-GUYKZ5U2.cjs.map → chunk-VWZ44FD3.cjs.map} +1 -1
  54. package/dist/{chunk-AVBQJTYL.cjs → chunk-W7C7RY6I.cjs} +3 -3
  55. package/dist/chunk-W7C7RY6I.cjs.map +1 -0
  56. package/dist/{chunk-JS344OAI.js → chunk-X6ETALRU.js} +9 -9
  57. package/dist/{chunk-JS344OAI.js.map → chunk-X6ETALRU.js.map} +1 -1
  58. package/dist/datasets/index.cjs +17 -17
  59. package/dist/datasets/index.js +2 -2
  60. package/dist/docs/SKILL.md +1 -1
  61. package/dist/docs/assets/SOURCE_MAP.json +203 -203
  62. package/dist/docs/references/docs-agents-adding-voice.md +14 -13
  63. package/dist/docs/references/docs-voice-overview.md +66 -0
  64. package/dist/docs/references/docs-voice-speech-to-speech.md +45 -1
  65. package/dist/docs/references/reference.md +1 -0
  66. package/dist/evals/index.cjs +6 -6
  67. package/dist/evals/index.js +2 -2
  68. package/dist/evals/scoreTraces/index.cjs +3 -3
  69. package/dist/evals/scoreTraces/index.js +1 -1
  70. package/dist/harness/index.cjs +7 -7
  71. package/dist/harness/index.js +5 -5
  72. package/dist/index.cjs +2 -2
  73. package/dist/index.js +1 -1
  74. package/dist/llm/index.cjs +20 -20
  75. package/dist/llm/index.js +5 -5
  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-JCF3EDEH.js +3 -0
  81. package/dist/{mastra-4ITVIM3P.js.map → mastra-JCF3EDEH.js.map} +1 -1
  82. package/dist/mastra-R4MQZGKL.cjs +12 -0
  83. package/dist/{mastra-AJ5FVVJV.cjs.map → mastra-R4MQZGKL.cjs.map} +1 -1
  84. package/dist/memory/index.cjs +19 -19
  85. package/dist/memory/index.js +1 -1
  86. package/dist/models-dev-KZS6GJRC.js +3 -0
  87. package/dist/{models-dev-IPZ3ZBDT.js.map → models-dev-KZS6GJRC.js.map} +1 -1
  88. package/dist/models-dev-QVOQXYGC.cjs +12 -0
  89. package/dist/{models-dev-26D6O63V.cjs.map → models-dev-QVOQXYGC.cjs.map} +1 -1
  90. package/dist/netlify-2O6B3H7A.cjs +12 -0
  91. package/dist/{netlify-PK7PYQ7D.cjs.map → netlify-2O6B3H7A.cjs.map} +1 -1
  92. package/dist/netlify-IWBQ6YNZ.js +3 -0
  93. package/dist/{netlify-HN66KZY4.js.map → netlify-IWBQ6YNZ.js.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 +49 -49
  97. package/dist/processors/index.js +1 -1
  98. package/dist/provider-registry-2OT653BC.cjs +44 -0
  99. package/dist/{provider-registry-43OJC4SQ.cjs.map → provider-registry-2OT653BC.cjs.map} +1 -1
  100. package/dist/provider-registry-Z7LJZZQR.js +3 -0
  101. package/dist/{provider-registry-5SZ7C4YH.js.map → provider-registry-Z7LJZZQR.js.map} +1 -1
  102. package/dist/relevance/index.cjs +3 -3
  103. package/dist/relevance/index.js +1 -1
  104. package/dist/runner-2MI65OOJ.js +3 -0
  105. package/dist/{runner-OHTFIP4Q.js.map → runner-2MI65OOJ.js.map} +1 -1
  106. package/dist/runner-CDSZZZQS.cjs +16 -0
  107. package/dist/{runner-2UOLTUSW.cjs.map → runner-CDSZZZQS.cjs.map} +1 -1
  108. package/dist/storage/index.cjs +61 -61
  109. package/dist/storage/index.js +2 -2
  110. package/dist/stream/index.cjs +11 -11
  111. package/dist/stream/index.js +1 -1
  112. package/dist/tool-loop-agent/index.cjs +4 -4
  113. package/dist/tool-loop-agent/index.js +1 -1
  114. package/dist/vector/index.cjs +7 -7
  115. package/dist/vector/index.js +1 -1
  116. package/dist/workflows/evented/index.cjs +10 -10
  117. package/dist/workflows/evented/index.js +1 -1
  118. package/dist/workflows/index.cjs +24 -24
  119. package/dist/workflows/index.js +1 -1
  120. package/package.json +9 -9
  121. package/dist/chunk-AVBQJTYL.cjs.map +0 -1
  122. package/dist/chunk-XBCX5E3N.js.map +0 -1
  123. package/dist/mastra-4ITVIM3P.js +0 -3
  124. package/dist/mastra-AJ5FVVJV.cjs +0 -12
  125. package/dist/models-dev-26D6O63V.cjs +0 -12
  126. package/dist/models-dev-IPZ3ZBDT.js +0 -3
  127. package/dist/netlify-HN66KZY4.js +0 -3
  128. package/dist/netlify-PK7PYQ7D.cjs +0 -12
  129. package/dist/provider-registry-43OJC4SQ.cjs +0 -44
  130. package/dist/provider-registry-5SZ7C4YH.js +0 -3
  131. package/dist/runner-2UOLTUSW.cjs +0 -16
  132. package/dist/runner-OHTFIP4Q.js +0 -3
@@ -327,19 +327,20 @@ For the complete list of supported AI SDK providers and their capabilities:
327
327
 
328
328
  Mastra supports multiple voice providers for text-to-speech (TTS) and speech-to-text (STT) capabilities:
329
329
 
330
- | Provider | Package | Features | Reference |
331
- | --------------- | ------------------------------- | ------------------------- | ------------------------------------------------------------------ |
332
- | OpenAI | `@mastra/voice-openai` | TTS, STT | [Documentation](https://mastra.ai/reference/voice/openai) |
333
- | OpenAI Realtime | `@mastra/voice-openai-realtime` | Realtime speech-to-speech | [Documentation](https://mastra.ai/reference/voice/openai-realtime) |
334
- | ElevenLabs | `@mastra/voice-elevenlabs` | High-quality TTS | [Documentation](https://mastra.ai/reference/voice/elevenlabs) |
335
- | PlayAI | `@mastra/voice-playai` | TTS | [Documentation](https://mastra.ai/reference/voice/playai) |
336
- | Google | `@mastra/voice-google` | TTS, STT | [Documentation](https://mastra.ai/reference/voice/google) |
337
- | Deepgram | `@mastra/voice-deepgram` | STT | [Documentation](https://mastra.ai/reference/voice/deepgram) |
338
- | Murf | `@mastra/voice-murf` | TTS | [Documentation](https://mastra.ai/reference/voice/murf) |
339
- | Speechify | `@mastra/voice-speechify` | TTS | [Documentation](https://mastra.ai/reference/voice/speechify) |
340
- | Sarvam | `@mastra/voice-sarvam` | TTS, STT | [Documentation](https://mastra.ai/reference/voice/sarvam) |
341
- | Azure | `@mastra/voice-azure` | TTS, STT | [Documentation](https://mastra.ai/reference/voice/mastra-voice) |
342
- | Cloudflare | `@mastra/voice-cloudflare` | TTS | [Documentation](https://mastra.ai/reference/voice/mastra-voice) |
330
+ | Provider | Package | Features | Reference |
331
+ | --------------- | ------------------------------- | ----------------------------------------- | ------------------------------------------------------------------ |
332
+ | OpenAI | `@mastra/voice-openai` | TTS, STT | [Documentation](https://mastra.ai/reference/voice/openai) |
333
+ | OpenAI Realtime | `@mastra/voice-openai-realtime` | Realtime speech-to-speech | [Documentation](https://mastra.ai/reference/voice/openai-realtime) |
334
+ | AWS Nova Sonic | `@mastra/voice-aws-nova-sonic` | Realtime speech-to-speech via AWS Bedrock | [Documentation](https://mastra.ai/reference/voice/aws-nova-sonic) |
335
+ | ElevenLabs | `@mastra/voice-elevenlabs` | High-quality TTS | [Documentation](https://mastra.ai/reference/voice/elevenlabs) |
336
+ | PlayAI | `@mastra/voice-playai` | TTS | [Documentation](https://mastra.ai/reference/voice/playai) |
337
+ | Google | `@mastra/voice-google` | TTS, STT | [Documentation](https://mastra.ai/reference/voice/google) |
338
+ | Deepgram | `@mastra/voice-deepgram` | STT | [Documentation](https://mastra.ai/reference/voice/deepgram) |
339
+ | Murf | `@mastra/voice-murf` | TTS | [Documentation](https://mastra.ai/reference/voice/murf) |
340
+ | Speechify | `@mastra/voice-speechify` | TTS | [Documentation](https://mastra.ai/reference/voice/speechify) |
341
+ | Sarvam | `@mastra/voice-sarvam` | TTS, STT | [Documentation](https://mastra.ai/reference/voice/sarvam) |
342
+ | Azure | `@mastra/voice-azure` | TTS, STT | [Documentation](https://mastra.ai/reference/voice/mastra-voice) |
343
+ | Cloudflare | `@mastra/voice-cloudflare` | TTS | [Documentation](https://mastra.ai/reference/voice/mastra-voice) |
343
344
 
344
345
  ## Next steps
345
346
 
@@ -588,6 +588,49 @@ await voiceAgent.voice.send(micStream)
588
588
 
589
589
  Visit the [Google Gemini Live Reference](https://mastra.ai/reference/voice/google-gemini-live) for more information on the Google Gemini Live voice provider.
590
590
 
591
+ **AWS Nova Sonic**:
592
+
593
+ ```typescript
594
+ import { Agent } from '@mastra/core/agent'
595
+ import { playAudio, getMicrophoneStream } from '@mastra/node-audio'
596
+ import { NovaSonicVoice } from '@mastra/voice-aws-nova-sonic'
597
+
598
+ const voiceAgent = new Agent({
599
+ id: 'voice-agent',
600
+ name: 'Voice Agent',
601
+ instructions: 'You are a voice assistant that can help users with their tasks.',
602
+ model: 'openai/gpt-5.4',
603
+ voice: new NovaSonicVoice({
604
+ region: 'us-east-1',
605
+ speaker: 'matthew',
606
+ // Static credentials are optional. The default AWS credential
607
+ // provider chain is used when none are passed.
608
+ }),
609
+ })
610
+
611
+ // Connect before using speak/send
612
+ await voiceAgent.voice.connect()
613
+
614
+ // Listen for assistant audio (Int16Array PCM)
615
+ voiceAgent.voice.on('speaking', ({ audioData }) => {
616
+ if (audioData) playAudio(audioData)
617
+ })
618
+
619
+ // Listen for transcribed text
620
+ voiceAgent.voice.on('writing', ({ text, role }) => {
621
+ console.log(`${role}: ${text}`)
622
+ })
623
+
624
+ // Initiate the conversation
625
+ await voiceAgent.voice.speak('How can I help you today?')
626
+
627
+ // Send continuous audio from the microphone
628
+ const micStream = getMicrophoneStream()
629
+ await voiceAgent.voice.send(micStream)
630
+ ```
631
+
632
+ Visit the [AWS Nova Sonic Reference](https://mastra.ai/reference/voice/aws-nova-sonic) for more information on the AWS Nova Sonic voice provider.
633
+
591
634
  ## Voice configuration
592
635
 
593
636
  Each voice provider can be configured with different models and options. Below are the detailed configuration options for all supported providers:
@@ -828,6 +871,28 @@ const voice = new GeminiLiveVoice({
828
871
 
829
872
  Visit the [Google Gemini Live Reference](https://mastra.ai/reference/voice/google-gemini-live) for more information on the Google Gemini Live voice provider.
830
873
 
874
+ **AWS Nova Sonic**:
875
+
876
+ ```typescript
877
+ // AWS Nova Sonic Voice Configuration
878
+ const voice = new NovaSonicVoice({
879
+ region: 'us-east-1',
880
+ speaker: 'matthew',
881
+ sessionConfig: {
882
+ inferenceConfiguration: {
883
+ temperature: 0.7,
884
+ maxTokens: 1024,
885
+ },
886
+ turnDetectionConfiguration: {
887
+ endpointingSensitivity: 'MEDIUM',
888
+ },
889
+ },
890
+ // AWS Nova Sonic is a realtime bidirectional API without separate speech and listening models
891
+ })
892
+ ```
893
+
894
+ Visit the [AWS Nova Sonic Reference](https://mastra.ai/reference/voice/aws-nova-sonic) for more information on the AWS Nova Sonic voice provider.
895
+
831
896
  **AI SDK**:
832
897
 
833
898
  ```typescript
@@ -957,6 +1022,7 @@ For more information on the CompositeVoice, refer to the [CompositeVoice Referen
957
1022
  - [Azure Voice](https://mastra.ai/reference/voice/azure)
958
1023
  - [Google Voice](https://mastra.ai/reference/voice/google)
959
1024
  - [Google Gemini Live Voice](https://mastra.ai/reference/voice/google-gemini-live)
1025
+ - [AWS Nova Sonic Voice](https://mastra.ai/reference/voice/aws-nova-sonic)
960
1026
  - [Deepgram Voice](https://mastra.ai/reference/voice/deepgram)
961
1027
  - [PlayAI Voice](https://mastra.ai/reference/voice/playai)
962
1028
  - [Voice Examples](https://github.com/mastra-ai/voice-examples)
@@ -99,4 +99,48 @@ await agent.voice.send(micStream)
99
99
  Note:
100
100
 
101
101
  - Live API requires `GOOGLE_API_KEY`. Vertex AI requires project/location and service account credentials.
102
- - Events: `speaker` (audio stream), `writing` (text), `turnComplete`, `usage`, and `error`.
102
+ - Events: `speaker` (audio stream), `writing` (text), `turnComplete`, `usage`, and `error`.
103
+
104
+ ## AWS Nova Sonic (Realtime)
105
+
106
+ ```typescript
107
+ import { Agent } from '@mastra/core/agent'
108
+ import { NovaSonicVoice } from '@mastra/voice-aws-nova-sonic'
109
+ import { playAudio, getMicrophoneStream } from '@mastra/node-audio'
110
+
111
+ const agent = new Agent({
112
+ id: 'agent',
113
+ name: 'Nova Sonic Agent',
114
+ instructions: 'You are a helpful assistant with real-time voice capabilities.',
115
+ // Model used for text generation; voice provider handles realtime audio
116
+ model: 'openai/gpt-5.4',
117
+ voice: new NovaSonicVoice({
118
+ region: 'us-east-1',
119
+ speaker: 'matthew',
120
+ // Static credentials are optional. The default AWS credential provider
121
+ // chain is used when none are passed.
122
+ }),
123
+ })
124
+
125
+ await agent.voice.connect()
126
+
127
+ // Assistant audio is emitted as 16-bit PCM on the `speaking` event
128
+ agent.voice.on('speaking', ({ audioData }) => {
129
+ if (audioData) playAudio(audioData)
130
+ })
131
+
132
+ agent.voice.on('writing', ({ role, text }) => {
133
+ console.log(`${role}: ${text}`)
134
+ })
135
+
136
+ await agent.voice.speak('How can I help you today?')
137
+
138
+ const micStream = getMicrophoneStream()
139
+ await agent.voice.send(micStream)
140
+ ```
141
+
142
+ Note:
143
+
144
+ - Available regions: `us-east-1`, `us-west-2`, and `ap-northeast-1`.
145
+ - Authenticates through the standard AWS credential provider chain. Pass `credentials` to override.
146
+ - Events: `speaking` (Int16Array audio), `writing` (text with `generationStage`), `toolCall`, `interrupt`, `turnComplete`, `usage`, `session`, and `error`.
@@ -244,6 +244,7 @@ The Reference section provides documentation of Mastra's API, including paramete
244
244
  - [Qdrant Vector Store](https://mastra.ai/reference/vectors/qdrant)
245
245
  - [Turbopuffer Vector Store](https://mastra.ai/reference/vectors/turbopuffer)
246
246
  - [Upstash Vector Store](https://mastra.ai/reference/vectors/upstash)
247
+ - [AWS Nova Sonic](https://mastra.ai/reference/voice/aws-nova-sonic)
247
248
  - [Azure](https://mastra.ai/reference/voice/azure)
248
249
  - [Cloudflare](https://mastra.ai/reference/voice/cloudflare)
249
250
  - [Composite Voice](https://mastra.ai/reference/voice/composite-voice)
@@ -1,26 +1,26 @@
1
1
  'use strict';
2
2
 
3
- var chunkPBKTHAF5_cjs = require('../chunk-PBKTHAF5.cjs');
4
- var chunkBLU4IC6F_cjs = require('../chunk-BLU4IC6F.cjs');
3
+ var chunkTSGU2S4P_cjs = require('../chunk-TSGU2S4P.cjs');
4
+ var chunk6MVINWPK_cjs = require('../chunk-6MVINWPK.cjs');
5
5
  var chunkAAGXQKWU_cjs = require('../chunk-AAGXQKWU.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "runEvals", {
10
10
  enumerable: true,
11
- get: function () { return chunkPBKTHAF5_cjs.runEvals; }
11
+ get: function () { return chunkTSGU2S4P_cjs.runEvals; }
12
12
  });
13
13
  Object.defineProperty(exports, "MastraScorer", {
14
14
  enumerable: true,
15
- get: function () { return chunkBLU4IC6F_cjs.MastraScorer; }
15
+ get: function () { return chunk6MVINWPK_cjs.MastraScorer; }
16
16
  });
17
17
  Object.defineProperty(exports, "createScorer", {
18
18
  enumerable: true,
19
- get: function () { return chunkBLU4IC6F_cjs.createScorer; }
19
+ get: function () { return chunk6MVINWPK_cjs.createScorer; }
20
20
  });
21
21
  Object.defineProperty(exports, "filterRun", {
22
22
  enumerable: true,
23
- get: function () { return chunkBLU4IC6F_cjs.filterRun; }
23
+ get: function () { return chunk6MVINWPK_cjs.filterRun; }
24
24
  });
25
25
  Object.defineProperty(exports, "extractTrajectory", {
26
26
  enumerable: true,
@@ -1,5 +1,5 @@
1
- export { runEvals } from '../chunk-GB2U2Y3P.js';
2
- export { MastraScorer, createScorer, filterRun } from '../chunk-W6E5CCSB.js';
1
+ export { runEvals } from '../chunk-5QMK4T3X.js';
2
+ export { MastraScorer, createScorer, filterRun } from '../chunk-53NCBZKI.js';
3
3
  export { extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-UI2UGBFU.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk2J3YSWHO_cjs = require('../../chunk-2J3YSWHO.cjs');
3
+ var chunk3LHTPHZP_cjs = require('../../chunk-3LHTPHZP.cjs');
4
4
  var chunkAAGXQKWU_cjs = require('../../chunk-AAGXQKWU.cjs');
5
5
  var chunkYGD6CZV4_cjs = require('../../chunk-YGD6CZV4.cjs');
6
6
  var chunk4U7ZLI36_cjs = require('../../chunk-4U7ZLI36.cjs');
@@ -234,7 +234,7 @@ function transformTraceToScorerInputAndOutput(trace) {
234
234
  }
235
235
 
236
236
  // src/evals/scoreTraces/scoreTracesWorkflow.ts
237
- var getTraceStep = chunk2J3YSWHO_cjs.createStep({
237
+ var getTraceStep = chunk3LHTPHZP_cjs.createStep({
238
238
  id: "__process-trace-scoring",
239
239
  inputSchema: v4.z.object({
240
240
  targets: v4.z.array(
@@ -429,7 +429,7 @@ async function attachScoreToSpan({
429
429
  } catch {
430
430
  }
431
431
  }
432
- var scoreTracesWorkflow = chunk2J3YSWHO_cjs.createWorkflow({
432
+ var scoreTracesWorkflow = chunk3LHTPHZP_cjs.createWorkflow({
433
433
  id: "__batch-scoring-traces",
434
434
  inputSchema: v4.z.object({
435
435
  targets: v4.z.array(
@@ -1,4 +1,4 @@
1
- import { createStep, createWorkflow } from '../../chunk-7LKPZXDM.js';
1
+ import { createStep, createWorkflow } from '../../chunk-7AX25YLX.js';
2
2
  import { saveScorePayloadSchema } from '../../chunk-UI2UGBFU.js';
3
3
  import { getEntityTypeForSpan } from '../../chunk-G2SVLNSC.js';
4
4
  import { MastraError } from '../../chunk-FJEVLHJT.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkIFC3YAVV_cjs = require('../chunk-IFC3YAVV.cjs');
4
- var chunkBLU4IC6F_cjs = require('../chunk-BLU4IC6F.cjs');
3
+ var chunkJH7D3XKB_cjs = require('../chunk-JH7D3XKB.cjs');
4
+ var chunk6MVINWPK_cjs = require('../chunk-6MVINWPK.cjs');
5
5
  var chunk5ANWVE3P_cjs = require('../chunk-5ANWVE3P.cjs');
6
6
  var chunkYNE3ZCU5_cjs = require('../chunk-YNE3ZCU5.cjs');
7
7
  var chunkM4KUR53T_cjs = require('../chunk-M4KUR53T.cjs');
@@ -610,7 +610,7 @@ ${FORKED_SUBAGENT_NESTING_NOTICE}`;
610
610
  isError: true
611
611
  };
612
612
  }
613
- subagentToRun = new chunkBLU4IC6F_cjs.Agent({
613
+ subagentToRun = new chunk6MVINWPK_cjs.Agent({
614
614
  id: `subagent-${definition.id}`,
615
615
  name: `${definition.name} Subagent`,
616
616
  instructions: definition.instructions,
@@ -890,7 +890,7 @@ var Harness = class {
890
890
  */
891
891
  async init() {
892
892
  if (this.config.storage) {
893
- this.#internalMastra = new chunkIFC3YAVV_cjs.Mastra({
893
+ this.#internalMastra = new chunkJH7D3XKB_cjs.Mastra({
894
894
  logger: false,
895
895
  storage: this.config.storage,
896
896
  ...this.config.observability ? { observability: this.config.observability } : {}
@@ -1150,7 +1150,7 @@ var Harness = class {
1150
1150
  }
1151
1151
  }
1152
1152
  try {
1153
- const { PROVIDER_REGISTRY } = await import('../provider-registry-43OJC4SQ.cjs');
1153
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-2OT653BC.cjs');
1154
1154
  const registry = PROVIDER_REGISTRY;
1155
1155
  const providerConfig = registry[provider];
1156
1156
  const envVars = providerConfig?.apiKeyEnvVar;
@@ -1170,7 +1170,7 @@ var Harness = class {
1170
1170
  */
1171
1171
  async listAvailableModels() {
1172
1172
  try {
1173
- const { PROVIDER_REGISTRY } = await import('../provider-registry-43OJC4SQ.cjs');
1173
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-2OT653BC.cjs');
1174
1174
  if (!PROVIDER_REGISTRY) return [];
1175
1175
  const registry = PROVIDER_REGISTRY;
1176
1176
  const providers = Object.keys(registry);
@@ -1229,7 +1229,7 @@ var Harness = class {
1229
1229
  }
1230
1230
  async getProviderApiKeyEnvVar(provider) {
1231
1231
  try {
1232
- const { PROVIDER_REGISTRY } = await import('../provider-registry-43OJC4SQ.cjs');
1232
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-2OT653BC.cjs');
1233
1233
  const registry = PROVIDER_REGISTRY;
1234
1234
  const envVars = registry[provider]?.apiKeyEnvVar;
1235
1235
  return Array.isArray(envVars) ? envVars[0] : envVars;
@@ -1,5 +1,5 @@
1
- import { Mastra } from '../chunk-JS344OAI.js';
2
- import { Agent } from '../chunk-W6E5CCSB.js';
1
+ import { Mastra } from '../chunk-X6ETALRU.js';
2
+ import { Agent } from '../chunk-53NCBZKI.js';
3
3
  import { Workspace, createWorkspaceTools } from '../chunk-F4PWGVHW.js';
4
4
  import { safeStringify } from '../chunk-ARNDQ2SQ.js';
5
5
  import { createTool } from '../chunk-PXOIM2JE.js';
@@ -1148,7 +1148,7 @@ var Harness = class {
1148
1148
  }
1149
1149
  }
1150
1150
  try {
1151
- const { PROVIDER_REGISTRY } = await import('../provider-registry-5SZ7C4YH.js');
1151
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-Z7LJZZQR.js');
1152
1152
  const registry = PROVIDER_REGISTRY;
1153
1153
  const providerConfig = registry[provider];
1154
1154
  const envVars = providerConfig?.apiKeyEnvVar;
@@ -1168,7 +1168,7 @@ var Harness = class {
1168
1168
  */
1169
1169
  async listAvailableModels() {
1170
1170
  try {
1171
- const { PROVIDER_REGISTRY } = await import('../provider-registry-5SZ7C4YH.js');
1171
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-Z7LJZZQR.js');
1172
1172
  if (!PROVIDER_REGISTRY) return [];
1173
1173
  const registry = PROVIDER_REGISTRY;
1174
1174
  const providers = Object.keys(registry);
@@ -1227,7 +1227,7 @@ var Harness = class {
1227
1227
  }
1228
1228
  async getProviderApiKeyEnvVar(provider) {
1229
1229
  try {
1230
- const { PROVIDER_REGISTRY } = await import('../provider-registry-5SZ7C4YH.js');
1230
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-Z7LJZZQR.js');
1231
1231
  const registry = PROVIDER_REGISTRY;
1232
1232
  const envVars = registry[provider]?.apiKeyEnvVar;
1233
1233
  return Array.isArray(envVars) ? envVars[0] : envVars;
package/dist/index.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkIFC3YAVV_cjs = require('./chunk-IFC3YAVV.cjs');
3
+ var chunkJH7D3XKB_cjs = require('./chunk-JH7D3XKB.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Mastra", {
8
8
  enumerable: true,
9
- get: function () { return chunkIFC3YAVV_cjs.Mastra; }
9
+ get: function () { return chunkJH7D3XKB_cjs.Mastra; }
10
10
  });
11
11
  //# sourceMappingURL=index.cjs.map
12
12
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { Mastra } from './chunk-JS344OAI.js';
1
+ export { Mastra } from './chunk-X6ETALRU.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,72 +1,72 @@
1
1
  'use strict';
2
2
 
3
- var chunkWRJUVUIZ_cjs = require('../chunk-WRJUVUIZ.cjs');
4
- var chunkCDS2VUE2_cjs = require('../chunk-CDS2VUE2.cjs');
5
- var chunk2CAB6LW3_cjs = require('../chunk-2CAB6LW3.cjs');
6
- var chunkYBNPB36J_cjs = require('../chunk-YBNPB36J.cjs');
7
- var chunkAVBQJTYL_cjs = require('../chunk-AVBQJTYL.cjs');
3
+ var chunk5B6LXG5O_cjs = require('../chunk-5B6LXG5O.cjs');
4
+ var chunkDNNICOYK_cjs = require('../chunk-DNNICOYK.cjs');
5
+ var chunkV4RZ4FO4_cjs = require('../chunk-V4RZ4FO4.cjs');
6
+ var chunkOSMMAURN_cjs = require('../chunk-OSMMAURN.cjs');
7
+ var chunkW7C7RY6I_cjs = require('../chunk-W7C7RY6I.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "AzureOpenAIGateway", {
12
12
  enumerable: true,
13
- get: function () { return chunkWRJUVUIZ_cjs.AzureOpenAIGateway; }
13
+ get: function () { return chunk5B6LXG5O_cjs.AzureOpenAIGateway; }
14
14
  });
15
15
  Object.defineProperty(exports, "EMBEDDING_MODELS", {
16
16
  enumerable: true,
17
- get: function () { return chunkWRJUVUIZ_cjs.EMBEDDING_MODELS; }
17
+ get: function () { return chunk5B6LXG5O_cjs.EMBEDDING_MODELS; }
18
18
  });
19
19
  Object.defineProperty(exports, "ModelRouterEmbeddingModel", {
20
20
  enumerable: true,
21
- get: function () { return chunkWRJUVUIZ_cjs.ModelRouterEmbeddingModel; }
21
+ get: function () { return chunk5B6LXG5O_cjs.ModelRouterEmbeddingModel; }
22
22
  });
23
23
  Object.defineProperty(exports, "ModelRouterLanguageModel", {
24
24
  enumerable: true,
25
- get: function () { return chunkWRJUVUIZ_cjs.ModelRouterLanguageModel; }
25
+ get: function () { return chunk5B6LXG5O_cjs.ModelRouterLanguageModel; }
26
26
  });
27
27
  Object.defineProperty(exports, "defaultGateways", {
28
28
  enumerable: true,
29
- get: function () { return chunkWRJUVUIZ_cjs.defaultGateways; }
29
+ get: function () { return chunk5B6LXG5O_cjs.defaultGateways; }
30
30
  });
31
31
  Object.defineProperty(exports, "resolveModelConfig", {
32
32
  enumerable: true,
33
- get: function () { return chunkWRJUVUIZ_cjs.resolveModelConfig; }
33
+ get: function () { return chunk5B6LXG5O_cjs.resolveModelConfig; }
34
34
  });
35
35
  Object.defineProperty(exports, "GatewayRegistry", {
36
36
  enumerable: true,
37
- get: function () { return chunkCDS2VUE2_cjs.GatewayRegistry; }
37
+ get: function () { return chunkDNNICOYK_cjs.GatewayRegistry; }
38
38
  });
39
39
  Object.defineProperty(exports, "MastraGateway", {
40
40
  enumerable: true,
41
- get: function () { return chunkCDS2VUE2_cjs.MastraGateway; }
41
+ get: function () { return chunkDNNICOYK_cjs.MastraGateway; }
42
42
  });
43
43
  Object.defineProperty(exports, "PROVIDER_REGISTRY", {
44
44
  enumerable: true,
45
- get: function () { return chunkCDS2VUE2_cjs.PROVIDER_REGISTRY; }
45
+ get: function () { return chunkDNNICOYK_cjs.PROVIDER_REGISTRY; }
46
46
  });
47
47
  Object.defineProperty(exports, "getProviderConfig", {
48
48
  enumerable: true,
49
- get: function () { return chunkCDS2VUE2_cjs.getProviderConfig; }
49
+ get: function () { return chunkDNNICOYK_cjs.getProviderConfig; }
50
50
  });
51
51
  Object.defineProperty(exports, "parseModelString", {
52
52
  enumerable: true,
53
- get: function () { return chunkCDS2VUE2_cjs.parseModelString; }
53
+ get: function () { return chunkDNNICOYK_cjs.parseModelString; }
54
54
  });
55
55
  Object.defineProperty(exports, "ModelsDevGateway", {
56
56
  enumerable: true,
57
- get: function () { return chunk2CAB6LW3_cjs.ModelsDevGateway; }
57
+ get: function () { return chunkV4RZ4FO4_cjs.ModelsDevGateway; }
58
58
  });
59
59
  Object.defineProperty(exports, "NetlifyGateway", {
60
60
  enumerable: true,
61
- get: function () { return chunkYBNPB36J_cjs.NetlifyGateway; }
61
+ get: function () { return chunkOSMMAURN_cjs.NetlifyGateway; }
62
62
  });
63
63
  Object.defineProperty(exports, "GATEWAY_AUTH_HEADER", {
64
64
  enumerable: true,
65
- get: function () { return chunkAVBQJTYL_cjs.GATEWAY_AUTH_HEADER; }
65
+ get: function () { return chunkW7C7RY6I_cjs.GATEWAY_AUTH_HEADER; }
66
66
  });
67
67
  Object.defineProperty(exports, "MastraModelGateway", {
68
68
  enumerable: true,
69
- get: function () { return chunkAVBQJTYL_cjs.MastraModelGateway; }
69
+ get: function () { return chunkW7C7RY6I_cjs.MastraModelGateway; }
70
70
  });
71
71
  //# sourceMappingURL=index.cjs.map
72
72
  //# sourceMappingURL=index.cjs.map
package/dist/llm/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, defaultGateways, resolveModelConfig } from '../chunk-3734AUDT.js';
2
- export { GatewayRegistry, MastraGateway, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-VR5VNHNZ.js';
3
- export { ModelsDevGateway } from '../chunk-EE2UB4VX.js';
4
- export { NetlifyGateway } from '../chunk-UCSM3GWM.js';
5
- export { GATEWAY_AUTH_HEADER, MastraModelGateway } from '../chunk-XBCX5E3N.js';
1
+ export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, defaultGateways, resolveModelConfig } from '../chunk-J72QZMTT.js';
2
+ export { GatewayRegistry, MastraGateway, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-FAPA556P.js';
3
+ export { ModelsDevGateway } from '../chunk-TRVPCCVP.js';
4
+ export { NetlifyGateway } from '../chunk-LD7UCH6D.js';
5
+ export { GATEWAY_AUTH_HEADER, MastraModelGateway } from '../chunk-KXI7J3FZ.js';
6
6
  //# sourceMappingURL=index.js.map
7
7
  //# sourceMappingURL=index.js.map
@@ -1,60 +1,60 @@
1
1
  'use strict';
2
2
 
3
- var chunkBLU4IC6F_cjs = require('../chunk-BLU4IC6F.cjs');
3
+ var chunk6MVINWPK_cjs = require('../chunk-6MVINWPK.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunkBLU4IC6F_cjs.createScorer; }
9
+ get: function () { return chunk6MVINWPK_cjs.createScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "formatCheckFeedback", {
12
12
  enumerable: true,
13
- get: function () { return chunkBLU4IC6F_cjs.formatCheckFeedback; }
13
+ get: function () { return chunk6MVINWPK_cjs.formatCheckFeedback; }
14
14
  });
15
15
  Object.defineProperty(exports, "formatCompletionFeedback", {
16
16
  enumerable: true,
17
- get: function () { return chunkBLU4IC6F_cjs.formatCompletionFeedback; }
17
+ get: function () { return chunk6MVINWPK_cjs.formatCompletionFeedback; }
18
18
  });
19
19
  Object.defineProperty(exports, "formatStreamCompletionFeedback", {
20
20
  enumerable: true,
21
- get: function () { return chunkBLU4IC6F_cjs.formatStreamCompletionFeedback; }
21
+ get: function () { return chunk6MVINWPK_cjs.formatStreamCompletionFeedback; }
22
22
  });
23
23
  Object.defineProperty(exports, "formatValidationFeedback", {
24
24
  enumerable: true,
25
- get: function () { return chunkBLU4IC6F_cjs.formatValidationFeedback; }
25
+ get: function () { return chunk6MVINWPK_cjs.formatValidationFeedback; }
26
26
  });
27
27
  Object.defineProperty(exports, "generateFinalResult", {
28
28
  enumerable: true,
29
- get: function () { return chunkBLU4IC6F_cjs.generateFinalResult; }
29
+ get: function () { return chunk6MVINWPK_cjs.generateFinalResult; }
30
30
  });
31
31
  Object.defineProperty(exports, "generateStructuredFinalResult", {
32
32
  enumerable: true,
33
- get: function () { return chunkBLU4IC6F_cjs.generateStructuredFinalResult; }
33
+ get: function () { return chunk6MVINWPK_cjs.generateStructuredFinalResult; }
34
34
  });
35
35
  Object.defineProperty(exports, "loop", {
36
36
  enumerable: true,
37
- get: function () { return chunkBLU4IC6F_cjs.loop; }
37
+ get: function () { return chunk6MVINWPK_cjs.loop; }
38
38
  });
39
39
  Object.defineProperty(exports, "runChecks", {
40
40
  enumerable: true,
41
- get: function () { return chunkBLU4IC6F_cjs.runChecks; }
41
+ get: function () { return chunk6MVINWPK_cjs.runChecks; }
42
42
  });
43
43
  Object.defineProperty(exports, "runCompletionScorers", {
44
44
  enumerable: true,
45
- get: function () { return chunkBLU4IC6F_cjs.runCompletionScorers; }
45
+ get: function () { return chunk6MVINWPK_cjs.runCompletionScorers; }
46
46
  });
47
47
  Object.defineProperty(exports, "runDefaultCompletionCheck", {
48
48
  enumerable: true,
49
- get: function () { return chunkBLU4IC6F_cjs.runDefaultCompletionCheck; }
49
+ get: function () { return chunk6MVINWPK_cjs.runDefaultCompletionCheck; }
50
50
  });
51
51
  Object.defineProperty(exports, "runStreamCompletionScorers", {
52
52
  enumerable: true,
53
- get: function () { return chunkBLU4IC6F_cjs.runStreamCompletionScorers; }
53
+ get: function () { return chunk6MVINWPK_cjs.runStreamCompletionScorers; }
54
54
  });
55
55
  Object.defineProperty(exports, "runValidation", {
56
56
  enumerable: true,
57
- get: function () { return chunkBLU4IC6F_cjs.runValidation; }
57
+ get: function () { return chunk6MVINWPK_cjs.runValidation; }
58
58
  });
59
59
  //# sourceMappingURL=index.cjs.map
60
60
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation } from '../chunk-W6E5CCSB.js';
1
+ export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation } from '../chunk-53NCBZKI.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 chunkIFC3YAVV_cjs = require('../chunk-IFC3YAVV.cjs');
3
+ var chunkJH7D3XKB_cjs = require('../chunk-JH7D3XKB.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Mastra", {
8
8
  enumerable: true,
9
- get: function () { return chunkIFC3YAVV_cjs.Mastra; }
9
+ get: function () { return chunkJH7D3XKB_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-JS344OAI.js';
1
+ export { Mastra } from '../chunk-X6ETALRU.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ export { MastraGateway } from './chunk-FAPA556P.js';
2
+ //# sourceMappingURL=mastra-JCF3EDEH.js.map
3
+ //# sourceMappingURL=mastra-JCF3EDEH.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"mastra-4ITVIM3P.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"mastra-JCF3EDEH.js"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkDNNICOYK_cjs = require('./chunk-DNNICOYK.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "MastraGateway", {
8
+ enumerable: true,
9
+ get: function () { return chunkDNNICOYK_cjs.MastraGateway; }
10
+ });
11
+ //# sourceMappingURL=mastra-R4MQZGKL.cjs.map
12
+ //# sourceMappingURL=mastra-R4MQZGKL.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"mastra-AJ5FVVJV.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"mastra-R4MQZGKL.cjs"}