@mastra/server 1.58.0-alpha.0 → 1.58.0-alpha.12

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 (374) hide show
  1. package/CHANGELOG.md +246 -0
  2. package/dist/_types/@mastra_schema-compat/dist/provider-compats/anthropic.d.ts +1 -1
  3. package/dist/{a2a-CnU9zaGR.js → a2a-8C4O2dVJ.js} +41 -5
  4. package/dist/a2a-8C4O2dVJ.js.map +1 -0
  5. package/dist/{a2a-uPi5sPwb.js → a2a-B9X-RdWt.js} +863 -230
  6. package/dist/a2a-B9X-RdWt.js.map +1 -0
  7. package/dist/{a2a-DKnwIgiw.cjs → a2a-D1t2fS2L.cjs} +874 -229
  8. package/dist/a2a-D1t2fS2L.cjs.map +1 -0
  9. package/dist/{a2a-oM7aqLz4.cjs → a2a-MPoM5lzS.cjs} +41 -5
  10. package/dist/a2a-MPoM5lzS.cjs.map +1 -0
  11. package/dist/{agent-builder-BDYN3r89.cjs → agent-builder-D8JyDQ5J.cjs} +2 -2
  12. package/dist/{agent-builder-BDYN3r89.cjs.map → agent-builder-D8JyDQ5J.cjs.map} +1 -1
  13. package/dist/{agent-builder-Dqy_qumV.js → agent-builder-DNTFty1u.js} +2 -2
  14. package/dist/{agent-builder-Dqy_qumV.js.map → agent-builder-DNTFty1u.js.map} +1 -1
  15. package/dist/{agent-versions-Bsrpa_zb.js → agent-versions-CWEnD62A.js} +4 -4
  16. package/dist/{agent-versions-Bsrpa_zb.js.map → agent-versions-CWEnD62A.js.map} +1 -1
  17. package/dist/{agent-versions-CdQGF-3e.cjs → agent-versions-xeysPGel.cjs} +4 -4
  18. package/dist/{agent-versions-CdQGF-3e.cjs.map → agent-versions-xeysPGel.cjs.map} +1 -1
  19. package/dist/{agents-Dk2qoJi_.cjs → agents-0Tw3kkD_.cjs} +9 -5
  20. package/dist/agents-0Tw3kkD_.cjs.map +1 -0
  21. package/dist/{agents-CYvun9iI.js → agents-uT8ZDE4k.js} +9 -5
  22. package/dist/agents-uT8ZDE4k.js.map +1 -0
  23. package/dist/{api-schema-manifest-C5hpdIE_.js → api-schema-manifest-BLv_Z-sd.js} +3 -3
  24. package/dist/{api-schema-manifest-C5hpdIE_.js.map → api-schema-manifest-BLv_Z-sd.js.map} +1 -1
  25. package/dist/{api-schema-manifest-7-NC9Dyc.cjs → api-schema-manifest-CFLB0MBA.cjs} +3 -3
  26. package/dist/{api-schema-manifest-7-NC9Dyc.cjs.map → api-schema-manifest-CFLB0MBA.cjs.map} +1 -1
  27. package/dist/{background-tasks-DnmhLalp.js → background-tasks-Bzl2tNJq.js} +2 -2
  28. package/dist/{background-tasks-DnmhLalp.js.map → background-tasks-Bzl2tNJq.js.map} +1 -1
  29. package/dist/{background-tasks-CYgzzUnb.cjs → background-tasks-DXns62Go.cjs} +2 -2
  30. package/dist/{background-tasks-CYgzzUnb.cjs.map → background-tasks-DXns62Go.cjs.map} +1 -1
  31. package/dist/{builder-registry-BoaXBdm_.cjs → builder-registry-CTQyg5l5.cjs} +3 -3
  32. package/dist/{builder-registry-BoaXBdm_.cjs.map → builder-registry-CTQyg5l5.cjs.map} +1 -1
  33. package/dist/{builder-registry-DE5w7bNk.js → builder-registry-QAeqpQKB.js} +3 -3
  34. package/dist/{builder-registry-DE5w7bNk.js.map → builder-registry-QAeqpQKB.js.map} +1 -1
  35. package/dist/{channels-BqkOxxEk.js → channels-CPTIswT2.js} +2 -2
  36. package/dist/{channels-BqkOxxEk.js.map → channels-CPTIswT2.js.map} +1 -1
  37. package/dist/{channels-BonQBJT0.cjs → channels-FoIf30Hv.cjs} +2 -2
  38. package/dist/{channels-BonQBJT0.cjs.map → channels-FoIf30Hv.cjs.map} +1 -1
  39. package/dist/{common-CPNOpqxA.js → common-5ZZuR6wj.js} +19 -8
  40. package/dist/common-5ZZuR6wj.js.map +1 -0
  41. package/dist/{common-spbwhiWS.cjs → common-DQn8jX5T.cjs} +19 -8
  42. package/dist/common-DQn8jX5T.cjs.map +1 -0
  43. package/dist/{conversations-CebKjBfB.cjs → conversations-CcFLCCeF.cjs} +2 -2
  44. package/dist/{conversations-CebKjBfB.cjs.map → conversations-CcFLCCeF.cjs.map} +1 -1
  45. package/dist/{conversations-BDD46VBM.js → conversations-DtnawNGm.js} +2 -2
  46. package/dist/{conversations-BDD46VBM.js.map → conversations-DtnawNGm.js.map} +1 -1
  47. package/dist/{datasets-Cvix7Rms.cjs → datasets-D2JdQI44.cjs} +44 -2
  48. package/dist/datasets-D2JdQI44.cjs.map +1 -0
  49. package/dist/{datasets-dhXnHLAL.js → datasets-Dr1pCC6P.js} +39 -3
  50. package/dist/datasets-Dr1pCC6P.js.map +1 -0
  51. package/dist/{default-options-BcPyp2Gx.cjs → default-options-C9HZGjYi.cjs} +6 -3
  52. package/dist/{default-options-BcPyp2Gx.cjs.map → default-options-C9HZGjYi.cjs.map} +1 -1
  53. package/dist/{default-options-DGCDKR3I.js → default-options-C9JVjlto.js} +6 -3
  54. package/dist/{default-options-DGCDKR3I.js.map → default-options-C9JVjlto.js.map} +1 -1
  55. package/dist/{dist-DGqlUp0b.js → dist-CzzxT_L5.js} +345 -1404
  56. package/dist/dist-CzzxT_L5.js.map +1 -0
  57. package/dist/{dist-COHIL6fR.cjs → dist-TkFPtpuy.cjs} +354 -1416
  58. package/dist/dist-TkFPtpuy.cjs.map +1 -0
  59. package/dist/docs/SKILL.md +1 -1
  60. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  61. package/dist/docs/references/docs-agents-a2a.md +75 -2
  62. package/dist/docs/references/docs-server-custom-adapters.md +1 -1
  63. package/dist/docs/references/reference-server-routes.md +38 -24
  64. package/dist/{stored-workflows-OanG0TmB.js → dynamic-workflows-CQs6_anZ.js} +62 -62
  65. package/dist/dynamic-workflows-CQs6_anZ.js.map +1 -0
  66. package/dist/{stored-workflows-pCiWK305.cjs → dynamic-workflows-CrvwGZj8.cjs} +71 -71
  67. package/dist/dynamic-workflows-CrvwGZj8.cjs.map +1 -0
  68. package/dist/{editor-builder-CWTGCtNu.cjs → editor-builder-C3ZvffGu.cjs} +2 -2
  69. package/dist/{editor-builder-CWTGCtNu.cjs.map → editor-builder-C3ZvffGu.cjs.map} +1 -1
  70. package/dist/{editor-builder-Ct2nIbum.js → editor-builder-D5lhXbvj.js} +3 -3
  71. package/dist/{editor-builder-Ct2nIbum.js.map → editor-builder-D5lhXbvj.js.map} +1 -1
  72. package/dist/{editor-builder-BW4nlDcX.cjs → editor-builder-DG5-7x6V.cjs} +3 -3
  73. package/dist/{editor-builder-BW4nlDcX.cjs.map → editor-builder-DG5-7x6V.cjs.map} +1 -1
  74. package/dist/{editor-builder-fKbRRlK_.js → editor-builder-DJUxdzC8.js} +2 -2
  75. package/dist/{editor-builder-fKbRRlK_.js.map → editor-builder-DJUxdzC8.js.map} +1 -1
  76. package/dist/{logs-wBYi7UWL.cjs → logs-BDuGFqxu.cjs} +2 -2
  77. package/dist/{logs-wBYi7UWL.cjs.map → logs-BDuGFqxu.cjs.map} +1 -1
  78. package/dist/{logs-BzwWWl57.js → logs-Cz5NiwGP.js} +2 -2
  79. package/dist/{logs-BzwWWl57.js.map → logs-Cz5NiwGP.js.map} +1 -1
  80. package/dist/{mcp-DusNUBdz.cjs → mcp-Buvksst5.cjs} +2 -2
  81. package/dist/{mcp-DusNUBdz.cjs.map → mcp-Buvksst5.cjs.map} +1 -1
  82. package/dist/{mcp-client-versions-Db71zP8j.cjs → mcp-client-versions-CG7po4hq.cjs} +2 -2
  83. package/dist/{mcp-client-versions-Db71zP8j.cjs.map → mcp-client-versions-CG7po4hq.cjs.map} +1 -1
  84. package/dist/{mcp-client-versions-Dwbiav9P.js → mcp-client-versions-Co8d39A6.js} +2 -2
  85. package/dist/{mcp-client-versions-Dwbiav9P.js.map → mcp-client-versions-Co8d39A6.js.map} +1 -1
  86. package/dist/{mcp-BpC_5RhI.js → mcp-oOFVSK8L.js} +2 -2
  87. package/dist/{mcp-BpC_5RhI.js.map → mcp-oOFVSK8L.js.map} +1 -1
  88. package/dist/{memory-BjemiyZJ.js → memory-CBLqn9xl.js} +2 -2
  89. package/dist/{memory-BjemiyZJ.js.map → memory-CBLqn9xl.js.map} +1 -1
  90. package/dist/{memory-CxM2p78x.cjs → memory-D0prxytx.cjs} +2 -2
  91. package/dist/{memory-CxM2p78x.cjs.map → memory-D0prxytx.cjs.map} +1 -1
  92. package/dist/{observability-new-endpoints-YK2DjZto.js → observability-new-endpoints-6HLxLS-H.js} +2 -2
  93. package/dist/{observability-new-endpoints-YK2DjZto.js.map → observability-new-endpoints-6HLxLS-H.js.map} +1 -1
  94. package/dist/{observability-new-endpoints-Dk3oatL8.cjs → observability-new-endpoints-D4AWoyDe.cjs} +2 -2
  95. package/dist/{observability-new-endpoints-Dk3oatL8.cjs.map → observability-new-endpoints-D4AWoyDe.cjs.map} +1 -1
  96. package/dist/{probe-image-size-DYJVSL0b.cjs → probe-image-size-C2F59z8Z.cjs} +56 -1707
  97. package/dist/probe-image-size-C2F59z8Z.cjs.map +1 -0
  98. package/dist/{probe-image-size-BQgIJeY_.js → probe-image-size-mXCWYNrz.js} +22 -1673
  99. package/dist/probe-image-size-mXCWYNrz.js.map +1 -0
  100. package/dist/{prompt-block-versions-CIDwXWiC.js → prompt-block-versions-CBjHhMVK.js} +2 -2
  101. package/dist/{prompt-block-versions-CIDwXWiC.js.map → prompt-block-versions-CBjHhMVK.js.map} +1 -1
  102. package/dist/{prompt-block-versions-Bl3RmkTE.cjs → prompt-block-versions-Cgt_Grk2.cjs} +2 -2
  103. package/dist/{prompt-block-versions-Bl3RmkTE.cjs.map → prompt-block-versions-Cgt_Grk2.cjs.map} +1 -1
  104. package/dist/{route-builder-CgLVYL1c.cjs → route-builder-BBovb2TE.cjs} +2 -2
  105. package/dist/route-builder-BBovb2TE.cjs.map +1 -0
  106. package/dist/{route-builder-CIk5k35M.js → route-builder-CQkb7tQY.js} +2 -2
  107. package/dist/route-builder-CQkb7tQY.js.map +1 -0
  108. package/dist/{routes-hSY4wTeS.cjs → routes-CzvDlbRt.cjs} +26 -25
  109. package/dist/routes-CzvDlbRt.cjs.map +1 -0
  110. package/dist/{routes-CRoTKPvQ.js → routes-D_-O6SS5.js} +27 -26
  111. package/dist/routes-D_-O6SS5.js.map +1 -0
  112. package/dist/{schedules-CK3-IE0h.cjs → schedules-CfNABln2.cjs} +2 -2
  113. package/dist/{schedules-CK3-IE0h.cjs.map → schedules-CfNABln2.cjs.map} +1 -1
  114. package/dist/{schedules-qxFoU-Tb.js → schedules-DSkYO_Nl.js} +2 -2
  115. package/dist/{schedules-qxFoU-Tb.js.map → schedules-DSkYO_Nl.js.map} +1 -1
  116. package/dist/{schema-Bv9OdW1f-BY6u3u8K.cjs → schema-Bv9OdW1f-CHHI-NTr.cjs} +2 -76
  117. package/dist/schema-Bv9OdW1f-CHHI-NTr.cjs.map +1 -0
  118. package/dist/{schema-Bv9OdW1f-CIOfv-3w.js → schema-Bv9OdW1f-DLSJSqQv.js} +2 -76
  119. package/dist/schema-Bv9OdW1f-DLSJSqQv.js.map +1 -0
  120. package/dist/schema-CGeYTFwm.js +2 -0
  121. package/dist/schema-DkBbires.cjs +1 -0
  122. package/dist/{scorer-versions-DpmAJKsY.cjs → scorer-versions-CYXtxMTU.cjs} +3 -3
  123. package/dist/{scorer-versions-DpmAJKsY.cjs.map → scorer-versions-CYXtxMTU.cjs.map} +1 -1
  124. package/dist/{scorer-versions-BA8N488c.js → scorer-versions-CdVjOtQO.js} +3 -3
  125. package/dist/{scorer-versions-BA8N488c.js.map → scorer-versions-CdVjOtQO.js.map} +1 -1
  126. package/dist/{scores-DU0o86rP.js → scores-B1IdMcDj.js} +2 -2
  127. package/dist/{scores-DU0o86rP.js.map → scores-B1IdMcDj.js.map} +1 -1
  128. package/dist/{scores-Bm_sUKY1.cjs → scores-C_Au9jSw.cjs} +2 -2
  129. package/dist/{scores-Bm_sUKY1.cjs.map → scores-C_Au9jSw.cjs.map} +1 -1
  130. package/dist/server/a2a/store.cjs +30 -2
  131. package/dist/server/a2a/store.cjs.map +1 -1
  132. package/dist/server/a2a/store.d.ts +21 -2
  133. package/dist/server/a2a/store.d.ts.map +1 -1
  134. package/dist/server/a2a/store.js +30 -3
  135. package/dist/server/a2a/store.js.map +1 -1
  136. package/dist/server/a2a/task-state.d.ts +4 -0
  137. package/dist/server/a2a/task-state.d.ts.map +1 -0
  138. package/dist/server/a2a/tasks.d.ts +1 -1
  139. package/dist/server/a2a/tasks.d.ts.map +1 -1
  140. package/dist/server/handlers/a2a.cjs +3 -1
  141. package/dist/server/handlers/a2a.d.ts +155 -12
  142. package/dist/server/handlers/a2a.d.ts.map +1 -1
  143. package/dist/server/handlers/a2a.js +2 -2
  144. package/dist/server/handlers/agent-builder.cjs +7 -7
  145. package/dist/server/handlers/agent-builder.d.ts +4 -4
  146. package/dist/server/handlers/agent-builder.js +7 -7
  147. package/dist/server/handlers/agent-controller.cjs +86 -17
  148. package/dist/server/handlers/agent-controller.cjs.map +1 -1
  149. package/dist/server/handlers/agent-controller.d.ts +4 -3
  150. package/dist/server/handlers/agent-controller.d.ts.map +1 -1
  151. package/dist/server/handlers/agent-controller.js +86 -17
  152. package/dist/server/handlers/agent-controller.js.map +1 -1
  153. package/dist/server/handlers/agent-versions.cjs +10 -4
  154. package/dist/server/handlers/agent-versions.cjs.map +1 -1
  155. package/dist/server/handlers/agent-versions.d.ts +88 -16
  156. package/dist/server/handlers/agent-versions.d.ts.map +1 -1
  157. package/dist/server/handlers/agent-versions.js +10 -4
  158. package/dist/server/handlers/agent-versions.js.map +1 -1
  159. package/dist/server/handlers/agents.cjs +6 -6
  160. package/dist/server/handlers/agents.d.ts +50 -8
  161. package/dist/server/handlers/agents.d.ts.map +1 -1
  162. package/dist/server/handlers/agents.js +6 -6
  163. package/dist/server/handlers/auth.cjs +1 -1
  164. package/dist/server/handlers/auth.js +1 -1
  165. package/dist/server/handlers/background-tasks.cjs +1 -1
  166. package/dist/server/handlers/background-tasks.js +1 -1
  167. package/dist/server/handlers/builder-registry.cjs +1 -1
  168. package/dist/server/handlers/builder-registry.js +1 -1
  169. package/dist/server/handlers/channels.cjs +1 -1
  170. package/dist/server/handlers/channels.js +1 -1
  171. package/dist/server/handlers/conversations.cjs +2 -2
  172. package/dist/server/handlers/conversations.js +2 -2
  173. package/dist/server/handlers/datasets.cjs +28 -13
  174. package/dist/server/handlers/datasets.cjs.map +1 -1
  175. package/dist/server/handlers/datasets.d.ts +136 -0
  176. package/dist/server/handlers/datasets.d.ts.map +1 -1
  177. package/dist/server/handlers/datasets.js +28 -13
  178. package/dist/server/handlers/datasets.js.map +1 -1
  179. package/dist/server/handlers/dynamic-workflows.cjs +6 -0
  180. package/dist/server/handlers/{stored-workflows.d.ts → dynamic-workflows.d.ts} +14 -14
  181. package/dist/server/handlers/{stored-workflows.d.ts.map → dynamic-workflows.d.ts.map} +1 -1
  182. package/dist/server/handlers/dynamic-workflows.js +2 -0
  183. package/dist/server/handlers/editor-builder.cjs +1 -1
  184. package/dist/server/handlers/editor-builder.js +1 -1
  185. package/dist/server/handlers/favorites-enrichment.cjs +1 -1
  186. package/dist/server/handlers/favorites-enrichment.js +1 -1
  187. package/dist/server/handlers/logs.cjs +3 -3
  188. package/dist/server/handlers/logs.js +3 -3
  189. package/dist/server/handlers/mcp-client-versions.cjs +3 -3
  190. package/dist/server/handlers/mcp-client-versions.js +3 -3
  191. package/dist/server/handlers/mcp.cjs +2 -2
  192. package/dist/server/handlers/mcp.js +2 -2
  193. package/dist/server/handlers/memory.cjs +2 -2
  194. package/dist/server/handlers/memory.js +2 -2
  195. package/dist/server/handlers/observability-new-endpoints.cjs +1 -1
  196. package/dist/server/handlers/observability-new-endpoints.js +1 -1
  197. package/dist/server/handlers/observability-shared.cjs +1 -1
  198. package/dist/server/handlers/observability-shared.js +1 -1
  199. package/dist/server/handlers/observability.cjs +22 -11
  200. package/dist/server/handlers/observability.cjs.map +1 -1
  201. package/dist/server/handlers/observability.d.ts.map +1 -1
  202. package/dist/server/handlers/observability.js +22 -11
  203. package/dist/server/handlers/observability.js.map +1 -1
  204. package/dist/server/handlers/processor-providers.cjs +1 -1
  205. package/dist/server/handlers/processor-providers.js +1 -1
  206. package/dist/server/handlers/processors.cjs +1 -1
  207. package/dist/server/handlers/processors.js +1 -1
  208. package/dist/server/handlers/prompt-block-versions.cjs +3 -3
  209. package/dist/server/handlers/prompt-block-versions.js +3 -3
  210. package/dist/server/handlers/responses.cjs +1 -1
  211. package/dist/server/handlers/responses.js +1 -1
  212. package/dist/server/handlers/schedules.cjs +1 -1
  213. package/dist/server/handlers/schedules.js +1 -1
  214. package/dist/server/handlers/scorer-versions.cjs +3 -3
  215. package/dist/server/handlers/scorer-versions.js +3 -3
  216. package/dist/server/handlers/scores.cjs +3 -3
  217. package/dist/server/handlers/scores.js +3 -3
  218. package/dist/server/handlers/stored-agent-favorites.cjs +4 -4
  219. package/dist/server/handlers/stored-agent-favorites.js +4 -4
  220. package/dist/server/handlers/stored-agents.cjs +21 -6
  221. package/dist/server/handlers/stored-agents.cjs.map +1 -1
  222. package/dist/server/handlers/stored-agents.d.ts +100 -16
  223. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  224. package/dist/server/handlers/stored-agents.js +21 -6
  225. package/dist/server/handlers/stored-agents.js.map +1 -1
  226. package/dist/server/handlers/stored-mcp-clients.cjs +4 -4
  227. package/dist/server/handlers/stored-mcp-clients.js +4 -4
  228. package/dist/server/handlers/stored-prompt-blocks.cjs +4 -4
  229. package/dist/server/handlers/stored-prompt-blocks.js +4 -4
  230. package/dist/server/handlers/stored-scorers.cjs +4 -4
  231. package/dist/server/handlers/stored-scorers.js +4 -4
  232. package/dist/server/handlers/stored-skill-favorites.cjs +4 -4
  233. package/dist/server/handlers/stored-skill-favorites.js +4 -4
  234. package/dist/server/handlers/stored-skills.cjs +4 -4
  235. package/dist/server/handlers/stored-skills.js +4 -4
  236. package/dist/server/handlers/stored-workspaces.cjs +3 -3
  237. package/dist/server/handlers/stored-workspaces.js +3 -3
  238. package/dist/server/handlers/system.cjs +2 -2
  239. package/dist/server/handlers/system.js +2 -2
  240. package/dist/server/handlers/tool-providers.cjs +1 -1
  241. package/dist/server/handlers/tool-providers.js +1 -1
  242. package/dist/server/handlers/tools.cjs +6 -6
  243. package/dist/server/handlers/tools.js +6 -6
  244. package/dist/server/handlers/validate-agent-instructions.cjs +52 -0
  245. package/dist/server/handlers/validate-agent-instructions.cjs.map +1 -0
  246. package/dist/server/handlers/validate-agent-instructions.d.ts +13 -0
  247. package/dist/server/handlers/validate-agent-instructions.d.ts.map +1 -0
  248. package/dist/server/handlers/validate-agent-instructions.js +51 -0
  249. package/dist/server/handlers/validate-agent-instructions.js.map +1 -0
  250. package/dist/server/handlers/vector.cjs +2 -2
  251. package/dist/server/handlers/vector.js +2 -2
  252. package/dist/server/handlers/workflows.cjs +161 -27
  253. package/dist/server/handlers/workflows.cjs.map +1 -1
  254. package/dist/server/handlers/workflows.d.ts +13 -4
  255. package/dist/server/handlers/workflows.d.ts.map +1 -1
  256. package/dist/server/handlers/workflows.js +161 -29
  257. package/dist/server/handlers/workflows.js.map +1 -1
  258. package/dist/server/handlers/workspace.cjs +1 -1
  259. package/dist/server/handlers/workspace.js +1 -1
  260. package/dist/server/handlers.cjs +8 -8
  261. package/dist/server/handlers.d.ts +1 -1
  262. package/dist/server/handlers.d.ts.map +1 -1
  263. package/dist/server/handlers.js +3 -3
  264. package/dist/server/schemas/a2a.d.ts +70 -6
  265. package/dist/server/schemas/a2a.d.ts.map +1 -1
  266. package/dist/server/schemas/agent-versions.d.ts +70 -10
  267. package/dist/server/schemas/agent-versions.d.ts.map +1 -1
  268. package/dist/server/schemas/agents.d.ts +23 -3
  269. package/dist/server/schemas/agents.d.ts.map +1 -1
  270. package/dist/server/schemas/common.d.ts.map +1 -1
  271. package/dist/server/schemas/datasets.d.ts +53 -0
  272. package/dist/server/schemas/datasets.d.ts.map +1 -1
  273. package/dist/server/schemas/default-options.d.ts +7 -1
  274. package/dist/server/schemas/default-options.d.ts.map +1 -1
  275. package/dist/server/schemas/{stored-workflows.d.ts → dynamic-workflows.d.ts} +13 -13
  276. package/dist/server/schemas/dynamic-workflows.d.ts.map +1 -0
  277. package/dist/server/schemas/index.cjs +26 -25
  278. package/dist/server/schemas/index.js +26 -26
  279. package/dist/server/schemas/stored-agents.d.ts +140 -20
  280. package/dist/server/schemas/stored-agents.d.ts.map +1 -1
  281. package/dist/server/schemas/workflows.d.ts +10 -2
  282. package/dist/server/schemas/workflows.d.ts.map +1 -1
  283. package/dist/server/server-adapter/index.cjs +44 -3
  284. package/dist/server/server-adapter/index.cjs.map +1 -1
  285. package/dist/server/server-adapter/index.d.ts +37 -0
  286. package/dist/server/server-adapter/index.d.ts.map +1 -1
  287. package/dist/server/server-adapter/index.js +45 -5
  288. package/dist/server/server-adapter/index.js.map +1 -1
  289. package/dist/server/server-adapter/routes/a2a.d.ts +116 -8
  290. package/dist/server/server-adapter/routes/a2a.d.ts.map +1 -1
  291. package/dist/server/server-adapter/routes/agent-builder.d.ts +4 -4
  292. package/dist/server/server-adapter/routes/datasets.d.ts +136 -0
  293. package/dist/server/server-adapter/routes/datasets.d.ts.map +1 -1
  294. package/dist/server/server-adapter/routes/dynamic-workflows.d.ts +16 -0
  295. package/dist/server/server-adapter/routes/dynamic-workflows.d.ts.map +1 -0
  296. package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
  297. package/dist/server/server-adapter/routes/workflows.d.ts +11 -5
  298. package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -1
  299. package/dist/{stored-agents-D8ar1Pn7.js → stored-agents-BRBZM-Xl.js} +4 -4
  300. package/dist/{stored-agents-D8ar1Pn7.js.map → stored-agents-BRBZM-Xl.js.map} +1 -1
  301. package/dist/{stored-agents-DKd89v5z.cjs → stored-agents-CPxfYRH9.cjs} +4 -4
  302. package/dist/{stored-agents-DKd89v5z.cjs.map → stored-agents-CPxfYRH9.cjs.map} +1 -1
  303. package/dist/{stored-mcp-clients-CwA5_nZ9.cjs → stored-mcp-clients-CJJPe_09.cjs} +2 -2
  304. package/dist/{stored-mcp-clients-CwA5_nZ9.cjs.map → stored-mcp-clients-CJJPe_09.cjs.map} +1 -1
  305. package/dist/{stored-mcp-clients-DJ3E4g8-.js → stored-mcp-clients-CoCfZRhw.js} +2 -2
  306. package/dist/{stored-mcp-clients-DJ3E4g8-.js.map → stored-mcp-clients-CoCfZRhw.js.map} +1 -1
  307. package/dist/{stored-prompt-blocks-BlqcqnEX.js → stored-prompt-blocks-DcmkZaCm.js} +2 -2
  308. package/dist/{stored-prompt-blocks-BlqcqnEX.js.map → stored-prompt-blocks-DcmkZaCm.js.map} +1 -1
  309. package/dist/{stored-prompt-blocks-DR_Wts8r.cjs → stored-prompt-blocks-XI4frgZv.cjs} +2 -2
  310. package/dist/{stored-prompt-blocks-DR_Wts8r.cjs.map → stored-prompt-blocks-XI4frgZv.cjs.map} +1 -1
  311. package/dist/{stored-scorers-BIKumDRO.js → stored-scorers-B__LF0Cy.js} +3 -3
  312. package/dist/{stored-scorers-BIKumDRO.js.map → stored-scorers-B__LF0Cy.js.map} +1 -1
  313. package/dist/{stored-scorers-_dqFdh-G.cjs → stored-scorers-Cml7jPJv.cjs} +3 -3
  314. package/dist/{stored-scorers-_dqFdh-G.cjs.map → stored-scorers-Cml7jPJv.cjs.map} +1 -1
  315. package/dist/{stored-skills-CgwoCNNV.cjs → stored-skills-BqNK0ssS.cjs} +2 -2
  316. package/dist/{stored-skills-CgwoCNNV.cjs.map → stored-skills-BqNK0ssS.cjs.map} +1 -1
  317. package/dist/{stored-skills-B_aAMn5W.js → stored-skills-JTWbMybs.js} +2 -2
  318. package/dist/{stored-skills-B_aAMn5W.js.map → stored-skills-JTWbMybs.js.map} +1 -1
  319. package/dist/{stored-workspaces-Dib-ClOP.js → stored-workspaces-6PYE4Y3m.js} +2 -2
  320. package/dist/{stored-workspaces-Dib-ClOP.js.map → stored-workspaces-6PYE4Y3m.js.map} +1 -1
  321. package/dist/{stored-workspaces-CbJQaFuP.cjs → stored-workspaces-Dl8B20LD.cjs} +2 -2
  322. package/dist/{stored-workspaces-CbJQaFuP.cjs.map → stored-workspaces-Dl8B20LD.cjs.map} +1 -1
  323. package/dist/sync-BHatXKfg.cjs +1679 -0
  324. package/dist/sync-BHatXKfg.cjs.map +1 -0
  325. package/dist/sync-djJ8Lmds.js +1656 -0
  326. package/dist/sync-djJ8Lmds.js.map +1 -0
  327. package/dist/{utils-wESuBh27.cjs → utils-Bna_JCkb.cjs} +3 -3
  328. package/dist/{utils-wESuBh27.cjs.map → utils-Bna_JCkb.cjs.map} +1 -1
  329. package/dist/{utils-BUK03Frl.js → utils-QXKhjIm6.js} +3 -3
  330. package/dist/{utils-BUK03Frl.js.map → utils-QXKhjIm6.js.map} +1 -1
  331. package/dist/{vectors-CZY34X8R.js → vectors-Ck7Qu6yz.js} +2 -2
  332. package/dist/{vectors-CZY34X8R.js.map → vectors-Ck7Qu6yz.js.map} +1 -1
  333. package/dist/{vectors-Cj-SPxOy.cjs → vectors-D6uZn2f1.cjs} +2 -2
  334. package/dist/{vectors-Cj-SPxOy.cjs.map → vectors-D6uZn2f1.cjs.map} +1 -1
  335. package/dist/{version-common-CEBQY7M8.cjs → version-common-AtNRQ5xH.cjs} +2 -2
  336. package/dist/{version-common-CEBQY7M8.cjs.map → version-common-AtNRQ5xH.cjs.map} +1 -1
  337. package/dist/{version-common-Cmd1f9JX.js → version-common-CudZ_WuW.js} +2 -2
  338. package/dist/{version-common-Cmd1f9JX.js.map → version-common-CudZ_WuW.js.map} +1 -1
  339. package/dist/{workflows-XfiENvkF.cjs → workflows--79xhOOb.cjs} +14 -3
  340. package/dist/workflows--79xhOOb.cjs.map +1 -0
  341. package/dist/{workflows-DPW6FrY0.js → workflows-B2ooCiwN.js} +9 -4
  342. package/dist/workflows-B2ooCiwN.js.map +1 -0
  343. package/package.json +8 -8
  344. package/dist/a2a-CnU9zaGR.js.map +0 -1
  345. package/dist/a2a-DKnwIgiw.cjs.map +0 -1
  346. package/dist/a2a-oM7aqLz4.cjs.map +0 -1
  347. package/dist/a2a-uPi5sPwb.js.map +0 -1
  348. package/dist/agents-CYvun9iI.js.map +0 -1
  349. package/dist/agents-Dk2qoJi_.cjs.map +0 -1
  350. package/dist/common-CPNOpqxA.js.map +0 -1
  351. package/dist/common-spbwhiWS.cjs.map +0 -1
  352. package/dist/datasets-Cvix7Rms.cjs.map +0 -1
  353. package/dist/datasets-dhXnHLAL.js.map +0 -1
  354. package/dist/dist-COHIL6fR.cjs.map +0 -1
  355. package/dist/dist-DGqlUp0b.js.map +0 -1
  356. package/dist/probe-image-size-BQgIJeY_.js.map +0 -1
  357. package/dist/probe-image-size-DYJVSL0b.cjs.map +0 -1
  358. package/dist/route-builder-CIk5k35M.js.map +0 -1
  359. package/dist/route-builder-CgLVYL1c.cjs.map +0 -1
  360. package/dist/routes-CRoTKPvQ.js.map +0 -1
  361. package/dist/routes-hSY4wTeS.cjs.map +0 -1
  362. package/dist/schema-B8-5YCsA.js +0 -2
  363. package/dist/schema-BieM1qrc.cjs +0 -1
  364. package/dist/schema-Bv9OdW1f-BY6u3u8K.cjs.map +0 -1
  365. package/dist/schema-Bv9OdW1f-CIOfv-3w.js.map +0 -1
  366. package/dist/server/handlers/stored-workflows.cjs +0 -6
  367. package/dist/server/handlers/stored-workflows.js +0 -2
  368. package/dist/server/schemas/stored-workflows.d.ts.map +0 -1
  369. package/dist/server/server-adapter/routes/stored-workflows.d.ts +0 -16
  370. package/dist/server/server-adapter/routes/stored-workflows.d.ts.map +0 -1
  371. package/dist/stored-workflows-OanG0TmB.js.map +0 -1
  372. package/dist/stored-workflows-pCiWK305.cjs.map +0 -1
  373. package/dist/workflows-DPW6FrY0.js.map +0 -1
  374. package/dist/workflows-XfiENvkF.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,251 @@
1
1
  # @mastra/server
2
2
 
3
+ ## 1.58.0-alpha.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`2e4624e`](https://github.com/mastra-ai/mastra/commit/2e4624edb6917e61249cb60ee377735e7af7e4a9), [`e6534fa`](https://github.com/mastra-ai/mastra/commit/e6534fab031216f6cb48c4c9907cbfdce9d60bc6), [`7fdcaa6`](https://github.com/mastra-ai/mastra/commit/7fdcaa66105d64290f9b14432a12ec99f39c4d3a), [`cfd0d9e`](https://github.com/mastra-ai/mastra/commit/cfd0d9ec77ec3c69dd96f79cdb579e03d79f22ce), [`d9d93b2`](https://github.com/mastra-ai/mastra/commit/d9d93b25e4a65ad5fa153fa35be7ed149c8d587f)]:
8
+ - @mastra/core@1.58.0-alpha.12
9
+
10
+ ## 1.58.0-alpha.11
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`b8ce7ec`](https://github.com/mastra-ai/mastra/commit/b8ce7ec96e39343c6c2f36d12d68a9ad816c09f7), [`a3a3624`](https://github.com/mastra-ai/mastra/commit/a3a3624f646b98e409424d8defccbd334da9e8b8), [`6246914`](https://github.com/mastra-ai/mastra/commit/62469146636911f3cbbe0880bd011c6a897a59a7), [`3f73c07`](https://github.com/mastra-ai/mastra/commit/3f73c076727e8c36b4fff7a1b40290fb68957fa8), [`7c1ebb1`](https://github.com/mastra-ai/mastra/commit/7c1ebb15690c4b3f0eabb19077cf8af573311e57), [`32980a3`](https://github.com/mastra-ai/mastra/commit/32980a3e2413d0274ac244d32c37d910edc13f00), [`4bcdfaf`](https://github.com/mastra-ai/mastra/commit/4bcdfaf0eac3199d7cb171b0a19a92c9c341eea4), [`af4636a`](https://github.com/mastra-ai/mastra/commit/af4636a74463275d71c1d13a38f7d2b738f128bf), [`a463cdf`](https://github.com/mastra-ai/mastra/commit/a463cdf1c95c3059e70f0bff27959e8558bb899d), [`0ea6b80`](https://github.com/mastra-ai/mastra/commit/0ea6b8001408ce02b56e8be0536b0fd8cbaf8ad2)]:
15
+ - @mastra/core@1.58.0-alpha.11
16
+
17
+ ## 1.58.0-alpha.10
18
+
19
+ ### Patch Changes
20
+
21
+ - Report background failures on the agent controller message, steer, and follow-up routes instead of crashing the server. These routes acknowledge the request immediately and let the session finish the turn in the background, so a session that failed to start (for example when a signal cannot be submitted) previously produced an unhandled rejection that terminated the process. The failure is now logged and delivered to the session's subscribers as an `error` event, so clients streaming the session are told the turn did not start. ([#21093](https://github.com/mastra-ai/mastra/pull/21093))
22
+
23
+ - Updated dependencies [[`66bbfb5`](https://github.com/mastra-ai/mastra/commit/66bbfb5f05b473d39f88c0e4a481ccac41634f3a)]:
24
+ - @mastra/core@1.58.0-alpha.10
25
+
26
+ ## 1.58.0-alpha.9
27
+
28
+ ### Patch Changes
29
+
30
+ - Added an optional `reason` when declining a tool call, so the model and your UI can see _why_ a tool call was rejected instead of always showing "Tool call was not approved by the user". ([#21085](https://github.com/mastra-ai/mastra/pull/21085))
31
+
32
+ ```ts
33
+ // Before: the model only learned the call was declined
34
+ await agent.declineToolCall({ runId, toolCallId });
35
+
36
+ // After: give the model context it can act on
37
+ await agent.declineToolCall({
38
+ runId,
39
+ toolCallId,
40
+ reason: 'Reading other users personal data is not allowed, ask the user for their own email instead',
41
+ });
42
+ ```
43
+
44
+ The reason is retained with the tool call, so it is still there when the conversation is recalled later. It is supported by `declineToolCall`, `declineToolCallGenerate` and `declineNetworkToolCall`, on both regular and durable agents. Omitting `reason` keeps the previous default message.
45
+
46
+ Closes #20495
47
+
48
+ - Updated dependencies [[`86b7b77`](https://github.com/mastra-ai/mastra/commit/86b7b777980d30f66e1fd134a37d2af4c22e54cc), [`80a3324`](https://github.com/mastra-ai/mastra/commit/80a33245d3110204de6f56d61211523ffe338692), [`d9d2881`](https://github.com/mastra-ai/mastra/commit/d9d2881ede6dd6c023d144215fc812062aed0890), [`82e3365`](https://github.com/mastra-ai/mastra/commit/82e3365ef7c9bf7bee2e7a7029035ea262d68895), [`1b482c2`](https://github.com/mastra-ai/mastra/commit/1b482c2d89244dd758c41e5f927a2b44041388d2), [`e6a2860`](https://github.com/mastra-ai/mastra/commit/e6a2860649cc51f87d32d78b766ae2126446ba07), [`7bd85ea`](https://github.com/mastra-ai/mastra/commit/7bd85ea7588b71c25ce9f4019c88f8539be5dcbc)]:
49
+ - @mastra/core@1.58.0-alpha.9
50
+
51
+ ## 1.58.0-alpha.8
52
+
53
+ ### Patch Changes
54
+
55
+ - Fix workflow stream caching being tied to a single client connection. Cached chunks are now written per run rather than per subscriber, so `/observe` replays a complete history after a client disconnects mid-run, and concurrent subscribers to the same run no longer cache every chunk twice. ([#21020](https://github.com/mastra-ai/mastra/pull/21020))
56
+
57
+ - Updated dependencies [[`1c75e32`](https://github.com/mastra-ai/mastra/commit/1c75e32f7fc0b9fb6f548b4407feaec8a1440212), [`c47165c`](https://github.com/mastra-ai/mastra/commit/c47165c983c87594c6952f1fd2fa51a90205034c), [`e08e789`](https://github.com/mastra-ai/mastra/commit/e08e789c1bf4cd2fe46363f7a4728536ceccc9bd), [`35cc901`](https://github.com/mastra-ai/mastra/commit/35cc90102cf834a84827acaf9eee0b6d6d1e2a3b), [`a8b4cf0`](https://github.com/mastra-ai/mastra/commit/a8b4cf02823cffebc4751a53337dfacf097c1ae1), [`f33264f`](https://github.com/mastra-ai/mastra/commit/f33264f517ae603279afd5c4251e2b40f6dd3618), [`689f2c4`](https://github.com/mastra-ai/mastra/commit/689f2c4b6c0835fe455702b01d21daa8abcd9331), [`eeae63e`](https://github.com/mastra-ai/mastra/commit/eeae63e7fbe8e1f237adc69bca6e2ac13c5ca907), [`4c186a0`](https://github.com/mastra-ai/mastra/commit/4c186a017275f45e6ed4c09de0f89550e2d09e8c), [`b0fa077`](https://github.com/mastra-ai/mastra/commit/b0fa077bcbc9b08551846fe372a0d3d15b71ed72)]:
58
+ - @mastra/core@1.58.0-alpha.8
59
+
60
+ ## 1.58.0-alpha.7
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [[`7fb580a`](https://github.com/mastra-ai/mastra/commit/7fb580ac73fbcacf2ff00872a3395f73ae1b9fa5), [`333785c`](https://github.com/mastra-ai/mastra/commit/333785c93cbb01e42c60167e995457c28897ddbf), [`2eabc09`](https://github.com/mastra-ai/mastra/commit/2eabc097d86d52fbd0123da36a7c874154cc384f), [`83fa004`](https://github.com/mastra-ai/mastra/commit/83fa0044bfda8b703a83883dbd8bef204844d13f)]:
65
+ - @mastra/core@1.58.0-alpha.7
66
+
67
+ ## 1.58.0-alpha.6
68
+
69
+ ### Patch Changes
70
+
71
+ - Fixed invalid pagination query parameters returning a 500 instead of a 400. ([#21013](https://github.com/mastra-ai/mastra/pull/21013))
72
+
73
+ Requests such as `?page=-1`, `?page=1.5`, or `?perPage=-5` used to pass request validation and were only rejected deep in the storage layer, which surfaced them as `500 Internal Server Error`. Malformed client input is now rejected at the request boundary and returns `400 Bad Request` naming the offending field, matching what `GET /api/workflows/:workflowId/runs` already did.
74
+
75
+ **Before**
76
+
77
+ ```
78
+ GET /api/memory/threads?resourceId=user-1&page=-1
79
+ → 500 Internal Server Error { "error": "page must be >= 0" }
80
+ ```
81
+
82
+ **After**
83
+
84
+ ```
85
+ GET /api/memory/threads?resourceId=user-1&page=-1
86
+ → 400 Bad Request
87
+ { "error": "Invalid query parameters", "issues": [{ "field": "page", "message": "..." }] }
88
+ ```
89
+
90
+ This affects every paginated endpoint built on the shared pagination schemas, including memory, logs, MCP, and the stored agent/skill/scorer routes. `perPage=0` stays valid, since storage uses it as the include-only fast path.
91
+
92
+ - Updated dependencies [[`f59032a`](https://github.com/mastra-ai/mastra/commit/f59032a73699443555a08a479e7ac578975784f2), [`bf936e2`](https://github.com/mastra-ai/mastra/commit/bf936e2c89b2ff0dad5695b873ddc009ba96d41e)]:
93
+ - @mastra/core@1.58.0-alpha.6
94
+
95
+ ## 1.58.0-alpha.5
96
+
97
+ ### Minor Changes
98
+
99
+ - Renamed the stored workflows handlers and schemas to dynamic workflows. HTTP route paths and permissions are unchanged. ([#20938](https://github.com/mastra-ai/mastra/pull/20938))
100
+
101
+ ### Patch Changes
102
+
103
+ - Updated dependencies [[`6445eba`](https://github.com/mastra-ai/mastra/commit/6445eba6020abac681aba1cc9289f446cb400cbe), [`df31eb0`](https://github.com/mastra-ai/mastra/commit/df31eb0c7087d782a0d9346e467f9a4af4b0eef6), [`fcd0667`](https://github.com/mastra-ai/mastra/commit/fcd0667a4e378be35c9a1b1eb19cce78fbfd7282), [`bab06b1`](https://github.com/mastra-ai/mastra/commit/bab06b18923873a584bdfc71a6b4ec7fb4727fb7)]:
104
+ - @mastra/core@1.58.0-alpha.5
105
+
106
+ ## 1.58.0-alpha.4
107
+
108
+ ### Minor Changes
109
+
110
+ - Added `MastraServer.getFrameworkPublicMatcher()`, which returns a `(path, method) => boolean` matcher built from route metadata (built-in `SERVER_ROUTES` entries with `requiresAuth === false`, plus user-registered custom routes with `requiresAuth: false`). ([#20989](https://github.com/mastra-ai/mastra/pull/20989))
111
+
112
+ Adapters can use it to short-circuit user middleware for routes the framework has declared public, without duplicating any allowlist.
113
+
114
+ ```ts
115
+ const isFrameworkPublic = mastraServer.getFrameworkPublicMatcher();
116
+
117
+ app.use('*', async (c, next) => {
118
+ if (isFrameworkPublic(c.req.path, c.req.method)) {
119
+ return next();
120
+ }
121
+ return userMiddleware(c, next);
122
+ });
123
+ ```
124
+
125
+ ### Patch Changes
126
+
127
+ - Updated dependencies [[`76e5132`](https://github.com/mastra-ai/mastra/commit/76e51328dbc0749c8304e6b3f21e4401f451b081), [`0282e16`](https://github.com/mastra-ai/mastra/commit/0282e16115538c8e9b248b90f0748eb01cb5dc98)]:
128
+ - @mastra/core@1.58.0-alpha.4
129
+
130
+ ## 1.58.0-alpha.3
131
+
132
+ ### Minor Changes
133
+
134
+ - Added `GET /api/workflows/run-counts` — per-workflow counts of running and suspended (awaiting resume) runs in one request, keyed by the workflow registry key. Counts respect the reserved request-context resource id the runs endpoints already enforce, are filtered per user when FGA is configured, and may be served from a short server-side cache otherwise. ([#18925](https://github.com/mastra-ai/mastra/pull/18925))
135
+
136
+ ```json
137
+ // GET /api/workflows/run-counts
138
+ {
139
+ "cityWorkflow": { "running": 2, "suspended": 1 },
140
+ "reportWorkflow": { "running": 0, "suspended": 0 }
141
+ }
142
+ ```
143
+
144
+ - Added A2A Protocol v1.0 request handling through the standard A2A routes. Send `A2A-Version: 1.0` to use v1 methods, streaming responses, and task listing while existing requests continue to use v0.3. ([#20811](https://github.com/mastra-ai/mastra/pull/20811))
145
+
146
+ ```typescript
147
+ await fetch('/api/a2a/weather-agent', {
148
+ method: 'POST',
149
+ headers: { 'A2A-Version': '1.0' },
150
+ body: JSON.stringify({ jsonrpc: '2.0', id: '1', method: 'tasks/list', params: {} }),
151
+ });
152
+ ```
153
+
154
+ ### Patch Changes
155
+
156
+ - Add a reasoning-effort configuration surface across mastracode and Factory (fixes #20766): ([#20884](https://github.com/mastra-ai/mastra/pull/20884))
157
+
158
+ - New `max` thinking level (mapped to `reasoning effort: max` for OpenAI Codex and Anthropic `effort`).
159
+ - Anthropic extended-thinking wiring: the session thinking level now applies to anthropic/claude-opus-4-7 and other Anthropic models via provider thinking/effort options (previously OpenAI-only).
160
+ - New `models.modeThinkingDefaults` setting: per-mode (build/plan/fast) default thinking levels, resolved at request time with precedence session override → mode default → global `preferences.thinkingLevel`. Configuration changes now apply to the next request of every session, including automated Factory runs.
161
+ - Factory: new Settings → Defaults controls for editing global and per-mode thinking defaults in local deployments.
162
+ - TUI: `/think` now sets a session-only override, supports `/think default` to clear it, and `/think status` reports the effective level with provenance (session override / mode default / global default).
163
+
164
+ Example `settings.json` configuration:
165
+
166
+ ```json
167
+ {
168
+ "preferences": { "thinkingLevel": "medium" },
169
+ "models": {
170
+ "modeThinkingDefaults": {
171
+ "build": "high",
172
+ "plan": "max",
173
+ "fast": "off"
174
+ }
175
+ }
176
+ }
177
+ ```
178
+
179
+ - Updated dependencies [[`cdd5c33`](https://github.com/mastra-ai/mastra/commit/cdd5c33ac6c7118a9f139e6dc0e14e6a8ae31658), [`d7cf7fa`](https://github.com/mastra-ai/mastra/commit/d7cf7fafc1ae1b50bd8462dd0e6c671a8606db93), [`0f9a448`](https://github.com/mastra-ai/mastra/commit/0f9a448502157e59f7b76f24360ad497168f5ef8), [`289f4ce`](https://github.com/mastra-ai/mastra/commit/289f4ce16e3293370440172132c52ee787cbc09f), [`4f16ff8`](https://github.com/mastra-ai/mastra/commit/4f16ff824bf2f9b0ddc93f210477c10c8a4fb1ab), [`1c67d85`](https://github.com/mastra-ai/mastra/commit/1c67d85e9da8285662f4dbbf47e0378c3fee0747), [`ba24be6`](https://github.com/mastra-ai/mastra/commit/ba24be662439c331ab23a600041f93803c89eca8), [`842b5fe`](https://github.com/mastra-ai/mastra/commit/842b5fe22b6a7fa811bd14e48eb9af523ac989f2), [`80bdf3a`](https://github.com/mastra-ai/mastra/commit/80bdf3ae16ade6ff63bde0cb16fa2df8ab7dd4dd), [`9ba1247`](https://github.com/mastra-ai/mastra/commit/9ba12470c77f1c03642d720ce67e517e878f666e), [`fd96298`](https://github.com/mastra-ai/mastra/commit/fd96298a8367622f4ebfcaa97b5b6c1fbbd14564), [`6a84954`](https://github.com/mastra-ai/mastra/commit/6a84954a2667f85b6d59da652dab1bbff007ccb0), [`52d8ef0`](https://github.com/mastra-ai/mastra/commit/52d8ef03801f1deb7ee48532fc4190dd4a33916c), [`cdd5c33`](https://github.com/mastra-ai/mastra/commit/cdd5c33ac6c7118a9f139e6dc0e14e6a8ae31658), [`efd5c81`](https://github.com/mastra-ai/mastra/commit/efd5c81cc25fde3c2ddd86fc1178deb4ec176e19), [`0976933`](https://github.com/mastra-ai/mastra/commit/0976933142333ec78451feef265b68bcb45aa5e7), [`242b945`](https://github.com/mastra-ai/mastra/commit/242b94558777bfbdeb42cbfea84afff0b6ad0633), [`fea5cae`](https://github.com/mastra-ai/mastra/commit/fea5caedc7e2cfea51784a15e015952692027abf), [`4b59f78`](https://github.com/mastra-ai/mastra/commit/4b59f786cbc9a7d1ef07a07517dbd4b96865e99d), [`7010c5d`](https://github.com/mastra-ai/mastra/commit/7010c5d15728bf9c5dfe4fb6b1bf80ce23bf143a)]:
180
+ - @mastra/core@1.58.0-alpha.3
181
+
182
+ ## 1.58.0-alpha.2
183
+
184
+ ### Patch Changes
185
+
186
+ - Fixed agent-controller display-state events losing their tool state over SSE. The display state's Maps (active tools, streaming tool inputs, pending suspensions, active subagents, modified files) serialized to empty objects on the wire; they now arrive as plain records keyed the same way. ([#20805](https://github.com/mastra-ai/mastra/pull/20805))
187
+
188
+ - Catch rejected background Run.resume() and Run.timeTravel() in the workflow /resume and /time-travel routes so they cannot become unhandled rejections and terminate the server process ([#20916](https://github.com/mastra-ai/mastra/pull/20916))
189
+
190
+ - Updated dependencies [[`b4c89b4`](https://github.com/mastra-ai/mastra/commit/b4c89b4371b0c86da57403ad1a3b3ef0681f3128), [`e44e8f3`](https://github.com/mastra-ai/mastra/commit/e44e8f370b66c339ddcaba946d33da6d3c3f06cd), [`c967a5e`](https://github.com/mastra-ai/mastra/commit/c967a5eec150c5dc5418c4a4388982d1fb7ad27c), [`f53d5bd`](https://github.com/mastra-ai/mastra/commit/f53d5bd4885b29e4ac29a428a6044088ea8d6aa3), [`bda2235`](https://github.com/mastra-ai/mastra/commit/bda22353ee28f2df0eaea555f7cae1549f979c0b), [`a7eb4a1`](https://github.com/mastra-ai/mastra/commit/a7eb4a11450f6170274ed5141bffe821d4fdd5a6), [`2f9ef3f`](https://github.com/mastra-ai/mastra/commit/2f9ef3f4ca06fc2dcdd5088c26b7f4da6a016791), [`e7eefcb`](https://github.com/mastra-ai/mastra/commit/e7eefcb162cda7c493e8c3bf43050ead0efbcb2c), [`4d7aca2`](https://github.com/mastra-ai/mastra/commit/4d7aca2fe75f225c83d1502d63079568e6ec163f), [`c4ec889`](https://github.com/mastra-ai/mastra/commit/c4ec889561c0264c43f66d04d587bee4ce35e792), [`9be8878`](https://github.com/mastra-ai/mastra/commit/9be8878dcf0388e84fc4873e0eec27bd49b881a4)]:
191
+ - @mastra/core@1.58.0-alpha.2
192
+
193
+ ## 1.58.0-alpha.1
194
+
195
+ ### Minor Changes
196
+
197
+ - Added experiment provenance and grouping fields to dataset HTTP APIs, including grouping filters for experiment lists. ([#20645](https://github.com/mastra-ai/mastra/pull/20645))
198
+
199
+ ```text
200
+ GET /api/datasets/my-dataset/experiments?experimentSetId=benchmark-1&trialIndex=0
201
+ ```
202
+
203
+ - Added A2A v0.3 human-in-the-loop task handling. Exposed agents now pause with an input-required status and resume the same run when clients send follow-up input. ([#20708](https://github.com/mastra-ai/mastra/pull/20708))
204
+
205
+ ```typescript
206
+ await fetch('https://agent.example.com/api/a2a/booking-agent', {
207
+ method: 'POST',
208
+ headers: { 'Content-Type': 'application/json' },
209
+ body: JSON.stringify({
210
+ jsonrpc: '2.0',
211
+ id: 'resume-1',
212
+ method: 'message/send',
213
+ params: {
214
+ message: {
215
+ kind: 'message',
216
+ messageId: crypto.randomUUID(),
217
+ role: 'user',
218
+ taskId,
219
+ parts: [{ kind: 'text', text: 'Approved' }],
220
+ },
221
+ },
222
+ }),
223
+ });
224
+ ```
225
+
226
+ The server also preserves terminal task states and handles authentication interruptions, resubscription, cancellation errors, unknown task IDs, and JSON-RPC request ID zero.
227
+
228
+ - `GET /observability/traces/light` now accepts `mode=delta`, `after` and `limit`, matching `GET /observability/traces`. Previously those parameters were silently ignored, so a client trying to live-tail a lightweight list would refetch the first page on every poll. ([#20677](https://github.com/mastra-ai/mastra/pull/20677))
229
+
230
+ ```http
231
+ GET /observability/traces/light?mode=delta&after=<deltaCursor>&limit=100
232
+ ```
233
+
234
+ The response contains the traces recorded since the cursor and a new `deltaCursor` for the next poll.
235
+
236
+ ### Patch Changes
237
+
238
+ - Preserve experiment name, description, and metadata from HTTP trigger requests. ([#20578](https://github.com/mastra-ai/mastra/pull/20578))
239
+
240
+ - Fixed stored agent APIs to reject unpublished or unresolved prompt block references with the affected block IDs when creating or updating agents and activating agent versions. ([#20790](https://github.com/mastra-ai/mastra/pull/20790))
241
+
242
+ - Prevent a failed background workflow run restart from terminating the server. ([#20473](https://github.com/mastra-ai/mastra/pull/20473))
243
+
244
+ - Abort active A2A streams when tasks are canceled or streaming requests disconnect, and prevent late updates from overwriting canceled tasks. ([#20505](https://github.com/mastra-ai/mastra/pull/20505))
245
+
246
+ - Updated dependencies [[`e7109ee`](https://github.com/mastra-ai/mastra/commit/e7109ee6f731bacc79c885906f3c7dca8d8f013a), [`772c0c8`](https://github.com/mastra-ai/mastra/commit/772c0c897cec383258de2e6178147f8014767c7b), [`578bf2e`](https://github.com/mastra-ai/mastra/commit/578bf2e6a88e9d5b8bf502204e15a95dfbb679ae), [`06b2d87`](https://github.com/mastra-ai/mastra/commit/06b2d87e63bcdd0ed59215c6789692b9b12de376), [`ac01d63`](https://github.com/mastra-ai/mastra/commit/ac01d6355974aec73fdb8781449ed12bac582094), [`a810a05`](https://github.com/mastra-ai/mastra/commit/a810a058f62ad407cfc1701e0be36ae91145d7cf), [`f8da216`](https://github.com/mastra-ai/mastra/commit/f8da21633e7eb0e31c9ce0fc30567870d19416d3), [`6104347`](https://github.com/mastra-ai/mastra/commit/61043473ba6bfd0a25156824e853e13165562e6c), [`45bfb88`](https://github.com/mastra-ai/mastra/commit/45bfb88fd52f1dd3be20e2a38905777c96499c90), [`e3b9307`](https://github.com/mastra-ai/mastra/commit/e3b9307098daefbfae2a52ae2ef51bc9fc701190), [`d6834c5`](https://github.com/mastra-ai/mastra/commit/d6834c5a7866b16734d23900163c2414ed70d791), [`c52d346`](https://github.com/mastra-ai/mastra/commit/c52d3462ec831a5d95926ecd3d3373f5928ad2e5), [`0023e79`](https://github.com/mastra-ai/mastra/commit/0023e7919431078280abd11c89d1edeae35fcc69), [`c2ad51e`](https://github.com/mastra-ai/mastra/commit/c2ad51e2467f901eecba8c9f4a45e22a50bd7c18), [`3dc97ea`](https://github.com/mastra-ai/mastra/commit/3dc97ea415fad353b48a13095fad1835933cc12a), [`3d01cd3`](https://github.com/mastra-ai/mastra/commit/3d01cd387321b6f9c5cac31d487c84bf51b19c78), [`7bf3086`](https://github.com/mastra-ai/mastra/commit/7bf308663f0115ca74ad20554ade740f06640859), [`a8dd139`](https://github.com/mastra-ai/mastra/commit/a8dd1391a9fe9a6632c25809ef236980afa9a020), [`e5786be`](https://github.com/mastra-ai/mastra/commit/e5786be02bb903073082bd9d6da880ebaacc343f), [`2093fbd`](https://github.com/mastra-ai/mastra/commit/2093fbd53bb744bae19ec89f6d73db9a66fbe8a7), [`e7a5da4`](https://github.com/mastra-ai/mastra/commit/e7a5da4ef8e4dd452d2f232961b4e682a85ffe43), [`7b4393d`](https://github.com/mastra-ai/mastra/commit/7b4393d557411fdcf07b0e30e5acaf7cc85154ae)]:
247
+ - @mastra/core@1.58.0-alpha.1
248
+
3
249
  ## 1.58.0-alpha.0
4
250
 
5
251
  ### Patch Changes
@@ -13,7 +13,7 @@ export declare class AnthropicSchemaCompatLayer extends SchemaCompatLayer {
13
13
  processToJSONSchema(schema: PublicSchema<any>, io?: 'input' | 'output'): JSONSchema7;
14
14
  shouldApply(): boolean;
15
15
  processZodType(value: ZodType): ZodType;
16
- processToAISDKSchema(zodSchema: ZodTypeV3 | ZodTypeV4): import("../_types/@internal_ai-sdk-v4/dist/index.d.ts").Schema<any>;
16
+ processToAISDKSchema(zodSchema: ZodTypeV3 | ZodTypeV4): import("../_types/@internal_ai-sdk-v4/dist/index.d.ts").Schema<unknown>;
17
17
  processToCompatSchema<T>(schema: PublicSchema<T>): StandardSchemaWithJSON<T>;
18
18
  preProcessJSONNode(schema: JSONSchema7): void;
19
19
  postProcessJSONNode(schema: JSONSchema7): void;
@@ -15,8 +15,10 @@ const pushNotificationConfigSchema = z.object({
15
15
  const messageSendConfigurationSchema = z.object({
16
16
  acceptedOutputModes: z.array(z.string()).optional().describe("Accepted output modalities by the client"),
17
17
  blocking: z.boolean().optional().describe("If the server should treat the client as a blocking request"),
18
+ returnImmediately: z.boolean().optional().describe("If the v1 server should return before task completion"),
18
19
  historyLength: z.number().optional().describe("Number of recent messages to be retrieved"),
19
- pushNotificationConfig: pushNotificationConfigSchema.optional()
20
+ pushNotificationConfig: pushNotificationConfigSchema.optional(),
21
+ taskPushNotificationConfig: pushNotificationConfigSchema.optional()
20
22
  });
21
23
  const textPartSchema = z.object({
22
24
  kind: z.literal("text").describe("Part type - text for TextParts"),
@@ -48,11 +50,30 @@ const partSchema = z.union([
48
50
  filePartSchema,
49
51
  dataPartSchema
50
52
  ]);
53
+ const v1PartSchema = z.object({
54
+ text: z.string().optional(),
55
+ raw: z.string().optional(),
56
+ url: z.string().optional(),
57
+ data: z.unknown().optional(),
58
+ filename: z.string().optional(),
59
+ mediaType: z.string().optional(),
60
+ metadata: z.record(z.string(), z.unknown()).optional()
61
+ }).refine((part) => [
62
+ part.text,
63
+ part.raw,
64
+ part.url,
65
+ part.data
66
+ ].filter((value) => value !== void 0).length === 1, { message: "A v1 part must contain exactly one of text, raw, url, or data" });
51
67
  const messageSchema = z.object({
52
- kind: z.literal("message").describe("Event type"),
68
+ kind: z.literal("message").optional().describe("Event type"),
53
69
  messageId: z.string().describe("Identifier created by the message creator"),
54
- role: z.enum(["user", "agent"]).describe("Message sender's role"),
55
- parts: z.array(partSchema).describe("Message content"),
70
+ role: z.enum([
71
+ "user",
72
+ "agent",
73
+ "ROLE_USER",
74
+ "ROLE_AGENT"
75
+ ]).describe("Message sender's role"),
76
+ parts: z.array(z.union([partSchema, v1PartSchema])).describe("Message content"),
56
77
  contextId: z.string().optional().describe("The context the message is associated with"),
57
78
  taskId: z.string().optional().describe("Identifier of task the message is related to"),
58
79
  referenceTaskIds: z.array(z.string()).optional().describe("List of tasks referenced as context by this message"),
@@ -73,6 +94,16 @@ const taskIdParamsSchema = z.object({
73
94
  id: z.string().describe("Task id"),
74
95
  metadata: z.record(z.string(), z.unknown()).optional()
75
96
  });
97
+ const listTasksParamsSchema = z.object({
98
+ tenant: z.string().optional(),
99
+ contextId: z.string().optional(),
100
+ status: z.union([z.string(), z.number()]).optional(),
101
+ pageSize: z.number().int().min(1).max(100).optional(),
102
+ pageToken: z.string().optional(),
103
+ historyLength: z.number().int().min(0).optional(),
104
+ statusTimestampAfter: z.string().optional(),
105
+ includeArtifacts: z.boolean().optional()
106
+ });
76
107
  const taskResubscribeParamsSchema = taskIdParamsSchema;
77
108
  const setPushNotificationConfigParamsSchema = z.object({
78
109
  taskId: z.string().describe("Task id"),
@@ -106,6 +137,11 @@ const agentExecutionBodySchema = z.discriminatedUnion("method", [
106
137
  method: z.literal("tasks/get"),
107
138
  params: taskQueryParamsSchema
108
139
  }),
140
+ z.object({
141
+ ...requestBaseSchema,
142
+ method: z.literal("tasks/list"),
143
+ params: listTasksParamsSchema
144
+ }),
109
145
  z.object({
110
146
  ...requestBaseSchema,
111
147
  method: z.literal("tasks/cancel"),
@@ -180,4 +216,4 @@ const agentExecutionResponseSchema = z.unknown();
180
216
  //#endregion
181
217
  export { agentExecutionResponseSchema as a, taskResponseSchema as c, agentExecutionBodySchema as i, a2aTaskPathParams as n, messageSendBodySchema as o, agentCardResponseSchema as r, taskQueryBodySchema as s, a2aAgentIdPathParams as t };
182
218
 
183
- //# sourceMappingURL=a2a-CnU9zaGR.js.map
219
+ //# sourceMappingURL=a2a-8C4O2dVJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"a2a-8C4O2dVJ.js","names":[],"sources":["../src/server/schemas/a2a.ts"],"sourcesContent":["import { z } from 'zod/v4';\n\n// Path parameter schemas\nexport const a2aAgentIdPathParams = z.object({\n agentId: z.string().describe('Unique identifier for the agent'),\n});\n\nexport const a2aTaskPathParams = a2aAgentIdPathParams.extend({\n taskId: z.string().describe('Unique identifier for the task'),\n});\n\n// Body schemas for A2A protocol\n\n// Push notification schemas\nconst pushNotificationAuthenticationInfoSchema = z.object({\n schemes: z.array(z.string()).describe('Supported authentication schemes - e.g. Basic, Bearer'),\n credentials: z.string().optional().describe('Optional credentials'),\n});\n\nconst pushNotificationConfigSchema = z.object({\n url: z.string().describe('URL for sending the push notifications'),\n id: z.string().optional().describe('Push Notification ID - created by server to support multiple callbacks'),\n token: z.string().optional().describe('Token unique to this task/session'),\n authentication: pushNotificationAuthenticationInfoSchema.optional(),\n});\n\nconst messageSendConfigurationSchema = z.object({\n acceptedOutputModes: z.array(z.string()).optional().describe('Accepted output modalities by the client'),\n blocking: z.boolean().optional().describe('If the server should treat the client as a blocking request'),\n returnImmediately: z.boolean().optional().describe('If the v1 server should return before task completion'),\n historyLength: z.number().optional().describe('Number of recent messages to be retrieved'),\n pushNotificationConfig: pushNotificationConfigSchema.optional(),\n taskPushNotificationConfig: pushNotificationConfigSchema.optional(),\n});\n\n// Part schemas\nconst textPartSchema = z.object({\n kind: z.literal('text').describe('Part type - text for TextParts'),\n text: z.string().describe('Text content'),\n metadata: z.record(z.string(), z.unknown()).optional().describe('Optional metadata associated with the part'),\n});\n\nconst fileWithBytesSchema = z.object({\n bytes: z.string().describe('base64 encoded content of the file'),\n mimeType: z.string().optional().describe('Optional mimeType for the file'),\n name: z.string().optional().describe('Optional name for the file'),\n});\n\nconst fileWithUriSchema = z.object({\n uri: z.string().describe('URL for the File content'),\n mimeType: z.string().optional().describe('Optional mimeType for the file'),\n name: z.string().optional().describe('Optional name for the file'),\n});\n\nconst filePartSchema = z.object({\n kind: z.literal('file').describe('Part type - file for FileParts'),\n file: z.union([fileWithBytesSchema, fileWithUriSchema]).describe('File content either as url or bytes'),\n metadata: z.record(z.string(), z.unknown()).optional().describe('Optional metadata associated with the part'),\n});\n\nconst dataPartSchema = z.object({\n kind: z.literal('data').describe('Part type - data for DataParts'),\n data: z.record(z.string(), z.unknown()).describe('Structured data content'),\n metadata: z.record(z.string(), z.unknown()).optional().describe('Optional metadata associated with the part'),\n});\n\nconst partSchema = z.union([textPartSchema, filePartSchema, dataPartSchema]);\n\nconst v1PartSchema = z\n .object({\n text: z.string().optional(),\n raw: z.string().optional(),\n url: z.string().optional(),\n data: z.unknown().optional(),\n filename: z.string().optional(),\n mediaType: z.string().optional(),\n metadata: z.record(z.string(), z.unknown()).optional(),\n })\n .refine(part => [part.text, part.raw, part.url, part.data].filter(value => value !== undefined).length === 1, {\n message: 'A v1 part must contain exactly one of text, raw, url, or data',\n });\n\n// Message schema\nconst messageSchema = z.object({\n kind: z.literal('message').optional().describe('Event type'),\n messageId: z.string().describe('Identifier created by the message creator'),\n role: z.enum(['user', 'agent', 'ROLE_USER', 'ROLE_AGENT']).describe(\"Message sender's role\"),\n parts: z.array(z.union([partSchema, v1PartSchema])).describe('Message content'),\n contextId: z.string().optional().describe('The context the message is associated with'),\n taskId: z.string().optional().describe('Identifier of task the message is related to'),\n referenceTaskIds: z.array(z.string()).optional().describe('List of tasks referenced as context by this message'),\n extensions: z\n .array(z.string())\n .optional()\n .describe('The URIs of extensions that are present or contributed to this Message'),\n metadata: z.record(z.string(), z.unknown()).optional().describe('Extension metadata'),\n});\n\n// MessageSendParams schema\nconst messageSendParamsSchema = z.object({\n message: messageSchema,\n configuration: messageSendConfigurationSchema.optional(),\n metadata: z.record(z.string(), z.unknown()).optional().describe('Extension metadata'),\n});\n\n// TaskQueryParams schema\nconst taskQueryParamsSchema = z.object({\n id: z.string().describe('Task id'),\n historyLength: z.number().optional().describe('Number of recent messages to be retrieved'),\n metadata: z.record(z.string(), z.unknown()).optional(),\n});\n\n// TaskIdParams schema\nconst taskIdParamsSchema = z.object({\n id: z.string().describe('Task id'),\n metadata: z.record(z.string(), z.unknown()).optional(),\n});\n\nconst listTasksParamsSchema = z.object({\n tenant: z.string().optional(),\n contextId: z.string().optional(),\n status: z.union([z.string(), z.number()]).optional(),\n pageSize: z.number().int().min(1).max(100).optional(),\n pageToken: z.string().optional(),\n historyLength: z.number().int().min(0).optional(),\n statusTimestampAfter: z.string().optional(),\n includeArtifacts: z.boolean().optional(),\n});\n\nexport const taskResubscribeParamsSchema = taskIdParamsSchema;\n\nexport const setPushNotificationConfigParamsSchema = z.object({\n taskId: z.string().describe('Task id'),\n pushNotificationConfig: pushNotificationConfigSchema,\n});\n\nconst getPushNotificationConfigParamsSchema = taskIdParamsSchema.extend({\n pushNotificationConfigId: z.string().optional().describe('Push notification config id'),\n});\n\nexport const listPushNotificationConfigParamsSchema = taskIdParamsSchema;\n\nexport const deletePushNotificationConfigParamsSchema = taskIdParamsSchema.extend({\n pushNotificationConfigId: z.string().describe('Push notification config id'),\n});\n\n// Legacy schema for backwards compatibility\nexport const messageSendBodySchema = z.object({\n message: messageSchema,\n metadata: z.record(z.string(), z.unknown()).optional(),\n});\n\nexport const taskQueryBodySchema = z.object({\n id: z.string(),\n});\n\nconst requestBaseSchema = {\n jsonrpc: z.literal('2.0'),\n id: z.union([z.string(), z.number()]),\n} as const;\n\nexport const agentExecutionBodySchema = z.discriminatedUnion('method', [\n z.object({\n ...requestBaseSchema,\n method: z.literal('message/send'),\n params: messageSendParamsSchema,\n }),\n z.object({\n ...requestBaseSchema,\n method: z.literal('message/stream'),\n params: messageSendParamsSchema,\n }),\n z.object({\n ...requestBaseSchema,\n method: z.literal('tasks/get'),\n params: taskQueryParamsSchema,\n }),\n z.object({\n ...requestBaseSchema,\n method: z.literal('tasks/list'),\n params: listTasksParamsSchema,\n }),\n z.object({\n ...requestBaseSchema,\n method: z.literal('tasks/cancel'),\n params: taskIdParamsSchema,\n }),\n z.object({\n ...requestBaseSchema,\n method: z.literal('tasks/resubscribe'),\n params: taskResubscribeParamsSchema,\n }),\n z.object({\n ...requestBaseSchema,\n method: z.literal('tasks/pushNotificationConfig/set'),\n params: setPushNotificationConfigParamsSchema,\n }),\n z.object({\n ...requestBaseSchema,\n method: z.literal('tasks/pushNotificationConfig/get'),\n params: getPushNotificationConfigParamsSchema,\n }),\n z.object({\n ...requestBaseSchema,\n method: z.literal('tasks/pushNotificationConfig/list'),\n params: listPushNotificationConfigParamsSchema,\n }),\n z.object({\n ...requestBaseSchema,\n method: z.literal('tasks/pushNotificationConfig/delete'),\n params: deletePushNotificationConfigParamsSchema,\n }),\n z.object({\n ...requestBaseSchema,\n method: z.literal('agent/getAuthenticatedExtendedCard'),\n }),\n]);\n\n// Response schemas\nexport const agentCardResponseSchema = z.object({\n additionalInterfaces: z.array(z.unknown()).optional(),\n name: z.string(),\n description: z.string(),\n url: z.string(),\n protocolVersion: z.string(),\n provider: z\n .object({\n organization: z.string(),\n url: z.string(),\n })\n .optional(),\n security: z.array(z.record(z.string(), z.array(z.string()))).optional(),\n securitySchemes: z.record(z.string(), z.unknown()).optional(),\n version: z.string(),\n capabilities: z.object({\n extensions: z.array(z.unknown()).optional(),\n streaming: z.boolean().optional(),\n pushNotifications: z.boolean().optional(),\n stateTransitionHistory: z.boolean().optional(),\n }),\n defaultInputModes: z.array(z.string()),\n defaultOutputModes: z.array(z.string()),\n supportsAuthenticatedExtendedCard: z.boolean().optional(),\n signatures: z\n .array(\n z.object({\n protected: z.string(),\n signature: z.string(),\n header: z.record(z.string(), z.unknown()).optional(),\n }),\n )\n .optional(),\n skills: z.array(\n z.object({\n id: z.string(),\n name: z.string(),\n description: z.string(),\n tags: z.array(z.string()).optional(),\n }),\n ),\n});\n\nexport const taskResponseSchema = z.unknown(); // Complex task state structure\n\nexport const agentExecutionResponseSchema = z.unknown(); // JSON-RPC response\n"],"mappings":";;AAGA,MAAa,uBAAuB,EAAE,OAAO,EAC3C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,EAChE,CAAC;AAED,MAAa,oBAAoB,qBAAqB,OAAO,EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,EAC9D,CAAC;AAKD,MAAM,2CAA2C,EAAE,OAAO;CACxD,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uDAAuD;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,sBAAsB;AACpE,CAAC;AAED,MAAM,+BAA+B,EAAE,OAAO;CAC5C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,wEAAwE;CAC3G,OAAO,EAAE,OAAO,CAAC,CA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