@mastra/core 0.5.0 → 0.6.0-alpha.1

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 (59) hide show
  1. package/dist/agent/index.cjs +2 -2
  2. package/dist/agent/index.d.cts +1 -1
  3. package/dist/agent/index.d.ts +1 -1
  4. package/dist/agent/index.js +1 -1
  5. package/dist/{base-C_Oq53qk.d.ts → base-DA1J3qra.d.ts} +18 -8
  6. package/dist/{base-CIPKleAU.d.cts → base-zjGki2_Z.d.cts} +18 -8
  7. package/dist/{chunk-YPD6BQIM.js → chunk-22HQQDJZ.js} +36 -53
  8. package/dist/chunk-3LURIF6I.cjs +90 -0
  9. package/dist/{chunk-OD7ZMKHY.js → chunk-6ZHR5KIP.js} +93 -42
  10. package/dist/{chunk-KFQ7Z3PO.cjs → chunk-B3KTSEC5.cjs} +2 -2
  11. package/dist/{chunk-XF2FMJYK.js → chunk-DGYFNGOC.js} +1 -1
  12. package/dist/chunk-GMAMAKLH.js +88 -0
  13. package/dist/{chunk-OTFLHXHZ.cjs → chunk-L5BNMAC3.cjs} +2 -2
  14. package/dist/{chunk-KP5UAFLN.js → chunk-LTLNGEL2.js} +3 -1
  15. package/dist/{chunk-MLFXOST6.js → chunk-MLKXBAQG.js} +2 -2
  16. package/dist/{chunk-UZNQG7QO.cjs → chunk-N2G5ZI42.cjs} +93 -42
  17. package/dist/{chunk-3ASEZT7U.cjs → chunk-WX2ECXAE.cjs} +3 -1
  18. package/dist/{chunk-GXQRMKSN.cjs → chunk-XLZRGA3F.cjs} +35 -52
  19. package/dist/eval/index.d.cts +1 -1
  20. package/dist/eval/index.d.ts +1 -1
  21. package/dist/index.cjs +27 -27
  22. package/dist/index.d.cts +2 -2
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.js +6 -6
  25. package/dist/integration/index.d.cts +1 -1
  26. package/dist/integration/index.d.ts +1 -1
  27. package/dist/llm/index.d.cts +1 -1
  28. package/dist/llm/index.d.ts +1 -1
  29. package/dist/mastra/index.cjs +2 -2
  30. package/dist/mastra/index.d.cts +1 -1
  31. package/dist/mastra/index.d.ts +1 -1
  32. package/dist/mastra/index.js +1 -1
  33. package/dist/memory/index.cjs +2 -2
  34. package/dist/memory/index.d.cts +1 -1
  35. package/dist/memory/index.d.ts +1 -1
  36. package/dist/memory/index.js +1 -1
  37. package/dist/relevance/index.cjs +4 -4
  38. package/dist/relevance/index.d.cts +1 -1
  39. package/dist/relevance/index.d.ts +1 -1
  40. package/dist/relevance/index.js +1 -1
  41. package/dist/storage/index.d.cts +1 -1
  42. package/dist/storage/index.d.ts +1 -1
  43. package/dist/storage/libsql/index.cjs +440 -10
  44. package/dist/storage/libsql/index.d.cts +1 -1
  45. package/dist/storage/libsql/index.d.ts +1 -1
  46. package/dist/storage/libsql/index.js +441 -1
  47. package/dist/telemetry/index.d.cts +1 -1
  48. package/dist/telemetry/index.d.ts +1 -1
  49. package/dist/tools/index.d.cts +2 -2
  50. package/dist/tools/index.d.ts +2 -2
  51. package/dist/utils.d.cts +1 -1
  52. package/dist/utils.d.ts +1 -1
  53. package/dist/workflows/index.cjs +17 -17
  54. package/dist/workflows/index.d.cts +2 -2
  55. package/dist/workflows/index.d.ts +2 -2
  56. package/dist/workflows/index.js +1 -1
  57. package/package.json +5 -5
  58. package/dist/chunk-QAZ2ONKM.js +0 -441
  59. package/dist/chunk-VA4P7QJT.cjs +0 -443
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkVA4P7QJT_cjs = require('./chunk-VA4P7QJT.cjs');
3
+ var chunk3LURIF6I_cjs = require('./chunk-3LURIF6I.cjs');
4
4
  var chunkXB2TJ7LX_cjs = require('./chunk-XB2TJ7LX.cjs');
5
5
  var chunkWB2HREXE_cjs = require('./chunk-WB2HREXE.cjs');
6
6
  var chunkRWTSGWWL_cjs = require('./chunk-RWTSGWWL.cjs');
@@ -20,19 +20,25 @@ exports.Mastra = class Mastra {
20
20
  #deployer;
21
21
  #serverMiddleware = [];
22
22
  #telemetry;
23
+ #storage;
24
+ #memory;
23
25
  /**
24
- * @deprecated use getStorage() instead
26
+ * @deprecated use getTelemetry() instead
25
27
  */
26
- storage;
28
+ get telemetry() {
29
+ return this.#telemetry;
30
+ }
27
31
  /**
28
- * @deprecated use getMemory() instead
32
+ * @deprecated use getStorage() instead
29
33
  */
30
- memory;
34
+ get storage() {
35
+ return this.#storage;
36
+ }
31
37
  /**
32
- * @deprecated use getTelemetry() instead
38
+ * @deprecated use getMemory() instead
33
39
  */
34
- get telemetry() {
35
- return this.#telemetry;
40
+ get memory() {
41
+ return this.#memory;
36
42
  }
37
43
  constructor(config) {
38
44
  if (config?.serverMiddleware) {
@@ -58,43 +64,20 @@ exports.Mastra = class Mastra {
58
64
  this.#logger = logger;
59
65
  let storage = config?.storage;
60
66
  if (!storage) {
61
- storage = new chunkVA4P7QJT_cjs.LibSQLStore({
67
+ storage = new chunk3LURIF6I_cjs.DefaultProxyStorage({
62
68
  config: {
63
69
  url: process.env.MASTRA_DEFAULT_STORAGE_URL || `:memory:`
64
70
  }
65
71
  });
66
72
  }
67
- if (storage instanceof chunkVA4P7QJT_cjs.LibSQLStore && config?.telemetry?.export?.type !== "custom") {
68
- const newTelemetry = {
69
- ...(config?.telemetry || {}),
70
- export: {
71
- type: "custom",
72
- exporter: new chunkXB2TJ7LX_cjs.OTLPTraceExporter({
73
- logger: this.getLogger(),
74
- storage
75
- })
76
- }
77
- };
78
- this.#telemetry = chunkXB2TJ7LX_cjs.Telemetry.init(newTelemetry);
79
- } else if (config?.telemetry) {
80
- this.#telemetry = chunkXB2TJ7LX_cjs.Telemetry.init(config?.telemetry);
81
- }
82
- if (config?.deployer) {
83
- this.#deployer = config.deployer;
84
- if (this.#telemetry) {
85
- this.#deployer = this.#telemetry.traceClass(config.deployer, {
86
- excludeMethods: ["__setTelemetry", "__getTelemetry"]
87
- });
88
- this.#deployer.__setTelemetry(this.#telemetry);
89
- }
90
- }
73
+ this.#telemetry = chunkXB2TJ7LX_cjs.Telemetry.init(config?.telemetry);
91
74
  if (this.#telemetry) {
92
- this.storage = this.#telemetry.traceClass(storage, {
75
+ this.#storage = this.#telemetry.traceClass(storage, {
93
76
  excludeMethods: ["__setTelemetry", "__getTelemetry"]
94
77
  });
95
- this.storage.__setTelemetry(this.#telemetry);
78
+ this.#storage.__setTelemetry(this.#telemetry);
96
79
  } else {
97
- this.storage = storage;
80
+ this.#storage = storage;
98
81
  }
99
82
  if (config?.vectors) {
100
83
  let vectors = {};
@@ -114,12 +97,12 @@ exports.Mastra = class Mastra {
114
97
  this.#vectors = config.vectors;
115
98
  }
116
99
  if (config?.memory) {
117
- this.memory = config.memory;
100
+ this.#memory = config.memory;
118
101
  if (this.#telemetry) {
119
- this.memory = this.#telemetry.traceClass(config.memory, {
102
+ this.#memory = this.#telemetry.traceClass(config.memory, {
120
103
  excludeMethods: ["__setTelemetry", "__getTelemetry"]
121
104
  });
122
- this.memory.__setTelemetry(this.#telemetry);
105
+ this.#memory.__setTelemetry(this.#telemetry);
123
106
  }
124
107
  }
125
108
  if (config && `memory` in config) {
@@ -239,7 +222,7 @@ This is a warning for now, but will throw an error in the future
239
222
  return this.#workflows;
240
223
  }
241
224
  setStorage(storage) {
242
- this.storage = storage;
225
+ this.#storage = storage;
243
226
  }
244
227
  setLogger({
245
228
  logger
@@ -250,8 +233,8 @@ This is a warning for now, but will throw an error in the future
250
233
  this.#agents?.[key]?.__setLogger(this.#logger);
251
234
  });
252
235
  }
253
- if (this.memory) {
254
- this.memory.__setLogger(this.#logger);
236
+ if (this.#memory) {
237
+ this.#memory.__setLogger(this.#logger);
255
238
  }
256
239
  if (this.#deployer) {
257
240
  this.#deployer.__setLogger(this.#logger);
@@ -261,8 +244,8 @@ This is a warning for now, but will throw an error in the future
261
244
  this.#tts?.[key]?.__setLogger(this.#logger);
262
245
  });
263
246
  }
264
- if (this.storage) {
265
- this.storage.__setLogger(this.#logger);
247
+ if (this.#storage) {
248
+ this.#storage.__setLogger(this.#logger);
266
249
  }
267
250
  if (this.#vectors) {
268
251
  Object.keys(this.#vectors).forEach(key => {
@@ -279,11 +262,11 @@ This is a warning for now, but will throw an error in the future
279
262
  }
280
263
  });
281
264
  }
282
- if (this.memory) {
283
- this.memory = this.#telemetry.traceClass(this.memory, {
265
+ if (this.#memory) {
266
+ this.#memory = this.#telemetry.traceClass(this.#memory, {
284
267
  excludeMethods: ["__setTelemetry", "__getTelemetry"]
285
268
  });
286
- this.memory.__setTelemetry(this.#telemetry);
269
+ this.#memory.__setTelemetry(this.#telemetry);
287
270
  }
288
271
  if (this.#deployer) {
289
272
  this.#deployer = this.#telemetry.traceClass(this.#deployer, {
@@ -303,11 +286,11 @@ This is a warning for now, but will throw an error in the future
303
286
  });
304
287
  this.#tts = tts;
305
288
  }
306
- if (this.storage) {
307
- this.storage = this.#telemetry.traceClass(this.storage, {
289
+ if (this.#storage) {
290
+ this.#storage = this.#telemetry.traceClass(this.#storage, {
308
291
  excludeMethods: ["__setTelemetry", "__getTelemetry"]
309
292
  });
310
- this.storage.__setTelemetry(this.#telemetry);
293
+ this.#storage.__setTelemetry(this.#telemetry);
311
294
  }
312
295
  if (this.#vectors) {
313
296
  let vectors = {};
@@ -332,10 +315,10 @@ This is a warning for now, but will throw an error in the future
332
315
  return this.#telemetry;
333
316
  }
334
317
  getMemory() {
335
- return this.memory;
318
+ return this.#memory;
336
319
  }
337
320
  getStorage() {
338
- return this.storage;
321
+ return this.#storage;
339
322
  }
340
323
  getServerMiddleware() {
341
324
  return this.#serverMiddleware;
@@ -1,5 +1,5 @@
1
1
  import { M as Metric, T as TestInfo, a as MetricResult } from '../types-CwTG2XyQ.cjs';
2
- import { A as Agent } from '../base-CIPKleAU.cjs';
2
+ import { A as Agent } from '../base-zjGki2_Z.cjs';
3
3
  import 'ai';
4
4
  import '../base-DboIg_Cd.cjs';
5
5
  import '@opentelemetry/api';
@@ -1,5 +1,5 @@
1
1
  import { M as Metric, T as TestInfo, a as MetricResult } from '../types-CwTG2XyQ.js';
2
- import { A as Agent } from '../base-C_Oq53qk.js';
2
+ import { A as Agent } from '../base-DA1J3qra.js';
3
3
  import 'ai';
4
4
  import '../base-BZViaFTt.js';
5
5
  import '@opentelemetry/api';
package/dist/index.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkHJPMYDWO_cjs = require('./chunk-HJPMYDWO.cjs');
4
- var chunkUZNQG7QO_cjs = require('./chunk-UZNQG7QO.cjs');
4
+ var chunkN2G5ZI42_cjs = require('./chunk-N2G5ZI42.cjs');
5
5
  var chunkXLSROQ26_cjs = require('./chunk-XLSROQ26.cjs');
6
- var chunkGXQRMKSN_cjs = require('./chunk-GXQRMKSN.cjs');
7
- var chunkKFQ7Z3PO_cjs = require('./chunk-KFQ7Z3PO.cjs');
6
+ var chunkXLZRGA3F_cjs = require('./chunk-XLZRGA3F.cjs');
7
+ var chunkB3KTSEC5_cjs = require('./chunk-B3KTSEC5.cjs');
8
8
  var chunkENT7U27Y_cjs = require('./chunk-ENT7U27Y.cjs');
9
- var chunkOTFLHXHZ_cjs = require('./chunk-OTFLHXHZ.cjs');
9
+ var chunkL5BNMAC3_cjs = require('./chunk-L5BNMAC3.cjs');
10
10
  var chunkFL3GQXQ2_cjs = require('./chunk-FL3GQXQ2.cjs');
11
- var chunk3ASEZT7U_cjs = require('./chunk-3ASEZT7U.cjs');
11
+ var chunkWX2ECXAE_cjs = require('./chunk-WX2ECXAE.cjs');
12
12
  var chunkXB2TJ7LX_cjs = require('./chunk-XB2TJ7LX.cjs');
13
13
  var chunk43Y7WG5W_cjs = require('./chunk-43Y7WG5W.cjs');
14
14
  var chunk2W2GYEYQ_cjs = require('./chunk-2W2GYEYQ.cjs');
@@ -19,7 +19,7 @@ var chunkV5ORZPFW_cjs = require('./chunk-V5ORZPFW.cjs');
19
19
  var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
20
20
 
21
21
  // src/agent/index.warning.ts
22
- var Agent2 = class extends chunk3ASEZT7U_cjs.Agent {
22
+ var Agent2 = class extends chunkWX2ECXAE_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"');
@@ -75,7 +75,7 @@ function createLogger2(options) {
75
75
  }
76
76
 
77
77
  // src/memory/index.warning.ts
78
- var MastraMemory2 = class extends chunkKFQ7Z3PO_cjs.MastraMemory {
78
+ var MastraMemory2 = class extends chunkB3KTSEC5_cjs.MastraMemory {
79
79
  constructor(_arg) {
80
80
  super({ name: `Deprecated memory` });
81
81
  this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
@@ -107,7 +107,7 @@ var MastraVector2 = class extends chunkENT7U27Y_cjs.MastraVector {
107
107
  };
108
108
 
109
109
  // src/workflows/workflow.warning.ts
110
- var Workflow2 = class extends chunkUZNQG7QO_cjs.Workflow {
110
+ var Workflow2 = class extends chunkN2G5ZI42_cjs.Workflow {
111
111
  constructor(args) {
112
112
  super(args);
113
113
  this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
@@ -116,79 +116,79 @@ var Workflow2 = class extends chunkUZNQG7QO_cjs.Workflow {
116
116
 
117
117
  Object.defineProperty(exports, "Step", {
118
118
  enumerable: true,
119
- get: function () { return chunkUZNQG7QO_cjs.Step; }
119
+ get: function () { return chunkN2G5ZI42_cjs.Step; }
120
120
  });
121
121
  Object.defineProperty(exports, "WhenConditionReturnValue", {
122
122
  enumerable: true,
123
- get: function () { return chunkUZNQG7QO_cjs.WhenConditionReturnValue; }
123
+ get: function () { return chunkN2G5ZI42_cjs.WhenConditionReturnValue; }
124
124
  });
125
125
  Object.defineProperty(exports, "createStep", {
126
126
  enumerable: true,
127
- get: function () { return chunkUZNQG7QO_cjs.createStep; }
127
+ get: function () { return chunkN2G5ZI42_cjs.createStep; }
128
128
  });
129
129
  Object.defineProperty(exports, "getActivePathsAndStatus", {
130
130
  enumerable: true,
131
- get: function () { return chunkUZNQG7QO_cjs.getActivePathsAndStatus; }
131
+ get: function () { return chunkN2G5ZI42_cjs.getActivePathsAndStatus; }
132
132
  });
133
133
  Object.defineProperty(exports, "getResultActivePaths", {
134
134
  enumerable: true,
135
- get: function () { return chunkUZNQG7QO_cjs.getResultActivePaths; }
135
+ get: function () { return chunkN2G5ZI42_cjs.getResultActivePaths; }
136
136
  });
137
137
  Object.defineProperty(exports, "getStepResult", {
138
138
  enumerable: true,
139
- get: function () { return chunkUZNQG7QO_cjs.getStepResult; }
139
+ get: function () { return chunkN2G5ZI42_cjs.getStepResult; }
140
140
  });
141
141
  Object.defineProperty(exports, "getSuspendedPaths", {
142
142
  enumerable: true,
143
- get: function () { return chunkUZNQG7QO_cjs.getSuspendedPaths; }
143
+ get: function () { return chunkN2G5ZI42_cjs.getSuspendedPaths; }
144
144
  });
145
145
  Object.defineProperty(exports, "isErrorEvent", {
146
146
  enumerable: true,
147
- get: function () { return chunkUZNQG7QO_cjs.isErrorEvent; }
147
+ get: function () { return chunkN2G5ZI42_cjs.isErrorEvent; }
148
148
  });
149
149
  Object.defineProperty(exports, "isFinalState", {
150
150
  enumerable: true,
151
- get: function () { return chunkUZNQG7QO_cjs.isFinalState; }
151
+ get: function () { return chunkN2G5ZI42_cjs.isFinalState; }
152
152
  });
153
153
  Object.defineProperty(exports, "isLimboState", {
154
154
  enumerable: true,
155
- get: function () { return chunkUZNQG7QO_cjs.isLimboState; }
155
+ get: function () { return chunkN2G5ZI42_cjs.isLimboState; }
156
156
  });
157
157
  Object.defineProperty(exports, "isTransitionEvent", {
158
158
  enumerable: true,
159
- get: function () { return chunkUZNQG7QO_cjs.isTransitionEvent; }
159
+ get: function () { return chunkN2G5ZI42_cjs.isTransitionEvent; }
160
160
  });
161
161
  Object.defineProperty(exports, "isVariableReference", {
162
162
  enumerable: true,
163
- get: function () { return chunkUZNQG7QO_cjs.isVariableReference; }
163
+ get: function () { return chunkN2G5ZI42_cjs.isVariableReference; }
164
164
  });
165
165
  Object.defineProperty(exports, "mergeChildValue", {
166
166
  enumerable: true,
167
- get: function () { return chunkUZNQG7QO_cjs.mergeChildValue; }
167
+ get: function () { return chunkN2G5ZI42_cjs.mergeChildValue; }
168
168
  });
169
169
  Object.defineProperty(exports, "recursivelyCheckForFinalState", {
170
170
  enumerable: true,
171
- get: function () { return chunkUZNQG7QO_cjs.recursivelyCheckForFinalState; }
171
+ get: function () { return chunkN2G5ZI42_cjs.recursivelyCheckForFinalState; }
172
172
  });
173
173
  Object.defineProperty(exports, "updateStepInHierarchy", {
174
174
  enumerable: true,
175
- get: function () { return chunkUZNQG7QO_cjs.updateStepInHierarchy; }
175
+ get: function () { return chunkN2G5ZI42_cjs.updateStepInHierarchy; }
176
176
  });
177
177
  Object.defineProperty(exports, "Mastra", {
178
178
  enumerable: true,
179
- get: function () { return chunkGXQRMKSN_cjs.Mastra; }
179
+ get: function () { return chunkXLZRGA3F_cjs.Mastra; }
180
180
  });
181
181
  Object.defineProperty(exports, "CohereRelevanceScorer", {
182
182
  enumerable: true,
183
- get: function () { return chunkOTFLHXHZ_cjs.CohereRelevanceScorer; }
183
+ get: function () { return chunkL5BNMAC3_cjs.CohereRelevanceScorer; }
184
184
  });
185
185
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
186
186
  enumerable: true,
187
- get: function () { return chunkOTFLHXHZ_cjs.MastraAgentRelevanceScorer; }
187
+ get: function () { return chunkL5BNMAC3_cjs.MastraAgentRelevanceScorer; }
188
188
  });
189
189
  Object.defineProperty(exports, "createSimilarityPrompt", {
190
190
  enumerable: true,
191
- get: function () { return chunkOTFLHXHZ_cjs.createSimilarityPrompt; }
191
+ get: function () { return chunkL5BNMAC3_cjs.createSimilarityPrompt; }
192
192
  });
193
193
  Object.defineProperty(exports, "InstrumentClass", {
194
194
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { M as Metric } from './types-CwTG2XyQ.cjs';
2
2
  export { a as MetricResult, T as TestInfo } from './types-CwTG2XyQ.cjs';
3
- import { T as ToolAction, A as Agent$1, l as AgentConfig, f as MastraStorage$1, c as MastraMemory$1, m as ToolExecutionContext, S as Step, W as Workflow$1, n as WorkflowOptions } from './base-CIPKleAU.cjs';
4
- export { a4 as ActionContext, a3 as BaseCondition, B as BaseStructuredOutputType, R as Config, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, C as CoreTool, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, ah as DependencyCheckOutput, v as EmbedManyResult, u as EmbedResult, E as EvalRow, ao as ExtractSchemaFromStep, ar as ExtractSchemaType, ap as ExtractStepResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, M as Mastra, X as MemoryConfig, U as MessageResponse, j as MessageType, O as OutputType, as as PathsToStringProps, ae as ResolverFunctionInput, af as ResolverFunctionOutput, a1 as RetryConfig, Y as SharedMemoryConfig, Z as StepAction, a7 as StepCondition, a8 as StepConfig, a6 as StepDef, d as StepExecutionContext, a0 as StepGraph, an as StepId, aq as StepInputType, $ as StepNode, ai as StepResolverOutput, a9 as StepResult, _ as StepVariableType, aa as StepsRecord, h as StorageColumn, k as StorageGetMessagesArg, i as StorageThreadType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType, ag as SubscriberFunctionOutput, a2 as VariableReference, V as VercelTool, a5 as WhenConditionReturnValue, ak as WorkflowActionParams, al as WorkflowActions, aj as WorkflowActors, e as WorkflowContext, ad as WorkflowEvent, ac as WorkflowLogMessage, au as WorkflowResumeResult, o as WorkflowRow, ab as WorkflowRunResult, at as WorkflowRunState, am as WorkflowState, av as createStep } from './base-CIPKleAU.cjs';
3
+ import { T as ToolAction, A as Agent$1, l as AgentConfig, f as MastraStorage$1, c as MastraMemory$1, m as ToolExecutionContext, S as Step, W as Workflow$1, n as WorkflowOptions } from './base-zjGki2_Z.cjs';
4
+ export { a4 as ActionContext, a3 as BaseCondition, B as BaseStructuredOutputType, R as Config, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, C as CoreTool, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, ah as DependencyCheckOutput, v as EmbedManyResult, u as EmbedResult, E as EvalRow, ao as ExtractSchemaFromStep, ar as ExtractSchemaType, ap as ExtractStepResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, M as Mastra, X as MemoryConfig, U as MessageResponse, j as MessageType, O as OutputType, as as PathsToStringProps, ae as ResolverFunctionInput, af as ResolverFunctionOutput, a1 as RetryConfig, Y as SharedMemoryConfig, Z as StepAction, a7 as StepCondition, a8 as StepConfig, a6 as StepDef, d as StepExecutionContext, a0 as StepGraph, an as StepId, aq as StepInputType, $ as StepNode, ai as StepResolverOutput, a9 as StepResult, _ as StepVariableType, aa as StepsRecord, h as StorageColumn, k as StorageGetMessagesArg, i as StorageThreadType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType, ag as SubscriberFunctionOutput, a2 as VariableReference, V as VercelTool, a5 as WhenConditionReturnValue, ak as WorkflowActionParams, al as WorkflowActions, aj as WorkflowActors, e as WorkflowContext, ad as WorkflowEvent, ac as WorkflowLogMessage, au as WorkflowResumeResult, o as WorkflowRow, ab as WorkflowRunResult, at as WorkflowRunState, am as WorkflowState, av as createStep } from './base-zjGki2_Z.cjs';
5
5
  import { M as MastraBase$1 } from './base-DboIg_Cd.cjs';
6
6
  export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-DboIg_Cd.cjs';
7
7
  import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-mKY1XrpK.cjs';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { M as Metric } from './types-CwTG2XyQ.js';
2
2
  export { a as MetricResult, T as TestInfo } from './types-CwTG2XyQ.js';
3
- import { T as ToolAction, A as Agent$1, l as AgentConfig, f as MastraStorage$1, c as MastraMemory$1, m as ToolExecutionContext, S as Step, W as Workflow$1, n as WorkflowOptions } from './base-C_Oq53qk.js';
4
- export { a4 as ActionContext, a3 as BaseCondition, B as BaseStructuredOutputType, R as Config, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, C as CoreTool, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, ah as DependencyCheckOutput, v as EmbedManyResult, u as EmbedResult, E as EvalRow, ao as ExtractSchemaFromStep, ar as ExtractSchemaType, ap as ExtractStepResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, M as Mastra, X as MemoryConfig, U as MessageResponse, j as MessageType, O as OutputType, as as PathsToStringProps, ae as ResolverFunctionInput, af as ResolverFunctionOutput, a1 as RetryConfig, Y as SharedMemoryConfig, Z as StepAction, a7 as StepCondition, a8 as StepConfig, a6 as StepDef, d as StepExecutionContext, a0 as StepGraph, an as StepId, aq as StepInputType, $ as StepNode, ai as StepResolverOutput, a9 as StepResult, _ as StepVariableType, aa as StepsRecord, h as StorageColumn, k as StorageGetMessagesArg, i as StorageThreadType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType, ag as SubscriberFunctionOutput, a2 as VariableReference, V as VercelTool, a5 as WhenConditionReturnValue, ak as WorkflowActionParams, al as WorkflowActions, aj as WorkflowActors, e as WorkflowContext, ad as WorkflowEvent, ac as WorkflowLogMessage, au as WorkflowResumeResult, o as WorkflowRow, ab as WorkflowRunResult, at as WorkflowRunState, am as WorkflowState, av as createStep } from './base-C_Oq53qk.js';
3
+ import { T as ToolAction, A as Agent$1, l as AgentConfig, f as MastraStorage$1, c as MastraMemory$1, m as ToolExecutionContext, S as Step, W as Workflow$1, n as WorkflowOptions } from './base-DA1J3qra.js';
4
+ export { a4 as ActionContext, a3 as BaseCondition, B as BaseStructuredOutputType, R as Config, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, C as CoreTool, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, ah as DependencyCheckOutput, v as EmbedManyResult, u as EmbedResult, E as EvalRow, ao as ExtractSchemaFromStep, ar as ExtractSchemaType, ap as ExtractStepResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, M as Mastra, X as MemoryConfig, U as MessageResponse, j as MessageType, O as OutputType, as as PathsToStringProps, ae as ResolverFunctionInput, af as ResolverFunctionOutput, a1 as RetryConfig, Y as SharedMemoryConfig, Z as StepAction, a7 as StepCondition, a8 as StepConfig, a6 as StepDef, d as StepExecutionContext, a0 as StepGraph, an as StepId, aq as StepInputType, $ as StepNode, ai as StepResolverOutput, a9 as StepResult, _ as StepVariableType, aa as StepsRecord, h as StorageColumn, k as StorageGetMessagesArg, i as StorageThreadType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType, ag as SubscriberFunctionOutput, a2 as VariableReference, V as VercelTool, a5 as WhenConditionReturnValue, ak as WorkflowActionParams, al as WorkflowActions, aj as WorkflowActors, e as WorkflowContext, ad as WorkflowEvent, ac as WorkflowLogMessage, au as WorkflowResumeResult, o as WorkflowRow, ab as WorkflowRunResult, at as WorkflowRunState, am as WorkflowState, av as createStep } from './base-DA1J3qra.js';
5
5
  import { M as MastraBase$1 } from './base-BZViaFTt.js';
6
6
  export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-BZViaFTt.js';
7
7
  import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-mKY1XrpK.js';
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { MastraTTS } from './chunk-CLJYFFOS.js';
2
- import { Workflow } from './chunk-OD7ZMKHY.js';
3
- export { Step, WhenConditionReturnValue, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from './chunk-OD7ZMKHY.js';
2
+ import { Workflow } from './chunk-6ZHR5KIP.js';
3
+ export { Step, WhenConditionReturnValue, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from './chunk-6ZHR5KIP.js';
4
4
  import { Integration, OpenAPIToolset } from './chunk-PNZK456O.js';
5
- export { Mastra } from './chunk-YPD6BQIM.js';
6
- import { MastraMemory } from './chunk-MLFXOST6.js';
5
+ export { Mastra } from './chunk-22HQQDJZ.js';
6
+ import { MastraMemory } from './chunk-MLKXBAQG.js';
7
7
  import { MastraVector } from './chunk-QLYZGX5Z.js';
8
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-XF2FMJYK.js';
8
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-DGYFNGOC.js';
9
9
  import { MastraStorage } from './chunk-7TZAPEAT.js';
10
- import { Agent } from './chunk-KP5UAFLN.js';
10
+ import { Agent } from './chunk-LTLNGEL2.js';
11
11
  export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-W5HVJX45.js';
12
12
  export { createMastraProxy, deepMerge, delay, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-4Y74D74B.js';
13
13
  import { Tool } from './chunk-ZINPRHAN.js';
@@ -1,5 +1,5 @@
1
1
  import '../base-DboIg_Cd.cjs';
2
- import { W as Workflow, T as ToolAction } from '../base-CIPKleAU.cjs';
2
+ import { W as Workflow, T as ToolAction } from '../base-zjGki2_Z.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-mKY1XrpK.cjs';
5
5
  import 'stream';
@@ -1,5 +1,5 @@
1
1
  import '../base-BZViaFTt.js';
2
- import { W as Workflow, T as ToolAction } from '../base-C_Oq53qk.js';
2
+ import { W as Workflow, T as ToolAction } from '../base-DA1J3qra.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-mKY1XrpK.js';
5
5
  import 'stream';
@@ -1,7 +1,7 @@
1
1
  import 'ai';
2
2
  import 'json-schema';
3
3
  import 'zod';
4
- export { B as BaseStructuredOutputType, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, v as EmbedManyResult, u as EmbedResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, O as OutputType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType } from '../base-CIPKleAU.cjs';
4
+ export { B as BaseStructuredOutputType, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, v as EmbedManyResult, u as EmbedResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, O as OutputType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType } from '../base-zjGki2_Z.cjs';
5
5
  import '../index-mKY1XrpK.cjs';
6
6
  import '../base-DboIg_Cd.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 { B as BaseStructuredOutputType, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, v as EmbedManyResult, u as EmbedResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, O as OutputType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType } from '../base-C_Oq53qk.js';
4
+ export { B as BaseStructuredOutputType, r as CoreAssistantMessage, p as CoreMessage, q as CoreSystemMessage, t as CoreToolMessage, s as CoreUserMessage, I as DefaultLLMStreamObjectOptions, H as DefaultLLMStreamOptions, F as DefaultLLMTextObjectOptions, D as DefaultLLMTextOptions, v as EmbedManyResult, u as EmbedResult, G as GenerateReturn, P as LLMInnerStreamOptions, Q as LLMStreamObjectOptions, N as LLMStreamOptions, K as LLMTextObjectOptions, J as LLMTextOptions, L as LanguageModel, O as OutputType, z as StreamReturn, y as StructuredOutput, x as StructuredOutputArrayItem, w as StructuredOutputType } from '../base-DA1J3qra.js';
5
5
  import '../index-mKY1XrpK.js';
6
6
  import '../base-BZViaFTt.js';
7
7
  import '@opentelemetry/api';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkGXQRMKSN_cjs = require('../chunk-GXQRMKSN.cjs');
3
+ var chunkXLZRGA3F_cjs = require('../chunk-XLZRGA3F.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Mastra", {
8
8
  enumerable: true,
9
- get: function () { return chunkGXQRMKSN_cjs.Mastra; }
9
+ get: function () { return chunkXLZRGA3F_cjs.Mastra; }
10
10
  });
@@ -1,5 +1,5 @@
1
1
  import '../index-mKY1XrpK.cjs';
2
- export { R as Config, M as Mastra } from '../base-CIPKleAU.cjs';
2
+ export { R as Config, M as Mastra } from '../base-zjGki2_Z.cjs';
3
3
  import '../deployer/index.cjs';
4
4
  import '../vector/index.cjs';
5
5
  import '../base-DboIg_Cd.cjs';
@@ -1,5 +1,5 @@
1
1
  import '../index-mKY1XrpK.js';
2
- export { R as Config, M as Mastra } from '../base-C_Oq53qk.js';
2
+ export { R as Config, M as Mastra } from '../base-DA1J3qra.js';
3
3
  import '../deployer/index.js';
4
4
  import '../vector/index.js';
5
5
  import '../base-BZViaFTt.js';
@@ -1 +1 @@
1
- export { Mastra } from '../chunk-YPD6BQIM.js';
1
+ export { Mastra } from '../chunk-22HQQDJZ.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkKFQ7Z3PO_cjs = require('../chunk-KFQ7Z3PO.cjs');
3
+ var chunkB3KTSEC5_cjs = require('../chunk-B3KTSEC5.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraMemory", {
8
8
  enumerable: true,
9
- get: function () { return chunkKFQ7Z3PO_cjs.MastraMemory; }
9
+ get: function () { return chunkB3KTSEC5_cjs.MastraMemory; }
10
10
  });
@@ -1,4 +1,4 @@
1
- export { c as MastraMemory, X as MemoryConfig, U as MessageResponse, j as MessageType, Y as SharedMemoryConfig, i as StorageThreadType } from '../base-CIPKleAU.cjs';
1
+ export { c as MastraMemory, X as MemoryConfig, U as MessageResponse, j as MessageType, Y as SharedMemoryConfig, i as StorageThreadType } from '../base-zjGki2_Z.cjs';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-DboIg_Cd.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { c as MastraMemory, X as MemoryConfig, U as MessageResponse, j as MessageType, Y as SharedMemoryConfig, i as StorageThreadType } from '../base-C_Oq53qk.js';
1
+ export { c as MastraMemory, X as MemoryConfig, U as MessageResponse, j as MessageType, Y as SharedMemoryConfig, i as StorageThreadType } from '../base-DA1J3qra.js';
2
2
  export { Message as AiMessageType } from 'ai';
3
3
  import '../base-BZViaFTt.js';
4
4
  import '@opentelemetry/api';
@@ -1 +1 @@
1
- export { MastraMemory } from '../chunk-MLFXOST6.js';
1
+ export { MastraMemory } from '../chunk-MLKXBAQG.js';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkOTFLHXHZ_cjs = require('../chunk-OTFLHXHZ.cjs');
3
+ var chunkL5BNMAC3_cjs = require('../chunk-L5BNMAC3.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CohereRelevanceScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunkOTFLHXHZ_cjs.CohereRelevanceScorer; }
9
+ get: function () { return chunkL5BNMAC3_cjs.CohereRelevanceScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
12
12
  enumerable: true,
13
- get: function () { return chunkOTFLHXHZ_cjs.MastraAgentRelevanceScorer; }
13
+ get: function () { return chunkL5BNMAC3_cjs.MastraAgentRelevanceScorer; }
14
14
  });
15
15
  Object.defineProperty(exports, "createSimilarityPrompt", {
16
16
  enumerable: true,
17
- get: function () { return chunkOTFLHXHZ_cjs.createSimilarityPrompt; }
17
+ get: function () { return chunkL5BNMAC3_cjs.createSimilarityPrompt; }
18
18
  });
@@ -1,5 +1,5 @@
1
1
  import '../base-DboIg_Cd.cjs';
2
- import { aw as MastraLanguageModel } from '../base-CIPKleAU.cjs';
2
+ import { aw as MastraLanguageModel } from '../base-zjGki2_Z.cjs';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-mKY1XrpK.cjs';
5
5
  import 'stream';
@@ -1,5 +1,5 @@
1
1
  import '../base-BZViaFTt.js';
2
- import { aw as MastraLanguageModel } from '../base-C_Oq53qk.js';
2
+ import { aw as MastraLanguageModel } from '../base-DA1J3qra.js';
3
3
  import '@opentelemetry/api';
4
4
  import '../index-mKY1XrpK.js';
5
5
  import 'stream';
@@ -1 +1 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-XF2FMJYK.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-DGYFNGOC.js';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, f as MastraStorage, h as StorageColumn, k as StorageGetMessagesArg, aB as TABLE_EVALS, aC as TABLE_MESSAGES, g as TABLE_NAMES, aD as TABLE_THREADS, aE as TABLE_TRACES, aA as TABLE_WORKFLOW_SNAPSHOT, o as WorkflowRow } from '../base-CIPKleAU.cjs';
1
+ export { E as EvalRow, f as MastraStorage, h as StorageColumn, k as StorageGetMessagesArg, aB as TABLE_EVALS, aC as TABLE_MESSAGES, g as TABLE_NAMES, aD as TABLE_THREADS, aE as TABLE_TRACES, aA as TABLE_WORKFLOW_SNAPSHOT, o as WorkflowRow } from '../base-zjGki2_Z.cjs';
2
2
  import 'ai';
3
3
  import '../base-DboIg_Cd.cjs';
4
4
  import '@opentelemetry/api';
@@ -1,4 +1,4 @@
1
- export { E as EvalRow, f as MastraStorage, h as StorageColumn, k as StorageGetMessagesArg, aB as TABLE_EVALS, aC as TABLE_MESSAGES, g as TABLE_NAMES, aD as TABLE_THREADS, aE as TABLE_TRACES, aA as TABLE_WORKFLOW_SNAPSHOT, o as WorkflowRow } from '../base-C_Oq53qk.js';
1
+ export { E as EvalRow, f as MastraStorage, h as StorageColumn, k as StorageGetMessagesArg, aB as TABLE_EVALS, aC as TABLE_MESSAGES, g as TABLE_NAMES, aD as TABLE_THREADS, aE as TABLE_TRACES, aA as TABLE_WORKFLOW_SNAPSHOT, o as WorkflowRow } from '../base-DA1J3qra.js';
2
2
  import 'ai';
3
3
  import '../base-BZViaFTt.js';
4
4
  import '@opentelemetry/api';