@mastra/core 0.20.0 → 0.20.1-alpha.2

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 (200) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/agent/agent.d.ts +375 -9
  3. package/dist/agent/agent.d.ts.map +1 -1
  4. package/dist/agent/index.cjs +11 -11
  5. package/dist/agent/index.js +2 -2
  6. package/dist/agent/input-processor/index.cjs +6 -6
  7. package/dist/agent/input-processor/index.js +1 -1
  8. package/dist/agent/types.d.ts +66 -0
  9. package/dist/agent/types.d.ts.map +1 -1
  10. package/dist/agent/workflows/prepare-stream/index.d.ts +19 -3
  11. package/dist/agent/workflows/prepare-stream/index.d.ts.map +1 -1
  12. package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts +5 -1
  13. package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts.map +1 -1
  14. package/dist/agent/workflows/prepare-stream/prepare-tools-step.d.ts +5 -1
  15. package/dist/agent/workflows/prepare-stream/prepare-tools-step.d.ts.map +1 -1
  16. package/dist/agent/workflows/prepare-stream/stream-step.d.ts +5 -1
  17. package/dist/agent/workflows/prepare-stream/stream-step.d.ts.map +1 -1
  18. package/dist/ai-tracing/index.cjs +32 -32
  19. package/dist/ai-tracing/index.js +1 -1
  20. package/dist/{chunk-3NNB72OL.cjs → chunk-33DTPWTJ.cjs} +7 -7
  21. package/dist/{chunk-3NNB72OL.cjs.map → chunk-33DTPWTJ.cjs.map} +1 -1
  22. package/dist/{chunk-CJDOU6WP.js → chunk-3KBXOXG6.js} +3 -3
  23. package/dist/{chunk-CJDOU6WP.js.map → chunk-3KBXOXG6.js.map} +1 -1
  24. package/dist/{chunk-ZNK5RN5D.cjs → chunk-3Z3DP6S2.cjs} +6 -6
  25. package/dist/{chunk-ZNK5RN5D.cjs.map → chunk-3Z3DP6S2.cjs.map} +1 -1
  26. package/dist/{chunk-KGBDRSMX.js → chunk-5I6DXBUR.js} +4 -4
  27. package/dist/{chunk-KGBDRSMX.js.map → chunk-5I6DXBUR.js.map} +1 -1
  28. package/dist/{chunk-7EUC32F3.cjs → chunk-6K7IMZVR.cjs} +617 -24
  29. package/dist/chunk-6K7IMZVR.cjs.map +1 -0
  30. package/dist/{chunk-FV4QVXO4.js → chunk-6OLRLZJ3.js} +37 -2
  31. package/dist/chunk-6OLRLZJ3.js.map +1 -0
  32. package/dist/{chunk-OXLN4CWA.js → chunk-B5GBHE4E.js} +3 -3
  33. package/dist/{chunk-OXLN4CWA.js.map → chunk-B5GBHE4E.js.map} +1 -1
  34. package/dist/{chunk-2SH5WPUA.cjs → chunk-BG5FC6ZZ.cjs} +407 -803
  35. package/dist/chunk-BG5FC6ZZ.cjs.map +1 -0
  36. package/dist/{chunk-COYTVUIL.js → chunk-EKFF7JLS.js} +610 -17
  37. package/dist/chunk-EKFF7JLS.js.map +1 -0
  38. package/dist/{chunk-BOJNXNRV.js → chunk-FJIABZVI.js} +3 -3
  39. package/dist/{chunk-BOJNXNRV.js.map → chunk-FJIABZVI.js.map} +1 -1
  40. package/dist/{chunk-RYFQKXXS.js → chunk-H4KO46HZ.js} +3 -3
  41. package/dist/{chunk-RYFQKXXS.js.map → chunk-H4KO46HZ.js.map} +1 -1
  42. package/dist/{chunk-T4H33PBR.cjs → chunk-IKLSJCMT.cjs} +360 -69
  43. package/dist/chunk-IKLSJCMT.cjs.map +1 -0
  44. package/dist/{chunk-K4AYIXVH.cjs → chunk-L5A4MRCK.cjs} +4 -4
  45. package/dist/{chunk-K4AYIXVH.cjs.map → chunk-L5A4MRCK.cjs.map} +1 -1
  46. package/dist/{chunk-DVHBWEYY.cjs → chunk-LCJHFYJS.cjs} +7 -7
  47. package/dist/{chunk-DVHBWEYY.cjs.map → chunk-LCJHFYJS.cjs.map} +1 -1
  48. package/dist/{chunk-I6TOPBP6.cjs → chunk-MHHMY2K4.cjs} +49 -18
  49. package/dist/chunk-MHHMY2K4.cjs.map +1 -0
  50. package/dist/{chunk-DQISKQDE.js → chunk-OBAFLVGD.js} +342 -51
  51. package/dist/chunk-OBAFLVGD.js.map +1 -0
  52. package/dist/{chunk-6R46VE63.js → chunk-OPHFW56S.js} +39 -8
  53. package/dist/chunk-OPHFW56S.js.map +1 -0
  54. package/dist/{chunk-LCJP7LWN.cjs → chunk-P4ZPZKZY.cjs} +6 -6
  55. package/dist/{chunk-LCJP7LWN.cjs.map → chunk-P4ZPZKZY.cjs.map} +1 -1
  56. package/dist/{chunk-QR5VZWWT.js → chunk-P7WEYMRS.js} +3 -3
  57. package/dist/{chunk-QR5VZWWT.js.map → chunk-P7WEYMRS.js.map} +1 -1
  58. package/dist/{chunk-YEEAHLAK.cjs → chunk-PWPESTZZ.cjs} +4 -4
  59. package/dist/{chunk-YEEAHLAK.cjs.map → chunk-PWPESTZZ.cjs.map} +1 -1
  60. package/dist/{chunk-7HUKQ6SZ.cjs → chunk-Q3S3BXHO.cjs} +4 -4
  61. package/dist/{chunk-7HUKQ6SZ.cjs.map → chunk-Q3S3BXHO.cjs.map} +1 -1
  62. package/dist/{chunk-WP2KQXPV.js → chunk-RMMGYPXG.js} +3 -3
  63. package/dist/{chunk-WP2KQXPV.js.map → chunk-RMMGYPXG.js.map} +1 -1
  64. package/dist/{chunk-A4RAEU6X.cjs → chunk-SE4PA467.cjs} +37 -2
  65. package/dist/chunk-SE4PA467.cjs.map +1 -0
  66. package/dist/{chunk-AND6J5LG.js → chunk-W2WXYTYI.js} +407 -803
  67. package/dist/chunk-W2WXYTYI.js.map +1 -0
  68. package/dist/{chunk-OKIHIKXV.cjs → chunk-WE6ILDQY.cjs} +4 -4
  69. package/dist/{chunk-OKIHIKXV.cjs.map → chunk-WE6ILDQY.cjs.map} +1 -1
  70. package/dist/{chunk-ZJ2UFCTS.js → chunk-Y2TIJVKC.js} +3 -3
  71. package/dist/{chunk-ZJ2UFCTS.js.map → chunk-Y2TIJVKC.js.map} +1 -1
  72. package/dist/index.cjs +52 -52
  73. package/dist/index.cjs.map +1 -1
  74. package/dist/index.js +11 -11
  75. package/dist/index.js.map +1 -1
  76. package/dist/integration/index.cjs +3 -3
  77. package/dist/integration/index.js +1 -1
  78. package/dist/llm/index.cjs +6 -6
  79. package/dist/llm/index.d.ts +1 -1
  80. package/dist/llm/index.d.ts.map +1 -1
  81. package/dist/llm/index.js +1 -1
  82. package/dist/llm/model/gateway-resolver.d.ts +7 -5
  83. package/dist/llm/model/gateway-resolver.d.ts.map +1 -1
  84. package/dist/llm/model/gateways/base.d.ts +8 -6
  85. package/dist/llm/model/gateways/base.d.ts.map +1 -1
  86. package/dist/llm/model/gateways/constants.d.ts +3 -0
  87. package/dist/llm/model/gateways/constants.d.ts.map +1 -0
  88. package/dist/llm/model/gateways/index.d.ts +5 -0
  89. package/dist/llm/model/gateways/index.d.ts.map +1 -1
  90. package/dist/llm/model/gateways/models-dev.d.ts +8 -2
  91. package/dist/llm/model/gateways/models-dev.d.ts.map +1 -1
  92. package/dist/llm/model/gateways/netlify.d.ts +11 -2
  93. package/dist/llm/model/gateways/netlify.d.ts.map +1 -1
  94. package/dist/llm/model/index.d.ts +1 -1
  95. package/dist/llm/model/index.d.ts.map +1 -1
  96. package/dist/llm/model/model.loop.d.ts +1 -1
  97. package/dist/llm/model/model.loop.d.ts.map +1 -1
  98. package/dist/llm/model/provider-registry.generated.d.ts +6 -7
  99. package/dist/llm/model/provider-registry.generated.d.ts.map +1 -1
  100. package/dist/llm/model/router.d.ts +23 -0
  101. package/dist/llm/model/router.d.ts.map +1 -0
  102. package/dist/loop/index.cjs +2 -2
  103. package/dist/loop/index.js +1 -1
  104. package/dist/loop/network/index.d.ts +5 -1
  105. package/dist/loop/network/index.d.ts.map +1 -1
  106. package/dist/loop/workflows/agentic-execution/index.d.ts +5 -1
  107. package/dist/loop/workflows/agentic-execution/index.d.ts.map +1 -1
  108. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +5 -1
  109. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
  110. package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +5 -1
  111. package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts.map +1 -1
  112. package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts +5 -1
  113. package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
  114. package/dist/loop/workflows/agentic-loop/index.d.ts +5 -1
  115. package/dist/loop/workflows/agentic-loop/index.d.ts.map +1 -1
  116. package/dist/mastra/index.cjs +2 -2
  117. package/dist/mastra/index.d.ts +695 -12
  118. package/dist/mastra/index.d.ts.map +1 -1
  119. package/dist/mastra/index.js +1 -1
  120. package/dist/memory/index.cjs +4 -4
  121. package/dist/memory/index.js +1 -1
  122. package/dist/processors/index.cjs +11 -11
  123. package/dist/processors/index.js +1 -1
  124. package/dist/relevance/index.cjs +4 -4
  125. package/dist/relevance/index.js +1 -1
  126. package/dist/scores/index.cjs +9 -9
  127. package/dist/scores/index.js +2 -2
  128. package/dist/scores/run-experiment/index.d.ts +2 -2
  129. package/dist/scores/run-experiment/index.d.ts.map +1 -1
  130. package/dist/scores/scoreTraces/index.cjs +8 -8
  131. package/dist/scores/scoreTraces/index.js +3 -3
  132. package/dist/scores/scoreTraces/scoreTracesWorkflow.d.ts +10 -2
  133. package/dist/scores/scoreTraces/scoreTracesWorkflow.d.ts.map +1 -1
  134. package/dist/storage/domains/operations/base.d.ts +6 -0
  135. package/dist/storage/domains/operations/base.d.ts.map +1 -1
  136. package/dist/storage/index.cjs +11 -3
  137. package/dist/storage/index.cjs.map +1 -1
  138. package/dist/storage/index.js +9 -1
  139. package/dist/storage/index.js.map +1 -1
  140. package/dist/stream/MastraAgentNetworkStream.d.ts +5 -1
  141. package/dist/stream/MastraAgentNetworkStream.d.ts.map +1 -1
  142. package/dist/stream/MastraWorkflowStream.d.ts +3 -3
  143. package/dist/stream/MastraWorkflowStream.d.ts.map +1 -1
  144. package/dist/stream/index.cjs +4 -4
  145. package/dist/stream/index.js +1 -1
  146. package/dist/test-utils/llm-mock.cjs +2 -2
  147. package/dist/test-utils/llm-mock.js +1 -1
  148. package/dist/tools/index.cjs +4 -4
  149. package/dist/tools/index.js +1 -1
  150. package/dist/tools/is-vercel-tool.cjs +2 -2
  151. package/dist/tools/is-vercel-tool.js +1 -1
  152. package/dist/tools/tool.d.ts +163 -0
  153. package/dist/tools/tool.d.ts.map +1 -1
  154. package/dist/utils.cjs +17 -17
  155. package/dist/utils.d.ts +1 -1
  156. package/dist/utils.d.ts.map +1 -1
  157. package/dist/utils.js +1 -1
  158. package/dist/workflows/default.d.ts +13 -7
  159. package/dist/workflows/default.d.ts.map +1 -1
  160. package/dist/workflows/evented/index.cjs +10 -10
  161. package/dist/workflows/evented/index.js +1 -1
  162. package/dist/workflows/evented/step-executor.d.ts +7 -3
  163. package/dist/workflows/evented/step-executor.d.ts.map +1 -1
  164. package/dist/workflows/evented/workflow-event-processor/index.d.ts.map +1 -1
  165. package/dist/workflows/evented/workflow-event-processor/loop.d.ts.map +1 -1
  166. package/dist/workflows/evented/workflow-event-processor/parallel.d.ts.map +1 -1
  167. package/dist/workflows/evented/workflow-event-processor/utils.d.ts +1 -1
  168. package/dist/workflows/evented/workflow.d.ts +23 -19
  169. package/dist/workflows/evented/workflow.d.ts.map +1 -1
  170. package/dist/workflows/execution-engine.d.ts +5 -1
  171. package/dist/workflows/execution-engine.d.ts.map +1 -1
  172. package/dist/workflows/index.cjs +12 -12
  173. package/dist/workflows/index.js +1 -1
  174. package/dist/workflows/legacy/index.cjs +22 -22
  175. package/dist/workflows/legacy/index.js +1 -1
  176. package/dist/workflows/step.d.ts +11 -4
  177. package/dist/workflows/step.d.ts.map +1 -1
  178. package/dist/workflows/types.d.ts +33 -9
  179. package/dist/workflows/types.d.ts.map +1 -1
  180. package/dist/workflows/workflow.d.ts +85 -56
  181. package/dist/workflows/workflow.d.ts.map +1 -1
  182. package/dist/workflows/workflow.warning.d.ts +2 -2
  183. package/dist/workflows/workflow.warning.d.ts.map +1 -1
  184. package/package.json +9 -4
  185. package/dist/chunk-2SH5WPUA.cjs.map +0 -1
  186. package/dist/chunk-45CV4JYJ.cjs +0 -4
  187. package/dist/chunk-45CV4JYJ.cjs.map +0 -1
  188. package/dist/chunk-6R46VE63.js.map +0 -1
  189. package/dist/chunk-7EUC32F3.cjs.map +0 -1
  190. package/dist/chunk-A4RAEU6X.cjs.map +0 -1
  191. package/dist/chunk-AND6J5LG.js.map +0 -1
  192. package/dist/chunk-COYTVUIL.js.map +0 -1
  193. package/dist/chunk-DQISKQDE.js.map +0 -1
  194. package/dist/chunk-FV4QVXO4.js.map +0 -1
  195. package/dist/chunk-I6TOPBP6.cjs.map +0 -1
  196. package/dist/chunk-RFGQ3EQV.js +0 -3
  197. package/dist/chunk-RFGQ3EQV.js.map +0 -1
  198. package/dist/chunk-T4H33PBR.cjs.map +0 -1
  199. package/dist/llm/model/openai-compatible.d.ts +0 -37
  200. package/dist/llm/model/openai-compatible.d.ts.map +0 -1
package/dist/index.cjs CHANGED
@@ -3,22 +3,22 @@
3
3
  var chunkNEWEONKX_cjs = require('./chunk-NEWEONKX.cjs');
4
4
  var chunk4PRV2Y55_cjs = require('./chunk-4PRV2Y55.cjs');
5
5
  var chunkIB27A3HF_cjs = require('./chunk-IB27A3HF.cjs');
6
- var chunk7EUC32F3_cjs = require('./chunk-7EUC32F3.cjs');
7
- var chunkZNK5RN5D_cjs = require('./chunk-ZNK5RN5D.cjs');
8
- var chunkOKIHIKXV_cjs = require('./chunk-OKIHIKXV.cjs');
6
+ var chunk6K7IMZVR_cjs = require('./chunk-6K7IMZVR.cjs');
7
+ var chunk3Z3DP6S2_cjs = require('./chunk-3Z3DP6S2.cjs');
8
+ var chunkWE6ILDQY_cjs = require('./chunk-WE6ILDQY.cjs');
9
9
  var chunkQLYANYE2_cjs = require('./chunk-QLYANYE2.cjs');
10
10
  var chunk576KDLXN_cjs = require('./chunk-576KDLXN.cjs');
11
- var chunkK4AYIXVH_cjs = require('./chunk-K4AYIXVH.cjs');
12
- var chunkT4H33PBR_cjs = require('./chunk-T4H33PBR.cjs');
11
+ var chunkL5A4MRCK_cjs = require('./chunk-L5A4MRCK.cjs');
12
+ var chunkIKLSJCMT_cjs = require('./chunk-IKLSJCMT.cjs');
13
13
  var chunk2JUDZXVI_cjs = require('./chunk-2JUDZXVI.cjs');
14
- var chunk2SH5WPUA_cjs = require('./chunk-2SH5WPUA.cjs');
14
+ var chunkBG5FC6ZZ_cjs = require('./chunk-BG5FC6ZZ.cjs');
15
15
  var chunkTSNDVBUU_cjs = require('./chunk-TSNDVBUU.cjs');
16
- var chunkDVHBWEYY_cjs = require('./chunk-DVHBWEYY.cjs');
17
- var chunkA4RAEU6X_cjs = require('./chunk-A4RAEU6X.cjs');
16
+ var chunkLCJHFYJS_cjs = require('./chunk-LCJHFYJS.cjs');
17
+ var chunkSE4PA467_cjs = require('./chunk-SE4PA467.cjs');
18
18
  var chunk4L3P3PCP_cjs = require('./chunk-4L3P3PCP.cjs');
19
19
 
20
20
  // src/agent/index.warning.ts
21
- var Agent2 = class extends chunkT4H33PBR_cjs.Agent {
21
+ var Agent2 = class extends chunkIKLSJCMT_cjs.Agent {
22
22
  constructor(config) {
23
23
  super(config);
24
24
  this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
@@ -52,7 +52,7 @@ var MastraStorage2 = class extends chunkIB27A3HF_cjs.MastraStorage {
52
52
  };
53
53
 
54
54
  // src/integration/integration.warning.ts
55
- var Integration2 = class extends chunkK4AYIXVH_cjs.Integration {
55
+ var Integration2 = class extends chunkL5A4MRCK_cjs.Integration {
56
56
  constructor() {
57
57
  super();
58
58
  console.warn('Please import "Integration" from "@mastra/core/integration" instead of "@mastra/core"');
@@ -60,7 +60,7 @@ var Integration2 = class extends chunkK4AYIXVH_cjs.Integration {
60
60
  };
61
61
 
62
62
  // src/integration/openapi-toolset.warning.ts
63
- var OpenAPIToolset2 = class extends chunkK4AYIXVH_cjs.OpenAPIToolset {
63
+ var OpenAPIToolset2 = class extends chunkL5A4MRCK_cjs.OpenAPIToolset {
64
64
  constructor() {
65
65
  super();
66
66
  console.warn('Please import "OpenAPIToolset" from "@mastra/core/integration" instead of "@mastra/core"');
@@ -68,7 +68,7 @@ var OpenAPIToolset2 = class extends chunkK4AYIXVH_cjs.OpenAPIToolset {
68
68
  };
69
69
 
70
70
  // src/memory/index.warning.ts
71
- var MastraMemory2 = class extends chunkZNK5RN5D_cjs.MastraMemory {
71
+ var MastraMemory2 = class extends chunk3Z3DP6S2_cjs.MastraMemory {
72
72
  constructor(_arg) {
73
73
  super({ name: `Deprecated memory` });
74
74
  this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
@@ -76,7 +76,7 @@ var MastraMemory2 = class extends chunkZNK5RN5D_cjs.MastraMemory {
76
76
  };
77
77
 
78
78
  // src/tools/index.warning.ts
79
- var Tool2 = class extends chunkA4RAEU6X_cjs.Tool {
79
+ var Tool2 = class extends chunkSE4PA467_cjs.Tool {
80
80
  constructor(opts) {
81
81
  super(opts);
82
82
  console.warn('Please import "Tool" from "@mastra/core/tools" instead of "@mastra/core"');
@@ -100,7 +100,7 @@ var MastraVector2 = class extends chunk4PRV2Y55_cjs.MastraVector {
100
100
  };
101
101
 
102
102
  // src/workflows/workflow.warning.ts
103
- var Workflow2 = class extends chunkT4H33PBR_cjs.Workflow {
103
+ var Workflow2 = class extends chunkIKLSJCMT_cjs.Workflow {
104
104
  constructor(args) {
105
105
  super(args);
106
106
  this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
@@ -129,27 +129,27 @@ Object.defineProperty(exports, "serializeDate", {
129
129
  });
130
130
  Object.defineProperty(exports, "Mastra", {
131
131
  enumerable: true,
132
- get: function () { return chunk7EUC32F3_cjs.Mastra; }
132
+ get: function () { return chunk6K7IMZVR_cjs.Mastra; }
133
133
  });
134
134
  Object.defineProperty(exports, "MemoryProcessor", {
135
135
  enumerable: true,
136
- get: function () { return chunkZNK5RN5D_cjs.MemoryProcessor; }
136
+ get: function () { return chunk3Z3DP6S2_cjs.MemoryProcessor; }
137
137
  });
138
138
  Object.defineProperty(exports, "memoryDefaultOptions", {
139
139
  enumerable: true,
140
- get: function () { return chunkZNK5RN5D_cjs.memoryDefaultOptions; }
140
+ get: function () { return chunk3Z3DP6S2_cjs.memoryDefaultOptions; }
141
141
  });
142
142
  Object.defineProperty(exports, "CohereRelevanceScorer", {
143
143
  enumerable: true,
144
- get: function () { return chunkOKIHIKXV_cjs.CohereRelevanceScorer; }
144
+ get: function () { return chunkWE6ILDQY_cjs.CohereRelevanceScorer; }
145
145
  });
146
146
  Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
147
147
  enumerable: true,
148
- get: function () { return chunkOKIHIKXV_cjs.MastraAgentRelevanceScorer; }
148
+ get: function () { return chunkWE6ILDQY_cjs.MastraAgentRelevanceScorer; }
149
149
  });
150
150
  Object.defineProperty(exports, "createSimilarityPrompt", {
151
151
  enumerable: true,
152
- get: function () { return chunkOKIHIKXV_cjs.createSimilarityPrompt; }
152
+ get: function () { return chunkWE6ILDQY_cjs.createSimilarityPrompt; }
153
153
  });
154
154
  Object.defineProperty(exports, "Metric", {
155
155
  enumerable: true,
@@ -161,43 +161,43 @@ Object.defineProperty(exports, "evaluate", {
161
161
  });
162
162
  Object.defineProperty(exports, "DefaultExecutionEngine", {
163
163
  enumerable: true,
164
- get: function () { return chunkT4H33PBR_cjs.DefaultExecutionEngine; }
164
+ get: function () { return chunkIKLSJCMT_cjs.DefaultExecutionEngine; }
165
165
  });
166
166
  Object.defineProperty(exports, "ExecutionEngine", {
167
167
  enumerable: true,
168
- get: function () { return chunkT4H33PBR_cjs.ExecutionEngine; }
168
+ get: function () { return chunkIKLSJCMT_cjs.ExecutionEngine; }
169
169
  });
170
170
  Object.defineProperty(exports, "Run", {
171
171
  enumerable: true,
172
- get: function () { return chunkT4H33PBR_cjs.Run; }
172
+ get: function () { return chunkIKLSJCMT_cjs.Run; }
173
173
  });
174
174
  Object.defineProperty(exports, "cloneStep", {
175
175
  enumerable: true,
176
- get: function () { return chunkT4H33PBR_cjs.cloneStep; }
176
+ get: function () { return chunkIKLSJCMT_cjs.cloneStep; }
177
177
  });
178
178
  Object.defineProperty(exports, "cloneWorkflow", {
179
179
  enumerable: true,
180
- get: function () { return chunkT4H33PBR_cjs.cloneWorkflow; }
180
+ get: function () { return chunkIKLSJCMT_cjs.cloneWorkflow; }
181
181
  });
182
182
  Object.defineProperty(exports, "createStep", {
183
183
  enumerable: true,
184
- get: function () { return chunkT4H33PBR_cjs.createStep; }
184
+ get: function () { return chunkIKLSJCMT_cjs.createStep; }
185
185
  });
186
186
  Object.defineProperty(exports, "createWorkflow", {
187
187
  enumerable: true,
188
- get: function () { return chunkT4H33PBR_cjs.createWorkflow; }
188
+ get: function () { return chunkIKLSJCMT_cjs.createWorkflow; }
189
189
  });
190
190
  Object.defineProperty(exports, "getStepResult", {
191
191
  enumerable: true,
192
- get: function () { return chunkT4H33PBR_cjs.getStepResult; }
192
+ get: function () { return chunkIKLSJCMT_cjs.getStepResult; }
193
193
  });
194
194
  Object.defineProperty(exports, "mapVariable", {
195
195
  enumerable: true,
196
- get: function () { return chunkT4H33PBR_cjs.mapVariable; }
196
+ get: function () { return chunkIKLSJCMT_cjs.mapVariable; }
197
197
  });
198
198
  Object.defineProperty(exports, "validateStepInput", {
199
199
  enumerable: true,
200
- get: function () { return chunkT4H33PBR_cjs.validateStepInput; }
200
+ get: function () { return chunkIKLSJCMT_cjs.validateStepInput; }
201
201
  });
202
202
  Object.defineProperty(exports, "InstrumentClass", {
203
203
  enumerable: true,
@@ -223,21 +223,21 @@ Object.defineProperty(exports, "withSpan", {
223
223
  enumerable: true,
224
224
  get: function () { return chunk2JUDZXVI_cjs.withSpan; }
225
225
  });
226
- Object.defineProperty(exports, "OpenAICompatibleModel", {
226
+ Object.defineProperty(exports, "ModelRouterLanguageModel", {
227
227
  enumerable: true,
228
- get: function () { return chunk2SH5WPUA_cjs.OpenAICompatibleModel; }
228
+ get: function () { return chunkBG5FC6ZZ_cjs.ModelRouterLanguageModel; }
229
229
  });
230
230
  Object.defineProperty(exports, "PROVIDER_REGISTRY", {
231
231
  enumerable: true,
232
- get: function () { return chunk2SH5WPUA_cjs.PROVIDER_REGISTRY; }
232
+ get: function () { return chunkBG5FC6ZZ_cjs.PROVIDER_REGISTRY; }
233
233
  });
234
234
  Object.defineProperty(exports, "getProviderConfig", {
235
235
  enumerable: true,
236
- get: function () { return chunk2SH5WPUA_cjs.getProviderConfig; }
236
+ get: function () { return chunkBG5FC6ZZ_cjs.getProviderConfig; }
237
237
  });
238
238
  Object.defineProperty(exports, "parseModelString", {
239
239
  enumerable: true,
240
- get: function () { return chunk2SH5WPUA_cjs.parseModelString; }
240
+ get: function () { return chunkBG5FC6ZZ_cjs.parseModelString; }
241
241
  });
242
242
  Object.defineProperty(exports, "AvailableHooks", {
243
243
  enumerable: true,
@@ -253,71 +253,71 @@ Object.defineProperty(exports, "registerHook", {
253
253
  });
254
254
  Object.defineProperty(exports, "checkEvalStorageFields", {
255
255
  enumerable: true,
256
- get: function () { return chunkDVHBWEYY_cjs.checkEvalStorageFields; }
256
+ get: function () { return chunkLCJHFYJS_cjs.checkEvalStorageFields; }
257
257
  });
258
258
  Object.defineProperty(exports, "createMastraProxy", {
259
259
  enumerable: true,
260
- get: function () { return chunkDVHBWEYY_cjs.createMastraProxy; }
260
+ get: function () { return chunkLCJHFYJS_cjs.createMastraProxy; }
261
261
  });
262
262
  Object.defineProperty(exports, "deepMerge", {
263
263
  enumerable: true,
264
- get: function () { return chunkDVHBWEYY_cjs.deepMerge; }
264
+ get: function () { return chunkLCJHFYJS_cjs.deepMerge; }
265
265
  });
266
266
  Object.defineProperty(exports, "delay", {
267
267
  enumerable: true,
268
- get: function () { return chunkDVHBWEYY_cjs.delay; }
268
+ get: function () { return chunkLCJHFYJS_cjs.delay; }
269
269
  });
270
270
  Object.defineProperty(exports, "ensureToolProperties", {
271
271
  enumerable: true,
272
- get: function () { return chunkDVHBWEYY_cjs.ensureToolProperties; }
272
+ get: function () { return chunkLCJHFYJS_cjs.ensureToolProperties; }
273
273
  });
274
274
  Object.defineProperty(exports, "fetchWithRetry", {
275
275
  enumerable: true,
276
- get: function () { return chunkDVHBWEYY_cjs.fetchWithRetry; }
276
+ get: function () { return chunkLCJHFYJS_cjs.fetchWithRetry; }
277
277
  });
278
278
  Object.defineProperty(exports, "generateEmptyFromSchema", {
279
279
  enumerable: true,
280
- get: function () { return chunkDVHBWEYY_cjs.generateEmptyFromSchema; }
280
+ get: function () { return chunkLCJHFYJS_cjs.generateEmptyFromSchema; }
281
281
  });
282
282
  Object.defineProperty(exports, "isCoreMessage", {
283
283
  enumerable: true,
284
- get: function () { return chunkDVHBWEYY_cjs.isCoreMessage; }
284
+ get: function () { return chunkLCJHFYJS_cjs.isCoreMessage; }
285
285
  });
286
286
  Object.defineProperty(exports, "isUiMessage", {
287
287
  enumerable: true,
288
- get: function () { return chunkDVHBWEYY_cjs.isUiMessage; }
288
+ get: function () { return chunkLCJHFYJS_cjs.isUiMessage; }
289
289
  });
290
290
  Object.defineProperty(exports, "isZodType", {
291
291
  enumerable: true,
292
- get: function () { return chunkDVHBWEYY_cjs.isZodType; }
292
+ get: function () { return chunkLCJHFYJS_cjs.isZodType; }
293
293
  });
294
294
  Object.defineProperty(exports, "makeCoreTool", {
295
295
  enumerable: true,
296
- get: function () { return chunkDVHBWEYY_cjs.makeCoreTool; }
296
+ get: function () { return chunkLCJHFYJS_cjs.makeCoreTool; }
297
297
  });
298
298
  Object.defineProperty(exports, "makeCoreToolV5", {
299
299
  enumerable: true,
300
- get: function () { return chunkDVHBWEYY_cjs.makeCoreToolV5; }
300
+ get: function () { return chunkLCJHFYJS_cjs.makeCoreToolV5; }
301
301
  });
302
302
  Object.defineProperty(exports, "maskStreamTags", {
303
303
  enumerable: true,
304
- get: function () { return chunkDVHBWEYY_cjs.maskStreamTags; }
304
+ get: function () { return chunkLCJHFYJS_cjs.maskStreamTags; }
305
305
  });
306
306
  Object.defineProperty(exports, "parseFieldKey", {
307
307
  enumerable: true,
308
- get: function () { return chunkDVHBWEYY_cjs.parseFieldKey; }
308
+ get: function () { return chunkLCJHFYJS_cjs.parseFieldKey; }
309
309
  });
310
310
  Object.defineProperty(exports, "parseSqlIdentifier", {
311
311
  enumerable: true,
312
- get: function () { return chunkDVHBWEYY_cjs.parseSqlIdentifier; }
312
+ get: function () { return chunkLCJHFYJS_cjs.parseSqlIdentifier; }
313
313
  });
314
314
  Object.defineProperty(exports, "resolveSerializedZodOutput", {
315
315
  enumerable: true,
316
- get: function () { return chunkDVHBWEYY_cjs.resolveSerializedZodOutput; }
316
+ get: function () { return chunkLCJHFYJS_cjs.resolveSerializedZodOutput; }
317
317
  });
318
318
  Object.defineProperty(exports, "createTool", {
319
319
  enumerable: true,
320
- get: function () { return chunkA4RAEU6X_cjs.createTool; }
320
+ get: function () { return chunkSE4PA467_cjs.createTool; }
321
321
  });
322
322
  exports.Agent = Agent2;
323
323
  exports.Integration = Integration2;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/agent/index.warning.ts","../src/base.warning.ts","../src/deployer/index.warning.ts","../src/storage/base.warning.ts","../src/integration/integration.warning.ts","../src/integration/openapi-toolset.warning.ts","../src/memory/index.warning.ts","../src/tools/index.warning.ts","../src/tts/index.warning.ts","../src/vector/index.warning.ts","../src/workflows/workflow.warning.ts"],"names":["Agent","MastraBase","MastraDeployer","MastraStorage","Integration","OpenAPIToolset","MastraMemory","Tool","MastraTTS","MastraVector","Workflow"],"mappings":";;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,MAAAA,GAAN,cAIGA,uBAAA,CAAsC;AAAA,EAC9C,YAAY,MAAA,EAAiD;AAC3D,IAAA,KAAA,CAAM,MAAM,CAAA;AAEZ,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,0EAA0E,CAAA;AAAA,EAC7F;AACF;;;ACbO,IAAMC,WAAAA,GAAN,cAAy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AA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,OAAA,CAAQ,KAAK,0EAA0E,CAAA;AAAA,EACzF;AACF;;;AClBO,IAAeC,UAAAA,GAAf,cAAiCA,2BAAA,CAAc;AAAA,EACpD,YAAY,IAAA,EAAiB;AAC3B,IAAA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,6EAA6E,CAAA;AAAA,EAChG;AACF;;;ACPO,IAAeC,aAAAA,GAAf,cAAoCA,8BAAA,CAAiB;AAAA,EAC1D,WAAA,GAAc;AACZ,IAAA,KAAA,EAAM;AAEN,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,mFAAmF,CAAA;AAAA,EACtG;AACF;;;ACFO,IAAMC,SAAAA,GAAN,cAOGA,0BAAA,CAA6E;AAAA,EACrF,YAAY,IAAA,EAA4D;AACtE,IAAA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,kFAAkF,CAAA;AAAA,EACrG;AACF","file":"index.cjs","sourcesContent":["import type { Metric } from '../eval';\nimport type { ToolAction } from '../tools';\n\nimport type { AgentConfig } from './types';\nimport { Agent as BaseAgent } from './index';\n\nexport class Agent<\n TAgentId extends string = string,\n TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>,\n TMetrics extends Record<string, Metric> = Record<string, Metric>,\n> extends BaseAgent<TAgentId, TTools, TMetrics> {\n constructor(config: AgentConfig<TAgentId, TTools, TMetrics>) {\n super(config);\n\n this.logger.warn('Please import \"Agent from \"@mastra/core/agent\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraBase as MastraBaseBase } from './base';\nimport type { RegisteredLogger } from './logger';\n\nexport class MastraBase extends MastraBaseBase {\n constructor(args: { component?: RegisteredLogger; name?: string }) {\n super(args);\n\n this.logger.warn('Please import \"MastraBase\" from \"@mastra/core/base\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraDeployer as BaseMastraDeployer } from './index';\n\nexport abstract class MastraDeployer extends BaseMastraDeployer {\n constructor(args: { name: string; mastraDir: string; outputDirectory: string }) {\n super(args);\n\n this.logger.warn('Please import \"MastraDeployer\" from \"@mastra/core/deployer\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraStorage as BaseMastraStorage } from './base';\n\nexport * from './base';\n\nexport abstract class MastraStorage extends BaseMastraStorage {\n constructor({ name }: { name: string }) {\n super({\n name,\n });\n\n this.logger.warn('Please import \"MastraStorage\" from \"@mastra/core/storage\" instead of \"@mastra/core\"');\n }\n}\n","import { Integration as BaseIntegration } from './integration';\n\nexport class Integration<ToolsParams = void, ApiClient = void> extends BaseIntegration<ToolsParams, ApiClient> {\n constructor() {\n super();\n\n console.warn('Please import \"Integration\" from \"@mastra/core/integration\" instead of \"@mastra/core\"');\n }\n}\n","import { OpenAPIToolset as BaseOpenAPIToolset } from './openapi-toolset';\n\nexport abstract class OpenAPIToolset extends BaseOpenAPIToolset {\n constructor() {\n super();\n\n console.warn('Please import \"OpenAPIToolset\" from \"@mastra/core/integration\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraMemory as BaseMemory } from './memory';\n\nexport * from './index';\n\nexport abstract class MastraMemory extends BaseMemory {\n constructor(_arg?: any) {\n // @ts-ignore\n super({ name: `Deprecated memory` });\n\n this.logger.warn('Please import \"MastraMemory\" from \"@mastra/core/memory\" instead of \"@mastra/core\"');\n }\n}\n","import type { z } from 'zod';\n\nimport { Tool as BaseTool } from './tool';\nimport type { ToolAction, ToolExecutionContext } from './types';\n\nexport * from './tool';\n\nexport class Tool<\n TSchemaIn extends z.ZodSchema | undefined = undefined,\n TSchemaOut extends z.ZodSchema | undefined = undefined,\n TSuspendSchema extends z.ZodSchema = any,\n TResumeSchema extends z.ZodSchema = any,\n TContext extends ToolExecutionContext<TSchemaIn, TSuspendSchema, TResumeSchema> = ToolExecutionContext<\n TSchemaIn,\n TSuspendSchema,\n TResumeSchema\n >,\n> extends BaseTool<TSchemaIn, TSchemaOut, TSuspendSchema, TResumeSchema, TContext> {\n constructor(opts: ToolAction<TSchemaIn, TSchemaOut, TSuspendSchema, TResumeSchema, TContext>) {\n super(opts);\n\n console.warn('Please import \"Tool\" from \"@mastra/core/tools\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraTTS as BaseMastraTTS } from './index';\nimport type { TTSConfig } from './index';\n\nexport * from './index';\n\nexport abstract class MastraTTS extends BaseMastraTTS {\n constructor(args: TTSConfig) {\n super(args);\n\n this.logger.warn('Please import \"MastraTTS\" from \"@mastra/core/tts\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraVector as BaseMastraVector } from './vector';\n\nexport * from './index';\n\nexport abstract class MastraVector extends BaseMastraVector {\n constructor() {\n super();\n\n this.logger.warn('Please import \"MastraVector\" from \"@mastra/core/vector\" instead of \"@mastra/core\"');\n }\n}\n","import type { z } from 'zod';\n\nimport type { Step } from './step';\nimport type { DefaultEngineType, WorkflowConfig } from './types';\nimport { Workflow as BaseWorkflow } from './workflow';\n\nexport * from './index';\n\nexport class Workflow<\n TEngineType = DefaultEngineType,\n TSteps extends Step<string, any, any, any, any, TEngineType>[] = Step<string, any, any, any, any, TEngineType>[],\n TWorkflowId extends string = string,\n TInput extends z.ZodType<any> = z.ZodType<any>,\n TOutput extends z.ZodType<any> = z.ZodType<any>,\n TPrevSchema extends z.ZodType<any> = TInput,\n> extends BaseWorkflow<TEngineType, TSteps, TWorkflowId, TInput, TOutput, TPrevSchema> {\n constructor(args: WorkflowConfig<TWorkflowId, TInput, TOutput, TSteps>) {\n super(args);\n\n this.logger.warn('Please import \"Workflow\" from \"@mastra/core/workflows\" instead of \"@mastra/core\"');\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/agent/index.warning.ts","../src/base.warning.ts","../src/deployer/index.warning.ts","../src/storage/base.warning.ts","../src/integration/integration.warning.ts","../src/integration/openapi-toolset.warning.ts","../src/memory/index.warning.ts","../src/tools/index.warning.ts","../src/tts/index.warning.ts","../src/vector/index.warning.ts","../src/workflows/workflow.warning.ts"],"names":["Agent","MastraBase","MastraDeployer","MastraStorage","Integration","OpenAPIToolset","MastraMemory","Tool","MastraTTS","MastraVector","Workflow"],"mappings":";;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,MAAAA,GAAN,cAIGA,uBAAA,CAAsC;AAAA,EAC9C,YAAY,MAAA,EAAiD;AAC3D,IAAA,KAAA,CAAM,MAAM,CAAA;AAEZ,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,0EAA0E,CAAA;AAAA,EAC7F;AACF;;;ACbO,IAAMC,WAAAA,GAAN,cAAyBA,4BAAA,CAAe;AAAA,EAC7C,YAAY,IAAA,EAAuD;AACjE,IAAA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,+EAA+E,CAAA;AAAA,EAClG;AACF;;;ACPO,IAAeC,eAAAA,GAAf,cAAsCA,gCAAA,CAAmB;AAAA,EAC9D,YAAY,IAAA,EAAoE;AAC9E,IAAA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,uFAAuF,CAAA;AAAA,EAC1G;AACF;;;ACJO,IAAeC,cAAAA,GAAf,cAAqCA,+BAAA,CAAkB;AAAA,EAC5D,WAAA,CAAY,EAAE,IAAA,EAAK,EAAqB;AACtC,IAAA,KAAA,CAAM;AAAA,MACJ;AAAA,KACD,CAAA;AAED,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,qFAAqF,CAAA;AAAA,EACxG;AACF;;;ACVO,IAAMC,YAAAA,GAAN,cAAgEA,6BAAA,CAAwC;AAAA,EAC7G,WAAA,GAAc;AACZ,IAAA,KAAA,EAAM;AAEN,IAAA,OAAA,CAAQ,KAAK,uFAAuF,CAAA;AAAA,EACtG;AACF;;;ACNO,IAAeC,eAAAA,GAAf,cAAsCA,gCAAA,CAAmB;AAAA,EAC9D,WAAA,GAAc;AACZ,IAAA,KAAA,EAAM;AAEN,IAAA,OAAA,CAAQ,KAAK,0FAA0F,CAAA;AAAA,EACzG;AACF;;;ACJO,IAAeC,aAAAA,GAAf,cAAoCA,8BAAA,CAAW;AAAA,EACpD,YAAY,IAAA,EAAY;AAEtB,IAAA,KAAA,CAAM,EAAE,IAAA,EAAM,CAAA,iBAAA,CAAA,EAAqB,CAAA;AAEnC,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,mFAAmF,CAAA;AAAA,EACtG;AACF;;;ACJO,IAAMC,KAAAA,GAAN,cAUGA,sBAAA,CAAyE;AAAA,EACjF,YAAY,IAAA,EAAkF;AAC5F,IAAA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,OAAA,CAAQ,KAAK,0EAA0E,CAAA;AAAA,EACzF;AACF;;;AClBO,IAAeC,UAAAA,GAAf,cAAiCA,2BAAA,CAAc;AAAA,EACpD,YAAY,IAAA,EAAiB;AAC3B,IAAA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,6EAA6E,CAAA;AAAA,EAChG;AACF;;;ACPO,IAAeC,aAAAA,GAAf,cAAoCA,8BAAA,CAAiB;AAAA,EAC1D,WAAA,GAAc;AACZ,IAAA,KAAA,EAAM;AAEN,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,mFAAmF,CAAA;AAAA,EACtG;AACF;;;ACFO,IAAMC,SAAAA,GAAN,cAgBGA,0BAAA,CAAqF;AAAA,EAC7F,YAAY,IAAA,EAAoE;AAC9E,IAAA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,kFAAkF,CAAA;AAAA,EACrG;AACF","file":"index.cjs","sourcesContent":["import type { Metric } from '../eval';\nimport type { ToolAction } from '../tools';\n\nimport type { AgentConfig } from './types';\nimport { Agent as BaseAgent } from './index';\n\nexport class Agent<\n TAgentId extends string = string,\n TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>,\n TMetrics extends Record<string, Metric> = Record<string, Metric>,\n> extends BaseAgent<TAgentId, TTools, TMetrics> {\n constructor(config: AgentConfig<TAgentId, TTools, TMetrics>) {\n super(config);\n\n this.logger.warn('Please import \"Agent from \"@mastra/core/agent\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraBase as MastraBaseBase } from './base';\nimport type { RegisteredLogger } from './logger';\n\nexport class MastraBase extends MastraBaseBase {\n constructor(args: { component?: RegisteredLogger; name?: string }) {\n super(args);\n\n this.logger.warn('Please import \"MastraBase\" from \"@mastra/core/base\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraDeployer as BaseMastraDeployer } from './index';\n\nexport abstract class MastraDeployer extends BaseMastraDeployer {\n constructor(args: { name: string; mastraDir: string; outputDirectory: string }) {\n super(args);\n\n this.logger.warn('Please import \"MastraDeployer\" from \"@mastra/core/deployer\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraStorage as BaseMastraStorage } from './base';\n\nexport * from './base';\n\nexport abstract class MastraStorage extends BaseMastraStorage {\n constructor({ name }: { name: string }) {\n super({\n name,\n });\n\n this.logger.warn('Please import \"MastraStorage\" from \"@mastra/core/storage\" instead of \"@mastra/core\"');\n }\n}\n","import { Integration as BaseIntegration } from './integration';\n\nexport class Integration<ToolsParams = void, ApiClient = void> extends BaseIntegration<ToolsParams, ApiClient> {\n constructor() {\n super();\n\n console.warn('Please import \"Integration\" from \"@mastra/core/integration\" instead of \"@mastra/core\"');\n }\n}\n","import { OpenAPIToolset as BaseOpenAPIToolset } from './openapi-toolset';\n\nexport abstract class OpenAPIToolset extends BaseOpenAPIToolset {\n constructor() {\n super();\n\n console.warn('Please import \"OpenAPIToolset\" from \"@mastra/core/integration\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraMemory as BaseMemory } from './memory';\n\nexport * from './index';\n\nexport abstract class MastraMemory extends BaseMemory {\n constructor(_arg?: any) {\n // @ts-ignore\n super({ name: `Deprecated memory` });\n\n this.logger.warn('Please import \"MastraMemory\" from \"@mastra/core/memory\" instead of \"@mastra/core\"');\n }\n}\n","import type { z } from 'zod';\n\nimport { Tool as BaseTool } from './tool';\nimport type { ToolAction, ToolExecutionContext } from './types';\n\nexport * from './tool';\n\nexport class Tool<\n TSchemaIn extends z.ZodSchema | undefined = undefined,\n TSchemaOut extends z.ZodSchema | undefined = undefined,\n TSuspendSchema extends z.ZodSchema = any,\n TResumeSchema extends z.ZodSchema = any,\n TContext extends ToolExecutionContext<TSchemaIn, TSuspendSchema, TResumeSchema> = ToolExecutionContext<\n TSchemaIn,\n TSuspendSchema,\n TResumeSchema\n >,\n> extends BaseTool<TSchemaIn, TSchemaOut, TSuspendSchema, TResumeSchema, TContext> {\n constructor(opts: ToolAction<TSchemaIn, TSchemaOut, TSuspendSchema, TResumeSchema, TContext>) {\n super(opts);\n\n console.warn('Please import \"Tool\" from \"@mastra/core/tools\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraTTS as BaseMastraTTS } from './index';\nimport type { TTSConfig } from './index';\n\nexport * from './index';\n\nexport abstract class MastraTTS extends BaseMastraTTS {\n constructor(args: TTSConfig) {\n super(args);\n\n this.logger.warn('Please import \"MastraTTS\" from \"@mastra/core/tts\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraVector as BaseMastraVector } from './vector';\n\nexport * from './index';\n\nexport abstract class MastraVector extends BaseMastraVector {\n constructor() {\n super();\n\n this.logger.warn('Please import \"MastraVector\" from \"@mastra/core/vector\" instead of \"@mastra/core\"');\n }\n}\n","import type { z } from 'zod';\n\nimport type { Step } from './step';\nimport type { DefaultEngineType, WorkflowConfig } from './types';\nimport { Workflow as BaseWorkflow } from './workflow';\n\nexport * from './index';\n\nexport class Workflow<\n TEngineType = DefaultEngineType,\n TSteps extends Step<string, any, any, any, any, any, TEngineType>[] = Step<\n string,\n any,\n any,\n any,\n any,\n any,\n TEngineType\n >[],\n TWorkflowId extends string = string,\n TState extends z.ZodObject<any> = z.ZodObject<any>,\n TInput extends z.ZodType<any> = z.ZodType<any>,\n TOutput extends z.ZodType<any> = z.ZodType<any>,\n TPrevSchema extends z.ZodType<any> = TInput,\n> extends BaseWorkflow<TEngineType, TSteps, TWorkflowId, TState, TInput, TOutput, TPrevSchema> {\n constructor(args: WorkflowConfig<TWorkflowId, TState, TInput, TOutput, TSteps>) {\n super(args);\n\n this.logger.warn('Please import \"Workflow\" from \"@mastra/core/workflows\" instead of \"@mastra/core\"');\n }\n}\n"]}
package/dist/index.js CHANGED
@@ -3,21 +3,21 @@ import { MastraVector } from './chunk-KK5LUATU.js';
3
3
  export { embed as embedV1, embed2 as embedV2 } from './chunk-KK5LUATU.js';
4
4
  import { MastraStorage } from './chunk-NMSLDMQ6.js';
5
5
  export { ensureDate, resolveMessageLimit, serializeDate } from './chunk-NMSLDMQ6.js';
6
- export { Mastra } from './chunk-COYTVUIL.js';
7
- import { MastraMemory } from './chunk-KGBDRSMX.js';
8
- export { MemoryProcessor, memoryDefaultOptions } from './chunk-KGBDRSMX.js';
9
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-ZJ2UFCTS.js';
6
+ export { Mastra } from './chunk-EKFF7JLS.js';
7
+ import { MastraMemory } from './chunk-5I6DXBUR.js';
8
+ export { MemoryProcessor, memoryDefaultOptions } from './chunk-5I6DXBUR.js';
9
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-Y2TIJVKC.js';
10
10
  import { MastraDeployer } from './chunk-GBW5ZDLZ.js';
11
11
  export { Metric, evaluate } from './chunk-M4AX46DS.js';
12
- import { Integration, OpenAPIToolset } from './chunk-RYFQKXXS.js';
13
- import { Agent, Workflow } from './chunk-DQISKQDE.js';
14
- export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow, getStepResult, mapVariable, validateStepInput } from './chunk-DQISKQDE.js';
12
+ import { Integration, OpenAPIToolset } from './chunk-H4KO46HZ.js';
13
+ import { Agent, Workflow } from './chunk-OBAFLVGD.js';
14
+ export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow, getStepResult, mapVariable, validateStepInput } from './chunk-OBAFLVGD.js';
15
15
  export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-2DVGQK2L.js';
16
- export { OpenAICompatibleModel, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from './chunk-AND6J5LG.js';
16
+ export { ModelRouterLanguageModel, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from './chunk-W2WXYTYI.js';
17
17
  export { AvailableHooks, executeHook, registerHook } from './chunk-TTELJD4F.js';
18
- export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, isCoreMessage, isUiMessage, isZodType, makeCoreTool, makeCoreToolV5, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-CJDOU6WP.js';
19
- import { Tool } from './chunk-FV4QVXO4.js';
20
- export { createTool } from './chunk-FV4QVXO4.js';
18
+ export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, isCoreMessage, isUiMessage, isZodType, makeCoreTool, makeCoreToolV5, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-3KBXOXG6.js';
19
+ import { Tool } from './chunk-6OLRLZJ3.js';
20
+ export { createTool } from './chunk-6OLRLZJ3.js';
21
21
  import { MastraBase } from './chunk-BMVFEBPE.js';
22
22
 
23
23
  // src/agent/index.warning.ts
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/agent/index.warning.ts","../src/base.warning.ts","../src/deployer/index.warning.ts","../src/storage/base.warning.ts","../src/integration/integration.warning.ts","../src/integration/openapi-toolset.warning.ts","../src/memory/index.warning.ts","../src/tools/index.warning.ts","../src/tts/index.warning.ts","../src/vector/index.warning.ts","../src/workflows/workflow.warning.ts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AA,EACzG;AACF;;;ACJO,IAAeC,aAAAA,GAAf,cAAoC,YAAA,CAAW;AAAA,EACpD,YAAY,IAAA,EAAY;AAEtB,IAAA,KAAA,CAAM,EAAE,IAAA,EAAM,CAAA,iBAAA,CAAA,EAAqB,CAAA;AAEnC,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,mFAAmF,CAAA;AAAA,EACtG;AACF;;;ACJO,IAAMC,KAAAA,GAAN,cAUG,IAAA,CAAyE;AAAA,EACjF,YAAY,IAAA,EAAkF;AAC5F,IAAA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,OAAA,CAAQ,KAAK,0EAA0E,CAAA;AAAA,EACzF;AACF;;;AClBO,IAAeC,UAAAA,GAAf,cAAiC,SAAA,CAAc;AAAA,EACpD,YAAY,IAAA,EAAiB;AAC3B,IAAA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,6EAA6E,CAAA;AAAA,EAChG;AACF;;;ACPO,IAAeC,aAAAA,GAAf,cAAoC,YAAA,CAAiB;AAAA,EAC1D,WAAA,GAAc;AACZ,IAAA,KAAA,EAAM;AAEN,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,mFAAmF,CAAA;AAAA,EACtG;AACF;;;ACFO,IAAMC,SAAAA,GAAN,cAOG,QAAA,CAA6E;AAAA,EACrF,YAAY,IAAA,EAA4D;AACtE,IAAA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,kFAAkF,CAAA;AAAA,EACrG;AACF","file":"index.js","sourcesContent":["import type { Metric } from '../eval';\nimport type { ToolAction } from '../tools';\n\nimport type { AgentConfig } from './types';\nimport { Agent as BaseAgent } from './index';\n\nexport class Agent<\n TAgentId extends string = string,\n TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>,\n TMetrics extends Record<string, Metric> = Record<string, Metric>,\n> extends BaseAgent<TAgentId, TTools, TMetrics> {\n constructor(config: AgentConfig<TAgentId, TTools, TMetrics>) {\n super(config);\n\n this.logger.warn('Please import \"Agent from \"@mastra/core/agent\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraBase as MastraBaseBase } from './base';\nimport type { RegisteredLogger } from './logger';\n\nexport class MastraBase extends MastraBaseBase {\n constructor(args: { component?: RegisteredLogger; name?: string }) {\n super(args);\n\n this.logger.warn('Please import \"MastraBase\" from \"@mastra/core/base\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraDeployer as BaseMastraDeployer } from './index';\n\nexport abstract class MastraDeployer extends BaseMastraDeployer {\n constructor(args: { name: string; mastraDir: string; outputDirectory: string }) {\n super(args);\n\n this.logger.warn('Please import \"MastraDeployer\" from \"@mastra/core/deployer\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraStorage as BaseMastraStorage } from './base';\n\nexport * from './base';\n\nexport abstract class MastraStorage extends BaseMastraStorage {\n constructor({ name }: { name: string }) {\n super({\n name,\n });\n\n this.logger.warn('Please import \"MastraStorage\" from \"@mastra/core/storage\" instead of \"@mastra/core\"');\n }\n}\n","import { Integration as BaseIntegration } from './integration';\n\nexport class Integration<ToolsParams = void, ApiClient = void> extends BaseIntegration<ToolsParams, ApiClient> {\n constructor() {\n super();\n\n console.warn('Please import \"Integration\" from \"@mastra/core/integration\" instead of \"@mastra/core\"');\n }\n}\n","import { OpenAPIToolset as BaseOpenAPIToolset } from './openapi-toolset';\n\nexport abstract class OpenAPIToolset extends BaseOpenAPIToolset {\n constructor() {\n super();\n\n console.warn('Please import \"OpenAPIToolset\" from \"@mastra/core/integration\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraMemory as BaseMemory } from './memory';\n\nexport * from './index';\n\nexport abstract class MastraMemory extends BaseMemory {\n constructor(_arg?: any) {\n // @ts-ignore\n super({ name: `Deprecated memory` });\n\n this.logger.warn('Please import \"MastraMemory\" from \"@mastra/core/memory\" instead of \"@mastra/core\"');\n }\n}\n","import type { z } from 'zod';\n\nimport { Tool as BaseTool } from './tool';\nimport type { ToolAction, ToolExecutionContext } from './types';\n\nexport * from './tool';\n\nexport class Tool<\n TSchemaIn extends z.ZodSchema | undefined = undefined,\n TSchemaOut extends z.ZodSchema | undefined = undefined,\n TSuspendSchema extends z.ZodSchema = any,\n TResumeSchema extends z.ZodSchema = any,\n TContext extends ToolExecutionContext<TSchemaIn, TSuspendSchema, TResumeSchema> = ToolExecutionContext<\n TSchemaIn,\n TSuspendSchema,\n TResumeSchema\n >,\n> extends BaseTool<TSchemaIn, TSchemaOut, TSuspendSchema, TResumeSchema, TContext> {\n constructor(opts: ToolAction<TSchemaIn, TSchemaOut, TSuspendSchema, TResumeSchema, TContext>) {\n super(opts);\n\n console.warn('Please import \"Tool\" from \"@mastra/core/tools\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraTTS as BaseMastraTTS } from './index';\nimport type { TTSConfig } from './index';\n\nexport * from './index';\n\nexport abstract class MastraTTS extends BaseMastraTTS {\n constructor(args: TTSConfig) {\n super(args);\n\n this.logger.warn('Please import \"MastraTTS\" from \"@mastra/core/tts\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraVector as BaseMastraVector } from './vector';\n\nexport * from './index';\n\nexport abstract class MastraVector extends BaseMastraVector {\n constructor() {\n super();\n\n this.logger.warn('Please import \"MastraVector\" from \"@mastra/core/vector\" instead of \"@mastra/core\"');\n }\n}\n","import type { z } from 'zod';\n\nimport type { Step } from './step';\nimport type { DefaultEngineType, WorkflowConfig } from './types';\nimport { Workflow as BaseWorkflow } from './workflow';\n\nexport * from './index';\n\nexport class Workflow<\n TEngineType = DefaultEngineType,\n TSteps extends Step<string, any, any, any, any, TEngineType>[] = Step<string, any, any, any, any, TEngineType>[],\n TWorkflowId extends string = string,\n TInput extends z.ZodType<any> = z.ZodType<any>,\n TOutput extends z.ZodType<any> = z.ZodType<any>,\n TPrevSchema extends z.ZodType<any> = TInput,\n> extends BaseWorkflow<TEngineType, TSteps, TWorkflowId, TInput, TOutput, TPrevSchema> {\n constructor(args: WorkflowConfig<TWorkflowId, TInput, TOutput, TSteps>) {\n super(args);\n\n this.logger.warn('Please import \"Workflow\" from \"@mastra/core/workflows\" instead of \"@mastra/core\"');\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/agent/index.warning.ts","../src/base.warning.ts","../src/deployer/index.warning.ts","../src/storage/base.warning.ts","../src/integration/integration.warning.ts","../src/integration/openapi-toolset.warning.ts","../src/memory/index.warning.ts","../src/tools/index.warning.ts","../src/tts/index.warning.ts","../src/vector/index.warning.ts","../src/workflows/workflow.warning.ts"],"names":["Agent","MastraBase","MastraDeployer","MastraStorage","Integration","OpenAPIToolset","MastraMemory","Tool","MastraTTS","MastraVector","Workflow"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,MAAAA,GAAN,cAIG,KAAA,CAAsC;AAAA,EAC9C,YAAY,MAAA,EAAiD;AAC3D,IAAA,KAAA,CAAM,MAAM,CAAA;AAEZ,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,0EAA0E,CAAA;AAAA,EAC7F;AACF;;;ACbO,IAAMC,WAAAA,GAAN,cAAyB,UAAA,CAAe;AAAA,EAC7C,YAAY,IAAA,EAAuD;AACjE,IAAA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,+EAA+E,CAAA;AAAA,EAClG;AACF;;;ACPO,IAAeC,eAAAA,GAAf,cAAsC,cAAA,CAAmB;AAAA,EAC9D,YAAY,IAAA,EAAoE;AAC9E,IAAA,KAAA,CAAM,IAAI,CAAA;AAEV,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,uFAAuF,CAAA;AAAA,EAC1G;AACF;;;ACJO,IAAeC,cAAAA,GAAf,cAAqC,aAAA,CAAkB;AAAA,EAC5D,WAAA,CAAY,EAAE,IAAA,EAAK,EAAqB;AACtC,IAAA,KAAA,CAAM;AAAA,MACJ;AAAA,KACD,CAAA;AAED,IAAA,IAAA,CAAK,MAAA,CAAO,KA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M,IAAI,CAAA;AAEV,IAAA,IAAA,CAAK,MAAA,CAAO,KAAK,kFAAkF,CAAA;AAAA,EACrG;AACF","file":"index.js","sourcesContent":["import type { Metric } from '../eval';\nimport type { ToolAction } from '../tools';\n\nimport type { AgentConfig } from './types';\nimport { Agent as BaseAgent } from './index';\n\nexport class Agent<\n TAgentId extends string = string,\n TTools extends Record<string, ToolAction<any, any, any>> = Record<string, ToolAction<any, any, any>>,\n TMetrics extends Record<string, Metric> = Record<string, Metric>,\n> extends BaseAgent<TAgentId, TTools, TMetrics> {\n constructor(config: AgentConfig<TAgentId, TTools, TMetrics>) {\n super(config);\n\n this.logger.warn('Please import \"Agent from \"@mastra/core/agent\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraBase as MastraBaseBase } from './base';\nimport type { RegisteredLogger } from './logger';\n\nexport class MastraBase extends MastraBaseBase {\n constructor(args: { component?: RegisteredLogger; name?: string }) {\n super(args);\n\n this.logger.warn('Please import \"MastraBase\" from \"@mastra/core/base\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraDeployer as BaseMastraDeployer } from './index';\n\nexport abstract class MastraDeployer extends BaseMastraDeployer {\n constructor(args: { name: string; mastraDir: string; outputDirectory: string }) {\n super(args);\n\n this.logger.warn('Please import \"MastraDeployer\" from \"@mastra/core/deployer\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraStorage as BaseMastraStorage } from './base';\n\nexport * from './base';\n\nexport abstract class MastraStorage extends BaseMastraStorage {\n constructor({ name }: { name: string }) {\n super({\n name,\n });\n\n this.logger.warn('Please import \"MastraStorage\" from \"@mastra/core/storage\" instead of \"@mastra/core\"');\n }\n}\n","import { Integration as BaseIntegration } from './integration';\n\nexport class Integration<ToolsParams = void, ApiClient = void> extends BaseIntegration<ToolsParams, ApiClient> {\n constructor() {\n super();\n\n console.warn('Please import \"Integration\" from \"@mastra/core/integration\" instead of \"@mastra/core\"');\n }\n}\n","import { OpenAPIToolset as BaseOpenAPIToolset } from './openapi-toolset';\n\nexport abstract class OpenAPIToolset extends BaseOpenAPIToolset {\n constructor() {\n super();\n\n console.warn('Please import \"OpenAPIToolset\" from \"@mastra/core/integration\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraMemory as BaseMemory } from './memory';\n\nexport * from './index';\n\nexport abstract class MastraMemory extends BaseMemory {\n constructor(_arg?: any) {\n // @ts-ignore\n super({ name: `Deprecated memory` });\n\n this.logger.warn('Please import \"MastraMemory\" from \"@mastra/core/memory\" instead of \"@mastra/core\"');\n }\n}\n","import type { z } from 'zod';\n\nimport { Tool as BaseTool } from './tool';\nimport type { ToolAction, ToolExecutionContext } from './types';\n\nexport * from './tool';\n\nexport class Tool<\n TSchemaIn extends z.ZodSchema | undefined = undefined,\n TSchemaOut extends z.ZodSchema | undefined = undefined,\n TSuspendSchema extends z.ZodSchema = any,\n TResumeSchema extends z.ZodSchema = any,\n TContext extends ToolExecutionContext<TSchemaIn, TSuspendSchema, TResumeSchema> = ToolExecutionContext<\n TSchemaIn,\n TSuspendSchema,\n TResumeSchema\n >,\n> extends BaseTool<TSchemaIn, TSchemaOut, TSuspendSchema, TResumeSchema, TContext> {\n constructor(opts: ToolAction<TSchemaIn, TSchemaOut, TSuspendSchema, TResumeSchema, TContext>) {\n super(opts);\n\n console.warn('Please import \"Tool\" from \"@mastra/core/tools\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraTTS as BaseMastraTTS } from './index';\nimport type { TTSConfig } from './index';\n\nexport * from './index';\n\nexport abstract class MastraTTS extends BaseMastraTTS {\n constructor(args: TTSConfig) {\n super(args);\n\n this.logger.warn('Please import \"MastraTTS\" from \"@mastra/core/tts\" instead of \"@mastra/core\"');\n }\n}\n","import { MastraVector as BaseMastraVector } from './vector';\n\nexport * from './index';\n\nexport abstract class MastraVector extends BaseMastraVector {\n constructor() {\n super();\n\n this.logger.warn('Please import \"MastraVector\" from \"@mastra/core/vector\" instead of \"@mastra/core\"');\n }\n}\n","import type { z } from 'zod';\n\nimport type { Step } from './step';\nimport type { DefaultEngineType, WorkflowConfig } from './types';\nimport { Workflow as BaseWorkflow } from './workflow';\n\nexport * from './index';\n\nexport class Workflow<\n TEngineType = DefaultEngineType,\n TSteps extends Step<string, any, any, any, any, any, TEngineType>[] = Step<\n string,\n any,\n any,\n any,\n any,\n any,\n TEngineType\n >[],\n TWorkflowId extends string = string,\n TState extends z.ZodObject<any> = z.ZodObject<any>,\n TInput extends z.ZodType<any> = z.ZodType<any>,\n TOutput extends z.ZodType<any> = z.ZodType<any>,\n TPrevSchema extends z.ZodType<any> = TInput,\n> extends BaseWorkflow<TEngineType, TSteps, TWorkflowId, TState, TInput, TOutput, TPrevSchema> {\n constructor(args: WorkflowConfig<TWorkflowId, TState, TInput, TOutput, TSteps>) {\n super(args);\n\n this.logger.warn('Please import \"Workflow\" from \"@mastra/core/workflows\" instead of \"@mastra/core\"');\n }\n}\n"]}
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkK4AYIXVH_cjs = require('../chunk-K4AYIXVH.cjs');
3
+ var chunkL5A4MRCK_cjs = require('../chunk-L5A4MRCK.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Integration", {
8
8
  enumerable: true,
9
- get: function () { return chunkK4AYIXVH_cjs.Integration; }
9
+ get: function () { return chunkL5A4MRCK_cjs.Integration; }
10
10
  });
11
11
  Object.defineProperty(exports, "OpenAPIToolset", {
12
12
  enumerable: true,
13
- get: function () { return chunkK4AYIXVH_cjs.OpenAPIToolset; }
13
+ get: function () { return chunkL5A4MRCK_cjs.OpenAPIToolset; }
14
14
  });
15
15
  //# sourceMappingURL=index.cjs.map
16
16
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { Integration, OpenAPIToolset } from '../chunk-RYFQKXXS.js';
1
+ export { Integration, OpenAPIToolset } from '../chunk-H4KO46HZ.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var chunk2SH5WPUA_cjs = require('../chunk-2SH5WPUA.cjs');
3
+ var chunkBG5FC6ZZ_cjs = require('../chunk-BG5FC6ZZ.cjs');
4
4
 
5
5
 
6
6
 
7
- Object.defineProperty(exports, "OpenAICompatibleModel", {
7
+ Object.defineProperty(exports, "ModelRouterLanguageModel", {
8
8
  enumerable: true,
9
- get: function () { return chunk2SH5WPUA_cjs.OpenAICompatibleModel; }
9
+ get: function () { return chunkBG5FC6ZZ_cjs.ModelRouterLanguageModel; }
10
10
  });
11
11
  Object.defineProperty(exports, "PROVIDER_REGISTRY", {
12
12
  enumerable: true,
13
- get: function () { return chunk2SH5WPUA_cjs.PROVIDER_REGISTRY; }
13
+ get: function () { return chunkBG5FC6ZZ_cjs.PROVIDER_REGISTRY; }
14
14
  });
15
15
  Object.defineProperty(exports, "getProviderConfig", {
16
16
  enumerable: true,
17
- get: function () { return chunk2SH5WPUA_cjs.getProviderConfig; }
17
+ get: function () { return chunkBG5FC6ZZ_cjs.getProviderConfig; }
18
18
  });
19
19
  Object.defineProperty(exports, "parseModelString", {
20
20
  enumerable: true,
21
- get: function () { return chunk2SH5WPUA_cjs.parseModelString; }
21
+ get: function () { return chunkBG5FC6ZZ_cjs.parseModelString; }
22
22
  });
23
23
  //# sourceMappingURL=index.cjs.map
24
24
  //# sourceMappingURL=index.cjs.map
@@ -36,7 +36,7 @@ export type StructuredOutput = {
36
36
  };
37
37
  export type { GenerateReturn, StreamReturn, GenerateObjectResult, GenerateTextResult, StreamObjectResult, StreamTextResult, } from './model/base.types.js';
38
38
  export type { TripwireProperties, MastraModelConfig, OpenAICompatibleConfig } from './model/shared.types.js';
39
- export { OpenAICompatibleModel } from './model/openai-compatible.js';
39
+ export { ModelRouterLanguageModel } from './model/router.js';
40
40
  export { PROVIDER_REGISTRY, parseModelString, getProviderConfig } from './model/provider-registry.generated.js';
41
41
  export type OutputType = StructuredOutput | ZodSchema | JSONSchema7 | undefined;
42
42
  export type SystemMessage = string | string[] | CoreSystemMessage | SystemModelMessage | CoreSystemMessage[] | SystemModelMessage[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/llm/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,IAAI,sBAAsB,EAC9C,WAAW,IAAI,aAAa,EAC5B,iBAAiB,IAAI,mBAAmB,EACxC,eAAe,IAAI,iBAAiB,EACpC,eAAe,IAAI,iBAAiB,EACpC,eAAe,IAAI,iBAAiB,EACpC,WAAW,IAAI,aAAa,EAC5B,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,SAAS,EACT,0BAA0B,EAC1B,4BAA4B,EAC7B,MAAM,IAAI,CAAC;AACZ,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAEhD,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC;AAExC,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAEpD,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEhD,MAAM,MAAM,WAA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G,gBAAgB,CAAC;IAChE,QAAQ,CAAC,EAAE,4BAA4B,CAAC,GAAG,CAAC,CAAC;CAC9C,GAAG,qBAAqB,CAAC,CAAC,CAAC,GAC1B,6BAA6B,CAAC;AAEhC,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
package/dist/llm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { OpenAICompatibleModel, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-AND6J5LG.js';
1
+ export { ModelRouterLanguageModel, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-W2WXYTYI.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,11 @@
1
- /**
2
- * Resolve URL and headers for a model using runtime gateways
3
- */
4
- export declare function resolveModelConfig(modelId: string, envVars?: Record<string, string>): Promise<{
1
+ export type ResolvedModelConfig = {
5
2
  url: string | false;
6
3
  headers: Record<string, string>;
7
4
  resolvedModelId: string;
8
- }>;
5
+ fullModelId: string;
6
+ };
7
+ export declare function parseModelRouterId(routerId: string, gatewayPrefix?: string): {
8
+ providerId: string;
9
+ modelId: string;
10
+ };
9
11
  //# sourceMappingURL=gateway-resolver.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gateway-resolver.d.ts","sourceRoot":"","sources":["../../../src/llm/model/gateway-resolver.ts"],"names":[],"mappings":"AA+BA;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAyC,GACtE,OAAO,CAAC;IACT,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC,CA6BD"}
1
+ {"version":3,"file":"gateway-resolver.d.ts","sourceRoot":"","sources":["../../../src/llm/model/gateway-resolver.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CA0BpH"}
@@ -2,6 +2,7 @@
2
2
  * Base class for model gateway providers
3
3
  * Gateways fetch provider configurations and build URLs for model access
4
4
  */
5
+ import type { LanguageModelV2 } from '@ai-sdk/provider-v5';
5
6
  export interface ProviderConfig {
6
7
  url?: string;
7
8
  apiKeyHeader?: string;
@@ -33,11 +34,12 @@ export declare abstract class MastraModelGateway {
33
34
  * @param envVars Environment variables available
34
35
  * @returns URL string if this gateway can handle the model, false otherwise
35
36
  */
36
- abstract buildUrl(modelId: string, envVars: Record<string, string>): string | false | Promise<string | false>;
37
- /**
38
- * Build headers for the request
39
- * Optional - only needed if the gateway requires special headers
40
- */
41
- buildHeaders?(modelId: string, envVars: Record<string, string>): Record<string, string> | Promise<Record<string, string>>;
37
+ abstract buildUrl(modelId: string, envVars: Record<string, string>): string | undefined | Promise<string | undefined>;
38
+ abstract getApiKey(modelId: string): Promise<string>;
39
+ abstract resolveLanguageModel(args: {
40
+ modelId: string;
41
+ providerId: string;
42
+ apiKey: string;
43
+ }): Promise<LanguageModelV2> | LanguageModelV2;
42
44
  }
43
45
  //# sourceMappingURL=base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/llm/model/gateways/base.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC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,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,8BAAsB,kBAAkB;IACtC;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAE/B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAElC;;;OAGG;IACH,QAAQ,CAAC,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAElE;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAErH,QAAQ,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAEpD,QAAQ,CAAC,oBAAoB,CAAC,IAAI,EAAE;QAClC,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe;CAC/C"}
@@ -0,0 +1,3 @@
1
+ export declare const PROVIDERS_WITH_INSTALLED_PACKAGES: string[];
2
+ export declare const EXCLUDED_PROVIDERS: string[];
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/llm/model/gateways/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iCAAiC,UAAyD,CAAC;AAGxG,eAAO,MAAM,kBAAkB,UAAqB,CAAC"}
@@ -1,4 +1,9 @@
1
+ import type { MastraModelGateway } from './base.js';
1
2
  export { MastraModelGateway, type ProviderConfig } from './base.js';
2
3
  export { ModelsDevGateway } from './models-dev.js';
3
4
  export { NetlifyGateway } from './netlify.js';
5
+ /**
6
+ * Find the gateway that handles a specific model ID based on prefix
7
+ */
8
+ export declare function findGatewayForModel(gatewayId: string, gateways: MastraModelGateway[]): MastraModelGateway;
4
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/llm/model/gateways/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/llm/model/gateways/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAE,GAAG,kBAAkB,CAoBzG"}
@@ -1,3 +1,4 @@
1
+ import type { LanguageModelV2 } from '@ai-sdk/provider-v5';
1
2
  import { MastraModelGateway } from './base.js';
2
3
  import type { ProviderConfig } from './base.js';
3
4
  export declare class ModelsDevGateway extends MastraModelGateway {
@@ -6,7 +7,12 @@ export declare class ModelsDevGateway extends MastraModelGateway {
6
7
  private providerConfigs;
7
8
  constructor(providerConfigs?: Record<string, ProviderConfig>);
8
9
  fetchProviders(): Promise<Record<string, ProviderConfig>>;
9
- buildUrl(modelId: string, envVars: Record<string, string>): string | false | Promise<string | false>;
10
- buildHeaders(modelId: string, envVars: Record<string, string>): Record<string, string> | Promise<Record<string, string>>;
10
+ buildUrl(routerId: string, envVars?: typeof process.env): string | undefined;
11
+ getApiKey(modelId: string): Promise<string>;
12
+ resolveLanguageModel({ modelId, providerId, apiKey, }: {
13
+ modelId: string;
14
+ providerId: string;
15
+ apiKey: string;
16
+ }): Promise<LanguageModelV2>;
11
17
  }
12
18
  //# sourceMappingURL=models-dev.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models-dev.d.ts","sourceRoot":"","sources":["../../../../src/llm/model/gateways/models-dev.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AA4DhD,qBAAa,gBAAiB,SAAQ,kBAAkB;IACtD,QAAQ,CAAC,IAAI,gBAAgB;IAC7B,QAAQ,CAAC,MAAM,YAAa;IAE5B,OAAO,CAAC,eAAe,CAAsC;gBAEjD,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC;IAKtD,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IA2E/D,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC;IAuBpG,YAAY,CACV,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAgC5D"}
1
+ {"version":3,"file":"models-dev.d.ts","sourceRoot":"","sources":["../../../../src/llm/model/gateways/models-dev.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAA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