@mastra/core 0.17.0-alpha.5 → 0.17.0-alpha.7

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 (216) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/cache.d.ts +1 -0
  3. package/dist/agent/agent.d.ts +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/ai-tracing/index.cjs +32 -32
  9. package/dist/ai-tracing/index.js +1 -1
  10. package/dist/base.cjs +2 -2
  11. package/dist/base.js +1 -1
  12. package/dist/bundler/index.cjs +2 -2
  13. package/dist/bundler/index.js +1 -1
  14. package/dist/cache/base.d.ts +14 -0
  15. package/dist/cache/base.d.ts.map +1 -0
  16. package/dist/cache/index.cjs +16 -0
  17. package/dist/cache/index.cjs.map +1 -0
  18. package/dist/cache/index.d.ts +3 -0
  19. package/dist/cache/index.d.ts.map +1 -0
  20. package/dist/cache/index.js +3 -0
  21. package/dist/cache/index.js.map +1 -0
  22. package/dist/cache/inmemory.d.ts +13 -0
  23. package/dist/cache/inmemory.d.ts.map +1 -0
  24. package/dist/{chunk-XRJDA7BI.js → chunk-2B5DS7ML.js} +3 -3
  25. package/dist/{chunk-XRJDA7BI.js.map → chunk-2B5DS7ML.js.map} +1 -1
  26. package/dist/{chunk-IYN65QCO.js → chunk-36QJI2HU.js} +18 -33
  27. package/dist/chunk-36QJI2HU.js.map +1 -0
  28. package/dist/chunk-3PQNUWJM.js +62 -0
  29. package/dist/chunk-3PQNUWJM.js.map +1 -0
  30. package/dist/{chunk-QHDT3QQC.cjs → chunk-4HWB6PCC.cjs} +4 -4
  31. package/dist/{chunk-QHDT3QQC.cjs.map → chunk-4HWB6PCC.cjs.map} +1 -1
  32. package/dist/{chunk-KXCUCBEI.cjs → chunk-4L3P3PCP.cjs} +8 -8
  33. package/dist/{chunk-KXCUCBEI.cjs.map → chunk-4L3P3PCP.cjs.map} +1 -1
  34. package/dist/{chunk-VXJFKEON.js → chunk-4LANQQSH.js} +5 -5
  35. package/dist/{chunk-VXJFKEON.js.map → chunk-4LANQQSH.js.map} +1 -1
  36. package/dist/{chunk-TLJPVRO5.js → chunk-5QXPHYHO.js} +2 -3
  37. package/dist/chunk-5QXPHYHO.js.map +1 -0
  38. package/dist/{chunk-VBBMXF7Z.cjs → chunk-64ONYYLY.cjs} +30 -45
  39. package/dist/chunk-64ONYYLY.cjs.map +1 -0
  40. package/dist/{chunk-EXG53YAJ.cjs → chunk-6WEZASFM.cjs} +72 -60
  41. package/dist/chunk-6WEZASFM.cjs.map +1 -0
  42. package/dist/{chunk-7NKIBBCV.cjs → chunk-725O36VY.cjs} +6 -6
  43. package/dist/{chunk-7NKIBBCV.cjs.map → chunk-725O36VY.cjs.map} +1 -1
  44. package/dist/{chunk-6GF5M4GX.js → chunk-BMVFEBPE.js} +3 -3
  45. package/dist/{chunk-6GF5M4GX.js.map → chunk-BMVFEBPE.js.map} +1 -1
  46. package/dist/{chunk-X3GXU6TZ.js → chunk-BN2M4UK5.js} +5 -4
  47. package/dist/chunk-BN2M4UK5.js.map +1 -0
  48. package/dist/{chunk-IODUKRQP.js → chunk-C7EN3GVU.js} +3 -3
  49. package/dist/{chunk-IODUKRQP.js.map → chunk-C7EN3GVU.js.map} +1 -1
  50. package/dist/{chunk-3DHX2SDR.cjs → chunk-CWTKL7YK.cjs} +7 -7
  51. package/dist/{chunk-3DHX2SDR.cjs.map → chunk-CWTKL7YK.cjs.map} +1 -1
  52. package/dist/{chunk-YFAHGS45.js → chunk-DH34KXOJ.js} +4 -4
  53. package/dist/{chunk-YFAHGS45.js.map → chunk-DH34KXOJ.js.map} +1 -1
  54. package/dist/{chunk-MRZHPP3G.cjs → chunk-FJWPEAJE.cjs} +4 -4
  55. package/dist/{chunk-MRZHPP3G.cjs.map → chunk-FJWPEAJE.cjs.map} +1 -1
  56. package/dist/{chunk-2PQSZI63.js → chunk-GBW5ZDLZ.js} +3 -3
  57. package/dist/{chunk-2PQSZI63.js.map → chunk-GBW5ZDLZ.js.map} +1 -1
  58. package/dist/{chunk-CP4TZ4HO.cjs → chunk-GKSWFKHA.cjs} +16 -16
  59. package/dist/{chunk-CP4TZ4HO.cjs.map → chunk-GKSWFKHA.cjs.map} +1 -1
  60. package/dist/{chunk-K3JIDVC4.js → chunk-ITD7IHN5.js} +3 -3
  61. package/dist/{chunk-K3JIDVC4.js.map → chunk-ITD7IHN5.js.map} +1 -1
  62. package/dist/{chunk-HBQSSMAD.cjs → chunk-K72D7BXB.cjs} +8 -8
  63. package/dist/{chunk-HBQSSMAD.cjs.map → chunk-K72D7BXB.cjs.map} +1 -1
  64. package/dist/chunk-KTCBGNCZ.cjs +69 -0
  65. package/dist/chunk-KTCBGNCZ.cjs.map +1 -0
  66. package/dist/{chunk-NRGXWM6C.js → chunk-L3EC4ERG.js} +6 -6
  67. package/dist/{chunk-NRGXWM6C.js.map → chunk-L3EC4ERG.js.map} +1 -1
  68. package/dist/{chunk-RNJ4GD7U.cjs → chunk-MVBGQHNV.cjs} +9 -9
  69. package/dist/{chunk-RNJ4GD7U.cjs.map → chunk-MVBGQHNV.cjs.map} +1 -1
  70. package/dist/{chunk-QQIBOVFQ.js → chunk-NRJQMZLW.js} +4 -4
  71. package/dist/{chunk-QQIBOVFQ.js.map → chunk-NRJQMZLW.js.map} +1 -1
  72. package/dist/{chunk-Z73WO76N.js → chunk-NTXNE4YR.js} +3 -3
  73. package/dist/{chunk-Z73WO76N.js.map → chunk-NTXNE4YR.js.map} +1 -1
  74. package/dist/{chunk-S5QJEY5X.cjs → chunk-O6PQYYT6.cjs} +4 -4
  75. package/dist/{chunk-S5QJEY5X.cjs.map → chunk-O6PQYYT6.cjs.map} +1 -1
  76. package/dist/{chunk-4VHC2F5H.js → chunk-OCKXNBKT.js} +4 -4
  77. package/dist/{chunk-4VHC2F5H.js.map → chunk-OCKXNBKT.js.map} +1 -1
  78. package/dist/{chunk-AHJY7RHO.cjs → chunk-OT25QTJ2.cjs} +6 -6
  79. package/dist/{chunk-AHJY7RHO.cjs.map → chunk-OT25QTJ2.cjs.map} +1 -1
  80. package/dist/{chunk-666JQVO5.js → chunk-OWYPTFXD.js} +37 -26
  81. package/dist/chunk-OWYPTFXD.js.map +1 -0
  82. package/dist/{chunk-ABRPHTOG.cjs → chunk-PRVMPHNQ.cjs} +2 -2
  83. package/dist/{chunk-ABRPHTOG.cjs.map → chunk-PRVMPHNQ.cjs.map} +1 -1
  84. package/dist/{chunk-G366B5BY.js → chunk-PYVA36ZV.js} +3 -3
  85. package/dist/{chunk-G366B5BY.js.map → chunk-PYVA36ZV.js.map} +1 -1
  86. package/dist/{chunk-PL3B3FZM.js → chunk-QBRFMSMN.js} +6 -6
  87. package/dist/{chunk-PL3B3FZM.js.map → chunk-QBRFMSMN.js.map} +1 -1
  88. package/dist/chunk-QLYANYE2.cjs +14 -0
  89. package/dist/{chunk-QPOJZU26.cjs.map → chunk-QLYANYE2.cjs.map} +1 -1
  90. package/dist/{chunk-BJGHUKKM.js → chunk-RAQ4VAQ4.js} +2 -2
  91. package/dist/{chunk-BJGHUKKM.js.map → chunk-RAQ4VAQ4.js.map} +1 -1
  92. package/dist/{chunk-KYFRWMTX.js → chunk-SW656AYX.js} +3 -3
  93. package/dist/{chunk-KYFRWMTX.js.map → chunk-SW656AYX.js.map} +1 -1
  94. package/dist/{chunk-F6XWBVVG.cjs → chunk-WOC5SCZF.cjs} +4 -4
  95. package/dist/{chunk-F6XWBVVG.cjs.map → chunk-WOC5SCZF.cjs.map} +1 -1
  96. package/dist/{chunk-V5WKCX3G.cjs → chunk-WVCEJBDR.cjs} +5 -4
  97. package/dist/chunk-WVCEJBDR.cjs.map +1 -0
  98. package/dist/{chunk-SZZPFXZ7.cjs → chunk-XNZBDAEX.cjs} +13 -13
  99. package/dist/{chunk-SZZPFXZ7.cjs.map → chunk-XNZBDAEX.cjs.map} +1 -1
  100. package/dist/{chunk-7UO6UWCO.cjs → chunk-YISIO2V3.cjs} +4 -4
  101. package/dist/{chunk-7UO6UWCO.cjs.map → chunk-YISIO2V3.cjs.map} +1 -1
  102. package/dist/{chunk-GEPX327P.cjs → chunk-YWXSGDDO.cjs} +4 -4
  103. package/dist/{chunk-GEPX327P.cjs.map → chunk-YWXSGDDO.cjs.map} +1 -1
  104. package/dist/{chunk-BHB4PDNV.cjs → chunk-ZBINIUJL.cjs} +2 -3
  105. package/dist/chunk-ZBINIUJL.cjs.map +1 -0
  106. package/dist/{chunk-D43ZGJR3.js → chunk-ZFD7BUUD.js} +3 -3
  107. package/dist/{chunk-D43ZGJR3.js.map → chunk-ZFD7BUUD.js.map} +1 -1
  108. package/dist/deployer/index.cjs +2 -2
  109. package/dist/deployer/index.js +1 -1
  110. package/dist/index.cjs +66 -66
  111. package/dist/index.js +18 -18
  112. package/dist/integration/index.cjs +3 -3
  113. package/dist/integration/index.js +1 -1
  114. package/dist/logger/constants.d.ts +1 -0
  115. package/dist/logger/constants.d.ts.map +1 -1
  116. package/dist/logger/index.cjs +6 -6
  117. package/dist/logger/index.js +1 -1
  118. package/dist/loop/index.cjs +2 -2
  119. package/dist/loop/index.js +1 -1
  120. package/dist/loop/network/index.d.ts.map +1 -1
  121. package/dist/loop/test-utils/generateText.d.ts.map +1 -1
  122. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
  123. package/dist/mastra/index.cjs +2 -2
  124. package/dist/mastra/index.d.ts +6 -12
  125. package/dist/mastra/index.d.ts.map +1 -1
  126. package/dist/mastra/index.js +1 -1
  127. package/dist/mcp/index.cjs +4 -4
  128. package/dist/mcp/index.js +2 -2
  129. package/dist/memory/index.cjs +4 -4
  130. package/dist/memory/index.js +1 -1
  131. package/dist/network/vNext/index.cjs +34 -34
  132. package/dist/network/vNext/index.cjs.map +1 -1
  133. package/dist/network/vNext/index.d.ts +67 -0
  134. package/dist/network/vNext/index.d.ts.map +1 -1
  135. package/dist/network/vNext/index.js +5 -5
  136. package/dist/network/vNext/index.js.map +1 -1
  137. package/dist/processors/index.cjs +8 -8
  138. package/dist/processors/index.js +2 -2
  139. package/dist/processors/processors/prompt-injection-detector.d.ts.map +1 -1
  140. package/dist/relevance/index.cjs +4 -4
  141. package/dist/relevance/index.js +1 -1
  142. package/dist/scores/index.cjs +8 -8
  143. package/dist/scores/index.js +1 -1
  144. package/dist/scores/run-experiment/index.d.ts +2 -2
  145. package/dist/scores/run-experiment/index.d.ts.map +1 -1
  146. package/dist/server/index.cjs +4 -4
  147. package/dist/server/index.js +2 -2
  148. package/dist/storage/index.cjs +17 -17
  149. package/dist/storage/index.js +4 -4
  150. package/dist/stream/MastraAgentNetworkStream.d.ts +1 -1
  151. package/dist/stream/MastraAgentNetworkStream.d.ts.map +1 -1
  152. package/dist/stream/MastraWorkflowStream.d.ts +5 -4
  153. package/dist/stream/MastraWorkflowStream.d.ts.map +1 -1
  154. package/dist/stream/base/output.d.ts.map +1 -1
  155. package/dist/stream/index.cjs +7 -3
  156. package/dist/stream/index.d.ts +1 -0
  157. package/dist/stream/index.d.ts.map +1 -1
  158. package/dist/stream/index.js +1 -1
  159. package/dist/telemetry/index.cjs +7 -7
  160. package/dist/telemetry/index.js +1 -1
  161. package/dist/telemetry/telemetry.decorators.d.ts.map +1 -1
  162. package/dist/test-utils/llm-mock.cjs +2 -2
  163. package/dist/test-utils/llm-mock.js +1 -1
  164. package/dist/tools/index.cjs +4 -4
  165. package/dist/tools/index.js +1 -1
  166. package/dist/tools/is-vercel-tool.cjs +2 -2
  167. package/dist/tools/is-vercel-tool.js +1 -1
  168. package/dist/tools/tool-builder/builder.d.ts.map +1 -1
  169. package/dist/tools/tool.d.ts +2 -4
  170. package/dist/tools/tool.d.ts.map +1 -1
  171. package/dist/tools/types.d.ts +5 -4
  172. package/dist/tools/types.d.ts.map +1 -1
  173. package/dist/tts/index.cjs +2 -2
  174. package/dist/tts/index.js +1 -1
  175. package/dist/utils.cjs +17 -17
  176. package/dist/utils.d.ts +1 -1
  177. package/dist/utils.d.ts.map +1 -1
  178. package/dist/utils.js +1 -1
  179. package/dist/vector/index.cjs +4 -4
  180. package/dist/vector/index.js +1 -1
  181. package/dist/voice/index.cjs +4 -4
  182. package/dist/voice/index.js +1 -1
  183. package/dist/workflows/default.d.ts.map +1 -1
  184. package/dist/workflows/evented/index.cjs +10 -10
  185. package/dist/workflows/evented/index.js +1 -1
  186. package/dist/workflows/evented/workflow.d.ts +2 -2
  187. package/dist/workflows/evented/workflow.d.ts.map +1 -1
  188. package/dist/workflows/index.cjs +10 -10
  189. package/dist/workflows/index.js +1 -1
  190. package/dist/workflows/legacy/index.cjs +22 -22
  191. package/dist/workflows/legacy/index.js +1 -1
  192. package/dist/workflows/types.d.ts +4 -1
  193. package/dist/workflows/types.d.ts.map +1 -1
  194. package/dist/workflows/workflow.d.ts +51 -11
  195. package/dist/workflows/workflow.d.ts.map +1 -1
  196. package/package.json +7 -6
  197. package/dist/chunk-666JQVO5.js.map +0 -1
  198. package/dist/chunk-BHB4PDNV.cjs.map +0 -1
  199. package/dist/chunk-EXG53YAJ.cjs.map +0 -1
  200. package/dist/chunk-IYN65QCO.js.map +0 -1
  201. package/dist/chunk-QPOJZU26.cjs +0 -14
  202. package/dist/chunk-TLJPVRO5.js.map +0 -1
  203. package/dist/chunk-V5WKCX3G.cjs.map +0 -1
  204. package/dist/chunk-VBBMXF7Z.cjs.map +0 -1
  205. package/dist/chunk-X3GXU6TZ.js.map +0 -1
  206. package/dist/network/index.cjs +0 -316
  207. package/dist/network/index.cjs.map +0 -1
  208. package/dist/network/index.d.ts +0 -3
  209. package/dist/network/index.d.ts.map +0 -1
  210. package/dist/network/index.js +0 -314
  211. package/dist/network/index.js.map +0 -1
  212. package/dist/network/network.d.ts +0 -124
  213. package/dist/network/network.d.ts.map +0 -1
  214. package/dist/network/types.d.ts +0 -9
  215. package/dist/network/types.d.ts.map +0 -1
  216. package/network.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @mastra/core
2
2
 
3
+ ## 0.17.0-alpha.7
4
+
5
+ ### Patch Changes
6
+
7
+ - fix error message when fetching observability things ([#7956](https://github.com/mastra-ai/mastra/pull/7956))
8
+
9
+ ## 0.17.0-alpha.6
10
+
11
+ ### Minor Changes
12
+
13
+ - Remove original AgentNetwork ([#7919](https://github.com/mastra-ai/mastra/pull/7919))
14
+
15
+ ### Patch Changes
16
+
17
+ - dependencies updates: ([#7861](https://github.com/mastra-ai/mastra/pull/7861))
18
+ - Updated dependency [`hono@^4.9.7` ↗︎](https://www.npmjs.com/package/hono/v/4.9.7) (from `^4.9.6`, in `dependencies`)
19
+
20
+ - clean up console logs in monorepo ([#7926](https://github.com/mastra-ai/mastra/pull/7926))
21
+
22
+ - Register server cache in Mastra ([#7946](https://github.com/mastra-ai/mastra/pull/7946))
23
+
24
+ - Resumable streams ([#7949](https://github.com/mastra-ai/mastra/pull/7949))
25
+
26
+ - move ToolExecutionOptions and ToolCallOptions to a union type (ToolInvocationOptions) for use in createTool, Tool, and ToolAction ([#7914](https://github.com/mastra-ai/mastra/pull/7914))
27
+
28
+ - fix scorers table link full row ([#7915](https://github.com/mastra-ai/mastra/pull/7915))
29
+
30
+ - adjust the way we display scorers in agent metadata ([#7910](https://github.com/mastra-ai/mastra/pull/7910))
31
+
32
+ - fix: support destructuring of streamVNext return values ([#7920](https://github.com/mastra-ai/mastra/pull/7920))
33
+
34
+ - Remove extraneous console.log ([#7916](https://github.com/mastra-ai/mastra/pull/7916))
35
+
36
+ - Fix switch in prompt-injection ([#7951](https://github.com/mastra-ai/mastra/pull/7951))
37
+
3
38
  ## 0.17.0-alpha.5
4
39
 
5
40
  ### Patch Changes
package/cache.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/cache';
@@ -47,7 +47,7 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
47
47
  evals: TMetrics;
48
48
  private _agentNetworkAppend;
49
49
  constructor(config: AgentConfig<TAgentId, TTools, TMetrics>);
50
- getMastraInstance(): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, import("../workflows/legacy").LegacyWorkflow<Step<string, any, any, import("../workflows/legacy").StepExecutionContext<any, import("../workflows/legacy").WorkflowContext<any, Step<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<any, import("..").Step<string, any, any, any, any, any>[], string, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, import("../vector").MastraVector<import("../vector/filter").VectorFilter>>, Record<string, import("../tts").MastraTTS>, import("../logger").IMastraLogger, Record<string, import("../network").AgentNetwork>, Record<string, import("../network/vNext").NewAgentNetwork>, Record<string, import("../mcp").MCPServerBase>, Record<string, MastraScorer<any, any, any, any>>> | undefined;
50
+ getMastraInstance(): Mastra<Record<string, Agent<any, ToolsInput, Record<string, Metric>>>, Record<string, import("../workflows/legacy").LegacyWorkflow<Step<string, any, any, import("../workflows/legacy").StepExecutionContext<any, import("../workflows/legacy").WorkflowContext<any, Step<string, any, any, any>[], Record<string, any>>>>[], string, any, any>>, Record<string, Workflow<any, import("..").Step<string, any, any, any, any, any>[], string, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>>>, Record<string, import("../vector").MastraVector<import("../vector/filter").VectorFilter>>, Record<string, import("../tts").MastraTTS>, import("../logger").IMastraLogger, Record<string, import("../network/vNext").NewAgentNetwork>, Record<string, import("../mcp").MCPServerBase>, Record<string, MastraScorer<any, any, any, any>>> | undefined;
51
51
  listAgents({ runtimeContext }?: {
52
52
  runtimeContext?: RuntimeContext;
53
53
  }): Record<string, Agent<string, ToolsInput, Record<string, Metric>>> | Promise<Record<string, Agent<string, ToolsInput, Record<string, Metric>>>>;
@@ -1,45 +1,45 @@
1
1
  'use strict';
2
2
 
3
- var chunkEXG53YAJ_cjs = require('../chunk-EXG53YAJ.cjs');
4
- var chunkMRZHPP3G_cjs = require('../chunk-MRZHPP3G.cjs');
3
+ var chunk6WEZASFM_cjs = require('../chunk-6WEZASFM.cjs');
4
+ var chunkFJWPEAJE_cjs = require('../chunk-FJWPEAJE.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Agent", {
9
9
  enumerable: true,
10
- get: function () { return chunkEXG53YAJ_cjs.Agent; }
10
+ get: function () { return chunk6WEZASFM_cjs.Agent; }
11
11
  });
12
12
  Object.defineProperty(exports, "LanguageDetectorInputProcessor", {
13
13
  enumerable: true,
14
- get: function () { return chunkEXG53YAJ_cjs.LanguageDetectorInputProcessor; }
14
+ get: function () { return chunk6WEZASFM_cjs.LanguageDetectorInputProcessor; }
15
15
  });
16
16
  Object.defineProperty(exports, "ModerationInputProcessor", {
17
17
  enumerable: true,
18
- get: function () { return chunkEXG53YAJ_cjs.ModerationInputProcessor; }
18
+ get: function () { return chunk6WEZASFM_cjs.ModerationInputProcessor; }
19
19
  });
20
20
  Object.defineProperty(exports, "PIIDetectorInputProcessor", {
21
21
  enumerable: true,
22
- get: function () { return chunkEXG53YAJ_cjs.PIIDetectorInputProcessor; }
22
+ get: function () { return chunk6WEZASFM_cjs.PIIDetectorInputProcessor; }
23
23
  });
24
24
  Object.defineProperty(exports, "PromptInjectionDetectorInputProcessor", {
25
25
  enumerable: true,
26
- get: function () { return chunkEXG53YAJ_cjs.PromptInjectionDetectorInputProcessor; }
26
+ get: function () { return chunk6WEZASFM_cjs.PromptInjectionDetectorInputProcessor; }
27
27
  });
28
28
  Object.defineProperty(exports, "TripWire", {
29
29
  enumerable: true,
30
- get: function () { return chunkEXG53YAJ_cjs.TripWire; }
30
+ get: function () { return chunk6WEZASFM_cjs.TripWire; }
31
31
  });
32
32
  Object.defineProperty(exports, "UnicodeNormalizerInputProcessor", {
33
33
  enumerable: true,
34
- get: function () { return chunkEXG53YAJ_cjs.UnicodeNormalizerInputProcessor; }
34
+ get: function () { return chunk6WEZASFM_cjs.UnicodeNormalizerInputProcessor; }
35
35
  });
36
36
  Object.defineProperty(exports, "MessageList", {
37
37
  enumerable: true,
38
- get: function () { return chunkMRZHPP3G_cjs.MessageList; }
38
+ get: function () { return chunkFJWPEAJE_cjs.MessageList; }
39
39
  });
40
40
  Object.defineProperty(exports, "convertMessages", {
41
41
  enumerable: true,
42
- get: function () { return chunkMRZHPP3G_cjs.convertMessages; }
42
+ get: function () { return chunkFJWPEAJE_cjs.convertMessages; }
43
43
  });
44
44
  //# sourceMappingURL=index.cjs.map
45
45
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- export { Agent, LanguageDetectorInputProcessor, ModerationInputProcessor, PIIDetectorInputProcessor, PromptInjectionDetectorInputProcessor, TripWire, UnicodeNormalizerInputProcessor } from '../chunk-666JQVO5.js';
2
- export { MessageList, convertMessages } from '../chunk-XRJDA7BI.js';
1
+ export { Agent, LanguageDetectorInputProcessor, ModerationInputProcessor, PIIDetectorInputProcessor, PromptInjectionDetectorInputProcessor, TripWire, UnicodeNormalizerInputProcessor } from '../chunk-OWYPTFXD.js';
2
+ export { MessageList, convertMessages } from '../chunk-2B5DS7ML.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,28 +1,28 @@
1
1
  'use strict';
2
2
 
3
- var chunkEXG53YAJ_cjs = require('../../chunk-EXG53YAJ.cjs');
3
+ var chunk6WEZASFM_cjs = require('../../chunk-6WEZASFM.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "LanguageDetectorInputProcessor", {
8
8
  enumerable: true,
9
- get: function () { return chunkEXG53YAJ_cjs.LanguageDetectorInputProcessor; }
9
+ get: function () { return chunk6WEZASFM_cjs.LanguageDetectorInputProcessor; }
10
10
  });
11
11
  Object.defineProperty(exports, "ModerationInputProcessor", {
12
12
  enumerable: true,
13
- get: function () { return chunkEXG53YAJ_cjs.ModerationInputProcessor; }
13
+ get: function () { return chunk6WEZASFM_cjs.ModerationInputProcessor; }
14
14
  });
15
15
  Object.defineProperty(exports, "PIIDetectorInputProcessor", {
16
16
  enumerable: true,
17
- get: function () { return chunkEXG53YAJ_cjs.PIIDetectorInputProcessor; }
17
+ get: function () { return chunk6WEZASFM_cjs.PIIDetectorInputProcessor; }
18
18
  });
19
19
  Object.defineProperty(exports, "PromptInjectionDetectorInputProcessor", {
20
20
  enumerable: true,
21
- get: function () { return chunkEXG53YAJ_cjs.PromptInjectionDetectorInputProcessor; }
21
+ get: function () { return chunk6WEZASFM_cjs.PromptInjectionDetectorInputProcessor; }
22
22
  });
23
23
  Object.defineProperty(exports, "UnicodeNormalizerInputProcessor", {
24
24
  enumerable: true,
25
- get: function () { return chunkEXG53YAJ_cjs.UnicodeNormalizerInputProcessor; }
25
+ get: function () { return chunk6WEZASFM_cjs.UnicodeNormalizerInputProcessor; }
26
26
  });
27
27
  //# sourceMappingURL=index.cjs.map
28
28
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { LanguageDetectorInputProcessor, ModerationInputProcessor, PIIDetectorInputProcessor, PromptInjectionDetectorInputProcessor, UnicodeNormalizerInputProcessor } from '../../chunk-666JQVO5.js';
1
+ export { LanguageDetectorInputProcessor, ModerationInputProcessor, PIIDetectorInputProcessor, PromptInjectionDetectorInputProcessor, UnicodeNormalizerInputProcessor } from '../../chunk-OWYPTFXD.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,132 +1,132 @@
1
1
  'use strict';
2
2
 
3
- var chunkCP4TZ4HO_cjs = require('../chunk-CP4TZ4HO.cjs');
3
+ var chunkGKSWFKHA_cjs = require('../chunk-GKSWFKHA.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "AISpanType", {
8
8
  enumerable: true,
9
- get: function () { return chunkCP4TZ4HO_cjs.AISpanType; }
9
+ get: function () { return chunkGKSWFKHA_cjs.AISpanType; }
10
10
  });
11
11
  Object.defineProperty(exports, "AITracingEventType", {
12
12
  enumerable: true,
13
- get: function () { return chunkCP4TZ4HO_cjs.AITracingEventType; }
13
+ get: function () { return chunkGKSWFKHA_cjs.AITracingEventType; }
14
14
  });
15
15
  Object.defineProperty(exports, "BaseAISpan", {
16
16
  enumerable: true,
17
- get: function () { return chunkCP4TZ4HO_cjs.BaseAISpan; }
17
+ get: function () { return chunkGKSWFKHA_cjs.BaseAISpan; }
18
18
  });
19
19
  Object.defineProperty(exports, "BaseAITracing", {
20
20
  enumerable: true,
21
- get: function () { return chunkCP4TZ4HO_cjs.BaseAITracing; }
21
+ get: function () { return chunkGKSWFKHA_cjs.BaseAITracing; }
22
22
  });
23
23
  Object.defineProperty(exports, "CloudExporter", {
24
24
  enumerable: true,
25
- get: function () { return chunkCP4TZ4HO_cjs.CloudExporter; }
25
+ get: function () { return chunkGKSWFKHA_cjs.CloudExporter; }
26
26
  });
27
27
  Object.defineProperty(exports, "ConsoleExporter", {
28
28
  enumerable: true,
29
- get: function () { return chunkCP4TZ4HO_cjs.ConsoleExporter; }
29
+ get: function () { return chunkGKSWFKHA_cjs.ConsoleExporter; }
30
30
  });
31
31
  Object.defineProperty(exports, "DefaultAISpan", {
32
32
  enumerable: true,
33
- get: function () { return chunkCP4TZ4HO_cjs.DefaultAISpan; }
33
+ get: function () { return chunkGKSWFKHA_cjs.DefaultAISpan; }
34
34
  });
35
35
  Object.defineProperty(exports, "DefaultAITracing", {
36
36
  enumerable: true,
37
- get: function () { return chunkCP4TZ4HO_cjs.DefaultAITracing; }
37
+ get: function () { return chunkGKSWFKHA_cjs.DefaultAITracing; }
38
38
  });
39
39
  Object.defineProperty(exports, "DefaultExporter", {
40
40
  enumerable: true,
41
- get: function () { return chunkCP4TZ4HO_cjs.DefaultExporter; }
41
+ get: function () { return chunkGKSWFKHA_cjs.DefaultExporter; }
42
42
  });
43
43
  Object.defineProperty(exports, "InternalSpans", {
44
44
  enumerable: true,
45
- get: function () { return chunkCP4TZ4HO_cjs.InternalSpans; }
45
+ get: function () { return chunkGKSWFKHA_cjs.InternalSpans; }
46
46
  });
47
47
  Object.defineProperty(exports, "NoOpAISpan", {
48
48
  enumerable: true,
49
- get: function () { return chunkCP4TZ4HO_cjs.NoOpAISpan; }
49
+ get: function () { return chunkGKSWFKHA_cjs.NoOpAISpan; }
50
50
  });
51
51
  Object.defineProperty(exports, "SamplingStrategyType", {
52
52
  enumerable: true,
53
- get: function () { return chunkCP4TZ4HO_cjs.SamplingStrategyType; }
53
+ get: function () { return chunkGKSWFKHA_cjs.SamplingStrategyType; }
54
54
  });
55
55
  Object.defineProperty(exports, "SensitiveDataFilter", {
56
56
  enumerable: true,
57
- get: function () { return chunkCP4TZ4HO_cjs.SensitiveDataFilter; }
57
+ get: function () { return chunkGKSWFKHA_cjs.SensitiveDataFilter; }
58
58
  });
59
59
  Object.defineProperty(exports, "clearAITracingRegistry", {
60
60
  enumerable: true,
61
- get: function () { return chunkCP4TZ4HO_cjs.clearAITracingRegistry; }
61
+ get: function () { return chunkGKSWFKHA_cjs.clearAITracingRegistry; }
62
62
  });
63
63
  Object.defineProperty(exports, "deepClean", {
64
64
  enumerable: true,
65
- get: function () { return chunkCP4TZ4HO_cjs.deepClean; }
65
+ get: function () { return chunkGKSWFKHA_cjs.deepClean; }
66
66
  });
67
67
  Object.defineProperty(exports, "getAITracing", {
68
68
  enumerable: true,
69
- get: function () { return chunkCP4TZ4HO_cjs.getAITracing; }
69
+ get: function () { return chunkGKSWFKHA_cjs.getAITracing; }
70
70
  });
71
71
  Object.defineProperty(exports, "getAllAITracing", {
72
72
  enumerable: true,
73
- get: function () { return chunkCP4TZ4HO_cjs.getAllAITracing; }
73
+ get: function () { return chunkGKSWFKHA_cjs.getAllAITracing; }
74
74
  });
75
75
  Object.defineProperty(exports, "getDefaultAITracing", {
76
76
  enumerable: true,
77
- get: function () { return chunkCP4TZ4HO_cjs.getDefaultAITracing; }
77
+ get: function () { return chunkGKSWFKHA_cjs.getDefaultAITracing; }
78
78
  });
79
79
  Object.defineProperty(exports, "getOrCreateSpan", {
80
80
  enumerable: true,
81
- get: function () { return chunkCP4TZ4HO_cjs.getOrCreateSpan; }
81
+ get: function () { return chunkGKSWFKHA_cjs.getOrCreateSpan; }
82
82
  });
83
83
  Object.defineProperty(exports, "getSelectedAITracing", {
84
84
  enumerable: true,
85
- get: function () { return chunkCP4TZ4HO_cjs.getSelectedAITracing; }
85
+ get: function () { return chunkGKSWFKHA_cjs.getSelectedAITracing; }
86
86
  });
87
87
  Object.defineProperty(exports, "getValidTraceId", {
88
88
  enumerable: true,
89
- get: function () { return chunkCP4TZ4HO_cjs.getValidTraceId; }
89
+ get: function () { return chunkGKSWFKHA_cjs.getValidTraceId; }
90
90
  });
91
91
  Object.defineProperty(exports, "hasAITracing", {
92
92
  enumerable: true,
93
- get: function () { return chunkCP4TZ4HO_cjs.hasAITracing; }
93
+ get: function () { return chunkGKSWFKHA_cjs.hasAITracing; }
94
94
  });
95
95
  Object.defineProperty(exports, "isMastra", {
96
96
  enumerable: true,
97
- get: function () { return chunkCP4TZ4HO_cjs.isMastra; }
97
+ get: function () { return chunkGKSWFKHA_cjs.isMastra; }
98
98
  });
99
99
  Object.defineProperty(exports, "omitKeys", {
100
100
  enumerable: true,
101
- get: function () { return chunkCP4TZ4HO_cjs.omitKeys; }
101
+ get: function () { return chunkGKSWFKHA_cjs.omitKeys; }
102
102
  });
103
103
  Object.defineProperty(exports, "registerAITracing", {
104
104
  enumerable: true,
105
- get: function () { return chunkCP4TZ4HO_cjs.registerAITracing; }
105
+ get: function () { return chunkGKSWFKHA_cjs.registerAITracing; }
106
106
  });
107
107
  Object.defineProperty(exports, "selectFields", {
108
108
  enumerable: true,
109
- get: function () { return chunkCP4TZ4HO_cjs.selectFields; }
109
+ get: function () { return chunkGKSWFKHA_cjs.selectFields; }
110
110
  });
111
111
  Object.defineProperty(exports, "setSelector", {
112
112
  enumerable: true,
113
- get: function () { return chunkCP4TZ4HO_cjs.setSelector; }
113
+ get: function () { return chunkGKSWFKHA_cjs.setSelector; }
114
114
  });
115
115
  Object.defineProperty(exports, "setupAITracing", {
116
116
  enumerable: true,
117
- get: function () { return chunkCP4TZ4HO_cjs.setupAITracing; }
117
+ get: function () { return chunkGKSWFKHA_cjs.setupAITracing; }
118
118
  });
119
119
  Object.defineProperty(exports, "shutdownAITracingRegistry", {
120
120
  enumerable: true,
121
- get: function () { return chunkCP4TZ4HO_cjs.shutdownAITracingRegistry; }
121
+ get: function () { return chunkGKSWFKHA_cjs.shutdownAITracingRegistry; }
122
122
  });
123
123
  Object.defineProperty(exports, "unregisterAITracing", {
124
124
  enumerable: true,
125
- get: function () { return chunkCP4TZ4HO_cjs.unregisterAITracing; }
125
+ get: function () { return chunkGKSWFKHA_cjs.unregisterAITracing; }
126
126
  });
127
127
  Object.defineProperty(exports, "wrapMastra", {
128
128
  enumerable: true,
129
- get: function () { return chunkCP4TZ4HO_cjs.wrapMastra; }
129
+ get: function () { return chunkGKSWFKHA_cjs.wrapMastra; }
130
130
  });
131
131
  //# sourceMappingURL=index.cjs.map
132
132
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { AISpanType, AITracingEventType, BaseAISpan, BaseAITracing, CloudExporter, ConsoleExporter, DefaultAISpan, DefaultAITracing, DefaultExporter, InternalSpans, NoOpAISpan, SamplingStrategyType, SensitiveDataFilter, clearAITracingRegistry, deepClean, getAITracing, getAllAITracing, getDefaultAITracing, getOrCreateSpan, getSelectedAITracing, getValidTraceId, hasAITracing, isMastra, omitKeys, registerAITracing, selectFields, setSelector, setupAITracing, shutdownAITracingRegistry, unregisterAITracing, wrapMastra } from '../chunk-PL3B3FZM.js';
1
+ export { AISpanType, AITracingEventType, BaseAISpan, BaseAITracing, CloudExporter, ConsoleExporter, DefaultAISpan, DefaultAITracing, DefaultExporter, InternalSpans, NoOpAISpan, SamplingStrategyType, SensitiveDataFilter, clearAITracingRegistry, deepClean, getAITracing, getAllAITracing, getDefaultAITracing, getOrCreateSpan, getSelectedAITracing, getValidTraceId, hasAITracing, isMastra, omitKeys, registerAITracing, selectFields, setSelector, setupAITracing, shutdownAITracingRegistry, unregisterAITracing, wrapMastra } from '../chunk-QBRFMSMN.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
package/dist/base.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkKXCUCBEI_cjs = require('./chunk-KXCUCBEI.cjs');
3
+ var chunk4L3P3PCP_cjs = require('./chunk-4L3P3PCP.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraBase", {
8
8
  enumerable: true,
9
- get: function () { return chunkKXCUCBEI_cjs.MastraBase; }
9
+ get: function () { return chunk4L3P3PCP_cjs.MastraBase; }
10
10
  });
11
11
  //# sourceMappingURL=base.cjs.map
12
12
  //# sourceMappingURL=base.cjs.map
package/dist/base.js CHANGED
@@ -1,3 +1,3 @@
1
- export { MastraBase } from './chunk-6GF5M4GX.js';
1
+ export { MastraBase } from './chunk-BMVFEBPE.js';
2
2
  //# sourceMappingURL=base.js.map
3
3
  //# sourceMappingURL=base.js.map
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkQHDT3QQC_cjs = require('../chunk-QHDT3QQC.cjs');
3
+ var chunk4HWB6PCC_cjs = require('../chunk-4HWB6PCC.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "MastraBundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkQHDT3QQC_cjs.MastraBundler; }
9
+ get: function () { return chunk4HWB6PCC_cjs.MastraBundler; }
10
10
  });
11
11
  //# sourceMappingURL=index.cjs.map
12
12
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { MastraBundler } from '../chunk-G366B5BY.js';
1
+ export { MastraBundler } from '../chunk-PYVA36ZV.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,14 @@
1
+ import { MastraBase } from '../base.js';
2
+ export declare abstract class MastraServerCache extends MastraBase {
3
+ constructor({ name }: {
4
+ name: string;
5
+ });
6
+ abstract get(key: string): Promise<unknown>;
7
+ abstract listLength(key: string): Promise<number>;
8
+ abstract set(key: string, value: unknown): Promise<void>;
9
+ abstract listPush(key: string, value: unknown): Promise<void>;
10
+ abstract listFromTo(key: string, from: number, to?: number): Promise<unknown[]>;
11
+ abstract delete(key: string): Promise<void>;
12
+ abstract clear(): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/cache/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,8BAAsB,iBAAkB,SAAQ,UAAU;gBAC5C,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;IAOtC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAE3C,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAEjD,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAExD,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAE7D,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAE/E,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAE3C,QAAQ,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAChC"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var chunkKTCBGNCZ_cjs = require('../chunk-KTCBGNCZ.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "InMemoryServerCache", {
8
+ enumerable: true,
9
+ get: function () { return chunkKTCBGNCZ_cjs.InMemoryServerCache; }
10
+ });
11
+ Object.defineProperty(exports, "MastraServerCache", {
12
+ enumerable: true,
13
+ get: function () { return chunkKTCBGNCZ_cjs.MastraServerCache; }
14
+ });
15
+ //# sourceMappingURL=index.cjs.map
16
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,3 @@
1
+ export * from './inmemory.js';
2
+ export * from './base.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cache/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { InMemoryServerCache, MastraServerCache } from '../chunk-3PQNUWJM.js';
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,13 @@
1
+ import { MastraServerCache } from './base.js';
2
+ export declare class InMemoryServerCache extends MastraServerCache {
3
+ private cache;
4
+ constructor();
5
+ get(key: string): Promise<unknown>;
6
+ set(key: string, value: unknown): Promise<void>;
7
+ listLength(key: string): Promise<number>;
8
+ listPush(key: string, value: unknown): Promise<void>;
9
+ listFromTo(key: string, from: number, to?: number): Promise<unknown[]>;
10
+ delete(key: string): Promise<void>;
11
+ clear(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=inmemory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inmemory.d.ts","sourceRoot":"","sources":["../../src/cache/inmemory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE3C,qBAAa,mBAAoB,SAAQ,iBAAiB;IACxD,OAAO,CAAC,KAAK,CAGV;;IAMG,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQxC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IASpD,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAE,MAAW,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAU1E,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7B"}
@@ -1,4 +1,4 @@
1
- import { fetchWithRetry } from './chunk-PL3B3FZM.js';
1
+ import { fetchWithRetry } from './chunk-QBRFMSMN.js';
2
2
  import { MastraError } from './chunk-MCOVMKIS.js';
3
3
  import { randomUUID } from 'crypto';
4
4
  import * as AIV4 from 'ai';
@@ -2956,5 +2956,5 @@ function convertMessages(messages) {
2956
2956
  }
2957
2957
 
2958
2958
  export { DefaultGeneratedFile, DefaultGeneratedFileWithType, MessageList, convertMessages };
2959
- //# sourceMappingURL=chunk-XRJDA7BI.js.map
2960
- //# sourceMappingURL=chunk-XRJDA7BI.js.map
2959
+ //# sourceMappingURL=chunk-2B5DS7ML.js.map
2960
+ //# sourceMappingURL=chunk-2B5DS7ML.js.map