@mastra/core 0.10.4-alpha.3 → 0.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/agent/index.cjs +4 -4
  2. package/dist/agent/index.d.cts +1 -1
  3. package/dist/agent/index.d.ts +1 -1
  4. package/dist/agent/index.js +2 -2
  5. package/dist/{base-icHjkcs-.d.ts → base-CmIdgTSq.d.ts} +37 -31
  6. package/dist/{base-Bdc5hWla.d.cts → base-_mZ6e_qo.d.cts} +37 -31
  7. package/dist/chunk-2RZXEVWT.js +68 -0
  8. package/dist/{chunk-UFQERGWG.js → chunk-32XBQVNY.js} +117 -28
  9. package/dist/{chunk-TRJIWZKM.js → chunk-3SY7GRSA.js} +1 -1
  10. package/dist/{chunk-PUG7THT5.cjs → chunk-6EMFDXAQ.cjs} +4 -4
  11. package/dist/{chunk-36UICULV.js → chunk-6PQRSQZF.js} +35 -5
  12. package/dist/{chunk-VB4S54R3.cjs → chunk-7L56W43N.cjs} +118 -29
  13. package/dist/{chunk-62ZSDIUK.js → chunk-BMED2N3R.js} +1 -1
  14. package/dist/{chunk-I2KL5KMY.js → chunk-CMEK3A3W.js} +2 -2
  15. package/dist/{chunk-HGPLTKJA.cjs → chunk-D2ULEJL3.cjs} +2 -2
  16. package/dist/{chunk-AX6IHSGY.js → chunk-DPKEVI6Q.js} +1 -1
  17. package/dist/{chunk-ZKUUYDOQ.cjs → chunk-EFJIVMMM.cjs} +21 -21
  18. package/dist/{chunk-SI2ENZ3O.js → chunk-F2DBWJK3.js} +1 -1
  19. package/dist/{chunk-Z37B4W7B.js → chunk-HIQ3FPBN.js} +1 -1
  20. package/dist/{chunk-RO5VPM3P.cjs → chunk-HVI3SKIH.cjs} +278 -55
  21. package/dist/{chunk-GV6P24NY.cjs → chunk-ISRXIKDS.cjs} +4 -4
  22. package/dist/{chunk-QVROTSA5.cjs → chunk-J7MLMW6O.cjs} +2 -2
  23. package/dist/{chunk-PVGSY24V.js → chunk-LDNCERLU.js} +7 -0
  24. package/dist/{chunk-S6WRT7GI.cjs → chunk-LRMKKZ6M.cjs} +2 -2
  25. package/dist/{chunk-BBAQW23O.cjs → chunk-OLSQRA2V.cjs} +7 -0
  26. package/dist/chunk-Q65UGFQK.cjs +70 -0
  27. package/dist/{chunk-ZAXPU6F2.cjs → chunk-QQ3KHYKE.cjs} +35 -5
  28. package/dist/{chunk-ZWYZGIV3.cjs → chunk-QQT4XTOG.cjs} +279 -73
  29. package/dist/{chunk-XUODQRSL.cjs → chunk-TGK6JO2D.cjs} +3 -3
  30. package/dist/{chunk-JYLH5IY3.cjs → chunk-VRDDTY4O.cjs} +87 -16
  31. package/dist/{chunk-SWJKOFCU.js → chunk-VZDPK54I.js} +262 -56
  32. package/dist/{chunk-HFEELWJO.js → chunk-YDGX5LRI.js} +274 -51
  33. package/dist/{chunk-7UNDRBOU.js → chunk-YLCFUSJ4.js} +86 -15
  34. package/dist/{chunk-IZGRJXUQ.js → chunk-Z7SBZ7XB.js} +1 -1
  35. package/dist/error/index.cjs +5 -5
  36. package/dist/error/index.d.cts +7 -0
  37. package/dist/error/index.d.ts +7 -0
  38. package/dist/error/index.js +1 -1
  39. package/dist/eval/index.d.cts +1 -1
  40. package/dist/eval/index.d.ts +1 -1
  41. package/dist/index.cjs +48 -48
  42. package/dist/index.d.cts +2 -2
  43. package/dist/index.d.ts +2 -2
  44. package/dist/index.js +12 -12
  45. package/dist/integration/index.d.cts +1 -1
  46. package/dist/integration/index.d.ts +1 -1
  47. package/dist/llm/index.d.cts +1 -1
  48. package/dist/llm/index.d.ts +1 -1
  49. package/dist/mastra/index.cjs +2 -2
  50. package/dist/mastra/index.d.cts +1 -1
  51. package/dist/mastra/index.d.ts +1 -1
  52. package/dist/mastra/index.js +1 -1
  53. package/dist/mcp/index.d.cts +1 -1
  54. package/dist/mcp/index.d.ts +1 -1
  55. package/dist/memory/index.cjs +4 -4
  56. package/dist/memory/index.d.cts +1 -1
  57. package/dist/memory/index.d.ts +1 -1
  58. package/dist/memory/index.js +1 -1
  59. package/dist/network/index.cjs +11 -5
  60. package/dist/network/index.d.cts +1 -1
  61. package/dist/network/index.d.ts +1 -1
  62. package/dist/network/index.js +10 -4
  63. package/dist/relevance/index.cjs +4 -4
  64. package/dist/relevance/index.d.cts +1 -1
  65. package/dist/relevance/index.d.ts +1 -1
  66. package/dist/relevance/index.js +1 -1
  67. package/dist/server/index.cjs +9 -3
  68. package/dist/server/index.d.cts +2 -2
  69. package/dist/server/index.d.ts +2 -2
  70. package/dist/server/index.js +8 -2
  71. package/dist/storage/index.cjs +12 -12
  72. package/dist/storage/index.d.cts +2 -2
  73. package/dist/storage/index.d.ts +2 -2
  74. package/dist/storage/index.js +4 -4
  75. package/dist/telemetry/index.cjs +7 -7
  76. package/dist/telemetry/index.d.cts +1 -1
  77. package/dist/telemetry/index.d.ts +1 -1
  78. package/dist/telemetry/index.js +1 -1
  79. package/dist/tools/index.d.cts +2 -2
  80. package/dist/tools/index.d.ts +2 -2
  81. package/dist/tts/index.cjs +2 -2
  82. package/dist/tts/index.js +1 -1
  83. package/dist/utils.cjs +14 -14
  84. package/dist/utils.d.cts +2 -2
  85. package/dist/utils.d.ts +2 -2
  86. package/dist/utils.js +1 -1
  87. package/dist/vector/index.cjs +2 -2
  88. package/dist/vector/index.js +1 -1
  89. package/dist/voice/index.cjs +4 -4
  90. package/dist/voice/index.d.cts +1 -1
  91. package/dist/voice/index.d.ts +1 -1
  92. package/dist/voice/index.js +1 -1
  93. package/dist/workflows/index.cjs +9 -9
  94. package/dist/workflows/index.d.cts +14 -7
  95. package/dist/workflows/index.d.ts +14 -7
  96. package/dist/workflows/index.js +1 -1
  97. package/dist/workflows/legacy/index.cjs +22 -22
  98. package/dist/workflows/legacy/index.d.cts +2 -2
  99. package/dist/workflows/legacy/index.d.ts +2 -2
  100. package/dist/workflows/legacy/index.js +1 -1
  101. package/package.json +3 -3
  102. package/dist/chunk-IM7CLVLZ.js +0 -43
  103. package/dist/chunk-LEK3J7YN.cjs +0 -45
package/dist/index.cjs CHANGED
@@ -1,25 +1,25 @@
1
1
  'use strict';
2
2
 
3
- var chunkS6WRT7GI_cjs = require('./chunk-S6WRT7GI.cjs');
4
- var chunkLEK3J7YN_cjs = require('./chunk-LEK3J7YN.cjs');
5
- var chunkVB4S54R3_cjs = require('./chunk-VB4S54R3.cjs');
6
- var chunkPUG7THT5_cjs = require('./chunk-PUG7THT5.cjs');
7
- var chunkHGPLTKJA_cjs = require('./chunk-HGPLTKJA.cjs');
8
- var chunkZKUUYDOQ_cjs = require('./chunk-ZKUUYDOQ.cjs');
3
+ var chunkLRMKKZ6M_cjs = require('./chunk-LRMKKZ6M.cjs');
4
+ var chunkQ65UGFQK_cjs = require('./chunk-Q65UGFQK.cjs');
5
+ var chunk7L56W43N_cjs = require('./chunk-7L56W43N.cjs');
6
+ var chunk6EMFDXAQ_cjs = require('./chunk-6EMFDXAQ.cjs');
7
+ var chunkD2ULEJL3_cjs = require('./chunk-D2ULEJL3.cjs');
8
+ var chunkEFJIVMMM_cjs = require('./chunk-EFJIVMMM.cjs');
9
9
  var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
10
10
  var chunkB7SQOKEC_cjs = require('./chunk-B7SQOKEC.cjs');
11
11
  var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
12
- var chunkGV6P24NY_cjs = require('./chunk-GV6P24NY.cjs');
13
- var chunkZWYZGIV3_cjs = require('./chunk-ZWYZGIV3.cjs');
12
+ var chunkISRXIKDS_cjs = require('./chunk-ISRXIKDS.cjs');
13
+ var chunkQQT4XTOG_cjs = require('./chunk-QQT4XTOG.cjs');
14
14
  var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
15
- var chunkZAXPU6F2_cjs = require('./chunk-ZAXPU6F2.cjs');
16
- var chunkQVROTSA5_cjs = require('./chunk-QVROTSA5.cjs');
15
+ var chunkQQ3KHYKE_cjs = require('./chunk-QQ3KHYKE.cjs');
16
+ var chunkJ7MLMW6O_cjs = require('./chunk-J7MLMW6O.cjs');
17
17
  var chunk4Z3OU5RY_cjs = require('./chunk-4Z3OU5RY.cjs');
18
18
  var chunkZZLBNB3U_cjs = require('./chunk-ZZLBNB3U.cjs');
19
19
  var chunkP3Q73CAW_cjs = require('./chunk-P3Q73CAW.cjs');
20
20
 
21
21
  // src/agent/index.warning.ts
22
- var Agent2 = class extends chunkZWYZGIV3_cjs.Agent {
22
+ var Agent2 = class extends chunkQQT4XTOG_cjs.Agent {
23
23
  constructor(config) {
24
24
  super(config);
25
25
  this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
@@ -43,7 +43,7 @@ var MastraDeployer2 = class extends chunkZZLBNB3U_cjs.MastraDeployer {
43
43
  };
44
44
 
45
45
  // src/storage/base.warning.ts
46
- var MastraStorage2 = class extends chunkZKUUYDOQ_cjs.MastraStorage {
46
+ var MastraStorage2 = class extends chunkEFJIVMMM_cjs.MastraStorage {
47
47
  constructor({ name }) {
48
48
  super({
49
49
  name
@@ -69,7 +69,7 @@ var OpenAPIToolset2 = class extends chunkB7SQOKEC_cjs.OpenAPIToolset {
69
69
  };
70
70
 
71
71
  // src/memory/index.warning.ts
72
- var MastraMemory2 = class extends chunkPUG7THT5_cjs.MastraMemory {
72
+ var MastraMemory2 = class extends chunk6EMFDXAQ_cjs.MastraMemory {
73
73
  constructor(_arg) {
74
74
  super({ name: `Deprecated memory` });
75
75
  this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
@@ -85,7 +85,7 @@ var Tool2 = class extends chunk4Z3OU5RY_cjs.Tool {
85
85
  };
86
86
 
87
87
  // src/tts/index.warning.ts
88
- var MastraTTS2 = class extends chunkS6WRT7GI_cjs.MastraTTS {
88
+ var MastraTTS2 = class extends chunkLRMKKZ6M_cjs.MastraTTS {
89
89
  constructor(args) {
90
90
  super(args);
91
91
  this.logger.warn('Please import "MastraTTS" from "@mastra/core/tts" instead of "@mastra/core"');
@@ -93,7 +93,7 @@ var MastraTTS2 = class extends chunkS6WRT7GI_cjs.MastraTTS {
93
93
  };
94
94
 
95
95
  // src/vector/index.warning.ts
96
- var MastraVector2 = class extends chunkLEK3J7YN_cjs.MastraVector {
96
+ var MastraVector2 = class extends chunkQ65UGFQK_cjs.MastraVector {
97
97
  constructor() {
98
98
  super();
99
99
  this.logger.warn('Please import "MastraVector" from "@mastra/core/vector" instead of "@mastra/core"');
@@ -101,7 +101,7 @@ var MastraVector2 = class extends chunkLEK3J7YN_cjs.MastraVector {
101
101
  };
102
102
 
103
103
  // src/workflows/workflow.warning.ts
104
- var Workflow2 = class extends chunkVB4S54R3_cjs.Workflow {
104
+ var Workflow2 = class extends chunk7L56W43N_cjs.Workflow {
105
105
  constructor(args) {
106
106
  super(args);
107
107
  this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
@@ -110,51 +110,51 @@ var Workflow2 = class extends chunkVB4S54R3_cjs.Workflow {
110
110
 
111
111
  Object.defineProperty(exports, "DefaultExecutionEngine", {
112
112
  enumerable: true,
113
- get: function () { return chunkVB4S54R3_cjs.DefaultExecutionEngine; }
113
+ get: function () { return chunk7L56W43N_cjs.DefaultExecutionEngine; }
114
114
  });
115
115
  Object.defineProperty(exports, "ExecutionEngine", {
116
116
  enumerable: true,
117
- get: function () { return chunkVB4S54R3_cjs.ExecutionEngine; }
117
+ get: function () { return chunk7L56W43N_cjs.ExecutionEngine; }
118
118
  });
119
119
  Object.defineProperty(exports, "Run", {
120
120
  enumerable: true,
121
- get: function () { return chunkVB4S54R3_cjs.Run; }
121
+ get: function () { return chunk7L56W43N_cjs.Run; }
122
122
  });
123
123
  Object.defineProperty(exports, "cloneStep", {
124
124
  enumerable: true,
125
- get: function () { return chunkVB4S54R3_cjs.cloneStep; }
125
+ get: function () { return chunk7L56W43N_cjs.cloneStep; }
126
126
  });
127
127
  Object.defineProperty(exports, "cloneWorkflow", {
128
128
  enumerable: true,
129
- get: function () { return chunkVB4S54R3_cjs.cloneWorkflow; }
129
+ get: function () { return chunk7L56W43N_cjs.cloneWorkflow; }
130
130
  });
131
131
  Object.defineProperty(exports, "createStep", {
132
132
  enumerable: true,
133
- get: function () { return chunkVB4S54R3_cjs.createStep; }
133
+ get: function () { return chunk7L56W43N_cjs.createStep; }
134
134
  });
135
135
  Object.defineProperty(exports, "createWorkflow", {
136
136
  enumerable: true,
137
- get: function () { return chunkVB4S54R3_cjs.createWorkflow; }
137
+ get: function () { return chunk7L56W43N_cjs.createWorkflow; }
138
138
  });
139
139
  Object.defineProperty(exports, "MemoryProcessor", {
140
140
  enumerable: true,
141
- get: function () { return chunkPUG7THT5_cjs.MemoryProcessor; }
141
+ get: function () { return chunk6EMFDXAQ_cjs.MemoryProcessor; }
142
142
  });
143
143
  Object.defineProperty(exports, "memoryDefaultOptions", {
144
144
  enumerable: true,
145
- get: function () { return chunkPUG7THT5_cjs.memoryDefaultOptions; }
145
+ get: function () { return chunk6EMFDXAQ_cjs.memoryDefaultOptions; }
146
146
  });
147
147
  Object.defineProperty(exports, "CohereRelevanceScorer", {
148
148
  enumerable: true,
149
- get: function () { return chunkHGPLTKJA_cjs.CohereRelevanceScorer; }
149
+ get: function () { return chunkD2ULEJL3_cjs.CohereRelevanceScorer; }
150
150
  });
151
151
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
152
152
  enumerable: true,
153
- get: function () { return chunkHGPLTKJA_cjs.MastraAgentRelevanceScorer; }
153
+ get: function () { return chunkD2ULEJL3_cjs.MastraAgentRelevanceScorer; }
154
154
  });
155
155
  Object.defineProperty(exports, "createSimilarityPrompt", {
156
156
  enumerable: true,
157
- get: function () { return chunkHGPLTKJA_cjs.createSimilarityPrompt; }
157
+ get: function () { return chunkD2ULEJL3_cjs.createSimilarityPrompt; }
158
158
  });
159
159
  Object.defineProperty(exports, "Metric", {
160
160
  enumerable: true,
@@ -170,7 +170,7 @@ Object.defineProperty(exports, "createMockModel", {
170
170
  });
171
171
  Object.defineProperty(exports, "Mastra", {
172
172
  enumerable: true,
173
- get: function () { return chunkGV6P24NY_cjs.Mastra; }
173
+ get: function () { return chunkISRXIKDS_cjs.Mastra; }
174
174
  });
175
175
  Object.defineProperty(exports, "AvailableHooks", {
176
176
  enumerable: true,
@@ -186,79 +186,79 @@ Object.defineProperty(exports, "registerHook", {
186
186
  });
187
187
  Object.defineProperty(exports, "InstrumentClass", {
188
188
  enumerable: true,
189
- get: function () { return chunkZAXPU6F2_cjs.InstrumentClass; }
189
+ get: function () { return chunkQQ3KHYKE_cjs.InstrumentClass; }
190
190
  });
191
191
  Object.defineProperty(exports, "OTLPStorageExporter", {
192
192
  enumerable: true,
193
- get: function () { return chunkZAXPU6F2_cjs.OTLPTraceExporter; }
193
+ get: function () { return chunkQQ3KHYKE_cjs.OTLPTraceExporter; }
194
194
  });
195
195
  Object.defineProperty(exports, "Telemetry", {
196
196
  enumerable: true,
197
- get: function () { return chunkZAXPU6F2_cjs.Telemetry; }
197
+ get: function () { return chunkQQ3KHYKE_cjs.Telemetry; }
198
198
  });
199
199
  Object.defineProperty(exports, "getBaggageValues", {
200
200
  enumerable: true,
201
- get: function () { return chunkZAXPU6F2_cjs.getBaggageValues; }
201
+ get: function () { return chunkQQ3KHYKE_cjs.getBaggageValues; }
202
202
  });
203
203
  Object.defineProperty(exports, "hasActiveTelemetry", {
204
204
  enumerable: true,
205
- get: function () { return chunkZAXPU6F2_cjs.hasActiveTelemetry; }
205
+ get: function () { return chunkQQ3KHYKE_cjs.hasActiveTelemetry; }
206
206
  });
207
207
  Object.defineProperty(exports, "withSpan", {
208
208
  enumerable: true,
209
- get: function () { return chunkZAXPU6F2_cjs.withSpan; }
209
+ get: function () { return chunkQQ3KHYKE_cjs.withSpan; }
210
210
  });
211
211
  Object.defineProperty(exports, "checkEvalStorageFields", {
212
212
  enumerable: true,
213
- get: function () { return chunkQVROTSA5_cjs.checkEvalStorageFields; }
213
+ get: function () { return chunkJ7MLMW6O_cjs.checkEvalStorageFields; }
214
214
  });
215
215
  Object.defineProperty(exports, "createMastraProxy", {
216
216
  enumerable: true,
217
- get: function () { return chunkQVROTSA5_cjs.createMastraProxy; }
217
+ get: function () { return chunkJ7MLMW6O_cjs.createMastraProxy; }
218
218
  });
219
219
  Object.defineProperty(exports, "deepMerge", {
220
220
  enumerable: true,
221
- get: function () { return chunkQVROTSA5_cjs.deepMerge; }
221
+ get: function () { return chunkJ7MLMW6O_cjs.deepMerge; }
222
222
  });
223
223
  Object.defineProperty(exports, "delay", {
224
224
  enumerable: true,
225
- get: function () { return chunkQVROTSA5_cjs.delay; }
225
+ get: function () { return chunkJ7MLMW6O_cjs.delay; }
226
226
  });
227
227
  Object.defineProperty(exports, "ensureToolProperties", {
228
228
  enumerable: true,
229
- get: function () { return chunkQVROTSA5_cjs.ensureToolProperties; }
229
+ get: function () { return chunkJ7MLMW6O_cjs.ensureToolProperties; }
230
230
  });
231
231
  Object.defineProperty(exports, "isCoreMessage", {
232
232
  enumerable: true,
233
- get: function () { return chunkQVROTSA5_cjs.isCoreMessage; }
233
+ get: function () { return chunkJ7MLMW6O_cjs.isCoreMessage; }
234
234
  });
235
235
  Object.defineProperty(exports, "isUiMessage", {
236
236
  enumerable: true,
237
- get: function () { return chunkQVROTSA5_cjs.isUiMessage; }
237
+ get: function () { return chunkJ7MLMW6O_cjs.isUiMessage; }
238
238
  });
239
239
  Object.defineProperty(exports, "isZodType", {
240
240
  enumerable: true,
241
- get: function () { return chunkQVROTSA5_cjs.isZodType; }
241
+ get: function () { return chunkJ7MLMW6O_cjs.isZodType; }
242
242
  });
243
243
  Object.defineProperty(exports, "makeCoreTool", {
244
244
  enumerable: true,
245
- get: function () { return chunkQVROTSA5_cjs.makeCoreTool; }
245
+ get: function () { return chunkJ7MLMW6O_cjs.makeCoreTool; }
246
246
  });
247
247
  Object.defineProperty(exports, "maskStreamTags", {
248
248
  enumerable: true,
249
- get: function () { return chunkQVROTSA5_cjs.maskStreamTags; }
249
+ get: function () { return chunkJ7MLMW6O_cjs.maskStreamTags; }
250
250
  });
251
251
  Object.defineProperty(exports, "parseFieldKey", {
252
252
  enumerable: true,
253
- get: function () { return chunkQVROTSA5_cjs.parseFieldKey; }
253
+ get: function () { return chunkJ7MLMW6O_cjs.parseFieldKey; }
254
254
  });
255
255
  Object.defineProperty(exports, "parseSqlIdentifier", {
256
256
  enumerable: true,
257
- get: function () { return chunkQVROTSA5_cjs.parseSqlIdentifier; }
257
+ get: function () { return chunkJ7MLMW6O_cjs.parseSqlIdentifier; }
258
258
  });
259
259
  Object.defineProperty(exports, "resolveSerializedZodOutput", {
260
260
  enumerable: true,
261
- get: function () { return chunkQVROTSA5_cjs.resolveSerializedZodOutput; }
261
+ get: function () { return chunkJ7MLMW6O_cjs.resolveSerializedZodOutput; }
262
262
  });
263
263
  Object.defineProperty(exports, "createTool", {
264
264
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { M as Metric } from './types-Bo1uigWx.cjs';
2
2
  export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.cjs';
3
- import { c as ToolAction, A as Agent$1, as as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ar as ToolExecutionContext, ao as Tool$1, f as Step, e as Workflow$1, at as WorkflowConfig } from './base-Bdc5hWla.cjs';
4
- export { aC as BaseStructuredOutputType, aT as Config, ax as CoreAssistantMessage, av as CoreMessage, aw as CoreSystemMessage, C as CoreTool, az as CoreToolMessage, ay as CoreUserMessage, aM as DefaultLLMStreamObjectOptions, aL as DefaultLLMStreamOptions, aK as DefaultLLMTextObjectOptions, aJ as DefaultLLMTextOptions, bi as DynamicMapping, aB as EmbedManyResult, aA as EmbedResult, E as EvalRow, bb as ExecuteFunction, ba as ExecutionEngine, b9 as ExecutionGraph, bl as ExtractSchemaFromStep, bk as ExtractSchemaType, aG as GenerateReturn, aq as InternalCoreTool, aQ as LLMInnerStreamOptions, aR as LLMStreamObjectOptions, aP as LLMStreamOptions, aO as LLMTextObjectOptions, aN as LLMTextOptions, au as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aW as MemoryConfig, a_ as MemoryProcessor, aZ as MemoryProcessorOpts, aV as MessageResponse, aU as MessageType, aI as OutputType, z as PaginationArgs, P as PaginationInfo, bj as PathsToStringProps, b8 as Run, b1 as SerializedStep, b2 as SerializedStepFlowEntry, aX as SharedMemoryConfig, bd as StepFailure, b0 as StepFlowEntry, bg as StepResult, bf as StepRunning, bc as StepSuccess, be as StepSuspended, bh as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, B as StorageGetTracesArg, r as StorageThreadType, bn as StreamEvent, aH as StreamReturn, aF as StructuredOutput, aE as StructuredOutputArrayItem, aD as StructuredOutputType, aY as TraceType, bm as VariableReference, V as VercelTool, bo as WatchEvent, b7 as WorkflowResult, w as WorkflowRun, bq as WorkflowRunState, v as WorkflowRuns, bp as ZodPathType, b4 as cloneStep, b6 as cloneWorkflow, aS as createMockModel, b3 as createStep, ap as createTool, b5 as createWorkflow, a$ as memoryDefaultOptions } from './base-Bdc5hWla.cjs';
3
+ import { c as ToolAction, A as Agent$1, at as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, as as ToolExecutionContext, ap as Tool$1, f as Step, e as Workflow$1, au as WorkflowConfig } from './base-_mZ6e_qo.cjs';
4
+ export { aD as BaseStructuredOutputType, aU as Config, ay as CoreAssistantMessage, aw as CoreMessage, ax as CoreSystemMessage, C as CoreTool, aA as CoreToolMessage, az as CoreUserMessage, D as DefaultEngineType, aN as DefaultLLMStreamObjectOptions, aM as DefaultLLMStreamOptions, aL as DefaultLLMTextObjectOptions, aK as DefaultLLMTextOptions, bj as DynamicMapping, aC as EmbedManyResult, aB as EmbedResult, E as EvalRow, bc as ExecuteFunction, bb as ExecutionEngine, ba as ExecutionGraph, bm as ExtractSchemaFromStep, bl as ExtractSchemaType, aH as GenerateReturn, ar as InternalCoreTool, aR as LLMInnerStreamOptions, aS as LLMStreamObjectOptions, aQ as LLMStreamOptions, aP as LLMTextObjectOptions, aO as LLMTextOptions, av as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aX as MemoryConfig, a$ as MemoryProcessor, a_ as MemoryProcessorOpts, aW as MessageResponse, aV as MessageType, aJ as OutputType, z as PaginationArgs, P as PaginationInfo, bk as PathsToStringProps, b9 as Run, b2 as SerializedStep, b3 as SerializedStepFlowEntry, aY as SharedMemoryConfig, be as StepFailure, b1 as StepFlowEntry, bh as StepResult, bg as StepRunning, bd as StepSuccess, bf as StepSuspended, bi as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, B as StorageGetTracesArg, r as StorageThreadType, bo as StreamEvent, aI as StreamReturn, aG as StructuredOutput, aF as StructuredOutputArrayItem, aE as StructuredOutputType, aZ as TraceType, bn as VariableReference, V as VercelTool, bp as WatchEvent, b8 as WorkflowResult, w as WorkflowRun, br as WorkflowRunState, v as WorkflowRuns, bq as ZodPathType, b5 as cloneStep, b7 as cloneWorkflow, aT as createMockModel, b4 as createStep, aq as createTool, b6 as createWorkflow, b0 as memoryDefaultOptions } from './base-_mZ6e_qo.cjs';
5
5
  import { M as MastraBase$1 } from './base-DVVTzIQy.cjs';
6
6
  export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from './base-DVVTzIQy.cjs';
7
7
  import { R as RegisteredLogger } from './logger-CpL0z5v_.cjs';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { M as Metric } from './types-Bo1uigWx.js';
2
2
  export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.js';
3
- import { c as ToolAction, A as Agent$1, as as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ar as ToolExecutionContext, ao as Tool$1, f as Step, e as Workflow$1, at as WorkflowConfig } from './base-icHjkcs-.js';
4
- export { aC as BaseStructuredOutputType, aT as Config, ax as CoreAssistantMessage, av as CoreMessage, aw as CoreSystemMessage, C as CoreTool, az as CoreToolMessage, ay as CoreUserMessage, aM as DefaultLLMStreamObjectOptions, aL as DefaultLLMStreamOptions, aK as DefaultLLMTextObjectOptions, aJ as DefaultLLMTextOptions, bi as DynamicMapping, aB as EmbedManyResult, aA as EmbedResult, E as EvalRow, bb as ExecuteFunction, ba as ExecutionEngine, b9 as ExecutionGraph, bl as ExtractSchemaFromStep, bk as ExtractSchemaType, aG as GenerateReturn, aq as InternalCoreTool, aQ as LLMInnerStreamOptions, aR as LLMStreamObjectOptions, aP as LLMStreamOptions, aO as LLMTextObjectOptions, aN as LLMTextOptions, au as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aW as MemoryConfig, a_ as MemoryProcessor, aZ as MemoryProcessorOpts, aV as MessageResponse, aU as MessageType, aI as OutputType, z as PaginationArgs, P as PaginationInfo, bj as PathsToStringProps, b8 as Run, b1 as SerializedStep, b2 as SerializedStepFlowEntry, aX as SharedMemoryConfig, bd as StepFailure, b0 as StepFlowEntry, bg as StepResult, bf as StepRunning, bc as StepSuccess, be as StepSuspended, bh as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, B as StorageGetTracesArg, r as StorageThreadType, bn as StreamEvent, aH as StreamReturn, aF as StructuredOutput, aE as StructuredOutputArrayItem, aD as StructuredOutputType, aY as TraceType, bm as VariableReference, V as VercelTool, bo as WatchEvent, b7 as WorkflowResult, w as WorkflowRun, bq as WorkflowRunState, v as WorkflowRuns, bp as ZodPathType, b4 as cloneStep, b6 as cloneWorkflow, aS as createMockModel, b3 as createStep, ap as createTool, b5 as createWorkflow, a$ as memoryDefaultOptions } from './base-icHjkcs-.js';
3
+ import { c as ToolAction, A as Agent$1, at as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, as as ToolExecutionContext, ap as Tool$1, f as Step, e as Workflow$1, au as WorkflowConfig } from './base-CmIdgTSq.js';
4
+ export { aD as BaseStructuredOutputType, aU as Config, ay as CoreAssistantMessage, aw as CoreMessage, ax as CoreSystemMessage, C as CoreTool, aA as CoreToolMessage, az as CoreUserMessage, D as DefaultEngineType, aN as DefaultLLMStreamObjectOptions, aM as DefaultLLMStreamOptions, aL as DefaultLLMTextObjectOptions, aK as DefaultLLMTextOptions, bj as DynamicMapping, aC as EmbedManyResult, aB as EmbedResult, E as EvalRow, bc as ExecuteFunction, bb as ExecutionEngine, ba as ExecutionGraph, bm as ExtractSchemaFromStep, bl as ExtractSchemaType, aH as GenerateReturn, ar as InternalCoreTool, aR as LLMInnerStreamOptions, aS as LLMStreamObjectOptions, aQ as LLMStreamOptions, aP as LLMTextObjectOptions, aO as LLMTextOptions, av as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aX as MemoryConfig, a$ as MemoryProcessor, a_ as MemoryProcessorOpts, aW as MessageResponse, aV as MessageType, aJ as OutputType, z as PaginationArgs, P as PaginationInfo, bk as PathsToStringProps, b9 as Run, b2 as SerializedStep, b3 as SerializedStepFlowEntry, aY as SharedMemoryConfig, be as StepFailure, b1 as StepFlowEntry, bh as StepResult, bg as StepRunning, bd as StepSuccess, bf as StepSuspended, bi as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, B as StorageGetTracesArg, r as StorageThreadType, bo as StreamEvent, aI as StreamReturn, aG as StructuredOutput, aF as StructuredOutputArrayItem, aE as StructuredOutputType, aZ as TraceType, bn as VariableReference, V as VercelTool, bp as WatchEvent, b8 as WorkflowResult, w as WorkflowRun, br as WorkflowRunState, v as WorkflowRuns, bq as ZodPathType, b5 as cloneStep, b7 as cloneWorkflow, aT as createMockModel, b4 as createStep, aq as createTool, b6 as createWorkflow, b0 as memoryDefaultOptions } from './base-CmIdgTSq.js';
5
5
  import { M as MastraBase$1 } from './base-BbdvunNJ.js';
6
6
  export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from './base-BbdvunNJ.js';
7
7
  import { R as RegisteredLogger } from './logger-DtVDdb81.js';
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
- import { MastraTTS } from './chunk-SI2ENZ3O.js';
2
- import { MastraVector } from './chunk-IM7CLVLZ.js';
3
- import { Workflow } from './chunk-UFQERGWG.js';
4
- export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-UFQERGWG.js';
5
- import { MastraMemory } from './chunk-I2KL5KMY.js';
6
- export { MemoryProcessor, memoryDefaultOptions } from './chunk-I2KL5KMY.js';
7
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-Z37B4W7B.js';
8
- import { MastraStorage } from './chunk-62ZSDIUK.js';
1
+ import { MastraTTS } from './chunk-F2DBWJK3.js';
2
+ import { MastraVector } from './chunk-2RZXEVWT.js';
3
+ import { Workflow } from './chunk-32XBQVNY.js';
4
+ export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-32XBQVNY.js';
5
+ import { MastraMemory } from './chunk-CMEK3A3W.js';
6
+ export { MemoryProcessor, memoryDefaultOptions } from './chunk-CMEK3A3W.js';
7
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-HIQ3FPBN.js';
8
+ import { MastraStorage } from './chunk-BMED2N3R.js';
9
9
  export { Metric, evaluate } from './chunk-PK5QRKSG.js';
10
10
  import { Integration, OpenAPIToolset } from './chunk-4UWPFBC6.js';
11
11
  export { createMockModel } from './chunk-HNEE7IF4.js';
12
- export { Mastra } from './chunk-IZGRJXUQ.js';
13
- import { Agent } from './chunk-SWJKOFCU.js';
12
+ export { Mastra } from './chunk-Z7SBZ7XB.js';
13
+ import { Agent } from './chunk-VZDPK54I.js';
14
14
  export { AvailableHooks, executeHook, registerHook } from './chunk-BB4KXGBU.js';
15
- export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-36UICULV.js';
16
- export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-TRJIWZKM.js';
15
+ export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-6PQRSQZF.js';
16
+ export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-3SY7GRSA.js';
17
17
  import { Tool } from './chunk-C4LMN2IR.js';
18
18
  export { createTool } from './chunk-C4LMN2IR.js';
19
19
  import { MastraDeployer } from './chunk-JNMQKJH4.js';
@@ -1,5 +1,5 @@
1
1
  import '../base-DVVTzIQy.cjs';
2
- import { e as Workflow, c as ToolAction } from '../base-Bdc5hWla.cjs';
2
+ import { e as Workflow, c as ToolAction } from '../base-_mZ6e_qo.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../logger-CpL0z5v_.cjs';
5
5
  import '../error/index.cjs';
@@ -1,5 +1,5 @@
1
1
  import '../base-BbdvunNJ.js';
2
- import { e as Workflow, c as ToolAction } from '../base-icHjkcs-.js';
2
+ import { e as Workflow, c as ToolAction } from '../base-CmIdgTSq.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../logger-DtVDdb81.js';
5
5
  import '../error/index.js';
@@ -1,7 +1,7 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { aC as BaseStructuredOutputType, ax as CoreAssistantMessage, av as CoreMessage, aw as CoreSystemMessage, az as CoreToolMessage, ay as CoreUserMessage, aM as DefaultLLMStreamObjectOptions, aL as DefaultLLMStreamOptions, aK as DefaultLLMTextObjectOptions, aJ as DefaultLLMTextOptions, aB as EmbedManyResult, aA as EmbedResult, aG as GenerateReturn, aQ as LLMInnerStreamOptions, aR as LLMStreamObjectOptions, aP as LLMStreamOptions, aO as LLMTextObjectOptions, aN as LLMTextOptions, au as LanguageModel, aI as OutputType, aH as StreamReturn, aF as StructuredOutput, aE as StructuredOutputArrayItem, aD as StructuredOutputType, aS as createMockModel } from '../base-Bdc5hWla.cjs';
4
+ export { aD as BaseStructuredOutputType, ay as CoreAssistantMessage, aw as CoreMessage, ax as CoreSystemMessage, aA as CoreToolMessage, az as CoreUserMessage, aN as DefaultLLMStreamObjectOptions, aM as DefaultLLMStreamOptions, aL as DefaultLLMTextObjectOptions, aK as DefaultLLMTextOptions, aC as EmbedManyResult, aB as EmbedResult, aH as GenerateReturn, aR as LLMInnerStreamOptions, aS as LLMStreamObjectOptions, aQ as LLMStreamOptions, aP as LLMTextObjectOptions, aO as LLMTextOptions, av as LanguageModel, aJ as OutputType, aI as StreamReturn, aG as StructuredOutput, aF as StructuredOutputArrayItem, aE as StructuredOutputType, aT as createMockModel } from '../base-_mZ6e_qo.cjs';
5
5
  import '../runtime-context/index.cjs';
6
6
  import '../base-DVVTzIQy.cjs';
7
7
  import '@opentelemetry/api';
@@ -1,7 +1,7 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { aC as BaseStructuredOutputType, ax as CoreAssistantMessage, av as CoreMessage, aw as CoreSystemMessage, az as CoreToolMessage, ay as CoreUserMessage, aM as DefaultLLMStreamObjectOptions, aL as DefaultLLMStreamOptions, aK as DefaultLLMTextObjectOptions, aJ as DefaultLLMTextOptions, aB as EmbedManyResult, aA as EmbedResult, aG as GenerateReturn, aQ as LLMInnerStreamOptions, aR as LLMStreamObjectOptions, aP as LLMStreamOptions, aO as LLMTextObjectOptions, aN as LLMTextOptions, au as LanguageModel, aI as OutputType, aH as StreamReturn, aF as StructuredOutput, aE as StructuredOutputArrayItem, aD as StructuredOutputType, aS as createMockModel } from '../base-icHjkcs-.js';
4
+ export { aD as BaseStructuredOutputType, ay as CoreAssistantMessage, aw as CoreMessage, ax as CoreSystemMessage, aA as CoreToolMessage, az as CoreUserMessage, aN as DefaultLLMStreamObjectOptions, aM as DefaultLLMStreamOptions, aL as DefaultLLMTextObjectOptions, aK as DefaultLLMTextOptions, aC as EmbedManyResult, aB as EmbedResult, aH as GenerateReturn, aR as LLMInnerStreamOptions, aS as LLMStreamObjectOptions, aQ as LLMStreamOptions, aP as LLMTextObjectOptions, aO as LLMTextOptions, av as LanguageModel, aJ as OutputType, aI as StreamReturn, aG as StructuredOutput, aF as StructuredOutputArrayItem, aE as StructuredOutputType, aT as createMockModel } from '../base-CmIdgTSq.js';
5
5
  import '../runtime-context/index.js';
6
6
  import '../base-BbdvunNJ.js';
7
7
  import '@opentelemetry/api';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkGV6P24NY_cjs = require('../chunk-GV6P24NY.cjs');
3
+ var chunkISRXIKDS_cjs = require('../chunk-ISRXIKDS.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Mastra", {
8
8
  enumerable: true,
9
- get: function () { return chunkGV6P24NY_cjs.Mastra; }
9
+ get: function () { return chunkISRXIKDS_cjs.Mastra; }
10
10
  });
@@ -1,5 +1,5 @@
1
1
  import '../logger-CpL0z5v_.cjs';
2
- export { aT as Config, M as Mastra } from '../base-Bdc5hWla.cjs';
2
+ export { aU as Config, M as Mastra } from '../base-_mZ6e_qo.cjs';
3
3
  import '../deployer/index.cjs';
4
4
  import '../vector/index.cjs';
5
5
  import '../base-DVVTzIQy.cjs';
@@ -1,5 +1,5 @@
1
1
  import '../logger-DtVDdb81.js';
2
- export { aT as Config, M as Mastra } from '../base-icHjkcs-.js';
2
+ export { aU as Config, M as Mastra } from '../base-CmIdgTSq.js';
3
3
  import '../deployer/index.js';
4
4
  import '../vector/index.js';
5
5
  import '../base-BbdvunNJ.js';
@@ -1 +1 @@
1
- export { Mastra } from '../chunk-IZGRJXUQ.js';
1
+ export { Mastra } from '../chunk-Z7SBZ7XB.js';
@@ -1,4 +1,4 @@
1
- export { bF as ArgumentInfo, bJ as CommandInfo, bz as ConvertedTool, bK as EnvironmentVariableInfo, h as MCPServerBase, bN as MCPServerConfig, bC as MCPServerHTTPOptions, bB as MCPServerHonoSSEOptions, bA as MCPServerSSEOptions, bQ as MCPToolType, bH as NamedArgumentInfo, bL as PackageInfo, bG as PositionalArgumentInfo, bM as RemoteInfo, bD as Repository, bP as ServerDetailInfo, bO as ServerInfo, bI as SubcommandInfo, bE as VersionDetail } from '../base-Bdc5hWla.cjs';
1
+ export { bG as ArgumentInfo, bK as CommandInfo, bA as ConvertedTool, bL as EnvironmentVariableInfo, h as MCPServerBase, bO as MCPServerConfig, bD as MCPServerHTTPOptions, bC as MCPServerHonoSSEOptions, bB as MCPServerSSEOptions, bR as MCPToolType, bI as NamedArgumentInfo, bM as PackageInfo, bH as PositionalArgumentInfo, bN as RemoteInfo, bE as Repository, bQ as ServerDetailInfo, bP as ServerInfo, bJ as SubcommandInfo, bF as VersionDetail } from '../base-_mZ6e_qo.cjs';
2
2
  import '../base-DVVTzIQy.cjs';
3
3
  import 'ai';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- export { bF as ArgumentInfo, bJ as CommandInfo, bz as ConvertedTool, bK as EnvironmentVariableInfo, h as MCPServerBase, bN as MCPServerConfig, bC as MCPServerHTTPOptions, bB as MCPServerHonoSSEOptions, bA as MCPServerSSEOptions, bQ as MCPToolType, bH as NamedArgumentInfo, bL as PackageInfo, bG as PositionalArgumentInfo, bM as RemoteInfo, bD as Repository, bP as ServerDetailInfo, bO as ServerInfo, bI as SubcommandInfo, bE as VersionDetail } from '../base-icHjkcs-.js';
1
+ export { bG as ArgumentInfo, bK as CommandInfo, bA as ConvertedTool, bL as EnvironmentVariableInfo, h as MCPServerBase, bO as MCPServerConfig, bD as MCPServerHTTPOptions, bC as MCPServerHonoSSEOptions, bB as MCPServerSSEOptions, bR as MCPToolType, bI as NamedArgumentInfo, bM as PackageInfo, bH as PositionalArgumentInfo, bN as RemoteInfo, bE as Repository, bQ as ServerDetailInfo, bP as ServerInfo, bJ as SubcommandInfo, bF as VersionDetail } from '../base-CmIdgTSq.js';
2
2
  import '../base-BbdvunNJ.js';
3
3
  import 'ai';
4
4
  import 'zod';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkPUG7THT5_cjs = require('../chunk-PUG7THT5.cjs');
3
+ var chunk6EMFDXAQ_cjs = require('../chunk-6EMFDXAQ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraMemory", {
8
8
  enumerable: true,
9
- get: function () { return chunkPUG7THT5_cjs.MastraMemory; }
9
+ get: function () { return chunk6EMFDXAQ_cjs.MastraMemory; }
10
10
  });
11
11
  Object.defineProperty(exports, "MemoryProcessor", {
12
12
  enumerable: true,
13
- get: function () { return chunkPUG7THT5_cjs.MemoryProcessor; }
13
+ get: function () { return chunk6EMFDXAQ_cjs.MemoryProcessor; }
14
14
  });
15
15
  Object.defineProperty(exports, "memoryDefaultOptions", {
16
16
  enumerable: true,
17
- get: function () { return chunkPUG7THT5_cjs.memoryDefaultOptions; }
17
+ get: function () { return chunk6EMFDXAQ_cjs.memoryDefaultOptions; }
18
18
  });
@@ -1,4 +1,4 @@
1
- export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aW as MemoryConfig, a_ as MemoryProcessor, aZ as MemoryProcessorOpts, aV as MessageResponse, aU as MessageType, aX as SharedMemoryConfig, r as StorageThreadType, aY as TraceType, a$ as memoryDefaultOptions } from '../base-Bdc5hWla.cjs';
1
+ export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aX as MemoryConfig, a$ as MemoryProcessor, a_ as MemoryProcessorOpts, aW as MessageResponse, aV as MessageType, aY as SharedMemoryConfig, r as StorageThreadType, aZ as TraceType, b0 as memoryDefaultOptions } from '../base-_mZ6e_qo.cjs';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-DVVTzIQy.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aW as MemoryConfig, a_ as MemoryProcessor, aZ as MemoryProcessorOpts, aV as MessageResponse, aU as MessageType, aX as SharedMemoryConfig, r as StorageThreadType, aY as TraceType, a$ as memoryDefaultOptions } from '../base-icHjkcs-.js';
1
+ export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aX as MemoryConfig, a$ as MemoryProcessor, a_ as MemoryProcessorOpts, aW as MessageResponse, aV as MessageType, aY as SharedMemoryConfig, r as StorageThreadType, aZ as TraceType, b0 as memoryDefaultOptions } from '../base-CmIdgTSq.js';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-BbdvunNJ.js';
4
4
  import '@opentelemetry/api';
@@ -1 +1 @@
1
- export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-I2KL5KMY.js';
1
+ export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-CMEK3A3W.js';
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkZWYZGIV3_cjs = require('../chunk-ZWYZGIV3.cjs');
3
+ var chunkQQT4XTOG_cjs = require('../chunk-QQT4XTOG.cjs');
4
4
  var chunk4Z3OU5RY_cjs = require('../chunk-4Z3OU5RY.cjs');
5
+ var chunkOLSQRA2V_cjs = require('../chunk-OLSQRA2V.cjs');
5
6
  var chunkP3Q73CAW_cjs = require('../chunk-P3Q73CAW.cjs');
6
7
  var chunkZIZ3CVHN_cjs = require('../chunk-ZIZ3CVHN.cjs');
7
8
  var zod = require('zod');
@@ -17,7 +18,7 @@ var AgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
17
18
  this.#instructions = config.instructions;
18
19
  this.#agents = config.agents;
19
20
  this.#model = config.model;
20
- this.#routingAgent = new chunkZWYZGIV3_cjs.Agent({
21
+ this.#routingAgent = new chunkQQT4XTOG_cjs.Agent({
21
22
  name: config.name,
22
23
  instructions: this.getInstructions(),
23
24
  model: this.#model,
@@ -139,9 +140,14 @@ var AgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
139
140
  try {
140
141
  const agent = this.#agents.find((agent2) => this.formatAgentId(agent2.name) === agentId);
141
142
  if (!agent) {
142
- throw new Error(
143
- `Agent "${agentId}" not found. Available agents: ${this.#agents.map((a) => this.formatAgentId(a.name)).join(", ")}`
144
- );
143
+ const error = new chunkOLSQRA2V_cjs.MastraError({
144
+ id: "AGENT_NETWORK_EXECUTE_UNKNOWN_AGENT",
145
+ domain: "AGENT_NETWORK" /* AGENT_NETWORK */,
146
+ category: "USER" /* USER */,
147
+ text: `Agent "${agentId}" not found.`
148
+ });
149
+ this.logger.trackException?.(error);
150
+ throw error;
145
151
  }
146
152
  let messagesWithContext = [...input];
147
153
  if (includeHistory) {
@@ -1,4 +1,4 @@
1
- export { g as AgentNetwork, by as AgentNetworkConfig } from '../base-Bdc5hWla.cjs';
1
+ export { g as AgentNetwork, bz as AgentNetworkConfig } from '../base-_mZ6e_qo.cjs';
2
2
  import 'ai';
3
3
  import '../base-DVVTzIQy.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { g as AgentNetwork, by as AgentNetworkConfig } from '../base-icHjkcs-.js';
1
+ export { g as AgentNetwork, bz as AgentNetworkConfig } from '../base-CmIdgTSq.js';
2
2
  import 'ai';
3
3
  import '../base-BbdvunNJ.js';
4
4
  import '@opentelemetry/api';
@@ -1,5 +1,6 @@
1
- import { Agent } from '../chunk-SWJKOFCU.js';
1
+ import { Agent } from '../chunk-VZDPK54I.js';
2
2
  import { createTool } from '../chunk-C4LMN2IR.js';
3
+ import { MastraError } from '../chunk-LDNCERLU.js';
3
4
  import { MastraBase } from '../chunk-5IEKR756.js';
4
5
  import { RegisteredLogger } from '../chunk-5YDTZN2X.js';
5
6
  import { z } from 'zod';
@@ -137,9 +138,14 @@ var AgentNetwork = class extends MastraBase {
137
138
  try {
138
139
  const agent = this.#agents.find((agent2) => this.formatAgentId(agent2.name) === agentId);
139
140
  if (!agent) {
140
- throw new Error(
141
- `Agent "${agentId}" not found. Available agents: ${this.#agents.map((a) => this.formatAgentId(a.name)).join(", ")}`
142
- );
141
+ const error = new MastraError({
142
+ id: "AGENT_NETWORK_EXECUTE_UNKNOWN_AGENT",
143
+ domain: "AGENT_NETWORK" /* AGENT_NETWORK */,
144
+ category: "USER" /* USER */,
145
+ text: `Agent "${agentId}" not found.`
146
+ });
147
+ this.logger.trackException?.(error);
148
+ throw error;
143
149
  }
144
150
  let messagesWithContext = [...input];
145
151
  if (includeHistory) {
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkHGPLTKJA_cjs = require('../chunk-HGPLTKJA.cjs');
3
+ var chunkD2ULEJL3_cjs = require('../chunk-D2ULEJL3.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CohereRelevanceScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunkHGPLTKJA_cjs.CohereRelevanceScorer; }
9
+ get: function () { return chunkD2ULEJL3_cjs.CohereRelevanceScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
12
12
  enumerable: true,
13
- get: function () { return chunkHGPLTKJA_cjs.MastraAgentRelevanceScorer; }
13
+ get: function () { return chunkD2ULEJL3_cjs.MastraAgentRelevanceScorer; }
14
14
  });
15
15
  Object.defineProperty(exports, "createSimilarityPrompt", {
16
16
  enumerable: true,
17
- get: function () { return chunkHGPLTKJA_cjs.createSimilarityPrompt; }
17
+ get: function () { return chunkD2ULEJL3_cjs.createSimilarityPrompt; }
18
18
  });
@@ -1,4 +1,4 @@
1
- import { br as MastraLanguageModel } from '../base-Bdc5hWla.cjs';
1
+ import { bs as MastraLanguageModel } from '../base-_mZ6e_qo.cjs';
2
2
  import '../base-DVVTzIQy.cjs';
3
3
  import 'ai';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { br as MastraLanguageModel } from '../base-icHjkcs-.js';
1
+ import { bs as MastraLanguageModel } from '../base-CmIdgTSq.js';
2
2
  import '../base-BbdvunNJ.js';
3
3
  import 'ai';
4
4
  import 'zod';
@@ -1 +1 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-Z37B4W7B.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-HIQ3FPBN.js';
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkZAXPU6F2_cjs = require('../chunk-ZAXPU6F2.cjs');
3
+ var chunkQQ3KHYKE_cjs = require('../chunk-QQ3KHYKE.cjs');
4
+ var chunkOLSQRA2V_cjs = require('../chunk-OLSQRA2V.cjs');
4
5
  var chunkP3Q73CAW_cjs = require('../chunk-P3Q73CAW.cjs');
5
6
  var chunkRWTSGWWL_cjs = require('../chunk-RWTSGWWL.cjs');
6
7
 
7
8
  // src/server/auth.ts
8
9
  var _MastraAuthProvider_decorators, _init, _a;
9
- _MastraAuthProvider_decorators = [chunkZAXPU6F2_cjs.InstrumentClass({
10
+ _MastraAuthProvider_decorators = [chunkQQ3KHYKE_cjs.InstrumentClass({
10
11
  prefix: "auth",
11
12
  excludeMethods: ["__setTools", "__setLogger", "__setTelemetry", "#log"]
12
13
  })];
@@ -37,7 +38,12 @@ exports.MastraAuthProvider = /*@__PURE__*/(_ => {
37
38
  // src/server/index.ts
38
39
  function registerApiRoute(path, options) {
39
40
  if (path.startsWith("/api/")) {
40
- throw new Error(`Path must not start with "/api", it's reserved for internal API routes`);
41
+ throw new chunkOLSQRA2V_cjs.MastraError({
42
+ id: "MASTRA_SERVER_API_PATH_RESERVED",
43
+ text: `Path must not start with "/api", it's reserved for internal API routes`,
44
+ domain: "MASTRA_SERVER" /* MASTRA_SERVER */,
45
+ category: "USER" /* USER */
46
+ });
41
47
  }
42
48
  return {
43
49
  path,