@mastra/server 0.0.0-commonjs-20250414101718 → 0.0.0-consolidate-changesets-20250904042643

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 (239) hide show
  1. package/CHANGELOG.md +3447 -0
  2. package/LICENSE.md +11 -42
  3. package/README.md +48 -135
  4. package/dist/chunk-3THIIWWW.cjs +484 -0
  5. package/dist/chunk-3THIIWWW.cjs.map +1 -0
  6. package/dist/{chunk-QN4KF3BH.cjs → chunk-4QSNRCOT.cjs} +4 -2
  7. package/dist/chunk-4QSNRCOT.cjs.map +1 -0
  8. package/dist/chunk-5N6646N2.cjs +17638 -0
  9. package/dist/chunk-5N6646N2.cjs.map +1 -0
  10. package/dist/chunk-5QUKZCEF.js +476 -0
  11. package/dist/chunk-5QUKZCEF.js.map +1 -0
  12. package/dist/{chunk-FV45V6WC.cjs → chunk-7NADHFD2.cjs} +3 -7
  13. package/dist/chunk-7NADHFD2.cjs.map +1 -0
  14. package/dist/chunk-7QEJ5QG5.js +151 -0
  15. package/dist/chunk-7QEJ5QG5.js.map +1 -0
  16. package/dist/{chunk-YNSGUC2O.js → chunk-A3ZHTDWB.js} +54 -14
  17. package/dist/chunk-A3ZHTDWB.js.map +1 -0
  18. package/dist/{chunk-YANVFOYA.js → chunk-B43YAQJR.js} +58 -34
  19. package/dist/chunk-B43YAQJR.js.map +1 -0
  20. package/dist/chunk-CY4TP3FK.js +16 -0
  21. package/dist/chunk-CY4TP3FK.js.map +1 -0
  22. package/dist/chunk-E64XEGXM.cjs +598 -0
  23. package/dist/chunk-E64XEGXM.cjs.map +1 -0
  24. package/dist/chunk-EMMSS5I5.cjs +37 -0
  25. package/dist/chunk-EMMSS5I5.cjs.map +1 -0
  26. package/dist/chunk-G3PMV62Z.js +33 -0
  27. package/dist/chunk-G3PMV62Z.js.map +1 -0
  28. package/dist/chunk-GGCXLQ4J.js +17619 -0
  29. package/dist/chunk-GGCXLQ4J.js.map +1 -0
  30. package/dist/chunk-GU4EWMZB.cjs +769 -0
  31. package/dist/chunk-GU4EWMZB.cjs.map +1 -0
  32. package/dist/chunk-GUI3CROV.cjs +159 -0
  33. package/dist/chunk-GUI3CROV.cjs.map +1 -0
  34. package/dist/chunk-JGD42NME.cjs +150 -0
  35. package/dist/chunk-JGD42NME.cjs.map +1 -0
  36. package/dist/chunk-KLCYAQBL.cjs +120 -0
  37. package/dist/chunk-KLCYAQBL.cjs.map +1 -0
  38. package/dist/chunk-KNGXRN26.cjs +335 -0
  39. package/dist/chunk-KNGXRN26.cjs.map +1 -0
  40. package/dist/{chunk-DVPP5S6I.js → chunk-KV6VHX4V.js} +35 -10
  41. package/dist/chunk-KV6VHX4V.js.map +1 -0
  42. package/dist/chunk-L265APUD.cjs +69 -0
  43. package/dist/chunk-L265APUD.cjs.map +1 -0
  44. package/dist/chunk-LF2ZLOFP.js +767 -0
  45. package/dist/chunk-LF2ZLOFP.js.map +1 -0
  46. package/dist/chunk-LUPY3MQY.js +571 -0
  47. package/dist/chunk-LUPY3MQY.js.map +1 -0
  48. package/dist/{chunk-TRDNDNGQ.js → chunk-MMROOK5J.js} +4 -7
  49. package/dist/chunk-MMROOK5J.js.map +1 -0
  50. package/dist/chunk-NPE3X7FQ.cjs +88 -0
  51. package/dist/chunk-NPE3X7FQ.cjs.map +1 -0
  52. package/dist/chunk-ODGI2PKN.cjs +143 -0
  53. package/dist/chunk-ODGI2PKN.cjs.map +1 -0
  54. package/dist/{chunk-L7XE5QTW.js → chunk-OW4FX5TS.js} +3 -1
  55. package/dist/chunk-OW4FX5TS.js.map +1 -0
  56. package/dist/chunk-OZGPYA7A.js +579 -0
  57. package/dist/chunk-OZGPYA7A.js.map +1 -0
  58. package/dist/{chunk-CWSDZEZG.cjs → chunk-PWTXZZTR.cjs} +39 -13
  59. package/dist/chunk-PWTXZZTR.cjs.map +1 -0
  60. package/dist/{chunk-3RVHWGWO.js → chunk-QBWF6U7Z.js} +38 -19
  61. package/dist/chunk-QBWF6U7Z.js.map +1 -0
  62. package/dist/chunk-R7NOGUZG.js +65 -0
  63. package/dist/chunk-R7NOGUZG.js.map +1 -0
  64. package/dist/chunk-RE4RPXT2.cjs +18 -0
  65. package/dist/chunk-RE4RPXT2.cjs.map +1 -0
  66. package/dist/chunk-ROA7BCHD.js +83 -0
  67. package/dist/chunk-ROA7BCHD.js.map +1 -0
  68. package/dist/{chunk-M56ECCHK.cjs → chunk-T3TIA3O6.cjs} +22 -19
  69. package/dist/chunk-T3TIA3O6.cjs.map +1 -0
  70. package/dist/{chunk-OPP7H5TW.js → chunk-TTHEEIZ3.js} +92 -74
  71. package/dist/chunk-TTHEEIZ3.js.map +1 -0
  72. package/dist/chunk-UVKXRPMV.cjs +588 -0
  73. package/dist/chunk-UVKXRPMV.cjs.map +1 -0
  74. package/dist/chunk-V7VWD2Y2.js +126 -0
  75. package/dist/chunk-V7VWD2Y2.js.map +1 -0
  76. package/dist/{chunk-4JINXASC.js → chunk-WHN4VX55.js} +7 -4
  77. package/dist/chunk-WHN4VX55.js.map +1 -0
  78. package/dist/chunk-YFLNLDQV.cjs +163 -0
  79. package/dist/chunk-YFLNLDQV.cjs.map +1 -0
  80. package/dist/index.cjs +2 -0
  81. package/dist/index.cjs.map +1 -0
  82. package/dist/index.d.ts +1 -0
  83. package/dist/index.d.ts.map +1 -0
  84. package/dist/index.js +2 -0
  85. package/dist/index.js.map +1 -0
  86. package/dist/server/a2a/protocol.d.ts +8 -0
  87. package/dist/server/a2a/protocol.d.ts.map +1 -0
  88. package/dist/server/a2a/store.cjs +25 -0
  89. package/dist/server/a2a/store.cjs.map +1 -0
  90. package/dist/server/a2a/store.d.ts +14 -0
  91. package/dist/server/a2a/store.d.ts.map +1 -0
  92. package/dist/server/a2a/store.js +23 -0
  93. package/dist/server/a2a/store.js.map +1 -0
  94. package/dist/server/a2a/tasks.d.ts +20 -0
  95. package/dist/server/a2a/tasks.d.ts.map +1 -0
  96. package/dist/server/handlers/a2a.cjs +32 -0
  97. package/dist/server/handlers/a2a.cjs.map +1 -0
  98. package/dist/server/handlers/a2a.d.ts +68 -0
  99. package/dist/server/handlers/a2a.d.ts.map +1 -0
  100. package/dist/server/handlers/a2a.js +3 -0
  101. package/dist/server/handlers/a2a.js.map +1 -0
  102. package/dist/server/handlers/agent-builder.cjs +68 -0
  103. package/dist/server/handlers/agent-builder.cjs.map +1 -0
  104. package/dist/server/handlers/agent-builder.d.ts +87 -0
  105. package/dist/server/handlers/agent-builder.d.ts.map +1 -0
  106. package/dist/server/handlers/agent-builder.js +3 -0
  107. package/dist/server/handlers/agent-builder.js.map +1 -0
  108. package/dist/server/handlers/agents.cjs +37 -7
  109. package/dist/server/handlers/agents.cjs.map +1 -0
  110. package/dist/server/handlers/agents.d.ts +129 -6
  111. package/dist/server/handlers/agents.d.ts.map +1 -0
  112. package/dist/server/handlers/agents.js +3 -1
  113. package/dist/server/handlers/agents.js.map +1 -0
  114. package/dist/server/handlers/error.cjs +4 -2
  115. package/dist/server/handlers/error.cjs.map +1 -0
  116. package/dist/server/handlers/error.d.ts +2 -1
  117. package/dist/server/handlers/error.d.ts.map +1 -0
  118. package/dist/server/handlers/error.js +3 -1
  119. package/dist/server/handlers/error.js.map +1 -0
  120. package/dist/server/handlers/legacyWorkflows.cjs +48 -0
  121. package/dist/server/handlers/legacyWorkflows.cjs.map +1 -0
  122. package/dist/server/handlers/legacyWorkflows.d.ts +59 -0
  123. package/dist/server/handlers/legacyWorkflows.d.ts.map +1 -0
  124. package/dist/server/handlers/legacyWorkflows.js +3 -0
  125. package/dist/server/handlers/legacyWorkflows.js.map +1 -0
  126. package/dist/server/handlers/logs.cjs +6 -4
  127. package/dist/server/handlers/logs.cjs.map +1 -0
  128. package/dist/server/handlers/logs.d.ts +34 -3
  129. package/dist/server/handlers/logs.d.ts.map +1 -0
  130. package/dist/server/handlers/logs.js +3 -1
  131. package/dist/server/handlers/logs.js.map +1 -0
  132. package/dist/server/handlers/memory.cjs +39 -9
  133. package/dist/server/handlers/memory.cjs.map +1 -0
  134. package/dist/server/handlers/memory.d.ts +118 -8
  135. package/dist/server/handlers/memory.d.ts.map +1 -0
  136. package/dist/server/handlers/memory.js +3 -1
  137. package/dist/server/handlers/memory.js.map +1 -0
  138. package/dist/server/handlers/network.cjs +7 -5
  139. package/dist/server/handlers/network.cjs.map +1 -0
  140. package/dist/server/handlers/network.d.ts +50 -4
  141. package/dist/server/handlers/network.d.ts.map +1 -0
  142. package/dist/server/handlers/network.js +3 -1
  143. package/dist/server/handlers/network.js.map +1 -0
  144. package/dist/server/handlers/observability.cjs +16 -0
  145. package/dist/server/handlers/observability.cjs.map +1 -0
  146. package/dist/server/handlers/observability.d.ts +23 -0
  147. package/dist/server/handlers/observability.d.ts.map +1 -0
  148. package/dist/server/handlers/observability.js +3 -0
  149. package/dist/server/handlers/observability.js.map +1 -0
  150. package/dist/server/handlers/scores.cjs +32 -0
  151. package/dist/server/handlers/scores.cjs.map +1 -0
  152. package/dist/server/handlers/scores.d.ts +49 -0
  153. package/dist/server/handlers/scores.d.ts.map +1 -0
  154. package/dist/server/handlers/scores.js +3 -0
  155. package/dist/server/handlers/scores.js.map +1 -0
  156. package/dist/server/handlers/telemetry.cjs +9 -3
  157. package/dist/server/handlers/telemetry.cjs.map +1 -0
  158. package/dist/server/handlers/telemetry.d.ts +33 -2
  159. package/dist/server/handlers/telemetry.d.ts.map +1 -0
  160. package/dist/server/handlers/telemetry.js +3 -1
  161. package/dist/server/handlers/telemetry.js.map +1 -0
  162. package/dist/server/handlers/tools.cjs +11 -5
  163. package/dist/server/handlers/tools.cjs.map +1 -0
  164. package/dist/server/handlers/tools.d.ts +25 -4
  165. package/dist/server/handlers/tools.d.ts.map +1 -0
  166. package/dist/server/handlers/tools.js +3 -1
  167. package/dist/server/handlers/tools.js.map +1 -0
  168. package/dist/server/handlers/utils.cjs +4 -2
  169. package/dist/server/handlers/utils.cjs.map +1 -0
  170. package/dist/server/handlers/utils.d.ts +2 -1
  171. package/dist/server/handlers/utils.d.ts.map +1 -0
  172. package/dist/server/handlers/utils.js +3 -1
  173. package/dist/server/handlers/utils.js.map +1 -0
  174. package/dist/server/handlers/vNextNetwork.cjs +220 -0
  175. package/dist/server/handlers/vNextNetwork.cjs.map +1 -0
  176. package/dist/server/handlers/vNextNetwork.d.ts +179 -0
  177. package/dist/server/handlers/vNextNetwork.d.ts.map +1 -0
  178. package/dist/server/handlers/vNextNetwork.js +213 -0
  179. package/dist/server/handlers/vNextNetwork.js.map +1 -0
  180. package/dist/server/handlers/vector.cjs +9 -7
  181. package/dist/server/handlers/vector.cjs.map +1 -0
  182. package/dist/server/handlers/vector.d.ts +51 -6
  183. package/dist/server/handlers/vector.d.ts.map +1 -0
  184. package/dist/server/handlers/vector.js +3 -1
  185. package/dist/server/handlers/vector.js.map +1 -0
  186. package/dist/server/handlers/voice.cjs +10 -4
  187. package/dist/server/handlers/voice.cjs.map +1 -0
  188. package/dist/server/handlers/voice.d.ts +39 -3
  189. package/dist/server/handlers/voice.d.ts.map +1 -0
  190. package/dist/server/handlers/voice.js +3 -1
  191. package/dist/server/handlers/voice.js.map +1 -0
  192. package/dist/server/handlers/workflows.cjs +35 -13
  193. package/dist/server/handlers/workflows.cjs.map +1 -0
  194. package/dist/server/handlers/workflows.d.ts +73 -10
  195. package/dist/server/handlers/workflows.d.ts.map +1 -0
  196. package/dist/server/handlers/workflows.js +3 -1
  197. package/dist/server/handlers/workflows.js.map +1 -0
  198. package/dist/server/handlers.cjs +53 -26
  199. package/dist/server/handlers.cjs.map +1 -0
  200. package/dist/server/handlers.d.ts +15 -9
  201. package/dist/server/handlers.d.ts.map +1 -0
  202. package/dist/server/handlers.js +16 -9
  203. package/dist/server/handlers.js.map +1 -0
  204. package/dist/server/http-exception.d.ts +87 -0
  205. package/dist/server/http-exception.d.ts.map +1 -0
  206. package/dist/server/types.d.ts +10 -0
  207. package/dist/server/types.d.ts.map +1 -0
  208. package/dist/server/utils.d.ts +42 -0
  209. package/dist/server/utils.d.ts.map +1 -0
  210. package/package.json +51 -19
  211. package/dist/_tsup-dts-rollup.d.cts +0 -571
  212. package/dist/_tsup-dts-rollup.d.ts +0 -571
  213. package/dist/chunk-2FJURXCL.cjs +0 -213
  214. package/dist/chunk-3AHQ5RGN.js +0 -11
  215. package/dist/chunk-3EJZQ6TQ.js +0 -49
  216. package/dist/chunk-4C3EPMMF.cjs +0 -122
  217. package/dist/chunk-67WTHYAV.js +0 -156
  218. package/dist/chunk-A7DF4ETD.cjs +0 -100
  219. package/dist/chunk-B64YROKU.cjs +0 -317
  220. package/dist/chunk-JLDXUWK7.cjs +0 -126
  221. package/dist/chunk-QH6XWSXP.cjs +0 -5579
  222. package/dist/chunk-RBQASTUP.js +0 -203
  223. package/dist/chunk-SKBVVI24.cjs +0 -54
  224. package/dist/chunk-VK6FX47H.js +0 -5576
  225. package/dist/chunk-Z46X3YCB.cjs +0 -164
  226. package/dist/chunk-ZLBRQFDD.cjs +0 -13
  227. package/dist/index.d.cts +0 -1
  228. package/dist/server/handlers/agents.d.cts +0 -6
  229. package/dist/server/handlers/error.d.cts +0 -1
  230. package/dist/server/handlers/logs.d.cts +0 -3
  231. package/dist/server/handlers/memory.d.cts +0 -8
  232. package/dist/server/handlers/network.d.cts +0 -4
  233. package/dist/server/handlers/telemetry.d.cts +0 -2
  234. package/dist/server/handlers/tools.d.cts +0 -4
  235. package/dist/server/handlers/utils.d.cts +0 -1
  236. package/dist/server/handlers/vector.d.cts +0 -6
  237. package/dist/server/handlers/voice.d.cts +0 -3
  238. package/dist/server/handlers/workflows.d.cts +0 -10
  239. package/dist/server/handlers.d.cts +0 -9
@@ -1,50 +1,77 @@
1
1
  'use strict';
2
2
 
3
- var chunk4C3EPMMF_cjs = require('../chunk-4C3EPMMF.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 chunkZ46X3YCB_cjs = require('../chunk-Z46X3YCB.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 chunkCWSDZEZG_cjs = require('../chunk-CWSDZEZG.cjs');
3
+ var chunkT3TIA3O6_cjs = require('../chunk-T3TIA3O6.cjs');
4
+ var chunkKLCYAQBL_cjs = require('../chunk-KLCYAQBL.cjs');
5
+ var chunkNPE3X7FQ_cjs = require('../chunk-NPE3X7FQ.cjs');
6
+ var chunkUVKXRPMV_cjs = require('../chunk-UVKXRPMV.cjs');
7
+ var chunkJGD42NME_cjs = require('../chunk-JGD42NME.cjs');
8
+ var chunkL265APUD_cjs = require('../chunk-L265APUD.cjs');
9
+ var chunkGUI3CROV_cjs = require('../chunk-GUI3CROV.cjs');
10
+ var chunkPWTXZZTR_cjs = require('../chunk-PWTXZZTR.cjs');
11
+ var chunkYFLNLDQV_cjs = require('../chunk-YFLNLDQV.cjs');
12
+ var chunk3THIIWWW_cjs = require('../chunk-3THIIWWW.cjs');
13
+ var chunkODGI2PKN_cjs = require('../chunk-ODGI2PKN.cjs');
14
+ var chunkE64XEGXM_cjs = require('../chunk-E64XEGXM.cjs');
15
+ var chunk5N6646N2_cjs = require('../chunk-5N6646N2.cjs');
16
+ var chunkKNGXRN26_cjs = require('../chunk-KNGXRN26.cjs');
12
17
 
13
18
 
14
19
 
15
- Object.defineProperty(exports, "tools", {
16
- enumerable: true,
17
- get: function () { return chunk4C3EPMMF_cjs.tools_exports; }
18
- });
19
20
  Object.defineProperty(exports, "vector", {
20
21
  enumerable: true,
21
- get: function () { return chunkM56ECCHK_cjs.vector_exports; }
22
+ get: function () { return chunkT3TIA3O6_cjs.vector_exports; }
22
23
  });
23
24
  Object.defineProperty(exports, "voice", {
24
25
  enumerable: true,
25
- get: function () { return chunkA7DF4ETD_cjs.voice_exports; }
26
+ get: function () { return chunkKLCYAQBL_cjs.voice_exports; }
26
27
  });
27
- Object.defineProperty(exports, "workflows", {
28
+ Object.defineProperty(exports, "logs", {
28
29
  enumerable: true,
29
- get: function () { return chunkB64YROKU_cjs.workflows_exports; }
30
+ get: function () { return chunkNPE3X7FQ_cjs.logs_exports; }
30
31
  });
31
- Object.defineProperty(exports, "agents", {
32
+ Object.defineProperty(exports, "memory", {
32
33
  enumerable: true,
33
- get: function () { return chunkZ46X3YCB_cjs.agents_exports; }
34
+ get: function () { return chunkUVKXRPMV_cjs.memory_exports; }
34
35
  });
35
- Object.defineProperty(exports, "logs", {
36
+ Object.defineProperty(exports, "network", {
36
37
  enumerable: true,
37
- get: function () { return chunkSKBVVI24_cjs.logs_exports; }
38
+ get: function () { return chunkJGD42NME_cjs.network_exports; }
38
39
  });
39
- Object.defineProperty(exports, "memory", {
40
+ Object.defineProperty(exports, "observability", {
40
41
  enumerable: true,
41
- get: function () { return chunk2FJURXCL_cjs.memory_exports; }
42
+ get: function () { return chunkL265APUD_cjs.observability_exports; }
42
43
  });
43
- Object.defineProperty(exports, "network", {
44
+ Object.defineProperty(exports, "scores", {
44
45
  enumerable: true,
45
- get: function () { return chunkJLDXUWK7_cjs.network_exports; }
46
+ get: function () { return chunkGUI3CROV_cjs.scores_exports; }
46
47
  });
47
48
  Object.defineProperty(exports, "telemetry", {
48
49
  enumerable: true,
49
- get: function () { return chunkCWSDZEZG_cjs.telemetry_exports; }
50
+ get: function () { return chunkPWTXZZTR_cjs.telemetry_exports; }
51
+ });
52
+ Object.defineProperty(exports, "tools", {
53
+ enumerable: true,
54
+ get: function () { return chunkYFLNLDQV_cjs.tools_exports; }
55
+ });
56
+ Object.defineProperty(exports, "a2a", {
57
+ enumerable: true,
58
+ get: function () { return chunk3THIIWWW_cjs.a2a_exports; }
59
+ });
60
+ Object.defineProperty(exports, "agentBuilder", {
61
+ enumerable: true,
62
+ get: function () { return chunkODGI2PKN_cjs.agent_builder_exports; }
63
+ });
64
+ Object.defineProperty(exports, "workflows", {
65
+ enumerable: true,
66
+ get: function () { return chunkE64XEGXM_cjs.workflows_exports; }
67
+ });
68
+ Object.defineProperty(exports, "agents", {
69
+ enumerable: true,
70
+ get: function () { return chunk5N6646N2_cjs.agents_exports; }
71
+ });
72
+ Object.defineProperty(exports, "legacyWorkflows", {
73
+ enumerable: true,
74
+ get: function () { return chunkKNGXRN26_cjs.legacyWorkflows_exports; }
50
75
  });
76
+ //# sourceMappingURL=handlers.cjs.map
77
+ //# sourceMappingURL=handlers.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"handlers.cjs"}
@@ -1,9 +1,15 @@
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 network from './handlers/network.js';
8
+ export * as observability from './handlers/observability.js';
9
+ export * as scores from './handlers/scores.js';
10
+ export * as telemetry from './handlers/telemetry.js';
11
+ export * as tools from './handlers/tools.js';
12
+ export * as vector from './handlers/vector.js';
13
+ export * as voice from './handlers/voice.js';
14
+ export * as workflows from './handlers/workflows.js';
15
+ //# 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,OAAO,MAAM,oBAAoB,CAAC;AAC9C,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,16 @@
1
- export { tools_exports as tools } from '../chunk-YNSGUC2O.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-67WTHYAV.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-DVPP5S6I.js';
1
+ export { vector_exports as vector } from '../chunk-WHN4VX55.js';
2
+ export { voice_exports as voice } from '../chunk-QBWF6U7Z.js';
3
+ export { logs_exports as logs } from '../chunk-ROA7BCHD.js';
4
+ export { memory_exports as memory } from '../chunk-LUPY3MQY.js';
5
+ export { network_exports as network } from '../chunk-B43YAQJR.js';
6
+ export { observability_exports as observability } from '../chunk-R7NOGUZG.js';
7
+ export { scores_exports as scores } from '../chunk-7QEJ5QG5.js';
8
+ export { telemetry_exports as telemetry } from '../chunk-KV6VHX4V.js';
9
+ export { tools_exports as tools } from '../chunk-A3ZHTDWB.js';
10
+ export { a2a_exports as a2a } from '../chunk-5QUKZCEF.js';
11
+ export { agent_builder_exports as agentBuilder } from '../chunk-V7VWD2Y2.js';
12
+ export { workflows_exports as workflows } from '../chunk-OZGPYA7A.js';
13
+ export { agents_exports as agents } from '../chunk-GGCXLQ4J.js';
14
+ export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-TTHEEIZ3.js';
15
+ //# sourceMappingURL=handlers.js.map
16
+ //# 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,42 @@
1
+ import type { Workflow, WorkflowInfo } from '@mastra/core/workflows';
2
+ export declare function getWorkflowInfo(workflow: Workflow): WorkflowInfo;
3
+ /**
4
+ * Workflow Registry for temporarily registering additional workflows
5
+ * that are not part of the user's Mastra instance (e.g., internal template workflows)
6
+ */
7
+ export declare class WorkflowRegistry {
8
+ private static additionalWorkflows;
9
+ /**
10
+ * Register a workflow temporarily
11
+ */
12
+ static registerTemporaryWorkflow(id: string, workflow: Workflow): void;
13
+ /**
14
+ * Register all workflows from map
15
+ */
16
+ static registerTemporaryWorkflows(workflows: Record<string, Workflow>): void;
17
+ /**
18
+ * Get a workflow by ID from the registry (returns undefined if not found)
19
+ */
20
+ static getWorkflow(workflowId: string): Workflow | undefined;
21
+ /**
22
+ * Get all workflows from the registry
23
+ */
24
+ static getAllWorkflows(): Record<string, Workflow>;
25
+ /**
26
+ * Clean up a temporary workflow
27
+ */
28
+ static cleanupTemporaryWorkflow(workflowId: string): void;
29
+ /**
30
+ * Clean up all registered workflows
31
+ */
32
+ static cleanup(): void;
33
+ /**
34
+ * Check if a workflow ID is a valid agent-builder workflow
35
+ */
36
+ static isAgentBuilderWorkflow(workflowId: string): boolean;
37
+ /**
38
+ * Get all registered temporary workflow IDs (for debugging)
39
+ */
40
+ static getRegisteredWorkflowIds(): string[];
41
+ }
42
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/server/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqB,QAAQ,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAyBxF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,YAAY,CAoBhE;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,GAAG,IAAI;IAM5E;;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"}
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@mastra/server",
3
- "version": "0.0.0-commonjs-20250414101718",
3
+ "version": "0.0.0-consolidate-changesets-20250904042643",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
7
- "dist"
7
+ "dist",
8
+ "CHANGELOG.md"
8
9
  ],
9
10
  "main": "dist/index.js",
10
11
  "types": "dist/index.d.ts",
@@ -15,7 +16,7 @@
15
16
  "default": "./dist/index.js"
16
17
  },
17
18
  "require": {
18
- "types": "./dist/index.d.cts",
19
+ "types": "./dist/index.d.ts",
19
20
  "default": "./dist/index.cjs"
20
21
  }
21
22
  },
@@ -25,7 +26,7 @@
25
26
  "default": "./dist/server/handlers.js"
26
27
  },
27
28
  "require": {
28
- "types": "./dist/server/handlers.d.cts",
29
+ "types": "./dist/server/handlers.d.ts",
29
30
  "default": "./dist/server/handlers.cjs"
30
31
  }
31
32
  },
@@ -35,34 +36,65 @@
35
36
  "default": "./dist/server/handlers/*.js"
36
37
  },
37
38
  "require": {
38
- "types": "./dist/server/handlers/*.d.cts",
39
+ "types": "./dist/server/handlers/*.d.ts",
39
40
  "default": "./dist/server/handlers/*.cjs"
40
41
  }
41
42
  },
43
+ "./a2a/store": {
44
+ "import": {
45
+ "types": "./dist/server/a2a/store.d.ts",
46
+ "default": "./dist/server/a2a/store.js"
47
+ },
48
+ "require": {
49
+ "types": "./dist/server/a2a/store.d.ts",
50
+ "default": "./dist/server/a2a/store.cjs"
51
+ }
52
+ },
42
53
  "./package.json": "./package.json"
43
54
  },
44
55
  "keywords": [],
45
56
  "author": "",
46
- "license": "Elastic-2.0",
47
- "dependencies": {},
57
+ "license": "Apache-2.0",
48
58
  "peerDependencies": {
49
- "@mastra/core": "0.0.0-commonjs-20250414101718"
59
+ "zod": "^3.25.0 || ^4.0.0",
60
+ "@mastra/core": "0.0.0-consolidate-changesets-20250904042643"
50
61
  },
51
62
  "devDependencies": {
52
- "@ai-sdk/openai": "^1.3.2",
53
- "@microsoft/api-extractor": "^7.52.1",
54
- "@types/node": "^20.17.27",
55
- "eslint": "^9.23.0",
63
+ "@ai-sdk/anthropic": "^1.2.12",
64
+ "@ai-sdk/anthropic-v5": "npm:@ai-sdk/anthropic@2.0.4",
65
+ "@ai-sdk/google": "^1.2.22",
66
+ "@ai-sdk/google-v5": "npm:@ai-sdk/google@2.0.6",
67
+ "@ai-sdk/groq": "^1.2.9",
68
+ "@ai-sdk/groq-v5": "npm:@ai-sdk/groq@2.0.10",
69
+ "@ai-sdk/openai": "^1.3.24",
70
+ "@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.15",
71
+ "@ai-sdk/xai": "^1.2.18",
72
+ "@ai-sdk/xai-v5": "npm:@ai-sdk/xai@2.0.7",
73
+ "@microsoft/api-extractor": "^7.52.8",
74
+ "@types/node": "^20.19.0",
75
+ "eslint": "^9.30.1",
56
76
  "superjson": "^2.2.2",
57
- "tsup": "^8.4.0",
58
- "typescript": "^5.8.2",
59
- "vitest": "^2.1.9",
60
- "zod-to-json-schema": "^3.24.3",
61
- "@internal/lint": "0.0.0-commonjs-20250414101718",
62
- "@mastra/core": "0.0.0-commonjs-20250414101718"
77
+ "tsup": "^8.5.0",
78
+ "typescript": "^5.8.3",
79
+ "vitest": "^3.2.4",
80
+ "zod": "^3.25.76",
81
+ "@internal/lint": "0.0.0-consolidate-changesets-20250904042643",
82
+ "@internal/storage-test-utils": "0.0.30",
83
+ "@mastra/core": "0.0.0-consolidate-changesets-20250904042643",
84
+ "@mastra/agent-builder": "0.0.0-consolidate-changesets-20250904042643",
85
+ "@internal/types-builder": "0.0.0-consolidate-changesets-20250904042643"
86
+ },
87
+ "homepage": "https://mastra.ai",
88
+ "repository": {
89
+ "type": "git",
90
+ "url": "git+https://github.com/mastra-ai/mastra.git",
91
+ "directory": "packages/server"
92
+ },
93
+ "bugs": {
94
+ "url": "https://github.com/mastra-ai/mastra/issues"
63
95
  },
64
96
  "scripts": {
65
- "build": "tsup src/index.ts src/server/handlers.ts src/server/handlers/*.ts !src/server/handlers/*.test.ts --format esm,cjs --clean --experimental-dts --treeshake=smallest --splitting",
97
+ "build": "tsup --silent --config tsup.config.ts",
66
98
  "build:watch": "pnpm build --watch",
67
99
  "pull:openapispec": "node src/server/openapi.script.js",
68
100
  "test": "vitest run",