@mastra/core 1.17.0 → 1.18.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 (150) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/dist/agent/index.cjs +8 -8
  3. package/dist/agent/index.js +1 -1
  4. package/dist/{chunk-O2BVR6WC.cjs → chunk-2U4M4SGY.cjs} +16 -16
  5. package/dist/{chunk-O2BVR6WC.cjs.map → chunk-2U4M4SGY.cjs.map} +1 -1
  6. package/dist/{chunk-RUUHBB7U.js → chunk-3NMSFQPY.js} +4 -4
  7. package/dist/{chunk-RUUHBB7U.js.map → chunk-3NMSFQPY.js.map} +1 -1
  8. package/dist/{chunk-I7S3ZFOU.cjs → chunk-3O73Q6M2.cjs} +75 -75
  9. package/dist/{chunk-I7S3ZFOU.cjs.map → chunk-3O73Q6M2.cjs.map} +1 -1
  10. package/dist/{chunk-IYSW4VN7.js → chunk-3U4ZNZIF.js} +5 -5
  11. package/dist/{chunk-IYSW4VN7.js.map → chunk-3U4ZNZIF.js.map} +1 -1
  12. package/dist/{chunk-QVQ3PGG2.cjs → chunk-7IDACSBM.cjs} +206 -2
  13. package/dist/chunk-7IDACSBM.cjs.map +1 -0
  14. package/dist/{chunk-J2BSGWLR.js → chunk-A2Z26HFR.js} +9 -9
  15. package/dist/{chunk-J2BSGWLR.js.map → chunk-A2Z26HFR.js.map} +1 -1
  16. package/dist/{chunk-62GLEYP6.js → chunk-BYJDWJCX.js} +3 -3
  17. package/dist/{chunk-62GLEYP6.js.map → chunk-BYJDWJCX.js.map} +1 -1
  18. package/dist/{chunk-IPINMJOH.js → chunk-D4DCPE5Y.js} +3 -3
  19. package/dist/{chunk-IPINMJOH.js.map → chunk-D4DCPE5Y.js.map} +1 -1
  20. package/dist/{chunk-CYQ2TNSK.js → chunk-EYM6DWKD.js} +18 -3
  21. package/dist/{chunk-CYQ2TNSK.js.map → chunk-EYM6DWKD.js.map} +1 -1
  22. package/dist/{chunk-BKXCVT72.cjs → chunk-G62XEVSI.cjs} +3 -3
  23. package/dist/chunk-G62XEVSI.cjs.map +1 -0
  24. package/dist/{chunk-QLC3UBDY.cjs → chunk-GFBH7Q4W.cjs} +14 -14
  25. package/dist/{chunk-QLC3UBDY.cjs.map → chunk-GFBH7Q4W.cjs.map} +1 -1
  26. package/dist/{chunk-CVG4K4O3.js → chunk-HEHK7LXS.js} +4 -4
  27. package/dist/{chunk-CVG4K4O3.js.map → chunk-HEHK7LXS.js.map} +1 -1
  28. package/dist/{chunk-YE2NPWVL.cjs → chunk-JFPVUKPB.cjs} +50 -50
  29. package/dist/{chunk-YE2NPWVL.cjs.map → chunk-JFPVUKPB.cjs.map} +1 -1
  30. package/dist/{chunk-DIWGRQZT.js → chunk-K22Q6XPG.js} +3 -3
  31. package/dist/chunk-K22Q6XPG.js.map +1 -0
  32. package/dist/{chunk-TPJSYHLC.cjs → chunk-KL2IRBNK.cjs} +6107 -5697
  33. package/dist/chunk-KL2IRBNK.cjs.map +1 -0
  34. package/dist/{chunk-OXH67SS4.cjs → chunk-MSDZQ4DW.cjs} +9 -9
  35. package/dist/{chunk-OXH67SS4.cjs.map → chunk-MSDZQ4DW.cjs.map} +1 -1
  36. package/dist/{chunk-3H34KWBU.cjs → chunk-PK3X5KIF.cjs} +24 -9
  37. package/dist/{chunk-3H34KWBU.cjs.map → chunk-PK3X5KIF.cjs.map} +1 -1
  38. package/dist/{chunk-EWGUU5QC.cjs → chunk-PQWEJELD.cjs} +6 -6
  39. package/dist/{chunk-EWGUU5QC.cjs.map → chunk-PQWEJELD.cjs.map} +1 -1
  40. package/dist/{chunk-RX5ZKTWD.js → chunk-RB2QRGRV.js} +4 -4
  41. package/dist/{chunk-RX5ZKTWD.js.map → chunk-RB2QRGRV.js.map} +1 -1
  42. package/dist/{chunk-IOKPS5RD.js → chunk-TKKBZUWD.js} +6106 -5696
  43. package/dist/chunk-TKKBZUWD.js.map +1 -0
  44. package/dist/{chunk-FQMFXIUQ.cjs → chunk-UEZU2TA2.cjs} +185 -185
  45. package/dist/{chunk-FQMFXIUQ.cjs.map → chunk-UEZU2TA2.cjs.map} +1 -1
  46. package/dist/{chunk-XWGZAY4F.cjs → chunk-UPCNNWXW.cjs} +236 -20
  47. package/dist/chunk-UPCNNWXW.cjs.map +1 -0
  48. package/dist/{chunk-DGBPIUTG.js → chunk-UQ2HAEHL.js} +233 -17
  49. package/dist/chunk-UQ2HAEHL.js.map +1 -0
  50. package/dist/{chunk-AGEYVARR.js → chunk-VMKNS3YO.js} +204 -3
  51. package/dist/chunk-VMKNS3YO.js.map +1 -0
  52. package/dist/{chunk-KFYDUUVH.js → chunk-WYFCQAHY.js} +6 -6
  53. package/dist/{chunk-KFYDUUVH.js.map → chunk-WYFCQAHY.js.map} +1 -1
  54. package/dist/{chunk-ZOZHH547.cjs → chunk-Z3VUDCXI.cjs} +7 -7
  55. package/dist/{chunk-ZOZHH547.cjs.map → chunk-Z3VUDCXI.cjs.map} +1 -1
  56. package/dist/datasets/index.cjs +17 -17
  57. package/dist/datasets/index.js +2 -2
  58. package/dist/docs/SKILL.md +2 -1
  59. package/dist/docs/assets/SOURCE_MAP.json +350 -335
  60. package/dist/docs/references/reference-evals-run-evals.md +78 -3
  61. package/dist/docs/references/reference-evals-scorer-utils.md +184 -0
  62. package/dist/docs/references/reference-evals-trajectory-accuracy.md +613 -0
  63. package/dist/docs/references/reference.md +1 -0
  64. package/dist/evals/base.d.ts +8 -2
  65. package/dist/evals/base.d.ts.map +1 -1
  66. package/dist/evals/index.cjs +32 -20
  67. package/dist/evals/index.js +3 -3
  68. package/dist/evals/run/index.d.ts +28 -1
  69. package/dist/evals/run/index.d.ts.map +1 -1
  70. package/dist/evals/run/scorerAccumulator.d.ts +4 -1
  71. package/dist/evals/run/scorerAccumulator.d.ts.map +1 -1
  72. package/dist/evals/scoreTraces/index.cjs +5 -5
  73. package/dist/evals/scoreTraces/index.js +2 -2
  74. package/dist/evals/types.d.ts +305 -10
  75. package/dist/evals/types.d.ts.map +1 -1
  76. package/dist/harness/index.cjs +7 -7
  77. package/dist/harness/index.js +5 -5
  78. package/dist/index.cjs +2 -2
  79. package/dist/index.js +1 -1
  80. package/dist/llm/index.cjs +16 -16
  81. package/dist/llm/index.js +5 -5
  82. package/dist/llm/model/provider-types.generated.d.ts +2444 -2243
  83. package/dist/loop/index.cjs +14 -14
  84. package/dist/loop/index.js +1 -1
  85. package/dist/loop/network/index.d.ts +3 -3
  86. package/dist/loop/types.d.ts +1 -1
  87. package/dist/mastra/index.cjs +2 -2
  88. package/dist/mastra/index.js +1 -1
  89. package/dist/memory/index.cjs +14 -14
  90. package/dist/memory/index.js +1 -1
  91. package/dist/models-dev-3U6ICCNW.js +3 -0
  92. package/dist/{models-dev-U3LBEE4O.js.map → models-dev-3U6ICCNW.js.map} +1 -1
  93. package/dist/models-dev-BJHT4GXA.cjs +12 -0
  94. package/dist/{models-dev-3UNU47HO.cjs.map → models-dev-BJHT4GXA.cjs.map} +1 -1
  95. package/dist/netlify-DE3IXMT2.js +3 -0
  96. package/dist/{netlify-QVXFSZJQ.js.map → netlify-DE3IXMT2.js.map} +1 -1
  97. package/dist/netlify-UARJYMCW.cjs +12 -0
  98. package/dist/{netlify-ET5JT5FX.cjs.map → netlify-UARJYMCW.cjs.map} +1 -1
  99. package/dist/processor-provider/index.cjs +10 -10
  100. package/dist/processor-provider/index.js +1 -1
  101. package/dist/processors/index.cjs +44 -44
  102. package/dist/processors/index.js +1 -1
  103. package/dist/provider-registry-65CPGTUU.cjs +40 -0
  104. package/dist/{provider-registry-S6VYJ3GX.cjs.map → provider-registry-65CPGTUU.cjs.map} +1 -1
  105. package/dist/provider-registry-EQAT7FXK.js +3 -0
  106. package/dist/{provider-registry-IP3K4FE4.js.map → provider-registry-EQAT7FXK.js.map} +1 -1
  107. package/dist/provider-registry.json +6102 -5692
  108. package/dist/relevance/index.cjs +3 -3
  109. package/dist/relevance/index.js +1 -1
  110. package/dist/storage/constants.cjs +56 -56
  111. package/dist/storage/constants.d.ts +1 -1
  112. package/dist/storage/constants.js +1 -1
  113. package/dist/storage/domains/experiments/base.d.ts +2 -1
  114. package/dist/storage/domains/experiments/base.d.ts.map +1 -1
  115. package/dist/storage/domains/experiments/inmemory.d.ts +2 -1
  116. package/dist/storage/domains/experiments/inmemory.d.ts.map +1 -1
  117. package/dist/storage/domains/observability/tracing.d.ts +45 -45
  118. package/dist/storage/index.cjs +160 -160
  119. package/dist/storage/index.js +2 -2
  120. package/dist/storage/types.d.ts +12 -0
  121. package/dist/storage/types.d.ts.map +1 -1
  122. package/dist/stream/MastraAgentNetworkStream.d.ts +1 -1
  123. package/dist/stream/MastraWorkflowStream.d.ts +1 -1
  124. package/dist/stream/index.cjs +8 -8
  125. package/dist/stream/index.js +1 -1
  126. package/dist/tool-loop-agent/index.cjs +4 -4
  127. package/dist/tool-loop-agent/index.js +1 -1
  128. package/dist/vector/index.cjs +7 -7
  129. package/dist/vector/index.js +1 -1
  130. package/dist/workflows/evented/index.cjs +10 -10
  131. package/dist/workflows/evented/index.js +1 -1
  132. package/dist/workflows/index.cjs +24 -24
  133. package/dist/workflows/index.js +1 -1
  134. package/package.json +6 -6
  135. package/src/llm/model/provider-types.generated.d.ts +2444 -2243
  136. package/dist/chunk-AGEYVARR.js.map +0 -1
  137. package/dist/chunk-BKXCVT72.cjs.map +0 -1
  138. package/dist/chunk-DGBPIUTG.js.map +0 -1
  139. package/dist/chunk-DIWGRQZT.js.map +0 -1
  140. package/dist/chunk-IOKPS5RD.js.map +0 -1
  141. package/dist/chunk-QVQ3PGG2.cjs.map +0 -1
  142. package/dist/chunk-TPJSYHLC.cjs.map +0 -1
  143. package/dist/chunk-XWGZAY4F.cjs.map +0 -1
  144. package/dist/models-dev-3UNU47HO.cjs +0 -12
  145. package/dist/models-dev-U3LBEE4O.js +0 -3
  146. package/dist/netlify-ET5JT5FX.cjs +0 -12
  147. package/dist/netlify-QVXFSZJQ.js +0 -3
  148. package/dist/provider-registry-IP3K4FE4.js +0 -3
  149. package/dist/provider-registry-S6VYJ3GX.cjs +0 -40
  150. package/test-utils/llm-mock.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,72 @@
1
1
  # @mastra/core
2
2
 
3
+ ## 1.18.0-alpha.1
4
+
5
+ ### Minor Changes
6
+
7
+ - **Trajectory evaluation**: Added trajectory types and trace-based extraction for evaluating agent and workflow execution paths. ([#14697](https://github.com/mastra-ai/mastra/pull/14697))
8
+
9
+ `TrajectoryStep` models each step in an execution as a typed object — tool calls, model generations, agent runs, workflow steps, and control flow nodes each have their own variant with relevant properties (e.g., `toolArgs`/`toolResult` for tool calls, `modelId`/`promptTokens` for model generations). Steps can be nested via `children` to represent hierarchical execution.
10
+
11
+ `TrajectoryExpectation` lets you define what a good trajectory looks like — expected steps, ordering, step/token/duration budgets, blacklisted tools, and retry thresholds. `ExpectedStep` provides a simple way to define expected steps by name and optional stepType, with support for nested expectations via `children` to set different evaluation rules at each level of the hierarchy.
12
+
13
+ **Trace-based extraction:** `extractTrajectoryFromTrace()` builds hierarchical trajectories from observability trace spans. The `runEvals` pipeline automatically uses this when storage is configured, capturing the full execution tree including nested agent runs and tool calls. Falls back to `extractTrajectory` (agents) or `extractWorkflowTrajectory` (workflows) when storage is unavailable.
14
+
15
+ **Pipeline:** `expectedTrajectory` flows from dataset items through `runEvals` to trajectory scorers. Added `trajectory` key to both `AgentScorerConfig` and `WorkflowScorerConfig`.
16
+
17
+ ### Patch Changes
18
+
19
+ - Add `getReviewSummary()` to experiments storage for aggregating review status counts ([#14649](https://github.com/mastra-ai/mastra/pull/14649))
20
+
21
+ Query experiment results grouped by experiment ID, returning counts of `needs-review`, `reviewed`, and `complete` items in a single query instead of fetching all results client-side.
22
+
23
+ ```ts
24
+ const summary = await storage.experiments.getReviewSummary();
25
+ // [{ experimentId: 'exp-1', needsReview: 3, reviewed: 5, complete: 2, total: 10 }, ...]
26
+ ```
27
+
28
+ ## 1.18.0-alpha.0
29
+
30
+ ### Minor Changes
31
+
32
+ - Add `lsp_inspect` tool for LSP-based code inspection with hover, definition, and implementation queries ([#14565](https://github.com/mastra-ai/mastra/pull/14565))
33
+
34
+ - Added `disableBuiltinTools` to `HarnessConfig` so you can disable specific built-in harness tools. ([#14227](https://github.com/mastra-ai/mastra/pull/14227))
35
+
36
+ Example:
37
+
38
+ ```ts
39
+ new Harness({ disableBuiltinTools: ['submit_plan', 'subagent'] });
40
+ ```
41
+
42
+ - Added SkillSearchProcessor for on-demand skill discovery. Instead of injecting all skill metadata upfront, agents get `search_skills` and `load_skill` meta-tools to find and load skills on demand with thread-scoped state and TTL cleanup. ([#14596](https://github.com/mastra-ai/mastra/pull/14596))
43
+
44
+ **Example**
45
+
46
+ ```typescript
47
+ import { SkillSearchProcessor } from '@mastra/core/processors';
48
+
49
+ const skillSearch = new SkillSearchProcessor({
50
+ workspace,
51
+ search: { topK: 5 },
52
+ });
53
+
54
+ const agent = new Agent({
55
+ workspace,
56
+ inputProcessors: [skillSearch],
57
+ });
58
+ ```
59
+
60
+ ### Patch Changes
61
+
62
+ - Update provider registry and model documentation with latest models and providers ([`dc514a8`](https://github.com/mastra-ai/mastra/commit/dc514a83dba5f719172dddfd2c7b858e4943d067))
63
+
64
+ - Fixed `Harness.listThreads()` so callers can request threads across all resources. ([#14690](https://github.com/mastra-ai/mastra/pull/14690))
65
+
66
+ - Fixed Harness `stateSchema` typing to accept Zod schemas with `.default()`, `.optional()`, and `.transform()` modifiers. Previously, these modifiers caused TypeScript errors because the type system forced schema Input and Output types to be identical. Now `stateSchema` correctly accepts any schema regardless of input type divergence. ([#14606](https://github.com/mastra-ai/mastra/pull/14606))
67
+
68
+ - Fixed tool input validation failures not producing observability spans. When input schema validation failed, no TOOL_CALL span was created because span creation happened inside the execution function that ran after validation. Moved span creation before input validation so validation errors are now captured in spans and visible in observability backends like Datadog. ([#14677](https://github.com/mastra-ai/mastra/pull/14677))
69
+
3
70
  ## 1.17.0
4
71
 
5
72
  ### Minor Changes
@@ -1,37 +1,37 @@
1
1
  'use strict';
2
2
 
3
- var chunkQLC3UBDY_cjs = require('../chunk-QLC3UBDY.cjs');
3
+ var chunkGFBH7Q4W_cjs = require('../chunk-GFBH7Q4W.cjs');
4
4
  var chunkANLO4VM2_cjs = require('../chunk-ANLO4VM2.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Agent", {
9
9
  enumerable: true,
10
- get: function () { return chunkQLC3UBDY_cjs.Agent; }
10
+ get: function () { return chunkGFBH7Q4W_cjs.Agent; }
11
11
  });
12
12
  Object.defineProperty(exports, "TripWire", {
13
13
  enumerable: true,
14
- get: function () { return chunkQLC3UBDY_cjs.TripWire; }
14
+ get: function () { return chunkGFBH7Q4W_cjs.TripWire; }
15
15
  });
16
16
  Object.defineProperty(exports, "isSupportedLanguageModel", {
17
17
  enumerable: true,
18
- get: function () { return chunkQLC3UBDY_cjs.isSupportedLanguageModel; }
18
+ get: function () { return chunkGFBH7Q4W_cjs.isSupportedLanguageModel; }
19
19
  });
20
20
  Object.defineProperty(exports, "resolveThreadIdFromArgs", {
21
21
  enumerable: true,
22
- get: function () { return chunkQLC3UBDY_cjs.resolveThreadIdFromArgs; }
22
+ get: function () { return chunkGFBH7Q4W_cjs.resolveThreadIdFromArgs; }
23
23
  });
24
24
  Object.defineProperty(exports, "supportedLanguageModelSpecifications", {
25
25
  enumerable: true,
26
- get: function () { return chunkQLC3UBDY_cjs.supportedLanguageModelSpecifications; }
26
+ get: function () { return chunkGFBH7Q4W_cjs.supportedLanguageModelSpecifications; }
27
27
  });
28
28
  Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
29
29
  enumerable: true,
30
- get: function () { return chunkQLC3UBDY_cjs.tryGenerateWithJsonFallback; }
30
+ get: function () { return chunkGFBH7Q4W_cjs.tryGenerateWithJsonFallback; }
31
31
  });
32
32
  Object.defineProperty(exports, "tryStreamWithJsonFallback", {
33
33
  enumerable: true,
34
- get: function () { return chunkQLC3UBDY_cjs.tryStreamWithJsonFallback; }
34
+ get: function () { return chunkGFBH7Q4W_cjs.tryStreamWithJsonFallback; }
35
35
  });
36
36
  Object.defineProperty(exports, "MessageList", {
37
37
  enumerable: true,
@@ -1,4 +1,4 @@
1
- export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-IYSW4VN7.js';
1
+ export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-3U4ZNZIF.js';
2
2
  export { MessageList, TypeDetector, aiV5ModelMessageToV2PromptMessage, convertMessages } from '../chunk-SLZ3WO42.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkYE2NPWVL_cjs = require('./chunk-YE2NPWVL.cjs');
4
- var chunkZOZHH547_cjs = require('./chunk-ZOZHH547.cjs');
5
- var chunkEWGUU5QC_cjs = require('./chunk-EWGUU5QC.cjs');
6
- var chunkXWGZAY4F_cjs = require('./chunk-XWGZAY4F.cjs');
7
- var chunkQLC3UBDY_cjs = require('./chunk-QLC3UBDY.cjs');
8
- var chunkOQDRPRKM_cjs = require('./chunk-OQDRPRKM.cjs');
3
+ var chunkJFPVUKPB_cjs = require('./chunk-JFPVUKPB.cjs');
4
+ var chunkZ3VUDCXI_cjs = require('./chunk-Z3VUDCXI.cjs');
5
+ var chunkPQWEJELD_cjs = require('./chunk-PQWEJELD.cjs');
6
+ var chunkUPCNNWXW_cjs = require('./chunk-UPCNNWXW.cjs');
7
+ var chunkGFBH7Q4W_cjs = require('./chunk-GFBH7Q4W.cjs');
9
8
  var chunkMR7ZWBL6_cjs = require('./chunk-MR7ZWBL6.cjs');
10
9
  var chunk6BJ7XHRH_cjs = require('./chunk-6BJ7XHRH.cjs');
11
10
  var chunk2VD5OGOT_cjs = require('./chunk-2VD5OGOT.cjs');
11
+ var chunkOQDRPRKM_cjs = require('./chunk-OQDRPRKM.cjs');
12
12
  var chunkG5HKDGNT_cjs = require('./chunk-G5HKDGNT.cjs');
13
13
  var chunk4U7ZLI36_cjs = require('./chunk-4U7ZLI36.cjs');
14
14
  var chunk7XAECHYL_cjs = require('./chunk-7XAECHYL.cjs');
@@ -67,7 +67,7 @@ var Mastra = class {
67
67
  }
68
68
  get datasets() {
69
69
  if (!this.#datasets) {
70
- this.#datasets = new chunkEWGUU5QC_cjs.DatasetsManager(this);
70
+ this.#datasets = new chunkPQWEJELD_cjs.DatasetsManager(this);
71
71
  }
72
72
  return this.#datasets;
73
73
  }
@@ -243,7 +243,7 @@ var Mastra = class {
243
243
  this.#events[topic] = config?.events?.[topic] ?? [];
244
244
  }
245
245
  }
246
- const workflowEventProcessor = new chunkYE2NPWVL_cjs.WorkflowEventProcessor({ mastra: this });
246
+ const workflowEventProcessor = new chunkJFPVUKPB_cjs.WorkflowEventProcessor({ mastra: this });
247
247
  const workflowEventCb = async (event, cb) => {
248
248
  try {
249
249
  await workflowEventProcessor.process(event, cb);
@@ -271,7 +271,7 @@ var Mastra = class {
271
271
  this.#idGenerator = config?.idGenerator;
272
272
  let storage = config?.storage;
273
273
  if (storage) {
274
- storage = chunkQLC3UBDY_cjs.augmentWithInit(storage);
274
+ storage = chunkGFBH7Q4W_cjs.augmentWithInit(storage);
275
275
  }
276
276
  if (config?.observability) {
277
277
  if (typeof config.observability.getDefaultInstance === "function") {
@@ -374,7 +374,7 @@ var Mastra = class {
374
374
  if (config?.server) {
375
375
  this.#server = config.server;
376
376
  }
377
- chunkMR7ZWBL6_cjs.registerHook("onScorerRun" /* ON_SCORER_RUN */, chunkXWGZAY4F_cjs.createOnScorerHook(this));
377
+ chunkMR7ZWBL6_cjs.registerHook("onScorerRun" /* ON_SCORER_RUN */, chunkUPCNNWXW_cjs.createOnScorerHook(this));
378
378
  this.#observability.setMastraContext({ mastra: this });
379
379
  this.setLogger({ logger });
380
380
  }
@@ -518,8 +518,8 @@ var Mastra = class {
518
518
  throw createUndefinedPrimitiveError("agent", agent, key);
519
519
  }
520
520
  let mastraAgent;
521
- if (chunkZOZHH547_cjs.isToolLoopAgentLike(agent)) {
522
- mastraAgent = chunkZOZHH547_cjs.toolLoopAgentToMastraAgent(agent, { fallbackName: key });
521
+ if (chunkZ3VUDCXI_cjs.isToolLoopAgentLike(agent)) {
522
+ mastraAgent = chunkZ3VUDCXI_cjs.toolLoopAgentToMastraAgent(agent, { fallbackName: key });
523
523
  } else {
524
524
  mastraAgent = agent;
525
525
  }
@@ -1863,7 +1863,7 @@ var Mastra = class {
1863
1863
  * ```
1864
1864
  */
1865
1865
  setStorage(storage) {
1866
- this.#storage = chunkQLC3UBDY_cjs.augmentWithInit(storage);
1866
+ this.#storage = chunkGFBH7Q4W_cjs.augmentWithInit(storage);
1867
1867
  }
1868
1868
  setLogger({ logger }) {
1869
1869
  this.#logger = logger;
@@ -2556,7 +2556,7 @@ var Mastra = class {
2556
2556
  if (process.env.MASTRA_DEV !== "true" && process.env.MASTRA_DEV !== "1") {
2557
2557
  return;
2558
2558
  }
2559
- import('./provider-registry-S6VYJ3GX.cjs').then(async ({ GatewayRegistry }) => {
2559
+ import('./provider-registry-65CPGTUU.cjs').then(async ({ GatewayRegistry }) => {
2560
2560
  const registry = GatewayRegistry.getInstance();
2561
2561
  const customGateways = Object.values(this.#gateways || {});
2562
2562
  registry.registerCustomGateways(customGateways);
@@ -2610,5 +2610,5 @@ var Mastra = class {
2610
2610
  };
2611
2611
 
2612
2612
  exports.Mastra = Mastra;
2613
- //# sourceMappingURL=chunk-O2BVR6WC.cjs.map
2614
- //# sourceMappingURL=chunk-O2BVR6WC.cjs.map
2613
+ //# sourceMappingURL=chunk-2U4M4SGY.cjs.map
2614
+ //# sourceMappingURL=chunk-2U4M4SGY.cjs.map