@mastra/deployer 1.50.2-alpha.1 → 1.51.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 +141 -0
- package/dist/build/analyze.cjs +2 -2
- package/dist/build/analyze.js +1 -1
- package/dist/build/bundler.cjs +5 -5
- package/dist/build/bundler.js +1 -1
- package/dist/build/fs-routing/codegen.d.ts +3 -2
- package/dist/build/fs-routing/codegen.d.ts.map +1 -1
- package/dist/build/fs-routing/discover.d.ts +5 -0
- package/dist/build/fs-routing/discover.d.ts.map +1 -1
- package/dist/build/fs-routing/prepare.d.ts +5 -2
- package/dist/build/fs-routing/prepare.d.ts.map +1 -1
- package/dist/build/index.cjs +19 -19
- package/dist/build/index.js +4 -4
- package/dist/build/plugins/local-storage-detector.d.ts +34 -6
- package/dist/build/plugins/local-storage-detector.d.ts.map +1 -1
- package/dist/bundler/index.cjs +3 -3
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-WIOL4WMZ.js → chunk-2P62SP4K.js} +3 -3
- package/dist/{chunk-WIOL4WMZ.js.map → chunk-2P62SP4K.js.map} +1 -1
- package/dist/{chunk-6ARGMWNC.js → chunk-B3NI3FBK.js} +116 -10
- package/dist/chunk-B3NI3FBK.js.map +1 -0
- package/dist/{chunk-R7M4BT5P.cjs → chunk-ETXDK7YK.cjs} +21 -21
- package/dist/{chunk-R7M4BT5P.cjs.map → chunk-ETXDK7YK.cjs.map} +1 -1
- package/dist/{chunk-ILNCPWNL.cjs → chunk-ICEWJMSM.cjs} +7 -7
- package/dist/{chunk-ILNCPWNL.cjs.map → chunk-ICEWJMSM.cjs.map} +1 -1
- package/dist/{chunk-JODIXW4D.js → chunk-RJWPICH3.js} +5 -5
- package/dist/{chunk-JODIXW4D.js.map → chunk-RJWPICH3.js.map} +1 -1
- package/dist/{chunk-2GJY6H6M.cjs → chunk-RVRIXED5.cjs} +116 -10
- package/dist/chunk-RVRIXED5.cjs.map +1 -0
- package/dist/{chunk-YODVBOD3.cjs → chunk-TF7ILBTX.cjs} +51 -21
- package/dist/chunk-TF7ILBTX.cjs.map +1 -0
- package/dist/{chunk-VQGZXTOJ.cjs → chunk-TPS3GZO7.cjs} +11 -11
- package/dist/{chunk-VQGZXTOJ.cjs.map → chunk-TPS3GZO7.cjs.map} +1 -1
- package/dist/{chunk-GGNUZ2A6.js → chunk-TUA7MQC5.js} +44 -14
- package/dist/chunk-TUA7MQC5.js.map +1 -0
- package/dist/{chunk-UA2DJWFT.js → chunk-WCHVXVD5.js} +3 -3
- package/dist/{chunk-UA2DJWFT.js.map → chunk-WCHVXVD5.js.map} +1 -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 +2 -4
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/dist/server/handlers/restart-active-runs.d.ts.map +1 -1
- package/dist/server/index.cjs +10 -1
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +10 -1
- package/dist/server/index.js.map +1 -1
- package/package.json +12 -12
- package/dist/chunk-2GJY6H6M.cjs.map +0 -1
- package/dist/chunk-6ARGMWNC.js.map +0 -1
- package/dist/chunk-GGNUZ2A6.js.map +0 -1
- package/dist/chunk-YODVBOD3.cjs.map +0 -1
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.
|
|
6
|
+
version: "1.51.0-alpha.10"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -14,9 +14,7 @@ Run the build command from your project root:
|
|
|
14
14
|
mastra build
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
This creates a `.mastra` directory containing your production-ready server.
|
|
18
|
-
|
|
19
|
-
> **Info:** Read the [`mastra build`](https://mastra.ai/reference/cli/mastra) reference for all available flags.
|
|
17
|
+
This creates a `.mastra` directory containing your production-ready server. Read the [`mastra build`](https://mastra.ai/reference/cli/mastra) reference for all available flags.
|
|
20
18
|
|
|
21
19
|
## Build output
|
|
22
20
|
|
|
@@ -59,7 +57,7 @@ The `mastra start` command provides additional features:
|
|
|
59
57
|
- Provides helpful error messages for missing modules
|
|
60
58
|
- Handles process signals for graceful shutdown
|
|
61
59
|
|
|
62
|
-
|
|
60
|
+
Read the [`mastra start`](https://mastra.ai/reference/cli/mastra) reference for all available flags.
|
|
63
61
|
|
|
64
62
|
## Build configuration
|
|
65
63
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkTPS3GZO7_cjs = require('./chunk-TPS3GZO7.cjs');
|
|
4
|
+
var chunkICEWJMSM_cjs = require('./chunk-ICEWJMSM.cjs');
|
|
5
5
|
var chunkVKAFARW6_cjs = require('./chunk-VKAFARW6.cjs');
|
|
6
6
|
|
|
7
7
|
// src/deploy/base.ts
|
|
8
|
-
var Deployer = class extends
|
|
8
|
+
var Deployer = class extends chunkTPS3GZO7_cjs.Bundler {
|
|
9
9
|
deps = new chunkVKAFARW6_cjs.DepsService();
|
|
10
10
|
constructor(args) {
|
|
11
11
|
super(args.name, "DEPLOYER");
|
|
@@ -25,7 +25,7 @@ var Deployer = class extends chunkVQGZXTOJ_cjs.Bundler {
|
|
|
25
25
|
|
|
26
26
|
// src/build/deployer.ts
|
|
27
27
|
async function getDeployer(entryFile, outputDir, logger) {
|
|
28
|
-
const result = await
|
|
28
|
+
const result = await chunkICEWJMSM_cjs.extractMastraOption("deployer", entryFile, outputDir, logger);
|
|
29
29
|
if (!result) {
|
|
30
30
|
return null;
|
|
31
31
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bundler } from './chunk-
|
|
2
|
-
import { extractMastraOption } from './chunk-
|
|
1
|
+
import { Bundler } from './chunk-RJWPICH3.js';
|
|
2
|
+
import { extractMastraOption } from './chunk-WCHVXVD5.js';
|
|
3
3
|
import { DepsService, FileService } from './chunk-ZL66GDLP.js';
|
|
4
4
|
export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-ZL66GDLP.js';
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restart-active-runs.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/restart-active-runs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAIpC,wBAAsB,mCAAmC,CAAC,CAAC,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"restart-active-runs.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/restart-active-runs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAIpC,wBAAsB,mCAAmC,CAAC,CAAC,EAAE,OAAO,qBAgBnE"}
|
package/dist/server/index.cjs
CHANGED
|
@@ -3476,12 +3476,16 @@ var MastraServer = class extends serverAdapter.MastraServer {
|
|
|
3476
3476
|
}
|
|
3477
3477
|
};
|
|
3478
3478
|
|
|
3479
|
-
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.3.
|
|
3479
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.3.1/a0af3e938145e0fe63ab6ad04133542aa3d9f05b7230ed4fc230411dabce6d87/node_modules/hono-openapi/dist/index.js
|
|
3480
3480
|
var uniqueSymbol = /* @__PURE__ */ Symbol("openapi");
|
|
3481
3481
|
function describeRoute(spec) {
|
|
3482
3482
|
const middleware2 = async (_c, next) => {
|
|
3483
3483
|
await next();
|
|
3484
3484
|
};
|
|
3485
|
+
Object.defineProperty(middleware2, "name", {
|
|
3486
|
+
value: "describeRoute",
|
|
3487
|
+
configurable: true
|
|
3488
|
+
});
|
|
3485
3489
|
return Object.assign(middleware2, {
|
|
3486
3490
|
[uniqueSymbol]: {
|
|
3487
3491
|
spec
|
|
@@ -3552,6 +3556,9 @@ async function restartAllActiveWorkflowRunsHandler(c) {
|
|
|
3552
3556
|
try {
|
|
3553
3557
|
const mastra = c.get("mastra");
|
|
3554
3558
|
void mastra.restartAllActiveWorkflowRuns();
|
|
3559
|
+
if (mastra.recoveryConfig?.durableAgents === "auto") {
|
|
3560
|
+
void mastra.recoverAllDurableAgents();
|
|
3561
|
+
}
|
|
3555
3562
|
return c.json({ message: "Restarting all active workflow runs..." });
|
|
3556
3563
|
} catch (error) {
|
|
3557
3564
|
return handleError(error, "Error restarting active workflow runs");
|
|
@@ -4513,6 +4520,8 @@ async function createNodeServer(mastra, options = { tools: {} }) {
|
|
|
4513
4520
|
}
|
|
4514
4521
|
void import('@mastra/core/telemetry').then(({ syncUsageTelemetry }) => syncUsageTelemetry(mastra)).catch(() => {
|
|
4515
4522
|
});
|
|
4523
|
+
void import('@mastra/core/telemetry').then(({ syncFeatureUsageTelemetry }) => syncFeatureUsageTelemetry(mastra)).catch(() => {
|
|
4524
|
+
});
|
|
4516
4525
|
const SHUTDOWN_TIMEOUT_MS = 5e3;
|
|
4517
4526
|
let shuttingDown = false;
|
|
4518
4527
|
const shutdown = async (signal) => {
|