@mastra/deployer 1.83.0-alpha.4 → 1.83.0-alpha.6
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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/server/index.cjs +4 -11
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +4 -11
- package/dist/server/index.js.map +1 -1
- package/package.json +5 -5
- /package/dist/_types/{@mastra_hono@1.7.25-alpha.4 → @mastra_hono@1.7.25-alpha.6}/dist/auth-middleware.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.25-alpha.4 → @mastra_hono@1.7.25-alpha.6}/dist/browser-stream/index.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.25-alpha.4 → @mastra_hono@1.7.25-alpha.6}/dist/index.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.25-alpha.4 → @mastra_hono@1.7.25-alpha.6}/package.json +0 -0
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-deployer
|
|
|
3
3
|
description: Documentation for @mastra/deployer. Use when working with @mastra/deployer APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/deployer"
|
|
6
|
-
version: "1.83.0-alpha.
|
|
6
|
+
version: "1.83.0-alpha.6"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/server/index.cjs
CHANGED
|
@@ -4034,16 +4034,8 @@ var MastraServer = class extends _mastra_server_server_adapter.MastraServer {
|
|
|
4034
4034
|
const routes = await this.registerSchemaApiRoutes();
|
|
4035
4035
|
if (!await this.buildCustomRouteHandler(routes)) return;
|
|
4036
4036
|
for (const route of routes) {
|
|
4037
|
-
const serverRoute = {
|
|
4038
|
-
method: route.method,
|
|
4039
|
-
path: route.path,
|
|
4040
|
-
responseType: "json",
|
|
4041
|
-
handler: async () => {},
|
|
4042
|
-
requiresAuth: route.requiresAuth,
|
|
4043
|
-
requiresPermission: route.requiresPermission,
|
|
4044
|
-
fga: route.fga
|
|
4045
|
-
};
|
|
4046
4037
|
const routeHandler = async (c) => {
|
|
4038
|
+
const { match, serverRoute, customRouteAuthConfig } = this.resolveCustomRouteAuth(c.req.url, c.req.method, c.req.path, route);
|
|
4047
4039
|
const authError = await this.checkRouteAuth(serverRoute, {
|
|
4048
4040
|
path: c.req.path,
|
|
4049
4041
|
method: c.req.method,
|
|
@@ -4051,7 +4043,8 @@ var MastraServer = class extends _mastra_server_server_adapter.MastraServer {
|
|
|
4051
4043
|
getQuery: (name) => c.req.query(name),
|
|
4052
4044
|
requestContext: c.get("requestContext"),
|
|
4053
4045
|
request: c.req.raw,
|
|
4054
|
-
buildAuthorizeContext: () => c
|
|
4046
|
+
buildAuthorizeContext: () => c,
|
|
4047
|
+
customRouteAuthConfig
|
|
4055
4048
|
});
|
|
4056
4049
|
if (authError) {
|
|
4057
4050
|
if (authError.headers) for (const [key, value] of Object.entries(authError.headers)) c.header(key, value);
|
|
@@ -4088,7 +4081,7 @@ var MastraServer = class extends _mastra_server_server_adapter.MastraServer {
|
|
|
4088
4081
|
const fgaError = await (0, _mastra_server_server_adapter.checkRouteFGA)(this.mastra, serverRoute, c.get("requestContext"), {
|
|
4089
4082
|
...Object.fromEntries(new URL(c.req.url).searchParams.entries()),
|
|
4090
4083
|
...bodyParams,
|
|
4091
|
-
...c.req.param()
|
|
4084
|
+
...match ? match.params : c.req.param()
|
|
4092
4085
|
});
|
|
4093
4086
|
if (fgaError) return c.json({
|
|
4094
4087
|
error: fgaError.error,
|