@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.
Files changed (67) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/build/analyze.cjs +2 -2
  3. package/dist/build/analyze.d.ts.map +1 -1
  4. package/dist/build/analyze.js +1 -1
  5. package/dist/build/babel/check-config-export.d.ts +2 -2
  6. package/dist/build/babel/check-config-export.d.ts.map +1 -1
  7. package/dist/build/babel/detect-pino-transports.d.ts +2 -2
  8. package/dist/build/babel/detect-pino-transports.d.ts.map +1 -1
  9. package/dist/build/babel/remove-all-options-except.d.ts +2 -2
  10. package/dist/build/babel/remove-all-options-except.d.ts.map +1 -1
  11. package/dist/build/babel/remove-deployer.d.ts +6 -2
  12. package/dist/build/babel/remove-deployer.d.ts.map +1 -1
  13. package/dist/build/babel/remove-non-referenced-nodes.d.ts +2 -2
  14. package/dist/build/babel/remove-non-referenced-nodes.d.ts.map +1 -1
  15. package/dist/build/bundler.cjs +5 -5
  16. package/dist/build/bundler.js +1 -1
  17. package/dist/build/index.cjs +22 -22
  18. package/dist/build/index.js +5 -5
  19. package/dist/build/plugins/remove-all-except.d.ts.map +1 -1
  20. package/dist/build/plugins/remove-deployer.d.ts.map +1 -1
  21. package/dist/build/plugins/remove-unused-references.d.ts.map +1 -1
  22. package/dist/bundler/index.cjs +3 -3
  23. package/dist/bundler/index.js +1 -1
  24. package/dist/{chunk-UFIOPABI.cjs → chunk-4XMRN3U4.cjs} +41 -54
  25. package/dist/chunk-4XMRN3U4.cjs.map +1 -0
  26. package/dist/{chunk-PLCERTF6.js → chunk-72CHYUGH.js} +6 -6
  27. package/dist/{chunk-PLCERTF6.js.map → chunk-72CHYUGH.js.map} +1 -1
  28. package/dist/{chunk-X2ZJLEWO.cjs → chunk-7CT7DAME.cjs} +13 -24
  29. package/dist/chunk-7CT7DAME.cjs.map +1 -0
  30. package/dist/{chunk-UY7KZXD2.js → chunk-CBK2CAL4.js} +7 -7
  31. package/dist/chunk-CBK2CAL4.js.map +1 -0
  32. package/dist/{chunk-VKAFARW6.cjs → chunk-FKKJQUGR.cjs} +4 -4
  33. package/dist/{chunk-VKAFARW6.cjs.map → chunk-FKKJQUGR.cjs.map} +1 -1
  34. package/dist/{chunk-SZ3KU5RT.cjs → chunk-GPKHP7J7.cjs} +12 -12
  35. package/dist/{chunk-SZ3KU5RT.cjs.map → chunk-GPKHP7J7.cjs.map} +1 -1
  36. package/dist/{chunk-S32IJ4F6.js → chunk-H6J5QQ45.js} +5 -5
  37. package/dist/{chunk-S32IJ4F6.js.map → chunk-H6J5QQ45.js.map} +1 -1
  38. package/dist/{chunk-5K7ECKKW.js → chunk-HPYZGYQL.js} +13 -25
  39. package/dist/chunk-HPYZGYQL.js.map +1 -0
  40. package/dist/{chunk-JTWXTX2D.js → chunk-PXUWQC3X.js} +37 -51
  41. package/dist/chunk-PXUWQC3X.js.map +1 -0
  42. package/dist/{chunk-2SUO6N5G.cjs → chunk-QGBVR3DR.cjs} +14 -14
  43. package/dist/{chunk-2SUO6N5G.cjs.map → chunk-QGBVR3DR.cjs.map} +1 -1
  44. package/dist/{chunk-7BDGRATY.cjs → chunk-XOP6IB66.cjs} +24 -24
  45. package/dist/chunk-XOP6IB66.cjs.map +1 -0
  46. package/dist/{chunk-ZL66GDLP.js → chunk-YUBKHO52.js} +2 -2
  47. package/dist/{chunk-ZL66GDLP.js.map → chunk-YUBKHO52.js.map} +1 -1
  48. package/dist/docs/SKILL.md +1 -1
  49. package/dist/docs/assets/SOURCE_MAP.json +5 -5
  50. package/dist/docs/references/docs-deployment-mastra-server.md +35 -0
  51. package/dist/docs/references/docs-deployment-monorepo.md +2 -0
  52. package/dist/docs/references/docs-deployment-overview.md +6 -0
  53. package/dist/index.cjs +11 -11
  54. package/dist/index.js +4 -4
  55. package/dist/server/index.cjs +9 -2
  56. package/dist/server/index.cjs.map +1 -1
  57. package/dist/server/index.js +9 -2
  58. package/dist/server/index.js.map +1 -1
  59. package/dist/services/index.cjs +4 -4
  60. package/dist/services/index.js +1 -1
  61. package/package.json +11 -13
  62. package/dist/chunk-5K7ECKKW.js.map +0 -1
  63. package/dist/chunk-7BDGRATY.cjs.map +0 -1
  64. package/dist/chunk-JTWXTX2D.js.map +0 -1
  65. package/dist/chunk-UFIOPABI.cjs.map +0 -1
  66. package/dist/chunk-UY7KZXD2.js.map +0 -1
  67. 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 chunk2SUO6N5G_cjs = require('./chunk-2SUO6N5G.cjs');
4
- var chunkUFIOPABI_cjs = require('./chunk-UFIOPABI.cjs');
5
- var chunkVKAFARW6_cjs = require('./chunk-VKAFARW6.cjs');
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 chunk2SUO6N5G_cjs.Bundler {
9
- deps = new chunkVKAFARW6_cjs.DepsService();
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 chunkVKAFARW6_cjs.FileService();
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 chunkUFIOPABI_cjs.extractMastraOption("deployer", entryFile, outputDir, logger);
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 chunkVKAFARW6_cjs.Deps; }
37
+ get: function () { return chunkFKKJQUGR_cjs.Deps; }
38
38
  });
39
39
  Object.defineProperty(exports, "FileService", {
40
40
  enumerable: true,
41
- get: function () { return chunkVKAFARW6_cjs.FileService; }
41
+ get: function () { return chunkFKKJQUGR_cjs.FileService; }
42
42
  });
43
43
  Object.defineProperty(exports, "createChildProcessLogger", {
44
44
  enumerable: true,
45
- get: function () { return chunkVKAFARW6_cjs.createChildProcessLogger; }
45
+ get: function () { return chunkFKKJQUGR_cjs.createChildProcessLogger; }
46
46
  });
47
47
  Object.defineProperty(exports, "createPinoStream", {
48
48
  enumerable: true,
49
- get: function () { return chunkVKAFARW6_cjs.createPinoStream; }
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-PLCERTF6.js';
2
- import { extractMastraOption } from './chunk-JTWXTX2D.js';
3
- import { DepsService, FileService } from './chunk-ZL66GDLP.js';
4
- export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-ZL66GDLP.js';
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 {
@@ -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/a0af3e938145e0fe63ab6ad04133542aa3d9f05b7230ed4fc230411dabce6d87/node_modules/hono-openapi/dist/index.js
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) => {