@mastra/server 1.59.1-alpha.0 → 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.
- package/CHANGELOG.md +103 -0
- package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts +46 -1
- package/dist/{a2a-CUkzkdTZ.js → a2a-B5m54dOP.js} +2 -2
- package/dist/{a2a-CUkzkdTZ.js.map → a2a-B5m54dOP.js.map} +1 -1
- package/dist/{a2a-DzZHH3OH.cjs → a2a-Eeib3vfP.cjs} +2 -2
- package/dist/{a2a-DzZHH3OH.cjs.map → a2a-Eeib3vfP.cjs.map} +1 -1
- package/dist/{agents-uT8ZDE4k.js → agents-BetrUB_N.js} +7 -2
- package/dist/agents-BetrUB_N.js.map +1 -0
- package/dist/{agents-0Tw3kkD_.cjs → agents-CLv_RFQx.cjs} +18 -1
- package/dist/agents-CLv_RFQx.cjs.map +1 -0
- package/dist/{api-schema-manifest-BlxXMFWo.js → api-schema-manifest-BKTXRheC.js} +2 -2
- package/dist/{api-schema-manifest-BlxXMFWo.js.map → api-schema-manifest-BKTXRheC.js.map} +1 -1
- package/dist/{api-schema-manifest-iAEVS-Re.cjs → api-schema-manifest-BbNdh5Ck.cjs} +2 -2
- package/dist/{api-schema-manifest-iAEVS-Re.cjs.map → api-schema-manifest-BbNdh5Ck.cjs.map} +1 -1
- package/dist/{builder-registry-B8KyPAOP.js → builder-registry-CqLsr39q.js} +2 -2
- package/dist/{builder-registry-B8KyPAOP.js.map → builder-registry-CqLsr39q.js.map} +1 -1
- package/dist/{builder-registry-Dcou-kzd.cjs → builder-registry-CyaUg_iP.cjs} +2 -2
- package/dist/{builder-registry-Dcou-kzd.cjs.map → builder-registry-CyaUg_iP.cjs.map} +1 -1
- package/dist/{channels-B9yt3a2P.js → channels-BnFQESMf.js} +2 -2
- package/dist/{channels-B9yt3a2P.js.map → channels-BnFQESMf.js.map} +1 -1
- package/dist/{channels-BRoq3VKR.cjs → channels-Dzy6VM3w.cjs} +2 -2
- package/dist/{channels-BRoq3VKR.cjs.map → channels-Dzy6VM3w.cjs.map} +1 -1
- package/dist/{constants-ChBaIptn.cjs → constants-CXPpy-Ef.cjs} +7 -1
- package/dist/constants-CXPpy-Ef.cjs.map +1 -0
- package/dist/{constants-Cp1x-6sJ.js → constants-CutMu4A_.js} +7 -1
- package/dist/constants-CutMu4A_.js.map +1 -0
- package/dist/{dist-RYanMda7.cjs → dist-C2O8fRb-.cjs} +230 -71
- package/dist/dist-C2O8fRb-.cjs.map +1 -0
- package/dist/{dist-ByXtFaHm.js → dist-DNaReo7-.js} +230 -71
- package/dist/dist-DNaReo7-.js.map +1 -0
- package/dist/docs/SKILL.md +2 -2
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/{docs-agents-a2a.md → docs-connections-a2a.md} +2 -2
- package/dist/docs/references/docs-server-custom-api-routes.md +2 -2
- package/dist/{editor-builder-DT7ypWfa.cjs → editor-builder-1L3OIY4K.cjs} +2 -2
- package/dist/{editor-builder-DT7ypWfa.cjs.map → editor-builder-1L3OIY4K.cjs.map} +1 -1
- package/dist/{editor-builder-DJUxdzC8.js → editor-builder-BDEm-gZe.js} +2 -2
- package/dist/{editor-builder-DJUxdzC8.js.map → editor-builder-BDEm-gZe.js.map} +1 -1
- package/dist/{editor-builder-C3ZvffGu.cjs → editor-builder-DNRVszU-.cjs} +2 -2
- package/dist/{editor-builder-C3ZvffGu.cjs.map → editor-builder-DNRVszU-.cjs.map} +1 -1
- package/dist/{editor-builder-Byg6wbi6.js → editor-builder-EP9FAtQm.js} +2 -2
- package/dist/{editor-builder-Byg6wbi6.js.map → editor-builder-EP9FAtQm.js.map} +1 -1
- package/dist/{helpers-TmTGZi8e.cjs → helpers-C54OMiDG.cjs} +2 -2
- package/dist/{helpers-TmTGZi8e.cjs.map → helpers-C54OMiDG.cjs.map} +1 -1
- package/dist/{helpers-GyeAi5YN.js → helpers-Da9nPOFL.js} +2 -2
- package/dist/{helpers-GyeAi5YN.js.map → helpers-Da9nPOFL.js.map} +1 -1
- package/dist/{routes-BpOjCX2F.js → routes-iUe0w9eL.js} +7 -5
- package/dist/routes-iUe0w9eL.js.map +1 -0
- package/dist/{routes-BBRC9gg2.cjs → routes-mK_LlDMo.cjs} +7 -5
- package/dist/routes-mK_LlDMo.cjs.map +1 -0
- package/dist/server/auth/index.cjs +2 -2
- package/dist/server/auth/index.js +2 -2
- package/dist/server/constants.d.ts +5 -0
- package/dist/server/constants.d.ts.map +1 -1
- package/dist/server/handlers/a2a.cjs +1 -1
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +3 -3
- package/dist/server/handlers/agent-builder.js +3 -3
- package/dist/server/handlers/agent-controller.cjs +41 -14
- package/dist/server/handlers/agent-controller.cjs.map +1 -1
- package/dist/server/handlers/agent-controller.d.ts +20 -2
- package/dist/server/handlers/agent-controller.d.ts.map +1 -1
- package/dist/server/handlers/agent-controller.js +41 -14
- package/dist/server/handlers/agent-controller.js.map +1 -1
- package/dist/server/handlers/agent-versions.cjs +1 -1
- package/dist/server/handlers/agent-versions.js +1 -1
- package/dist/server/handlers/agents.cjs +6 -5
- package/dist/server/handlers/agents.cjs.map +1 -1
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +6 -5
- package/dist/server/handlers/agents.js.map +1 -1
- package/dist/server/handlers/auth.cjs +2 -2
- package/dist/server/handlers/auth.js +2 -2
- package/dist/server/handlers/authorship.cjs +1 -1
- package/dist/server/handlers/authorship.js +1 -1
- package/dist/server/handlers/builder-registry.cjs +1 -1
- package/dist/server/handlers/builder-registry.js +1 -1
- package/dist/server/handlers/channels.cjs +1 -1
- package/dist/server/handlers/channels.js +1 -1
- package/dist/server/handlers/conversations.cjs +1 -1
- package/dist/server/handlers/conversations.js +1 -1
- package/dist/server/handlers/datasets.cjs +1 -1
- package/dist/server/handlers/datasets.js +1 -1
- package/dist/server/handlers/editor-builder.cjs +1 -1
- package/dist/server/handlers/editor-builder.js +1 -1
- package/dist/server/handlers/favorites-enrichment.cjs +1 -1
- package/dist/server/handlers/favorites-enrichment.js +1 -1
- package/dist/server/handlers/logs.cjs +1 -1
- package/dist/server/handlers/logs.js +1 -1
- package/dist/server/handlers/mcp-client-versions.cjs +1 -1
- package/dist/server/handlers/mcp-client-versions.js +1 -1
- package/dist/server/handlers/mcp.cjs.map +1 -1
- package/dist/server/handlers/mcp.d.ts +6 -0
- package/dist/server/handlers/mcp.d.ts.map +1 -1
- package/dist/server/handlers/mcp.js.map +1 -1
- package/dist/server/handlers/memory.cjs +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/plans.cjs +64 -0
- package/dist/server/handlers/plans.cjs.map +1 -0
- package/dist/server/handlers/plans.d.ts +43 -0
- package/dist/server/handlers/plans.d.ts.map +1 -0
- package/dist/server/handlers/plans.js +57 -0
- package/dist/server/handlers/plans.js.map +1 -0
- package/dist/server/handlers/prompt-block-versions.cjs +1 -1
- package/dist/server/handlers/prompt-block-versions.js +1 -1
- package/dist/server/handlers/responses.adapter.cjs +1 -1
- package/dist/server/handlers/responses.adapter.js +1 -1
- package/dist/server/handlers/responses.cjs +1 -1
- package/dist/server/handlers/responses.js +1 -1
- package/dist/server/handlers/responses.storage.cjs +1 -1
- package/dist/server/handlers/responses.storage.js +1 -1
- package/dist/server/handlers/scorer-versions.cjs +1 -1
- package/dist/server/handlers/scorer-versions.js +1 -1
- package/dist/server/handlers/stored-agent-favorites.cjs +2 -2
- package/dist/server/handlers/stored-agent-favorites.js +2 -2
- package/dist/server/handlers/stored-agents.cjs +2 -2
- package/dist/server/handlers/stored-agents.js +2 -2
- package/dist/server/handlers/stored-mcp-clients.cjs +1 -1
- package/dist/server/handlers/stored-mcp-clients.js +1 -1
- package/dist/server/handlers/stored-prompt-blocks.cjs +1 -1
- package/dist/server/handlers/stored-prompt-blocks.js +1 -1
- package/dist/server/handlers/stored-scorers.cjs +1 -1
- package/dist/server/handlers/stored-scorers.js +1 -1
- package/dist/server/handlers/stored-skill-favorites.cjs +2 -2
- package/dist/server/handlers/stored-skill-favorites.js +2 -2
- package/dist/server/handlers/stored-skills.cjs +2 -2
- package/dist/server/handlers/stored-skills.js +2 -2
- package/dist/server/handlers/stored-workspaces.cjs +1 -1
- package/dist/server/handlers/stored-workspaces.js +1 -1
- package/dist/server/handlers/system.cjs +1 -1
- package/dist/server/handlers/system.js +1 -1
- package/dist/server/handlers/tool-providers.cjs +1 -1
- package/dist/server/handlers/tool-providers.js +1 -1
- package/dist/server/handlers/tool-schema-overrides.cjs +46 -0
- package/dist/server/handlers/tool-schema-overrides.cjs.map +1 -0
- package/dist/server/handlers/tool-schema-overrides.d.ts +13 -0
- package/dist/server/handlers/tool-schema-overrides.d.ts.map +1 -0
- package/dist/server/handlers/tool-schema-overrides.js +45 -0
- package/dist/server/handlers/tool-schema-overrides.js.map +1 -0
- package/dist/server/handlers/tools.cjs +7 -6
- package/dist/server/handlers/tools.cjs.map +1 -1
- package/dist/server/handlers/tools.d.ts.map +1 -1
- package/dist/server/handlers/tools.js +7 -6
- package/dist/server/handlers/tools.js.map +1 -1
- package/dist/server/handlers/utils.cjs +1 -1
- package/dist/server/handlers/utils.js +1 -1
- package/dist/server/handlers/validate-agent-instructions.cjs +1 -1
- package/dist/server/handlers/validate-agent-instructions.js +1 -1
- package/dist/server/handlers/workflows.cjs +3 -3
- package/dist/server/handlers/workflows.js +3 -3
- package/dist/server/handlers.cjs +8 -1
- package/dist/server/handlers.d.ts +1 -0
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/handlers.js +3 -2
- package/dist/server/schemas/agents.d.ts +12 -0
- package/dist/server/schemas/agents.d.ts.map +1 -1
- package/dist/server/schemas/index.cjs +4 -2
- package/dist/server/schemas/index.js +3 -3
- package/dist/server/server-adapter/index.cjs +66 -4
- package/dist/server/server-adapter/index.cjs.map +1 -1
- package/dist/server/server-adapter/index.d.ts +12 -0
- package/dist/server/server-adapter/index.d.ts.map +1 -1
- package/dist/server/server-adapter/index.js +65 -5
- package/dist/server/server-adapter/index.js.map +1 -1
- package/dist/server/server-adapter/mcp-auth.d.ts +43 -0
- package/dist/server/server-adapter/mcp-auth.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/agents.d.ts +2 -0
- package/dist/server/server-adapter/routes/agents.d.ts.map +1 -1
- package/dist/{utils-Bna_JCkb.cjs → utils-BkPZAGxS.cjs} +2 -2
- package/dist/{utils-Bna_JCkb.cjs.map → utils-BkPZAGxS.cjs.map} +1 -1
- package/dist/{utils-wTwyTjg3.cjs → utils-CXbhpYYv.cjs} +2 -2
- package/dist/{utils-wTwyTjg3.cjs.map → utils-CXbhpYYv.cjs.map} +1 -1
- package/dist/{utils-QXKhjIm6.js → utils-CljhO7OY.js} +2 -2
- package/dist/{utils-QXKhjIm6.js.map → utils-CljhO7OY.js.map} +1 -1
- package/dist/{utils-CmHd1Sgh.js → utils-qMLbyf2U.js} +2 -2
- package/dist/{utils-CmHd1Sgh.js.map → utils-qMLbyf2U.js.map} +1 -1
- package/package.json +4 -4
- package/dist/agents-0Tw3kkD_.cjs.map +0 -1
- package/dist/agents-uT8ZDE4k.js.map +0 -1
- package/dist/constants-ChBaIptn.cjs.map +0 -1
- package/dist/constants-Cp1x-6sJ.js.map +0 -1
- package/dist/dist-ByXtFaHm.js.map +0 -1
- package/dist/dist-RYanMda7.cjs.map +0 -1
- package/dist/routes-BBRC9gg2.cjs.map +0 -1
- package/dist/routes-BpOjCX2F.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,108 @@
|
|
|
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
|
+
|
|
97
|
+
## 1.60.0-alpha.1
|
|
98
|
+
|
|
99
|
+
### Patch Changes
|
|
100
|
+
|
|
101
|
+
- Fixed `GET /agent-controller/:controllerId/sessions/:resourceId/threads` and `GET /agent-controller/:controllerId/sessions/:resourceId/threads/:threadId/messages` provisioning a workspace/sandbox on every request. Both endpoints previously routed through session creation as a side effect, stalling read-only page visits 5–17s and consuming a sandbox slot per visit. They now read from storage directly. Session creation and workspace/sandbox provisioning continue to happen on the write path as before. ([#21474](https://github.com/mastra-ai/mastra/pull/21474))
|
|
102
|
+
|
|
103
|
+
- Updated dependencies [[`15101bb`](https://github.com/mastra-ai/mastra/commit/15101bb53c0d934f31af6b8813b88191e382a5e5), [`c2c3deb`](https://github.com/mastra-ai/mastra/commit/c2c3debcf670c7082d0a5e553aa99818a864698c), [`33374ba`](https://github.com/mastra-ai/mastra/commit/33374ba359e4fb13eaa918ae925fe167a3c55414), [`c5f964d`](https://github.com/mastra-ai/mastra/commit/c5f964d3f77064e978f8066ec506eed77ba5c63c), [`f8f653f`](https://github.com/mastra-ai/mastra/commit/f8f653f10980d01a73706cc3c8689ca5e40ce808)]:
|
|
104
|
+
- @mastra/core@1.60.0-alpha.1
|
|
105
|
+
|
|
3
106
|
## 1.59.1-alpha.0
|
|
4
107
|
|
|
5
108
|
### Patch Changes
|
package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
1976
|
+
//# sourceMappingURL=a2a-B5m54dOP.js.map
|