@mastra/server 1.60.0-alpha.1 → 1.60.0-alpha.10

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 (185) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts +46 -1
  3. package/dist/{a2a-CUkzkdTZ.js → a2a-B5m54dOP.js} +2 -2
  4. package/dist/{a2a-CUkzkdTZ.js.map → a2a-B5m54dOP.js.map} +1 -1
  5. package/dist/{a2a-DzZHH3OH.cjs → a2a-Eeib3vfP.cjs} +2 -2
  6. package/dist/{a2a-DzZHH3OH.cjs.map → a2a-Eeib3vfP.cjs.map} +1 -1
  7. package/dist/{agents-uT8ZDE4k.js → agents-BetrUB_N.js} +7 -2
  8. package/dist/agents-BetrUB_N.js.map +1 -0
  9. package/dist/{agents-0Tw3kkD_.cjs → agents-CLv_RFQx.cjs} +18 -1
  10. package/dist/agents-CLv_RFQx.cjs.map +1 -0
  11. package/dist/{api-schema-manifest-B9exfVOY.js → api-schema-manifest-BKTXRheC.js} +2 -2
  12. package/dist/{api-schema-manifest-B9exfVOY.js.map → api-schema-manifest-BKTXRheC.js.map} +1 -1
  13. package/dist/{api-schema-manifest-C7J-8Hwe.cjs → api-schema-manifest-BbNdh5Ck.cjs} +2 -2
  14. package/dist/{api-schema-manifest-C7J-8Hwe.cjs.map → api-schema-manifest-BbNdh5Ck.cjs.map} +1 -1
  15. package/dist/{builder-registry-B8KyPAOP.js → builder-registry-CqLsr39q.js} +2 -2
  16. package/dist/{builder-registry-B8KyPAOP.js.map → builder-registry-CqLsr39q.js.map} +1 -1
  17. package/dist/{builder-registry-Dcou-kzd.cjs → builder-registry-CyaUg_iP.cjs} +2 -2
  18. package/dist/{builder-registry-Dcou-kzd.cjs.map → builder-registry-CyaUg_iP.cjs.map} +1 -1
  19. package/dist/{channels-B9yt3a2P.js → channels-BnFQESMf.js} +2 -2
  20. package/dist/{channels-B9yt3a2P.js.map → channels-BnFQESMf.js.map} +1 -1
  21. package/dist/{channels-BRoq3VKR.cjs → channels-Dzy6VM3w.cjs} +2 -2
  22. package/dist/{channels-BRoq3VKR.cjs.map → channels-Dzy6VM3w.cjs.map} +1 -1
  23. package/dist/{constants-ChBaIptn.cjs → constants-CXPpy-Ef.cjs} +7 -1
  24. package/dist/constants-CXPpy-Ef.cjs.map +1 -0
  25. package/dist/{constants-Cp1x-6sJ.js → constants-CutMu4A_.js} +7 -1
  26. package/dist/constants-CutMu4A_.js.map +1 -0
  27. package/dist/{dist-DhGJtn6J.cjs → dist-C2O8fRb-.cjs} +231 -72
  28. package/dist/dist-C2O8fRb-.cjs.map +1 -0
  29. package/dist/{dist-DKBns4r6.js → dist-DNaReo7-.js} +231 -72
  30. package/dist/dist-DNaReo7-.js.map +1 -0
  31. package/dist/docs/SKILL.md +2 -2
  32. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  33. package/dist/docs/references/{docs-agents-a2a.md → docs-connections-a2a.md} +2 -2
  34. package/dist/docs/references/docs-server-custom-api-routes.md +2 -2
  35. package/dist/{editor-builder-DT7ypWfa.cjs → editor-builder-1L3OIY4K.cjs} +2 -2
  36. package/dist/{editor-builder-DT7ypWfa.cjs.map → editor-builder-1L3OIY4K.cjs.map} +1 -1
  37. package/dist/{editor-builder-DJUxdzC8.js → editor-builder-BDEm-gZe.js} +2 -2
  38. package/dist/{editor-builder-DJUxdzC8.js.map → editor-builder-BDEm-gZe.js.map} +1 -1
  39. package/dist/{editor-builder-C3ZvffGu.cjs → editor-builder-DNRVszU-.cjs} +2 -2
  40. package/dist/{editor-builder-C3ZvffGu.cjs.map → editor-builder-DNRVszU-.cjs.map} +1 -1
  41. package/dist/{editor-builder-Byg6wbi6.js → editor-builder-EP9FAtQm.js} +2 -2
  42. package/dist/{editor-builder-Byg6wbi6.js.map → editor-builder-EP9FAtQm.js.map} +1 -1
  43. package/dist/{helpers-TmTGZi8e.cjs → helpers-C54OMiDG.cjs} +2 -2
  44. package/dist/{helpers-TmTGZi8e.cjs.map → helpers-C54OMiDG.cjs.map} +1 -1
  45. package/dist/{helpers-GyeAi5YN.js → helpers-Da9nPOFL.js} +2 -2
  46. package/dist/{helpers-GyeAi5YN.js.map → helpers-Da9nPOFL.js.map} +1 -1
  47. package/dist/{routes-B4p8XidO.js → routes-iUe0w9eL.js} +11 -9
  48. package/dist/routes-iUe0w9eL.js.map +1 -0
  49. package/dist/{routes-BlSot4At.cjs → routes-mK_LlDMo.cjs} +11 -9
  50. package/dist/routes-mK_LlDMo.cjs.map +1 -0
  51. package/dist/server/auth/index.cjs +2 -2
  52. package/dist/server/auth/index.js +2 -2
  53. package/dist/server/constants.d.ts +5 -0
  54. package/dist/server/constants.d.ts.map +1 -1
  55. package/dist/server/handlers/a2a.cjs +1 -1
  56. package/dist/server/handlers/a2a.js +1 -1
  57. package/dist/server/handlers/agent-builder.cjs +3 -3
  58. package/dist/server/handlers/agent-builder.js +3 -3
  59. package/dist/server/handlers/agent-controller.cjs +32 -4
  60. package/dist/server/handlers/agent-controller.cjs.map +1 -1
  61. package/dist/server/handlers/agent-controller.d.ts +20 -2
  62. package/dist/server/handlers/agent-controller.d.ts.map +1 -1
  63. package/dist/server/handlers/agent-controller.js +32 -4
  64. package/dist/server/handlers/agent-controller.js.map +1 -1
  65. package/dist/server/handlers/agent-versions.cjs +1 -1
  66. package/dist/server/handlers/agent-versions.js +1 -1
  67. package/dist/server/handlers/agents.cjs +6 -5
  68. package/dist/server/handlers/agents.cjs.map +1 -1
  69. package/dist/server/handlers/agents.d.ts.map +1 -1
  70. package/dist/server/handlers/agents.js +6 -5
  71. package/dist/server/handlers/agents.js.map +1 -1
  72. package/dist/server/handlers/auth.cjs +2 -2
  73. package/dist/server/handlers/auth.js +2 -2
  74. package/dist/server/handlers/authorship.cjs +1 -1
  75. package/dist/server/handlers/authorship.js +1 -1
  76. package/dist/server/handlers/builder-registry.cjs +1 -1
  77. package/dist/server/handlers/builder-registry.js +1 -1
  78. package/dist/server/handlers/channels.cjs +1 -1
  79. package/dist/server/handlers/channels.js +1 -1
  80. package/dist/server/handlers/conversations.cjs +1 -1
  81. package/dist/server/handlers/conversations.js +1 -1
  82. package/dist/server/handlers/datasets.cjs +1 -1
  83. package/dist/server/handlers/datasets.js +1 -1
  84. package/dist/server/handlers/editor-builder.cjs +1 -1
  85. package/dist/server/handlers/editor-builder.js +1 -1
  86. package/dist/server/handlers/favorites-enrichment.cjs +1 -1
  87. package/dist/server/handlers/favorites-enrichment.js +1 -1
  88. package/dist/server/handlers/logs.cjs +1 -1
  89. package/dist/server/handlers/logs.js +1 -1
  90. package/dist/server/handlers/mcp-client-versions.cjs +2 -2
  91. package/dist/server/handlers/mcp-client-versions.js +2 -2
  92. package/dist/server/handlers/mcp.cjs.map +1 -1
  93. package/dist/server/handlers/mcp.d.ts +6 -0
  94. package/dist/server/handlers/mcp.d.ts.map +1 -1
  95. package/dist/server/handlers/mcp.js.map +1 -1
  96. package/dist/server/handlers/memory.cjs +1 -1
  97. package/dist/server/handlers/memory.js +1 -1
  98. package/dist/server/handlers/plans.cjs +64 -0
  99. package/dist/server/handlers/plans.cjs.map +1 -0
  100. package/dist/server/handlers/plans.d.ts +43 -0
  101. package/dist/server/handlers/plans.d.ts.map +1 -0
  102. package/dist/server/handlers/plans.js +57 -0
  103. package/dist/server/handlers/plans.js.map +1 -0
  104. package/dist/server/handlers/prompt-block-versions.cjs +2 -2
  105. package/dist/server/handlers/prompt-block-versions.js +2 -2
  106. package/dist/server/handlers/responses.adapter.cjs +1 -1
  107. package/dist/server/handlers/responses.adapter.js +1 -1
  108. package/dist/server/handlers/responses.cjs +1 -1
  109. package/dist/server/handlers/responses.js +1 -1
  110. package/dist/server/handlers/responses.storage.cjs +1 -1
  111. package/dist/server/handlers/responses.storage.js +1 -1
  112. package/dist/server/handlers/scorer-versions.cjs +2 -2
  113. package/dist/server/handlers/scorer-versions.js +2 -2
  114. package/dist/server/handlers/stored-agent-favorites.cjs +2 -2
  115. package/dist/server/handlers/stored-agent-favorites.js +2 -2
  116. package/dist/server/handlers/stored-agents.cjs +3 -3
  117. package/dist/server/handlers/stored-agents.js +3 -3
  118. package/dist/server/handlers/stored-mcp-clients.cjs +2 -2
  119. package/dist/server/handlers/stored-mcp-clients.js +2 -2
  120. package/dist/server/handlers/stored-prompt-blocks.cjs +2 -2
  121. package/dist/server/handlers/stored-prompt-blocks.js +2 -2
  122. package/dist/server/handlers/stored-scorers.cjs +2 -2
  123. package/dist/server/handlers/stored-scorers.js +2 -2
  124. package/dist/server/handlers/stored-skill-favorites.cjs +3 -3
  125. package/dist/server/handlers/stored-skill-favorites.js +3 -3
  126. package/dist/server/handlers/stored-skills.cjs +3 -3
  127. package/dist/server/handlers/stored-skills.js +3 -3
  128. package/dist/server/handlers/stored-workspaces.cjs +1 -1
  129. package/dist/server/handlers/stored-workspaces.js +1 -1
  130. package/dist/server/handlers/system.cjs +1 -1
  131. package/dist/server/handlers/system.js +1 -1
  132. package/dist/server/handlers/tool-providers.cjs +1 -1
  133. package/dist/server/handlers/tool-providers.js +1 -1
  134. package/dist/server/handlers/tool-schema-overrides.cjs +46 -0
  135. package/dist/server/handlers/tool-schema-overrides.cjs.map +1 -0
  136. package/dist/server/handlers/tool-schema-overrides.d.ts +13 -0
  137. package/dist/server/handlers/tool-schema-overrides.d.ts.map +1 -0
  138. package/dist/server/handlers/tool-schema-overrides.js +45 -0
  139. package/dist/server/handlers/tool-schema-overrides.js.map +1 -0
  140. package/dist/server/handlers/tools.cjs +7 -6
  141. package/dist/server/handlers/tools.cjs.map +1 -1
  142. package/dist/server/handlers/tools.d.ts.map +1 -1
  143. package/dist/server/handlers/tools.js +7 -6
  144. package/dist/server/handlers/tools.js.map +1 -1
  145. package/dist/server/handlers/utils.cjs +1 -1
  146. package/dist/server/handlers/utils.js +1 -1
  147. package/dist/server/handlers/validate-agent-instructions.cjs +1 -1
  148. package/dist/server/handlers/validate-agent-instructions.js +1 -1
  149. package/dist/server/handlers/workflows.cjs +3 -3
  150. package/dist/server/handlers/workflows.js +3 -3
  151. package/dist/server/handlers.cjs +8 -1
  152. package/dist/server/handlers.d.ts +1 -0
  153. package/dist/server/handlers.d.ts.map +1 -1
  154. package/dist/server/handlers.js +3 -2
  155. package/dist/server/schemas/agents.d.ts +12 -0
  156. package/dist/server/schemas/agents.d.ts.map +1 -1
  157. package/dist/server/schemas/index.cjs +5 -3
  158. package/dist/server/schemas/index.js +4 -4
  159. package/dist/server/server-adapter/index.cjs +67 -5
  160. package/dist/server/server-adapter/index.cjs.map +1 -1
  161. package/dist/server/server-adapter/index.d.ts +12 -0
  162. package/dist/server/server-adapter/index.d.ts.map +1 -1
  163. package/dist/server/server-adapter/index.js +66 -6
  164. package/dist/server/server-adapter/index.js.map +1 -1
  165. package/dist/server/server-adapter/mcp-auth.d.ts +43 -0
  166. package/dist/server/server-adapter/mcp-auth.d.ts.map +1 -0
  167. package/dist/server/server-adapter/routes/agents.d.ts +2 -0
  168. package/dist/server/server-adapter/routes/agents.d.ts.map +1 -1
  169. package/dist/{utils-Bna_JCkb.cjs → utils-BkPZAGxS.cjs} +2 -2
  170. package/dist/{utils-Bna_JCkb.cjs.map → utils-BkPZAGxS.cjs.map} +1 -1
  171. package/dist/{utils-wTwyTjg3.cjs → utils-CXbhpYYv.cjs} +2 -2
  172. package/dist/{utils-wTwyTjg3.cjs.map → utils-CXbhpYYv.cjs.map} +1 -1
  173. package/dist/{utils-QXKhjIm6.js → utils-CljhO7OY.js} +2 -2
  174. package/dist/{utils-QXKhjIm6.js.map → utils-CljhO7OY.js.map} +1 -1
  175. package/dist/{utils-CmHd1Sgh.js → utils-qMLbyf2U.js} +2 -2
  176. package/dist/{utils-CmHd1Sgh.js.map → utils-qMLbyf2U.js.map} +1 -1
  177. package/package.json +5 -5
  178. package/dist/agents-0Tw3kkD_.cjs.map +0 -1
  179. package/dist/agents-uT8ZDE4k.js.map +0 -1
  180. package/dist/constants-ChBaIptn.cjs.map +0 -1
  181. package/dist/constants-Cp1x-6sJ.js.map +0 -1
  182. package/dist/dist-DKBns4r6.js.map +0 -1
  183. package/dist/dist-DhGJtn6J.cjs.map +0 -1
  184. package/dist/routes-B4p8XidO.js.map +0 -1
  185. package/dist/routes-BlSot4At.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,99 @@
1
1
  # @mastra/server
2
2
 
3
+ ## 1.60.0-alpha.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`b860493`](https://github.com/mastra-ai/mastra/commit/b86049391100e665d579f700c8a2034c036defc3)]:
8
+ - @mastra/core@1.60.0-alpha.10
9
+
10
+ ## 1.60.0-alpha.9
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`b0a2a07`](https://github.com/mastra-ai/mastra/commit/b0a2a07800d42bd9823292e7db832374ed084c9c), [`ccbbcd9`](https://github.com/mastra-ai/mastra/commit/ccbbcd974eedff4367a54ed0e24c9ee742ab2f61), [`3f5c6f7`](https://github.com/mastra-ai/mastra/commit/3f5c6f728ea35da344248de9aa070f12849f3aa0), [`77e6b1b`](https://github.com/mastra-ai/mastra/commit/77e6b1bc4c46ce94fe501023fb4393c812ec6be3), [`2e1d098`](https://github.com/mastra-ai/mastra/commit/2e1d0984e325fd319d32ea182f596b3170be3847)]:
15
+ - @mastra/core@1.60.0-alpha.9
16
+
17
+ ## 1.60.0-alpha.8
18
+
19
+ ### Minor Changes
20
+
21
+ - Added support for loading submitted agent plan Markdown from an agent workspace. ([#21658](https://github.com/mastra-ai/mastra/pull/21658))
22
+
23
+ - MCP tools served over HTTP now see the authenticated caller. When an MCP server runs behind a Mastra server with `server.auth` configured, the resolved user is bridged into `extra.authInfo` automatically, on both the streamable HTTP and SSE transports. Previously `extra.authInfo` was always undefined because the request handed to the MCP transport was rebuilt without the auth data. ([#21689](https://github.com/mastra-ai/mastra/pull/21689))
24
+
25
+ **Custom verification**
26
+
27
+ If your own middleware verifies the caller, build the auth info yourself with the new `server.mcpOptions.setRequestAuth` hook:
28
+
29
+ ```ts
30
+ export const mastra = new Mastra({
31
+ mcpServers: { myServer },
32
+ server: {
33
+ middleware: [verifyBearerToken],
34
+ mcpOptions: {
35
+ setRequestAuth: (req, requestContext) => {
36
+ const payload = requestContext.get('bearerPayload');
37
+ req.auth = { token: payload.token, clientId: payload.sub, scopes: payload.scope.split(' ') };
38
+ },
39
+ },
40
+ },
41
+ });
42
+ ```
43
+
44
+ Fixes #17291
45
+
46
+ ### Patch Changes
47
+
48
+ - Fixed agent controller session state hydration to return durable tasks for the requested thread. ([#21545](https://github.com/mastra-ai/mastra/pull/21545))
49
+
50
+ - Updated dependencies [[`4e7a421`](https://github.com/mastra-ai/mastra/commit/4e7a421dce8a48742f785d1e93ad2f43a572b282), [`242e324`](https://github.com/mastra-ai/mastra/commit/242e3241e73cbd5c9bb86a31ebb49ca0256488d4), [`217e967`](https://github.com/mastra-ai/mastra/commit/217e9672d8b3160eb729d8e9f0044949e88da239), [`d774e89`](https://github.com/mastra-ai/mastra/commit/d774e8930c781df8c9effe3763e6b501c099b6cc), [`9c27a53`](https://github.com/mastra-ai/mastra/commit/9c27a53cd9d3de4f3f025bc387d94ce371c33f95), [`dff25a1`](https://github.com/mastra-ai/mastra/commit/dff25a1103fa72ee082a9b6f805ebeb5ce400753), [`217e967`](https://github.com/mastra-ai/mastra/commit/217e9672d8b3160eb729d8e9f0044949e88da239), [`7f78585`](https://github.com/mastra-ai/mastra/commit/7f785857e401570e2ffb316911f126ed363aa537), [`f2a4afd`](https://github.com/mastra-ai/mastra/commit/f2a4afd7e37e809669001ed17724b341a5c1f45e), [`d438148`](https://github.com/mastra-ai/mastra/commit/d438148e222c1e2fb3c652725ce75680962ebec4), [`ba05fe0`](https://github.com/mastra-ai/mastra/commit/ba05fe0738f70cb686777546e968237d09269142), [`d26a8d4`](https://github.com/mastra-ai/mastra/commit/d26a8d4281f28414715b333c85bedaf70d0b2890), [`677cdc6`](https://github.com/mastra-ai/mastra/commit/677cdc6af564dec29a13464d12b7ab2a4efc22e9), [`a318490`](https://github.com/mastra-ai/mastra/commit/a318490e17da32f338d50929c770d901a9b3dd72), [`763e0c6`](https://github.com/mastra-ai/mastra/commit/763e0c61e04d76ad9a9efd301aa57525ca0cbea9), [`23e0be2`](https://github.com/mastra-ai/mastra/commit/23e0be261381e49534b4ff3101c60ee64a946cbf), [`7fc8806`](https://github.com/mastra-ai/mastra/commit/7fc880627d3cbf995d31ea0e8b807bf15417e651), [`0e02eac`](https://github.com/mastra-ai/mastra/commit/0e02eacdb2e30e1697a41910b41163742a181dc1), [`4df174c`](https://github.com/mastra-ai/mastra/commit/4df174c32bddf093a82f273070b8380aef7c9e90), [`f7c25b5`](https://github.com/mastra-ai/mastra/commit/f7c25b5106ddfb48e591f98df7a51e0f2dd01dba), [`dc09cc1`](https://github.com/mastra-ai/mastra/commit/dc09cc1083d861cde192c1cd235324dc75b8c731), [`36b4649`](https://github.com/mastra-ai/mastra/commit/36b4649045a3a380cbab8ceca866db4086223aff), [`377eb81`](https://github.com/mastra-ai/mastra/commit/377eb81ce43b964e3a6b541df172da74a8ff3716)]:
51
+ - @mastra/core@1.60.0-alpha.8
52
+
53
+ ## 1.60.0-alpha.7
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [[`940bf5c`](https://github.com/mastra-ai/mastra/commit/940bf5ccf04f2c9ebd8a1390431733222a03b1cd)]:
58
+ - @mastra/core@1.60.0-alpha.7
59
+
60
+ ## 1.60.0-alpha.6
61
+
62
+ ### Patch Changes
63
+
64
+ - Fixed serialized tool schemas to hide runtime-only background and suspended-run fields from user input forms. ([#21451](https://github.com/mastra-ai/mastra/pull/21451))
65
+
66
+ - Updated dependencies [[`0b4f108`](https://github.com/mastra-ai/mastra/commit/0b4f1089aa8d92e67c2a8e99726822c5ee410784), [`88ddc7c`](https://github.com/mastra-ai/mastra/commit/88ddc7ce01d40175f13a3228b789a906779680bd), [`a7dd322`](https://github.com/mastra-ai/mastra/commit/a7dd32247d95afc539f483ca37f4594af0387f59)]:
67
+ - @mastra/core@1.60.0-alpha.6
68
+
69
+ ## 1.60.0-alpha.5
70
+
71
+ ### Patch Changes
72
+
73
+ - Updated dependencies [[`74e5bd3`](https://github.com/mastra-ai/mastra/commit/74e5bd315b8b3a1e04cb6cf480bb0f5fc4951dc8)]:
74
+ - @mastra/core@1.60.0-alpha.5
75
+
76
+ ## 1.60.0-alpha.4
77
+
78
+ ### Patch Changes
79
+
80
+ - Updated dependencies [[`d7e6745`](https://github.com/mastra-ai/mastra/commit/d7e67456954863c55440ea9c49bc6ceb9949972d), [`9acb50f`](https://github.com/mastra-ai/mastra/commit/9acb50f71cec9c362f06820033f90ae6b1f8282f), [`46e9e3f`](https://github.com/mastra-ai/mastra/commit/46e9e3f73babe1bc70080a596cf2ac0b9da48519), [`3f9a190`](https://github.com/mastra-ai/mastra/commit/3f9a19057c027155867b9317294ee4ca7bd0581a), [`e8808e3`](https://github.com/mastra-ai/mastra/commit/e8808e3d8eb585a2565be53e56a7e0e1477352a4), [`d4be8c1`](https://github.com/mastra-ai/mastra/commit/d4be8c1739d22d621e3f78790e1dd5eb5ecc3589), [`a5d2eb1`](https://github.com/mastra-ai/mastra/commit/a5d2eb10347eade1ae2816d88f466c25186c54a5), [`e81744c`](https://github.com/mastra-ai/mastra/commit/e81744cd13c46619c142dc521dc0baac47607a84)]:
81
+ - @mastra/core@1.60.0-alpha.4
82
+
83
+ ## 1.60.0-alpha.3
84
+
85
+ ### Patch Changes
86
+
87
+ - Updated dependencies [[`d8308a2`](https://github.com/mastra-ai/mastra/commit/d8308a2be3c07e777393d1017a381dcae3890d30), [`7aad631`](https://github.com/mastra-ai/mastra/commit/7aad631b43bc10db77d5b8c66b200d7a49d18bf2), [`1794a79`](https://github.com/mastra-ai/mastra/commit/1794a79178c418004a7261b1ad9114066f7ef01d)]:
88
+ - @mastra/core@1.60.0-alpha.3
89
+
90
+ ## 1.60.0-alpha.2
91
+
92
+ ### Patch Changes
93
+
94
+ - Updated dependencies [[`7e096f0`](https://github.com/mastra-ai/mastra/commit/7e096f02f0dddbf09b85d306458351245ed2f886), [`8f0a332`](https://github.com/mastra-ai/mastra/commit/8f0a3321bf180368d76fe7b36aa1a8f60f00b6de), [`b098de9`](https://github.com/mastra-ai/mastra/commit/b098de9d7cb9f672e0883a5c716465a3a689693d), [`ef6e295`](https://github.com/mastra-ai/mastra/commit/ef6e295b59bc25a5b61b633a89c97bcfce9fb465), [`208e1b3`](https://github.com/mastra-ai/mastra/commit/208e1b39f30f4b386e494394e9d71d96f0f90241), [`c938d34`](https://github.com/mastra-ai/mastra/commit/c938d34739936c8ecbabd67ad6a4a4396f41c4c6), [`1d9a0ea`](https://github.com/mastra-ai/mastra/commit/1d9a0ea4a9901baee6cd56737243bd6d1f631ac0), [`3667679`](https://github.com/mastra-ai/mastra/commit/3667679db057edfb086846d13369fdda4902ad65), [`49696e8`](https://github.com/mastra-ai/mastra/commit/49696e8e42f870674a0a58f5abcd22cc54dd2864), [`512100a`](https://github.com/mastra-ai/mastra/commit/512100a7d8b7e9c920f2590c6b3612f5de0d3cff), [`9ef432b`](https://github.com/mastra-ai/mastra/commit/9ef432b6faa534b57b0d182a610e13dd9a7123ff), [`b9cf308`](https://github.com/mastra-ai/mastra/commit/b9cf30846f97f99ac1906ee8a68f4f2d117b0378)]:
95
+ - @mastra/core@1.60.0-alpha.2
96
+
3
97
  ## 1.60.0-alpha.1
4
98
 
5
99
  ### Patch Changes
@@ -44,6 +44,17 @@ declare const MASTRA_VERSIONS_KEY = "mastra__versions";
44
44
  * that require the same auth as the Mastra server itself.
45
45
  */
46
46
  declare const MASTRA_AUTH_TOKEN_KEY = "mastra__authToken";
47
+ /**
48
+ * Reserved key carrying a delegating agent's `MastraMemory` into a delegated
49
+ * run, so a sub-agent without its own memory can persist that run's transcript
50
+ * without the shared sub-agent instance being modified. The value is
51
+ * `{ agentId, memory }` and only the named agent reads it.
52
+ *
53
+ * Holds a live class instance, so it is deliberately run-scoped: it is excluded
54
+ * from the durable request-context snapshot and is not copied into further
55
+ * nested delegated runs. Internal to delegation — do not set it yourself.
56
+ */
57
+ declare const MASTRA_INHERITED_MEMORY_KEY = "mastra__inheritedMemory";
47
58
  type VersionSelector = {
48
59
  versionId: string;
49
60
  } | {
@@ -60,20 +71,54 @@ declare class RequestContext<Values extends Record<string, any> | unknown = unkn
60
71
  constructor(iterable?: Values extends Record<string, any> ? RecordToTuple<Partial<Values>> : Iterable<readonly [string, unknown]>);
61
72
  /**
62
73
  * set a value with strict typing if `Values` is a Record and the key exists in it.
74
+ *
75
+ * Declared schema keys stay strictly typed. For runtime-only keys that are not part of
76
+ * `Values` (for example reserved middleware keys), use {@link setRaw}.
63
77
  */
64
78
  set<K extends (Values extends Record<string, any> ? keyof Values : string)>(key: K, value: Values extends Record<string, any> ? (K extends keyof Values ? Values[K] : never) : unknown): void;
79
+ /**
80
+ * Set a runtime-only key that is not part of the declared `Values` schema.
81
+ *
82
+ * The runtime store is an open map: schema validation checks declared keys and
83
+ * passes undeclared keys through. Use this when writing infrastructure keys
84
+ * (for example `mastra__resourceId`) or other values that intentionally omit
85
+ * from `requestContextSchema`.
86
+ */
87
+ setRaw(key: string, value: unknown): void;
65
88
  /**
66
89
  * Get a value with its type
90
+ *
91
+ * Declared schema keys stay strictly typed. For runtime-only keys that are not part of
92
+ * `Values` (for example reserved middleware keys), use {@link getRaw}.
67
93
  */
68
94
  get<K extends (Values extends Record<string, any> ? keyof Values : string), R = Values extends Record<string, any> ? (K extends keyof Values ? Values[K] : never) : unknown>(key: K): R;
95
+ /**
96
+ * Get a runtime-only key that is not part of the declared `Values` schema.
97
+ *
98
+ * Returns `unknown` because the schema does not describe these keys — narrow
99
+ * the result at the call site.
100
+ */
101
+ getRaw(key: string): unknown;
69
102
  /**
70
103
  * Check if a key exists in the container
104
+ *
105
+ * Declared schema keys stay strictly typed. For runtime-only keys, use {@link hasRaw}.
71
106
  */
72
107
  has<K extends (Values extends Record<string, any> ? keyof Values : string)>(key: K): boolean;
108
+ /**
109
+ * Check whether a runtime-only key exists in the open map.
110
+ */
111
+ hasRaw(key: string): boolean;
73
112
  /**
74
113
  * Delete a value by key
114
+ *
115
+ * Declared schema keys stay strictly typed. For runtime-only keys, use {@link deleteRaw}.
75
116
  */
76
117
  delete<K extends (Values extends Record<string, any> ? keyof Values : string)>(key: K): boolean;
118
+ /**
119
+ * Delete a runtime-only key from the open map.
120
+ */
121
+ deleteRaw(key: string): boolean;
77
122
  /**
78
123
  * Clear all values from the container
79
124
  */
@@ -170,5 +215,5 @@ declare class RequestContext<Values extends Record<string, any> | unknown = unkn
170
215
  get all(): Values extends Record<string, any> ? Values : Record<string, any>;
171
216
  }
172
217
  //#endregion
173
- export { MASTRA_AUTH_TOKEN_KEY, MASTRA_RESOURCE_ID_KEY, MASTRA_THREAD_ID_KEY, MASTRA_VERSIONS_KEY, RequestContext, VersionOverrides, VersionSelector, mergeVersionOverrides };
218
+ export { MASTRA_AUTH_TOKEN_KEY, MASTRA_INHERITED_MEMORY_KEY, MASTRA_RESOURCE_ID_KEY, MASTRA_THREAD_ID_KEY, MASTRA_VERSIONS_KEY, RequestContext, VersionOverrides, VersionSelector, mergeVersionOverrides };
174
219
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { i as __toESM, n as __exportAll, t as __commonJSMin } from "./rolldown-runtime-DuvcJU0W.js";
2
2
  import { n as createRoute } from "./route-builder-YQ_gLIvW.js";
3
- import { r as convertInstructionsToString } from "./utils-QXKhjIm6.js";
3
+ import { r as convertInstructionsToString } from "./utils-CljhO7OY.js";
4
4
  import { getAgentFromSystem } from "./server/handlers/agents.js";
5
5
  import { TaskStoreVersionConflictError } from "./server/a2a/store.js";
6
6
  import { a as agentExecutionResponseSchema, i as agentExecutionBodySchema, r as agentCardResponseSchema, t as a2aAgentIdPathParams } from "./a2a-8C4O2dVJ.js";
@@ -1973,4 +1973,4 @@ const AGENT_EXECUTION_ROUTE = createRoute({
1973
1973
  //#endregion
1974
1974
  export { getAgentExecutionHandler as a, handleListTaskPushNotificationConfig as c, handleSetTaskPushNotificationConfig as d, handleTaskCancel as f, resolveA2AProtocolVersion as g, handleTaskResubscribe as h, getAgentCardByIdHandler as i, handleMessageSend as l, handleTaskList as m, GET_AGENT_CARD_ROUTE as n, handleDeleteTaskPushNotificationConfig as o, handleTaskGet as p, a2a_exports as r, handleGetTaskPushNotificationConfig as s, AGENT_EXECUTION_ROUTE as t, handleMessageStream as u };
1975
1975
 
1976
- //# sourceMappingURL=a2a-CUkzkdTZ.js.map
1976
+ //# sourceMappingURL=a2a-B5m54dOP.js.map