@mastra/server 1.86.0-alpha.9 → 1.87.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/provider-compats/anthropic.d.ts +1 -1
  2. package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/provider-compats/deepseek.d.ts +1 -1
  3. package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/provider-compats/meta.d.ts +1 -1
  4. package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/schema.types.d.ts +3 -3
  5. package/dist/{agent-builder-DHnNRROR.js → agent-builder-B3vJTDHo.js} +1 -1
  6. package/dist/{agent-builder-anRH1X35.cjs → agent-builder-QnIH-0LI.cjs} +1 -1
  7. package/dist/{api-schema-manifest-4PK1dBWt.js → api-schema-manifest-BS3Xfypt.js} +1 -1
  8. package/dist/{api-schema-manifest-CX16hC7V.cjs → api-schema-manifest-DohjGeTI.cjs} +1 -1
  9. package/dist/{catalogue-DNy7Fog6.cjs → catalogue-BTdmOZq6.cjs} +3 -3
  10. package/dist/{catalogue-BOzHZ1xt.js → catalogue-CS1s8mfe.js} +3 -3
  11. package/dist/docs/SKILL.md +1 -1
  12. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  13. package/dist/docs/references/docs-agents-resumable-streams.md +15 -6
  14. package/dist/{routes-BZVlqLly.js → routes-ClPVLnwR.js} +3 -3
  15. package/dist/{routes-vuZLexcc.cjs → routes-K6oFQRlg.cjs} +3 -3
  16. package/dist/server/handlers/agent-builder.cjs +1 -1
  17. package/dist/server/handlers/agent-builder.js +1 -1
  18. package/dist/server/handlers/error.cjs +26 -0
  19. package/dist/server/handlers/error.d.ts +2 -0
  20. package/dist/server/handlers/error.js +26 -1
  21. package/dist/server/handlers/system.cjs +1 -1
  22. package/dist/server/handlers/system.js +1 -1
  23. package/dist/server/handlers/workflows.cjs +1 -1
  24. package/dist/server/handlers/workflows.js +1 -1
  25. package/dist/server/handlers.cjs +2 -2
  26. package/dist/server/handlers.js +2 -2
  27. package/dist/server/mcp/catalogue.d.ts +1 -1
  28. package/dist/server/mcp/schema.d.ts +1 -1
  29. package/dist/server/schemas/agents.d.ts +1 -1
  30. package/dist/server/server-adapter/api-schema-manifest.d.ts +1 -1
  31. package/dist/server/server-adapter/index.cjs +2 -2
  32. package/dist/server/server-adapter/index.js +2 -2
  33. package/dist/server/server-adapter/openapi-utils.d.ts +1 -1
  34. package/dist/{server-adapter-h8YRQXAC.js → server-adapter-CqgdBTrQ.js} +1 -1
  35. package/dist/{server-adapter-CurME3ch.cjs → server-adapter-CuGKb03z.cjs} +1 -1
  36. package/dist/{workflows-D5bfbang.js → workflows-OjUXkjWw.js} +19 -9
  37. package/dist/{workflows-CHKSHV4f.cjs → workflows-PVrj85xM.cjs} +18 -8
  38. package/package.json +10 -10
  39. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/request-context/index.d.ts +0 -0
  40. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/routes/index.d.ts +0 -0
  41. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/types/index.d.ts +0 -0
  42. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/checks.d.ts +0 -0
  43. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/coerce.d.ts +0 -0
  44. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/compat.d.ts +0 -0
  45. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/deep-partial.d.ts +0 -0
  46. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/errors.d.ts +0 -0
  47. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/external.d.ts +0 -0
  48. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/from-json-schema.d.ts +0 -0
  49. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/in-out.d.ts +0 -0
  50. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/index.d.ts +0 -0
  51. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/iso.d.ts +0 -0
  52. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/parse.d.ts +0 -0
  53. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/schemas.d.ts +0 -0
  54. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/api.d.ts +0 -0
  55. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/checks.d.ts +0 -0
  56. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/compile.d.ts +0 -0
  57. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/core.d.ts +0 -0
  58. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/doc.d.ts +0 -0
  59. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/errors.d.ts +0 -0
  60. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/index.d.ts +0 -0
  61. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/json-schema-generator.d.ts +0 -0
  62. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/json-schema-processors.d.ts +0 -0
  63. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/json-schema.d.ts +0 -0
  64. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/memoizer.d.ts +0 -0
  65. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/parse.d.ts +0 -0
  66. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/regexes.d.ts +0 -0
  67. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/registries.d.ts +0 -0
  68. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/schemas.d.ts +0 -0
  69. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/standard-schema.d.ts +0 -0
  70. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/to-json-schema.d.ts +0 -0
  71. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/util.d.ts +0 -0
  72. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/versions.d.ts +0 -0
  73. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/index.d.cts +0 -0
  74. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ar.d.ts +0 -0
  75. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/az.d.ts +0 -0
  76. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/be.d.ts +0 -0
  77. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/bg.d.ts +0 -0
  78. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/bn.d.ts +0 -0
  79. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ca.d.ts +0 -0
  80. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ckb.d.ts +0 -0
  81. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/cs.d.ts +0 -0
  82. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/da.d.ts +0 -0
  83. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/de.d.ts +0 -0
  84. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/el.d.ts +0 -0
  85. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/en.d.ts +0 -0
  86. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/eo.d.ts +0 -0
  87. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/es.d.ts +0 -0
  88. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fa.d.ts +0 -0
  89. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fi.d.ts +0 -0
  90. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fr-CA.d.ts +0 -0
  91. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fr.d.ts +0 -0
  92. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/gu.d.ts +0 -0
  93. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/he.d.ts +0 -0
  94. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hi.d.ts +0 -0
  95. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hr.d.ts +0 -0
  96. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hu.d.ts +0 -0
  97. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hy.d.ts +0 -0
  98. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/id.d.ts +0 -0
  99. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/index.d.ts +0 -0
  100. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/is.d.ts +0 -0
  101. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/it.d.ts +0 -0
  102. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ja.d.ts +0 -0
  103. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ka.d.ts +0 -0
  104. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/kh.d.ts +0 -0
  105. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/km.d.ts +0 -0
  106. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/kn.d.ts +0 -0
  107. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ko.d.ts +0 -0
  108. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/lt.d.ts +0 -0
  109. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/mk.d.ts +0 -0
  110. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ms.d.ts +0 -0
  111. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ne.d.ts +0 -0
  112. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/nl.d.ts +0 -0
  113. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/nn.d.ts +0 -0
  114. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/no.d.ts +0 -0
  115. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ota.d.ts +0 -0
  116. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/pl.d.ts +0 -0
  117. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ps.d.ts +0 -0
  118. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/pt-BR.d.ts +0 -0
  119. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/pt.d.ts +0 -0
  120. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ro.d.ts +0 -0
  121. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ru.d.ts +0 -0
  122. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/sk.d.ts +0 -0
  123. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/sl.d.ts +0 -0
  124. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/sv.d.ts +0 -0
  125. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ta.d.ts +0 -0
  126. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/tg.d.ts +0 -0
  127. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/th.d.ts +0 -0
  128. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/tk.d.ts +0 -0
  129. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/tr.d.ts +0 -0
  130. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ua.d.ts +0 -0
  131. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/uk.d.ts +0 -0
  132. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ur.d.ts +0 -0
  133. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/uz.d.ts +0 -0
  134. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/vi.d.ts +0 -0
  135. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/yo.d.ts +0 -0
  136. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/zh-CN.d.ts +0 -0
  137. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/zh-TW.d.ts +0 -0
  138. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/routes/index.d.ts +0 -0
  139. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/package.json +0 -0
  140. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0/dist/_types/@internal_ai-sdk-v4@0.0.98 → @mastra_schema-compat@1.4.1/dist/_types/@internal_ai-sdk-v4@0.0.99}/dist/index.d.ts +0 -0
  141. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0/dist/_types/@internal_ai-sdk-v5@0.0.98 → @mastra_schema-compat@1.4.1/dist/_types/@internal_ai-sdk-v5@0.0.99}/dist/index.d.ts +0 -0
  142. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0/dist/_types/@internal_ai-v6@0.0.98 → @mastra_schema-compat@1.4.1/dist/_types/@internal_ai-v6@0.0.99}/dist/index.d.ts +0 -0
  143. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/_types/@standard-schema_spec@1.1.0/dist/index.d.ts +0 -0
  144. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/_types/@types_json-schema@7.0.15/index.d.ts +0 -0
  145. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/index.d.ts +0 -0
  146. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/null-to-undefined.d.ts +0 -0
  147. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/provider-compats/google.d.ts +0 -0
  148. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/provider-compats/openai-reasoning.d.ts +0 -0
  149. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/provider-compats/openai.d.ts +0 -0
  150. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/schema-compatibility-v3.d.ts +0 -0
  151. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/schema-compatibility-v4.d.ts +0 -0
  152. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/schema-compatibility.d.ts +0 -0
  153. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/schema.d.ts +0 -0
  154. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/standard-schema/standard-schema.d.ts +0 -0
  155. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/standard-schema/standard-schema.types.d.ts +0 -0
  156. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/standard-schema-compat.d.ts +0 -0
  157. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/types.d.ts +0 -0
  158. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/utils.d.ts +0 -0
  159. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/dist/zod-to-json.d.ts +0 -0
  160. /package/dist/_types/{@mastra_schema-compat@1.4.1-alpha.0 → @mastra_schema-compat@1.4.1}/package.json +0 -0
@@ -6,7 +6,7 @@ import { o as optionalRunIdSchema, u as runIdSchema } from "./common-J-yUnHk9.js
6
6
  import { _ as workflowRunCountsResponseSchema, a as observeWorkflowQuerySchema, b as workflowRunResultSchema, d as streamWorkflowBodySchema, f as timeTravelBodySchema, g as workflowInfoSchema, h as workflowIdPathParams, i as listWorkflowsResponseSchema, l as startAsyncWorkflowBodySchema, m as workflowExecutionResultSchema, n as createWorkflowRunResponseSchema, o as restartBodySchema, p as workflowControlResponseSchema, r as listWorkflowRunsQuerySchema, s as resumeBodySchema, t as createWorkflowRunBodySchema, v as workflowRunPathParams, x as workflowRunsResponseSchema, y as workflowRunResultQuerySchema } from "./workflows-DTxiWG6x.js";
7
7
  import { n as createRoute } from "./route-builder-Dz18c3qm.js";
8
8
  import { a as getWorkflowInfo, t as WorkflowRegistry } from "./utils-C2VRtQjI.js";
9
- import { handleError } from "./server/handlers/error.js";
9
+ import { handleError, runFenceConflictRunId } from "./server/handlers/error.js";
10
10
  import { z } from "zod/v4";
11
11
  import { isDeepStrictEqual } from "util";
12
12
  import { createReplayStream } from "@mastra/core/stream";
@@ -66,6 +66,20 @@ async function withLoadedSteps(result) {
66
66
  } : result;
67
67
  }
68
68
  /**
69
+ * Logs a run a route started in the background that rejected. A takeover of that run by another
70
+ * instance is not a failure here: the run's claim already logged a warning.
71
+ */
72
+ function logBackgroundRunFailure(mastra, message, error, context) {
73
+ if (runFenceConflictRunId(error) === context.runId) {
74
+ mastra.getLogger().debug(`${message}: another instance took the run over`, context);
75
+ return;
76
+ }
77
+ mastra.getLogger().error(message, {
78
+ error,
79
+ ...context
80
+ });
81
+ }
82
+ /**
69
83
  * Runs whose chunks are already being written to the cache in this process,
70
84
  * keyed by runId. A run has exactly one writer: without this, two concurrent
71
85
  * requests for the same runId each cache every chunk and the replayed history
@@ -601,8 +615,7 @@ const START_WORKFLOW_RUN_ROUTE = createRoute({
601
615
  ...params,
602
616
  requestContext
603
617
  }).catch((error) => {
604
- mastra.getLogger().error("Failed to start workflow run", {
605
- error,
618
+ logBackgroundRunFailure(mastra, "Failed to start workflow run", error, {
606
619
  workflowId,
607
620
  runId
608
621
  });
@@ -776,8 +789,7 @@ const RESUME_WORKFLOW_ROUTE = createRoute({
776
789
  ...params,
777
790
  requestContext
778
791
  }).catch((error) => {
779
- mastra.getLogger().error("Failed to resume workflow run", {
780
- error,
792
+ logBackgroundRunFailure(mastra, "Failed to resume workflow run", error, {
781
793
  workflowId,
782
794
  runId
783
795
  });
@@ -857,8 +869,7 @@ const RESTART_WORKFLOW_ROUTE = createRoute({
857
869
  ...params,
858
870
  requestContext
859
871
  }).catch((error) => {
860
- mastra.getLogger().error("Failed to restart workflow run in background", {
861
- error,
872
+ logBackgroundRunFailure(mastra, "Failed to restart workflow run in background", error, {
862
873
  workflowId,
863
874
  runId
864
875
  });
@@ -995,8 +1006,7 @@ const TIME_TRAVEL_WORKFLOW_ROUTE = createRoute({
995
1006
  ...params,
996
1007
  requestContext
997
1008
  }).catch((error) => {
998
- mastra.getLogger().error("Failed to time travel workflow run", {
999
- error,
1009
+ logBackgroundRunFailure(mastra, "Failed to time travel workflow run", error, {
1000
1010
  workflowId,
1001
1011
  runId
1002
1012
  });
@@ -66,6 +66,20 @@ async function withLoadedSteps(result) {
66
66
  } : result;
67
67
  }
68
68
  /**
69
+ * Logs a run a route started in the background that rejected. A takeover of that run by another
70
+ * instance is not a failure here: the run's claim already logged a warning.
71
+ */
72
+ function logBackgroundRunFailure(mastra, message, error, context) {
73
+ if (require_server_handlers_error.runFenceConflictRunId(error) === context.runId) {
74
+ mastra.getLogger().debug(`${message}: another instance took the run over`, context);
75
+ return;
76
+ }
77
+ mastra.getLogger().error(message, {
78
+ error,
79
+ ...context
80
+ });
81
+ }
82
+ /**
69
83
  * Runs whose chunks are already being written to the cache in this process,
70
84
  * keyed by runId. A run has exactly one writer: without this, two concurrent
71
85
  * requests for the same runId each cache every chunk and the replayed history
@@ -601,8 +615,7 @@ const START_WORKFLOW_RUN_ROUTE = require_route_builder.createRoute({
601
615
  ...params,
602
616
  requestContext
603
617
  }).catch((error) => {
604
- mastra.getLogger().error("Failed to start workflow run", {
605
- error,
618
+ logBackgroundRunFailure(mastra, "Failed to start workflow run", error, {
606
619
  workflowId,
607
620
  runId
608
621
  });
@@ -776,8 +789,7 @@ const RESUME_WORKFLOW_ROUTE = require_route_builder.createRoute({
776
789
  ...params,
777
790
  requestContext
778
791
  }).catch((error) => {
779
- mastra.getLogger().error("Failed to resume workflow run", {
780
- error,
792
+ logBackgroundRunFailure(mastra, "Failed to resume workflow run", error, {
781
793
  workflowId,
782
794
  runId
783
795
  });
@@ -857,8 +869,7 @@ const RESTART_WORKFLOW_ROUTE = require_route_builder.createRoute({
857
869
  ...params,
858
870
  requestContext
859
871
  }).catch((error) => {
860
- mastra.getLogger().error("Failed to restart workflow run in background", {
861
- error,
872
+ logBackgroundRunFailure(mastra, "Failed to restart workflow run in background", error, {
862
873
  workflowId,
863
874
  runId
864
875
  });
@@ -995,8 +1006,7 @@ const TIME_TRAVEL_WORKFLOW_ROUTE = require_route_builder.createRoute({
995
1006
  ...params,
996
1007
  requestContext
997
1008
  }).catch((error) => {
998
- mastra.getLogger().error("Failed to time travel workflow run", {
999
- error,
1009
+ logBackgroundRunFailure(mastra, "Failed to time travel workflow run", error, {
1000
1010
  workflowId,
1001
1011
  runId
1002
1012
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/server",
3
- "version": "1.86.0-alpha.9",
3
+ "version": "1.87.0-alpha.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -127,15 +127,15 @@
127
127
  "zod": "^4.6.7",
128
128
  "zod-to-ts": "^2.1.0",
129
129
  "@internal/core": "0.1.4",
130
- "@internal/lint": "0.0.151",
131
- "@internal/storage-test-utils": "0.0.147",
132
- "@internal/test-utils": "0.0.87",
133
- "@internal/types-builder": "0.0.126",
134
- "@internal/voice": "0.0.47",
135
- "@mastra/agent-builder": "1.2.3-alpha.5",
136
- "@mastra/core": "1.86.0-alpha.9",
137
- "@mastra/mcp": "^2.11.0-alpha.1",
138
- "@mastra/schema-compat": "1.4.1-alpha.0"
130
+ "@internal/lint": "0.0.152",
131
+ "@internal/storage-test-utils": "0.0.148",
132
+ "@internal/test-utils": "0.0.88",
133
+ "@internal/types-builder": "0.0.127",
134
+ "@internal/voice": "0.0.48",
135
+ "@mastra/agent-builder": "1.2.3",
136
+ "@mastra/core": "1.87.0-alpha.0",
137
+ "@mastra/mcp": "^2.11.0",
138
+ "@mastra/schema-compat": "1.4.1"
139
139
  },
140
140
  "homepage": "https://mastra.ai",
141
141
  "repository": {