@mastra/deployer 1.68.0-alpha.9 → 1.68.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-ClD1cvPT.cjs} +40 -10
- package/dist/analyze-ClD1cvPT.cjs.map +1 -0
- package/dist/{analyze-vhJ4VPnP.js → analyze-DEk6PGTI.js} +40 -10
- package/dist/analyze-DEk6PGTI.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 +2 -2
- package/dist/build/index.js +2 -2
- package/dist/{build-CDP0q7Js.cjs → build-DJMEiMA1.cjs} +2 -2
- package/dist/{build-CDP0q7Js.cjs.map → build-DJMEiMA1.cjs.map} +1 -1
- package/dist/{build-bGScYRY7.js → build-JNlRQOvG.js} +2 -2
- package/dist/{build-bGScYRY7.js.map → build-JNlRQOvG.js.map} +1 -1
- package/dist/bundler/index.cjs +1 -1
- package/dist/bundler/index.js +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/server/index.cjs +13 -11
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +14 -12
- package/dist/server/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/analyze-CwT4ZChx.cjs.map +0 -1
- package/dist/analyze-vhJ4VPnP.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";
|
|
@@ -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(),
|