@mastra/server 0.0.0-revert-schema-20250416221206 → 0.0.0-scorer-agentnames-conditional-20250926065249

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 (326) hide show
  1. package/CHANGELOG.md +3806 -0
  2. package/LICENSE.md +11 -42
  3. package/README.md +45 -137
  4. package/dist/chunk-2GDLSAVJ.cjs +197 -0
  5. package/dist/chunk-2GDLSAVJ.cjs.map +1 -0
  6. package/dist/{chunk-L7XE5QTW.js → chunk-4QCXUEAT.js} +11 -2
  7. package/dist/chunk-4QCXUEAT.js.map +1 -0
  8. package/dist/chunk-4RRMWXQ2.js +3522 -0
  9. package/dist/chunk-4RRMWXQ2.js.map +1 -0
  10. package/dist/chunk-5DP5XZH6.cjs +928 -0
  11. package/dist/chunk-5DP5XZH6.cjs.map +1 -0
  12. package/dist/chunk-5KRXONRF.js +104 -0
  13. package/dist/chunk-5KRXONRF.js.map +1 -0
  14. package/dist/chunk-5N724Q2T.cjs +109 -0
  15. package/dist/chunk-5N724Q2T.cjs.map +1 -0
  16. package/dist/chunk-66YYHFGF.js +761 -0
  17. package/dist/chunk-66YYHFGF.js.map +1 -0
  18. package/dist/chunk-6GMFZ5LK.js +2774 -0
  19. package/dist/chunk-6GMFZ5LK.js.map +1 -0
  20. package/dist/chunk-6IJWRJZE.js +477 -0
  21. package/dist/chunk-6IJWRJZE.js.map +1 -0
  22. package/dist/chunk-743UIDHI.cjs +2013 -0
  23. package/dist/chunk-743UIDHI.cjs.map +1 -0
  24. package/dist/{chunk-FV45V6WC.cjs → chunk-7NADHFD2.cjs} +3 -7
  25. package/dist/chunk-7NADHFD2.cjs.map +1 -0
  26. package/dist/chunk-A3AL7EWJ.js +83 -0
  27. package/dist/chunk-A3AL7EWJ.js.map +1 -0
  28. package/dist/chunk-AK2FXLLB.cjs +849 -0
  29. package/dist/chunk-AK2FXLLB.cjs.map +1 -0
  30. package/dist/chunk-BOVFMBXY.js +607 -0
  31. package/dist/chunk-BOVFMBXY.js.map +1 -0
  32. package/dist/chunk-CML3EOO5.cjs +587 -0
  33. package/dist/chunk-CML3EOO5.cjs.map +1 -0
  34. package/dist/chunk-CY4TP3FK.js +16 -0
  35. package/dist/chunk-CY4TP3FK.js.map +1 -0
  36. package/dist/chunk-EMMSS5I5.cjs +37 -0
  37. package/dist/chunk-EMMSS5I5.cjs.map +1 -0
  38. package/dist/chunk-EMNGA4R4.js +845 -0
  39. package/dist/chunk-EMNGA4R4.js.map +1 -0
  40. package/dist/chunk-FALVL2VV.cjs +3525 -0
  41. package/dist/chunk-FALVL2VV.cjs.map +1 -0
  42. package/dist/chunk-FQNT7PI4.js +937 -0
  43. package/dist/chunk-FQNT7PI4.js.map +1 -0
  44. package/dist/chunk-G3PMV62Z.js +33 -0
  45. package/dist/chunk-G3PMV62Z.js.map +1 -0
  46. package/dist/chunk-G4PUALCE.cjs +28 -0
  47. package/dist/chunk-G4PUALCE.cjs.map +1 -0
  48. package/dist/chunk-GU4EWMZB.cjs +769 -0
  49. package/dist/chunk-GU4EWMZB.cjs.map +1 -0
  50. package/dist/chunk-HJQKWRKQ.cjs +764 -0
  51. package/dist/chunk-HJQKWRKQ.cjs.map +1 -0
  52. package/dist/chunk-HVBBFCDH.cjs +2321 -0
  53. package/dist/chunk-HVBBFCDH.cjs.map +1 -0
  54. package/dist/chunk-HZJRQ5L3.cjs +1411 -0
  55. package/dist/chunk-HZJRQ5L3.cjs.map +1 -0
  56. package/dist/chunk-IGFMAZZ5.cjs +1150 -0
  57. package/dist/chunk-IGFMAZZ5.cjs.map +1 -0
  58. package/dist/chunk-IOQGI4ML.js +931 -0
  59. package/dist/chunk-IOQGI4ML.js.map +1 -0
  60. package/dist/chunk-IYJW2OVQ.js +189 -0
  61. package/dist/chunk-IYJW2OVQ.js.map +1 -0
  62. package/dist/{chunk-3RVHWGWO.js → chunk-JRDEOHAJ.js} +49 -22
  63. package/dist/chunk-JRDEOHAJ.js.map +1 -0
  64. package/dist/{chunk-UV4WTEH4.js → chunk-KM7EJKXV.js} +55 -15
  65. package/dist/chunk-KM7EJKXV.js.map +1 -0
  66. package/dist/chunk-KNGXRN26.cjs +335 -0
  67. package/dist/chunk-KNGXRN26.cjs.map +1 -0
  68. package/dist/{chunk-WTHDCRMY.js → chunk-KV6VHX4V.js} +33 -8
  69. package/dist/chunk-KV6VHX4V.js.map +1 -0
  70. package/dist/chunk-LF2ZLOFP.js +767 -0
  71. package/dist/chunk-LF2ZLOFP.js.map +1 -0
  72. package/dist/chunk-LJFAAEU7.cjs +167 -0
  73. package/dist/chunk-LJFAAEU7.cjs.map +1 -0
  74. package/dist/chunk-LYPU75T6.js +1147 -0
  75. package/dist/chunk-LYPU75T6.js.map +1 -0
  76. package/dist/{chunk-TRDNDNGQ.js → chunk-MMROOK5J.js} +4 -7
  77. package/dist/chunk-MMROOK5J.js.map +1 -0
  78. package/dist/chunk-N5ID53SA.js +15712 -0
  79. package/dist/chunk-N5ID53SA.js.map +1 -0
  80. package/dist/chunk-N7F33WAD.js +2290 -0
  81. package/dist/chunk-N7F33WAD.js.map +1 -0
  82. package/dist/chunk-NG5IVLEZ.js +1012 -0
  83. package/dist/chunk-NG5IVLEZ.js.map +1 -0
  84. package/dist/chunk-NH7XUTIO.js +568 -0
  85. package/dist/chunk-NH7XUTIO.js.map +1 -0
  86. package/dist/chunk-NLWACBE7.cjs +128 -0
  87. package/dist/chunk-NLWACBE7.cjs.map +1 -0
  88. package/dist/chunk-OGW6HHVI.js +1408 -0
  89. package/dist/chunk-OGW6HHVI.js.map +1 -0
  90. package/dist/chunk-OPI3FZYH.cjs +485 -0
  91. package/dist/chunk-OPI3FZYH.cjs.map +1 -0
  92. package/dist/chunk-OZLRIVC4.cjs +588 -0
  93. package/dist/chunk-OZLRIVC4.cjs.map +1 -0
  94. package/dist/chunk-P7CIEIJ3.js +925 -0
  95. package/dist/chunk-P7CIEIJ3.js.map +1 -0
  96. package/dist/chunk-P7RBMCBE.cjs +934 -0
  97. package/dist/chunk-P7RBMCBE.cjs.map +1 -0
  98. package/dist/chunk-PPYGWINI.cjs +2777 -0
  99. package/dist/chunk-PPYGWINI.cjs.map +1 -0
  100. package/dist/{chunk-7IWQE76Z.cjs → chunk-PWTXZZTR.cjs} +37 -11
  101. package/dist/chunk-PWTXZZTR.cjs.map +1 -0
  102. package/dist/chunk-QNWXF57L.cjs +15748 -0
  103. package/dist/chunk-QNWXF57L.cjs.map +1 -0
  104. package/dist/chunk-RCHEPTZZ.js +2006 -0
  105. package/dist/chunk-RCHEPTZZ.js.map +1 -0
  106. package/dist/chunk-RE4RPXT2.cjs +18 -0
  107. package/dist/chunk-RE4RPXT2.cjs.map +1 -0
  108. package/dist/chunk-SIGXR3JT.cjs +1043 -0
  109. package/dist/chunk-SIGXR3JT.cjs.map +1 -0
  110. package/dist/chunk-SPLSYTYW.cjs +88 -0
  111. package/dist/chunk-SPLSYTYW.cjs.map +1 -0
  112. package/dist/chunk-SQY4T6EJ.js +571 -0
  113. package/dist/chunk-SQY4T6EJ.js.map +1 -0
  114. package/dist/chunk-SXENNNR7.cjs +625 -0
  115. package/dist/chunk-SXENNNR7.cjs.map +1 -0
  116. package/dist/{chunk-M56ECCHK.cjs → chunk-T3TIA3O6.cjs} +22 -19
  117. package/dist/chunk-T3TIA3O6.cjs.map +1 -0
  118. package/dist/{chunk-OPP7H5TW.js → chunk-TTHEEIZ3.js} +92 -74
  119. package/dist/chunk-TTHEEIZ3.js.map +1 -0
  120. package/dist/chunk-TVSIG4JE.cjs +940 -0
  121. package/dist/chunk-TVSIG4JE.cjs.map +1 -0
  122. package/dist/chunk-VY4ENABS.cjs +135 -0
  123. package/dist/chunk-VY4ENABS.cjs.map +1 -0
  124. package/dist/{chunk-4JINXASC.js → chunk-WHN4VX55.js} +7 -4
  125. package/dist/chunk-WHN4VX55.js.map +1 -0
  126. package/dist/chunk-YWOK4F5A.js +131 -0
  127. package/dist/chunk-YWOK4F5A.js.map +1 -0
  128. package/dist/dist-26HWEQY6.js +3 -0
  129. package/dist/dist-26HWEQY6.js.map +1 -0
  130. package/dist/dist-3A5DXB37.cjs +20 -0
  131. package/dist/dist-3A5DXB37.cjs.map +1 -0
  132. package/dist/dist-3SJKQJGY.cjs +16 -0
  133. package/dist/dist-3SJKQJGY.cjs.map +1 -0
  134. package/dist/dist-4ZQSPE5K.js +3 -0
  135. package/dist/dist-4ZQSPE5K.js.map +1 -0
  136. package/dist/dist-5W5QNRTD.js +3 -0
  137. package/dist/dist-5W5QNRTD.js.map +1 -0
  138. package/dist/dist-653SRMPL.js +3 -0
  139. package/dist/dist-653SRMPL.js.map +1 -0
  140. package/dist/dist-6U6EFC5C.cjs +16 -0
  141. package/dist/dist-6U6EFC5C.cjs.map +1 -0
  142. package/dist/dist-7IHNNYMF.cjs +16 -0
  143. package/dist/dist-7IHNNYMF.cjs.map +1 -0
  144. package/dist/dist-B5IPRF6W.js +3 -0
  145. package/dist/dist-B5IPRF6W.js.map +1 -0
  146. package/dist/dist-EOMYFT4Y.cjs +16 -0
  147. package/dist/dist-EOMYFT4Y.cjs.map +1 -0
  148. package/dist/dist-EZZMMMNT.cjs +16 -0
  149. package/dist/dist-EZZMMMNT.cjs.map +1 -0
  150. package/dist/dist-F2ET4MNO.cjs +16 -0
  151. package/dist/dist-F2ET4MNO.cjs.map +1 -0
  152. package/dist/dist-H64VX6DE.js +3 -0
  153. package/dist/dist-H64VX6DE.js.map +1 -0
  154. package/dist/dist-HY7RMLJQ.cjs +16 -0
  155. package/dist/dist-HY7RMLJQ.cjs.map +1 -0
  156. package/dist/dist-M6S4P3FJ.js +3 -0
  157. package/dist/dist-M6S4P3FJ.js.map +1 -0
  158. package/dist/dist-NR7QSCQT.js +3 -0
  159. package/dist/dist-NR7QSCQT.js.map +1 -0
  160. package/dist/dist-QLFMCMCX.js +3 -0
  161. package/dist/dist-QLFMCMCX.js.map +1 -0
  162. package/dist/dist-UY46BFRP.js +3 -0
  163. package/dist/dist-UY46BFRP.js.map +1 -0
  164. package/dist/dist-WCQDRTIV.cjs +16 -0
  165. package/dist/dist-WCQDRTIV.cjs.map +1 -0
  166. package/dist/dist-WKYB3LTJ.cjs +16 -0
  167. package/dist/dist-WKYB3LTJ.cjs.map +1 -0
  168. package/dist/index.cjs +6 -0
  169. package/dist/index.cjs.map +1 -0
  170. package/dist/index.d.ts +1 -0
  171. package/dist/index.d.ts.map +1 -0
  172. package/dist/index.js +5 -0
  173. package/dist/index.js.map +1 -0
  174. package/dist/server/a2a/protocol.d.ts +8 -0
  175. package/dist/server/a2a/protocol.d.ts.map +1 -0
  176. package/dist/server/a2a/store.cjs +25 -0
  177. package/dist/server/a2a/store.cjs.map +1 -0
  178. package/dist/server/a2a/store.d.ts +14 -0
  179. package/dist/server/a2a/store.d.ts.map +1 -0
  180. package/dist/server/a2a/store.js +23 -0
  181. package/dist/server/a2a/store.js.map +1 -0
  182. package/dist/server/a2a/tasks.d.ts +20 -0
  183. package/dist/server/a2a/tasks.d.ts.map +1 -0
  184. package/dist/server/handlers/a2a.cjs +32 -0
  185. package/dist/server/handlers/a2a.cjs.map +1 -0
  186. package/dist/server/handlers/a2a.d.ts +68 -0
  187. package/dist/server/handlers/a2a.d.ts.map +1 -0
  188. package/dist/server/handlers/a2a.js +3 -0
  189. package/dist/server/handlers/a2a.js.map +1 -0
  190. package/dist/server/handlers/agent-builder.cjs +68 -0
  191. package/dist/server/handlers/agent-builder.cjs.map +1 -0
  192. package/dist/server/handlers/agent-builder.d.ts +88 -0
  193. package/dist/server/handlers/agent-builder.d.ts.map +1 -0
  194. package/dist/server/handlers/agent-builder.js +3 -0
  195. package/dist/server/handlers/agent-builder.js.map +1 -0
  196. package/dist/server/handlers/agents.cjs +49 -7
  197. package/dist/server/handlers/agents.cjs.map +1 -0
  198. package/dist/server/handlers/agents.d.ts +185 -6
  199. package/dist/server/handlers/agents.d.ts.map +1 -0
  200. package/dist/server/handlers/agents.js +3 -1
  201. package/dist/server/handlers/agents.js.map +1 -0
  202. package/dist/server/handlers/error.cjs +4 -2
  203. package/dist/server/handlers/error.cjs.map +1 -0
  204. package/dist/server/handlers/error.d.ts +2 -1
  205. package/dist/server/handlers/error.d.ts.map +1 -0
  206. package/dist/server/handlers/error.js +3 -1
  207. package/dist/server/handlers/error.js.map +1 -0
  208. package/dist/server/handlers/legacyWorkflows.cjs +48 -0
  209. package/dist/server/handlers/legacyWorkflows.cjs.map +1 -0
  210. package/dist/server/handlers/legacyWorkflows.d.ts +59 -0
  211. package/dist/server/handlers/legacyWorkflows.d.ts.map +1 -0
  212. package/dist/server/handlers/legacyWorkflows.js +3 -0
  213. package/dist/server/handlers/legacyWorkflows.js.map +1 -0
  214. package/dist/server/handlers/logs.cjs +6 -4
  215. package/dist/server/handlers/logs.cjs.map +1 -0
  216. package/dist/server/handlers/logs.d.ts +34 -3
  217. package/dist/server/handlers/logs.d.ts.map +1 -0
  218. package/dist/server/handlers/logs.js +3 -1
  219. package/dist/server/handlers/logs.js.map +1 -0
  220. package/dist/server/handlers/memory.cjs +39 -9
  221. package/dist/server/handlers/memory.cjs.map +1 -0
  222. package/dist/server/handlers/memory.d.ts +118 -8
  223. package/dist/server/handlers/memory.d.ts.map +1 -0
  224. package/dist/server/handlers/memory.js +3 -1
  225. package/dist/server/handlers/memory.js.map +1 -0
  226. package/dist/server/handlers/observability.cjs +20 -0
  227. package/dist/server/handlers/observability.cjs.map +1 -0
  228. package/dist/server/handlers/observability.d.ts +41 -0
  229. package/dist/server/handlers/observability.d.ts.map +1 -0
  230. package/dist/server/handlers/observability.js +3 -0
  231. package/dist/server/handlers/observability.js.map +1 -0
  232. package/dist/server/handlers/scores.cjs +32 -0
  233. package/dist/server/handlers/scores.cjs.map +1 -0
  234. package/dist/server/handlers/scores.d.ts +251 -0
  235. package/dist/server/handlers/scores.d.ts.map +1 -0
  236. package/dist/server/handlers/scores.js +3 -0
  237. package/dist/server/handlers/scores.js.map +1 -0
  238. package/dist/server/handlers/telemetry.cjs +9 -3
  239. package/dist/server/handlers/telemetry.cjs.map +1 -0
  240. package/dist/server/handlers/telemetry.d.ts +33 -2
  241. package/dist/server/handlers/telemetry.d.ts.map +1 -0
  242. package/dist/server/handlers/telemetry.js +3 -1
  243. package/dist/server/handlers/telemetry.js.map +1 -0
  244. package/dist/server/handlers/tools.cjs +11 -5
  245. package/dist/server/handlers/tools.cjs.map +1 -0
  246. package/dist/server/handlers/tools.d.ts +25 -4
  247. package/dist/server/handlers/tools.d.ts.map +1 -0
  248. package/dist/server/handlers/tools.js +3 -1
  249. package/dist/server/handlers/tools.js.map +1 -0
  250. package/dist/server/handlers/utils.cjs +8 -2
  251. package/dist/server/handlers/utils.cjs.map +1 -0
  252. package/dist/server/handlers/utils.d.ts +8 -1
  253. package/dist/server/handlers/utils.d.ts.map +1 -0
  254. package/dist/server/handlers/utils.js +3 -1
  255. package/dist/server/handlers/utils.js.map +1 -0
  256. package/dist/server/handlers/vNextNetwork.cjs +220 -0
  257. package/dist/server/handlers/vNextNetwork.cjs.map +1 -0
  258. package/dist/server/handlers/vNextNetwork.d.ts +246 -0
  259. package/dist/server/handlers/vNextNetwork.d.ts.map +1 -0
  260. package/dist/server/handlers/vNextNetwork.js +213 -0
  261. package/dist/server/handlers/vNextNetwork.js.map +1 -0
  262. package/dist/server/handlers/vector.cjs +9 -7
  263. package/dist/server/handlers/vector.cjs.map +1 -0
  264. package/dist/server/handlers/vector.d.ts +51 -6
  265. package/dist/server/handlers/vector.d.ts.map +1 -0
  266. package/dist/server/handlers/vector.js +3 -1
  267. package/dist/server/handlers/vector.js.map +1 -0
  268. package/dist/server/handlers/voice.cjs +10 -4
  269. package/dist/server/handlers/voice.cjs.map +1 -0
  270. package/dist/server/handlers/voice.d.ts +41 -3
  271. package/dist/server/handlers/voice.d.ts.map +1 -0
  272. package/dist/server/handlers/voice.js +3 -1
  273. package/dist/server/handlers/voice.js.map +1 -0
  274. package/dist/server/handlers/workflows.cjs +43 -13
  275. package/dist/server/handlers/workflows.cjs.map +1 -0
  276. package/dist/server/handlers/workflows.d.ts +82 -10
  277. package/dist/server/handlers/workflows.d.ts.map +1 -0
  278. package/dist/server/handlers/workflows.js +3 -1
  279. package/dist/server/handlers/workflows.js.map +1 -0
  280. package/dist/server/handlers.cjs +49 -27
  281. package/dist/server/handlers.cjs.map +1 -0
  282. package/dist/server/handlers.d.ts +14 -9
  283. package/dist/server/handlers.d.ts.map +1 -0
  284. package/dist/server/handlers.js +15 -9
  285. package/dist/server/handlers.js.map +1 -0
  286. package/dist/server/http-exception.d.ts +87 -0
  287. package/dist/server/http-exception.d.ts.map +1 -0
  288. package/dist/server/types.d.ts +10 -0
  289. package/dist/server/types.d.ts.map +1 -0
  290. package/dist/server/utils.d.ts +44 -0
  291. package/dist/server/utils.d.ts.map +1 -0
  292. package/package.json +51 -19
  293. package/dist/_tsup-dts-rollup.d.cts +0 -573
  294. package/dist/_tsup-dts-rollup.d.ts +0 -573
  295. package/dist/chunk-2FJURXCL.cjs +0 -213
  296. package/dist/chunk-3AHQ5RGN.js +0 -11
  297. package/dist/chunk-3EJZQ6TQ.js +0 -49
  298. package/dist/chunk-A7DF4ETD.cjs +0 -100
  299. package/dist/chunk-B64YROKU.cjs +0 -317
  300. package/dist/chunk-I6MBOQTH.js +0 -156
  301. package/dist/chunk-JLDXUWK7.cjs +0 -126
  302. package/dist/chunk-PDC4ZBQW.cjs +0 -126
  303. package/dist/chunk-QH6XWSXP.cjs +0 -5579
  304. package/dist/chunk-QN4KF3BH.cjs +0 -18
  305. package/dist/chunk-RBQASTUP.js +0 -203
  306. package/dist/chunk-SKBVVI24.cjs +0 -54
  307. package/dist/chunk-UE27Q3XD.cjs +0 -164
  308. package/dist/chunk-VK6FX47H.js +0 -5576
  309. package/dist/chunk-YANVFOYA.js +0 -120
  310. package/dist/chunk-ZLBRQFDD.cjs +0 -13
  311. package/dist/index.d.cts +0 -1
  312. package/dist/server/handlers/agents.d.cts +0 -6
  313. package/dist/server/handlers/error.d.cts +0 -1
  314. package/dist/server/handlers/logs.d.cts +0 -3
  315. package/dist/server/handlers/memory.d.cts +0 -8
  316. package/dist/server/handlers/network.cjs +0 -22
  317. package/dist/server/handlers/network.d.cts +0 -4
  318. package/dist/server/handlers/network.d.ts +0 -4
  319. package/dist/server/handlers/network.js +0 -1
  320. package/dist/server/handlers/telemetry.d.cts +0 -2
  321. package/dist/server/handlers/tools.d.cts +0 -4
  322. package/dist/server/handlers/utils.d.cts +0 -1
  323. package/dist/server/handlers/vector.d.cts +0 -6
  324. package/dist/server/handlers/voice.d.cts +0 -3
  325. package/dist/server/handlers/workflows.d.cts +0 -10
  326. package/dist/server/handlers.d.cts +0 -9
@@ -1,3 +1,41 @@
1
- export { getSpeakersHandler } from '../../_tsup-dts-rollup.js';
2
- export { generateSpeechHandler } from '../../_tsup-dts-rollup.js';
3
- export { transcribeSpeechHandler } from '../../_tsup-dts-rollup.js';
1
+ import type { Agent } from '@mastra/core/agent';
2
+ import type { RuntimeContext } from '@mastra/core/runtime-context';
3
+ import type { Context } from '../types.js';
4
+ interface VoiceContext extends Context {
5
+ agentId?: string;
6
+ runtimeContext?: RuntimeContext;
7
+ }
8
+ /**
9
+ * Get available speakers for an agent
10
+ */
11
+ export declare function getSpeakersHandler({ mastra, agentId, runtimeContext }: VoiceContext): Promise<{
12
+ voiceId: string;
13
+ }[]>;
14
+ /**
15
+ * Generate speech from text
16
+ */
17
+ export declare function generateSpeechHandler({ mastra, agentId, body, runtimeContext, }: VoiceContext & {
18
+ body?: {
19
+ text?: string;
20
+ speakerId?: string;
21
+ };
22
+ }): Promise<NodeJS.ReadableStream>;
23
+ /**
24
+ * Transcribe speech to text
25
+ */
26
+ export declare function transcribeSpeechHandler({ mastra, agentId, body, runtimeContext, }: VoiceContext & {
27
+ body?: {
28
+ audioData?: Buffer;
29
+ options?: Parameters<NonNullable<Agent['voice']>['listen']>[1];
30
+ };
31
+ }): Promise<{
32
+ text: string | void | NodeJS.ReadableStream;
33
+ }>;
34
+ /**
35
+ * Get available listeners for an agent
36
+ */
37
+ export declare function getListenerHandler({ mastra, agentId, runtimeContext }: VoiceContext): Promise<{
38
+ enabled: boolean;
39
+ }>;
40
+ export {};
41
+ //# sourceMappingURL=voice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/voice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKxC,UAAU,YAAa,SAAQ,OAAO;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,YAAY;;KAuBzF;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,EAC1C,MAAM,EACN,OAAO,EACP,IAAI,EACJ,cAAc,GACf,EAAE,YAAY,GAAG;IAChB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,kCAwCA;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,OAAO,EACP,IAAI,EACJ,cAAc,GACf,EAAE,YAAY,GAAG;IAChB,IAAI,CAAC,EAAE;QACL,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAChE,CAAC;CACH;;GA+BA;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,YAAY;;GAuBzF"}
@@ -1 +1,3 @@
1
- export { generateSpeechHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-3RVHWGWO.js';
1
+ export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-JRDEOHAJ.js';
2
+ //# sourceMappingURL=voice.js.map
3
+ //# sourceMappingURL=voice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"voice.js"}
@@ -1,46 +1,76 @@
1
1
  'use strict';
2
2
 
3
- var chunkB64YROKU_cjs = require('../../chunk-B64YROKU.cjs');
3
+ var chunkCML3EOO5_cjs = require('../../chunk-CML3EOO5.cjs');
4
4
 
5
5
 
6
6
 
7
- Object.defineProperty(exports, "createRunHandler", {
7
+ Object.defineProperty(exports, "cancelWorkflowRunHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkB64YROKU_cjs.createRunHandler; }
9
+ get: function () { return chunkCML3EOO5_cjs.cancelWorkflowRunHandler; }
10
+ });
11
+ Object.defineProperty(exports, "createWorkflowRunHandler", {
12
+ enumerable: true,
13
+ get: function () { return chunkCML3EOO5_cjs.createWorkflowRunHandler; }
10
14
  });
11
15
  Object.defineProperty(exports, "getWorkflowByIdHandler", {
12
16
  enumerable: true,
13
- get: function () { return chunkB64YROKU_cjs.getWorkflowByIdHandler; }
17
+ get: function () { return chunkCML3EOO5_cjs.getWorkflowByIdHandler; }
18
+ });
19
+ Object.defineProperty(exports, "getWorkflowRunByIdHandler", {
20
+ enumerable: true,
21
+ get: function () { return chunkCML3EOO5_cjs.getWorkflowRunByIdHandler; }
14
22
  });
15
- Object.defineProperty(exports, "getWorkflowRunHandler", {
23
+ Object.defineProperty(exports, "getWorkflowRunExecutionResultHandler", {
16
24
  enumerable: true,
17
- get: function () { return chunkB64YROKU_cjs.getWorkflowRunHandler; }
25
+ get: function () { return chunkCML3EOO5_cjs.getWorkflowRunExecutionResultHandler; }
18
26
  });
19
27
  Object.defineProperty(exports, "getWorkflowRunsHandler", {
20
28
  enumerable: true,
21
- get: function () { return chunkB64YROKU_cjs.getWorkflowRunsHandler; }
29
+ get: function () { return chunkCML3EOO5_cjs.getWorkflowRunsHandler; }
22
30
  });
23
31
  Object.defineProperty(exports, "getWorkflowsHandler", {
24
32
  enumerable: true,
25
- get: function () { return chunkB64YROKU_cjs.getWorkflowsHandler; }
33
+ get: function () { return chunkCML3EOO5_cjs.getWorkflowsHandler; }
34
+ });
35
+ Object.defineProperty(exports, "observeStreamWorkflowHandler", {
36
+ enumerable: true,
37
+ get: function () { return chunkCML3EOO5_cjs.observeStreamWorkflowHandler; }
26
38
  });
27
39
  Object.defineProperty(exports, "resumeAsyncWorkflowHandler", {
28
40
  enumerable: true,
29
- get: function () { return chunkB64YROKU_cjs.resumeAsyncWorkflowHandler; }
41
+ get: function () { return chunkCML3EOO5_cjs.resumeAsyncWorkflowHandler; }
42
+ });
43
+ Object.defineProperty(exports, "resumeStreamWorkflowHandler", {
44
+ enumerable: true,
45
+ get: function () { return chunkCML3EOO5_cjs.resumeStreamWorkflowHandler; }
30
46
  });
31
47
  Object.defineProperty(exports, "resumeWorkflowHandler", {
32
48
  enumerable: true,
33
- get: function () { return chunkB64YROKU_cjs.resumeWorkflowHandler; }
49
+ get: function () { return chunkCML3EOO5_cjs.resumeWorkflowHandler; }
50
+ });
51
+ Object.defineProperty(exports, "sendWorkflowRunEventHandler", {
52
+ enumerable: true,
53
+ get: function () { return chunkCML3EOO5_cjs.sendWorkflowRunEventHandler; }
34
54
  });
35
55
  Object.defineProperty(exports, "startAsyncWorkflowHandler", {
36
56
  enumerable: true,
37
- get: function () { return chunkB64YROKU_cjs.startAsyncWorkflowHandler; }
57
+ get: function () { return chunkCML3EOO5_cjs.startAsyncWorkflowHandler; }
38
58
  });
39
59
  Object.defineProperty(exports, "startWorkflowRunHandler", {
40
60
  enumerable: true,
41
- get: function () { return chunkB64YROKU_cjs.startWorkflowRunHandler; }
61
+ get: function () { return chunkCML3EOO5_cjs.startWorkflowRunHandler; }
62
+ });
63
+ Object.defineProperty(exports, "streamVNextWorkflowHandler", {
64
+ enumerable: true,
65
+ get: function () { return chunkCML3EOO5_cjs.streamVNextWorkflowHandler; }
66
+ });
67
+ Object.defineProperty(exports, "streamWorkflowHandler", {
68
+ enumerable: true,
69
+ get: function () { return chunkCML3EOO5_cjs.streamWorkflowHandler; }
42
70
  });
43
71
  Object.defineProperty(exports, "watchWorkflowHandler", {
44
72
  enumerable: true,
45
- get: function () { return chunkB64YROKU_cjs.watchWorkflowHandler; }
73
+ get: function () { return chunkCML3EOO5_cjs.watchWorkflowHandler; }
46
74
  });
75
+ //# sourceMappingURL=workflows.cjs.map
76
+ //# sourceMappingURL=workflows.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"workflows.cjs"}
@@ -1,10 +1,82 @@
1
- export { getWorkflowsHandler } from '../../_tsup-dts-rollup.js';
2
- export { getWorkflowByIdHandler } from '../../_tsup-dts-rollup.js';
3
- export { startAsyncWorkflowHandler } from '../../_tsup-dts-rollup.js';
4
- export { getWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
5
- export { createRunHandler } from '../../_tsup-dts-rollup.js';
6
- export { startWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
7
- export { watchWorkflowHandler } from '../../_tsup-dts-rollup.js';
8
- export { resumeAsyncWorkflowHandler } from '../../_tsup-dts-rollup.js';
9
- export { resumeWorkflowHandler } from '../../_tsup-dts-rollup.js';
10
- export { getWorkflowRunsHandler } from '../../_tsup-dts-rollup.js';
1
+ import { ReadableStream } from 'node:stream/web';
2
+ import type { RuntimeContext } from '@mastra/core/di';
3
+ import type { WorkflowRuns } from '@mastra/core/storage';
4
+ import type { Workflow, WatchEvent, WorkflowInfo, StreamEvent } from '@mastra/core/workflows';
5
+ import type { Context } from '../types.js';
6
+ export interface WorkflowContext extends Context {
7
+ workflowId?: string;
8
+ runId?: string;
9
+ }
10
+ export declare function getWorkflowsHandler({ mastra }: WorkflowContext): Promise<Record<string, WorkflowInfo>>;
11
+ export declare function getWorkflowByIdHandler({ mastra, workflowId }: WorkflowContext): Promise<WorkflowInfo>;
12
+ export declare function getWorkflowRunByIdHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReturnType<Workflow['getWorkflowRunById']>>;
13
+ export declare function getWorkflowRunExecutionResultHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<WatchEvent['payload']['workflowState']>;
14
+ export declare function createWorkflowRunHandler({ mastra, workflowId, runId: prevRunId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<{
15
+ runId: string;
16
+ }>;
17
+ export declare function startAsyncWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
18
+ inputData?: unknown;
19
+ runtimeContext?: RuntimeContext;
20
+ }): Promise<import("@mastra/core").WorkflowResult<any, any, any>>;
21
+ export declare function startWorkflowRunHandler({ mastra, runtimeContext, workflowId, runId, inputData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
22
+ inputData?: unknown;
23
+ runtimeContext?: RuntimeContext;
24
+ }): Promise<{
25
+ message: string;
26
+ }>;
27
+ export declare function watchWorkflowHandler({ mastra, workflowId, runId, eventType, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
28
+ eventType?: 'watch' | 'watch-v2';
29
+ }): Promise<ReadableStream<string>>;
30
+ export declare function streamWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
31
+ inputData?: unknown;
32
+ runtimeContext?: RuntimeContext;
33
+ }): Promise<{
34
+ stream: ReadableStream<StreamEvent>;
35
+ getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<any, any, any>>;
36
+ }>;
37
+ export declare function observeStreamWorkflowHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReadableStream<StreamEvent>>;
38
+ export declare function streamVNextWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, closeOnSuspend, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
39
+ inputData?: unknown;
40
+ runtimeContext?: RuntimeContext;
41
+ closeOnSuspend?: boolean;
42
+ }): Promise<import("@mastra/core").MastraWorkflowStream<any, any, any>>;
43
+ export declare function resumeAsyncWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
44
+ body: {
45
+ step: string | string[];
46
+ resumeData?: unknown;
47
+ };
48
+ runtimeContext?: RuntimeContext;
49
+ }): Promise<import("@mastra/core").WorkflowResult<any, any, any>>;
50
+ export declare function resumeWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
51
+ body: {
52
+ step: string | string[];
53
+ resumeData?: unknown;
54
+ };
55
+ runtimeContext?: RuntimeContext;
56
+ }): Promise<{
57
+ message: string;
58
+ }>;
59
+ export declare function resumeStreamWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
60
+ body: {
61
+ step: string | string[];
62
+ resumeData?: unknown;
63
+ };
64
+ runtimeContext?: RuntimeContext;
65
+ }): Promise<import("@mastra/core").MastraWorkflowStream<any, any, any>>;
66
+ export declare function getWorkflowRunsHandler({ mastra, workflowId, fromDate, toDate, limit, offset, resourceId, }: WorkflowContext & {
67
+ fromDate?: Date;
68
+ toDate?: Date;
69
+ limit?: number;
70
+ offset?: number;
71
+ resourceId?: string;
72
+ }): Promise<WorkflowRuns>;
73
+ export declare function cancelWorkflowRunHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<{
74
+ message: string;
75
+ }>;
76
+ export declare function sendWorkflowRunEventHandler({ mastra, workflowId, runId, event, data, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
77
+ event: string;
78
+ data: unknown;
79
+ }): Promise<{
80
+ message: string;
81
+ }>;
82
+ //# sourceMappingURL=workflows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/workflows.ts"],"names":[],"mappings":"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"}
@@ -1 +1,3 @@
1
- export { createRunHandler, getWorkflowByIdHandler, getWorkflowRunHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, watchWorkflowHandler } from '../../chunk-OPP7H5TW.js';
1
+ export { cancelWorkflowRunHandler, createWorkflowRunHandler, getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunExecutionResultHandler, getWorkflowRunsHandler, getWorkflowsHandler, observeStreamWorkflowHandler, resumeAsyncWorkflowHandler, resumeStreamWorkflowHandler, resumeWorkflowHandler, sendWorkflowRunEventHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamVNextWorkflowHandler, streamWorkflowHandler, watchWorkflowHandler } from '../../chunk-NH7XUTIO.js';
2
+ //# sourceMappingURL=workflows.js.map
3
+ //# sourceMappingURL=workflows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"workflows.js"}
@@ -1,50 +1,72 @@
1
1
  'use strict';
2
2
 
3
- var chunkPDC4ZBQW_cjs = require('../chunk-PDC4ZBQW.cjs');
4
- var chunkM56ECCHK_cjs = require('../chunk-M56ECCHK.cjs');
5
- var chunkA7DF4ETD_cjs = require('../chunk-A7DF4ETD.cjs');
6
- var chunkB64YROKU_cjs = require('../chunk-B64YROKU.cjs');
7
- var chunkUE27Q3XD_cjs = require('../chunk-UE27Q3XD.cjs');
8
- var chunkSKBVVI24_cjs = require('../chunk-SKBVVI24.cjs');
9
- var chunk2FJURXCL_cjs = require('../chunk-2FJURXCL.cjs');
10
- var chunkJLDXUWK7_cjs = require('../chunk-JLDXUWK7.cjs');
11
- var chunk7IWQE76Z_cjs = require('../chunk-7IWQE76Z.cjs');
3
+ var chunkT3TIA3O6_cjs = require('../chunk-T3TIA3O6.cjs');
4
+ var chunkNLWACBE7_cjs = require('../chunk-NLWACBE7.cjs');
5
+ var chunkSPLSYTYW_cjs = require('../chunk-SPLSYTYW.cjs');
6
+ var chunkOZLRIVC4_cjs = require('../chunk-OZLRIVC4.cjs');
7
+ var chunk5N724Q2T_cjs = require('../chunk-5N724Q2T.cjs');
8
+ var chunk2GDLSAVJ_cjs = require('../chunk-2GDLSAVJ.cjs');
9
+ var chunkPWTXZZTR_cjs = require('../chunk-PWTXZZTR.cjs');
10
+ var chunkLJFAAEU7_cjs = require('../chunk-LJFAAEU7.cjs');
11
+ var chunkOPI3FZYH_cjs = require('../chunk-OPI3FZYH.cjs');
12
+ var chunkQNWXF57L_cjs = require('../chunk-QNWXF57L.cjs');
13
+ var chunkCML3EOO5_cjs = require('../chunk-CML3EOO5.cjs');
14
+ var chunkSXENNNR7_cjs = require('../chunk-SXENNNR7.cjs');
15
+ var chunkKNGXRN26_cjs = require('../chunk-KNGXRN26.cjs');
12
16
 
13
17
 
14
18
 
15
- Object.defineProperty(exports, "tools", {
16
- enumerable: true,
17
- get: function () { return chunkPDC4ZBQW_cjs.tools_exports; }
18
- });
19
19
  Object.defineProperty(exports, "vector", {
20
20
  enumerable: true,
21
- get: function () { return chunkM56ECCHK_cjs.vector_exports; }
21
+ get: function () { return chunkT3TIA3O6_cjs.vector_exports; }
22
22
  });
23
23
  Object.defineProperty(exports, "voice", {
24
24
  enumerable: true,
25
- get: function () { return chunkA7DF4ETD_cjs.voice_exports; }
25
+ get: function () { return chunkNLWACBE7_cjs.voice_exports; }
26
26
  });
27
- Object.defineProperty(exports, "workflows", {
27
+ Object.defineProperty(exports, "logs", {
28
28
  enumerable: true,
29
- get: function () { return chunkB64YROKU_cjs.workflows_exports; }
29
+ get: function () { return chunkSPLSYTYW_cjs.logs_exports; }
30
30
  });
31
- Object.defineProperty(exports, "agents", {
31
+ Object.defineProperty(exports, "memory", {
32
32
  enumerable: true,
33
- get: function () { return chunkUE27Q3XD_cjs.agents_exports; }
33
+ get: function () { return chunkOZLRIVC4_cjs.memory_exports; }
34
34
  });
35
- Object.defineProperty(exports, "logs", {
35
+ Object.defineProperty(exports, "observability", {
36
36
  enumerable: true,
37
- get: function () { return chunkSKBVVI24_cjs.logs_exports; }
37
+ get: function () { return chunk5N724Q2T_cjs.observability_exports; }
38
38
  });
39
- Object.defineProperty(exports, "memory", {
39
+ Object.defineProperty(exports, "scores", {
40
40
  enumerable: true,
41
- get: function () { return chunk2FJURXCL_cjs.memory_exports; }
41
+ get: function () { return chunk2GDLSAVJ_cjs.scores_exports; }
42
42
  });
43
- Object.defineProperty(exports, "network", {
43
+ Object.defineProperty(exports, "telemetry", {
44
44
  enumerable: true,
45
- get: function () { return chunkJLDXUWK7_cjs.network_exports; }
45
+ get: function () { return chunkPWTXZZTR_cjs.telemetry_exports; }
46
46
  });
47
- Object.defineProperty(exports, "telemetry", {
47
+ Object.defineProperty(exports, "tools", {
48
+ enumerable: true,
49
+ get: function () { return chunkLJFAAEU7_cjs.tools_exports; }
50
+ });
51
+ Object.defineProperty(exports, "a2a", {
52
+ enumerable: true,
53
+ get: function () { return chunkOPI3FZYH_cjs.a2a_exports; }
54
+ });
55
+ Object.defineProperty(exports, "agentBuilder", {
56
+ enumerable: true,
57
+ get: function () { return chunkQNWXF57L_cjs.agent_builder_exports; }
58
+ });
59
+ Object.defineProperty(exports, "workflows", {
60
+ enumerable: true,
61
+ get: function () { return chunkCML3EOO5_cjs.workflows_exports; }
62
+ });
63
+ Object.defineProperty(exports, "agents", {
64
+ enumerable: true,
65
+ get: function () { return chunkSXENNNR7_cjs.agents_exports; }
66
+ });
67
+ Object.defineProperty(exports, "legacyWorkflows", {
48
68
  enumerable: true,
49
- get: function () { return chunk7IWQE76Z_cjs.telemetry_exports; }
69
+ get: function () { return chunkKNGXRN26_cjs.legacyWorkflows_exports; }
50
70
  });
71
+ //# sourceMappingURL=handlers.cjs.map
72
+ //# sourceMappingURL=handlers.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"handlers.cjs"}
@@ -1,9 +1,14 @@
1
- export { agents } from '../_tsup-dts-rollup.js';
2
- export { logs } from '../_tsup-dts-rollup.js';
3
- export { memory } from '../_tsup-dts-rollup.js';
4
- export { network } from '../_tsup-dts-rollup.js';
5
- export { telemetry } from '../_tsup-dts-rollup.js';
6
- export { tools } from '../_tsup-dts-rollup.js';
7
- export { workflows } from '../_tsup-dts-rollup.js';
8
- export { vector } from '../_tsup-dts-rollup.js';
9
- export { voice } from '../_tsup-dts-rollup.js';
1
+ export * as agentBuilder from './handlers/agent-builder.js';
2
+ export * as agents from './handlers/agents.js';
3
+ export * as a2a from './handlers/a2a.js';
4
+ export * as legacyWorkflows from './handlers/legacyWorkflows.js';
5
+ export * as logs from './handlers/logs.js';
6
+ export * as memory from './handlers/memory.js';
7
+ export * as observability from './handlers/observability.js';
8
+ export * as scores from './handlers/scores.js';
9
+ export * as telemetry from './handlers/telemetry.js';
10
+ export * as tools from './handlers/tools.js';
11
+ export * as vector from './handlers/vector.js';
12
+ export * as voice from './handlers/voice.js';
13
+ export * as workflows from './handlers/workflows.js';
14
+ //# sourceMappingURL=handlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/server/handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC"}
@@ -1,9 +1,15 @@
1
- export { tools_exports as tools } from '../chunk-UV4WTEH4.js';
2
- export { vector_exports as vector } from '../chunk-4JINXASC.js';
3
- export { voice_exports as voice } from '../chunk-3RVHWGWO.js';
4
- export { workflows_exports as workflows } from '../chunk-OPP7H5TW.js';
5
- export { agents_exports as agents } from '../chunk-I6MBOQTH.js';
6
- export { logs_exports as logs } from '../chunk-3EJZQ6TQ.js';
7
- export { memory_exports as memory } from '../chunk-RBQASTUP.js';
8
- export { network_exports as network } from '../chunk-YANVFOYA.js';
9
- export { telemetry_exports as telemetry } from '../chunk-WTHDCRMY.js';
1
+ export { vector_exports as vector } from '../chunk-WHN4VX55.js';
2
+ export { voice_exports as voice } from '../chunk-JRDEOHAJ.js';
3
+ export { logs_exports as logs } from '../chunk-A3AL7EWJ.js';
4
+ export { memory_exports as memory } from '../chunk-SQY4T6EJ.js';
5
+ export { observability_exports as observability } from '../chunk-5KRXONRF.js';
6
+ export { scores_exports as scores } from '../chunk-IYJW2OVQ.js';
7
+ export { telemetry_exports as telemetry } from '../chunk-KV6VHX4V.js';
8
+ export { tools_exports as tools } from '../chunk-KM7EJKXV.js';
9
+ export { a2a_exports as a2a } from '../chunk-6IJWRJZE.js';
10
+ export { agent_builder_exports as agentBuilder } from '../chunk-N5ID53SA.js';
11
+ export { workflows_exports as workflows } from '../chunk-NH7XUTIO.js';
12
+ export { agents_exports as agents } from '../chunk-BOVFMBXY.js';
13
+ export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-TTHEEIZ3.js';
14
+ //# sourceMappingURL=handlers.js.map
15
+ //# sourceMappingURL=handlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"handlers.js"}
@@ -0,0 +1,87 @@
1
+ /**
2
+ * @module
3
+ * This module provides the `HTTPException` class.
4
+ */
5
+ type InfoStatusCode = 100 | 101 | 102 | 103;
6
+ type SuccessStatusCode = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226;
7
+ type DeprecatedStatusCode = 305 | 306;
8
+ type RedirectStatusCode = 300 | 301 | 302 | 303 | 304 | DeprecatedStatusCode | 307 | 308;
9
+ type ClientErrorStatusCode = 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451;
10
+ type ServerErrorStatusCode = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511;
11
+ /**
12
+ * `UnofficialStatusCode` can be used to specify an unofficial status code.
13
+ * @example
14
+ *
15
+ * ```ts
16
+ * app.get('/unknown', (c) => {
17
+ * return c.text("Unknown Error", 520 as UnofficialStatusCode)
18
+ * })
19
+ * ```
20
+ */
21
+ export type UnofficialStatusCode = -1;
22
+ /**
23
+ * @deprecated
24
+ * Use `UnofficialStatusCode` instead.
25
+ */
26
+ export type UnOfficalStatusCode = UnofficialStatusCode;
27
+ /**
28
+ * If you want to use an unofficial status, use `UnofficialStatusCode`.
29
+ */
30
+ export type StatusCode = InfoStatusCode | SuccessStatusCode | RedirectStatusCode | ClientErrorStatusCode | ServerErrorStatusCode | UnofficialStatusCode;
31
+ /**
32
+ * Options for creating an `HTTPException`.
33
+ * @property res - Optional response object to use.
34
+ * @property message - Optional custom error message.
35
+ * @property cause - Optional cause of the error.
36
+ * @property stack - Optional stack trace for the error.
37
+ */
38
+ type HTTPExceptionOptions = {
39
+ res?: Response;
40
+ message?: string;
41
+ cause?: unknown;
42
+ stack?: string;
43
+ };
44
+ /**
45
+ * `HTTPException` must be used when a fatal error such as authentication failure occurs.
46
+ *
47
+ * @see {@link https://hono.dev/docs/api/exception}
48
+ *
49
+ * @param {StatusCode} status - status code of HTTPException
50
+ * @param {HTTPExceptionOptions} options - options of HTTPException
51
+ * @param {HTTPExceptionOptions["res"]} options.res - response of options of HTTPException
52
+ * @param {HTTPExceptionOptions["message"]} options.message - message of options of HTTPException
53
+ * @param {HTTPExceptionOptions["cause"]} options.cause - cause of options of HTTPException
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * import { HTTPException } from 'hono/http-exception'
58
+ *
59
+ * // ...
60
+ *
61
+ * app.post('/auth', async (c, next) => {
62
+ * // authentication
63
+ * if (authorized === false) {
64
+ * throw new HTTPException(401, { message: 'Custom error message' })
65
+ * }
66
+ * await next()
67
+ * })
68
+ * ```
69
+ */
70
+ export declare class HTTPException extends Error {
71
+ readonly res?: Response;
72
+ readonly status: StatusCode;
73
+ /**
74
+ * Creates an instance of `HTTPException`.
75
+ * @param status - HTTP status code for the exception. Defaults to 500.
76
+ * @param options - Additional options for the exception.
77
+ */
78
+ constructor(status?: StatusCode, options?: HTTPExceptionOptions);
79
+ /**
80
+ * Returns the response object associated with the exception.
81
+ * If a response object is not provided, a new response is created with the error message and status code.
82
+ * @returns The response object.
83
+ */
84
+ getResponse(): Response;
85
+ }
86
+ export {};
87
+ //# sourceMappingURL=http-exception.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-exception.d.ts","sourceRoot":"","sources":["../../src/server/http-exception.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,KAAK,cAAc,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAC5C,KAAK,iBAAiB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACnF,KAAK,oBAAoB,GAAG,GAAG,GAAG,GAAG,CAAC;AACtC,KAAK,kBAAkB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,oBAAoB,GAAG,GAAG,GAAG,GAAG,CAAC;AACzF,KAAK,qBAAqB,GACtB,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAC;AACR,KAAK,qBAAqB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE7F;;;;;;;;;GASG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,CAAC;AAEtC;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,qBAAqB,GACrB,oBAAoB,CAAC;AAEzB;;;;;;GAMG;AACH,KAAK,oBAAoB,GAAG;IAC1B,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACtC,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAE5B;;;;OAIG;gBACS,MAAM,GAAE,UAAgB,EAAE,OAAO,CAAC,EAAE,oBAAoB;IAOpE;;;;OAIG;IACH,WAAW,IAAI,QAAQ;CAYxB"}
@@ -0,0 +1,10 @@
1
+ import type { MastraError } from '@mastra/core/error';
2
+ import type { Mastra } from '@mastra/core/mastra';
3
+ export interface ApiError extends MastraError {
4
+ message: string;
5
+ status?: number;
6
+ }
7
+ export interface Context {
8
+ mastra: Mastra;
9
+ }
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,WAAW,QAAS,SAAQ,WAAW;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,44 @@
1
+ import type { SystemMessage } from '@mastra/core';
2
+ import type { Workflow, WorkflowInfo } from '@mastra/core/workflows';
3
+ export declare function getWorkflowInfo(workflow: Workflow): WorkflowInfo;
4
+ /**
5
+ * Workflow Registry for temporarily registering additional workflows
6
+ * that are not part of the user's Mastra instance (e.g., internal template workflows)
7
+ */
8
+ export declare class WorkflowRegistry {
9
+ private static additionalWorkflows;
10
+ /**
11
+ * Register a workflow temporarily
12
+ */
13
+ static registerTemporaryWorkflow(id: string, workflow: Workflow): void;
14
+ /**
15
+ * Register all workflows from map
16
+ */
17
+ static registerTemporaryWorkflows(workflows: Record<string, Workflow>, mastra?: any): void;
18
+ /**
19
+ * Get a workflow by ID from the registry (returns undefined if not found)
20
+ */
21
+ static getWorkflow(workflowId: string): Workflow | undefined;
22
+ /**
23
+ * Get all workflows from the registry
24
+ */
25
+ static getAllWorkflows(): Record<string, Workflow>;
26
+ /**
27
+ * Clean up a temporary workflow
28
+ */
29
+ static cleanupTemporaryWorkflow(workflowId: string): void;
30
+ /**
31
+ * Clean up all registered workflows
32
+ */
33
+ static cleanup(): void;
34
+ /**
35
+ * Check if a workflow ID is a valid agent-builder workflow
36
+ */
37
+ static isAgentBuilderWorkflow(workflowId: string): boolean;
38
+ /**
39
+ * Get all registered temporary workflow IDs (for debugging)
40
+ */
41
+ static getRegisteredWorkflowIds(): string[];
42
+ }
43
+ export declare function convertInstructionsToString(message: SystemMessage): string;
44
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/server/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,KAAK,EAAqB,QAAQ,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AA0BxF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,YAAY,CAqBhE;AAED;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAgC;IAElE;;OAEG;IACH,MAAM,CAAC,yBAAyB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAItE;;OAEG;IACH,MAAM,CAAC,0BAA0B,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,IAAI;IAmB1F;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS;IAI5D;;OAEG;IACH,MAAM,CAAC,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC;IAIlD;;OAEG;IACH,MAAM,CAAC,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAGzD;;OAEG;IACH,MAAM,CAAC,OAAO,IAAI,IAAI;IAKtB;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAI1D;;OAEG;IACH,MAAM,CAAC,wBAAwB,IAAI,MAAM,EAAE;CAG5C;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAwB1E"}