@mastra/deployer 1.80.0 → 1.81.0-alpha.1

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 (105) hide show
  1. package/dist/_types/@internal_core/dist/base/index.d.ts +28 -0
  2. package/dist/_types/@internal_core/dist/index-Diz1p9N7.d.ts +316 -0
  3. package/dist/_types/@internal_core/dist/logger/index.d.ts +2 -0
  4. package/dist/_types/@internal_core/package.json +1 -0
  5. package/dist/_types/@internal_deployer/dist/_types/@internal_core/dist/index-Diz1p9N7.d.ts +316 -0
  6. package/dist/_types/@internal_deployer/dist/_types/@internal_core/dist/logger/index.d.ts +2 -0
  7. package/dist/_types/@internal_deployer/dist/bundler.d.ts +79 -0
  8. package/dist/_types/@internal_deployer/dist/deployer.d.ts +11 -0
  9. package/dist/_types/@internal_deployer/dist/index.d.ts +4 -0
  10. package/dist/_types/@internal_deployer/package.json +1 -0
  11. package/dist/{analyze-CQH2CQM9.js → analyze-BZGcfVSL.js} +4 -4
  12. package/dist/analyze-BZGcfVSL.js.map +1 -0
  13. package/dist/{analyze-SxVgkEcB.cjs → analyze-CtWBhASF.cjs} +13 -13
  14. package/dist/analyze-CtWBhASF.cjs.map +1 -0
  15. package/dist/build/analyze/analyzeEntry.d.ts +1 -1
  16. package/dist/build/analyze/analyzeEntry.d.ts.map +1 -1
  17. package/dist/build/analyze.cjs +1 -1
  18. package/dist/build/analyze.d.ts +4 -4
  19. package/dist/build/analyze.d.ts.map +1 -1
  20. package/dist/build/analyze.js +1 -1
  21. package/dist/build/babel/remove-all-options-except.d.ts +1 -1
  22. package/dist/build/babel/remove-all-options-except.d.ts.map +1 -1
  23. package/dist/build/bundler.cjs +1 -1
  24. package/dist/build/bundler.js +1 -1
  25. package/dist/build/bundlerOptions.d.ts +3 -3
  26. package/dist/build/bundlerOptions.d.ts.map +1 -1
  27. package/dist/build/deployer.d.ts +3 -3
  28. package/dist/build/deployer.d.ts.map +1 -1
  29. package/dist/build/index.cjs +5 -5
  30. package/dist/build/index.js +5 -5
  31. package/dist/build/plugins/esm-shim.d.ts.map +1 -1
  32. package/dist/build/plugins/remove-all-except.d.ts +1 -1
  33. package/dist/build/plugins/remove-all-except.d.ts.map +1 -1
  34. package/dist/build/serverOptions.d.ts +1 -1
  35. package/dist/build/serverOptions.d.ts.map +1 -1
  36. package/dist/build/shared/extract-mastra-option.d.ts +1 -1
  37. package/dist/build/shared/extract-mastra-option.d.ts.map +1 -1
  38. package/dist/{build-BlmomwDs.js → build-CkZ0xUid.js} +7 -9
  39. package/dist/build-CkZ0xUid.js.map +1 -0
  40. package/dist/{build-CXMVTo1j.cjs → build-D0eiANsp.cjs} +8 -10
  41. package/dist/build-D0eiANsp.cjs.map +1 -0
  42. package/dist/bundler/index.cjs +6 -506
  43. package/dist/bundler/index.d.ts +14 -8
  44. package/dist/bundler/index.d.ts.map +1 -1
  45. package/dist/bundler/index.js +1 -498
  46. package/dist/bundler/workspaceDependencies.d.ts +1 -1
  47. package/dist/bundler/workspaceDependencies.d.ts.map +1 -1
  48. package/dist/bundler-BBi45M7f.cjs +549 -0
  49. package/dist/bundler-BBi45M7f.cjs.map +1 -0
  50. package/dist/bundler-CNgW1Vui.js +516 -0
  51. package/dist/bundler-CNgW1Vui.js.map +1 -0
  52. package/dist/{bundler-D3Ky7WCf.js → bundler-C_LpvgiH.js} +2 -2
  53. package/dist/bundler-C_LpvgiH.js.map +1 -0
  54. package/dist/{bundler-D_3GyN0N.cjs → bundler-Cb7pRVvA.cjs} +5 -5
  55. package/dist/bundler-Cb7pRVvA.cjs.map +1 -0
  56. package/dist/{bundlerOptions-Dgt4ZEo1.cjs → bundlerOptions-BBvSNHFj.cjs} +2 -2
  57. package/dist/bundlerOptions-BBvSNHFj.cjs.map +1 -0
  58. package/dist/{bundlerOptions-BtDsaIgs.js → bundlerOptions-BlUHmPBE.js} +2 -2
  59. package/dist/bundlerOptions-BlUHmPBE.js.map +1 -0
  60. package/dist/deploy/base.d.ts +1 -1
  61. package/dist/deploy/base.d.ts.map +1 -1
  62. package/dist/deploy/log.d.ts +1 -1
  63. package/dist/deploy/log.d.ts.map +1 -1
  64. package/dist/docs/SKILL.md +1 -1
  65. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  66. package/dist/docs/references/docs-deployment-mastra-server.md +3 -1
  67. package/dist/error-BVvc5jcw.js +172 -0
  68. package/dist/error-BVvc5jcw.js.map +1 -0
  69. package/dist/error-CR4whExy.cjs +195 -0
  70. package/dist/error-CR4whExy.cjs.map +1 -0
  71. package/dist/index.cjs +5 -5
  72. package/dist/index.cjs.map +1 -1
  73. package/dist/index.js +4 -4
  74. package/dist/index.js.map +1 -1
  75. package/dist/server/handlers/a2a.d.ts +31 -31
  76. package/dist/server/handlers/a2a.d.ts.map +1 -1
  77. package/dist/server/handlers/client.d.ts.map +1 -1
  78. package/dist/server/index.cjs +9 -8
  79. package/dist/server/index.cjs.map +1 -1
  80. package/dist/server/index.js +9 -8
  81. package/dist/server/index.js.map +1 -1
  82. package/dist/services/deps.d.ts +2 -2
  83. package/dist/services/deps.d.ts.map +1 -1
  84. package/dist/services/env.d.ts.map +1 -1
  85. package/dist/services/fs.d.ts.map +1 -1
  86. package/dist/services/index.cjs +1 -1
  87. package/dist/services/index.js +1 -1
  88. package/dist/{services-BJQJLQs9.js → services-CXZJN9er.js} +294 -5
  89. package/dist/services-CXZJN9er.js.map +1 -0
  90. package/dist/{services-Dqx1iouv.cjs → services-CtVt5CJq.cjs} +321 -20
  91. package/dist/services-CtVt5CJq.cjs.map +1 -0
  92. package/dist/validator/validate.d.ts.map +1 -1
  93. package/package.json +10 -8
  94. package/dist/analyze-CQH2CQM9.js.map +0 -1
  95. package/dist/analyze-SxVgkEcB.cjs.map +0 -1
  96. package/dist/build-BlmomwDs.js.map +0 -1
  97. package/dist/build-CXMVTo1j.cjs.map +0 -1
  98. package/dist/bundler/index.cjs.map +0 -1
  99. package/dist/bundler/index.js.map +0 -1
  100. package/dist/bundler-D3Ky7WCf.js.map +0 -1
  101. package/dist/bundler-D_3GyN0N.cjs.map +0 -1
  102. package/dist/bundlerOptions-BtDsaIgs.js.map +0 -1
  103. package/dist/bundlerOptions-Dgt4ZEo1.cjs.map +0 -1
  104. package/dist/services-BJQJLQs9.js.map +0 -1
  105. package/dist/services-Dqx1iouv.cjs.map +0 -1
@@ -3,8 +3,8 @@ import "../index-CLddUTqr-FaVhUOQu.js";
3
3
  import { createReadStream, existsSync, statSync } from "fs";
4
4
  import { readFile } from "fs/promises";
5
5
  import { dirname, join } from "path";
6
- import { fileURLToPath } from "url";
7
6
  import { Readable, Writable } from "stream";
7
+ import { fileURLToPath } from "url";
8
8
  import * as https from "https";
9
9
  import { STATUS_CODES, ServerResponse, createServer } from "http";
10
10
  import { Http2ServerRequest, constants } from "http2";
@@ -31,7 +31,7 @@ import "hono/utils/handler";
31
31
  import "hono/utils/url";
32
32
  import "hono/validator";
33
33
  import { HTTPException } from "hono/http-exception";
34
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.3/77fb7b7d8de4d768581a422b8f5a10243114c5fe830d14a0f6e462670caab44a/node_modules/@hono/node-server/dist/index.mjs
34
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.5/c64acaa22e289f28d8358ed7eb315e04e16f012a2b67390803ba774efd774a1e/node_modules/@hono/node-server/dist/index.mjs
35
35
  var RequestError = class extends Error {
36
36
  constructor(message, options) {
37
37
  super(message, options);
@@ -853,7 +853,7 @@ const makeCloseHandler = (req, incoming, outgoing, needsBodyCleanup) => () => {
853
853
  if (incoming.errored) {
854
854
  recordBodyBufferedBeforeDisconnect(incoming);
855
855
  req[abortRequest](incoming.errored.toString());
856
- } else if (!outgoing.writableFinished) {
856
+ } else if (!outgoing.writableFinished || incoming instanceof Http2ServerRequest && incoming.aborted) {
857
857
  recordBodyBufferedBeforeDisconnect(incoming);
858
858
  req[abortRequest]("Client connection prematurely closed.");
859
859
  }
@@ -1332,7 +1332,7 @@ const serve = (options, listeningListener) => {
1332
1332
  });
1333
1333
  return server;
1334
1334
  };
1335
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.3/77fb7b7d8de4d768581a422b8f5a10243114c5fe830d14a0f6e462670caab44a/node_modules/@hono/node-server/dist/utils/stream.mjs
1335
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.5/c64acaa22e289f28d8358ed7eb315e04e16f012a2b67390803ba774efd774a1e/node_modules/@hono/node-server/dist/utils/stream.mjs
1336
1336
  const pr54206Applied = () => {
1337
1337
  const [major, minor] = versions.node.split(".").map((component) => parseInt(component));
1338
1338
  return major >= 23 || major === 22 && minor >= 7 || major === 20 && minor >= 18;
@@ -1390,7 +1390,7 @@ const createStreamBody = (stream, useNativeReadableToWeb = useReadableToWeb) =>
1390
1390
  }
1391
1391
  });
1392
1392
  };
1393
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.3/77fb7b7d8de4d768581a422b8f5a10243114c5fe830d14a0f6e462670caab44a/node_modules/@hono/node-server/dist/serve-static.mjs
1393
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.1.5/c64acaa22e289f28d8358ed7eb315e04e16f012a2b67390803ba774efd774a1e/node_modules/@hono/node-server/dist/serve-static.mjs
1394
1394
  const COMPRESSIBLE_CONTENT_TYPE_REGEX = /^\s*(?:text\/[^;\s]+|application\/(?:javascript|json|xml|xml-dtd|ecmascript|dart|postscript|rtf|tar|toml|vnd\.dart|vnd\.ms-fontobject|vnd\.ms-opentype|wasm|x-httpd-php|x-javascript|x-ns-proxy-autoconfig|x-sh|x-tar|x-virtualbox-hdd|x-virtualbox-ova|x-virtualbox-ovf|x-virtualbox-vbox|x-virtualbox-vdi|x-virtualbox-vhd|x-virtualbox-vmdk|x-www-form-urlencoded)|font\/(?:otf|ttf)|image\/(?:bmp|vnd\.adobe\.photoshop|vnd\.microsoft\.icon|vnd\.ms-dds|x-icon|x-ms-bmp)|message\/rfc822|model\/gltf-binary|x-shader\/x-fragment|x-shader\/x-vertex|[^;\s]+?\+(?:json|text|xml|yaml))(?:[;\s]|$)/i;
1395
1395
  const ENCODINGS = {
1396
1396
  br: ".br",
@@ -1460,6 +1460,7 @@ const serveStatic = (options = { root: "" }) => {
1460
1460
  if (root !== "" && !existsSync(root)) console.error(`serveStatic: root path '${root}' is not found, are you sure it's correct?`);
1461
1461
  return async (c, next) => {
1462
1462
  if (c.finalized) return next();
1463
+ if (c.req.method !== "GET" && c.req.method !== "HEAD") return next();
1463
1464
  let filename;
1464
1465
  if (optionPath) filename = optionPath;
1465
1466
  else try {
@@ -1501,7 +1502,7 @@ const serveStatic = (options = { root: "" }) => {
1501
1502
  const size = stats.size;
1502
1503
  const range = c.req.header("range") || "";
1503
1504
  c.header("Last-Modified", stats.mtime.toUTCString());
1504
- if (c.req.method == "HEAD" || c.req.method == "OPTIONS") {
1505
+ if (c.req.method === "HEAD") {
1505
1506
  c.header("Content-Length", size.toString());
1506
1507
  c.status(200);
1507
1508
  result = c.body(null);
@@ -1533,7 +1534,7 @@ const serveStatic = (options = { root: "" }) => {
1533
1534
  return result;
1534
1535
  };
1535
1536
  };
1536
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/swagger-ui/0.5.3/7b19cbfa9f0684e68bc398d56564591a4cdbcb67a12950a659184a25749b2d30/node_modules/@hono/swagger-ui/dist/index.js
1537
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/swagger-ui/0.5.3/fe1b4a78fef400a9bb4ccec4e91cddbbd9b43706afe50dd3266b2297c015e5bf/node_modules/@hono/swagger-ui/dist/index.js
1537
1538
  const RENDER_TYPE = {
1538
1539
  STRING_ARRAY: "string_array",
1539
1540
  STRING: "string",
@@ -4108,7 +4109,7 @@ var MastraServer$2 = class extends MastraServer {
4108
4109
  });
4109
4110
  }
4110
4111
  };
4111
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.5.0/06e8c618625d16517754fcb9c7d6b15c4c6038a9b9a38e84754db6476b16f4a3/node_modules/hono-openapi/dist/index.js
4112
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.5.0/aba075f9c000905a9976a3be5624e02cbca659679195a7801fa8cc48a73fcf35/node_modules/hono-openapi/dist/index.js
4112
4113
  const uniqueSymbol = Symbol.for("hono-openapi");
4113
4114
  function describeRoute(spec) {
4114
4115
  const middleware = async (_c, next) => {