@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.
- package/dist/agent/index.cjs +4 -4
- package/dist/agent/index.d.cts +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +2 -2
- package/dist/{base-icHjkcs-.d.ts → base-CmIdgTSq.d.ts} +37 -31
- package/dist/{base-Bdc5hWla.d.cts → base-_mZ6e_qo.d.cts} +37 -31
- package/dist/chunk-2RZXEVWT.js +68 -0
- package/dist/{chunk-UFQERGWG.js → chunk-32XBQVNY.js} +117 -28
- package/dist/{chunk-TRJIWZKM.js → chunk-3SY7GRSA.js} +1 -1
- package/dist/{chunk-PUG7THT5.cjs → chunk-6EMFDXAQ.cjs} +4 -4
- package/dist/{chunk-36UICULV.js → chunk-6PQRSQZF.js} +35 -5
- package/dist/{chunk-VB4S54R3.cjs → chunk-7L56W43N.cjs} +118 -29
- package/dist/{chunk-62ZSDIUK.js → chunk-BMED2N3R.js} +1 -1
- package/dist/{chunk-I2KL5KMY.js → chunk-CMEK3A3W.js} +2 -2
- package/dist/{chunk-HGPLTKJA.cjs → chunk-D2ULEJL3.cjs} +2 -2
- package/dist/{chunk-AX6IHSGY.js → chunk-DPKEVI6Q.js} +1 -1
- package/dist/{chunk-ZKUUYDOQ.cjs → chunk-EFJIVMMM.cjs} +21 -21
- package/dist/{chunk-SI2ENZ3O.js → chunk-F2DBWJK3.js} +1 -1
- package/dist/{chunk-Z37B4W7B.js → chunk-HIQ3FPBN.js} +1 -1
- package/dist/{chunk-RO5VPM3P.cjs → chunk-HVI3SKIH.cjs} +278 -55
- package/dist/{chunk-GV6P24NY.cjs → chunk-ISRXIKDS.cjs} +4 -4
- package/dist/{chunk-QVROTSA5.cjs → chunk-J7MLMW6O.cjs} +2 -2
- package/dist/{chunk-PVGSY24V.js → chunk-LDNCERLU.js} +7 -0
- package/dist/{chunk-S6WRT7GI.cjs → chunk-LRMKKZ6M.cjs} +2 -2
- package/dist/{chunk-BBAQW23O.cjs → chunk-OLSQRA2V.cjs} +7 -0
- package/dist/chunk-Q65UGFQK.cjs +70 -0
- package/dist/{chunk-ZAXPU6F2.cjs → chunk-QQ3KHYKE.cjs} +35 -5
- package/dist/{chunk-ZWYZGIV3.cjs → chunk-QQT4XTOG.cjs} +279 -73
- package/dist/{chunk-XUODQRSL.cjs → chunk-TGK6JO2D.cjs} +3 -3
- package/dist/{chunk-JYLH5IY3.cjs → chunk-VRDDTY4O.cjs} +87 -16
- package/dist/{chunk-SWJKOFCU.js → chunk-VZDPK54I.js} +262 -56
- package/dist/{chunk-HFEELWJO.js → chunk-YDGX5LRI.js} +274 -51
- package/dist/{chunk-7UNDRBOU.js → chunk-YLCFUSJ4.js} +86 -15
- package/dist/{chunk-IZGRJXUQ.js → chunk-Z7SBZ7XB.js} +1 -1
- package/dist/error/index.cjs +5 -5
- package/dist/error/index.d.cts +7 -0
- package/dist/error/index.d.ts +7 -0
- package/dist/error/index.js +1 -1
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/index.cjs +48 -48
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -12
- package/dist/integration/index.d.cts +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/llm/index.d.cts +1 -1
- package/dist/llm/index.d.ts +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.ts +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.d.cts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.d.cts +1 -1
- package/dist/memory/index.d.ts +1 -1
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +11 -5
- package/dist/network/index.d.cts +1 -1
- package/dist/network/index.d.ts +1 -1
- package/dist/network/index.js +10 -4
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +1 -1
- package/dist/relevance/index.d.ts +1 -1
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.cjs +9 -3
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +8 -2
- package/dist/storage/index.cjs +12 -12
- package/dist/storage/index.d.cts +2 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.js +4 -4
- package/dist/telemetry/index.cjs +7 -7
- package/dist/telemetry/index.d.cts +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/tools/index.d.cts +2 -2
- package/dist/tools/index.d.ts +2 -2
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/utils.cjs +14 -14
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.js +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.d.cts +1 -1
- package/dist/voice/index.d.ts +1 -1
- package/dist/voice/index.js +1 -1
- package/dist/workflows/index.cjs +9 -9
- package/dist/workflows/index.d.cts +14 -7
- package/dist/workflows/index.d.ts +14 -7
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.d.cts +2 -2
- package/dist/workflows/legacy/index.d.ts +2 -2
- package/dist/workflows/legacy/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-IM7CLVLZ.js +0 -43
- package/dist/chunk-LEK3J7YN.cjs +0 -45
package/dist/index.cjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
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
|
|
13
|
-
var
|
|
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
|
|
16
|
-
var
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
113
|
+
get: function () { return chunk7L56W43N_cjs.DefaultExecutionEngine; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunk7L56W43N_cjs.ExecutionEngine; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "Run", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunk7L56W43N_cjs.Run; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "cloneStep", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunk7L56W43N_cjs.cloneStep; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunk7L56W43N_cjs.cloneWorkflow; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "createStep", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunk7L56W43N_cjs.createStep; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "createWorkflow", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunk7L56W43N_cjs.createWorkflow; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunk6EMFDXAQ_cjs.MemoryProcessor; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunk6EMFDXAQ_cjs.memoryDefaultOptions; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkD2ULEJL3_cjs.CohereRelevanceScorer; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkD2ULEJL3_cjs.MastraAgentRelevanceScorer; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
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
|
|
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
|
|
189
|
+
get: function () { return chunkQQ3KHYKE_cjs.InstrumentClass; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "OTLPStorageExporter", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkQQ3KHYKE_cjs.OTLPTraceExporter; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "Telemetry", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkQQ3KHYKE_cjs.Telemetry; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "getBaggageValues", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkQQ3KHYKE_cjs.getBaggageValues; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "hasActiveTelemetry", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkQQ3KHYKE_cjs.hasActiveTelemetry; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "withSpan", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkQQ3KHYKE_cjs.withSpan; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "checkEvalStorageFields", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkJ7MLMW6O_cjs.checkEvalStorageFields; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkJ7MLMW6O_cjs.createMastraProxy; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "deepMerge", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkJ7MLMW6O_cjs.deepMerge; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "delay", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkJ7MLMW6O_cjs.delay; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkJ7MLMW6O_cjs.ensureToolProperties; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "isCoreMessage", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkJ7MLMW6O_cjs.isCoreMessage; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "isUiMessage", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkJ7MLMW6O_cjs.isUiMessage; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "isZodType", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkJ7MLMW6O_cjs.isZodType; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkJ7MLMW6O_cjs.makeCoreTool; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkJ7MLMW6O_cjs.maskStreamTags; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "parseFieldKey", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkJ7MLMW6O_cjs.parseFieldKey; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkJ7MLMW6O_cjs.parseSqlIdentifier; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
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,
|
|
4
|
-
export {
|
|
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,
|
|
4
|
-
export {
|
|
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-
|
|
2
|
-
import { MastraVector } from './chunk-
|
|
3
|
-
import { Workflow } from './chunk-
|
|
4
|
-
export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-
|
|
5
|
-
import { MastraMemory } from './chunk-
|
|
6
|
-
export { MemoryProcessor, memoryDefaultOptions } from './chunk-
|
|
7
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-
|
|
8
|
-
import { MastraStorage } from './chunk-
|
|
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-
|
|
13
|
-
import { Agent } from './chunk-
|
|
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-
|
|
16
|
-
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-
|
|
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-
|
|
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';
|
package/dist/llm/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
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';
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
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';
|
package/dist/mastra/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
9
|
+
get: function () { return chunkISRXIKDS_cjs.Mastra; }
|
|
10
10
|
});
|
package/dist/mastra/index.d.cts
CHANGED
package/dist/mastra/index.d.ts
CHANGED
package/dist/mastra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Mastra } from '../chunk-
|
|
1
|
+
export { Mastra } from '../chunk-Z7SBZ7XB.js';
|
package/dist/mcp/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
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';
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
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';
|
package/dist/memory/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
9
|
+
get: function () { return chunk6EMFDXAQ_cjs.MastraMemory; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6EMFDXAQ_cjs.MemoryProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6EMFDXAQ_cjs.memoryDefaultOptions; }
|
|
18
18
|
});
|
package/dist/memory/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2,
|
|
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';
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2,
|
|
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';
|
package/dist/memory/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-
|
|
1
|
+
export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-CMEK3A3W.js';
|
package/dist/network/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
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
|
-
|
|
143
|
-
|
|
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) {
|
package/dist/network/index.d.cts
CHANGED
package/dist/network/index.d.ts
CHANGED
package/dist/network/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Agent } from '../chunk-
|
|
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
|
-
|
|
141
|
-
|
|
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) {
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
9
|
+
get: function () { return chunkD2ULEJL3_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkD2ULEJL3_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkD2ULEJL3_cjs.createSimilarityPrompt; }
|
|
18
18
|
});
|
package/dist/relevance/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-HIQ3FPBN.js';
|
package/dist/server/index.cjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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 = [
|
|
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
|
|
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,
|