@mastra/core 1.2.1-alpha.0 → 1.3.0-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 (403) hide show
  1. package/CHANGELOG.md +341 -0
  2. package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +2093 -262
  3. package/dist/agent/agent-legacy.d.ts.map +1 -1
  4. package/dist/agent/agent.d.ts +12 -3
  5. package/dist/agent/agent.d.ts.map +1 -1
  6. package/dist/agent/index.cjs +13 -13
  7. package/dist/agent/index.js +2 -2
  8. package/dist/agent/message-list/index.cjs +18 -18
  9. package/dist/agent/message-list/index.js +1 -1
  10. package/dist/agent/message-list/message-list.d.ts.map +1 -1
  11. package/dist/agent/types.d.ts +6 -1
  12. package/dist/agent/types.d.ts.map +1 -1
  13. package/dist/agent/workflows/prepare-stream/index.d.ts +3 -1
  14. package/dist/agent/workflows/prepare-stream/index.d.ts.map +1 -1
  15. package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
  16. package/dist/agent/workflows/prepare-stream/stream-step.d.ts +3 -1
  17. package/dist/agent/workflows/prepare-stream/stream-step.d.ts.map +1 -1
  18. package/dist/base.cjs +2 -2
  19. package/dist/base.d.ts +13 -1
  20. package/dist/base.d.ts.map +1 -1
  21. package/dist/base.js +1 -1
  22. package/dist/bundler/index.cjs +2 -2
  23. package/dist/bundler/index.js +1 -1
  24. package/dist/cache/index.cjs +3 -3
  25. package/dist/cache/index.js +1 -1
  26. package/dist/{chunk-ENCTSDWC.js → chunk-2GWTJFVM.js} +2410 -1402
  27. package/dist/chunk-2GWTJFVM.js.map +1 -0
  28. package/dist/{chunk-OB4V67IX.cjs → chunk-2K5PNW2U.cjs} +4 -4
  29. package/dist/{chunk-OB4V67IX.cjs.map → chunk-2K5PNW2U.cjs.map} +1 -1
  30. package/dist/{chunk-VZXYBFCX.cjs → chunk-2P6DD7M5.cjs} +10 -10
  31. package/dist/{chunk-VZXYBFCX.cjs.map → chunk-2P6DD7M5.cjs.map} +1 -1
  32. package/dist/{chunk-Q2D7LERO.cjs → chunk-2VD5OGOT.cjs} +4 -4
  33. package/dist/{chunk-Q2D7LERO.cjs.map → chunk-2VD5OGOT.cjs.map} +1 -1
  34. package/dist/{chunk-2DMSFLJY.cjs → chunk-6TZKQI4R.cjs} +8 -8
  35. package/dist/chunk-6TZKQI4R.cjs.map +1 -0
  36. package/dist/{chunk-4NG7CKEG.js → chunk-6VGCVSP4.js} +3 -3
  37. package/dist/{chunk-4NG7CKEG.js.map → chunk-6VGCVSP4.js.map} +1 -1
  38. package/dist/{chunk-IIZF4W7B.cjs → chunk-7UWHFWST.cjs} +52 -5
  39. package/dist/chunk-7UWHFWST.cjs.map +1 -0
  40. package/dist/{chunk-VW7YQWDW.cjs → chunk-BFIOQFGF.cjs} +28 -2
  41. package/dist/chunk-BFIOQFGF.cjs.map +1 -0
  42. package/dist/{chunk-E3VFKTIA.js → chunk-BXLLXTT4.js} +2245 -179
  43. package/dist/chunk-BXLLXTT4.js.map +1 -0
  44. package/dist/{chunk-HMCXNOF6.cjs → chunk-CGPH7CMG.cjs} +2431 -1417
  45. package/dist/chunk-CGPH7CMG.cjs.map +1 -0
  46. package/dist/{chunk-GVLPTDJA.cjs → chunk-D5JZT6EK.cjs} +236 -63
  47. package/dist/chunk-D5JZT6EK.cjs.map +1 -0
  48. package/dist/{chunk-5SOS47PH.cjs → chunk-FLHFB23E.cjs} +454 -222
  49. package/dist/chunk-FLHFB23E.cjs.map +1 -0
  50. package/dist/{chunk-XCPEEIHI.cjs → chunk-GCTAD6B7.cjs} +3012 -927
  51. package/dist/chunk-GCTAD6B7.cjs.map +1 -0
  52. package/dist/{chunk-W3AQUG66.js → chunk-GIY5BINT.js} +4 -4
  53. package/dist/{chunk-W3AQUG66.js.map → chunk-GIY5BINT.js.map} +1 -1
  54. package/dist/{chunk-M6VFJX5A.js → chunk-GMSAGYTB.js} +3 -3
  55. package/dist/{chunk-M6VFJX5A.js.map → chunk-GMSAGYTB.js.map} +1 -1
  56. package/dist/{chunk-JRJJ5VQE.cjs → chunk-GZD6443M.cjs} +99 -55
  57. package/dist/chunk-GZD6443M.cjs.map +1 -0
  58. package/dist/{chunk-Z6NRYYOH.js → chunk-ILQXPZCD.js} +9 -4
  59. package/dist/chunk-ILQXPZCD.js.map +1 -0
  60. package/dist/{chunk-5YVR7B4R.js → chunk-JQNREL64.js} +29 -9
  61. package/dist/chunk-JQNREL64.js.map +1 -0
  62. package/dist/{chunk-QOFI2WBM.cjs → chunk-JU6K7UDX.cjs} +991 -229
  63. package/dist/chunk-JU6K7UDX.cjs.map +1 -0
  64. package/dist/{chunk-HN2MSTR6.cjs → chunk-KAJNBNWP.cjs} +283 -38
  65. package/dist/chunk-KAJNBNWP.cjs.map +1 -0
  66. package/dist/{chunk-MSWXEOZC.js → chunk-KL2JPSRX.js} +5 -5
  67. package/dist/chunk-KL2JPSRX.js.map +1 -0
  68. package/dist/{chunk-MQB7XFXP.js → chunk-LHRHOPUC.js} +3 -3
  69. package/dist/{chunk-MQB7XFXP.js.map → chunk-LHRHOPUC.js.map} +1 -1
  70. package/dist/{chunk-VX7UA3SO.js → chunk-MOOJ3H3C.js} +974 -217
  71. package/dist/chunk-MOOJ3H3C.js.map +1 -0
  72. package/dist/{chunk-HU2ONA2W.cjs → chunk-ON2KVIUJ.cjs} +17 -17
  73. package/dist/{chunk-HU2ONA2W.cjs.map → chunk-ON2KVIUJ.cjs.map} +1 -1
  74. package/dist/{chunk-I66TMZJ3.cjs → chunk-OOCEAC6U.cjs} +21 -18
  75. package/dist/chunk-OOCEAC6U.cjs.map +1 -0
  76. package/dist/{chunk-MNWW2R3U.js → chunk-OV7OOUUR.js} +90 -54
  77. package/dist/chunk-OV7OOUUR.js.map +1 -0
  78. package/dist/{chunk-C4WWWQHT.cjs → chunk-RO47SMI7.cjs} +23 -3
  79. package/dist/chunk-RO47SMI7.cjs.map +1 -0
  80. package/dist/{chunk-6FG6FU5Y.cjs → chunk-RQ56ZSIR.cjs} +4 -4
  81. package/dist/{chunk-6FG6FU5Y.cjs.map → chunk-RQ56ZSIR.cjs.map} +1 -1
  82. package/dist/{chunk-IW3BNL7A.js → chunk-RS6CZXGA.js} +50 -3
  83. package/dist/chunk-RS6CZXGA.js.map +1 -0
  84. package/dist/{chunk-AIJLACR2.js → chunk-S53FKKVL.js} +27 -3
  85. package/dist/chunk-S53FKKVL.js.map +1 -0
  86. package/dist/{chunk-G6E3QNJC.js → chunk-SBPPGJL6.js} +4078 -4333
  87. package/dist/chunk-SBPPGJL6.js.map +1 -0
  88. package/dist/{chunk-UZL4H5P2.cjs → chunk-SH4PCZ3X.cjs} +5375 -5648
  89. package/dist/chunk-SH4PCZ3X.cjs.map +1 -0
  90. package/dist/{chunk-ZWM2CAIM.js → chunk-STKNQDVA.js} +4 -4
  91. package/dist/{chunk-ZWM2CAIM.js.map → chunk-STKNQDVA.js.map} +1 -1
  92. package/dist/{chunk-A5QFWX67.cjs → chunk-U2CABSMC.cjs} +79 -59
  93. package/dist/chunk-U2CABSMC.cjs.map +1 -0
  94. package/dist/{chunk-7MDVYPWX.cjs → chunk-UE2G2LRP.cjs} +9 -4
  95. package/dist/chunk-UE2G2LRP.cjs.map +1 -0
  96. package/dist/{chunk-AUF6U2BL.js → chunk-VM25PDSW.js} +5 -5
  97. package/dist/{chunk-AUF6U2BL.js.map → chunk-VM25PDSW.js.map} +1 -1
  98. package/dist/{chunk-RXD5EGQF.js → chunk-VVD56FI4.js} +228 -55
  99. package/dist/chunk-VVD56FI4.js.map +1 -0
  100. package/dist/{chunk-JIT2OY3X.js → chunk-WCAFTXGK.js} +23 -3
  101. package/dist/chunk-WCAFTXGK.js.map +1 -0
  102. package/dist/{chunk-P62OJXQ4.js → chunk-WL3AW3YA.js} +282 -37
  103. package/dist/chunk-WL3AW3YA.js.map +1 -0
  104. package/dist/{chunk-YLODOPYM.cjs → chunk-XDD5V446.cjs} +4163 -5352
  105. package/dist/chunk-XDD5V446.cjs.map +1 -0
  106. package/dist/{chunk-B4M33FCS.cjs → chunk-XQVYEOI7.cjs} +7 -7
  107. package/dist/{chunk-B4M33FCS.cjs.map → chunk-XQVYEOI7.cjs.map} +1 -1
  108. package/dist/{chunk-BP2TSCBW.js → chunk-ZATLLPIH.js} +4391 -5561
  109. package/dist/chunk-ZATLLPIH.js.map +1 -0
  110. package/dist/{chunk-T6PRRKMW.js → chunk-ZHFM7HCQ.js} +9 -6
  111. package/dist/chunk-ZHFM7HCQ.js.map +1 -0
  112. package/dist/{chunk-WFUNLRQX.js → chunk-ZRUTE56J.js} +366 -134
  113. package/dist/chunk-ZRUTE56J.js.map +1 -0
  114. package/dist/deployer/index.cjs +2 -2
  115. package/dist/deployer/index.js +1 -1
  116. package/dist/docs/SKILL.md +2 -9
  117. package/dist/docs/assets/SOURCE_MAP.json +399 -342
  118. package/dist/docs/references/docs-agents-agent-memory.md +45 -1
  119. package/dist/docs/references/docs-agents-network-approval.md +1 -1
  120. package/dist/docs/references/docs-agents-networks.md +3 -3
  121. package/dist/docs/references/docs-agents-overview.md +8 -0
  122. package/dist/docs/references/docs-agents-using-tools.md +82 -72
  123. package/dist/docs/references/docs-memory-observational-memory.md +11 -8
  124. package/dist/docs/references/docs-observability-overview.md +1 -1
  125. package/dist/docs/references/docs-observability-tracing-exporters-langsmith.md +70 -0
  126. package/dist/docs/references/docs-observability-tracing-overview.md +1 -1
  127. package/dist/docs/references/docs-server-middleware.md +0 -2
  128. package/dist/docs/references/docs-server-request-context.md +17 -0
  129. package/dist/docs/references/docs-workflows-agents-and-tools.md +2 -2
  130. package/dist/docs/references/docs-workflows-overview.md +1 -1
  131. package/dist/docs/references/docs-workspace-filesystem.md +2 -0
  132. package/dist/docs/references/docs-workspace-overview.md +3 -1
  133. package/dist/docs/references/docs-workspace-sandbox.md +2 -0
  134. package/dist/docs/references/docs-workspace-search.md +2 -0
  135. package/dist/docs/references/docs-workspace-skills.md +3 -1
  136. package/dist/docs/references/reference-agents-getTools.md +1 -6
  137. package/dist/docs/references/reference-agents-listAgents.md +1 -1
  138. package/dist/docs/references/reference-agents-network.md +0 -2
  139. package/dist/docs/references/reference-cli-mastra.md +29 -4
  140. package/dist/docs/references/reference-client-js-agents.md +1 -1
  141. package/dist/docs/references/reference-configuration.md +1 -1
  142. package/dist/docs/references/reference-core-getStoredAgentById.md +2 -2
  143. package/dist/docs/references/reference-core-listStoredAgents.md +1 -1
  144. package/dist/docs/references/reference-memory-observational-memory.md +2 -0
  145. package/dist/docs/references/reference-tools-mcp-client.md +0 -2
  146. package/dist/docs/references/reference-workflows-step.md +2 -0
  147. package/dist/docs/references/reference-workflows-workflow-methods-map.md +2 -2
  148. package/dist/docs/references/reference-workspace-filesystem.md +2 -0
  149. package/dist/docs/references/reference-workspace-local-filesystem.md +2 -0
  150. package/dist/docs/references/reference-workspace-local-sandbox.md +2 -0
  151. package/dist/docs/references/reference-workspace-sandbox.md +2 -0
  152. package/dist/docs/references/reference-workspace-workspace-class.md +2 -0
  153. package/dist/docs/references/reference.md +7 -2
  154. package/dist/editor/index.d.ts +1 -1
  155. package/dist/editor/index.d.ts.map +1 -1
  156. package/dist/editor/types.d.ts +53 -48
  157. package/dist/editor/types.d.ts.map +1 -1
  158. package/dist/evals/base.d.ts +15 -0
  159. package/dist/evals/base.d.ts.map +1 -1
  160. package/dist/evals/index.cjs +20 -20
  161. package/dist/evals/index.js +3 -3
  162. package/dist/evals/run/index.d.ts +3 -3
  163. package/dist/evals/run/index.d.ts.map +1 -1
  164. package/dist/evals/scoreTraces/index.cjs +5 -5
  165. package/dist/evals/scoreTraces/index.js +2 -2
  166. package/dist/features/index.cjs +1 -1
  167. package/dist/features/index.cjs.map +1 -1
  168. package/dist/features/index.d.ts.map +1 -1
  169. package/dist/features/index.js +1 -1
  170. package/dist/features/index.js.map +1 -1
  171. package/dist/index.cjs +4 -4
  172. package/dist/index.d.ts +3 -3
  173. package/dist/index.d.ts.map +1 -1
  174. package/dist/index.js +2 -2
  175. package/dist/integration/index.cjs +2 -2
  176. package/dist/integration/index.js +1 -1
  177. package/dist/llm/index.cjs +16 -16
  178. package/dist/llm/index.js +5 -5
  179. package/dist/llm/model/gateways/constants.d.ts.map +1 -1
  180. package/dist/llm/model/gateways/models-dev.d.ts.map +1 -1
  181. package/dist/llm/model/model.loop.d.ts +1 -1
  182. package/dist/llm/model/model.loop.d.ts.map +1 -1
  183. package/dist/llm/model/provider-types.generated.d.ts +128 -10
  184. package/dist/llm/model/resolve-model.d.ts.map +1 -1
  185. package/dist/loop/index.cjs +12 -12
  186. package/dist/loop/index.js +1 -1
  187. package/dist/loop/network/index.d.ts +3 -3
  188. package/dist/loop/network/index.d.ts.map +1 -1
  189. package/dist/loop/network/run-command-tool.d.ts +1 -1
  190. package/dist/loop/types.d.ts +13 -0
  191. package/dist/loop/types.d.ts.map +1 -1
  192. package/dist/loop/workflows/agentic-execution/index.d.ts +9 -9
  193. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +7 -7
  194. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
  195. package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +3 -3
  196. package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
  197. package/dist/loop/workflows/agentic-loop/index.d.ts +9 -9
  198. package/dist/loop/workflows/schema.d.ts +12 -12
  199. package/dist/mastra/index.cjs +2 -2
  200. package/dist/mastra/index.d.ts +91 -5
  201. package/dist/mastra/index.d.ts.map +1 -1
  202. package/dist/mastra/index.js +1 -1
  203. package/dist/mcp/index.cjs +2 -2
  204. package/dist/mcp/index.js +1 -1
  205. package/dist/memory/index.cjs +14 -14
  206. package/dist/memory/index.js +1 -1
  207. package/dist/memory/mock.d.ts.map +1 -1
  208. package/dist/memory/types.d.ts +128 -0
  209. package/dist/memory/types.d.ts.map +1 -1
  210. package/dist/models-dev-FQVUTQ7L.js +3 -0
  211. package/dist/{models-dev-Z45JSLWD.js.map → models-dev-FQVUTQ7L.js.map} +1 -1
  212. package/dist/models-dev-PPIXUUCU.cjs +12 -0
  213. package/dist/{models-dev-OQKVMEIT.cjs.map → models-dev-PPIXUUCU.cjs.map} +1 -1
  214. package/dist/netlify-4RIKF7Y3.js +3 -0
  215. package/dist/{netlify-SSWMYSAX.js.map → netlify-4RIKF7Y3.js.map} +1 -1
  216. package/dist/netlify-V5F7JEJH.cjs +12 -0
  217. package/dist/{netlify-TXZZCT6N.cjs.map → netlify-V5F7JEJH.cjs.map} +1 -1
  218. package/dist/processors/index.cjs +41 -41
  219. package/dist/processors/index.js +1 -1
  220. package/dist/processors/step-schema.d.ts +44 -44
  221. package/dist/provider-registry-C6XCYX44.cjs +40 -0
  222. package/dist/{provider-registry-NR7FXV2Q.cjs.map → provider-registry-C6XCYX44.cjs.map} +1 -1
  223. package/dist/provider-registry-NWU4YFQW.js +3 -0
  224. package/dist/{provider-registry-RPOTQNHI.js.map → provider-registry-NWU4YFQW.js.map} +1 -1
  225. package/dist/provider-registry.json +278 -33
  226. package/dist/relevance/index.cjs +3 -3
  227. package/dist/relevance/index.js +1 -1
  228. package/dist/server/index.cjs +3 -3
  229. package/dist/server/index.js +1 -1
  230. package/dist/storage/base.d.ts +3 -1
  231. package/dist/storage/base.d.ts.map +1 -1
  232. package/dist/storage/constants.cjs +51 -19
  233. package/dist/storage/constants.d.ts +10 -2
  234. package/dist/storage/constants.d.ts.map +1 -1
  235. package/dist/storage/constants.js +1 -1
  236. package/dist/storage/domains/agents/base.d.ts +13 -164
  237. package/dist/storage/domains/agents/base.d.ts.map +1 -1
  238. package/dist/storage/domains/agents/index.d.ts +0 -1
  239. package/dist/storage/domains/agents/index.d.ts.map +1 -1
  240. package/dist/storage/domains/agents/inmemory.d.ts +6 -10
  241. package/dist/storage/domains/agents/inmemory.d.ts.map +1 -1
  242. package/dist/storage/domains/index.d.ts +3 -0
  243. package/dist/storage/domains/index.d.ts.map +1 -1
  244. package/dist/storage/domains/inmemory-db.d.ts +7 -1
  245. package/dist/storage/domains/inmemory-db.d.ts.map +1 -1
  246. package/dist/storage/domains/memory/base.d.ts +45 -5
  247. package/dist/storage/domains/memory/base.d.ts.map +1 -1
  248. package/dist/storage/domains/memory/inmemory.d.ts +7 -7
  249. package/dist/storage/domains/memory/inmemory.d.ts.map +1 -1
  250. package/dist/storage/domains/observability/types.d.ts +62 -62
  251. package/dist/storage/domains/operations/inmemory.d.ts.map +1 -1
  252. package/dist/storage/domains/prompt-blocks/base.d.ts +47 -0
  253. package/dist/storage/domains/prompt-blocks/base.d.ts.map +1 -0
  254. package/dist/storage/domains/prompt-blocks/index.d.ts +3 -0
  255. package/dist/storage/domains/prompt-blocks/index.d.ts.map +1 -0
  256. package/dist/storage/domains/prompt-blocks/inmemory.d.ts +31 -0
  257. package/dist/storage/domains/prompt-blocks/inmemory.d.ts.map +1 -0
  258. package/dist/storage/domains/scorer-definitions/base.d.ts +47 -0
  259. package/dist/storage/domains/scorer-definitions/base.d.ts.map +1 -0
  260. package/dist/storage/domains/scorer-definitions/index.d.ts +3 -0
  261. package/dist/storage/domains/scorer-definitions/index.d.ts.map +1 -0
  262. package/dist/storage/domains/scorer-definitions/inmemory.d.ts +31 -0
  263. package/dist/storage/domains/scorer-definitions/inmemory.d.ts.map +1 -0
  264. package/dist/storage/domains/versioned.d.ts +136 -0
  265. package/dist/storage/domains/versioned.d.ts.map +1 -0
  266. package/dist/storage/index.cjs +156 -104
  267. package/dist/storage/index.js +2 -2
  268. package/dist/storage/mock.d.ts.map +1 -1
  269. package/dist/storage/types.d.ts +481 -27
  270. package/dist/storage/types.d.ts.map +1 -1
  271. package/dist/stream/MastraAgentNetworkStream.d.ts +1 -1
  272. package/dist/stream/MastraWorkflowStream.d.ts +1 -1
  273. package/dist/stream/RunOutput.d.ts +1 -1
  274. package/dist/stream/RunOutput.d.ts.map +1 -1
  275. package/dist/stream/base/output.d.ts +4 -0
  276. package/dist/stream/base/output.d.ts.map +1 -1
  277. package/dist/stream/index.cjs +11 -11
  278. package/dist/stream/index.js +2 -2
  279. package/dist/test-utils/llm-mock.cjs +4 -4
  280. package/dist/test-utils/llm-mock.js +1 -1
  281. package/dist/tool-loop-agent/index.cjs +4 -4
  282. package/dist/tool-loop-agent/index.js +1 -1
  283. package/dist/tools/index.cjs +4 -4
  284. package/dist/tools/index.js +1 -1
  285. package/dist/tools/is-vercel-tool.cjs +2 -2
  286. package/dist/tools/is-vercel-tool.js +1 -1
  287. package/dist/tools/tool-builder/builder.d.ts.map +1 -1
  288. package/dist/tools/types.d.ts +15 -0
  289. package/dist/tools/types.d.ts.map +1 -1
  290. package/dist/tools/validation.d.ts.map +1 -1
  291. package/dist/tts/index.cjs +2 -2
  292. package/dist/tts/index.js +1 -1
  293. package/dist/types/zod-compat.d.ts +2 -2
  294. package/dist/types/zod-compat.d.ts.map +1 -1
  295. package/dist/utils/zod-utils.d.ts +19 -0
  296. package/dist/utils/zod-utils.d.ts.map +1 -1
  297. package/dist/utils.cjs +28 -28
  298. package/dist/utils.d.ts +7 -1
  299. package/dist/utils.d.ts.map +1 -1
  300. package/dist/utils.js +2 -2
  301. package/dist/vector/index.cjs +9 -9
  302. package/dist/vector/index.js +2 -2
  303. package/dist/voice/index.cjs +6 -6
  304. package/dist/voice/index.js +1 -1
  305. package/dist/workflows/evented/index.cjs +10 -10
  306. package/dist/workflows/evented/index.js +1 -1
  307. package/dist/workflows/evented/step-executor.d.ts.map +1 -1
  308. package/dist/workflows/evented/workflow.d.ts +3 -1
  309. package/dist/workflows/evented/workflow.d.ts.map +1 -1
  310. package/dist/workflows/execution-engine.d.ts.map +1 -1
  311. package/dist/workflows/index.cjs +25 -25
  312. package/dist/workflows/index.js +1 -1
  313. package/dist/workflows/step.d.ts +4 -3
  314. package/dist/workflows/step.d.ts.map +1 -1
  315. package/dist/workflows/types.d.ts +2 -1
  316. package/dist/workflows/types.d.ts.map +1 -1
  317. package/dist/workflows/workflow.d.ts +12 -4
  318. package/dist/workflows/workflow.d.ts.map +1 -1
  319. package/dist/workspace/errors.d.ts +6 -0
  320. package/dist/workspace/errors.d.ts.map +1 -1
  321. package/dist/workspace/filesystem/composite-filesystem.d.ts +93 -0
  322. package/dist/workspace/filesystem/composite-filesystem.d.ts.map +1 -0
  323. package/dist/workspace/filesystem/filesystem.d.ts +35 -0
  324. package/dist/workspace/filesystem/filesystem.d.ts.map +1 -1
  325. package/dist/workspace/filesystem/index.d.ts +2 -0
  326. package/dist/workspace/filesystem/index.d.ts.map +1 -1
  327. package/dist/workspace/filesystem/local-filesystem.d.ts +9 -1
  328. package/dist/workspace/filesystem/local-filesystem.d.ts.map +1 -1
  329. package/dist/workspace/filesystem/mastra-filesystem.d.ts +92 -3
  330. package/dist/workspace/filesystem/mastra-filesystem.d.ts.map +1 -1
  331. package/dist/workspace/filesystem/mount.d.ts +34 -0
  332. package/dist/workspace/filesystem/mount.d.ts.map +1 -0
  333. package/dist/workspace/index.cjs +62 -34
  334. package/dist/workspace/index.d.ts +6 -2
  335. package/dist/workspace/index.d.ts.map +1 -1
  336. package/dist/workspace/index.js +1 -1
  337. package/dist/workspace/lifecycle.d.ts +29 -0
  338. package/dist/workspace/lifecycle.d.ts.map +1 -1
  339. package/dist/workspace/sandbox/errors.d.ts +50 -0
  340. package/dist/workspace/sandbox/errors.d.ts.map +1 -0
  341. package/dist/workspace/sandbox/index.d.ts +3 -0
  342. package/dist/workspace/sandbox/index.d.ts.map +1 -1
  343. package/dist/workspace/sandbox/local-sandbox.d.ts +17 -2
  344. package/dist/workspace/sandbox/local-sandbox.d.ts.map +1 -1
  345. package/dist/workspace/sandbox/mastra-sandbox.d.ts +153 -6
  346. package/dist/workspace/sandbox/mastra-sandbox.d.ts.map +1 -1
  347. package/dist/workspace/sandbox/mount-manager.d.ts +195 -0
  348. package/dist/workspace/sandbox/mount-manager.d.ts.map +1 -0
  349. package/dist/workspace/sandbox/sandbox.d.ts +37 -84
  350. package/dist/workspace/sandbox/sandbox.d.ts.map +1 -1
  351. package/dist/workspace/sandbox/types.d.ts +92 -0
  352. package/dist/workspace/sandbox/types.d.ts.map +1 -0
  353. package/dist/workspace/tools/tools.d.ts.map +1 -1
  354. package/dist/workspace/tools/tree-formatter.d.ts.map +1 -1
  355. package/dist/workspace/workspace.d.ts +73 -3
  356. package/dist/workspace/workspace.d.ts.map +1 -1
  357. package/package.json +16 -16
  358. package/src/llm/model/provider-types.generated.d.ts +128 -10
  359. package/dist/chunk-2DMSFLJY.cjs.map +0 -1
  360. package/dist/chunk-5SOS47PH.cjs.map +0 -1
  361. package/dist/chunk-5YVR7B4R.js.map +0 -1
  362. package/dist/chunk-7MDVYPWX.cjs.map +0 -1
  363. package/dist/chunk-A5QFWX67.cjs.map +0 -1
  364. package/dist/chunk-AIJLACR2.js.map +0 -1
  365. package/dist/chunk-BP2TSCBW.js.map +0 -1
  366. package/dist/chunk-C4WWWQHT.cjs.map +0 -1
  367. package/dist/chunk-E3VFKTIA.js.map +0 -1
  368. package/dist/chunk-ENCTSDWC.js.map +0 -1
  369. package/dist/chunk-G6E3QNJC.js.map +0 -1
  370. package/dist/chunk-GVLPTDJA.cjs.map +0 -1
  371. package/dist/chunk-HMCXNOF6.cjs.map +0 -1
  372. package/dist/chunk-HN2MSTR6.cjs.map +0 -1
  373. package/dist/chunk-I66TMZJ3.cjs.map +0 -1
  374. package/dist/chunk-IIZF4W7B.cjs.map +0 -1
  375. package/dist/chunk-IW3BNL7A.js.map +0 -1
  376. package/dist/chunk-JIT2OY3X.js.map +0 -1
  377. package/dist/chunk-JRJJ5VQE.cjs.map +0 -1
  378. package/dist/chunk-MNWW2R3U.js.map +0 -1
  379. package/dist/chunk-MSWXEOZC.js.map +0 -1
  380. package/dist/chunk-P62OJXQ4.js.map +0 -1
  381. package/dist/chunk-QOFI2WBM.cjs.map +0 -1
  382. package/dist/chunk-RXD5EGQF.js.map +0 -1
  383. package/dist/chunk-T6PRRKMW.js.map +0 -1
  384. package/dist/chunk-UZL4H5P2.cjs.map +0 -1
  385. package/dist/chunk-VW7YQWDW.cjs.map +0 -1
  386. package/dist/chunk-VX7UA3SO.js.map +0 -1
  387. package/dist/chunk-WFUNLRQX.js.map +0 -1
  388. package/dist/chunk-XCPEEIHI.cjs.map +0 -1
  389. package/dist/chunk-YLODOPYM.cjs.map +0 -1
  390. package/dist/chunk-Z6NRYYOH.js.map +0 -1
  391. package/dist/docs/references/docs-tools-mcp-advanced-usage.md +0 -143
  392. package/dist/docs/references/docs-tools-mcp-mcp-overview.md +0 -383
  393. package/dist/docs/references/docs-tools-mcp-overview.md +0 -78
  394. package/dist/docs/references/docs-workflows-input-data-mapping.md +0 -102
  395. package/dist/docs/references/reference-deployer-netlify.md +0 -14
  396. package/dist/docs/references/reference-deployer-vercel.md +0 -39
  397. package/dist/docs/references/reference-tools-client.md +0 -228
  398. package/dist/models-dev-OQKVMEIT.cjs +0 -12
  399. package/dist/models-dev-Z45JSLWD.js +0 -3
  400. package/dist/netlify-SSWMYSAX.js +0 -3
  401. package/dist/netlify-TXZZCT6N.cjs +0 -12
  402. package/dist/provider-registry-NR7FXV2Q.cjs +0 -40
  403. package/dist/provider-registry-RPOTQNHI.js +0 -3
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk5SOS47PH_cjs = require('../chunk-5SOS47PH.cjs');
3
+ var chunkFLHFB23E_cjs = require('../chunk-FLHFB23E.cjs');
4
4
 
5
5
  // src/relevance/relevance-score-provider.ts
6
6
  function createSimilarityPrompt(query, text) {
@@ -17,7 +17,7 @@ Relevance score (0-1):`;
17
17
  var MastraAgentRelevanceScorer = class {
18
18
  agent;
19
19
  constructor(name, model) {
20
- this.agent = new chunk5SOS47PH_cjs.Agent({
20
+ this.agent = new chunkFLHFB23E_cjs.Agent({
21
21
  id: `relevance-scorer-${name}`,
22
22
  name: `Relevance Scorer ${name}`,
23
23
  instructions: `You are a specialized agent for evaluating the relevance of text to queries.
@@ -37,7 +37,7 @@ Always return just the number, no explanation.`,
37
37
  const prompt = createSimilarityPrompt(query, text);
38
38
  const model = await this.agent.getModel();
39
39
  let response;
40
- if (chunk5SOS47PH_cjs.isSupportedLanguageModel(model)) {
40
+ if (chunkFLHFB23E_cjs.isSupportedLanguageModel(model)) {
41
41
  const responseText = await this.agent.generate(prompt);
42
42
  response = responseText.text;
43
43
  } else {
@@ -1,4 +1,4 @@
1
- import { Agent, isSupportedLanguageModel } from '../chunk-WFUNLRQX.js';
1
+ import { Agent, isSupportedLanguageModel } from '../chunk-ZRUTE56J.js';
2
2
 
3
3
  // src/relevance/relevance-score-provider.ts
4
4
  function createSimilarityPrompt(query, text) {
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk4U7ZLI36_cjs = require('../chunk-4U7ZLI36.cjs');
4
- var chunkC4WWWQHT_cjs = require('../chunk-C4WWWQHT.cjs');
4
+ var chunkRO47SMI7_cjs = require('../chunk-RO47SMI7.cjs');
5
5
  var chunk7XAECHYL_cjs = require('../chunk-7XAECHYL.cjs');
6
6
 
7
7
  // src/server/auth.ts
8
- var MastraAuthProvider = class extends chunkC4WWWQHT_cjs.MastraBase {
8
+ var MastraAuthProvider = class extends chunkRO47SMI7_cjs.MastraBase {
9
9
  protected;
10
10
  public;
11
11
  constructor(options) {
@@ -60,7 +60,7 @@ var CompositeAuth = class extends MastraAuthProvider {
60
60
  };
61
61
 
62
62
  // src/server/base.ts
63
- var MastraServerBase = class extends chunkC4WWWQHT_cjs.MastraBase {
63
+ var MastraServerBase = class extends chunkRO47SMI7_cjs.MastraBase {
64
64
  #app;
65
65
  constructor({ app, name }) {
66
66
  super({ component: chunk7XAECHYL_cjs.RegisteredLogger.SERVER, name: name ?? "Server" });
@@ -1,5 +1,5 @@
1
1
  import { MastraError } from '../chunk-FJEVLHJT.js';
2
- import { MastraBase } from '../chunk-JIT2OY3X.js';
2
+ import { MastraBase } from '../chunk-WCAFTXGK.js';
3
3
  import { RegisteredLogger } from '../chunk-X2WMFSPB.js';
4
4
 
5
5
  // src/server/auth.ts
@@ -1,11 +1,13 @@
1
1
  import { MastraBase } from '../base.js';
2
- import type { AgentsStorage, ScoresStorage, WorkflowsStorage, MemoryStorage, ObservabilityStorage } from './domains/index.js';
2
+ import type { AgentsStorage, PromptBlocksStorage, ScorerDefinitionsStorage, ScoresStorage, WorkflowsStorage, MemoryStorage, ObservabilityStorage } from './domains/index.js';
3
3
  export type StorageDomains = {
4
4
  workflows: WorkflowsStorage;
5
5
  scores: ScoresStorage;
6
6
  memory: MemoryStorage;
7
7
  observability?: ObservabilityStorage;
8
8
  agents?: AgentsStorage;
9
+ promptBlocks?: PromptBlocksStorage;
10
+ scorerDefinitions?: ScorerDefinitionsStorage;
9
11
  };
10
12
  /**
11
13
  * Normalizes perPage input for pagination queries.
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/storage/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAErH,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAYvG;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,EACxC,iBAAiB,EAAE,MAAM,GACxB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAA;CAA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AAC,cAAc,EAAE,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAQ;IACzD,SAAS,CAAC,eAAe,UAAQ;IAEjC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAS;gBAEjB,MAAM,EAAE,0BAA0B;IA6C9C;;;;;;;;;;;;;OAaG;IACG,QAAQ,CAAC,CAAC,SAAS,MAAM,cAAc,EAAE,SAAS,EAAE,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IAIpG;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAyC5B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,0BAA0B;CAAG;AAE1E;;GAEG;AACH,qBAAa,aAAc,SAAQ,oBAAoB;CAAG"}
@@ -1,80 +1,112 @@
1
1
  'use strict';
2
2
 
3
- var chunkJRJJ5VQE_cjs = require('../chunk-JRJJ5VQE.cjs');
3
+ var chunkGZD6443M_cjs = require('../chunk-GZD6443M.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "AGENTS_SCHEMA", {
8
8
  enumerable: true,
9
- get: function () { return chunkJRJJ5VQE_cjs.AGENTS_SCHEMA; }
9
+ get: function () { return chunkGZD6443M_cjs.AGENTS_SCHEMA; }
10
10
  });
11
11
  Object.defineProperty(exports, "AGENT_VERSIONS_SCHEMA", {
12
12
  enumerable: true,
13
- get: function () { return chunkJRJJ5VQE_cjs.AGENT_VERSIONS_SCHEMA; }
13
+ get: function () { return chunkGZD6443M_cjs.AGENT_VERSIONS_SCHEMA; }
14
14
  });
15
15
  Object.defineProperty(exports, "OBSERVATIONAL_MEMORY_SCHEMA", {
16
16
  enumerable: true,
17
- get: function () { return chunkJRJJ5VQE_cjs.OBSERVATIONAL_MEMORY_SCHEMA; }
17
+ get: function () { return chunkGZD6443M_cjs.OBSERVATIONAL_MEMORY_SCHEMA; }
18
18
  });
19
19
  Object.defineProperty(exports, "OBSERVATIONAL_MEMORY_TABLE_SCHEMA", {
20
20
  enumerable: true,
21
- get: function () { return chunkJRJJ5VQE_cjs.OBSERVATIONAL_MEMORY_TABLE_SCHEMA; }
21
+ get: function () { return chunkGZD6443M_cjs.OBSERVATIONAL_MEMORY_TABLE_SCHEMA; }
22
22
  });
23
23
  Object.defineProperty(exports, "OLD_SPAN_SCHEMA", {
24
24
  enumerable: true,
25
- get: function () { return chunkJRJJ5VQE_cjs.OLD_SPAN_SCHEMA; }
25
+ get: function () { return chunkGZD6443M_cjs.OLD_SPAN_SCHEMA; }
26
+ });
27
+ Object.defineProperty(exports, "PROMPT_BLOCKS_SCHEMA", {
28
+ enumerable: true,
29
+ get: function () { return chunkGZD6443M_cjs.PROMPT_BLOCKS_SCHEMA; }
30
+ });
31
+ Object.defineProperty(exports, "PROMPT_BLOCK_VERSIONS_SCHEMA", {
32
+ enumerable: true,
33
+ get: function () { return chunkGZD6443M_cjs.PROMPT_BLOCK_VERSIONS_SCHEMA; }
26
34
  });
27
35
  Object.defineProperty(exports, "SCORERS_SCHEMA", {
28
36
  enumerable: true,
29
- get: function () { return chunkJRJJ5VQE_cjs.SCORERS_SCHEMA; }
37
+ get: function () { return chunkGZD6443M_cjs.SCORERS_SCHEMA; }
38
+ });
39
+ Object.defineProperty(exports, "SCORER_DEFINITIONS_SCHEMA", {
40
+ enumerable: true,
41
+ get: function () { return chunkGZD6443M_cjs.SCORER_DEFINITIONS_SCHEMA; }
42
+ });
43
+ Object.defineProperty(exports, "SCORER_DEFINITION_VERSIONS_SCHEMA", {
44
+ enumerable: true,
45
+ get: function () { return chunkGZD6443M_cjs.SCORER_DEFINITION_VERSIONS_SCHEMA; }
30
46
  });
31
47
  Object.defineProperty(exports, "SPAN_SCHEMA", {
32
48
  enumerable: true,
33
- get: function () { return chunkJRJJ5VQE_cjs.SPAN_SCHEMA; }
49
+ get: function () { return chunkGZD6443M_cjs.SPAN_SCHEMA; }
34
50
  });
35
51
  Object.defineProperty(exports, "TABLE_AGENTS", {
36
52
  enumerable: true,
37
- get: function () { return chunkJRJJ5VQE_cjs.TABLE_AGENTS; }
53
+ get: function () { return chunkGZD6443M_cjs.TABLE_AGENTS; }
38
54
  });
39
55
  Object.defineProperty(exports, "TABLE_AGENT_VERSIONS", {
40
56
  enumerable: true,
41
- get: function () { return chunkJRJJ5VQE_cjs.TABLE_AGENT_VERSIONS; }
57
+ get: function () { return chunkGZD6443M_cjs.TABLE_AGENT_VERSIONS; }
42
58
  });
43
59
  Object.defineProperty(exports, "TABLE_MESSAGES", {
44
60
  enumerable: true,
45
- get: function () { return chunkJRJJ5VQE_cjs.TABLE_MESSAGES; }
61
+ get: function () { return chunkGZD6443M_cjs.TABLE_MESSAGES; }
46
62
  });
47
63
  Object.defineProperty(exports, "TABLE_OBSERVATIONAL_MEMORY", {
48
64
  enumerable: true,
49
- get: function () { return chunkJRJJ5VQE_cjs.TABLE_OBSERVATIONAL_MEMORY; }
65
+ get: function () { return chunkGZD6443M_cjs.TABLE_OBSERVATIONAL_MEMORY; }
66
+ });
67
+ Object.defineProperty(exports, "TABLE_PROMPT_BLOCKS", {
68
+ enumerable: true,
69
+ get: function () { return chunkGZD6443M_cjs.TABLE_PROMPT_BLOCKS; }
70
+ });
71
+ Object.defineProperty(exports, "TABLE_PROMPT_BLOCK_VERSIONS", {
72
+ enumerable: true,
73
+ get: function () { return chunkGZD6443M_cjs.TABLE_PROMPT_BLOCK_VERSIONS; }
50
74
  });
51
75
  Object.defineProperty(exports, "TABLE_RESOURCES", {
52
76
  enumerable: true,
53
- get: function () { return chunkJRJJ5VQE_cjs.TABLE_RESOURCES; }
77
+ get: function () { return chunkGZD6443M_cjs.TABLE_RESOURCES; }
54
78
  });
55
79
  Object.defineProperty(exports, "TABLE_SCHEMAS", {
56
80
  enumerable: true,
57
- get: function () { return chunkJRJJ5VQE_cjs.TABLE_SCHEMAS; }
81
+ get: function () { return chunkGZD6443M_cjs.TABLE_SCHEMAS; }
58
82
  });
59
83
  Object.defineProperty(exports, "TABLE_SCORERS", {
60
84
  enumerable: true,
61
- get: function () { return chunkJRJJ5VQE_cjs.TABLE_SCORERS; }
85
+ get: function () { return chunkGZD6443M_cjs.TABLE_SCORERS; }
86
+ });
87
+ Object.defineProperty(exports, "TABLE_SCORER_DEFINITIONS", {
88
+ enumerable: true,
89
+ get: function () { return chunkGZD6443M_cjs.TABLE_SCORER_DEFINITIONS; }
90
+ });
91
+ Object.defineProperty(exports, "TABLE_SCORER_DEFINITION_VERSIONS", {
92
+ enumerable: true,
93
+ get: function () { return chunkGZD6443M_cjs.TABLE_SCORER_DEFINITION_VERSIONS; }
62
94
  });
63
95
  Object.defineProperty(exports, "TABLE_SPANS", {
64
96
  enumerable: true,
65
- get: function () { return chunkJRJJ5VQE_cjs.TABLE_SPANS; }
97
+ get: function () { return chunkGZD6443M_cjs.TABLE_SPANS; }
66
98
  });
67
99
  Object.defineProperty(exports, "TABLE_THREADS", {
68
100
  enumerable: true,
69
- get: function () { return chunkJRJJ5VQE_cjs.TABLE_THREADS; }
101
+ get: function () { return chunkGZD6443M_cjs.TABLE_THREADS; }
70
102
  });
71
103
  Object.defineProperty(exports, "TABLE_TRACES", {
72
104
  enumerable: true,
73
- get: function () { return chunkJRJJ5VQE_cjs.TABLE_TRACES; }
105
+ get: function () { return chunkGZD6443M_cjs.TABLE_TRACES; }
74
106
  });
75
107
  Object.defineProperty(exports, "TABLE_WORKFLOW_SNAPSHOT", {
76
108
  enumerable: true,
77
- get: function () { return chunkJRJJ5VQE_cjs.TABLE_WORKFLOW_SNAPSHOT; }
109
+ get: function () { return chunkGZD6443M_cjs.TABLE_WORKFLOW_SNAPSHOT; }
78
110
  });
79
111
  //# sourceMappingURL=constants.cjs.map
80
112
  //# sourceMappingURL=constants.cjs.map
@@ -9,9 +9,13 @@ export declare const TABLE_SPANS = "mastra_ai_spans";
9
9
  export declare const TABLE_AGENTS = "mastra_agents";
10
10
  export declare const TABLE_AGENT_VERSIONS = "mastra_agent_versions";
11
11
  export declare const TABLE_OBSERVATIONAL_MEMORY = "mastra_observational_memory";
12
- export type TABLE_NAMES = typeof TABLE_WORKFLOW_SNAPSHOT | typeof TABLE_MESSAGES | typeof TABLE_THREADS | typeof TABLE_TRACES | typeof TABLE_RESOURCES | typeof TABLE_SCORERS | typeof TABLE_SPANS | typeof TABLE_AGENTS | typeof TABLE_AGENT_VERSIONS;
12
+ export declare const TABLE_PROMPT_BLOCKS = "mastra_prompt_blocks";
13
+ export declare const TABLE_PROMPT_BLOCK_VERSIONS = "mastra_prompt_block_versions";
14
+ export declare const TABLE_SCORER_DEFINITIONS = "mastra_scorer_definitions";
15
+ export declare const TABLE_SCORER_DEFINITION_VERSIONS = "mastra_scorer_definition_versions";
16
+ export type TABLE_NAMES = typeof TABLE_WORKFLOW_SNAPSHOT | typeof TABLE_MESSAGES | typeof TABLE_THREADS | typeof TABLE_TRACES | typeof TABLE_RESOURCES | typeof TABLE_SCORERS | typeof TABLE_SPANS | typeof TABLE_AGENTS | typeof TABLE_AGENT_VERSIONS | typeof TABLE_PROMPT_BLOCKS | typeof TABLE_PROMPT_BLOCK_VERSIONS | typeof TABLE_SCORER_DEFINITIONS | typeof TABLE_SCORER_DEFINITION_VERSIONS;
13
17
  export declare const SCORERS_SCHEMA: Record<string, StorageColumn>;
14
- export declare const SPAN_SCHEMA: Record<"error" | "runId" | "input" | "threadId" | "resourceId" | "metadata" | "source" | "output" | "createdAt" | "name" | "updatedAt" | "entityType" | "traceId" | "spanId" | "entityId" | "scope" | "links" | "endedAt" | "startedAt" | "spanType" | "isEvent" | "parentSpanId" | "attributes" | "entityName" | "userId" | "organizationId" | "sessionId" | "requestId" | "environment" | "serviceName" | "tags", StorageColumn>;
18
+ export declare const SPAN_SCHEMA: Record<"error" | "runId" | "input" | "threadId" | "resourceId" | "metadata" | "source" | "output" | "createdAt" | "name" | "updatedAt" | "entityType" | "traceId" | "spanId" | "entityId" | "endedAt" | "startedAt" | "scope" | "links" | "spanType" | "isEvent" | "parentSpanId" | "attributes" | "entityName" | "userId" | "organizationId" | "sessionId" | "requestId" | "environment" | "serviceName" | "tags", StorageColumn>;
15
19
  /**
16
20
  * @deprecated Use SPAN_SCHEMA instead. This legacy schema is retained only for migration purposes.
17
21
  * @internal
@@ -19,6 +23,10 @@ export declare const SPAN_SCHEMA: Record<"error" | "runId" | "input" | "threadId
19
23
  export declare const OLD_SPAN_SCHEMA: Record<string, StorageColumn>;
20
24
  export declare const AGENTS_SCHEMA: Record<string, StorageColumn>;
21
25
  export declare const AGENT_VERSIONS_SCHEMA: Record<string, StorageColumn>;
26
+ export declare const PROMPT_BLOCKS_SCHEMA: Record<string, StorageColumn>;
27
+ export declare const PROMPT_BLOCK_VERSIONS_SCHEMA: Record<string, StorageColumn>;
28
+ export declare const SCORER_DEFINITIONS_SCHEMA: Record<string, StorageColumn>;
29
+ export declare const SCORER_DEFINITION_VERSIONS_SCHEMA: Record<string, StorageColumn>;
22
30
  export declare const OBSERVATIONAL_MEMORY_SCHEMA: Record<string, StorageColumn>;
23
31
  /**
24
32
  * Schema definitions for all core tables.
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/storage/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,uBAAuB,6BAA6B,CAAC;AAClE,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,WAAW,oBAAoB,CAAC;AAC7C,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,eA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,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAmCrE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAmE5E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iCAAiC;;CAE7C,CAAC"}
@@ -1,3 +1,3 @@
1
- export { AGENTS_SCHEMA, AGENT_VERSIONS_SCHEMA, OBSERVATIONAL_MEMORY_SCHEMA, OBSERVATIONAL_MEMORY_TABLE_SCHEMA, OLD_SPAN_SCHEMA, SCORERS_SCHEMA, SPAN_SCHEMA, TABLE_AGENTS, TABLE_AGENT_VERSIONS, TABLE_MESSAGES, TABLE_OBSERVATIONAL_MEMORY, TABLE_RESOURCES, TABLE_SCHEMAS, TABLE_SCORERS, TABLE_SPANS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-MNWW2R3U.js';
1
+ export { AGENTS_SCHEMA, AGENT_VERSIONS_SCHEMA, OBSERVATIONAL_MEMORY_SCHEMA, OBSERVATIONAL_MEMORY_TABLE_SCHEMA, OLD_SPAN_SCHEMA, PROMPT_BLOCKS_SCHEMA, PROMPT_BLOCK_VERSIONS_SCHEMA, SCORERS_SCHEMA, SCORER_DEFINITIONS_SCHEMA, SCORER_DEFINITION_VERSIONS_SCHEMA, SPAN_SCHEMA, TABLE_AGENTS, TABLE_AGENT_VERSIONS, TABLE_MESSAGES, TABLE_OBSERVATIONAL_MEMORY, TABLE_PROMPT_BLOCKS, TABLE_PROMPT_BLOCK_VERSIONS, TABLE_RESOURCES, TABLE_SCHEMAS, TABLE_SCORERS, TABLE_SCORER_DEFINITIONS, TABLE_SCORER_DEFINITION_VERSIONS, TABLE_SPANS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-OV7OOUUR.js';
2
2
  //# sourceMappingURL=constants.js.map
3
3
  //# sourceMappingURL=constants.js.map
@@ -1,43 +1,26 @@
1
- import type { StorageAgentType, StorageAgentSnapshotType, StorageResolvedAgentType, StorageCreateAgentInput, StorageUpdateAgentInput, StorageListAgentsInput, StorageListAgentsOutput, StorageListAgentsResolvedOutput, StorageOrderBy, ThreadOrderBy, ThreadSortDirection } from '../../types.js';
2
- import { StorageDomain } from '../base.js';
1
+ import type { StorageAgentType, StorageAgentSnapshotType, StorageResolvedAgentType, StorageCreateAgentInput, StorageUpdateAgentInput, StorageListAgentsInput, StorageListAgentsOutput, StorageListAgentsResolvedOutput } from '../../types.js';
2
+ import { VersionedStorageDomain } from '../versioned.js';
3
+ import type { VersionBase, CreateVersionInputBase, ListVersionsInputBase, ListVersionsOutputBase } from '../versioned.js';
3
4
  /**
4
5
  * Represents a stored version of an agent configuration.
5
6
  * The config fields are top-level on the version row (no nested snapshot object).
6
7
  */
7
- export interface AgentVersion extends StorageAgentSnapshotType {
8
- /** UUID identifier for this version */
9
- id: string;
8
+ export interface AgentVersion extends StorageAgentSnapshotType, VersionBase {
10
9
  /** ID of the agent this version belongs to */
11
10
  agentId: string;
12
- /** Sequential version number (1, 2, 3, ...) */
13
- versionNumber: number;
14
- /** Array of field names that changed from the previous version */
15
- changedFields?: string[];
16
- /** Optional message describing the changes */
17
- changeMessage?: string;
18
- /** When this version was created */
19
- createdAt: Date;
20
11
  }
21
12
  /**
22
13
  * Input for creating a new agent version.
23
14
  * Config fields are top-level (no nested snapshot object).
24
15
  */
25
- export interface CreateVersionInput extends StorageAgentSnapshotType {
26
- /** UUID identifier for this version */
27
- id: string;
16
+ export interface CreateVersionInput extends StorageAgentSnapshotType, CreateVersionInputBase {
28
17
  /** ID of the agent this version belongs to */
29
18
  agentId: string;
30
- /** Sequential version number */
31
- versionNumber: number;
32
- /** Array of field names that changed from the previous version */
33
- changedFields?: string[];
34
- /** Optional message describing the changes */
35
- changeMessage?: string;
36
19
  }
37
20
  /**
38
21
  * Sort direction for version listings.
39
22
  */
40
- export type VersionSortDirection = ThreadSortDirection;
23
+ export type VersionSortDirection = 'ASC' | 'DESC';
41
24
  /**
42
25
  * Fields that can be used for ordering version listings.
43
26
  */
@@ -45,154 +28,20 @@ export type VersionOrderBy = 'versionNumber' | 'createdAt';
45
28
  /**
46
29
  * Input for listing agent versions with pagination and sorting.
47
30
  */
48
- export interface ListVersionsInput {
31
+ export interface ListVersionsInput extends ListVersionsInputBase {
49
32
  /** ID of the agent to list versions for */
50
33
  agentId: string;
51
- /** Page number (0-indexed) */
52
- page?: number;
53
- /**
54
- * Number of items per page, or `false` to fetch all records without pagination limit.
55
- * Defaults to 20 if not specified.
56
- */
57
- perPage?: number | false;
58
- /** Sorting options */
59
- orderBy?: {
60
- field?: VersionOrderBy;
61
- direction?: VersionSortDirection;
62
- };
63
34
  }
64
35
  /**
65
36
  * Output for listing agent versions with pagination info.
66
37
  */
67
- export interface ListVersionsOutput {
68
- /** Array of versions for the current page */
69
- versions: AgentVersion[];
70
- /** Total number of versions */
71
- total: number;
72
- /** Current page number */
73
- page: number;
74
- /** Items per page */
75
- perPage: number | false;
76
- /** Whether there are more pages */
77
- hasMore: boolean;
38
+ export interface ListVersionsOutput extends ListVersionsOutputBase<AgentVersion> {
78
39
  }
79
- export declare abstract class AgentsStorage extends StorageDomain {
40
+ export declare abstract class AgentsStorage extends VersionedStorageDomain<StorageAgentType, StorageAgentSnapshotType, StorageResolvedAgentType, AgentVersion, CreateVersionInput, ListVersionsInput, ListVersionsOutput, {
41
+ agent: StorageCreateAgentInput;
42
+ }, StorageUpdateAgentInput, StorageListAgentsInput | undefined, StorageListAgentsOutput, StorageListAgentsResolvedOutput> {
43
+ protected readonly listKey = "agents";
44
+ protected readonly versionMetadataFields: ("id" | "createdAt" | "agentId" | "versionNumber" | "changedFields" | "changeMessage")[];
80
45
  constructor();
81
- /**
82
- * Retrieves an agent by its unique identifier (raw thin record, without version resolution).
83
- * @param id - The unique identifier of the agent
84
- * @returns The thin agent record if found, null otherwise
85
- */
86
- abstract getAgentById({ id }: {
87
- id: string;
88
- }): Promise<StorageAgentType | null>;
89
- /**
90
- * Retrieves an agent by its unique identifier, resolving config from the active version.
91
- * This is the preferred method for fetching stored agents as it ensures the returned
92
- * configuration matches the active version.
93
- *
94
- * @param id - The unique identifier of the agent
95
- * @returns The resolved agent (metadata + version config), or null if not found
96
- */
97
- getAgentByIdResolved({ id }: {
98
- id: string;
99
- }): Promise<StorageResolvedAgentType | null>;
100
- /**
101
- * Lists all agents with version resolution.
102
- * For each agent that has an activeVersionId, the config is resolved from the version.
103
- *
104
- * @param args - Pagination and ordering options
105
- * @returns Paginated list of resolved agents
106
- */
107
- listAgentsResolved(args?: StorageListAgentsInput): Promise<StorageListAgentsResolvedOutput>;
108
- /**
109
- * Creates a new agent in storage.
110
- * @param agent - The agent data to create (thin record fields + initial snapshot)
111
- * @returns The created thin agent record with timestamps
112
- */
113
- abstract createAgent({ agent }: {
114
- agent: StorageCreateAgentInput;
115
- }): Promise<StorageAgentType>;
116
- /**
117
- * Updates an existing agent in storage.
118
- * @param id - The unique identifier of the agent to update
119
- * @param updates - The fields to update
120
- * @returns The updated thin agent record
121
- */
122
- abstract updateAgent({ id, ...updates }: StorageUpdateAgentInput): Promise<StorageAgentType>;
123
- /**
124
- * Deletes an agent from storage.
125
- * @param id - The unique identifier of the agent to delete
126
- */
127
- abstract deleteAgent({ id }: {
128
- id: string;
129
- }): Promise<void>;
130
- /**
131
- * Lists all agents with optional pagination.
132
- * @param args - Pagination and ordering options
133
- * @returns Paginated list of thin agent records
134
- */
135
- abstract listAgents(args?: StorageListAgentsInput): Promise<StorageListAgentsOutput>;
136
- /**
137
- * Creates a new version record for an agent.
138
- * @param input - The version data to create (config fields are top-level)
139
- * @returns The created version with timestamp
140
- */
141
- abstract createVersion(input: CreateVersionInput): Promise<AgentVersion>;
142
- /**
143
- * Retrieves a version by its unique ID.
144
- * @param id - The UUID of the version
145
- * @returns The version if found, null otherwise
146
- */
147
- abstract getVersion(id: string): Promise<AgentVersion | null>;
148
- /**
149
- * Retrieves a version by agent ID and version number.
150
- * @param agentId - The ID of the agent
151
- * @param versionNumber - The sequential version number
152
- * @returns The version if found, null otherwise
153
- */
154
- abstract getVersionByNumber(agentId: string, versionNumber: number): Promise<AgentVersion | null>;
155
- /**
156
- * Retrieves the latest (highest version number) version for an agent.
157
- * @param agentId - The ID of the agent
158
- * @returns The latest version if found, null otherwise
159
- */
160
- abstract getLatestVersion(agentId: string): Promise<AgentVersion | null>;
161
- /**
162
- * Lists versions for an agent with pagination and sorting.
163
- * @param input - Pagination and filter options
164
- * @returns Paginated list of versions
165
- */
166
- abstract listVersions(input: ListVersionsInput): Promise<ListVersionsOutput>;
167
- /**
168
- * Deletes a specific version by ID.
169
- * @param id - The UUID of the version to delete
170
- */
171
- abstract deleteVersion(id: string): Promise<void>;
172
- /**
173
- * Deletes all versions for an agent.
174
- * @param agentId - The ID of the agent
175
- */
176
- abstract deleteVersionsByAgentId(agentId: string): Promise<void>;
177
- /**
178
- * Counts the total number of versions for an agent.
179
- * @param agentId - The ID of the agent
180
- * @returns The count of versions
181
- */
182
- abstract countVersions(agentId: string): Promise<number>;
183
- /**
184
- * Parses orderBy input for consistent agent sorting behavior.
185
- */
186
- protected parseOrderBy(orderBy?: StorageOrderBy, defaultDirection?: ThreadSortDirection): {
187
- field: ThreadOrderBy;
188
- direction: ThreadSortDirection;
189
- };
190
- /**
191
- * Parses orderBy input for consistent version sorting behavior.
192
- */
193
- protected parseVersionOrderBy(orderBy?: ListVersionsInput['orderBy'], defaultDirection?: VersionSortDirection): {
194
- field: VersionOrderBy;
195
- direction: VersionSortDirection;
196
- };
197
46
  }
198
47
  //# sourceMappingURL=base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/agents/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,wBAAwB,EACxB,wBAAwB,EACxB,uBAA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AAA;KAAE;CAO9D"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/agents/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,+BAA+B,EAChC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAMvH;;;GAGG;AACH,MAAM,WAAW,YAAa,SAAQ,wBAAwB,EAAE,WAAW;IACzE,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,wBAAwB,EAAE,sBAAsB;IAC1F,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,MAAM,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,WAAW,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,qBAAqB;IAC9D,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB,CAAC,YAAY,CAAC;CAAG;AAMnF,8BAAsB,aAAc,SAAQ,sBAAsB,CAChE,gBAAgB,EAChB,wBAAwB,EACxB,wBAAwB,EACxB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB;IAAE,KAAK,EAAE,uBAAuB,CAAA;CAAE,EAClC,uBAAuB,EACvB,sBAAsB,GAAG,SAAS,EAClC,uBAAuB,EACvB,+BAA+B,CAChC;IACC,SAAS,CAAC,QAAQ,CAAC,OAAO,YAAY;IACtC,SAAS,CAAC,QAAQ,CAAC,qBAAqB,2FAOL;;CAQpC"}
@@ -1,4 +1,3 @@
1
1
  export * from './base.js';
2
2
  export * from './inmemory.js';
3
- export type { AgentVersion, CreateVersionInput, ListVersionsInput, ListVersionsOutput, VersionOrderBy, VersionSortDirection, } from './base.js';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/agents/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAG3B,YAAY,EACV,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,oBAAoB,GACrB,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/agents/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
@@ -8,24 +8,20 @@ export declare class InMemoryAgentsStorage extends AgentsStorage {
8
8
  db: InMemoryDB;
9
9
  });
10
10
  dangerouslyClearAll(): Promise<void>;
11
- getAgentById({ id }: {
12
- id: string;
13
- }): Promise<StorageAgentType | null>;
14
- createAgent({ agent }: {
11
+ getById(id: string): Promise<StorageAgentType | null>;
12
+ create(input: {
15
13
  agent: StorageCreateAgentInput;
16
14
  }): Promise<StorageAgentType>;
17
- updateAgent({ id, ...updates }: StorageUpdateAgentInput): Promise<StorageAgentType>;
18
- deleteAgent({ id }: {
19
- id: string;
20
- }): Promise<void>;
21
- listAgents(args?: StorageListAgentsInput): Promise<StorageListAgentsOutput>;
15
+ update(input: StorageUpdateAgentInput): Promise<StorageAgentType>;
16
+ delete(id: string): Promise<void>;
17
+ list(args?: StorageListAgentsInput): Promise<StorageListAgentsOutput>;
22
18
  createVersion(input: CreateVersionInput): Promise<AgentVersion>;
23
19
  getVersion(id: string): Promise<AgentVersion | null>;
24
20
  getVersionByNumber(agentId: string, versionNumber: number): Promise<AgentVersion | null>;
25
21
  getLatestVersion(agentId: string): Promise<AgentVersion | null>;
26
22
  listVersions(input: ListVersionsInput): Promise<ListVersionsOutput>;
27
23
  deleteVersion(id: string): Promise<void>;
28
- deleteVersionsByAgentId(agentId: string): Promise<void>;
24
+ deleteVersionsByParentId(entityId: string): Promise<void>;
29
25
  countVersions(agentId: string): Promise<number>;
30
26
  /**
31
27
  * Deep copy a thin agent record to prevent external mutation of stored data
@@ -1 +1 @@
1
- {"version":3,"file":"inmemory.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/agents/inmemory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EAGxB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAGnB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,qBAAa,qBAAsB,SAAQ,aAAa;IACtD,OAAO,CAAC,EAAE,CAAa;gBAEX,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,UAAU,CAAA;KAAE;IAKhC,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IASpC,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAMtE,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,uBAAuB,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAsCrF,WAAW,CAAC,EAAE,EAAE,EAAE,GAAG,OAAO,EAAE,EAA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AwB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAezD,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAgBrD;;OAEG;IACH,OAAO,CAAC,aAAa;IAOrB;;OAEG;IACH,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,YAAY;CAqBrB"}
@@ -1,5 +1,8 @@
1
1
  export * from './base.js';
2
+ export * from './versioned.js';
2
3
  export * from './agents/index.js';
4
+ export * from './prompt-blocks/index.js';
5
+ export * from './scorer-definitions/index.js';
3
6
  export * from './scores/index.js';
4
7
  export * from './observability/index.js';
5
8
  export * from './operations/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/domains/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/domains/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import type { StorageThreadType } from '../../memory/types.js';
2
- import type { StorageAgentType, StorageMessageType, StorageResourceType, StorageWorkflowRun, ObservationalMemoryRecord } from '../types.js';
2
+ import type { StorageAgentType, StorageMessageType, StoragePromptBlockType, StorageResourceType, StorageScorerDefinitionType, StorageWorkflowRun, ObservationalMemoryRecord } from '../types.js';
3
3
  import type { AgentVersion } from './agents/index.js';
4
4
  import type { TraceEntry } from './observability/index.js';
5
+ import type { PromptBlockVersion } from './prompt-blocks/index.js';
6
+ import type { ScorerDefinitionVersion } from './scorer-definitions/index.js';
5
7
  /**
6
8
  * InMemoryDB is a thin database layer for in-memory storage.
7
9
  * It holds all the Maps that store data, similar to how a real database
@@ -50,6 +52,10 @@ export declare class InMemoryDB {
50
52
  readonly traces: Map<string, TraceEntry>;
51
53
  readonly agents: Map<string, StorageAgentType>;
52
54
  readonly agentVersions: Map<string, AgentVersion>;
55
+ readonly promptBlocks: Map<string, StoragePromptBlockType>;
56
+ readonly promptBlockVersions: Map<string, PromptBlockVersion>;
57
+ readonly scorerDefinitions: Map<string, StorageScorerDefinitionType>;
58
+ readonly scorerDefinitionVersions: Map<string, ScorerDefinitionVersion>;
53
59
  /** Observational memory records, keyed by resourceId, each holding array of records (generations) */
54
60
  readonly observationalMemory: Map<string, ObservationalMemoryRecord[]>;
55
61
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"inmemory-db.d.ts","sourceRoot":"","sources":["../../../src/storage/domains/inmemory-db.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD;;;;;;GAMG;AACH,qBAAa,UAAU;IACrB,QAAQ,CAAC,OAAO,iCAAwC;IACxD,QAAQ,CAAC,QAAQ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