@mastra/server 1.0.4 → 1.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/CHANGELOG.md +169 -0
  2. package/a2a/store.d.ts +1 -0
  3. package/auth.d.ts +1 -0
  4. package/dist/{chunk-3REGEJEN.js → chunk-24SISJRB.js} +6 -6
  5. package/dist/chunk-24SISJRB.js.map +1 -0
  6. package/dist/{chunk-UK4FZWNW.cjs → chunk-2HAVULC2.cjs} +52 -53
  7. package/dist/chunk-2HAVULC2.cjs.map +1 -0
  8. package/dist/{chunk-MPUVSOEU.cjs → chunk-2HOMKKY4.cjs} +21 -15
  9. package/dist/chunk-2HOMKKY4.cjs.map +1 -0
  10. package/dist/{chunk-HCVDHEDD.cjs → chunk-37DO73XV.cjs} +217 -167
  11. package/dist/chunk-37DO73XV.cjs.map +1 -0
  12. package/dist/chunk-3AZY5AWI.js +689 -0
  13. package/dist/chunk-3AZY5AWI.js.map +1 -0
  14. package/dist/{chunk-KKY4MSZO.js → chunk-3OIJLD3O.js} +30 -11
  15. package/dist/chunk-3OIJLD3O.js.map +1 -0
  16. package/dist/{chunk-2CLS2PYJ.js → chunk-3QUACCLU.js} +398 -56
  17. package/dist/chunk-3QUACCLU.js.map +1 -0
  18. package/dist/{chunk-T4SPG2GP.cjs → chunk-4HFYR562.cjs} +4 -4
  19. package/dist/chunk-4HFYR562.cjs.map +1 -0
  20. package/dist/{chunk-2CYGIE3E.js → chunk-4JAEBN6N.js} +212 -86
  21. package/dist/chunk-4JAEBN6N.js.map +1 -0
  22. package/dist/{chunk-AVRO3FIN.cjs → chunk-4LVJBXI2.cjs} +97 -4
  23. package/dist/chunk-4LVJBXI2.cjs.map +1 -0
  24. package/dist/{chunk-PNZQCQY4.cjs → chunk-6G2RQWKA.cjs} +15 -15
  25. package/dist/chunk-6G2RQWKA.cjs.map +1 -0
  26. package/dist/chunk-6KC345IN.cjs +708 -0
  27. package/dist/chunk-6KC345IN.cjs.map +1 -0
  28. package/dist/{chunk-4EYONQIW.cjs → chunk-7D3UAMQM.cjs} +4 -4
  29. package/dist/chunk-7D3UAMQM.cjs.map +1 -0
  30. package/dist/{chunk-I27H7BEB.js → chunk-7XIMPDJV.js} +9 -6
  31. package/dist/chunk-7XIMPDJV.js.map +1 -0
  32. package/dist/{chunk-33CKPQS4.cjs → chunk-A2K5ZL47.cjs} +36 -16
  33. package/dist/chunk-A2K5ZL47.cjs.map +1 -0
  34. package/dist/chunk-AAHPYUEC.cjs +211 -0
  35. package/dist/chunk-AAHPYUEC.cjs.map +1 -0
  36. package/dist/{chunk-NUO7HPOV.cjs → chunk-AN42MFD5.cjs} +235 -109
  37. package/dist/chunk-AN42MFD5.cjs.map +1 -0
  38. package/dist/{chunk-4DJ7EJRB.cjs → chunk-AV3VZ6S3.cjs} +25 -21
  39. package/dist/chunk-AV3VZ6S3.cjs.map +1 -0
  40. package/dist/{chunk-GHQZIEPS.js → chunk-C4NZAUUW.js} +104 -54
  41. package/dist/chunk-C4NZAUUW.js.map +1 -0
  42. package/dist/{chunk-7S7ALPCY.js → chunk-D5VCL56B.js} +97 -5
  43. package/dist/chunk-D5VCL56B.js.map +1 -0
  44. package/dist/chunk-DD7LYNHB.js +596 -0
  45. package/dist/chunk-DD7LYNHB.js.map +1 -0
  46. package/dist/{chunk-XB27LCKO.js → chunk-DHDVJ5II.js} +15 -9
  47. package/dist/chunk-DHDVJ5II.js.map +1 -0
  48. package/dist/{chunk-GNCALVLC.js → chunk-ED6NQBHF.js} +23 -4
  49. package/dist/chunk-ED6NQBHF.js.map +1 -0
  50. package/dist/{chunk-YK63KHHB.cjs → chunk-EKFYZUPC.cjs} +513 -168
  51. package/dist/chunk-EKFYZUPC.cjs.map +1 -0
  52. package/dist/{chunk-5VDI75UV.js → chunk-EV5H2JQU.js} +5 -4
  53. package/dist/chunk-EV5H2JQU.js.map +1 -0
  54. package/dist/{chunk-4R2Z655M.js → chunk-F2WTCJ5C.js} +145 -67
  55. package/dist/chunk-F2WTCJ5C.js.map +1 -0
  56. package/dist/{chunk-H34VRYSF.js → chunk-FCPLBTHB.js} +26 -27
  57. package/dist/chunk-FCPLBTHB.js.map +1 -0
  58. package/dist/{chunk-IVGQTL3T.js → chunk-FQX5SQO7.js} +36 -28
  59. package/dist/chunk-FQX5SQO7.js.map +1 -0
  60. package/dist/{chunk-FWSKVWS7.cjs → chunk-FRRHYZR6.cjs} +4 -4
  61. package/dist/chunk-FRRHYZR6.cjs.map +1 -0
  62. package/dist/{chunk-YN3FWKVQ.js → chunk-GUG6KRAJ.js} +10 -13
  63. package/dist/chunk-GUG6KRAJ.js.map +1 -0
  64. package/dist/{chunk-N4EIZSG2.js → chunk-GXUBQJ74.js} +15 -11
  65. package/dist/chunk-GXUBQJ74.js.map +1 -0
  66. package/dist/chunk-H66LLFDL.js +1 -1
  67. package/dist/chunk-H66LLFDL.js.map +1 -1
  68. package/dist/{chunk-QPFYN6B5.cjs → chunk-HDGF45K7.cjs} +17 -14
  69. package/dist/chunk-HDGF45K7.cjs.map +1 -0
  70. package/dist/{chunk-P3H4AZKI.cjs → chunk-HZINLMHL.cjs} +15 -15
  71. package/dist/chunk-HZINLMHL.cjs.map +1 -0
  72. package/dist/{chunk-DVSCJECS.js → chunk-IS3HHGL4.js} +6 -6
  73. package/dist/chunk-IS3HHGL4.js.map +1 -0
  74. package/dist/{chunk-XCEQ4GQW.cjs → chunk-JLFFAYTC.cjs} +53 -90
  75. package/dist/chunk-JLFFAYTC.cjs.map +1 -0
  76. package/dist/{chunk-WJ6DNHLW.cjs → chunk-JRM3DWRM.cjs} +34 -24
  77. package/dist/chunk-JRM3DWRM.cjs.map +1 -0
  78. package/dist/{chunk-LF2ZLOFP.js → chunk-K2SXZLA3.cjs} +285 -3
  79. package/dist/chunk-K2SXZLA3.cjs.map +1 -0
  80. package/dist/{chunk-XOUK3IYU.js → chunk-K4HSW5ZF.js} +4 -4
  81. package/dist/chunk-K4HSW5ZF.js.map +1 -0
  82. package/dist/{chunk-GU4EWMZB.cjs → chunk-LFNP3ACE.js} +244 -4
  83. package/dist/chunk-LFNP3ACE.js.map +1 -0
  84. package/dist/chunk-LFTVDHOD.js +200 -0
  85. package/dist/chunk-LFTVDHOD.js.map +1 -0
  86. package/dist/{chunk-ZQ2G6QKS.cjs → chunk-MZRJNOYJ.cjs} +175 -97
  87. package/dist/chunk-MZRJNOYJ.cjs.map +1 -0
  88. package/dist/{chunk-G2AMUTU4.js → chunk-OS7SAIRA.js} +6 -6
  89. package/dist/chunk-OS7SAIRA.js.map +1 -0
  90. package/dist/{chunk-L2E5RUVT.cjs → chunk-PWXUI3OG.cjs} +15 -15
  91. package/dist/chunk-PWXUI3OG.cjs.map +1 -0
  92. package/dist/{chunk-CLAEGIP5.cjs → chunk-QOVLJFLX.cjs} +14 -17
  93. package/dist/chunk-QOVLJFLX.cjs.map +1 -0
  94. package/dist/chunk-QXDNFBJQ.js +220 -0
  95. package/dist/chunk-QXDNFBJQ.js.map +1 -0
  96. package/dist/{chunk-EUBTCHQC.js → chunk-RIX6WEJ2.js} +4 -4
  97. package/dist/chunk-RIX6WEJ2.js.map +1 -0
  98. package/dist/{chunk-CGIGPJRU.js → chunk-RW66MHXI.js} +37 -70
  99. package/dist/chunk-RW66MHXI.js.map +1 -0
  100. package/dist/chunk-S4SLHUJ7.cjs +253 -0
  101. package/dist/chunk-S4SLHUJ7.cjs.map +1 -0
  102. package/dist/{chunk-7XPMKW4Y.cjs → chunk-SONAXR2M.cjs} +12 -9
  103. package/dist/chunk-SONAXR2M.cjs.map +1 -0
  104. package/dist/{chunk-FLLJIPD4.cjs → chunk-T5KH32UA.cjs} +6 -5
  105. package/dist/chunk-T5KH32UA.cjs.map +1 -0
  106. package/dist/{chunk-3FEYUHHJ.js → chunk-TCWPL26W.js} +10 -7
  107. package/dist/chunk-TCWPL26W.js.map +1 -0
  108. package/dist/chunk-TGDBGIDA.cjs +623 -0
  109. package/dist/chunk-TGDBGIDA.cjs.map +1 -0
  110. package/dist/chunk-USR6JK77.js +62 -0
  111. package/dist/chunk-USR6JK77.js.map +1 -0
  112. package/dist/{chunk-6MP2S6VI.cjs → chunk-VNHOYZ56.cjs} +56 -48
  113. package/dist/chunk-VNHOYZ56.cjs.map +1 -0
  114. package/dist/chunk-VX3VN7FN.cjs +1 -1
  115. package/dist/chunk-VX3VN7FN.cjs.map +1 -1
  116. package/dist/{chunk-AV3CN5ZR.cjs → chunk-WHC6S3VY.cjs} +36 -17
  117. package/dist/chunk-WHC6S3VY.cjs.map +1 -0
  118. package/dist/{chunk-5NFRDYFN.js → chunk-XKLJYRAA.js} +4 -4
  119. package/dist/chunk-XKLJYRAA.js.map +1 -0
  120. package/dist/{chunk-TMS4LS2J.js → chunk-XUSAKRLX.js} +26 -16
  121. package/dist/chunk-XUSAKRLX.js.map +1 -0
  122. package/dist/chunk-ZKMVCV4G.cjs +71 -0
  123. package/dist/chunk-ZKMVCV4G.cjs.map +1 -0
  124. package/dist/docs/README.md +1 -1
  125. package/dist/docs/SKILL.md +1 -1
  126. package/dist/docs/SOURCE_MAP.json +1 -1
  127. package/dist/docs/server/01-custom-adapters.md +10 -10
  128. package/dist/docs/server/02-reference.md +22 -8
  129. package/dist/server/auth/helpers.d.ts +8 -1
  130. package/dist/server/auth/helpers.d.ts.map +1 -1
  131. package/dist/server/auth/index.cjs +42 -131
  132. package/dist/server/auth/index.cjs.map +1 -1
  133. package/dist/server/auth/index.js +1 -125
  134. package/dist/server/auth/index.js.map +1 -1
  135. package/dist/server/auth/path-pattern.d.ts +43 -0
  136. package/dist/server/auth/path-pattern.d.ts.map +1 -0
  137. package/dist/server/constants.d.ts +51 -0
  138. package/dist/server/constants.d.ts.map +1 -0
  139. package/dist/server/handlers/a2a.cjs +9 -9
  140. package/dist/server/handlers/a2a.d.ts.map +1 -1
  141. package/dist/server/handlers/a2a.js +1 -1
  142. package/dist/server/handlers/agent-builder.cjs +16 -16
  143. package/dist/server/handlers/agent-builder.d.ts.map +1 -1
  144. package/dist/server/handlers/agent-builder.js +1 -1
  145. package/dist/server/handlers/agent-versions.cjs +60 -0
  146. package/dist/server/handlers/agent-versions.cjs.map +1 -0
  147. package/dist/server/handlers/agent-versions.d.ts +479 -0
  148. package/dist/server/handlers/agent-versions.d.ts.map +1 -0
  149. package/dist/server/handlers/agent-versions.js +3 -0
  150. package/dist/server/handlers/agent-versions.js.map +1 -0
  151. package/dist/server/handlers/agents.cjs +40 -28
  152. package/dist/server/handlers/agents.d.ts +58 -5
  153. package/dist/server/handlers/agents.d.ts.map +1 -1
  154. package/dist/server/handlers/agents.js +1 -1
  155. package/dist/server/handlers/logs.cjs +4 -4
  156. package/dist/server/handlers/logs.d.ts.map +1 -1
  157. package/dist/server/handlers/logs.js +1 -1
  158. package/dist/server/handlers/mcp.cjs +9 -9
  159. package/dist/server/handlers/mcp.d.ts +22 -0
  160. package/dist/server/handlers/mcp.d.ts.map +1 -1
  161. package/dist/server/handlers/mcp.js +1 -1
  162. package/dist/server/handlers/memory.cjs +25 -25
  163. package/dist/server/handlers/memory.d.ts +25 -1
  164. package/dist/server/handlers/memory.d.ts.map +1 -1
  165. package/dist/server/handlers/memory.js +1 -1
  166. package/dist/server/handlers/observability.cjs +5 -5
  167. package/dist/server/handlers/observability.d.ts +1 -0
  168. package/dist/server/handlers/observability.d.ts.map +1 -1
  169. package/dist/server/handlers/observability.js +1 -1
  170. package/dist/server/handlers/processors.cjs +4 -4
  171. package/dist/server/handlers/processors.d.ts.map +1 -1
  172. package/dist/server/handlers/processors.js +1 -1
  173. package/dist/server/handlers/scores.cjs +7 -7
  174. package/dist/server/handlers/scores.d.ts.map +1 -1
  175. package/dist/server/handlers/scores.js +1 -1
  176. package/dist/server/handlers/stored-agents.cjs +6 -6
  177. package/dist/server/handlers/stored-agents.d.ts +33 -5
  178. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  179. package/dist/server/handlers/stored-agents.js +1 -1
  180. package/dist/server/handlers/system.cjs +2 -2
  181. package/dist/server/handlers/system.d.ts.map +1 -1
  182. package/dist/server/handlers/system.js +1 -1
  183. package/dist/server/handlers/tools.cjs +6 -6
  184. package/dist/server/handlers/tools.d.ts +3 -3
  185. package/dist/server/handlers/tools.d.ts.map +1 -1
  186. package/dist/server/handlers/tools.js +1 -1
  187. package/dist/server/handlers/utils.cjs +21 -5
  188. package/dist/server/handlers/utils.d.ts +26 -0
  189. package/dist/server/handlers/utils.d.ts.map +1 -1
  190. package/dist/server/handlers/utils.js +1 -1
  191. package/dist/server/handlers/vector.cjs +13 -13
  192. package/dist/server/handlers/vector.d.ts.map +1 -1
  193. package/dist/server/handlers/vector.js +1 -1
  194. package/dist/server/handlers/voice.cjs +8 -8
  195. package/dist/server/handlers/voice.d.ts.map +1 -1
  196. package/dist/server/handlers/voice.js +1 -1
  197. package/dist/server/handlers/workflows.cjs +24 -24
  198. package/dist/server/handlers/workflows.d.ts +2 -0
  199. package/dist/server/handlers/workflows.d.ts.map +1 -1
  200. package/dist/server/handlers/workflows.js +1 -1
  201. package/dist/server/handlers/workspace.cjs +80 -0
  202. package/dist/server/handlers/workspace.cjs.map +1 -0
  203. package/dist/server/handlers/workspace.d.ts +591 -0
  204. package/dist/server/handlers/workspace.d.ts.map +1 -0
  205. package/dist/server/handlers/workspace.js +3 -0
  206. package/dist/server/handlers/workspace.js.map +1 -0
  207. package/dist/server/handlers.cjs +24 -24
  208. package/dist/server/handlers.js +12 -12
  209. package/dist/server/schemas/agent-versions.d.ts +1646 -0
  210. package/dist/server/schemas/agent-versions.d.ts.map +1 -0
  211. package/dist/server/schemas/agents.d.ts +30 -19
  212. package/dist/server/schemas/agents.d.ts.map +1 -1
  213. package/dist/server/schemas/memory.d.ts +83 -31
  214. package/dist/server/schemas/memory.d.ts.map +1 -1
  215. package/dist/server/schemas/stored-agents.d.ts +66 -8
  216. package/dist/server/schemas/stored-agents.d.ts.map +1 -1
  217. package/dist/server/schemas/workspace.d.ts +1107 -0
  218. package/dist/server/schemas/workspace.d.ts.map +1 -0
  219. package/dist/server/server-adapter/index.cjs +298 -160
  220. package/dist/server/server-adapter/index.cjs.map +1 -1
  221. package/dist/server/server-adapter/index.d.ts +56 -2
  222. package/dist/server/server-adapter/index.d.ts.map +1 -1
  223. package/dist/server/server-adapter/index.js +158 -23
  224. package/dist/server/server-adapter/index.js.map +1 -1
  225. package/dist/server/server-adapter/openapi-utils.d.ts +10 -0
  226. package/dist/server/server-adapter/openapi-utils.d.ts.map +1 -1
  227. package/dist/server/server-adapter/routes/agents.d.ts.map +1 -1
  228. package/dist/server/server-adapter/routes/index.d.ts +3 -1
  229. package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
  230. package/dist/server/server-adapter/routes/route-builder.d.ts +2 -1
  231. package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -1
  232. package/dist/server/server-adapter/routes/stored-agents.d.ts +1 -1
  233. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -1
  234. package/dist/server/server-adapter/routes/workspace.d.ts +8 -0
  235. package/dist/server/server-adapter/routes/workspace.d.ts.map +1 -0
  236. package/dist/server/utils.d.ts +13 -0
  237. package/dist/server/utils.d.ts.map +1 -1
  238. package/dist/{token-6GSAFR2W-K2BTU23I-5WBYUIGY.cjs → token-6GSAFR2W-ABXTQD64-MC4IMVOB.cjs} +9 -9
  239. package/dist/token-6GSAFR2W-ABXTQD64-MC4IMVOB.cjs.map +1 -0
  240. package/dist/{token-6GSAFR2W-VLY2XUPA-NCSASMWN.js → token-6GSAFR2W-ABXTQD64-Z6U2TA2C.js} +6 -6
  241. package/dist/token-6GSAFR2W-ABXTQD64-Z6U2TA2C.js.map +1 -0
  242. package/dist/{token-6GSAFR2W-KVDFAJ2M-EPLMGMHT.cjs → token-6GSAFR2W-F2L44NEJ-B3QIV63M.cjs} +9 -9
  243. package/dist/token-6GSAFR2W-F2L44NEJ-B3QIV63M.cjs.map +1 -0
  244. package/dist/{token-6GSAFR2W-KVDFAJ2M-VW443KIA.js → token-6GSAFR2W-F2L44NEJ-GFZ37A2V.js} +6 -6
  245. package/dist/token-6GSAFR2W-F2L44NEJ-GFZ37A2V.js.map +1 -0
  246. package/dist/{token-6GSAFR2W-VLY2XUPA-RKITWXKR.cjs → token-6GSAFR2W-WGTMOPEU-6HSZQUFZ.cjs} +9 -9
  247. package/dist/token-6GSAFR2W-WGTMOPEU-6HSZQUFZ.cjs.map +1 -0
  248. package/dist/{token-6GSAFR2W-K2BTU23I-NW33N3NU.js → token-6GSAFR2W-WGTMOPEU-JKP67ZX4.js} +6 -6
  249. package/dist/token-6GSAFR2W-WGTMOPEU-JKP67ZX4.js.map +1 -0
  250. package/dist/token-util-NEHG7TUY-4YJ4EPCL-MBTAVIJ3.js +8 -0
  251. package/dist/{token-util-NEHG7TUY-TIJ3LMSH-SGVKOKXF.js.map → token-util-NEHG7TUY-4YJ4EPCL-MBTAVIJ3.js.map} +1 -1
  252. package/dist/token-util-NEHG7TUY-4YJ4EPCL-SQ4NADRW.cjs +10 -0
  253. package/dist/{token-util-NEHG7TUY-DJYRKLRD-6TH3ODCN.cjs.map → token-util-NEHG7TUY-4YJ4EPCL-SQ4NADRW.cjs.map} +1 -1
  254. package/dist/token-util-NEHG7TUY-TV2H7N56-GGCGMPDG.js +8 -0
  255. package/dist/{token-util-NEHG7TUY-KSXDO2NO-WH6I3PH3.js.map → token-util-NEHG7TUY-TV2H7N56-GGCGMPDG.js.map} +1 -1
  256. package/dist/token-util-NEHG7TUY-TV2H7N56-R7OENTCJ.cjs +10 -0
  257. package/dist/{token-util-NEHG7TUY-KSXDO2NO-J6DEINGO.cjs.map → token-util-NEHG7TUY-TV2H7N56-R7OENTCJ.cjs.map} +1 -1
  258. package/dist/token-util-NEHG7TUY-XQP3QSPX-BL5O5N7R.cjs +10 -0
  259. package/dist/{token-util-NEHG7TUY-TIJ3LMSH-ANFISSXX.cjs.map → token-util-NEHG7TUY-XQP3QSPX-BL5O5N7R.cjs.map} +1 -1
  260. package/dist/token-util-NEHG7TUY-XQP3QSPX-YCJRRNXO.js +8 -0
  261. package/dist/{token-util-NEHG7TUY-DJYRKLRD-EACKYD4V.js.map → token-util-NEHG7TUY-XQP3QSPX-YCJRRNXO.js.map} +1 -1
  262. package/handlers/server/handlers.d.ts +1 -0
  263. package/handlers.d.ts +1 -0
  264. package/package.json +9 -7
  265. package/server-adapter.d.ts +1 -0
  266. package/dist/chunk-2CLS2PYJ.js.map +0 -1
  267. package/dist/chunk-2CYGIE3E.js.map +0 -1
  268. package/dist/chunk-33CKPQS4.cjs.map +0 -1
  269. package/dist/chunk-3FEYUHHJ.js.map +0 -1
  270. package/dist/chunk-3REGEJEN.js.map +0 -1
  271. package/dist/chunk-4DJ7EJRB.cjs.map +0 -1
  272. package/dist/chunk-4EYONQIW.cjs.map +0 -1
  273. package/dist/chunk-4R2Z655M.js.map +0 -1
  274. package/dist/chunk-5NFRDYFN.js.map +0 -1
  275. package/dist/chunk-5VDI75UV.js.map +0 -1
  276. package/dist/chunk-5W4RPVTK.cjs +0 -49
  277. package/dist/chunk-5W4RPVTK.cjs.map +0 -1
  278. package/dist/chunk-6MP2S6VI.cjs.map +0 -1
  279. package/dist/chunk-7S7ALPCY.js.map +0 -1
  280. package/dist/chunk-7XPMKW4Y.cjs.map +0 -1
  281. package/dist/chunk-AV3CN5ZR.cjs.map +0 -1
  282. package/dist/chunk-AVRO3FIN.cjs.map +0 -1
  283. package/dist/chunk-BRI4GUZ2.cjs +0 -280
  284. package/dist/chunk-BRI4GUZ2.cjs.map +0 -1
  285. package/dist/chunk-CGIGPJRU.js.map +0 -1
  286. package/dist/chunk-CLAEGIP5.cjs.map +0 -1
  287. package/dist/chunk-DVSCJECS.js.map +0 -1
  288. package/dist/chunk-EUBTCHQC.js.map +0 -1
  289. package/dist/chunk-FLLJIPD4.cjs.map +0 -1
  290. package/dist/chunk-FWSKVWS7.cjs.map +0 -1
  291. package/dist/chunk-G2AMUTU4.js.map +0 -1
  292. package/dist/chunk-GHQZIEPS.js.map +0 -1
  293. package/dist/chunk-GNCALVLC.js.map +0 -1
  294. package/dist/chunk-GU4EWMZB.cjs.map +0 -1
  295. package/dist/chunk-H34VRYSF.js.map +0 -1
  296. package/dist/chunk-HCVDHEDD.cjs.map +0 -1
  297. package/dist/chunk-I27H7BEB.js.map +0 -1
  298. package/dist/chunk-IVGQTL3T.js.map +0 -1
  299. package/dist/chunk-KKY4MSZO.js.map +0 -1
  300. package/dist/chunk-L2E5RUVT.cjs.map +0 -1
  301. package/dist/chunk-LF2ZLOFP.js.map +0 -1
  302. package/dist/chunk-MPUVSOEU.cjs.map +0 -1
  303. package/dist/chunk-N4EIZSG2.js.map +0 -1
  304. package/dist/chunk-NUO7HPOV.cjs.map +0 -1
  305. package/dist/chunk-P3H4AZKI.cjs.map +0 -1
  306. package/dist/chunk-PNZQCQY4.cjs.map +0 -1
  307. package/dist/chunk-QPFYN6B5.cjs.map +0 -1
  308. package/dist/chunk-T4SPG2GP.cjs.map +0 -1
  309. package/dist/chunk-TMS4LS2J.js.map +0 -1
  310. package/dist/chunk-UK4FZWNW.cjs.map +0 -1
  311. package/dist/chunk-WJ6DNHLW.cjs.map +0 -1
  312. package/dist/chunk-WLGJVDH4.js +0 -242
  313. package/dist/chunk-WLGJVDH4.js.map +0 -1
  314. package/dist/chunk-XB27LCKO.js.map +0 -1
  315. package/dist/chunk-XCEQ4GQW.cjs.map +0 -1
  316. package/dist/chunk-XOUK3IYU.js.map +0 -1
  317. package/dist/chunk-XWGAT2DA.js +0 -44
  318. package/dist/chunk-XWGAT2DA.js.map +0 -1
  319. package/dist/chunk-YK63KHHB.cjs.map +0 -1
  320. package/dist/chunk-YN3FWKVQ.js.map +0 -1
  321. package/dist/chunk-ZQ2G6QKS.cjs.map +0 -1
  322. package/dist/token-6GSAFR2W-K2BTU23I-5WBYUIGY.cjs.map +0 -1
  323. package/dist/token-6GSAFR2W-K2BTU23I-NW33N3NU.js.map +0 -1
  324. package/dist/token-6GSAFR2W-KVDFAJ2M-EPLMGMHT.cjs.map +0 -1
  325. package/dist/token-6GSAFR2W-KVDFAJ2M-VW443KIA.js.map +0 -1
  326. package/dist/token-6GSAFR2W-VLY2XUPA-NCSASMWN.js.map +0 -1
  327. package/dist/token-6GSAFR2W-VLY2XUPA-RKITWXKR.cjs.map +0 -1
  328. package/dist/token-util-NEHG7TUY-DJYRKLRD-6TH3ODCN.cjs +0 -10
  329. package/dist/token-util-NEHG7TUY-DJYRKLRD-EACKYD4V.js +0 -8
  330. package/dist/token-util-NEHG7TUY-KSXDO2NO-J6DEINGO.cjs +0 -10
  331. package/dist/token-util-NEHG7TUY-KSXDO2NO-WH6I3PH3.js +0 -8
  332. package/dist/token-util-NEHG7TUY-TIJ3LMSH-ANFISSXX.cjs +0 -10
  333. package/dist/token-util-NEHG7TUY-TIJ3LMSH-SGVKOKXF.js +0 -8
@@ -1,16 +1,17 @@
1
- import { __commonJS as __commonJS$3, require_token_error as require_token_error$2, __toESM as __toESM$3 } from './chunk-EUBTCHQC.js';
2
- import { __commonJS as __commonJS$2, require_token_error as require_token_error$1, __toESM as __toESM$1 } from './chunk-XOUK3IYU.js';
1
+ import { __commonJS as __commonJS$3, require_token_error as require_token_error$2, __toESM as __toESM$3 } from './chunk-RIX6WEJ2.js';
2
+ import { __commonJS as __commonJS$1, require_token_error, __toESM } from './chunk-XKLJYRAA.js';
3
+ import { __commonJS as __commonJS$2, require_token_error as require_token_error$1, __toESM as __toESM$1 } from './chunk-K4HSW5ZF.js';
3
4
  import { openai } from './chunk-LOA7RQYO.js';
4
- import { listWorkflowsResponseSchema, LIST_WORKFLOWS_ROUTE, workflowInfoSchema, GET_WORKFLOW_BY_ID_ROUTE, workflowRunsResponseSchema, listWorkflowRunsQuerySchema, LIST_WORKFLOW_RUNS_ROUTE, workflowRunResultSchema, workflowRunResultQuerySchema, GET_WORKFLOW_RUN_BY_ID_ROUTE, createWorkflowRunResponseSchema, CREATE_WORKFLOW_RUN_ROUTE, streamWorkflowBodySchema, STREAM_WORKFLOW_ROUTE, workflowExecutionResultSchema, startAsyncWorkflowBodySchema, START_ASYNC_WORKFLOW_ROUTE, workflowControlResponseSchema, START_WORKFLOW_RUN_ROUTE, OBSERVE_STREAM_WORKFLOW_ROUTE, resumeBodySchema, RESUME_ASYNC_WORKFLOW_ROUTE, RESUME_WORKFLOW_ROUTE, RESUME_STREAM_WORKFLOW_ROUTE, CANCEL_WORKFLOW_RUN_ROUTE, streamLegacyWorkflowBodySchema, STREAM_LEGACY_WORKFLOW_ROUTE, OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE } from './chunk-4R2Z655M.js';
5
- import { __commonJS as __commonJS$1, require_token_error, __toESM } from './chunk-5NFRDYFN.js';
6
- import { WorkflowRegistry } from './chunk-GNCALVLC.js';
7
- import { streamResponseSchema } from './chunk-WLGJVDH4.js';
5
+ import { listWorkflowsResponseSchema, LIST_WORKFLOWS_ROUTE, workflowInfoSchema, GET_WORKFLOW_BY_ID_ROUTE, workflowRunsResponseSchema, listWorkflowRunsQuerySchema, LIST_WORKFLOW_RUNS_ROUTE, workflowRunResultSchema, workflowRunResultQuerySchema, GET_WORKFLOW_RUN_BY_ID_ROUTE, createWorkflowRunResponseSchema, CREATE_WORKFLOW_RUN_ROUTE, streamWorkflowBodySchema, STREAM_WORKFLOW_ROUTE, workflowExecutionResultSchema, startAsyncWorkflowBodySchema, START_ASYNC_WORKFLOW_ROUTE, workflowControlResponseSchema, START_WORKFLOW_RUN_ROUTE, OBSERVE_STREAM_WORKFLOW_ROUTE, resumeBodySchema, RESUME_ASYNC_WORKFLOW_ROUTE, RESUME_WORKFLOW_ROUTE, RESUME_STREAM_WORKFLOW_ROUTE, CANCEL_WORKFLOW_RUN_ROUTE, streamLegacyWorkflowBodySchema, STREAM_LEGACY_WORKFLOW_ROUTE, OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE } from './chunk-F2WTCJ5C.js';
6
+ import { WorkflowRegistry } from './chunk-ED6NQBHF.js';
7
+ import { streamResponseSchema } from './chunk-LFNP3ACE.js';
8
8
  import { optionalRunIdSchema, runIdSchema } from './chunk-HT4LP3BO.js';
9
- import { createRoute } from './chunk-7S7ALPCY.js';
10
9
  import { handleError } from './chunk-ONN5EA7E.js';
10
+ import { createRoute } from './chunk-D5VCL56B.js';
11
11
  import { HTTPException } from './chunk-6QWQZI4Q.js';
12
12
  import { __commonJS, __export, __toESM as __toESM$2 } from './chunk-PR4QN5HX.js';
13
13
  import { Agent, isSupportedLanguageModel, tryGenerateWithJsonFallback, tryStreamWithJsonFallback, MessageList } from '@mastra/core/agent';
14
+ import { InMemoryStore } from '@mastra/core/storage';
14
15
  import z18, { z, ZodObject, ZodFirstPartyTypeKind } from 'zod';
15
16
  import * as z42 from 'zod/v4';
16
17
  import { z as z$1 } from 'zod/v4';
@@ -30,7 +31,7 @@ import { createStep, createWorkflow } from '@mastra/core/workflows';
30
31
 
31
32
  // ../../node_modules/.pnpm/ignore@7.0.5/node_modules/ignore/index.js
32
33
  var require_ignore = __commonJS({
33
- "../../node_modules/.pnpm/ignore@7.0.5/node_modules/ignore/index.js"(exports, module) {
34
+ "../../node_modules/.pnpm/ignore@7.0.5/node_modules/ignore/index.js"(exports$1, module) {
34
35
  function makeArray(subject) {
35
36
  return Array.isArray(subject) ? subject : [subject];
36
37
  }
@@ -3137,7 +3138,7 @@ var __toESM5 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
3137
3138
  mod
3138
3139
  ));
3139
3140
  var require_secure_json_parse = __commonJS5({
3140
- "../../../node_modules/.pnpm/secure-json-parse@2.7.0/node_modules/secure-json-parse/index.js"(exports, module) {
3141
+ "../../../node_modules/.pnpm/secure-json-parse@2.7.0/node_modules/secure-json-parse/index.js"(exports$1, module) {
3141
3142
  var hasBuffer = typeof Buffer !== "undefined";
3142
3143
  var suspectProtoRx4 = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/;
3143
3144
  var suspectConstructorRx4 = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
@@ -6717,7 +6718,7 @@ var __toESM32 = (mod, isNodeMode, target) => (target = mod != null ? __create2(_
6717
6718
  mod
6718
6719
  ));
6719
6720
  var require_secure_json_parse2 = __commonJS32({
6720
- "../../../node_modules/.pnpm/secure-json-parse@2.7.0/node_modules/secure-json-parse/index.js"(exports, module) {
6721
+ "../../../node_modules/.pnpm/secure-json-parse@2.7.0/node_modules/secure-json-parse/index.js"(exports$1, module) {
6721
6722
  var hasBuffer = typeof Buffer !== "undefined";
6722
6723
  var suspectProtoRx32 = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/;
6723
6724
  var suspectConstructorRx32 = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
@@ -12833,7 +12834,7 @@ function withoutTrailingSlash(url) {
12833
12834
  return url == null ? void 0 : url.replace(/\/$/, "");
12834
12835
  }
12835
12836
  var require_get_context = __commonJS$1({
12836
- "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-context.js"(exports, module) {
12837
+ "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-context.js"(exports$1, module) {
12837
12838
  var __defProp222 = Object.defineProperty;
12838
12839
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
12839
12840
  var __getOwnPropNames22 = Object.getOwnPropertyNames;
@@ -12865,7 +12866,7 @@ var require_get_context = __commonJS$1({
12865
12866
  }
12866
12867
  });
12867
12868
  var require_get_vercel_oidc_token = __commonJS$1({
12868
- "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.js"(exports, module) {
12869
+ "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.js"(exports$1, module) {
12869
12870
  var __defProp222 = Object.defineProperty;
12870
12871
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
12871
12872
  var __getOwnPropNames22 = Object.getOwnPropertyNames;
@@ -12901,8 +12902,8 @@ var require_get_vercel_oidc_token = __commonJS$1({
12901
12902
  }
12902
12903
  try {
12903
12904
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
12904
- await import('./token-util-NEHG7TUY-TIJ3LMSH-SGVKOKXF.js'),
12905
- await import('./token-6GSAFR2W-VLY2XUPA-NCSASMWN.js')
12905
+ await import('./token-util-NEHG7TUY-XQP3QSPX-YCJRRNXO.js'),
12906
+ await import('./token-6GSAFR2W-ABXTQD64-Z6U2TA2C.js')
12906
12907
  ]);
12907
12908
  if (!token || isExpired(getTokenPayload(token))) {
12908
12909
  await refreshToken();
@@ -12929,7 +12930,7 @@ ${error.message}`;
12929
12930
  }
12930
12931
  });
12931
12932
  var require_dist = __commonJS$1({
12932
- "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/index.js"(exports, module) {
12933
+ "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/index.js"(exports$1, module) {
12933
12934
  var __defProp222 = Object.defineProperty;
12934
12935
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
12935
12936
  var __getOwnPropNames22 = Object.getOwnPropertyNames;
@@ -17791,7 +17792,7 @@ function withoutTrailingSlash2(url) {
17791
17792
  return url == null ? void 0 : url.replace(/\/$/, "");
17792
17793
  }
17793
17794
  var require_get_context2 = __commonJS$2({
17794
- "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-context.js"(exports, module) {
17795
+ "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-context.js"(exports$1, module) {
17795
17796
  var __defProp222 = Object.defineProperty;
17796
17797
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
17797
17798
  var __getOwnPropNames22 = Object.getOwnPropertyNames;
@@ -17823,7 +17824,7 @@ var require_get_context2 = __commonJS$2({
17823
17824
  }
17824
17825
  });
17825
17826
  var require_get_vercel_oidc_token2 = __commonJS$2({
17826
- "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.js"(exports, module) {
17827
+ "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.js"(exports$1, module) {
17827
17828
  var __defProp222 = Object.defineProperty;
17828
17829
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
17829
17830
  var __getOwnPropNames22 = Object.getOwnPropertyNames;
@@ -17859,8 +17860,8 @@ var require_get_vercel_oidc_token2 = __commonJS$2({
17859
17860
  }
17860
17861
  try {
17861
17862
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
17862
- await import('./token-util-NEHG7TUY-KSXDO2NO-WH6I3PH3.js'),
17863
- await import('./token-6GSAFR2W-K2BTU23I-NW33N3NU.js')
17863
+ await import('./token-util-NEHG7TUY-TV2H7N56-GGCGMPDG.js'),
17864
+ await import('./token-6GSAFR2W-WGTMOPEU-JKP67ZX4.js')
17864
17865
  ]);
17865
17866
  if (!token || isExpired(getTokenPayload(token))) {
17866
17867
  await refreshToken();
@@ -17887,7 +17888,7 @@ ${error.message}`;
17887
17888
  }
17888
17889
  });
17889
17890
  var require_dist2 = __commonJS$2({
17890
- "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/index.js"(exports, module) {
17891
+ "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/index.js"(exports$1, module) {
17891
17892
  var __defProp222 = Object.defineProperty;
17892
17893
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
17893
17894
  var __getOwnPropNames22 = Object.getOwnPropertyNames;
@@ -21610,7 +21611,7 @@ ${workingMemory}`;
21610
21611
  const promise = embedFn({
21611
21612
  values: chunks,
21612
21613
  maxRetries: 3,
21613
- // @ts-ignore
21614
+ // @ts-expect-error - embedder type mismatch
21614
21615
  model: this.embedder,
21615
21616
  ...this.embedderOptions || {}
21616
21617
  });
@@ -21794,6 +21795,12 @@ ${workingMemory}`;
21794
21795
  if (!workingMemoryTemplate) {
21795
21796
  return null;
21796
21797
  }
21798
+ if (config?.readOnly) {
21799
+ return this.getReadOnlyWorkingMemoryInstruction({
21800
+ template: workingMemoryTemplate,
21801
+ data: workingMemoryData
21802
+ });
21803
+ }
21797
21804
  return this.isVNextWorkingMemoryConfig(memoryConfig) ? this.__experimental_getWorkingMemoryToolInstructionVNext({
21798
21805
  template: workingMemoryTemplate,
21799
21806
  data: workingMemoryData
@@ -21881,10 +21888,32 @@ Notes:
21881
21888
  ${template.content !== this.defaultWorkingMemoryTemplate ? `- Only store information if it's in the working memory template, do not store other information unless the user asks you to remember it, as that non-template information may be irrelevant` : `- If you're unsure whether to store something, store it (eg if the user tells you information about themselves, call updateWorkingMemory immediately to update it)
21882
21889
  `}
21883
21890
  - This system is here so that you can maintain the conversation when your context window is very short. Update your working memory because you may need it to maintain the conversation without the full conversation history
21884
- - REMEMBER: the way you update your working memory is by calling the updateWorkingMemory tool with the ${template.format === "json" ? "JSON" : "Markdown"} content. The system will store it for you. The user will not see it.
21891
+ - REMEMBER: the way you update your working memory is by calling the updateWorkingMemory tool with the ${template.format === "json" ? "JSON" : "Markdown"} content. The system will store it for you. The user will not see it.
21885
21892
  - IMPORTANT: You MUST call updateWorkingMemory in every response to a prompt where you received relevant information if that information is not already stored.
21886
21893
  - IMPORTANT: Preserve the ${template.format === "json" ? "JSON" : "Markdown"} formatting structure above while updating the content.
21887
21894
  `;
21895
+ }
21896
+ /**
21897
+ * Generate read-only working memory instructions.
21898
+ * This provides the working memory context without any tool update instructions.
21899
+ * Used when memory is in readOnly mode.
21900
+ */
21901
+ getReadOnlyWorkingMemoryInstruction({ data }) {
21902
+ return `WORKING_MEMORY_SYSTEM_INSTRUCTION (READ-ONLY):
21903
+ The following is your working memory - persistent information about the user and conversation collected over previous interactions. This data is provided for context to help you maintain continuity.
21904
+
21905
+ <working_memory_data>
21906
+ ${data || "No working memory data available."}
21907
+ </working_memory_data>
21908
+
21909
+ Guidelines:
21910
+ 1. Use this information to provide personalized and contextually relevant responses
21911
+ 2. Act naturally - don't mention this system to users. This information should inform your responses without being explicitly referenced
21912
+ 3. This memory is read-only in the current session - you cannot update it
21913
+
21914
+ Notes:
21915
+ - This system is here so that you can maintain the conversation when your context window is very short
21916
+ - The user will not see the working memory data directly`;
21888
21917
  }
21889
21918
  isVNextWorkingMemoryConfig(config) {
21890
21919
  if (!config?.workingMemory) return false;
@@ -21893,7 +21922,7 @@ ${template.content !== this.defaultWorkingMemoryTemplate ? `- Only store informa
21893
21922
  }
21894
21923
  listTools(config) {
21895
21924
  const mergedConfig = this.getMergedThreadConfig(config);
21896
- if (mergedConfig.workingMemory?.enabled) {
21925
+ if (mergedConfig.workingMemory?.enabled && !mergedConfig.readOnly) {
21897
21926
  return {
21898
21927
  updateWorkingMemory: this.isVNextWorkingMemoryConfig(mergedConfig) ? (
21899
21928
  // use the new experimental tool
@@ -25433,6 +25462,10 @@ var AgentBuilder = class extends Agent {
25433
25462
 
25434
25463
  ${config.instructions}` : "";
25435
25464
  const combinedInstructions = additionalInstructions + AgentBuilderDefaults.DEFAULT_INSTRUCTIONS(config.projectPath);
25465
+ const memory = new Memory({
25466
+ options: AgentBuilderDefaults.DEFAULT_MEMORY_CONFIG
25467
+ });
25468
+ memory.setStorage(config.storage ?? new InMemoryStore());
25436
25469
  const agentConfig = {
25437
25470
  id: "agent-builder",
25438
25471
  name: "agent-builder",
@@ -25445,9 +25478,7 @@ ${config.instructions}` : "";
25445
25478
  ...config.tools || {}
25446
25479
  };
25447
25480
  },
25448
- memory: new Memory({
25449
- options: AgentBuilderDefaults.DEFAULT_MEMORY_CONFIG
25450
- }),
25481
+ memory,
25451
25482
  inputProcessors: [
25452
25483
  // use the write to disk processor to debug the agent's context
25453
25484
  // new WriteToDiskProcessor({ prefix: 'before-filter' }),
@@ -25956,15 +25987,19 @@ var programmaticFileCopyStep = createStep({
25956
25987
  const convertNaming = (name16, convention) => {
25957
25988
  const baseName = basename(name16, extname(name16));
25958
25989
  const ext = extname(name16);
25990
+ const toWords = (s) => {
25991
+ return s.replace(/[-_]/g, " ").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/\s+/).filter(Boolean).map((w) => w.toLowerCase());
25992
+ };
25993
+ const words = toWords(baseName);
25959
25994
  switch (convention) {
25960
25995
  case "camelCase":
25961
- return baseName.replace(/[-_]/g, "").replace(/([A-Z])/g, (match, p1, offset) => offset === 0 ? p1.toLowerCase() : p1) + ext;
25996
+ return words.map((w, i) => i === 0 ? w : w.charAt(0).toUpperCase() + w.slice(1)).join("") + ext;
25962
25997
  case "snake_case":
25963
- return baseName.replace(/[-]/g, "_").replace(/([A-Z])/g, (match, p1, offset) => (offset === 0 ? "" : "_") + p1.toLowerCase()) + ext;
25998
+ return words.join("_") + ext;
25964
25999
  case "kebab-case":
25965
- return baseName.replace(/[_]/g, "-").replace(/([A-Z])/g, (match, p1, offset) => (offset === 0 ? "" : "-") + p1.toLowerCase()) + ext;
26000
+ return words.join("-") + ext;
25966
26001
  case "PascalCase":
25967
- return baseName.replace(/[-_]/g, "").replace(/^[a-z]/, (match) => match.toUpperCase()) + ext;
26002
+ return words.map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join("") + ext;
25968
26003
  default:
25969
26004
  return name16;
25970
26005
  }
@@ -28989,7 +29024,7 @@ function withoutTrailingSlash3(url) {
28989
29024
  return url == null ? void 0 : url.replace(/\/$/, "");
28990
29025
  }
28991
29026
  var require_get_context3 = __commonJS$3({
28992
- "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-context.js"(exports, module) {
29027
+ "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-context.js"(exports$1, module) {
28993
29028
  var __defProp23 = Object.defineProperty;
28994
29029
  var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
28995
29030
  var __getOwnPropNames3 = Object.getOwnPropertyNames;
@@ -29021,7 +29056,7 @@ var require_get_context3 = __commonJS$3({
29021
29056
  }
29022
29057
  });
29023
29058
  var require_get_vercel_oidc_token3 = __commonJS$3({
29024
- "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.js"(exports, module) {
29059
+ "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.js"(exports$1, module) {
29025
29060
  var __defProp23 = Object.defineProperty;
29026
29061
  var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
29027
29062
  var __getOwnPropNames3 = Object.getOwnPropertyNames;
@@ -29057,8 +29092,8 @@ var require_get_vercel_oidc_token3 = __commonJS$3({
29057
29092
  }
29058
29093
  try {
29059
29094
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
29060
- await import('./token-util-NEHG7TUY-DJYRKLRD-EACKYD4V.js'),
29061
- await import('./token-6GSAFR2W-KVDFAJ2M-VW443KIA.js')
29095
+ await import('./token-util-NEHG7TUY-4YJ4EPCL-MBTAVIJ3.js'),
29096
+ await import('./token-6GSAFR2W-F2L44NEJ-GFZ37A2V.js')
29062
29097
  ]);
29063
29098
  if (!token || isExpired(getTokenPayload(token))) {
29064
29099
  await refreshToken();
@@ -29085,7 +29120,7 @@ ${error.message}`;
29085
29120
  }
29086
29121
  });
29087
29122
  var require_dist3 = __commonJS$3({
29088
- "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/index.js"(exports, module) {
29123
+ "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/index.js"(exports$1, module) {
29089
29124
  var __defProp23 = Object.defineProperty;
29090
29125
  var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
29091
29126
  var __getOwnPropNames3 = Object.getOwnPropertyNames;
@@ -32646,12 +32681,13 @@ var startAsyncAgentBuilderBodySchema = startAsyncWorkflowBodySchema;
32646
32681
  // src/server/handlers/agent-builder.ts
32647
32682
  var LIST_AGENT_BUILDER_ACTIONS_ROUTE = createRoute({
32648
32683
  method: "GET",
32649
- path: "/api/agent-builder",
32684
+ path: "/agent-builder",
32650
32685
  responseType: "json",
32651
32686
  responseSchema: listWorkflowsResponseSchema,
32652
32687
  summary: "List agent-builder actions",
32653
32688
  description: "Returns a list of all available agent-builder actions",
32654
32689
  tags: ["Agent Builder"],
32690
+ requiresAuth: true,
32655
32691
  handler: async (ctx) => {
32656
32692
  const { mastra } = ctx;
32657
32693
  const logger = mastra.getLogger();
@@ -32669,13 +32705,14 @@ var LIST_AGENT_BUILDER_ACTIONS_ROUTE = createRoute({
32669
32705
  });
32670
32706
  var GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE = createRoute({
32671
32707
  method: "GET",
32672
- path: "/api/agent-builder/:actionId",
32708
+ path: "/agent-builder/:actionId",
32673
32709
  responseType: "json",
32674
32710
  pathParamSchema: actionIdPathParams,
32675
32711
  responseSchema: workflowInfoSchema,
32676
32712
  summary: "Get action by ID",
32677
32713
  description: "Returns details for a specific agent-builder action",
32678
32714
  tags: ["Agent Builder"],
32715
+ requiresAuth: true,
32679
32716
  handler: async (ctx) => {
32680
32717
  const { mastra, actionId } = ctx;
32681
32718
  const logger = mastra.getLogger();
@@ -32698,7 +32735,7 @@ var GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE = createRoute({
32698
32735
  });
32699
32736
  var LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE = createRoute({
32700
32737
  method: "GET",
32701
- path: "/api/agent-builder/:actionId/runs",
32738
+ path: "/agent-builder/:actionId/runs",
32702
32739
  responseType: "json",
32703
32740
  pathParamSchema: actionIdPathParams,
32704
32741
  queryParamSchema: listWorkflowRunsQuerySchema,
@@ -32706,6 +32743,7 @@ var LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE = createRoute({
32706
32743
  summary: "List action runs",
32707
32744
  description: "Returns a paginated list of execution runs for the specified action",
32708
32745
  tags: ["Agent Builder"],
32746
+ requiresAuth: true,
32709
32747
  handler: async (ctx) => {
32710
32748
  const { mastra, actionId } = ctx;
32711
32749
  const logger = mastra.getLogger();
@@ -32729,7 +32767,7 @@ var LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE = createRoute({
32729
32767
  });
32730
32768
  var GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE = createRoute({
32731
32769
  method: "GET",
32732
- path: "/api/agent-builder/:actionId/runs/:runId",
32770
+ path: "/agent-builder/:actionId/runs/:runId",
32733
32771
  responseType: "json",
32734
32772
  pathParamSchema: actionRunPathParams,
32735
32773
  queryParamSchema: workflowRunResultQuerySchema,
@@ -32737,6 +32775,7 @@ var GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE = createRoute({
32737
32775
  summary: "Get action run by ID",
32738
32776
  description: "Returns details for a specific action run with metadata and processed execution state. Use the fields query parameter to reduce payload size.",
32739
32777
  tags: ["Agent Builder"],
32778
+ requiresAuth: true,
32740
32779
  handler: async (ctx) => {
32741
32780
  const { mastra, actionId, runId } = ctx;
32742
32781
  const logger = mastra.getLogger();
@@ -32760,7 +32799,7 @@ var GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE = createRoute({
32760
32799
  });
32761
32800
  var CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
32762
32801
  method: "POST",
32763
- path: "/api/agent-builder/:actionId/create-run",
32802
+ path: "/agent-builder/:actionId/create-run",
32764
32803
  responseType: "json",
32765
32804
  pathParamSchema: actionIdPathParams,
32766
32805
  queryParamSchema: optionalRunIdSchema,
@@ -32768,6 +32807,7 @@ var CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
32768
32807
  summary: "Create action run",
32769
32808
  description: "Creates a new action execution instance with an optional custom run ID",
32770
32809
  tags: ["Agent Builder"],
32810
+ requiresAuth: true,
32771
32811
  handler: async (ctx) => {
32772
32812
  const { mastra, actionId, runId } = ctx;
32773
32813
  const logger = mastra.getLogger();
@@ -32791,7 +32831,7 @@ var CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
32791
32831
  });
32792
32832
  var STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32793
32833
  method: "POST",
32794
- path: "/api/agent-builder/:actionId/stream",
32834
+ path: "/agent-builder/:actionId/stream",
32795
32835
  responseType: "stream",
32796
32836
  pathParamSchema: actionIdPathParams,
32797
32837
  queryParamSchema: runIdSchema,
@@ -32800,6 +32840,7 @@ var STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32800
32840
  summary: "Stream action execution",
32801
32841
  description: "Executes an action and streams the results in real-time",
32802
32842
  tags: ["Agent Builder"],
32843
+ requiresAuth: true,
32803
32844
  handler: async (ctx) => {
32804
32845
  const { mastra, actionId, runId, requestContext } = ctx;
32805
32846
  const logger = mastra.getLogger();
@@ -32824,7 +32865,7 @@ var STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32824
32865
  });
32825
32866
  var START_ASYNC_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32826
32867
  method: "POST",
32827
- path: "/api/agent-builder/:actionId/start-async",
32868
+ path: "/agent-builder/:actionId/start-async",
32828
32869
  responseType: "json",
32829
32870
  pathParamSchema: actionIdPathParams,
32830
32871
  queryParamSchema: optionalRunIdSchema,
@@ -32833,6 +32874,7 @@ var START_ASYNC_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32833
32874
  summary: "Start action asynchronously",
32834
32875
  description: "Starts an action execution asynchronously without streaming results",
32835
32876
  tags: ["Agent Builder"],
32877
+ requiresAuth: true,
32836
32878
  handler: async (ctx) => {
32837
32879
  const { mastra, actionId, runId, requestContext } = ctx;
32838
32880
  const logger = mastra.getLogger();
@@ -32857,7 +32899,7 @@ var START_ASYNC_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32857
32899
  });
32858
32900
  var START_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
32859
32901
  method: "POST",
32860
- path: "/api/agent-builder/:actionId/start",
32902
+ path: "/agent-builder/:actionId/start",
32861
32903
  responseType: "json",
32862
32904
  pathParamSchema: actionIdPathParams,
32863
32905
  queryParamSchema: runIdSchema,
@@ -32866,6 +32908,7 @@ var START_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
32866
32908
  summary: "Start specific action run",
32867
32909
  description: "Starts execution of a specific action run by ID",
32868
32910
  tags: ["Agent Builder"],
32911
+ requiresAuth: true,
32869
32912
  handler: async (ctx) => {
32870
32913
  const { mastra, actionId, runId, requestContext } = ctx;
32871
32914
  const logger = mastra.getLogger();
@@ -32890,7 +32933,7 @@ var START_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
32890
32933
  });
32891
32934
  var OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32892
32935
  method: "POST",
32893
- path: "/api/agent-builder/:actionId/observe",
32936
+ path: "/agent-builder/:actionId/observe",
32894
32937
  responseType: "stream",
32895
32938
  pathParamSchema: actionIdPathParams,
32896
32939
  queryParamSchema: runIdSchema,
@@ -32898,6 +32941,7 @@ var OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32898
32941
  summary: "Observe action stream",
32899
32942
  description: "Observes and streams updates from an already running action execution",
32900
32943
  tags: ["Agent Builder"],
32944
+ requiresAuth: true,
32901
32945
  handler: async (ctx) => {
32902
32946
  const { mastra, actionId, runId } = ctx;
32903
32947
  const logger = mastra.getLogger();
@@ -32921,7 +32965,7 @@ var OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32921
32965
  });
32922
32966
  var RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32923
32967
  method: "POST",
32924
- path: "/api/agent-builder/:actionId/resume-async",
32968
+ path: "/agent-builder/:actionId/resume-async",
32925
32969
  responseType: "json",
32926
32970
  pathParamSchema: actionIdPathParams,
32927
32971
  queryParamSchema: runIdSchema,
@@ -32930,6 +32974,7 @@ var RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32930
32974
  summary: "Resume action asynchronously",
32931
32975
  description: "Resumes a suspended action execution asynchronously without streaming",
32932
32976
  tags: ["Agent Builder"],
32977
+ requiresAuth: true,
32933
32978
  handler: async (ctx) => {
32934
32979
  const { mastra, actionId, runId, step, requestContext } = ctx;
32935
32980
  const logger = mastra.getLogger();
@@ -32954,7 +32999,7 @@ var RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32954
32999
  });
32955
33000
  var RESUME_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32956
33001
  method: "POST",
32957
- path: "/api/agent-builder/:actionId/resume",
33002
+ path: "/agent-builder/:actionId/resume",
32958
33003
  responseType: "json",
32959
33004
  pathParamSchema: actionIdPathParams,
32960
33005
  queryParamSchema: runIdSchema,
@@ -32963,6 +33008,7 @@ var RESUME_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32963
33008
  summary: "Resume action",
32964
33009
  description: "Resumes a suspended action execution from a specific step",
32965
33010
  tags: ["Agent Builder"],
33011
+ requiresAuth: true,
32966
33012
  handler: async (ctx) => {
32967
33013
  const { mastra, actionId, runId, step, requestContext } = ctx;
32968
33014
  const logger = mastra.getLogger();
@@ -32987,7 +33033,7 @@ var RESUME_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32987
33033
  });
32988
33034
  var RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32989
33035
  method: "POST",
32990
- path: "/api/agent-builder/:actionId/resume-stream",
33036
+ path: "/agent-builder/:actionId/resume-stream",
32991
33037
  responseType: "stream",
32992
33038
  pathParamSchema: actionIdPathParams,
32993
33039
  queryParamSchema: runIdSchema,
@@ -32996,6 +33042,7 @@ var RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
32996
33042
  summary: "Resume action stream",
32997
33043
  description: "Resumes a suspended action execution and continues streaming results",
32998
33044
  tags: ["Agent Builder"],
33045
+ requiresAuth: true,
32999
33046
  handler: async (ctx) => {
33000
33047
  const { mastra, actionId, runId, step, requestContext } = ctx;
33001
33048
  const logger = mastra.getLogger();
@@ -33020,13 +33067,14 @@ var RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE = createRoute({
33020
33067
  });
33021
33068
  var CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
33022
33069
  method: "POST",
33023
- path: "/api/agent-builder/:actionId/runs/:runId/cancel",
33070
+ path: "/agent-builder/:actionId/runs/:runId/cancel",
33024
33071
  responseType: "json",
33025
33072
  pathParamSchema: actionRunPathParams,
33026
33073
  responseSchema: workflowControlResponseSchema,
33027
33074
  summary: "Cancel action run",
33028
33075
  description: "Cancels an in-progress action execution",
33029
33076
  tags: ["Agent Builder"],
33077
+ requiresAuth: true,
33030
33078
  handler: async (ctx) => {
33031
33079
  const { mastra, actionId, runId } = ctx;
33032
33080
  const logger = mastra.getLogger();
@@ -33050,15 +33098,16 @@ var CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE = createRoute({
33050
33098
  });
33051
33099
  var STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = createRoute({
33052
33100
  method: "POST",
33053
- path: "/api/agent-builder/:actionId/stream-legacy",
33101
+ path: "/agent-builder/:actionId/stream-legacy",
33054
33102
  responseType: "stream",
33055
33103
  pathParamSchema: actionIdPathParams,
33056
33104
  queryParamSchema: runIdSchema,
33057
33105
  bodySchema: streamLegacyAgentBuilderBodySchema,
33058
33106
  responseSchema: streamResponseSchema,
33059
33107
  summary: "[DEPRECATED] Stream agent-builder action with legacy format",
33060
- description: "Legacy endpoint for streaming agent-builder action execution. Use /api/agent-builder/:actionId/stream instead.",
33108
+ description: "Legacy endpoint for streaming agent-builder action execution. Use /agent-builder/:actionId/stream instead.",
33061
33109
  tags: ["Agent Builder", "Legacy"],
33110
+ requiresAuth: true,
33062
33111
  handler: async (ctx) => {
33063
33112
  const { mastra, actionId, runId, requestContext } = ctx;
33064
33113
  const logger = mastra.getLogger();
@@ -33083,14 +33132,15 @@ var STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = createRoute({
33083
33132
  });
33084
33133
  var OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = createRoute({
33085
33134
  method: "POST",
33086
- path: "/api/agent-builder/:actionId/observe-stream-legacy",
33135
+ path: "/agent-builder/:actionId/observe-stream-legacy",
33087
33136
  responseType: "stream",
33088
33137
  pathParamSchema: actionIdPathParams,
33089
33138
  queryParamSchema: runIdSchema,
33090
33139
  responseSchema: streamResponseSchema,
33091
33140
  summary: "[DEPRECATED] Observe agent-builder action stream with legacy format",
33092
- description: "Legacy endpoint for observing agent-builder action stream. Use /api/agent-builder/:actionId/observe instead.",
33141
+ description: "Legacy endpoint for observing agent-builder action stream. Use /agent-builder/:actionId/observe instead.",
33093
33142
  tags: ["Agent Builder", "Legacy"],
33143
+ requiresAuth: true,
33094
33144
  handler: async (ctx) => {
33095
33145
  const { mastra, actionId, runId } = ctx;
33096
33146
  const logger = mastra.getLogger();
@@ -33114,5 +33164,5 @@ var OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = createRoute({
33114
33164
  });
33115
33165
 
33116
33166
  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 };
33117
- //# sourceMappingURL=chunk-GHQZIEPS.js.map
33118
- //# sourceMappingURL=chunk-GHQZIEPS.js.map
33167
+ //# sourceMappingURL=chunk-C4NZAUUW.js.map
33168
+ //# sourceMappingURL=chunk-C4NZAUUW.js.map