@mastra/core 1.3.0 → 1.4.0

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 (274) hide show
  1. package/CHANGELOG.md +462 -0
  2. package/datasets.d.ts +1 -0
  3. package/dist/agent/agent.d.ts +1 -1
  4. package/dist/agent/index.cjs +13 -13
  5. package/dist/agent/index.js +2 -2
  6. package/dist/agent/message-list/adapters/AIV4Adapter.d.ts.map +1 -1
  7. package/dist/agent/message-list/adapters/AIV5Adapter.d.ts.map +1 -1
  8. package/dist/agent/message-list/conversion/output-converter.d.ts +2 -1
  9. package/dist/agent/message-list/conversion/output-converter.d.ts.map +1 -1
  10. package/dist/agent/message-list/index.cjs +18 -18
  11. package/dist/agent/message-list/index.js +1 -1
  12. package/dist/agent/workflows/prepare-stream/index.d.ts +1 -1
  13. package/dist/chunk-3JVFFAJX.cjs +1207 -0
  14. package/dist/chunk-3JVFFAJX.cjs.map +1 -0
  15. package/dist/{chunk-WL3AW3YA.js → chunk-3X3CZUXI.js} +4070 -3983
  16. package/dist/chunk-3X3CZUXI.js.map +1 -0
  17. package/dist/{chunk-2GWTJFVM.js → chunk-4EHGOATH.js} +46 -14
  18. package/dist/chunk-4EHGOATH.js.map +1 -0
  19. package/dist/{chunk-YNXIGRQE.cjs → chunk-4IJ4UDZX.cjs} +319 -83
  20. package/dist/chunk-4IJ4UDZX.cjs.map +1 -0
  21. package/dist/{chunk-CGPH7CMG.cjs → chunk-4KFEMXTV.cjs} +46 -14
  22. package/dist/chunk-4KFEMXTV.cjs.map +1 -0
  23. package/dist/{chunk-PHYJYZ32.js → chunk-4TQ4EBYX.js} +16 -8
  24. package/dist/chunk-4TQ4EBYX.js.map +1 -0
  25. package/dist/{chunk-SIZEIYNH.js → chunk-4XSAZPPS.js} +254 -18
  26. package/dist/chunk-4XSAZPPS.js.map +1 -0
  27. package/dist/{chunk-KUTU2YZF.js → chunk-5Q5Y34SS.js} +5 -5
  28. package/dist/{chunk-KUTU2YZF.js.map → chunk-5Q5Y34SS.js.map} +1 -1
  29. package/dist/{chunk-EH6SAGEO.cjs → chunk-64WGYTQK.cjs} +72 -53
  30. package/dist/{chunk-EH6SAGEO.cjs.map → chunk-64WGYTQK.cjs.map} +1 -1
  31. package/dist/{chunk-OOCEAC6U.cjs → chunk-65PHUUMF.cjs} +3 -3
  32. package/dist/{chunk-OOCEAC6U.cjs.map → chunk-65PHUUMF.cjs.map} +1 -1
  33. package/dist/{chunk-JNE2ABVB.js → chunk-7NKUSQEV.js} +1094 -10
  34. package/dist/chunk-7NKUSQEV.js.map +1 -0
  35. package/dist/{chunk-ZHFM7HCQ.js → chunk-AXHBJ4GX.js} +3 -3
  36. package/dist/{chunk-ZHFM7HCQ.js.map → chunk-AXHBJ4GX.js.map} +1 -1
  37. package/dist/{chunk-ILQXPZCD.js → chunk-AY6DBRS3.js} +37 -21
  38. package/dist/chunk-AY6DBRS3.js.map +1 -0
  39. package/dist/{chunk-TERSHTY5.cjs → chunk-BP7VYTOP.cjs} +1116 -21
  40. package/dist/chunk-BP7VYTOP.cjs.map +1 -0
  41. package/dist/{chunk-UE2G2LRP.cjs → chunk-CZ4NQANZ.cjs} +37 -21
  42. package/dist/chunk-CZ4NQANZ.cjs.map +1 -0
  43. package/dist/{chunk-NCC45KOB.cjs → chunk-DBSVT6AR.cjs} +7 -7
  44. package/dist/{chunk-NCC45KOB.cjs.map → chunk-DBSVT6AR.cjs.map} +1 -1
  45. package/dist/{chunk-BXLLXTT4.js → chunk-FLPEGTEK.js} +4 -4
  46. package/dist/{chunk-BXLLXTT4.js.map → chunk-FLPEGTEK.js.map} +1 -1
  47. package/dist/{chunk-ON2KVIUJ.cjs → chunk-HYRYTTMT.cjs} +7 -7
  48. package/dist/{chunk-ON2KVIUJ.cjs.map → chunk-HYRYTTMT.cjs.map} +1 -1
  49. package/dist/chunk-NJ7TL3LQ.js +1196 -0
  50. package/dist/chunk-NJ7TL3LQ.js.map +1 -0
  51. package/dist/{chunk-EUG4AON3.cjs → chunk-NKYWDNCI.cjs} +8 -7
  52. package/dist/{chunk-EUG4AON3.cjs.map → chunk-NKYWDNCI.cjs.map} +1 -1
  53. package/dist/{chunk-UHVG25VW.cjs → chunk-NZG2JAKS.cjs} +23 -15
  54. package/dist/chunk-NZG2JAKS.cjs.map +1 -0
  55. package/dist/{chunk-44SUGDBR.js → chunk-PS5ONCXY.js} +109 -5
  56. package/dist/chunk-PS5ONCXY.js.map +1 -0
  57. package/dist/{chunk-57QAF2ZQ.js → chunk-QTTWRCB5.js} +4 -4
  58. package/dist/{chunk-57QAF2ZQ.js.map → chunk-QTTWRCB5.js.map} +1 -1
  59. package/dist/{chunk-VM25PDSW.js → chunk-RZ4CIIZR.js} +4 -4
  60. package/dist/{chunk-VM25PDSW.js.map → chunk-RZ4CIIZR.js.map} +1 -1
  61. package/dist/{chunk-C3XU7ZDC.cjs → chunk-SU5APAM6.cjs} +123 -4
  62. package/dist/chunk-SU5APAM6.cjs.map +1 -0
  63. package/dist/{chunk-3MJCJLZS.js → chunk-U2HKJZCI.js} +24 -5
  64. package/dist/{chunk-3MJCJLZS.js.map → chunk-U2HKJZCI.js.map} +1 -1
  65. package/dist/{chunk-GCTAD6B7.cjs → chunk-VD5YA6RH.cjs} +12 -12
  66. package/dist/{chunk-GCTAD6B7.cjs.map → chunk-VD5YA6RH.cjs.map} +1 -1
  67. package/dist/{chunk-KAJNBNWP.cjs → chunk-YNNJLLFN.cjs} +4071 -3984
  68. package/dist/chunk-YNNJLLFN.cjs.map +1 -0
  69. package/dist/datasets/dataset.d.ts +153 -0
  70. package/dist/datasets/dataset.d.ts.map +1 -0
  71. package/dist/datasets/experiment/analytics/aggregate.d.ts +46 -0
  72. package/dist/datasets/experiment/analytics/aggregate.d.ts.map +1 -0
  73. package/dist/datasets/experiment/analytics/compare.d.ts +33 -0
  74. package/dist/datasets/experiment/analytics/compare.d.ts.map +1 -0
  75. package/dist/datasets/experiment/analytics/index.d.ts +9 -0
  76. package/dist/datasets/experiment/analytics/index.d.ts.map +1 -0
  77. package/dist/datasets/experiment/analytics/types.d.ts +103 -0
  78. package/dist/datasets/experiment/analytics/types.d.ts.map +1 -0
  79. package/dist/datasets/experiment/executor.d.ts +40 -0
  80. package/dist/datasets/experiment/executor.d.ts.map +1 -0
  81. package/dist/datasets/experiment/index.d.ts +31 -0
  82. package/dist/datasets/experiment/index.d.ts.map +1 -0
  83. package/dist/datasets/experiment/scorer.d.ts +21 -0
  84. package/dist/datasets/experiment/scorer.d.ts.map +1 -0
  85. package/dist/datasets/experiment/types.d.ts +140 -0
  86. package/dist/datasets/experiment/types.d.ts.map +1 -0
  87. package/dist/datasets/index.cjs +69 -0
  88. package/dist/datasets/index.cjs.map +1 -0
  89. package/dist/datasets/index.d.ts +6 -0
  90. package/dist/datasets/index.d.ts.map +1 -0
  91. package/dist/datasets/index.js +4 -0
  92. package/dist/datasets/index.js.map +1 -0
  93. package/dist/datasets/manager.d.ts +73 -0
  94. package/dist/datasets/manager.d.ts.map +1 -0
  95. package/dist/datasets/validation/errors.d.ts +44 -0
  96. package/dist/datasets/validation/errors.d.ts.map +1 -0
  97. package/dist/datasets/validation/index.d.ts +3 -0
  98. package/dist/datasets/validation/index.d.ts.map +1 -0
  99. package/dist/datasets/validation/validator.d.ts +24 -0
  100. package/dist/datasets/validation/validator.d.ts.map +1 -0
  101. package/dist/docs/SKILL.md +1 -3
  102. package/dist/docs/assets/SOURCE_MAP.json +436 -346
  103. package/dist/docs/references/docs-memory-observational-memory.md +86 -11
  104. package/dist/docs/references/docs-streaming-events.md +23 -0
  105. package/dist/docs/references/docs-workspace-filesystem.md +72 -1
  106. package/dist/docs/references/docs-workspace-overview.md +95 -12
  107. package/dist/docs/references/docs-workspace-sandbox.md +2 -0
  108. package/dist/docs/references/guides-agent-frameworks-ai-sdk.md +6 -2
  109. package/dist/docs/references/reference-ai-sdk-with-mastra.md +1 -1
  110. package/dist/docs/references/reference-memory-observational-memory.md +318 -9
  111. package/dist/docs/references/reference-streaming-workflows-stream.md +1 -0
  112. package/dist/docs/references/reference-workflows-workflow-methods-foreach.md +30 -0
  113. package/dist/docs/references/reference.md +3 -0
  114. package/dist/editor/index.d.ts +1 -1
  115. package/dist/editor/index.d.ts.map +1 -1
  116. package/dist/editor/types.d.ts +21 -3
  117. package/dist/editor/types.d.ts.map +1 -1
  118. package/dist/evals/index.cjs +20 -20
  119. package/dist/evals/index.js +3 -3
  120. package/dist/evals/scoreTraces/index.cjs +5 -5
  121. package/dist/evals/scoreTraces/index.js +2 -2
  122. package/dist/features/index.cjs +1 -1
  123. package/dist/features/index.cjs.map +1 -1
  124. package/dist/features/index.d.ts.map +1 -1
  125. package/dist/features/index.js +1 -1
  126. package/dist/features/index.js.map +1 -1
  127. package/dist/index.cjs +2 -7
  128. package/dist/index.d.ts +0 -9
  129. package/dist/index.d.ts.map +1 -1
  130. package/dist/index.js +1 -2
  131. package/dist/llm/index.cjs +10 -10
  132. package/dist/llm/index.js +2 -2
  133. package/dist/llm/model/provider-types.generated.d.ts +1694 -1659
  134. package/dist/loop/index.cjs +12 -12
  135. package/dist/loop/index.js +1 -1
  136. package/dist/loop/network/index.d.ts +1 -1
  137. package/dist/loop/workflows/agentic-execution/index.d.ts +1 -1
  138. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
  139. package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts.map +1 -1
  140. package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
  141. package/dist/loop/workflows/agentic-loop/index.d.ts +1 -1
  142. package/dist/loop/workflows/errors.d.ts +4 -0
  143. package/dist/loop/workflows/errors.d.ts.map +1 -0
  144. package/dist/mastra/index.cjs +2 -2
  145. package/dist/mastra/index.d.ts +2 -0
  146. package/dist/mastra/index.d.ts.map +1 -1
  147. package/dist/mastra/index.js +1 -1
  148. package/dist/memory/index.cjs +14 -14
  149. package/dist/memory/index.js +1 -1
  150. package/dist/memory/memory.d.ts +5 -0
  151. package/dist/memory/memory.d.ts.map +1 -1
  152. package/dist/memory/types.d.ts +56 -0
  153. package/dist/memory/types.d.ts.map +1 -1
  154. package/dist/processors/index.cjs +41 -41
  155. package/dist/processors/index.js +1 -1
  156. package/dist/processors/processors/skills.d.ts +1 -1
  157. package/dist/processors/processors/skills.d.ts.map +1 -1
  158. package/dist/processors/runner.d.ts.map +1 -1
  159. package/dist/processors/trailing-assistant-guard.d.ts +34 -0
  160. package/dist/processors/trailing-assistant-guard.d.ts.map +1 -0
  161. package/dist/provider-registry-6LZAGQET.cjs +40 -0
  162. package/dist/{provider-registry-C6XCYX44.cjs.map → provider-registry-6LZAGQET.cjs.map} +1 -1
  163. package/dist/provider-registry-QUNT7S55.js +3 -0
  164. package/dist/{provider-registry-NWU4YFQW.js.map → provider-registry-QUNT7S55.js.map} +1 -1
  165. package/dist/provider-registry.json +4068 -3981
  166. package/dist/relevance/index.cjs +3 -3
  167. package/dist/relevance/index.js +1 -1
  168. package/dist/storage/base.d.ts +4 -1
  169. package/dist/storage/base.d.ts.map +1 -1
  170. package/dist/storage/constants.cjs +87 -27
  171. package/dist/storage/constants.d.ts +21 -2
  172. package/dist/storage/constants.d.ts.map +1 -1
  173. package/dist/storage/constants.js +1 -1
  174. package/dist/storage/domains/agents/inmemory.d.ts.map +1 -1
  175. package/dist/storage/domains/datasets/base.d.ts +83 -0
  176. package/dist/storage/domains/datasets/base.d.ts.map +1 -0
  177. package/dist/storage/domains/datasets/index.d.ts +3 -0
  178. package/dist/storage/domains/datasets/index.d.ts.map +1 -0
  179. package/dist/storage/domains/datasets/inmemory.d.ts +40 -0
  180. package/dist/storage/domains/datasets/inmemory.d.ts.map +1 -0
  181. package/dist/storage/domains/experiments/base.d.ts +28 -0
  182. package/dist/storage/domains/experiments/base.d.ts.map +1 -0
  183. package/dist/storage/domains/experiments/index.d.ts +3 -0
  184. package/dist/storage/domains/experiments/index.d.ts.map +1 -0
  185. package/dist/storage/domains/experiments/inmemory.d.ts +28 -0
  186. package/dist/storage/domains/experiments/inmemory.d.ts.map +1 -0
  187. package/dist/storage/domains/index.d.ts +3 -0
  188. package/dist/storage/domains/index.d.ts.map +1 -1
  189. package/dist/storage/domains/inmemory-db.d.ts +9 -1
  190. package/dist/storage/domains/inmemory-db.d.ts.map +1 -1
  191. package/dist/storage/domains/mcp-clients/base.d.ts +47 -0
  192. package/dist/storage/domains/mcp-clients/base.d.ts.map +1 -0
  193. package/dist/storage/domains/mcp-clients/index.d.ts +3 -0
  194. package/dist/storage/domains/mcp-clients/index.d.ts.map +1 -0
  195. package/dist/storage/domains/mcp-clients/inmemory.d.ts +31 -0
  196. package/dist/storage/domains/mcp-clients/inmemory.d.ts.map +1 -0
  197. package/dist/storage/domains/operations/inmemory.d.ts.map +1 -1
  198. package/dist/storage/index.cjs +201 -117
  199. package/dist/storage/index.js +2 -2
  200. package/dist/storage/mock.d.ts.map +1 -1
  201. package/dist/storage/types.d.ts +338 -3
  202. package/dist/storage/types.d.ts.map +1 -1
  203. package/dist/stream/base/output.d.ts.map +1 -1
  204. package/dist/stream/index.cjs +11 -11
  205. package/dist/stream/index.js +2 -2
  206. package/dist/stream/types.d.ts +15 -0
  207. package/dist/stream/types.d.ts.map +1 -1
  208. package/dist/test-utils/llm-mock.cjs +4 -4
  209. package/dist/test-utils/llm-mock.js +1 -1
  210. package/dist/tool-loop-agent/index.cjs +4 -4
  211. package/dist/tool-loop-agent/index.js +1 -1
  212. package/dist/tool-provider/index.cjs +4 -0
  213. package/dist/tool-provider/index.cjs.map +1 -0
  214. package/dist/tool-provider/index.d.ts +2 -0
  215. package/dist/tool-provider/index.d.ts.map +1 -0
  216. package/dist/tool-provider/index.js +3 -0
  217. package/dist/tool-provider/index.js.map +1 -0
  218. package/dist/tool-provider/types.d.ts +113 -0
  219. package/dist/tool-provider/types.d.ts.map +1 -0
  220. package/dist/utils.cjs +23 -23
  221. package/dist/utils.d.ts +1 -1
  222. package/dist/utils.d.ts.map +1 -1
  223. package/dist/utils.js +1 -1
  224. package/dist/vector/index.cjs +7 -7
  225. package/dist/vector/index.js +1 -1
  226. package/dist/workflows/evented/index.cjs +10 -10
  227. package/dist/workflows/evented/index.js +1 -1
  228. package/dist/workflows/evented/workflow-event-processor/index.d.ts.map +1 -1
  229. package/dist/workflows/handlers/control-flow.d.ts.map +1 -1
  230. package/dist/workflows/index.cjs +25 -25
  231. package/dist/workflows/index.js +1 -1
  232. package/dist/workflows/workflow.d.ts +2 -2
  233. package/dist/workflows/workflow.d.ts.map +1 -1
  234. package/dist/workspace/filesystem/filesystem.d.ts +5 -15
  235. package/dist/workspace/filesystem/filesystem.d.ts.map +1 -1
  236. package/dist/workspace/filesystem/local-filesystem.d.ts +18 -2
  237. package/dist/workspace/filesystem/local-filesystem.d.ts.map +1 -1
  238. package/dist/workspace/filesystem/mastra-filesystem.d.ts +21 -1
  239. package/dist/workspace/filesystem/mastra-filesystem.d.ts.map +1 -1
  240. package/dist/workspace/index.cjs +41 -41
  241. package/dist/workspace/index.d.ts +1 -1
  242. package/dist/workspace/index.d.ts.map +1 -1
  243. package/dist/workspace/index.js +1 -1
  244. package/dist/workspace/lifecycle.d.ts +49 -53
  245. package/dist/workspace/lifecycle.d.ts.map +1 -1
  246. package/dist/workspace/sandbox/local-sandbox.d.ts +1 -1
  247. package/dist/workspace/sandbox/local-sandbox.d.ts.map +1 -1
  248. package/dist/workspace/sandbox/mastra-sandbox.d.ts +3 -2
  249. package/dist/workspace/sandbox/mastra-sandbox.d.ts.map +1 -1
  250. package/dist/workspace/sandbox/sandbox.d.ts +3 -4
  251. package/dist/workspace/sandbox/sandbox.d.ts.map +1 -1
  252. package/dist/workspace/workspace.d.ts +2 -15
  253. package/dist/workspace/workspace.d.ts.map +1 -1
  254. package/package.json +7 -7
  255. package/src/llm/model/provider-types.generated.d.ts +1694 -1659
  256. package/tool-provider.d.ts +1 -0
  257. package/dist/chunk-2GWTJFVM.js.map +0 -1
  258. package/dist/chunk-44SUGDBR.js.map +0 -1
  259. package/dist/chunk-C3XU7ZDC.cjs.map +0 -1
  260. package/dist/chunk-CGPH7CMG.cjs.map +0 -1
  261. package/dist/chunk-ILQXPZCD.js.map +0 -1
  262. package/dist/chunk-JNE2ABVB.js.map +0 -1
  263. package/dist/chunk-KAJNBNWP.cjs.map +0 -1
  264. package/dist/chunk-PHYJYZ32.js.map +0 -1
  265. package/dist/chunk-SIZEIYNH.js.map +0 -1
  266. package/dist/chunk-TERSHTY5.cjs.map +0 -1
  267. package/dist/chunk-UE2G2LRP.cjs.map +0 -1
  268. package/dist/chunk-UHVG25VW.cjs.map +0 -1
  269. package/dist/chunk-WL3AW3YA.js.map +0 -1
  270. package/dist/chunk-YNXIGRQE.cjs.map +0 -1
  271. package/dist/docs/references/reference-cli-mastra.md +0 -336
  272. package/dist/docs/references/reference-deployer-cloudflare.md +0 -56
  273. package/dist/provider-registry-C6XCYX44.cjs +0 -40
  274. package/dist/provider-registry-NWU4YFQW.js +0 -3
@@ -24,17 +24,15 @@ export const agent = new Agent({
24
24
 
25
25
  ## Configuration
26
26
 
27
- The `observationalMemory` option accepts `true`, `false`, or a configuration object.
28
-
29
- Setting `observationalMemory: true` enables it with all defaults. Setting `observationalMemory: false` or omitting it disables it.
27
+ The `observationalMemory` option accepts `true`, a configuration object, or `false`. Setting `true` enables OM with `google/gemini-2.5-flash` as the default model. When passing a config object, a `model` must be explicitly set — either at the top level, or on `observation.model` and/or `reflection.model`.
30
28
 
31
29
  **enabled?:** (`boolean`): Enable or disable Observational Memory. When omitted from a config object, defaults to \`true\`. Only \`enabled: false\` explicitly disables it. (Default: `true`)
32
30
 
33
- **model?:** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for both the Observer and Reflector agents. Sets the model for both at once. Cannot be used together with \`observation.model\` or \`reflection.model\` — an error will be thrown if both are set. (Default: `'google/gemini-2.5-flash'`)
31
+ **model?:** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for both the Observer and Reflector agents. Sets the model for both at once. Cannot be used together with \`observation.model\` or \`reflection.model\` — an error will be thrown if both are set. When using \`observationalMemory: true\`, defaults to \`google/gemini-2.5-flash\`. When passing a config object, this or \`observation.model\`/\`reflection.model\` must be set. Use \`"default"\` to explicitly use the default model (\`google/gemini-2.5-flash\`). (Default: `'google/gemini-2.5-flash' (when using observationalMemory: true)`)
34
32
 
35
- **scope?:** (`'resource' | 'thread'`): Memory scope for observations. \`'thread'\` keeps observations per-thread. \`'resource'\` shares observations across all threads for a resource, enabling cross-conversation memory. (Default: `'thread'`)
33
+ **scope?:** (`'resource' | 'thread'`): Memory scope for observations. \`'thread'\` keeps observations per-thread. \`'resource'\` (experimental) shares observations across all threads for a resource, enabling cross-conversation memory. (Default: `'thread'`)
36
34
 
37
- **shareTokenBudget?:** (`boolean`): Share the token budget between messages and observations. When enabled, the total budget is \`observation.messageTokens + reflection.observationTokens\`. Messages can use more space when observations are small, and vice versa. This maximizes context usage through flexible allocation. (Default: `false`)
35
+ **shareTokenBudget?:** (`boolean`): Share the token budget between messages and observations. When enabled, the total budget is \`observation.messageTokens + reflection.observationTokens\`. Messages can use more space when observations are small, and vice versa. This maximizes context usage through flexible allocation. \*\*Note:\*\* \`shareTokenBudget\` is not yet compatible with async buffering. You must set \`observation: { bufferTokens: false }\` when using this option (this is a temporary limitation). (Default: `false`)
38
36
 
39
37
  **observation?:** (`ObservationalMemoryObservationConfig`): Configuration for the observation step. Controls when the Observer agent runs and how it behaves.
40
38
 
@@ -42,7 +40,7 @@ Setting `observationalMemory: true` enables it with all defaults. Setting `obser
42
40
 
43
41
  ### Observation config
44
42
 
45
- **model?:** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for the Observer agent. Cannot be set if a top-level \`model\` is also provided. (Default: `'google/gemini-2.5-flash'`)
43
+ **model?:** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for the Observer agent. Cannot be set if a top-level \`model\` is also provided. If neither this nor the top-level \`model\` is set, falls back to \`reflection.model\`.
46
44
 
47
45
  **messageTokens?:** (`number`): Token count of unobserved messages that triggers observation. When unobserved message tokens exceed this threshold, the Observer agent is called. (Default: `30000`)
48
46
 
@@ -50,14 +48,24 @@ Setting `observationalMemory: true` enables it with all defaults. Setting `obser
50
48
 
51
49
  **modelSettings?:** (`ObservationalMemoryModelSettings`): Model settings for the Observer agent. (Default: `{ temperature: 0.3, maxOutputTokens: 100_000 }`)
52
50
 
51
+ **bufferTokens?:** (`number | false`): Token interval for async background observation buffering. Can be an absolute token count (e.g. \`5000\`) or a fraction of \`messageTokens\` (e.g. \`0.25\` = buffer every 25% of threshold). When set, observations run in the background at this interval, storing results in a buffer. When the main \`messageTokens\` threshold is reached, buffered observations activate instantly without a blocking LLM call. Must resolve to less than \`messageTokens\`. Set to \`false\` to explicitly disable all async buffering (both observation and reflection). (Default: `0.2`)
52
+
53
+ **bufferActivation?:** (`number`): Ratio (0-1) controlling how much of the message window to retain after activation. For example, \`0.8\` means activate enough to keep only 20% of \`messageTokens\` remaining. Higher values remove more message history per activation. (Default: `0.8`)
54
+
55
+ **blockAfter?:** (`number`): Token threshold above which synchronous (blocking) observation is forced. Between \`messageTokens\` and \`blockAfter\`, only async buffering/activation is used. Above \`blockAfter\`, a synchronous observation runs as a last resort. Accepts a multiplier (1 < value < 2, multiplied by \`messageTokens\`) or an absolute token count (≥ 2, must be greater than \`messageTokens\`). Only relevant when \`bufferTokens\` is set. Defaults to \`1.2\` when async buffering is enabled. (Default: `1.2 (when bufferTokens is set)`)
56
+
53
57
  ### Reflection config
54
58
 
55
- **model?:** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for the Reflector agent. Cannot be set if a top-level \`model\` is also provided. (Default: `'google/gemini-2.5-flash'`)
59
+ **model?:** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for the Reflector agent. Cannot be set if a top-level \`model\` is also provided. If neither this nor the top-level \`model\` is set, falls back to \`observation.model\`.
56
60
 
57
61
  **observationTokens?:** (`number`): Token count of observations that triggers reflection. When observation tokens exceed this threshold, the Reflector agent is called to condense them. (Default: `40000`)
58
62
 
59
63
  **modelSettings?:** (`ObservationalMemoryModelSettings`): Model settings for the Reflector agent. (Default: `{ temperature: 0, maxOutputTokens: 100_000 }`)
60
64
 
65
+ **bufferActivation?:** (`number`): Ratio (0-1) controlling when async reflection buffering starts. When observation tokens reach \`observationTokens \* bufferActivation\`, reflection runs in the background. On activation at the full threshold, the buffered reflection replaces the observations it covers, preserving any new observations appended after that range. (Default: `0.5`)
66
+
67
+ **blockAfter?:** (`number`): Token threshold above which synchronous (blocking) reflection is forced. Between \`observationTokens\` and \`blockAfter\`, only async buffering/activation is used. Above \`blockAfter\`, a synchronous reflection runs as a last resort. Accepts a multiplier (1 < value < 2, multiplied by \`observationTokens\`) or an absolute token count (≥ 2, must be greater than \`observationTokens\`). Only relevant when \`bufferActivation\` is set. Defaults to \`1.2\` when async reflection is enabled. (Default: `1.2 (when bufferActivation is set)`)
68
+
61
69
  ### Model settings
62
70
 
63
71
  **temperature?:** (`number`): Temperature for generation. Lower values produce more consistent output. (Default: `0.3`)
@@ -66,7 +74,7 @@ Setting `observationalMemory: true` enables it with all defaults. Setting `obser
66
74
 
67
75
  ## Examples
68
76
 
69
- ### Resource scope with custom thresholds
77
+ ### Resource scope with custom thresholds (experimental)
70
78
 
71
79
  ```typescript
72
80
  import { Memory } from "@mastra/memory";
@@ -79,6 +87,7 @@ export const agent = new Agent({
79
87
  memory: new Memory({
80
88
  options: {
81
89
  observationalMemory: {
90
+ model: "google/gemini-2.5-flash",
82
91
  scope: "resource",
83
92
  observation: {
84
93
  messageTokens: 20_000,
@@ -108,6 +117,7 @@ export const agent = new Agent({
108
117
  shareTokenBudget: true,
109
118
  observation: {
110
119
  messageTokens: 20_000,
120
+ bufferTokens: false, // required when using shareTokenBudget (temporary limitation)
111
121
  },
112
122
  reflection: {
113
123
  observationTokens: 80_000,
@@ -165,6 +175,305 @@ export const agent = new Agent({
165
175
  });
166
176
  ```
167
177
 
178
+ ### Async buffering
179
+
180
+ Async buffering is **enabled by default**. It pre-computes observations in the background as the conversation grows — when the `messageTokens` threshold is reached, buffered observations activate instantly with no blocking LLM call.
181
+
182
+ The lifecycle is: **buffer → activate → remove messages → repeat**. Background Observer calls run at `bufferTokens` intervals, each producing a chunk of observations. At threshold, chunks activate: observations move into the log, raw messages are removed from context. The `blockAfter` threshold forces a synchronous fallback if buffering can't keep up.
183
+
184
+ Default settings:
185
+
186
+ - `observation.bufferTokens: 0.2` — buffer every 20% of `messageTokens` (e.g. every \~6k tokens with a 30k threshold)
187
+ - `observation.bufferActivation: 0.8` — on activation, remove enough messages to keep only 20% of the threshold remaining
188
+ - `reflection.bufferActivation: 0.5` — start background reflection at 50% of observation threshold
189
+
190
+ To customize:
191
+
192
+ ```typescript
193
+ import { Memory } from "@mastra/memory";
194
+ import { Agent } from "@mastra/core/agent";
195
+
196
+ export const agent = new Agent({
197
+ name: "my-agent",
198
+ instructions: "You are a helpful assistant.",
199
+ model: "openai/gpt-5-mini",
200
+ memory: new Memory({
201
+ options: {
202
+ observationalMemory: {
203
+ model: "google/gemini-2.5-flash",
204
+ observation: {
205
+ messageTokens: 30_000,
206
+ // Buffer every 5k tokens (runs in background)
207
+ bufferTokens: 5_000,
208
+ // Activate to retain 30% of threshold
209
+ bufferActivation: 0.7,
210
+ // Force synchronous observation at 1.5x threshold
211
+ blockAfter: 1.5,
212
+ },
213
+ reflection: {
214
+ observationTokens: 60_000,
215
+ // Start background reflection at 50% of threshold
216
+ bufferActivation: 0.5,
217
+ // Force synchronous reflection at 1.2x threshold
218
+ blockAfter: 1.2,
219
+ },
220
+ },
221
+ },
222
+ }),
223
+ });
224
+ ```
225
+
226
+ To disable async buffering entirely:
227
+
228
+ ```typescript
229
+ observationalMemory: {
230
+ model: "google/gemini-2.5-flash",
231
+ observation: {
232
+ bufferTokens: false,
233
+ },
234
+ }
235
+ ```
236
+
237
+ Setting `bufferTokens: false` disables both observation and reflection async buffering. Observations and reflections will run synchronously when their thresholds are reached.
238
+
239
+ > **Note:** Async buffering is not supported with `scope: 'resource'` and is automatically disabled in resource scope.
240
+
241
+ ## Streaming data parts
242
+
243
+ Observational Memory emits typed data parts during agent execution that clients can use for real-time UI feedback. These are streamed alongside the agent's response.
244
+
245
+ ### `data-om-status`
246
+
247
+ Emitted once per agent loop step, before model generation. Provides a snapshot of the current memory state, including token usage for both context windows and the state of any async buffered content.
248
+
249
+ ```typescript
250
+ interface DataOmStatusPart {
251
+ type: 'data-om-status';
252
+ data: {
253
+ windows: {
254
+ active: {
255
+ /** Unobserved message tokens and the threshold that triggers observation */
256
+ messages: { tokens: number; threshold: number };
257
+ /** Observation tokens and the threshold that triggers reflection */
258
+ observations: { tokens: number; threshold: number };
259
+ };
260
+ buffered: {
261
+ observations: {
262
+ /** Number of buffered chunks staged for activation */
263
+ chunks: number;
264
+ /** Total message tokens across all buffered chunks */
265
+ messageTokens: number;
266
+ /** Projected message tokens that would be removed if activation happened now (based on bufferActivation ratio and chunk boundaries) */
267
+ projectedMessageRemoval: number;
268
+ /** Observation tokens that will be added on activation */
269
+ observationTokens: number;
270
+ /** idle: no buffering in progress. running: background observer is working. complete: chunks are ready for activation. */
271
+ status: 'idle' | 'running' | 'complete';
272
+ };
273
+ reflection: {
274
+ /** Observation tokens that were fed into the reflector (pre-compression size) */
275
+ inputObservationTokens: number;
276
+ /** Observation tokens the reflection will produce on activation (post-compression size) */
277
+ observationTokens: number;
278
+ /** idle: no reflection buffered. running: background reflector is working. complete: reflection is ready for activation. */
279
+ status: 'idle' | 'running' | 'complete';
280
+ };
281
+ };
282
+ };
283
+ recordId: string;
284
+ threadId: string;
285
+ stepNumber: number;
286
+ /** Increments each time the Reflector creates a new generation */
287
+ generationCount: number;
288
+ };
289
+ }
290
+ ```
291
+
292
+ `buffered.reflection.inputObservationTokens` is the size of the observations that were sent to the Reflector. `buffered.reflection.observationTokens` is the compressed result — the size of what will replace those observations when the reflection activates. A client can use these two values to show a compression ratio.
293
+
294
+ Clients can derive percentages and post-activation estimates from the raw values:
295
+
296
+ ```typescript
297
+ // Message window usage %
298
+ const msgPercent = status.windows.active.messages.tokens
299
+ / status.windows.active.messages.threshold;
300
+
301
+ // Observation window usage %
302
+ const obsPercent = status.windows.active.observations.tokens
303
+ / status.windows.active.observations.threshold;
304
+
305
+ // Projected message tokens after buffered observations activate
306
+ // Uses projectedMessageRemoval which accounts for bufferActivation ratio and chunk boundaries
307
+ const postActivation = status.windows.active.messages.tokens
308
+ - status.windows.buffered.observations.projectedMessageRemoval;
309
+
310
+ // Reflection compression ratio (when buffered reflection exists)
311
+ const { inputObservationTokens, observationTokens } = status.windows.buffered.reflection;
312
+ if (inputObservationTokens > 0) {
313
+ const compressionRatio = observationTokens / inputObservationTokens;
314
+ }
315
+ ```
316
+
317
+ ### `data-om-observation-start`
318
+
319
+ Emitted when the Observer or Reflector agent begins processing.
320
+
321
+ **cycleId:** (`string`): Unique ID for this cycle — shared between start/end/failed markers.
322
+
323
+ **operationType:** (`'observation' | 'reflection'`): Whether this is an observation or reflection operation.
324
+
325
+ **startedAt:** (`string`): ISO timestamp when processing started.
326
+
327
+ **tokensToObserve:** (`number`): Message tokens (input) being processed in this batch.
328
+
329
+ **recordId:** (`string`): The OM record ID.
330
+
331
+ **threadId:** (`string`): This thread's ID.
332
+
333
+ **threadIds:** (`string[]`): All thread IDs in this batch (for resource-scoped).
334
+
335
+ **config:** (`ObservationMarkerConfig`): Snapshot of \`messageTokens\`, \`observationTokens\`, and \`scope\` at observation time.
336
+
337
+ ### `data-om-observation-end`
338
+
339
+ Emitted when observation or reflection completes successfully.
340
+
341
+ **cycleId:** (`string`): Matches the corresponding \`start\` marker.
342
+
343
+ **operationType:** (`'observation' | 'reflection'`): Type of operation that completed.
344
+
345
+ **completedAt:** (`string`): ISO timestamp when processing completed.
346
+
347
+ **durationMs:** (`number`): Duration in milliseconds.
348
+
349
+ **tokensObserved:** (`number`): Message tokens (input) that were processed.
350
+
351
+ **observationTokens:** (`number`): Resulting observation tokens (output) after the Observer compressed them.
352
+
353
+ **observations?:** (`string`): The generated observations text.
354
+
355
+ **currentTask?:** (`string`): Current task extracted by the Observer.
356
+
357
+ **suggestedResponse?:** (`string`): Suggested response extracted by the Observer.
358
+
359
+ **recordId:** (`string`): The OM record ID.
360
+
361
+ **threadId:** (`string`): This thread's ID.
362
+
363
+ ### `data-om-observation-failed`
364
+
365
+ Emitted when observation or reflection fails. The system falls back to synchronous processing.
366
+
367
+ **cycleId:** (`string`): Matches the corresponding \`start\` marker.
368
+
369
+ **operationType:** (`'observation' | 'reflection'`): Type of operation that failed.
370
+
371
+ **failedAt:** (`string`): ISO timestamp when the failure occurred.
372
+
373
+ **durationMs:** (`number`): Duration until failure in milliseconds.
374
+
375
+ **tokensAttempted:** (`number`): Message tokens (input) that were attempted.
376
+
377
+ **error:** (`string`): Error message.
378
+
379
+ **observations?:** (`string`): Any partial content available for display.
380
+
381
+ **recordId:** (`string`): The OM record ID.
382
+
383
+ **threadId:** (`string`): This thread's ID.
384
+
385
+ ### `data-om-buffering-start`
386
+
387
+ Emitted when async buffering begins in the background. Buffering pre-computes observations or reflections before the main threshold is reached.
388
+
389
+ **cycleId:** (`string`): Unique ID for this buffering cycle.
390
+
391
+ **operationType:** (`'observation' | 'reflection'`): Type of operation being buffered.
392
+
393
+ **startedAt:** (`string`): ISO timestamp when buffering started.
394
+
395
+ **tokensToBuffer:** (`number`): Message tokens (input) being buffered in this cycle.
396
+
397
+ **recordId:** (`string`): The OM record ID.
398
+
399
+ **threadId:** (`string`): This thread's ID.
400
+
401
+ **threadIds:** (`string[]`): All thread IDs being buffered (for resource-scoped).
402
+
403
+ **config:** (`ObservationMarkerConfig`): Snapshot of config at buffering time.
404
+
405
+ ### `data-om-buffering-end`
406
+
407
+ Emitted when async buffering completes. The content is stored but not yet activated in the main context.
408
+
409
+ **cycleId:** (`string`): Matches the corresponding \`buffering-start\` marker.
410
+
411
+ **operationType:** (`'observation' | 'reflection'`): Type of operation that was buffered.
412
+
413
+ **completedAt:** (`string`): ISO timestamp when buffering completed.
414
+
415
+ **durationMs:** (`number`): Duration in milliseconds.
416
+
417
+ **tokensBuffered:** (`number`): Message tokens (input) that were buffered.
418
+
419
+ **bufferedTokens:** (`number`): Observation tokens (output) after the Observer compressed them.
420
+
421
+ **observations?:** (`string`): The buffered content.
422
+
423
+ **recordId:** (`string`): The OM record ID.
424
+
425
+ **threadId:** (`string`): This thread's ID.
426
+
427
+ ### `data-om-buffering-failed`
428
+
429
+ Emitted when async buffering fails. The system falls back to synchronous processing when the threshold is reached.
430
+
431
+ **cycleId:** (`string`): Matches the corresponding \`buffering-start\` marker.
432
+
433
+ **operationType:** (`'observation' | 'reflection'`): Type of operation that failed.
434
+
435
+ **failedAt:** (`string`): ISO timestamp when the failure occurred.
436
+
437
+ **durationMs:** (`number`): Duration until failure in milliseconds.
438
+
439
+ **tokensAttempted:** (`number`): Message tokens (input) that were attempted to buffer.
440
+
441
+ **error:** (`string`): Error message.
442
+
443
+ **observations?:** (`string`): Any partial content.
444
+
445
+ **recordId:** (`string`): The OM record ID.
446
+
447
+ **threadId:** (`string`): This thread's ID.
448
+
449
+ ### `data-om-activation`
450
+
451
+ Emitted when buffered observations or reflections are activated (moved into the active context window). This is an instant operation — no LLM call is involved.
452
+
453
+ **cycleId:** (`string`): Unique ID for this activation event.
454
+
455
+ **operationType:** (`'observation' | 'reflection'`): Type of content activated.
456
+
457
+ **activatedAt:** (`string`): ISO timestamp when activation occurred.
458
+
459
+ **chunksActivated:** (`number`): Number of buffered chunks activated.
460
+
461
+ **tokensActivated:** (`number`): Message tokens (input) from activated chunks. For observation activation, these are removed from the message window. For reflection activation, this is the observation tokens that were compressed.
462
+
463
+ **observationTokens:** (`number`): Resulting observation tokens after activation.
464
+
465
+ **messagesActivated:** (`number`): Number of messages that were observed via activation.
466
+
467
+ **generationCount:** (`number`): Current reflection generation count.
468
+
469
+ **observations?:** (`string`): The activated observations text.
470
+
471
+ **recordId:** (`string`): The OM record ID.
472
+
473
+ **threadId:** (`string`): This thread's ID.
474
+
475
+ **config:** (`ObservationMarkerConfig`): Snapshot of config at activation time.
476
+
168
477
  ## Standalone usage
169
478
 
170
479
  Most users should use the `Memory` class above. Using `ObservationalMemory` directly is mainly useful for benchmarking, experimentation, or when you need to control processor ordering with other processors (like [guardrails](https://mastra.ai/docs/agents/guardrails)).
@@ -77,6 +77,7 @@ The stream emits various event types during workflow execution. Each event has a
77
77
  - **`workflow-start`**: Workflow execution begins
78
78
  - **`workflow-step-start`**: A step begins execution
79
79
  - **`workflow-step-output`**: Custom output from a step
80
+ - **`workflow-step-progress`**: A foreach step reports per-iteration progress (includes `completedCount`, `totalCount`, `currentIndex`, `iterationStatus`, and optional `iterationOutput`)
80
81
  - **`workflow-step-result`**: A step completes with results
81
82
  - **`workflow-finish`**: Workflow execution completes with usage statistics
82
83
 
@@ -83,6 +83,36 @@ workflow
83
83
  .commit();
84
84
  ```
85
85
 
86
+ ### Progress events during streaming
87
+
88
+ When using `run.stream()`, foreach steps emit a `workflow-step-progress` event after each iteration completes. This lets you track real-time progress without waiting for the entire foreach to finish.
89
+
90
+ ```typescript
91
+ const run = await workflow.createRun();
92
+ const stream = run.stream({ inputData });
93
+
94
+ for await (const chunk of stream) {
95
+ if (chunk.type === 'workflow-step-progress') {
96
+ console.log(`${chunk.payload.completedCount}/${chunk.payload.totalCount}`);
97
+ // e.g. "1/3", "2/3", "3/3"
98
+ }
99
+ }
100
+ ```
101
+
102
+ Each progress event payload contains:
103
+
104
+ **id:** (`string`): The step ID of the foreach step
105
+
106
+ **completedCount:** (`number`): Number of iterations completed so far
107
+
108
+ **totalCount:** (`number`): Total number of iterations
109
+
110
+ **currentIndex:** (`number`): Index of the iteration that just completed
111
+
112
+ **iterationStatus:** (`'success' | 'failed' | 'suspended'`): Status of the iteration that just completed
113
+
114
+ **iterationOutput?:** (`Record<string, any>`): Output of the iteration (present when iterationStatus is 'success')
115
+
86
116
  ## Related
87
117
 
88
118
  - [Looping with foreach](https://mastra.ai/docs/workflows/control-flow)
@@ -164,7 +164,10 @@ The Reference section provides documentation of Mastra's API, including paramete
164
164
  - [Upstash Storage](https://mastra.ai/reference/storage/upstash)
165
165
  - [Workspace Class](https://mastra.ai/reference/workspace/workspace-class)
166
166
  - [LocalFilesystem](https://mastra.ai/reference/workspace/local-filesystem)
167
+ - [S3Filesystem](https://mastra.ai/reference/workspace/s3-filesystem)
168
+ - [GCSFilesystem](https://mastra.ai/reference/workspace/gcs-filesystem)
167
169
  - [LocalSandbox](https://mastra.ai/reference/workspace/local-sandbox)
170
+ - [E2BSandbox](https://mastra.ai/reference/workspace/e2b-sandbox)
168
171
  - [WorkspaceFilesystem](https://mastra.ai/reference/workspace/filesystem)
169
172
  - [WorkspaceSandbox](https://mastra.ai/reference/workspace/sandbox)
170
173
  - [.stream()](https://mastra.ai/reference/streaming/agents/stream)
@@ -1,2 +1,2 @@
1
- export type { IMastraEditor, MastraEditorConfig, GetByIdOptions, IEditorAgentNamespace, IEditorPromptNamespace, IEditorScorerNamespace, } from './types.js';
1
+ export type { IMastraEditor, MastraEditorConfig, GetByIdOptions, IEditorAgentNamespace, IEditorMCPNamespace, IEditorPromptNamespace, IEditorScorerNamespace, } from './types.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,SAAS,CAAC"}
@@ -3,9 +3,12 @@ import type { MastraScorer } from '../evals/index.js';
3
3
  import type { IMastraLogger } from '../logger/index.js';
4
4
  import type { Mastra } from '../mastra/index.js';
5
5
  import type { RequestContext } from '../request-context/index.js';
6
- import type { AgentInstructionBlock, StorageCreateAgentInput, StorageUpdateAgentInput, StorageListAgentsInput, StorageListAgentsOutput, StorageListAgentsResolvedOutput, StorageResolvedAgentType, StorageCreatePromptBlockInput, StorageUpdatePromptBlockInput, StorageListPromptBlocksInput, StorageListPromptBlocksOutput, StorageResolvedPromptBlockType, StorageListPromptBlocksResolvedOutput, StorageCreateScorerDefinitionInput, StorageUpdateScorerDefinitionInput, StorageListScorerDefinitionsInput, StorageListScorerDefinitionsOutput, StorageResolvedScorerDefinitionType, StorageListScorerDefinitionsResolvedOutput } from '../storage/types.js';
6
+ import type { AgentInstructionBlock, StorageCreateAgentInput, StorageUpdateAgentInput, StorageListAgentsInput, StorageListAgentsOutput, StorageListAgentsResolvedOutput, StorageResolvedAgentType, StorageCreatePromptBlockInput, StorageUpdatePromptBlockInput, StorageListPromptBlocksInput, StorageListPromptBlocksOutput, StorageResolvedPromptBlockType, StorageListPromptBlocksResolvedOutput, StorageCreateScorerDefinitionInput, StorageUpdateScorerDefinitionInput, StorageListScorerDefinitionsInput, StorageListScorerDefinitionsOutput, StorageResolvedScorerDefinitionType, StorageListScorerDefinitionsResolvedOutput, StorageCreateMCPClientInput, StorageUpdateMCPClientInput, StorageListMCPClientsInput, StorageListMCPClientsOutput, StorageResolvedMCPClientType, StorageListMCPClientsResolvedOutput } from '../storage/types.js';
7
+ import type { ToolProvider } from '../tool-provider/index.js';
7
8
  export interface MastraEditorConfig {
8
9
  logger?: IMastraLogger;
10
+ /** Tool providers for integration tools (e.g., Composio) */
11
+ toolProviders?: Record<string, ToolProvider>;
9
12
  }
10
13
  export interface GetByIdOptions {
11
14
  /** Retrieve a specific version by ID. */
@@ -49,9 +52,18 @@ export interface IEditorScorerNamespace {
49
52
  clearCache(id?: string): void;
50
53
  resolve(storedScorer: StorageResolvedScorerDefinitionType): MastraScorer<any, any, any, any> | null;
51
54
  }
55
+ export interface IEditorMCPNamespace {
56
+ create(input: StorageCreateMCPClientInput): Promise<StorageResolvedMCPClientType>;
57
+ getById(id: string, options?: GetByIdOptions): Promise<StorageResolvedMCPClientType | null>;
58
+ update(input: StorageUpdateMCPClientInput): Promise<StorageResolvedMCPClientType>;
59
+ delete(id: string): Promise<void>;
60
+ list(args?: StorageListMCPClientsInput): Promise<StorageListMCPClientsOutput>;
61
+ listResolved(args?: StorageListMCPClientsInput): Promise<StorageListMCPClientsResolvedOutput>;
62
+ clearCache(id?: string): void;
63
+ }
52
64
  /**
53
- * Interface for the Mastra Editor, which handles agent, prompt, and scorer
54
- * management from stored data.
65
+ * Interface for the Mastra Editor, which handles agent, prompt, scorer,
66
+ * and MCP config management from stored data.
55
67
  */
56
68
  export interface IMastraEditor {
57
69
  /**
@@ -61,9 +73,15 @@ export interface IMastraEditor {
61
73
  registerWithMastra(mastra: Mastra): void;
62
74
  /** Agent management namespace */
63
75
  readonly agent: IEditorAgentNamespace;
76
+ /** MCP config management namespace */
77
+ readonly mcp: IEditorMCPNamespace;
64
78
  /** Prompt block management namespace */
65
79
  readonly prompt: IEditorPromptNamespace;
66
80
  /** Scorer definition management namespace */
67
81
  readonly scorer: IEditorScorerNamespace;
82
+ /** Registered tool providers */
83
+ getToolProvider(id: string): ToolProvider | undefined;
84
+ /** List all registered tool providers */
85
+ getToolProviders(): Record<string, ToolProvider>;
68
86
  }
69
87
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/editor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,E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M,GAAG,IAAI,CAAC;IAEzC,iCAAiC;IACjC,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;IAEtC,sCAAsC;IACtC,QAAQ,CAAC,GAAG,EAAE,mBAAmB,CAAC;IAElC,wCAAwC;IACxC,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IAExC,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IAExC,gCAAgC;IAChC,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;IACtD,yCAAyC;IACzC,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CAClD"}
@@ -1,78 +1,78 @@
1
1
  'use strict';
2
2
 
3
- var chunkEUG4AON3_cjs = require('../chunk-EUG4AON3.cjs');
4
- var chunkYNXIGRQE_cjs = require('../chunk-YNXIGRQE.cjs');
5
- var chunkC3XU7ZDC_cjs = require('../chunk-C3XU7ZDC.cjs');
3
+ var chunkNKYWDNCI_cjs = require('../chunk-NKYWDNCI.cjs');
4
+ var chunk4IJ4UDZX_cjs = require('../chunk-4IJ4UDZX.cjs');
5
+ var chunkSU5APAM6_cjs = require('../chunk-SU5APAM6.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "runEvals", {
10
10
  enumerable: true,
11
- get: function () { return chunkEUG4AON3_cjs.runEvals; }
11
+ get: function () { return chunkNKYWDNCI_cjs.runEvals; }
12
12
  });
13
13
  Object.defineProperty(exports, "MastraScorer", {
14
14
  enumerable: true,
15
- get: function () { return chunkYNXIGRQE_cjs.MastraScorer; }
15
+ get: function () { return chunk4IJ4UDZX_cjs.MastraScorer; }
16
16
  });
17
17
  Object.defineProperty(exports, "createScorer", {
18
18
  enumerable: true,
19
- get: function () { return chunkYNXIGRQE_cjs.createScorer; }
19
+ get: function () { return chunk4IJ4UDZX_cjs.createScorer; }
20
20
  });
21
21
  Object.defineProperty(exports, "listScoresResponseSchema", {
22
22
  enumerable: true,
23
- get: function () { return chunkC3XU7ZDC_cjs.listScoresResponseSchema; }
23
+ get: function () { return chunkSU5APAM6_cjs.listScoresResponseSchema; }
24
24
  });
25
25
  Object.defineProperty(exports, "saveScorePayloadSchema", {
26
26
  enumerable: true,
27
- get: function () { return chunkC3XU7ZDC_cjs.saveScorePayloadSchema; }
27
+ get: function () { return chunkSU5APAM6_cjs.saveScorePayloadSchema; }
28
28
  });
29
29
  Object.defineProperty(exports, "scoreResultSchema", {
30
30
  enumerable: true,
31
- get: function () { return chunkC3XU7ZDC_cjs.scoreResultSchema; }
31
+ get: function () { return chunkSU5APAM6_cjs.scoreResultSchema; }
32
32
  });
33
33
  Object.defineProperty(exports, "scoreRowDataSchema", {
34
34
  enumerable: true,
35
- get: function () { return chunkC3XU7ZDC_cjs.scoreRowDataSchema; }
35
+ get: function () { return chunkSU5APAM6_cjs.scoreRowDataSchema; }
36
36
  });
37
37
  Object.defineProperty(exports, "scoringEntityTypeSchema", {
38
38
  enumerable: true,
39
- get: function () { return chunkC3XU7ZDC_cjs.scoringEntityTypeSchema; }
39
+ get: function () { return chunkSU5APAM6_cjs.scoringEntityTypeSchema; }
40
40
  });
41
41
  Object.defineProperty(exports, "scoringExtractStepResultSchema", {
42
42
  enumerable: true,
43
- get: function () { return chunkC3XU7ZDC_cjs.scoringExtractStepResultSchema; }
43
+ get: function () { return chunkSU5APAM6_cjs.scoringExtractStepResultSchema; }
44
44
  });
45
45
  Object.defineProperty(exports, "scoringHookInputSchema", {
46
46
  enumerable: true,
47
- get: function () { return chunkC3XU7ZDC_cjs.scoringHookInputSchema; }
47
+ get: function () { return chunkSU5APAM6_cjs.scoringHookInputSchema; }
48
48
  });
49
49
  Object.defineProperty(exports, "scoringInputSchema", {
50
50
  enumerable: true,
51
- get: function () { return chunkC3XU7ZDC_cjs.scoringInputSchema; }
51
+ get: function () { return chunkSU5APAM6_cjs.scoringInputSchema; }
52
52
  });
53
53
  Object.defineProperty(exports, "scoringInputWithExtractStepResultAndAnalyzeStepResultSchema", {
54
54
  enumerable: true,
55
- get: function () { return chunkC3XU7ZDC_cjs.scoringInputWithExtractStepResultAndAnalyzeStepResultSchema; }
55
+ get: function () { return chunkSU5APAM6_cjs.scoringInputWithExtractStepResultAndAnalyzeStepResultSchema; }
56
56
  });
57
57
  Object.defineProperty(exports, "scoringInputWithExtractStepResultAndScoreAndReasonSchema", {
58
58
  enumerable: true,
59
- get: function () { return chunkC3XU7ZDC_cjs.scoringInputWithExtractStepResultAndScoreAndReasonSchema; }
59
+ get: function () { return chunkSU5APAM6_cjs.scoringInputWithExtractStepResultAndScoreAndReasonSchema; }
60
60
  });
61
61
  Object.defineProperty(exports, "scoringInputWithExtractStepResultSchema", {
62
62
  enumerable: true,
63
- get: function () { return chunkC3XU7ZDC_cjs.scoringInputWithExtractStepResultSchema; }
63
+ get: function () { return chunkSU5APAM6_cjs.scoringInputWithExtractStepResultSchema; }
64
64
  });
65
65
  Object.defineProperty(exports, "scoringPromptsSchema", {
66
66
  enumerable: true,
67
- get: function () { return chunkC3XU7ZDC_cjs.scoringPromptsSchema; }
67
+ get: function () { return chunkSU5APAM6_cjs.scoringPromptsSchema; }
68
68
  });
69
69
  Object.defineProperty(exports, "scoringSourceSchema", {
70
70
  enumerable: true,
71
- get: function () { return chunkC3XU7ZDC_cjs.scoringSourceSchema; }
71
+ get: function () { return chunkSU5APAM6_cjs.scoringSourceSchema; }
72
72
  });
73
73
  Object.defineProperty(exports, "scoringValueSchema", {
74
74
  enumerable: true,
75
- get: function () { return chunkC3XU7ZDC_cjs.scoringValueSchema; }
75
+ get: function () { return chunkSU5APAM6_cjs.scoringValueSchema; }
76
76
  });
77
77
  //# sourceMappingURL=index.cjs.map
78
78
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- export { runEvals } from '../chunk-KUTU2YZF.js';
2
- export { MastraScorer, createScorer } from '../chunk-SIZEIYNH.js';
3
- export { listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-44SUGDBR.js';
1
+ export { runEvals } from '../chunk-5Q5Y34SS.js';
2
+ export { MastraScorer, createScorer } from '../chunk-4XSAZPPS.js';
3
+ export { listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-PS5ONCXY.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map