@mastra/deployer 1.52.0-alpha.4 → 1.52.0-alpha.8
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 +40 -0
- package/dist/build/analyze.cjs +2 -2
- package/dist/build/analyze.d.ts.map +1 -1
- package/dist/build/analyze.js +1 -1
- package/dist/build/babel/check-config-export.d.ts +2 -2
- package/dist/build/babel/check-config-export.d.ts.map +1 -1
- package/dist/build/babel/detect-pino-transports.d.ts +2 -2
- package/dist/build/babel/detect-pino-transports.d.ts.map +1 -1
- package/dist/build/babel/remove-all-options-except.d.ts +2 -2
- package/dist/build/babel/remove-all-options-except.d.ts.map +1 -1
- package/dist/build/babel/remove-deployer.d.ts +6 -2
- package/dist/build/babel/remove-deployer.d.ts.map +1 -1
- package/dist/build/babel/remove-non-referenced-nodes.d.ts +2 -2
- package/dist/build/babel/remove-non-referenced-nodes.d.ts.map +1 -1
- package/dist/build/bundler.cjs +5 -5
- package/dist/build/bundler.js +1 -1
- package/dist/build/index.cjs +22 -22
- package/dist/build/index.js +5 -5
- package/dist/build/plugins/remove-all-except.d.ts.map +1 -1
- package/dist/build/plugins/remove-deployer.d.ts.map +1 -1
- package/dist/build/plugins/remove-unused-references.d.ts.map +1 -1
- package/dist/bundler/index.cjs +3 -3
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-UFIOPABI.cjs → chunk-4XMRN3U4.cjs} +41 -54
- package/dist/chunk-4XMRN3U4.cjs.map +1 -0
- package/dist/{chunk-PLCERTF6.js → chunk-72CHYUGH.js} +6 -6
- package/dist/{chunk-PLCERTF6.js.map → chunk-72CHYUGH.js.map} +1 -1
- package/dist/{chunk-X2ZJLEWO.cjs → chunk-7CT7DAME.cjs} +13 -24
- package/dist/chunk-7CT7DAME.cjs.map +1 -0
- package/dist/{chunk-UY7KZXD2.js → chunk-CBK2CAL4.js} +7 -7
- package/dist/chunk-CBK2CAL4.js.map +1 -0
- package/dist/{chunk-VKAFARW6.cjs → chunk-FKKJQUGR.cjs} +4 -4
- package/dist/{chunk-VKAFARW6.cjs.map → chunk-FKKJQUGR.cjs.map} +1 -1
- package/dist/{chunk-SZ3KU5RT.cjs → chunk-GPKHP7J7.cjs} +12 -12
- package/dist/{chunk-SZ3KU5RT.cjs.map → chunk-GPKHP7J7.cjs.map} +1 -1
- package/dist/{chunk-S32IJ4F6.js → chunk-H6J5QQ45.js} +5 -5
- package/dist/{chunk-S32IJ4F6.js.map → chunk-H6J5QQ45.js.map} +1 -1
- package/dist/{chunk-5K7ECKKW.js → chunk-HPYZGYQL.js} +13 -25
- package/dist/chunk-HPYZGYQL.js.map +1 -0
- package/dist/{chunk-JTWXTX2D.js → chunk-PXUWQC3X.js} +37 -51
- package/dist/chunk-PXUWQC3X.js.map +1 -0
- package/dist/{chunk-2SUO6N5G.cjs → chunk-QGBVR3DR.cjs} +14 -14
- package/dist/{chunk-2SUO6N5G.cjs.map → chunk-QGBVR3DR.cjs.map} +1 -1
- package/dist/{chunk-7BDGRATY.cjs → chunk-XOP6IB66.cjs} +24 -24
- package/dist/chunk-XOP6IB66.cjs.map +1 -0
- package/dist/{chunk-ZL66GDLP.js → chunk-YUBKHO52.js} +2 -2
- package/dist/{chunk-ZL66GDLP.js.map → chunk-YUBKHO52.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +5 -5
- package/dist/docs/references/docs-deployment-mastra-server.md +35 -0
- package/dist/docs/references/docs-deployment-monorepo.md +2 -0
- package/dist/docs/references/docs-deployment-overview.md +6 -0
- package/dist/index.cjs +11 -11
- package/dist/index.js +4 -4
- package/dist/server/index.cjs +9 -2
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +9 -2
- package/dist/server/index.js.map +1 -1
- package/dist/services/index.cjs +4 -4
- package/dist/services/index.js +1 -1
- package/package.json +11 -13
- package/dist/chunk-5K7ECKKW.js.map +0 -1
- package/dist/chunk-7BDGRATY.cjs.map +0 -1
- package/dist/chunk-JTWXTX2D.js.map +0 -1
- package/dist/chunk-UFIOPABI.cjs.map +0 -1
- package/dist/chunk-UY7KZXD2.js.map +0 -1
- package/dist/chunk-X2ZJLEWO.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkQGBVR3DR_cjs = require('./chunk-QGBVR3DR.cjs');
|
|
4
|
+
var chunk4XMRN3U4_cjs = require('./chunk-4XMRN3U4.cjs');
|
|
5
|
+
var chunkFKKJQUGR_cjs = require('./chunk-FKKJQUGR.cjs');
|
|
6
6
|
|
|
7
7
|
// src/deploy/base.ts
|
|
8
|
-
var Deployer = class extends
|
|
9
|
-
deps = new
|
|
8
|
+
var Deployer = class extends chunkQGBVR3DR_cjs.Bundler {
|
|
9
|
+
deps = new chunkFKKJQUGR_cjs.DepsService();
|
|
10
10
|
constructor(args) {
|
|
11
11
|
super(args.name, "DEPLOYER");
|
|
12
12
|
this.deps.__setLogger(this.logger);
|
|
@@ -14,7 +14,7 @@ var Deployer = class extends chunk2SUO6N5G_cjs.Bundler {
|
|
|
14
14
|
getEnvFiles() {
|
|
15
15
|
const possibleFiles = [".env.production", ".env.local", ".env"];
|
|
16
16
|
try {
|
|
17
|
-
const fileService = new
|
|
17
|
+
const fileService = new chunkFKKJQUGR_cjs.FileService();
|
|
18
18
|
const envFile = fileService.getFirstExistingFile(possibleFiles);
|
|
19
19
|
return Promise.resolve([envFile]);
|
|
20
20
|
} catch {
|
|
@@ -25,7 +25,7 @@ var Deployer = class extends chunk2SUO6N5G_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 chunk4XMRN3U4_cjs.extractMastraOption("deployer", entryFile, outputDir, logger);
|
|
29
29
|
if (!result) {
|
|
30
30
|
return null;
|
|
31
31
|
}
|
|
@@ -34,19 +34,19 @@ async function getDeployer(entryFile, outputDir, logger) {
|
|
|
34
34
|
|
|
35
35
|
Object.defineProperty(exports, "Deps", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkFKKJQUGR_cjs.Deps; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "FileService", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkFKKJQUGR_cjs.FileService; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "createChildProcessLogger", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkFKKJQUGR_cjs.createChildProcessLogger; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "createPinoStream", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkFKKJQUGR_cjs.createPinoStream; }
|
|
50
50
|
});
|
|
51
51
|
exports.Deployer = Deployer;
|
|
52
52
|
exports.getDeployer = getDeployer;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bundler } from './chunk-
|
|
2
|
-
import { extractMastraOption } from './chunk-
|
|
3
|
-
import { DepsService, FileService } from './chunk-
|
|
4
|
-
export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-
|
|
1
|
+
import { Bundler } from './chunk-72CHYUGH.js';
|
|
2
|
+
import { extractMastraOption } from './chunk-PXUWQC3X.js';
|
|
3
|
+
import { DepsService, FileService } from './chunk-YUBKHO52.js';
|
|
4
|
+
export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-YUBKHO52.js';
|
|
5
5
|
|
|
6
6
|
// src/deploy/base.ts
|
|
7
7
|
var Deployer = class extends Bundler {
|
package/dist/server/index.cjs
CHANGED
|
@@ -3414,13 +3414,20 @@ var MastraServer = class extends serverAdapter.MastraServer {
|
|
|
3414
3414
|
c.req.raw.headers.forEach((v, k) => {
|
|
3415
3415
|
reqHeaders[k] = v;
|
|
3416
3416
|
});
|
|
3417
|
+
let executionCtx;
|
|
3418
|
+
try {
|
|
3419
|
+
executionCtx = c.executionCtx;
|
|
3420
|
+
} catch {
|
|
3421
|
+
executionCtx = void 0;
|
|
3422
|
+
}
|
|
3417
3423
|
const response = await this.handleCustomRouteRequest(
|
|
3418
3424
|
c.req.url,
|
|
3419
3425
|
c.req.method,
|
|
3420
3426
|
reqHeaders,
|
|
3421
3427
|
c.req.raw.body,
|
|
3422
3428
|
c.get("requestContext"),
|
|
3423
|
-
c.req.raw.signal
|
|
3429
|
+
c.req.raw.signal,
|
|
3430
|
+
executionCtx
|
|
3424
3431
|
);
|
|
3425
3432
|
if (!response) {
|
|
3426
3433
|
return c.json({ error: "Not Found" }, 404);
|
|
@@ -3476,7 +3483,7 @@ var MastraServer = class extends serverAdapter.MastraServer {
|
|
|
3476
3483
|
}
|
|
3477
3484
|
};
|
|
3478
3485
|
|
|
3479
|
-
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.3.1/
|
|
3486
|
+
// ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.3.1/ed7874fdcec8b17da300846f7ef77f0f4a26ac7405bda06fbf30b636f843708d/node_modules/hono-openapi/dist/index.js
|
|
3480
3487
|
var uniqueSymbol = /* @__PURE__ */ Symbol("openapi");
|
|
3481
3488
|
function describeRoute(spec) {
|
|
3482
3489
|
const middleware2 = async (_c, next) => {
|