@mastra/server 0.0.0-studio-deploy-20260403185613 → 0.0.0-studio-deploy-20260403231316

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 (328) hide show
  1. package/CHANGELOG.md +294 -3
  2. package/browser-stream.d.ts +1 -0
  3. package/dist/_types/@internal_core/dist/index.d.ts +24 -14
  4. package/dist/{chunk-NC7FBHLX.js → chunk-2QNQQZBK.js} +8 -8
  5. package/dist/{chunk-NC7FBHLX.js.map → chunk-2QNQQZBK.js.map} +1 -1
  6. package/dist/{chunk-NTHBTUUY.cjs → chunk-3SP7DSCM.cjs} +38 -16
  7. package/dist/chunk-3SP7DSCM.cjs.map +1 -0
  8. package/dist/{chunk-R5OSTHUY.js → chunk-4KPZUYOM.js} +35 -14
  9. package/dist/chunk-4KPZUYOM.js.map +1 -0
  10. package/dist/{chunk-QU5YRHRR.js → chunk-64HRKXQ4.js} +3 -3
  11. package/dist/{chunk-QU5YRHRR.js.map → chunk-64HRKXQ4.js.map} +1 -1
  12. package/dist/{chunk-YFQ5JIUD.js → chunk-6Q6OH2XV.js} +15 -10
  13. package/dist/chunk-6Q6OH2XV.js.map +1 -0
  14. package/dist/{chunk-SEMV475G.cjs → chunk-6RCE5RPS.cjs} +3 -3
  15. package/dist/{chunk-SEMV475G.cjs.map → chunk-6RCE5RPS.cjs.map} +1 -1
  16. package/dist/chunk-7TKB6WYH.js +143 -0
  17. package/dist/chunk-7TKB6WYH.js.map +1 -0
  18. package/dist/{chunk-TYYGY4H4.cjs → chunk-A4UUHYOD.cjs} +4 -4
  19. package/dist/{chunk-TYYGY4H4.cjs.map → chunk-A4UUHYOD.cjs.map} +1 -1
  20. package/dist/{chunk-7ZHBGYZB.js → chunk-ACHCR6LO.js} +3 -3
  21. package/dist/{chunk-7ZHBGYZB.js.map → chunk-ACHCR6LO.js.map} +1 -1
  22. package/dist/{chunk-QJZOWORS.js → chunk-AFIQT26M.js} +3 -3
  23. package/dist/{chunk-QJZOWORS.js.map → chunk-AFIQT26M.js.map} +1 -1
  24. package/dist/chunk-AJYJ4H7P.js +438 -0
  25. package/dist/chunk-AJYJ4H7P.js.map +1 -0
  26. package/dist/chunk-AXFG5JMX.js +221 -0
  27. package/dist/chunk-AXFG5JMX.js.map +1 -0
  28. package/dist/{chunk-VFCGYERU.cjs → chunk-BGGNTGKV.cjs} +61 -30
  29. package/dist/chunk-BGGNTGKV.cjs.map +1 -0
  30. package/dist/{chunk-CZUJUB46.js → chunk-BLTEJYV2.js} +3 -3
  31. package/dist/{chunk-CZUJUB46.js.map → chunk-BLTEJYV2.js.map} +1 -1
  32. package/dist/chunk-BNI76TPM.js +226 -0
  33. package/dist/chunk-BNI76TPM.js.map +1 -0
  34. package/dist/{chunk-RR2SZQZN.cjs → chunk-BNR4X25G.cjs} +7 -7
  35. package/dist/{chunk-RR2SZQZN.cjs.map → chunk-BNR4X25G.cjs.map} +1 -1
  36. package/dist/{chunk-MH2WUZWZ.js → chunk-C4UOZ4CO.js} +4 -4
  37. package/dist/{chunk-MH2WUZWZ.js.map → chunk-C4UOZ4CO.js.map} +1 -1
  38. package/dist/{chunk-GYD5JBBZ.js → chunk-C63OPXW5.js} +3 -3
  39. package/dist/{chunk-GYD5JBBZ.js.map → chunk-C63OPXW5.js.map} +1 -1
  40. package/dist/{chunk-FB5NRM2M.js → chunk-CQMVBP24.js} +3 -3
  41. package/dist/{chunk-FB5NRM2M.js.map → chunk-CQMVBP24.js.map} +1 -1
  42. package/dist/{chunk-NCCK5NVX.cjs → chunk-DF6RRE5O.cjs} +4 -4
  43. package/dist/{chunk-NCCK5NVX.cjs.map → chunk-DF6RRE5O.cjs.map} +1 -1
  44. package/dist/{chunk-W2L77D24.cjs → chunk-DIK66NDC.cjs} +4 -4
  45. package/dist/chunk-DIK66NDC.cjs.map +1 -0
  46. package/dist/{chunk-37LAVKFO.cjs → chunk-E5JCKPP3.cjs} +3 -3
  47. package/dist/{chunk-37LAVKFO.cjs.map → chunk-E5JCKPP3.cjs.map} +1 -1
  48. package/dist/{chunk-4XWJYF2O.js → chunk-E6QE7LE7.js} +149 -27
  49. package/dist/chunk-E6QE7LE7.js.map +1 -0
  50. package/dist/chunk-EPKGVW45.cjs +234 -0
  51. package/dist/chunk-EPKGVW45.cjs.map +1 -0
  52. package/dist/{chunk-AV7GXDE4.js → chunk-EXXI5LDH.js} +3 -3
  53. package/dist/{chunk-AV7GXDE4.js.map → chunk-EXXI5LDH.js.map} +1 -1
  54. package/dist/{chunk-P2HYXT7N.cjs → chunk-FJOBZDNM.cjs} +3 -3
  55. package/dist/{chunk-P2HYXT7N.cjs.map → chunk-FJOBZDNM.cjs.map} +1 -1
  56. package/dist/{chunk-M6AQTASN.js → chunk-G4H7C5TN.js} +3 -3
  57. package/dist/{chunk-M6AQTASN.js.map → chunk-G4H7C5TN.js.map} +1 -1
  58. package/dist/chunk-GBJMKCOI.js +159 -0
  59. package/dist/chunk-GBJMKCOI.js.map +1 -0
  60. package/dist/chunk-GNVZDFY5.cjs +166 -0
  61. package/dist/chunk-GNVZDFY5.cjs.map +1 -0
  62. package/dist/{chunk-N3RNJ7AM.js → chunk-H77IQ6X3.js} +4 -2
  63. package/dist/chunk-H77IQ6X3.js.map +1 -0
  64. package/dist/{chunk-BMTM453F.js → chunk-HEJT65ML.js} +3 -3
  65. package/dist/{chunk-BMTM453F.js.map → chunk-HEJT65ML.js.map} +1 -1
  66. package/dist/{chunk-PX7CMAHC.cjs → chunk-HYMENNTP.cjs} +3 -3
  67. package/dist/{chunk-PX7CMAHC.cjs.map → chunk-HYMENNTP.cjs.map} +1 -1
  68. package/dist/{chunk-OSMI5XLT.cjs → chunk-IFEMVRLI.cjs} +15 -10
  69. package/dist/chunk-IFEMVRLI.cjs.map +1 -0
  70. package/dist/{chunk-HI5EDX3F.js → chunk-IGUQV25I.js} +3 -3
  71. package/dist/{chunk-HI5EDX3F.js.map → chunk-IGUQV25I.js.map} +1 -1
  72. package/dist/{chunk-E56FRMZY.js → chunk-IKRRLVK6.js} +3 -3
  73. package/dist/{chunk-E56FRMZY.js.map → chunk-IKRRLVK6.js.map} +1 -1
  74. package/dist/{chunk-2QCTUEHS.cjs → chunk-ILAUCYCE.cjs} +68 -68
  75. package/dist/chunk-ILAUCYCE.cjs.map +1 -0
  76. package/dist/{chunk-2ESRD3L7.cjs → chunk-IULBSVMW.cjs} +3 -3
  77. package/dist/{chunk-2ESRD3L7.cjs.map → chunk-IULBSVMW.cjs.map} +1 -1
  78. package/dist/{chunk-7TESOQZ3.js → chunk-JL6DSIOD.js} +3 -3
  79. package/dist/{chunk-7TESOQZ3.js.map → chunk-JL6DSIOD.js.map} +1 -1
  80. package/dist/{chunk-MZJHH2S4.js → chunk-JSF6IIEX.js} +3 -3
  81. package/dist/{chunk-MZJHH2S4.js.map → chunk-JSF6IIEX.js.map} +1 -1
  82. package/dist/{chunk-THQC6QBV.js → chunk-KGMXNZV7.js} +271 -68
  83. package/dist/chunk-KGMXNZV7.js.map +1 -0
  84. package/dist/{chunk-CMTOQQZD.js → chunk-KSHYQV6C.js} +126 -2
  85. package/dist/chunk-KSHYQV6C.js.map +1 -0
  86. package/dist/{chunk-JH576GTI.cjs → chunk-KU4DBPKJ.cjs} +3 -3
  87. package/dist/{chunk-JH576GTI.cjs.map → chunk-KU4DBPKJ.cjs.map} +1 -1
  88. package/dist/{chunk-WUCJRGTK.cjs → chunk-L3S2ZIOY.cjs} +3 -3
  89. package/dist/{chunk-WUCJRGTK.cjs.map → chunk-L3S2ZIOY.cjs.map} +1 -1
  90. package/dist/{chunk-K6RNBFGH.js → chunk-LADXKYBC.js} +4 -4
  91. package/dist/{chunk-K6RNBFGH.js.map → chunk-LADXKYBC.js.map} +1 -1
  92. package/dist/chunk-MFBT6P7Q.js +35 -0
  93. package/dist/chunk-MFBT6P7Q.js.map +1 -0
  94. package/dist/chunk-MODL4UKU.cjs +165 -0
  95. package/dist/chunk-MODL4UKU.cjs.map +1 -0
  96. package/dist/{chunk-MKW43AJ3.js → chunk-N6ERUAFR.js} +4 -4
  97. package/dist/{chunk-MKW43AJ3.js.map → chunk-N6ERUAFR.js.map} +1 -1
  98. package/dist/{chunk-UFK5THVP.cjs → chunk-NHQZOCOS.cjs} +4 -4
  99. package/dist/{chunk-UFK5THVP.cjs.map → chunk-NHQZOCOS.cjs.map} +1 -1
  100. package/dist/chunk-O3TVOGOQ.js +707 -0
  101. package/dist/chunk-O3TVOGOQ.js.map +1 -0
  102. package/dist/{chunk-ETKUOW5K.cjs → chunk-O64RQGCA.cjs} +6 -6
  103. package/dist/{chunk-ETKUOW5K.cjs.map → chunk-O64RQGCA.cjs.map} +1 -1
  104. package/dist/chunk-OJ72T77G.cjs +452 -0
  105. package/dist/chunk-OJ72T77G.cjs.map +1 -0
  106. package/dist/{chunk-UXB7NXS7.js → chunk-OP5OYOJQ.js} +4 -4
  107. package/dist/{chunk-UXB7NXS7.js.map → chunk-OP5OYOJQ.js.map} +1 -1
  108. package/dist/{chunk-GVZ7VB33.cjs → chunk-PSEUD4LV.cjs} +3 -3
  109. package/dist/{chunk-GVZ7VB33.cjs.map → chunk-PSEUD4LV.cjs.map} +1 -1
  110. package/dist/{chunk-6Z5AVDMY.cjs → chunk-QANS6JF7.cjs} +37 -37
  111. package/dist/{chunk-6Z5AVDMY.cjs.map → chunk-QANS6JF7.cjs.map} +1 -1
  112. package/dist/{chunk-G5KXPZUB.cjs → chunk-QBAI2EOX.cjs} +3 -3
  113. package/dist/{chunk-G5KXPZUB.cjs.map → chunk-QBAI2EOX.cjs.map} +1 -1
  114. package/dist/{chunk-4D7KSU4X.js → chunk-QVD4QX7M.js} +4 -4
  115. package/dist/{chunk-4D7KSU4X.js.map → chunk-QVD4QX7M.js.map} +1 -1
  116. package/dist/{chunk-INCWSC6J.cjs → chunk-QWC23KRI.cjs} +5 -5
  117. package/dist/{chunk-INCWSC6J.cjs.map → chunk-QWC23KRI.cjs.map} +1 -1
  118. package/dist/chunk-R474QJUF.cjs +229 -0
  119. package/dist/chunk-R474QJUF.cjs.map +1 -0
  120. package/dist/{chunk-UUQ6I673.cjs → chunk-RJYAO24Y.cjs} +3 -3
  121. package/dist/{chunk-UUQ6I673.cjs.map → chunk-RJYAO24Y.cjs.map} +1 -1
  122. package/dist/{chunk-C77WBYGG.cjs → chunk-SBTSXMHR.cjs} +149 -27
  123. package/dist/chunk-SBTSXMHR.cjs.map +1 -0
  124. package/dist/{chunk-ULLR3RN3.cjs → chunk-SDTOJ37Y.cjs} +4 -4
  125. package/dist/{chunk-ULLR3RN3.cjs.map → chunk-SDTOJ37Y.cjs.map} +1 -1
  126. package/dist/{chunk-UOF35V32.cjs → chunk-SFFLOMJ7.cjs} +342 -139
  127. package/dist/chunk-SFFLOMJ7.cjs.map +1 -0
  128. package/dist/{chunk-YV7FX2SA.cjs → chunk-TEOEOSGZ.cjs} +3 -3
  129. package/dist/{chunk-YV7FX2SA.cjs.map → chunk-TEOEOSGZ.cjs.map} +1 -1
  130. package/dist/{chunk-ZZ6KSBGY.js → chunk-TG56QQ4M.js} +4 -4
  131. package/dist/{chunk-ZZ6KSBGY.js.map → chunk-TG56QQ4M.js.map} +1 -1
  132. package/dist/{chunk-5YMAXL54.js → chunk-TUNDCYHF.js} +8 -8
  133. package/dist/chunk-TUNDCYHF.js.map +1 -0
  134. package/dist/{chunk-CYXRX4G3.cjs → chunk-U4OTG5V4.cjs} +6 -6
  135. package/dist/{chunk-CYXRX4G3.cjs.map → chunk-U4OTG5V4.cjs.map} +1 -1
  136. package/dist/{chunk-CHQVMEZ3.cjs → chunk-UKMRQ6ER.cjs} +126 -2
  137. package/dist/chunk-UKMRQ6ER.cjs.map +1 -0
  138. package/dist/{chunk-6UDD7FIH.js → chunk-UWYDBXU7.js} +36 -6
  139. package/dist/chunk-UWYDBXU7.js.map +1 -0
  140. package/dist/{chunk-FU5Z5NSF.js → chunk-VNI37F64.js} +3 -3
  141. package/dist/{chunk-FU5Z5NSF.js.map → chunk-VNI37F64.js.map} +1 -1
  142. package/dist/{chunk-NOBDUHIG.cjs → chunk-VPC53D7Z.cjs} +3 -3
  143. package/dist/{chunk-NOBDUHIG.cjs.map → chunk-VPC53D7Z.cjs.map} +1 -1
  144. package/dist/{chunk-HBMIUVV4.cjs → chunk-W3BHIYBR.cjs} +3 -3
  145. package/dist/{chunk-HBMIUVV4.cjs.map → chunk-W3BHIYBR.cjs.map} +1 -1
  146. package/dist/{chunk-KXZR6QGF.cjs → chunk-WGB6F36S.cjs} +4 -2
  147. package/dist/chunk-WGB6F36S.cjs.map +1 -0
  148. package/dist/{chunk-LHRGLY3V.cjs → chunk-WLBD2BX3.cjs} +3 -3
  149. package/dist/{chunk-LHRGLY3V.cjs.map → chunk-WLBD2BX3.cjs.map} +1 -1
  150. package/dist/chunk-XUZ3262M.cjs +712 -0
  151. package/dist/chunk-XUZ3262M.cjs.map +1 -0
  152. package/dist/{chunk-XXRUGX7H.js → chunk-YJH6MZPH.js} +3 -3
  153. package/dist/{chunk-XXRUGX7H.js.map → chunk-YJH6MZPH.js.map} +1 -1
  154. package/dist/chunk-Z5ETZUOK.cjs +45 -0
  155. package/dist/chunk-Z5ETZUOK.cjs.map +1 -0
  156. package/dist/{chunk-C7LI3TCQ.js → chunk-ZCPJMT2K.js} +4 -4
  157. package/dist/chunk-ZCPJMT2K.js.map +1 -0
  158. package/dist/{chunk-DUF6VSRV.js → chunk-ZUS6TJ4V.js} +4 -4
  159. package/dist/{chunk-DUF6VSRV.js.map → chunk-ZUS6TJ4V.js.map} +1 -1
  160. package/dist/docs/SKILL.md +1 -1
  161. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  162. package/dist/docs/references/reference-server-routes.md +22 -1
  163. package/dist/{observational-memory-B25SASRW-XQ4H3EES.js → observational-memory-B7AUSTEY-6LPDHZKQ.js} +3 -3
  164. package/dist/{observational-memory-B25SASRW-XQ4H3EES.js.map → observational-memory-B7AUSTEY-6LPDHZKQ.js.map} +1 -1
  165. package/dist/{observational-memory-B25SASRW-RAEOJAIE.cjs → observational-memory-B7AUSTEY-LPHSHPTI.cjs} +26 -26
  166. package/dist/{observational-memory-B25SASRW-RAEOJAIE.cjs.map → observational-memory-B7AUSTEY-LPHSHPTI.cjs.map} +1 -1
  167. package/dist/server/browser-stream/index.cjs +534 -0
  168. package/dist/server/browser-stream/index.cjs.map +1 -0
  169. package/dist/server/browser-stream/index.d.ts +23 -0
  170. package/dist/server/browser-stream/index.d.ts.map +1 -0
  171. package/dist/server/browser-stream/index.js +531 -0
  172. package/dist/server/browser-stream/index.js.map +1 -0
  173. package/dist/server/browser-stream/input-handler.d.ts +15 -0
  174. package/dist/server/browser-stream/input-handler.d.ts.map +1 -0
  175. package/dist/server/browser-stream/types.d.ts +110 -0
  176. package/dist/server/browser-stream/types.d.ts.map +1 -0
  177. package/dist/server/browser-stream/viewer-registry.d.ts +132 -0
  178. package/dist/server/browser-stream/viewer-registry.d.ts.map +1 -0
  179. package/dist/server/handlers/a2a.cjs +9 -9
  180. package/dist/server/handlers/a2a.js +1 -1
  181. package/dist/server/handlers/agent-builder.cjs +16 -16
  182. package/dist/server/handlers/agent-builder.js +1 -1
  183. package/dist/server/handlers/agent-versions.cjs +8 -8
  184. package/dist/server/handlers/agent-versions.js +1 -1
  185. package/dist/server/handlers/agents.cjs +38 -34
  186. package/dist/server/handlers/agents.d.ts +7 -0
  187. package/dist/server/handlers/agents.d.ts.map +1 -1
  188. package/dist/server/handlers/agents.js +1 -1
  189. package/dist/server/handlers/auth.cjs +11 -11
  190. package/dist/server/handlers/auth.d.ts.map +1 -1
  191. package/dist/server/handlers/auth.js +1 -1
  192. package/dist/server/handlers/conversations.cjs +24 -0
  193. package/dist/server/handlers/conversations.cjs.map +1 -0
  194. package/dist/server/handlers/conversations.d.ts +153 -0
  195. package/dist/server/handlers/conversations.d.ts.map +1 -0
  196. package/dist/server/handlers/conversations.js +3 -0
  197. package/dist/server/handlers/conversations.js.map +1 -0
  198. package/dist/server/handlers/datasets.cjs +26 -26
  199. package/dist/server/handlers/datasets.d.ts +748 -0
  200. package/dist/server/handlers/datasets.d.ts.map +1 -1
  201. package/dist/server/handlers/datasets.js +1 -1
  202. package/dist/server/handlers/gateway-memory-client.cjs +36 -0
  203. package/dist/server/handlers/gateway-memory-client.cjs.map +1 -0
  204. package/dist/server/handlers/gateway-memory-client.d.ts +169 -0
  205. package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -0
  206. package/dist/server/handlers/gateway-memory-client.js +3 -0
  207. package/dist/server/handlers/gateway-memory-client.js.map +1 -0
  208. package/dist/server/handlers/logs.cjs +4 -4
  209. package/dist/server/handlers/logs.js +1 -1
  210. package/dist/server/handlers/mcp-client-versions.cjs +8 -8
  211. package/dist/server/handlers/mcp-client-versions.js +1 -1
  212. package/dist/server/handlers/memory.cjs +27 -27
  213. package/dist/server/handlers/memory.d.ts +15 -0
  214. package/dist/server/handlers/memory.d.ts.map +1 -1
  215. package/dist/server/handlers/memory.js +1 -1
  216. package/dist/server/handlers/observability-new-endpoints.cjs +27 -27
  217. package/dist/server/handlers/observability-new-endpoints.d.ts +24 -16
  218. package/dist/server/handlers/observability-new-endpoints.d.ts.map +1 -1
  219. package/dist/server/handlers/observability-new-endpoints.js +1 -1
  220. package/dist/server/handlers/observability.cjs +36 -32
  221. package/dist/server/handlers/observability.d.ts +16 -0
  222. package/dist/server/handlers/observability.d.ts.map +1 -1
  223. package/dist/server/handlers/observability.js +2 -2
  224. package/dist/server/handlers/processor-providers.cjs +3 -3
  225. package/dist/server/handlers/processor-providers.js +1 -1
  226. package/dist/server/handlers/processors.cjs +4 -4
  227. package/dist/server/handlers/processors.js +1 -1
  228. package/dist/server/handlers/prompt-block-versions.cjs +8 -8
  229. package/dist/server/handlers/prompt-block-versions.js +1 -1
  230. package/dist/server/handlers/responses.adapter.cjs +60 -0
  231. package/dist/server/handlers/responses.adapter.cjs.map +1 -0
  232. package/dist/server/handlers/responses.adapter.d.ts +98 -0
  233. package/dist/server/handlers/responses.adapter.d.ts.map +1 -0
  234. package/dist/server/handlers/responses.adapter.js +3 -0
  235. package/dist/server/handlers/responses.adapter.js.map +1 -0
  236. package/dist/server/handlers/responses.cjs +20 -0
  237. package/dist/server/handlers/responses.cjs.map +1 -0
  238. package/dist/server/handlers/responses.d.ts +387 -0
  239. package/dist/server/handlers/responses.d.ts.map +1 -0
  240. package/dist/server/handlers/responses.js +3 -0
  241. package/dist/server/handlers/responses.js.map +1 -0
  242. package/dist/server/handlers/responses.storage.cjs +36 -0
  243. package/dist/server/handlers/responses.storage.cjs.map +1 -0
  244. package/dist/server/handlers/responses.storage.d.ts +116 -0
  245. package/dist/server/handlers/responses.storage.d.ts.map +1 -0
  246. package/dist/server/handlers/responses.storage.js +3 -0
  247. package/dist/server/handlers/responses.storage.js.map +1 -0
  248. package/dist/server/handlers/scorer-versions.cjs +8 -8
  249. package/dist/server/handlers/scorer-versions.js +1 -1
  250. package/dist/server/handlers/scores.cjs +7 -7
  251. package/dist/server/handlers/scores.js +1 -1
  252. package/dist/server/handlers/stored-agents.cjs +7 -7
  253. package/dist/server/handlers/stored-agents.js +1 -1
  254. package/dist/server/handlers/stored-mcp-clients.cjs +6 -6
  255. package/dist/server/handlers/stored-mcp-clients.js +1 -1
  256. package/dist/server/handlers/stored-prompt-blocks.cjs +6 -6
  257. package/dist/server/handlers/stored-prompt-blocks.js +1 -1
  258. package/dist/server/handlers/stored-scorers.cjs +6 -6
  259. package/dist/server/handlers/stored-scorers.js +1 -1
  260. package/dist/server/handlers/stored-skills.cjs +7 -7
  261. package/dist/server/handlers/stored-skills.js +1 -1
  262. package/dist/server/handlers/stored-workspaces.cjs +6 -6
  263. package/dist/server/handlers/stored-workspaces.js +1 -1
  264. package/dist/server/handlers/system.cjs +2 -2
  265. package/dist/server/handlers/system.js +1 -1
  266. package/dist/server/handlers/tool-providers.cjs +5 -5
  267. package/dist/server/handlers/tool-providers.js +1 -1
  268. package/dist/server/handlers/tools.cjs +6 -6
  269. package/dist/server/handlers/tools.js +1 -1
  270. package/dist/server/handlers/vector.cjs +16 -16
  271. package/dist/server/handlers/vector.js +1 -1
  272. package/dist/server/handlers/voice.cjs +8 -8
  273. package/dist/server/handlers/voice.js +1 -1
  274. package/dist/server/handlers/workflows.cjs +24 -24
  275. package/dist/server/handlers/workflows.js +1 -1
  276. package/dist/server/handlers/workspace.cjs +26 -26
  277. package/dist/server/handlers/workspace.js +1 -1
  278. package/dist/server/handlers.cjs +43 -33
  279. package/dist/server/handlers.d.ts +2 -0
  280. package/dist/server/handlers.d.ts.map +1 -1
  281. package/dist/server/handlers.js +14 -12
  282. package/dist/server/schemas/conversations.d.ts +74 -0
  283. package/dist/server/schemas/conversations.d.ts.map +1 -0
  284. package/dist/server/schemas/datasets.d.ts +371 -0
  285. package/dist/server/schemas/datasets.d.ts.map +1 -1
  286. package/dist/server/schemas/index.cjs +469 -375
  287. package/dist/server/schemas/index.d.ts +2 -0
  288. package/dist/server/schemas/index.d.ts.map +1 -1
  289. package/dist/server/schemas/index.js +10 -8
  290. package/dist/server/schemas/memory.d.ts +8 -0
  291. package/dist/server/schemas/memory.d.ts.map +1 -1
  292. package/dist/server/schemas/responses.d.ts +341 -0
  293. package/dist/server/schemas/responses.d.ts.map +1 -0
  294. package/dist/server/server-adapter/index.cjs +289 -273
  295. package/dist/server/server-adapter/index.cjs.map +1 -1
  296. package/dist/server/server-adapter/index.js +46 -30
  297. package/dist/server/server-adapter/index.js.map +1 -1
  298. package/dist/server/server-adapter/routes/conversations.d.ts +150 -0
  299. package/dist/server/server-adapter/routes/conversations.d.ts.map +1 -0
  300. package/dist/server/server-adapter/routes/datasets.d.ts +748 -0
  301. package/dist/server/server-adapter/routes/datasets.d.ts.map +1 -1
  302. package/dist/server/server-adapter/routes/index.d.ts +4 -0
  303. package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
  304. package/dist/server/server-adapter/routes/memory.d.ts +15 -0
  305. package/dist/server/server-adapter/routes/memory.d.ts.map +1 -1
  306. package/dist/server/server-adapter/routes/observability.d.ts +26 -8
  307. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -1
  308. package/dist/server/server-adapter/routes/responses.d.ts +385 -0
  309. package/dist/server/server-adapter/routes/responses.d.ts.map +1 -0
  310. package/package.json +19 -9
  311. package/dist/chunk-2QCTUEHS.cjs.map +0 -1
  312. package/dist/chunk-4XWJYF2O.js.map +0 -1
  313. package/dist/chunk-5YMAXL54.js.map +0 -1
  314. package/dist/chunk-6UDD7FIH.js.map +0 -1
  315. package/dist/chunk-C77WBYGG.cjs.map +0 -1
  316. package/dist/chunk-C7LI3TCQ.js.map +0 -1
  317. package/dist/chunk-CHQVMEZ3.cjs.map +0 -1
  318. package/dist/chunk-CMTOQQZD.js.map +0 -1
  319. package/dist/chunk-KXZR6QGF.cjs.map +0 -1
  320. package/dist/chunk-N3RNJ7AM.js.map +0 -1
  321. package/dist/chunk-NTHBTUUY.cjs.map +0 -1
  322. package/dist/chunk-OSMI5XLT.cjs.map +0 -1
  323. package/dist/chunk-R5OSTHUY.js.map +0 -1
  324. package/dist/chunk-THQC6QBV.js.map +0 -1
  325. package/dist/chunk-UOF35V32.cjs.map +0 -1
  326. package/dist/chunk-VFCGYERU.cjs.map +0 -1
  327. package/dist/chunk-W2L77D24.cjs.map +0 -1
  328. package/dist/chunk-YFQ5JIUD.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,11 +1,302 @@
1
1
  # @mastra/server
2
2
 
3
- ## 0.0.0-studio-deploy-20260403185613
3
+ ## 0.0.0-studio-deploy-20260403231316
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [[`c55b527`](https://github.com/mastra-ai/mastra/commit/c55b52758a31368b2077b0dbbc3badfe4063f560)]:
8
- - @mastra/core@0.0.0-studio-deploy-20260403185613
7
+ - Add session refresh endpoint. Expired sessions can now be refreshed automatically, keeping users signed in longer. ([#15024](https://github.com/mastra-ai/mastra/pull/15024))
8
+
9
+ - Updated dependencies [[`c55b527`](https://github.com/mastra-ai/mastra/commit/c55b52758a31368b2077b0dbbc3badfe4063f560), [`7eb2596`](https://github.com/mastra-ai/mastra/commit/7eb25960d607e07468c9a10c5437abd2deaf1e9a)]:
10
+ - @mastra/core@0.0.0-studio-deploy-20260403231316
11
+
12
+ ## 1.22.0
13
+
14
+ ### Minor Changes
15
+
16
+ - Add browser streaming endpoints and WebSocket handlers ([#14938](https://github.com/mastra-ai/mastra/pull/14938))
17
+ - New `/api/agents/:agentId/browser/stream` WebSocket endpoint for screencast streaming
18
+ - New `/api/agents/:agentId/browser/close` endpoint for closing browser sessions
19
+ - Input handler for mouse and keyboard event injection
20
+ - Viewer registry for managing screencast connections per agent/thread
21
+
22
+ - Added Memory Gateway proxying for agents using Mastra Gateway models. ([#14952](https://github.com/mastra-ai/mastra/pull/14952))
23
+
24
+ When an agent uses a `mastra/` model string, memory operations (threads, messages, observational memory) are automatically proxied to the remote Mastra Gateway instead of local storage.
25
+
26
+ **New endpoints:**
27
+ - **GET /memory/observational-memory** — retrieves the current observational memory record and optional generation history for an agent
28
+ - **POST /memory/observational-memory/buffer-status** — waits for in-flight buffering operations to complete (30s timeout) and returns the updated record
29
+
30
+ **New internal module:**
31
+ - `GatewayMemoryClient` — HTTP client that proxies memory operations to the Mastra Gateway REST API, with automatic format conversion between gateway and local response types
32
+
33
+ - Added expectedTrajectory support to dataset items across all storage backends and API layer. Dataset items can now store trajectory expectations that define expected agent execution steps, ordering, and constraints for trajectory-based evaluation scoring. ([#14902](https://github.com/mastra-ai/mastra/pull/14902))
34
+
35
+ ### Patch Changes
36
+
37
+ - Added browser tools to the Agent details UI in Playground. Agents configured with browser support now show a "Browser Tools" section in metadata. ([#14998](https://github.com/mastra-ai/mastra/pull/14998))
38
+
39
+ - Fixed Responses and Conversations to resolve stored data through the selected agent's memory store instead of assuming Mastra root memory storage. ([#14977](https://github.com/mastra-ai/mastra/pull/14977))
40
+
41
+ Responses and conversation retrieval, deletion, and continuation now follow the agent's configured memory storage, while still using Mastra root storage when that agent memory inherits it.
42
+
43
+ - Fixed memory endpoints (list threads, get thread, list messages, delete messages, memory status) returning 404 when agentId refers to a stored agent not resolvable via getAgentById(). Endpoints now fall back to storage-based access, matching the behavior when agentId is omitted. Fixes #14765. ([#14784](https://github.com/mastra-ai/mastra/pull/14784))
44
+
45
+ - Fixed dataset schema to accept null values for trajectory expectations, matching what the database stores and what the UI sends ([#15028](https://github.com/mastra-ai/mastra/pull/15028))
46
+
47
+ - Updated dependencies [[`cb15509`](https://github.com/mastra-ai/mastra/commit/cb15509b58f6a83e11b765c945082afc027db972), [`81e4259`](https://github.com/mastra-ai/mastra/commit/81e425939b4ceeb4f586e9b6d89c3b1c1f2d2fe7), [`951b8a1`](https://github.com/mastra-ai/mastra/commit/951b8a1b5ef7e1474c59dc4f2b9fc1a8b1e508b6), [`80c5668`](https://github.com/mastra-ai/mastra/commit/80c5668e365470d3a96d3e953868fd7a643ff67c), [`3d478c1`](https://github.com/mastra-ai/mastra/commit/3d478c1e13f17b80f330ac49d7aa42ef929b93ff), [`2b4ea10`](https://github.com/mastra-ai/mastra/commit/2b4ea10b053e4ea1ab232d536933a4a3c4cba999), [`a0544f0`](https://github.com/mastra-ai/mastra/commit/a0544f0a1e6bd52ac12676228967c1938e43648d), [`6039f17`](https://github.com/mastra-ai/mastra/commit/6039f176f9c457304825ff1df8c83b8e457376c0), [`06b928d`](https://github.com/mastra-ai/mastra/commit/06b928dfc2f5630d023467476cc5919dfa858d0a), [`6a8d984`](https://github.com/mastra-ai/mastra/commit/6a8d9841f2933456ee1598099f488d742b600054), [`c8c86aa`](https://github.com/mastra-ai/mastra/commit/c8c86aa1458017fbd1c0776fdc0c520d129df8a6)]:
48
+ - @mastra/core@1.22.0
49
+
50
+ ## 1.22.0-alpha.3
51
+
52
+ ### Patch Changes
53
+
54
+ - Added browser tools to the Agent details UI in Playground. Agents configured with browser support now show a "Browser Tools" section in metadata. ([#14998](https://github.com/mastra-ai/mastra/pull/14998))
55
+
56
+ - Updated dependencies:
57
+ - @mastra/core@1.22.0-alpha.3
58
+
59
+ ## 1.22.0-alpha.2
60
+
61
+ ### Minor Changes
62
+
63
+ - Add browser streaming endpoints and WebSocket handlers ([#14938](https://github.com/mastra-ai/mastra/pull/14938))
64
+ - New `/api/agents/:agentId/browser/stream` WebSocket endpoint for screencast streaming
65
+ - New `/api/agents/:agentId/browser/close` endpoint for closing browser sessions
66
+ - Input handler for mouse and keyboard event injection
67
+ - Viewer registry for managing screencast connections per agent/thread
68
+
69
+ - Added expectedTrajectory support to dataset items across all storage backends and API layer. Dataset items can now store trajectory expectations that define expected agent execution steps, ordering, and constraints for trajectory-based evaluation scoring. ([#14902](https://github.com/mastra-ai/mastra/pull/14902))
70
+
71
+ ### Patch Changes
72
+
73
+ - Fixed Responses and Conversations to resolve stored data through the selected agent's memory store instead of assuming Mastra root memory storage. ([#14977](https://github.com/mastra-ai/mastra/pull/14977))
74
+
75
+ Responses and conversation retrieval, deletion, and continuation now follow the agent's configured memory storage, while still using Mastra root storage when that agent memory inherits it.
76
+
77
+ - Fixed memory endpoints (list threads, get thread, list messages, delete messages, memory status) returning 404 when agentId refers to a stored agent not resolvable via getAgentById(). Endpoints now fall back to storage-based access, matching the behavior when agentId is omitted. Fixes #14765. ([#14784](https://github.com/mastra-ai/mastra/pull/14784))
78
+
79
+ - Updated dependencies [[`cb15509`](https://github.com/mastra-ai/mastra/commit/cb15509b58f6a83e11b765c945082afc027db972), [`80c5668`](https://github.com/mastra-ai/mastra/commit/80c5668e365470d3a96d3e953868fd7a643ff67c), [`3d478c1`](https://github.com/mastra-ai/mastra/commit/3d478c1e13f17b80f330ac49d7aa42ef929b93ff), [`6039f17`](https://github.com/mastra-ai/mastra/commit/6039f176f9c457304825ff1df8c83b8e457376c0), [`06b928d`](https://github.com/mastra-ai/mastra/commit/06b928dfc2f5630d023467476cc5919dfa858d0a), [`6a8d984`](https://github.com/mastra-ai/mastra/commit/6a8d9841f2933456ee1598099f488d742b600054)]:
80
+ - @mastra/core@1.22.0-alpha.2
81
+
82
+ ## 1.22.0-alpha.1
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [[`81e4259`](https://github.com/mastra-ai/mastra/commit/81e425939b4ceeb4f586e9b6d89c3b1c1f2d2fe7), [`951b8a1`](https://github.com/mastra-ai/mastra/commit/951b8a1b5ef7e1474c59dc4f2b9fc1a8b1e508b6)]:
87
+ - @mastra/core@1.22.0-alpha.1
88
+
89
+ ## 1.22.0-alpha.0
90
+
91
+ ### Minor Changes
92
+
93
+ - Added Memory Gateway proxying for agents using Mastra Gateway models. ([#14952](https://github.com/mastra-ai/mastra/pull/14952))
94
+
95
+ When an agent uses a `mastra/` model string, memory operations (threads, messages, observational memory) are automatically proxied to the remote Mastra Gateway instead of local storage.
96
+
97
+ **New endpoints:**
98
+ - **GET /memory/observational-memory** — retrieves the current observational memory record and optional generation history for an agent
99
+ - **POST /memory/observational-memory/buffer-status** — waits for in-flight buffering operations to complete (30s timeout) and returns the updated record
100
+
101
+ **New internal module:**
102
+ - `GatewayMemoryClient` — HTTP client that proxies memory operations to the Mastra Gateway REST API, with automatic format conversion between gateway and local response types
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies [[`2b4ea10`](https://github.com/mastra-ai/mastra/commit/2b4ea10b053e4ea1ab232d536933a4a3c4cba999), [`a0544f0`](https://github.com/mastra-ai/mastra/commit/a0544f0a1e6bd52ac12676228967c1938e43648d), [`c8c86aa`](https://github.com/mastra-ai/mastra/commit/c8c86aa1458017fbd1c0776fdc0c520d129df8a6)]:
107
+ - @mastra/core@1.22.0-alpha.0
108
+
109
+ ## 1.21.0
110
+
111
+ ### Minor Changes
112
+
113
+ - **Added Responses API support for local Mastra apps** ([#14339](https://github.com/mastra-ai/mastra/pull/14339))
114
+
115
+ You can now call Mastra through a Responses API flow and continue stored turns with
116
+ `previous_response_id`, while keeping `model` as a Mastra model string and using
117
+ `agent_id` to target the registered Mastra agent that handles the request. This API acts as an agent-backed
118
+ adapter layer on top of Mastra memory and storage. Advanced provider-native settings can
119
+ also be passed through with `providerOptions`, and provider-returned continuation state
120
+ is surfaced back on the response under the same `providerOptions` field. Stored
121
+ response IDs now map directly to the persisted assistant turn ID in Mastra memory.
122
+ Configured tool definitions are returned under `tools`, while executed tool activity
123
+ is surfaced through `output` items such as `function_call`, `function_call_output`,
124
+ and the final assistant message. Stored responses also return `conversation_id`, which
125
+ maps directly to the underlying Mastra memory thread ID. You can create a conversation
126
+ explicitly with `client.conversations.create()` or let the first stored response create
127
+ it implicitly, inspect the stored item history with `client.conversations.items.list()`,
128
+ retrieve the conversation with `client.conversations.retrieve()`, or remove it with
129
+ `client.conversations.delete()`. Responses requests also support
130
+ `text.format`, including `json_object` for JSON mode and `json_schema` for
131
+ schema-constrained structured output, through the same agent-backed route.
132
+
133
+ ```ts
134
+ import { MastraClient } from '@mastra/client-js';
135
+
136
+ const client = new MastraClient({
137
+ baseUrl: 'http://localhost:4111',
138
+ });
139
+
140
+ const first = await client.responses.create({
141
+ model: 'openai/gpt-5',
142
+ agent_id: 'support-agent',
143
+ input: 'Write a short bedtime story.',
144
+ store: true,
145
+ });
146
+
147
+ const second = await client.responses.create({
148
+ model: 'openai/gpt-5',
149
+ agent_id: 'support-agent',
150
+ input: 'Make it funnier.',
151
+ store: true,
152
+ previous_response_id: first.id,
153
+ });
154
+
155
+ const items = await client.conversations.items.list(first.conversation_id!);
156
+
157
+ const jsonResponse = await client.responses.create({
158
+ model: 'openai/gpt-5',
159
+ agent_id: 'support-agent',
160
+ input: 'Return a JSON object with a title and summary.',
161
+ text: {
162
+ format: {
163
+ type: 'json_object',
164
+ },
165
+ },
166
+ });
167
+
168
+ const structuredResponse = await client.responses.create({
169
+ model: 'openai/gpt-5',
170
+ agent_id: 'support-agent',
171
+ input: 'Return a structured support ticket summary.',
172
+ text: {
173
+ format: {
174
+ type: 'json_schema',
175
+ name: 'ticket_summary',
176
+ strict: true,
177
+ schema: {
178
+ type: 'object',
179
+ properties: {
180
+ summary: { type: 'string' },
181
+ priority: { type: 'string' },
182
+ },
183
+ required: ['summary', 'priority'],
184
+ additionalProperties: false,
185
+ },
186
+ },
187
+ },
188
+ });
189
+ ```
190
+
191
+ ### Patch Changes
192
+
193
+ - Fixed OpenAI Responses API json_object mode so agent-backed responses return JSON output correctly. ([#14935](https://github.com/mastra-ai/mastra/pull/14935))
194
+
195
+ - Updated dependencies [[`9a43b47`](https://github.com/mastra-ai/mastra/commit/9a43b476465e86c9aca381c2831066b5c33c999a), [`ec5c319`](https://github.com/mastra-ai/mastra/commit/ec5c3197a50d034cb8e9cc494eebfddc684b5d81), [`6517789`](https://github.com/mastra-ai/mastra/commit/65177895b74b5471fe2245c7292f0176d9b3385d), [`13f4327`](https://github.com/mastra-ai/mastra/commit/13f4327f052faebe199cefbe906d33bf90238767), [`9ad6aa6`](https://github.com/mastra-ai/mastra/commit/9ad6aa6dfe858afc6955d1df5f3f78c40bb96b9c), [`2862127`](https://github.com/mastra-ai/mastra/commit/2862127d0a7cbd28523120ad64fea067a95838e6), [`3d16814`](https://github.com/mastra-ai/mastra/commit/3d16814c395931373543728994ff45ac98093074), [`7f498d0`](https://github.com/mastra-ai/mastra/commit/7f498d099eacef64fd43ee412e3bd6f87965a8a6), [`8cf8a67`](https://github.com/mastra-ai/mastra/commit/8cf8a67b061b737cb06d501fb8c1967a98bbf3cb), [`d7827e3`](https://github.com/mastra-ai/mastra/commit/d7827e393937c6cb0c7a744dde4d31538cb542b7)]:
196
+ - @mastra/core@1.21.0
197
+
198
+ ## 1.21.0-alpha.2
199
+
200
+ ### Patch Changes
201
+
202
+ - Updated dependencies [[`ec5c319`](https://github.com/mastra-ai/mastra/commit/ec5c3197a50d034cb8e9cc494eebfddc684b5d81), [`6517789`](https://github.com/mastra-ai/mastra/commit/65177895b74b5471fe2245c7292f0176d9b3385d), [`9ad6aa6`](https://github.com/mastra-ai/mastra/commit/9ad6aa6dfe858afc6955d1df5f3f78c40bb96b9c), [`2862127`](https://github.com/mastra-ai/mastra/commit/2862127d0a7cbd28523120ad64fea067a95838e6), [`3d16814`](https://github.com/mastra-ai/mastra/commit/3d16814c395931373543728994ff45ac98093074), [`7f498d0`](https://github.com/mastra-ai/mastra/commit/7f498d099eacef64fd43ee412e3bd6f87965a8a6), [`8cf8a67`](https://github.com/mastra-ai/mastra/commit/8cf8a67b061b737cb06d501fb8c1967a98bbf3cb), [`d7827e3`](https://github.com/mastra-ai/mastra/commit/d7827e393937c6cb0c7a744dde4d31538cb542b7)]:
203
+ - @mastra/core@1.21.0-alpha.2
204
+
205
+ ## 1.21.0-alpha.1
206
+
207
+ ### Patch Changes
208
+
209
+ - Fixed OpenAI Responses API json_object mode so agent-backed responses return JSON output correctly. ([#14935](https://github.com/mastra-ai/mastra/pull/14935))
210
+
211
+ - Updated dependencies [[`13f4327`](https://github.com/mastra-ai/mastra/commit/13f4327f052faebe199cefbe906d33bf90238767)]:
212
+ - @mastra/core@1.21.0-alpha.1
213
+
214
+ ## 1.21.0-alpha.0
215
+
216
+ ### Minor Changes
217
+
218
+ - **Added Responses API support for local Mastra apps** ([#14339](https://github.com/mastra-ai/mastra/pull/14339))
219
+
220
+ You can now call Mastra through a Responses API flow and continue stored turns with
221
+ `previous_response_id`, while keeping `model` as a Mastra model string and using
222
+ `agent_id` to target the registered Mastra agent that handles the request. This API acts as an agent-backed
223
+ adapter layer on top of Mastra memory and storage. Advanced provider-native settings can
224
+ also be passed through with `providerOptions`, and provider-returned continuation state
225
+ is surfaced back on the response under the same `providerOptions` field. Stored
226
+ response IDs now map directly to the persisted assistant turn ID in Mastra memory.
227
+ Configured tool definitions are returned under `tools`, while executed tool activity
228
+ is surfaced through `output` items such as `function_call`, `function_call_output`,
229
+ and the final assistant message. Stored responses also return `conversation_id`, which
230
+ maps directly to the underlying Mastra memory thread ID. You can create a conversation
231
+ explicitly with `client.conversations.create()` or let the first stored response create
232
+ it implicitly, inspect the stored item history with `client.conversations.items.list()`,
233
+ retrieve the conversation with `client.conversations.retrieve()`, or remove it with
234
+ `client.conversations.delete()`. Responses requests also support
235
+ `text.format`, including `json_object` for JSON mode and `json_schema` for
236
+ schema-constrained structured output, through the same agent-backed route.
237
+
238
+ ```ts
239
+ import { MastraClient } from '@mastra/client-js';
240
+
241
+ const client = new MastraClient({
242
+ baseUrl: 'http://localhost:4111',
243
+ });
244
+
245
+ const first = await client.responses.create({
246
+ model: 'openai/gpt-5',
247
+ agent_id: 'support-agent',
248
+ input: 'Write a short bedtime story.',
249
+ store: true,
250
+ });
251
+
252
+ const second = await client.responses.create({
253
+ model: 'openai/gpt-5',
254
+ agent_id: 'support-agent',
255
+ input: 'Make it funnier.',
256
+ store: true,
257
+ previous_response_id: first.id,
258
+ });
259
+
260
+ const items = await client.conversations.items.list(first.conversation_id!);
261
+
262
+ const jsonResponse = await client.responses.create({
263
+ model: 'openai/gpt-5',
264
+ agent_id: 'support-agent',
265
+ input: 'Return a JSON object with a title and summary.',
266
+ text: {
267
+ format: {
268
+ type: 'json_object',
269
+ },
270
+ },
271
+ });
272
+
273
+ const structuredResponse = await client.responses.create({
274
+ model: 'openai/gpt-5',
275
+ agent_id: 'support-agent',
276
+ input: 'Return a structured support ticket summary.',
277
+ text: {
278
+ format: {
279
+ type: 'json_schema',
280
+ name: 'ticket_summary',
281
+ strict: true,
282
+ schema: {
283
+ type: 'object',
284
+ properties: {
285
+ summary: { type: 'string' },
286
+ priority: { type: 'string' },
287
+ },
288
+ required: ['summary', 'priority'],
289
+ additionalProperties: false,
290
+ },
291
+ },
292
+ },
293
+ });
294
+ ```
295
+
296
+ ### Patch Changes
297
+
298
+ - Updated dependencies [[`9a43b47`](https://github.com/mastra-ai/mastra/commit/9a43b476465e86c9aca381c2831066b5c33c999a)]:
299
+ - @mastra/core@1.21.0-alpha.0
9
300
 
10
301
  ## 1.20.0
11
302
 
@@ -0,0 +1 @@
1
+ export * from './dist/server/browser-stream';
@@ -4,8 +4,10 @@ import { z } from 'zod/v4';
4
4
  declare enum EntityType {
5
5
  /** Agent/Model execution */
6
6
  AGENT = "agent",
7
- /** Eval */
8
- EVAL = "eval",
7
+ /** Scorer definition/execution */
8
+ SCORER = "scorer",
9
+ /** Trajectory evaluation target */
10
+ TRAJECTORY = "trajectory",
9
11
  /** Input Processor */
10
12
  INPUT_PROCESSOR = "input_processor",
11
13
  /** Input Step Processor */
@@ -583,9 +585,10 @@ declare const scoreRecordSchema: z.ZodObject<{
583
585
  scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
584
586
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
585
587
  timestamp: z.ZodDate;
586
- traceId: z.ZodString;
588
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
587
589
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
588
590
  scorerId: z.ZodString;
591
+ scorerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
589
592
  scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
590
593
  scoreSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
591
594
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -600,6 +603,7 @@ type ScoreRecord = z.infer<typeof scoreRecordSchema>;
600
603
  */
601
604
  declare const scoreInputSchema: z.ZodObject<{
602
605
  scorerId: z.ZodString;
606
+ scorerName: z.ZodOptional<z.ZodString>;
603
607
  scorerVersion: z.ZodOptional<z.ZodString>;
604
608
  scoreSource: z.ZodOptional<z.ZodString>;
605
609
  source: z.ZodOptional<z.ZodString>;
@@ -608,6 +612,7 @@ declare const scoreInputSchema: z.ZodObject<{
608
612
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
609
613
  experimentId: z.ZodOptional<z.ZodString>;
610
614
  scoreTraceId: z.ZodOptional<z.ZodString>;
615
+ targetEntityType: z.ZodOptional<z.ZodEnum<typeof EntityType>>;
611
616
  }, z.core.$strip>;
612
617
  /** User-facing score input type */
613
618
  type ScoreInput = z.infer<typeof scoreInputSchema>;
@@ -638,9 +643,10 @@ declare const createScoreRecordSchema: z.ZodObject<{
638
643
  scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
639
644
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
640
645
  timestamp: z.ZodDate;
641
- traceId: z.ZodString;
646
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
642
647
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
643
648
  scorerId: z.ZodString;
649
+ scorerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
644
650
  scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
645
651
  scoreSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
646
652
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -677,9 +683,10 @@ declare const createScoreArgsSchema: z.ZodObject<{
677
683
  scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
678
684
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
679
685
  timestamp: z.ZodDate;
680
- traceId: z.ZodString;
686
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
681
687
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
682
688
  scorerId: z.ZodString;
689
+ scorerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
683
690
  scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
684
691
  scoreSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
685
692
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -692,7 +699,7 @@ type CreateScoreArgs = z.infer<typeof createScoreArgsSchema>;
692
699
  /** Schema for createScore operation body in client/server */
693
700
  declare const createScoreBodySchema: z.ZodObject<{
694
701
  score: z.ZodObject<{
695
- traceId: z.ZodString;
702
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
703
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
697
704
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
698
705
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -720,6 +727,7 @@ declare const createScoreBodySchema: z.ZodObject<{
720
727
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
721
728
  scorerId: z.ZodString;
722
729
  score: z.ZodNumber;
730
+ scorerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
723
731
  scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
724
732
  scoreSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
725
733
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -762,9 +770,10 @@ declare const batchCreateScoresArgsSchema: z.ZodObject<{
762
770
  scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
763
771
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
764
772
  timestamp: z.ZodDate;
765
- traceId: z.ZodString;
773
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
766
774
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
767
775
  scorerId: z.ZodString;
776
+ scorerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
768
777
  scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
769
778
  scoreSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
770
779
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -908,9 +917,10 @@ declare const listScoresResponseSchema: z.ZodObject<{
908
917
  scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
909
918
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
910
919
  timestamp: z.ZodDate;
911
- traceId: z.ZodString;
920
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
912
921
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
913
922
  scorerId: z.ZodString;
923
+ scorerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
914
924
  scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
915
925
  scoreSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
916
926
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1170,7 +1180,7 @@ declare const feedbackRecordSchema: z.ZodObject<{
1170
1180
  scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1171
1181
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1172
1182
  timestamp: z.ZodDate;
1173
- traceId: z.ZodString;
1183
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1174
1184
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1175
1185
  feedbackSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1176
1186
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1222,7 +1232,7 @@ declare const createFeedbackRecordSchema: z.ZodObject<{
1222
1232
  scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1223
1233
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1224
1234
  timestamp: z.ZodDate;
1225
- traceId: z.ZodString;
1235
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1226
1236
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1227
1237
  feedbackSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1228
1238
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1261,7 +1271,7 @@ declare const createFeedbackArgsSchema: z.ZodObject<{
1261
1271
  scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1262
1272
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1263
1273
  timestamp: z.ZodDate;
1264
- traceId: z.ZodString;
1274
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1265
1275
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1266
1276
  feedbackSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1267
1277
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1277,7 +1287,7 @@ type CreateFeedbackArgs = z.infer<typeof createFeedbackArgsSchema>;
1277
1287
  declare const createFeedbackBodySchema: z.ZodObject<{
1278
1288
  feedback: z.ZodObject<{
1279
1289
  value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1280
- traceId: z.ZodString;
1290
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1281
1291
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1282
1292
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1283
1293
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -1346,7 +1356,7 @@ declare const batchCreateFeedbackArgsSchema: z.ZodObject<{
1346
1356
  scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1347
1357
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1348
1358
  timestamp: z.ZodDate;
1349
- traceId: z.ZodString;
1359
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1350
1360
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1351
1361
  feedbackSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1352
1362
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1490,7 +1500,7 @@ declare const listFeedbackResponseSchema: z.ZodObject<{
1490
1500
  scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1491
1501
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1492
1502
  timestamp: z.ZodDate;
1493
- traceId: z.ZodString;
1503
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1494
1504
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1495
1505
  feedbackSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1496
1506
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1,16 +1,16 @@
1
- import { openai } from './chunk-TM35LLTS.js';
2
1
  import { __commonJS as __commonJS$3, require_token_error as require_token_error$2, __toESM as __toESM$3 } from './chunk-FFDIK4P7.js';
3
2
  import { __commonJS as __commonJS$1, require_token_error, __toESM } from './chunk-JKBOW2U6.js';
4
3
  import { __commonJS as __commonJS$2, require_token_error as require_token_error$1, __toESM as __toESM$1 } from './chunk-FL3CBIOF.js';
5
- import { e, truncateStringByTokens, estimateTokenCount, resolveToolResultValue, formatToolResultForObserver } from './chunk-4XWJYF2O.js';
6
- import { LIST_WORKFLOWS_ROUTE, GET_WORKFLOW_BY_ID_ROUTE, LIST_WORKFLOW_RUNS_ROUTE, GET_WORKFLOW_RUN_BY_ID_ROUTE, CREATE_WORKFLOW_RUN_ROUTE, STREAM_WORKFLOW_ROUTE, START_ASYNC_WORKFLOW_ROUTE, START_WORKFLOW_RUN_ROUTE, OBSERVE_STREAM_WORKFLOW_ROUTE, RESUME_ASYNC_WORKFLOW_ROUTE, RESUME_WORKFLOW_ROUTE, RESUME_STREAM_WORKFLOW_ROUTE, CANCEL_WORKFLOW_RUN_ROUTE, STREAM_LEGACY_WORKFLOW_ROUTE, OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE } from './chunk-BMTM453F.js';
4
+ import { e, truncateStringByTokens, estimateTokenCount, resolveToolResultValue, formatToolResultForObserver } from './chunk-E6QE7LE7.js';
5
+ import { openai } from './chunk-TM35LLTS.js';
6
+ import { LIST_WORKFLOWS_ROUTE, GET_WORKFLOW_BY_ID_ROUTE, LIST_WORKFLOW_RUNS_ROUTE, GET_WORKFLOW_RUN_BY_ID_ROUTE, CREATE_WORKFLOW_RUN_ROUTE, STREAM_WORKFLOW_ROUTE, START_ASYNC_WORKFLOW_ROUTE, START_WORKFLOW_RUN_ROUTE, OBSERVE_STREAM_WORKFLOW_ROUTE, RESUME_ASYNC_WORKFLOW_ROUTE, RESUME_WORKFLOW_ROUTE, RESUME_STREAM_WORKFLOW_ROUTE, CANCEL_WORKFLOW_RUN_ROUTE, STREAM_LEGACY_WORKFLOW_ROUTE, OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE } from './chunk-HEJT65ML.js';
7
7
  import { actionIdPathParams, actionRunPathParams, streamAgentBuilderBodySchema, startAsyncAgentBuilderBodySchema, resumeAgentBuilderBodySchema, streamLegacyAgentBuilderBodySchema } from './chunk-S7PYDU5I.js';
8
8
  import { listWorkflowsResponseSchema, workflowInfoSchema, workflowRunsResponseSchema, listWorkflowRunsQuerySchema, workflowRunResultSchema, workflowRunResultQuerySchema, createWorkflowRunResponseSchema, workflowExecutionResultSchema, workflowControlResponseSchema } from './chunk-7X4P2I6L.js';
9
9
  import { streamResponseSchema } from './chunk-V7EVEI4C.js';
10
10
  import { WorkflowRegistry } from './chunk-RGI5IQDO.js';
11
11
  import { optionalRunIdSchema, runIdSchema } from './chunk-S2QK2XG2.js';
12
- import { handleError } from './chunk-P23KBWKB.js';
13
12
  import { standardSchemaToJSONSchema, createRoute, isStandardSchemaWithJSON, toStandardSchema5 } from './chunk-NMS2SC2B.js';
13
+ import { handleError } from './chunk-P23KBWKB.js';
14
14
  import { HTTPException } from './chunk-6QWQZI4Q.js';
15
15
  import { __commonJS, __export, __toESM as __toESM$2 } from './chunk-PLDDJCW6.js';
16
16
  import { Agent, isSupportedLanguageModel, tryGenerateWithJsonFallback, tryStreamWithJsonFallback, MessageList } from '@mastra/core/agent';
@@ -18037,7 +18037,7 @@ ${workingMemory}`;
18037
18037
  "Observational memory requires @mastra/core support for request-response-id-rotation. Please bump @mastra/core to a newer version."
18038
18038
  );
18039
18039
  }
18040
- const { ObservationalMemory: OMClass } = await import('./observational-memory-B25SASRW-XQ4H3EES.js');
18040
+ const { ObservationalMemory: OMClass } = await import('./observational-memory-B7AUSTEY-6LPDHZKQ.js');
18041
18041
  const onIndexObservations = this.hasRetrievalSearch(omConfig.retrieval) ? async (observation) => {
18042
18042
  await this.indexObservation(observation);
18043
18043
  } : void 0;
@@ -18925,7 +18925,7 @@ Notes:
18925
18925
  if (!effectiveConfig) return null;
18926
18926
  const engine = await this.omEngine;
18927
18927
  if (!engine) return null;
18928
- const { ObservationalMemoryProcessor } = await import('./observational-memory-B25SASRW-XQ4H3EES.js');
18928
+ const { ObservationalMemoryProcessor } = await import('./observational-memory-B7AUSTEY-6LPDHZKQ.js');
18929
18929
  return new ObservationalMemoryProcessor(engine, this);
18930
18930
  }
18931
18931
  };
@@ -30130,5 +30130,5 @@ var OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = createRoute({
30130
30130
  });
30131
30131
 
30132
30132
  export { CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE, CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE, GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE, GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE, LIST_AGENT_BUILDER_ACTIONS_ROUTE, LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE, OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE, OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE, RESUME_AGENT_BUILDER_ACTION_ROUTE, RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE, RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE, START_AGENT_BUILDER_ACTION_RUN_ROUTE, START_ASYNC_AGENT_BUILDER_ACTION_ROUTE, STREAM_AGENT_BUILDER_ACTION_ROUTE, STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE, agent_builder_exports };
30133
- //# sourceMappingURL=chunk-NC7FBHLX.js.map
30134
- //# sourceMappingURL=chunk-NC7FBHLX.js.map
30133
+ //# sourceMappingURL=chunk-2QNQQZBK.js.map
30134
+ //# sourceMappingURL=chunk-2QNQQZBK.js.map