@mastra/deployer 1.67.0 → 1.68.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.
Files changed (121) hide show
  1. package/dist/_types/@hono_node-server/package.json +1 -0
  2. package/dist/_types/@mastra_hono/package.json +1 -0
  3. package/dist/{analyze-hp4aHpms.cjs → analyze-ClD1cvPT.cjs} +150 -99
  4. package/dist/analyze-ClD1cvPT.cjs.map +1 -0
  5. package/dist/{analyze-B5HY26Tt.js → analyze-DEk6PGTI.js} +148 -96
  6. package/dist/analyze-DEk6PGTI.js.map +1 -0
  7. package/dist/{arktype-aI7TBD0R-S0daSmHG.js → arktype-aI7TBD0R-BGjyzmsj.js} +2 -2
  8. package/dist/{arktype-aI7TBD0R-S0daSmHG.js.map → arktype-aI7TBD0R-BGjyzmsj.js.map} +1 -1
  9. package/dist/{arktype-aI7TBD0R-BuTX_Phx.cjs → arktype-aI7TBD0R-DCxjN6oF.cjs} +2 -2
  10. package/dist/{arktype-aI7TBD0R-BuTX_Phx.cjs.map → arktype-aI7TBD0R-DCxjN6oF.cjs.map} +1 -1
  11. package/dist/build/analyze/analyzeEntry.d.ts +8 -1
  12. package/dist/build/analyze/analyzeEntry.d.ts.map +1 -1
  13. package/dist/build/analyze/bundleExternals.d.ts.map +1 -1
  14. package/dist/build/analyze.cjs +1 -1
  15. package/dist/build/analyze.d.ts +2 -1
  16. package/dist/build/analyze.d.ts.map +1 -1
  17. package/dist/build/analyze.js +1 -1
  18. package/dist/build/bundler.cjs +2 -1
  19. package/dist/build/bundler.d.ts +10 -0
  20. package/dist/build/bundler.d.ts.map +1 -1
  21. package/dist/build/bundler.js +2 -2
  22. package/dist/build/index.cjs +6 -6
  23. package/dist/build/index.js +6 -6
  24. package/dist/build/package-info.d.ts +4 -0
  25. package/dist/build/package-info.d.ts.map +1 -1
  26. package/dist/build/plugins/subpath-externals-resolver.d.ts +2 -1
  27. package/dist/build/plugins/subpath-externals-resolver.d.ts.map +1 -1
  28. package/dist/build/plugins/tsconfig-paths.d.ts +2 -1
  29. package/dist/build/plugins/tsconfig-paths.d.ts.map +1 -1
  30. package/dist/build/watcher.d.ts.map +1 -1
  31. package/dist/{build-Dit9VFE2.cjs → build-DJMEiMA1.cjs} +8 -7
  32. package/dist/build-DJMEiMA1.cjs.map +1 -0
  33. package/dist/{build-Boe3fe3L.js → build-JNlRQOvG.js} +8 -7
  34. package/dist/build-JNlRQOvG.js.map +1 -0
  35. package/dist/bundler/index.cjs +29 -62
  36. package/dist/bundler/index.cjs.map +1 -1
  37. package/dist/bundler/index.d.ts +1 -11
  38. package/dist/bundler/index.d.ts.map +1 -1
  39. package/dist/bundler/index.js +30 -63
  40. package/dist/bundler/index.js.map +1 -1
  41. package/dist/bundler/workspaceDependencies.d.ts +1 -1
  42. package/dist/bundler/workspaceDependencies.d.ts.map +1 -1
  43. package/dist/{bundler-CzQiVHzN.js → bundler-CC0klr1q.js} +63 -13
  44. package/dist/bundler-CC0klr1q.js.map +1 -0
  45. package/dist/{bundler-BKf2S2r_.cjs → bundler-CjoP35xh.cjs} +74 -11
  46. package/dist/bundler-CjoP35xh.cjs.map +1 -0
  47. package/dist/{bundlerOptions-I2E5y2Wp.cjs → bundlerOptions-09fXosF4.cjs} +2 -2
  48. package/dist/{bundlerOptions-I2E5y2Wp.cjs.map → bundlerOptions-09fXosF4.cjs.map} +1 -1
  49. package/dist/{bundlerOptions-BSySFLb3.js → bundlerOptions-BaAR_H3U.js} +2 -2
  50. package/dist/{bundlerOptions-BSySFLb3.js.map → bundlerOptions-BaAR_H3U.js.map} +1 -1
  51. package/dist/core-D3wM1JKp.js +1159 -0
  52. package/dist/core-D3wM1JKp.js.map +1 -0
  53. package/dist/core-QL_X0T4Y.cjs +1159 -0
  54. package/dist/core-QL_X0T4Y.cjs.map +1 -0
  55. package/dist/docs/SKILL.md +1 -1
  56. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  57. package/dist/docs/references/docs-deployment-monorepo.md +2 -2
  58. package/dist/{effect-QlVUlMFu-tf02PTZR.cjs → effect-QlVUlMFu-B2nZ842E.cjs} +3 -3
  59. package/dist/{effect-QlVUlMFu-tf02PTZR.cjs.map → effect-QlVUlMFu-B2nZ842E.cjs.map} +1 -1
  60. package/dist/{effect-QlVUlMFu-BN-VJnMF.js → effect-QlVUlMFu-DbWuPaWV.js} +3 -3
  61. package/dist/{effect-QlVUlMFu-BN-VJnMF.js.map → effect-QlVUlMFu-DbWuPaWV.js.map} +1 -1
  62. package/dist/{esm-DZ1Siz1C.cjs → esm-Ai6osZ1a.cjs} +61 -50
  63. package/dist/esm-Ai6osZ1a.cjs.map +1 -0
  64. package/dist/{esm-B51vJPGv.js → esm-D-wYOO-S.js} +61 -50
  65. package/dist/esm-D-wYOO-S.js.map +1 -0
  66. package/dist/{index-CLddUTqr-eO-ae7Sx.js → index-CLddUTqr-BXqo9et4.js} +8 -8
  67. package/dist/{index-CLddUTqr-eO-ae7Sx.js.map → index-CLddUTqr-BXqo9et4.js.map} +1 -1
  68. package/dist/{index-CLddUTqr-DS5tJ3WV.cjs → index-CLddUTqr-DsGkVS-W.cjs} +8 -8
  69. package/dist/{index-CLddUTqr-DS5tJ3WV.cjs.map → index-CLddUTqr-DsGkVS-W.cjs.map} +1 -1
  70. package/dist/index.cjs +3 -3
  71. package/dist/index.js +3 -3
  72. package/dist/server/index.cjs +21 -19
  73. package/dist/server/index.cjs.map +1 -1
  74. package/dist/server/index.d.ts +2 -2
  75. package/dist/server/index.js +22 -20
  76. package/dist/server/index.js.map +1 -1
  77. package/dist/services/deps.d.ts +1 -1
  78. package/dist/services/deps.d.ts.map +1 -1
  79. package/dist/services/index.cjs +1 -1
  80. package/dist/services/index.js +1 -1
  81. package/dist/{services-BLvNG7v7.cjs → services-Beob47UW.cjs} +42 -23
  82. package/dist/services-Beob47UW.cjs.map +1 -0
  83. package/dist/{services-B9KRKBT-.js → services-Lm6PRS4D.js} +42 -23
  84. package/dist/services-Lm6PRS4D.js.map +1 -0
  85. package/dist/{sury-CWZTCd75-YUPbTtKO.cjs → sury-CWZTCd75-ChXu4j-p.cjs} +3 -3
  86. package/dist/{sury-CWZTCd75-YUPbTtKO.cjs.map → sury-CWZTCd75-ChXu4j-p.cjs.map} +1 -1
  87. package/dist/{sury-CWZTCd75-ClSNrMWF.js → sury-CWZTCd75-OKz7uWLi.js} +3 -3
  88. package/dist/{sury-CWZTCd75-ClSNrMWF.js.map → sury-CWZTCd75-OKz7uWLi.js.map} +1 -1
  89. package/dist/{typebox-Dei93FPO-CVSJ3SAf.js → typebox-Dei93FPO-C5ACKU09.js} +2 -2
  90. package/dist/{typebox-Dei93FPO-CVSJ3SAf.js.map → typebox-Dei93FPO-C5ACKU09.js.map} +1 -1
  91. package/dist/{typebox-Dei93FPO-BTBshlGz.cjs → typebox-Dei93FPO-KTtPU745.cjs} +2 -2
  92. package/dist/{typebox-Dei93FPO-BTBshlGz.cjs.map → typebox-Dei93FPO-KTtPU745.cjs.map} +1 -1
  93. package/dist/{utils-DYi43Kp4.js → utils-Bl3Lm7SI.js} +1 -2
  94. package/dist/{utils-DYi43Kp4.js.map → utils-Bl3Lm7SI.js.map} +1 -1
  95. package/dist/{utils-7WDNT3Ca.cjs → utils-Bsr_sEcH.cjs} +2 -2
  96. package/dist/{utils-7WDNT3Ca.cjs.map → utils-Bsr_sEcH.cjs.map} +1 -1
  97. package/dist/{valibot--1zFm7rT-Dn5WqdyK.cjs → valibot--1zFm7rT-BeX3W1HK.cjs} +3 -3
  98. package/dist/{valibot--1zFm7rT-Dn5WqdyK.cjs.map → valibot--1zFm7rT-BeX3W1HK.cjs.map} +1 -1
  99. package/dist/{valibot--1zFm7rT-BxcEC3Pu.js → valibot--1zFm7rT-BuVb-6oJ.js} +3 -3
  100. package/dist/{valibot--1zFm7rT-BxcEC3Pu.js.map → valibot--1zFm7rT-BuVb-6oJ.js.map} +1 -1
  101. package/dist/validator/custom-resolver.cjs +1 -1
  102. package/dist/validator/custom-resolver.js +1 -1
  103. package/dist/{zod-Bwrt9trS-Bd40XYOT.js → zod-Bwrt9trS-D5b1oyiT.js} +5 -5
  104. package/dist/{zod-Bwrt9trS-Bd40XYOT.js.map → zod-Bwrt9trS-D5b1oyiT.js.map} +1 -1
  105. package/dist/{zod-Bwrt9trS-Bi11nE9Q.cjs → zod-Bwrt9trS-DGQs9DWc.cjs} +5 -5
  106. package/dist/{zod-Bwrt9trS-Bi11nE9Q.cjs.map → zod-Bwrt9trS-DGQs9DWc.cjs.map} +1 -1
  107. package/package.json +14 -13
  108. package/dist/analyze-B5HY26Tt.js.map +0 -1
  109. package/dist/analyze-hp4aHpms.cjs.map +0 -1
  110. package/dist/build-Boe3fe3L.js.map +0 -1
  111. package/dist/build-Dit9VFE2.cjs.map +0 -1
  112. package/dist/bundler-BKf2S2r_.cjs.map +0 -1
  113. package/dist/bundler-CzQiVHzN.js.map +0 -1
  114. package/dist/core-D0wEgdn3.cjs +0 -790
  115. package/dist/core-D0wEgdn3.cjs.map +0 -1
  116. package/dist/core-DF65PJXc.js +0 -790
  117. package/dist/core-DF65PJXc.js.map +0 -1
  118. package/dist/esm-B51vJPGv.js.map +0 -1
  119. package/dist/esm-DZ1Siz1C.cjs.map +0 -1
  120. package/dist/services-B9KRKBT-.js.map +0 -1
  121. package/dist/services-BLvNG7v7.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import type { Mastra } from '@mastra/core/mastra';
2
- import type { HonoBindings, HonoVariables } from '../_types/@mastra_hono/dist/index.d.ts';
2
+ import type { HonoBindings, HonoVariables } from '../_types/@mastra_hono/dist/index.js';
3
3
  import { Hono } from 'hono';
4
4
  import type { ServerBundleOptions } from './types.js';
5
5
  type Bindings = HonoBindings;
@@ -13,6 +13,6 @@ export declare function createHonoServer(mastra: Mastra, options?: ServerBundleO
13
13
  Bindings: Bindings;
14
14
  Variables: Variables;
15
15
  }, import("hono/types").BlankSchema, "/">>;
16
- export declare function createNodeServer(mastra: Mastra, options?: ServerBundleOptions): Promise<import("../_types/@hono_node-server/dist/index.d.mts").ServerType>;
16
+ export declare function createNodeServer(mastra: Mastra, options?: ServerBundleOptions): Promise<import("../_types/@hono_node-server/dist/index.mjs").ServerType>;
17
17
  export {};
18
18
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import { d as normalizeStudioBase, n as escapeStudioHtmlValue, o as injectStudioHtmlConfig } from "../utils-DYi43Kp4.js";
2
- import "../index-CLddUTqr-eO-ae7Sx.js";
1
+ import { d as normalizeStudioBase, n as escapeStudioHtmlValue, o as injectStudioHtmlConfig } from "../utils-Bl3Lm7SI.js";
2
+ import "../index-CLddUTqr-BXqo9et4.js";
3
3
  import { randomUUID } from "crypto";
4
4
  import { createReadStream, existsSync, statSync } from "fs";
5
5
  import { readFile } from "fs/promises";
@@ -14,7 +14,7 @@ import process$1, { versions } from "process";
14
14
  import { getMimeType } from "hono/utils/mime";
15
15
  import { html } from "hono/html";
16
16
  import { Tool } from "@mastra/core/tools";
17
- import { MASTRA_FRAMEWORK_PUBLIC_KEY, MastraServer, applyMcpRequestAuth, checkRouteFGA, getCustomHTTPExceptionResponse, isZodError, normalizeQueryParams, redactStreamChunk, serializeStreamChunk } from "@mastra/server/server-adapter";
17
+ import { MASTRA_FRAMEWORK_PUBLIC_KEY, MastraServer, applyMcpRequestAuth, checkRouteFGA, getCustomHTTPExceptionResponse, getFGAProvider, isZodError, normalizeQueryParams, redactStreamChunk, serializeStreamChunk } from "@mastra/server/server-adapter";
18
18
  import util from "util";
19
19
  import { Buffer as Buffer$1 } from "buffer";
20
20
  import { bodyLimit } from "hono/body-limit";
@@ -32,7 +32,7 @@ import "hono/utils/handler";
32
32
  import "hono/validator";
33
33
  import { HTTPException } from "hono/http-exception";
34
34
  //#endregion
35
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.0.10/746117b8e34d8752b5f9ab93fdbe1f61ee9764b36dab6d17cbc9f2d5061a46c6/node_modules/@hono/node-server/dist/index.mjs
35
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.0.10/a5684469b73d820c16427572b534c5591df53ea9c5f4cf447ce1042c7c087937/node_modules/@hono/node-server/dist/index.mjs
36
36
  var RequestError = class extends Error {
37
37
  constructor(message, options) {
38
38
  super(message, options);
@@ -1169,7 +1169,7 @@ const serve = (options, listeningListener) => {
1169
1169
  return server;
1170
1170
  };
1171
1171
  //#endregion
1172
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.0.10/746117b8e34d8752b5f9ab93fdbe1f61ee9764b36dab6d17cbc9f2d5061a46c6/node_modules/@hono/node-server/dist/utils/stream.mjs
1172
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.0.10/a5684469b73d820c16427572b534c5591df53ea9c5f4cf447ce1042c7c087937/node_modules/@hono/node-server/dist/utils/stream.mjs
1173
1173
  const pr54206Applied = () => {
1174
1174
  const [major, minor] = versions.node.split(".").map((component) => parseInt(component));
1175
1175
  return major >= 23 || major === 22 && minor >= 7 || major === 20 && minor >= 18;
@@ -1228,7 +1228,7 @@ const createStreamBody = (stream, useNativeReadableToWeb = useReadableToWeb) =>
1228
1228
  });
1229
1229
  };
1230
1230
  //#endregion
1231
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.0.10/746117b8e34d8752b5f9ab93fdbe1f61ee9764b36dab6d17cbc9f2d5061a46c6/node_modules/@hono/node-server/dist/serve-static.mjs
1231
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.0.10/a5684469b73d820c16427572b534c5591df53ea9c5f4cf447ce1042c7c087937/node_modules/@hono/node-server/dist/serve-static.mjs
1232
1232
  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;
1233
1233
  const ENCODINGS = {
1234
1234
  br: ".br",
@@ -1371,7 +1371,7 @@ const serveStatic = (options = { root: "" }) => {
1371
1371
  };
1372
1372
  };
1373
1373
  //#endregion
1374
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/swagger-ui/0.5.3/e51a0b357907031ca13db42e7f0bc5dffb090fc24b8f4ea04daddb07a604cc5d/node_modules/@hono/swagger-ui/dist/index.js
1374
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/swagger-ui/0.5.3/3590b133c266cfa68a8f563d8e7e5c749f211e3cf24cea37b09bf4111885e9ca/node_modules/@hono/swagger-ui/dist/index.js
1375
1375
  const RENDER_TYPE = {
1376
1376
  STRING_ARRAY: "string_array",
1377
1377
  STRING: "string",
@@ -3207,7 +3207,7 @@ var MastraServer$1 = class extends MastraServer {
3207
3207
  if (body.requestContext) bodyRequestContext = body.requestContext;
3208
3208
  } catch {}
3209
3209
  }
3210
- if (c.req.method === "GET") try {
3210
+ if (c.req.method === "GET" || c.req.method === "POST") try {
3211
3211
  const encodedRequestContext = c.req.query("requestContext");
3212
3212
  if (encodedRequestContext) try {
3213
3213
  paramsRequestContext = JSON.parse(encodedRequestContext);
@@ -3622,17 +3622,19 @@ var MastraServer$1 = class extends MastraServer {
3622
3622
  }
3623
3623
  const pristineRequest = c.get(MASTRA_PRISTINE_REQUEST_KEY) ?? c.req.raw;
3624
3624
  let bodyParams = {};
3625
- const contentType = c.req.header("content-type");
3626
- if (contentType?.includes("application/json")) try {
3627
- const body = await pristineRequest.clone().json();
3628
- if (body && typeof body === "object" && !Array.isArray(body)) bodyParams = body;
3629
- } catch {
3630
- bodyParams = {};
3631
- }
3632
- else if (contentType?.includes("application/x-www-form-urlencoded") || contentType?.includes("multipart/form-data")) try {
3633
- bodyParams = Object.fromEntries(await pristineRequest.clone().formData());
3634
- } catch {
3635
- bodyParams = {};
3625
+ if (getFGAProvider(this.mastra, c.get("requestContext"))) {
3626
+ const contentType = c.req.header("content-type");
3627
+ if (contentType?.includes("application/json")) try {
3628
+ const body = await pristineRequest.clone().json();
3629
+ if (body && typeof body === "object" && !Array.isArray(body)) bodyParams = body;
3630
+ } catch {
3631
+ bodyParams = {};
3632
+ }
3633
+ else if (contentType?.includes("application/x-www-form-urlencoded") || contentType?.includes("multipart/form-data")) try {
3634
+ bodyParams = Object.fromEntries(await pristineRequest.clone().formData());
3635
+ } catch {
3636
+ bodyParams = {};
3637
+ }
3636
3638
  }
3637
3639
  const fgaError = await checkRouteFGA(this.mastra, serverRoute, c.get("requestContext"), {
3638
3640
  ...c.req.param(),
@@ -3718,7 +3720,7 @@ var MastraServer$1 = class extends MastraServer {
3718
3720
  }
3719
3721
  };
3720
3722
  //#endregion
3721
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.3.1/98fa1451de0d2e5977a22b00487baca0d1a2d4c434a3db29283e92e0828effe7/node_modules/hono-openapi/dist/index.js
3723
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.3.1/6bc841d6e289f95fd7cfd8fcdead429c16c34acc92efa4febd25b1c0c5ddd100/node_modules/hono-openapi/dist/index.js
3722
3724
  const uniqueSymbol = Symbol("openapi");
3723
3725
  function describeRoute(spec) {
3724
3726
  const middleware = async (_c, next) => {