@mastra/deployer 1.68.0-alpha.9 → 1.69.0-alpha.0
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/dist/{analyze-CwT4ZChx.cjs → analyze-CcnwZxfN.cjs} +41 -11
- package/dist/analyze-CcnwZxfN.cjs.map +1 -0
- package/dist/{analyze-vhJ4VPnP.js → analyze-D1BPc4_P.js} +41 -11
- package/dist/analyze-D1BPc4_P.js.map +1 -0
- package/dist/build/analyze/analyzeEntry.d.ts +5 -1
- package/dist/build/analyze/analyzeEntry.d.ts.map +1 -1
- package/dist/build/analyze.cjs +1 -1
- package/dist/build/analyze.d.ts.map +1 -1
- package/dist/build/analyze.js +1 -1
- package/dist/build/index.cjs +3 -3
- package/dist/build/index.js +3 -3
- package/dist/{build-bGScYRY7.js → build-Dcbrde_a.js} +3 -3
- package/dist/{build-bGScYRY7.js.map → build-Dcbrde_a.js.map} +1 -1
- package/dist/{build-CDP0q7Js.cjs → build-FfLGNT2X.cjs} +3 -3
- package/dist/{build-CDP0q7Js.cjs.map → build-FfLGNT2X.cjs.map} +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/server/index.cjs +18 -16
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +19 -17
- package/dist/server/index.js.map +1 -1
- package/dist/services/deps.d.ts +40 -0
- package/dist/services/deps.d.ts.map +1 -1
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.js +1 -1
- package/dist/{services-Lm6PRS4D.js → services-D_C2Onjo.js} +146 -2
- package/dist/services-D_C2Onjo.js.map +1 -0
- package/dist/{services-Beob47UW.cjs → services-m8tlZVRv.cjs} +146 -2
- package/dist/services-m8tlZVRv.cjs.map +1 -0
- package/package.json +8 -8
- package/dist/analyze-CwT4ZChx.cjs.map +0 -1
- package/dist/analyze-vhJ4VPnP.js.map +0 -1
- package/dist/services-Beob47UW.cjs.map +0 -1
- package/dist/services-Lm6PRS4D.js.map +0 -1
package/dist/server/index.js
CHANGED
|
@@ -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/
|
|
35
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.0.10/6be43c83777d669b036e653a8b7e871f80da198738a293161ba1a45b77e87eb5/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/
|
|
1172
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.0.10/6be43c83777d669b036e653a8b7e871f80da198738a293161ba1a45b77e87eb5/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/
|
|
1231
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/node-server/2.0.10/6be43c83777d669b036e653a8b7e871f80da198738a293161ba1a45b77e87eb5/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/
|
|
1374
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@hono/swagger-ui/0.5.3/efdf6a38e11d504662ea01771147d5e3bc2131929184f134f53333b59af63250/node_modules/@hono/swagger-ui/dist/index.js
|
|
1375
1375
|
const RENDER_TYPE = {
|
|
1376
1376
|
STRING_ARRAY: "string_array",
|
|
1377
1377
|
STRING: "string",
|
|
@@ -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
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
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/
|
|
3723
|
+
//#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-openapi/1.3.1/e1174f38cec2d719fc15b1b5e1cfe904f86169ec8d0312a7c4656ca6ef6934e3/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) => {
|