@mastra/deployer 1.62.0-alpha.12 → 1.62.0-alpha.3
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 +0 -72
- package/dist/_types/@mastra_hono/dist/index.d.ts +0 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-deployment-mastra-server.md +0 -19
- package/dist/server/index.cjs +0 -13
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +0 -13
- package/dist/server/index.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,77 +1,5 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
-
## 1.62.0-alpha.12
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Updated dependencies [[`48ef1f1`](https://github.com/mastra-ai/mastra/commit/48ef1f1d24eedafbb07f64e659a81b52b67b8bf6), [`63796ba`](https://github.com/mastra-ai/mastra/commit/63796ba0fda60253be17535e68f6bbbf1e6ffa09), [`3c19dce`](https://github.com/mastra-ai/mastra/commit/3c19dcef8e73062a80627a4927eae3ec11145afd)]:
|
|
8
|
-
- @mastra/core@1.62.0-alpha.12
|
|
9
|
-
- @mastra/server@1.62.0-alpha.12
|
|
10
|
-
|
|
11
|
-
## 1.62.0-alpha.11
|
|
12
|
-
|
|
13
|
-
### Patch Changes
|
|
14
|
-
|
|
15
|
-
- Updated dependencies [[`4ff3ee2`](https://github.com/mastra-ai/mastra/commit/4ff3ee2bff7ed07528b4817f8f49639031c72a4d), [`c24754c`](https://github.com/mastra-ai/mastra/commit/c24754c1fb6fe144e5051e536e98c8a18b0214ac), [`45dd6ee`](https://github.com/mastra-ai/mastra/commit/45dd6ee089bd7df0d0c98a10098e483fd388e04a), [`32d3583`](https://github.com/mastra-ai/mastra/commit/32d358332cb8ac2306b83b73cf3536e74dbd435e), [`aca2869`](https://github.com/mastra-ai/mastra/commit/aca2869b2031982f3c4a2f52525c9be7cf123ef8)]:
|
|
16
|
-
- @mastra/core@1.62.0-alpha.11
|
|
17
|
-
- @mastra/server@1.62.0-alpha.11
|
|
18
|
-
|
|
19
|
-
## 1.62.0-alpha.10
|
|
20
|
-
|
|
21
|
-
### Patch Changes
|
|
22
|
-
|
|
23
|
-
- Updated dependencies [[`b05f486`](https://github.com/mastra-ai/mastra/commit/b05f48612984d5fe2447ea2d6cdd5c604d285b97), [`7960688`](https://github.com/mastra-ai/mastra/commit/7960688828e04eaf3106e34f7758fa580257eef6), [`2848a9f`](https://github.com/mastra-ai/mastra/commit/2848a9f4c89fa03c34e94793929d14640117d5f6), [`2848a9f`](https://github.com/mastra-ai/mastra/commit/2848a9f4c89fa03c34e94793929d14640117d5f6)]:
|
|
24
|
-
- @mastra/core@1.62.0-alpha.10
|
|
25
|
-
- @mastra/server@1.62.0-alpha.10
|
|
26
|
-
|
|
27
|
-
## 1.62.0-alpha.9
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- Updated dependencies [[`eb9ecaa`](https://github.com/mastra-ai/mastra/commit/eb9ecaa89c36e889749e3b825cfc507ce7f7980b), [`3e8727e`](https://github.com/mastra-ai/mastra/commit/3e8727e11ec1a5d733acedb5c872896394be18c1)]:
|
|
32
|
-
- @mastra/core@1.62.0-alpha.9
|
|
33
|
-
- @mastra/server@1.62.0-alpha.9
|
|
34
|
-
|
|
35
|
-
## 1.62.0-alpha.8
|
|
36
|
-
|
|
37
|
-
### Patch Changes
|
|
38
|
-
|
|
39
|
-
- Updated dependencies [[`aa3a85d`](https://github.com/mastra-ai/mastra/commit/aa3a85daf094c683bb97efdf4b6a696d2e474af5), [`d29d06f`](https://github.com/mastra-ai/mastra/commit/d29d06fe00bbd35b4571150ea04c59d2ed783c71), [`e6516df`](https://github.com/mastra-ai/mastra/commit/e6516dfcdae4f4ac0e7971d84359a81385ee602f), [`0b2a3d1`](https://github.com/mastra-ai/mastra/commit/0b2a3d1783875c5b97b7b36ab3d03d7360e0dde7), [`6bb5d71`](https://github.com/mastra-ai/mastra/commit/6bb5d7193fe9166b219f0fccae17db7a5ae86e65), [`57de7d6`](https://github.com/mastra-ai/mastra/commit/57de7d644ba7146edb4e9e6111ec4fa98c3a59e9), [`e8e299c`](https://github.com/mastra-ai/mastra/commit/e8e299cc6abdfc39947e2fec25803493015d3882), [`edfc548`](https://github.com/mastra-ai/mastra/commit/edfc548886bc7bae17b681f8b6b41a47eb32bcd2), [`a8a4871`](https://github.com/mastra-ai/mastra/commit/a8a4871215f51da95c47129602157ce5372f634a), [`5165cdc`](https://github.com/mastra-ai/mastra/commit/5165cdcdcf50e144bb8113278535196cc9b07065), [`6bb5d71`](https://github.com/mastra-ai/mastra/commit/6bb5d7193fe9166b219f0fccae17db7a5ae86e65), [`9ee8120`](https://github.com/mastra-ai/mastra/commit/9ee8120ce17f76b9f617489e05a283353742690a), [`d975e92`](https://github.com/mastra-ai/mastra/commit/d975e924d4936f46c386bd3dee39c671720289f6), [`1cfa878`](https://github.com/mastra-ai/mastra/commit/1cfa8784d8da0dfaa0317e5048bc48b6084a5ea5), [`c118318`](https://github.com/mastra-ai/mastra/commit/c1183181c9804303db4b511c2e2648f8b714712b), [`fc07c64`](https://github.com/mastra-ai/mastra/commit/fc07c6465043e08e99193a6751a01c56ffc2e7a1), [`542dee2`](https://github.com/mastra-ai/mastra/commit/542dee254167f974ff8cbbbfc0ce10f9a2616a7b), [`a58483c`](https://github.com/mastra-ai/mastra/commit/a58483cff1a9d41fce7c931843f48cb0ac450f64), [`a58483c`](https://github.com/mastra-ai/mastra/commit/a58483cff1a9d41fce7c931843f48cb0ac450f64), [`895e9df`](https://github.com/mastra-ai/mastra/commit/895e9dfc17d6f34299eca64e317ded9e5f5e5ef8)]:
|
|
40
|
-
- @mastra/core@1.62.0-alpha.8
|
|
41
|
-
- @mastra/server@1.62.0-alpha.8
|
|
42
|
-
|
|
43
|
-
## 1.62.0-alpha.7
|
|
44
|
-
|
|
45
|
-
### Patch Changes
|
|
46
|
-
|
|
47
|
-
- Updated dependencies [[`ae8790c`](https://github.com/mastra-ai/mastra/commit/ae8790c4bfaa088d2ab279d1dcc06f326b9fd109), [`04a815f`](https://github.com/mastra-ai/mastra/commit/04a815fc8971d29e97fcdcc5008a1eb472fc00ff), [`cced745`](https://github.com/mastra-ai/mastra/commit/cced745a056ec2225c5bc702e32d848847aa8b65)]:
|
|
48
|
-
- @mastra/core@1.62.0-alpha.7
|
|
49
|
-
- @mastra/server@1.62.0-alpha.7
|
|
50
|
-
|
|
51
|
-
## 1.62.0-alpha.6
|
|
52
|
-
|
|
53
|
-
### Patch Changes
|
|
54
|
-
|
|
55
|
-
- Updated dependencies [[`63041eb`](https://github.com/mastra-ai/mastra/commit/63041eb4c50b520a0a80e03d4cd6ea99f67715a0), [`c8e4cea`](https://github.com/mastra-ai/mastra/commit/c8e4ceac9a390d78c8327dff3cdb2861dd71957f), [`ed01e9a`](https://github.com/mastra-ai/mastra/commit/ed01e9a807514a904374bf687a7b8f18750f6f78), [`4e9a228`](https://github.com/mastra-ai/mastra/commit/4e9a2283d5fd6ed1b70a2751eb3dc2cbf82ada20), [`63041eb`](https://github.com/mastra-ai/mastra/commit/63041eb4c50b520a0a80e03d4cd6ea99f67715a0)]:
|
|
56
|
-
- @mastra/server@1.62.0-alpha.6
|
|
57
|
-
- @mastra/core@1.62.0-alpha.6
|
|
58
|
-
|
|
59
|
-
## 1.62.0-alpha.5
|
|
60
|
-
|
|
61
|
-
### Patch Changes
|
|
62
|
-
|
|
63
|
-
- Updated dependencies [[`65edab1`](https://github.com/mastra-ai/mastra/commit/65edab1c233d17b8f163bad12fca410d0e6f16b1), [`ab20a38`](https://github.com/mastra-ai/mastra/commit/ab20a38d0275f8d85e0f3833bd87ef487bcc609f), [`dbbfeb8`](https://github.com/mastra-ai/mastra/commit/dbbfeb85ec949dc9ebc0755e1ad262e4f5eba8db), [`3cc9d00`](https://github.com/mastra-ai/mastra/commit/3cc9d00b2b4333e0377a5e9df5eff92c17ce7630), [`733a537`](https://github.com/mastra-ai/mastra/commit/733a537489a858b5880b2e98809334fba895a221), [`9207dfa`](https://github.com/mastra-ai/mastra/commit/9207dfab8062e5fc68b751684797ff86fe0b4e70), [`12c61d2`](https://github.com/mastra-ai/mastra/commit/12c61d280c8cb208bc3c8dbcbe5dcc60cf9d1cd0), [`9a12ef3`](https://github.com/mastra-ai/mastra/commit/9a12ef3fccf3f4186db0f294f4ee1f02cf4d8db2)]:
|
|
64
|
-
- @mastra/core@1.62.0-alpha.5
|
|
65
|
-
- @mastra/server@1.62.0-alpha.5
|
|
66
|
-
|
|
67
|
-
## 1.62.0-alpha.4
|
|
68
|
-
|
|
69
|
-
### Patch Changes
|
|
70
|
-
|
|
71
|
-
- Updated dependencies [[`79f04a7`](https://github.com/mastra-ai/mastra/commit/79f04a7f6c6829da541139f638f2f1d267916e08), [`fd4d5fe`](https://github.com/mastra-ai/mastra/commit/fd4d5fe4f943699b85db5e74404f190d5a6b8c2a), [`f591643`](https://github.com/mastra-ai/mastra/commit/f591643becdf0be9bddce6ba1748e64bc30d77f1), [`b1ad324`](https://github.com/mastra-ai/mastra/commit/b1ad324d657f3544b0701332aef7eb10e9a36258), [`61c566d`](https://github.com/mastra-ai/mastra/commit/61c566dd2f2cde2b23ed8f139924e530d4202214)]:
|
|
72
|
-
- @mastra/core@1.62.0-alpha.4
|
|
73
|
-
- @mastra/server@1.62.0-alpha.4
|
|
74
|
-
|
|
75
3
|
## 1.62.0-alpha.3
|
|
76
4
|
|
|
77
5
|
### Patch Changes
|
|
@@ -77,7 +77,6 @@ export declare class MastraServer extends MastraServerBase<HonoApp, HonoRequest,
|
|
|
77
77
|
registerCustomApiRoutes(): Promise<void>;
|
|
78
78
|
registerContextMiddleware(): void;
|
|
79
79
|
registerAuthMiddleware(): void;
|
|
80
|
-
registerUserMiddleware(): void;
|
|
81
80
|
registerHttpLoggingMiddleware(): void;
|
|
82
81
|
}
|
|
83
82
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-deployer
|
|
|
3
3
|
description: Documentation for @mastra/deployer. Use when working with @mastra/deployer APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/deployer"
|
|
6
|
-
version: "1.62.0-alpha.
|
|
6
|
+
version: "1.62.0-alpha.3"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -139,24 +139,6 @@ This list isn't exhaustive. To view all endpoints, run `mastra dev` and visit `h
|
|
|
139
139
|
|
|
140
140
|
To add your own endpoints, see [Custom API Routes](https://mastra.ai/docs/server/custom-api-routes).
|
|
141
141
|
|
|
142
|
-
## Graceful shutdown and rolling deploys
|
|
143
|
-
|
|
144
|
-
By default, the generated server handles `SIGINT` and `SIGTERM`. It stops accepting connections, waits up to [`server.drainTimeout`](https://mastra.ai/reference/configuration) for active requests and streams, then runs `mastra.shutdown()`. The drain timeout defaults to 5 seconds. A second signal terminates the process immediately. See [`server.handleShutdownSignals`](https://mastra.ai/reference/configuration) if you need to manage signals yourself.
|
|
145
|
-
|
|
146
|
-
Increase `drainTimeout` when your hosting platform's termination grace period can accommodate longer turns. Keep enough time after the drain for shutdown cleanup.
|
|
147
|
-
|
|
148
|
-
```typescript
|
|
149
|
-
import { Mastra } from '@mastra/core/mastra'
|
|
150
|
-
|
|
151
|
-
export const mastra = new Mastra({
|
|
152
|
-
server: {
|
|
153
|
-
drainTimeout: 240_000,
|
|
154
|
-
},
|
|
155
|
-
})
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
A plain `agent.stream()` call can't resume after its server process exits. If a stream ends without its expected terminal event, treat the turn as interrupted and let the client retry or reconcile it. Use [durable agents](https://mastra.ai/docs/harness/durable-agents) when turns must survive process replacement. [Crash recovery](https://mastra.ai/docs/harness/durable-agents) requires shared persistent run storage and idempotent tools. Replaying missed events after a restart also requires a shared persistent cache such as Redis because the default event cache is in-memory. Multi-replica recovery doesn't yet use a distributed lease.
|
|
159
|
-
|
|
160
142
|
## Troubleshooting
|
|
161
143
|
|
|
162
144
|
### Memory errors during build
|
|
@@ -172,5 +154,4 @@ NODE_OPTIONS="--max-old-space-size=4096" mastra build
|
|
|
172
154
|
- [Server Overview](https://mastra.ai/docs/server/overview): Configure server behavior, middleware, and authentication
|
|
173
155
|
- [Server Adapters](https://mastra.ai/docs/server/server-adapters): Use Express or Hono instead of `mastra build`
|
|
174
156
|
- [Custom API Routes](https://mastra.ai/docs/server/custom-api-routes): Add custom HTTP endpoints
|
|
175
|
-
- [Durable Agents](https://mastra.ai/docs/harness/durable-agents): Persist agent runs so they survive process restarts
|
|
176
157
|
- [Configuration Reference](https://mastra.ai/reference/configuration): Full configuration options
|
package/dist/server/index.cjs
CHANGED
|
@@ -3658,19 +3658,6 @@ var MastraServer = class extends _mastra_server_server_adapter.MastraServer {
|
|
|
3658
3658
|
});
|
|
3659
3659
|
}
|
|
3660
3660
|
registerAuthMiddleware() {}
|
|
3661
|
-
registerUserMiddleware() {
|
|
3662
|
-
for (const m of this.mastra.getServerMiddleware?.() ?? []) this.app.use(m.path, skipIfFrameworkPublic(m.handler));
|
|
3663
|
-
const configMiddleware = this.mastra.getServer()?.middleware;
|
|
3664
|
-
if (!configMiddleware) return;
|
|
3665
|
-
const normalizedMiddlewares = Array.isArray(configMiddleware) ? configMiddleware : [configMiddleware];
|
|
3666
|
-
for (const middleware of normalizedMiddlewares) {
|
|
3667
|
-
const { path, handler } = typeof middleware === "function" ? {
|
|
3668
|
-
path: "*",
|
|
3669
|
-
handler: middleware
|
|
3670
|
-
} : middleware;
|
|
3671
|
-
this.app.use(path, skipIfFrameworkPublic(handler));
|
|
3672
|
-
}
|
|
3673
|
-
}
|
|
3674
3661
|
registerHttpLoggingMiddleware() {
|
|
3675
3662
|
if (!this.httpLoggingConfig?.enabled) return;
|
|
3676
3663
|
this.app.use("*", async (c, next) => {
|