@rubytech/create-maxy 1.0.678 → 1.0.680
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/index.js +23 -0
- package/package.json +1 -1
- package/payload/platform/lib/graph-mcp/dist/__tests__/cypher-validate.test.d.ts +2 -0
- package/payload/platform/lib/graph-mcp/dist/__tests__/cypher-validate.test.d.ts.map +1 -0
- package/payload/platform/lib/graph-mcp/dist/__tests__/cypher-validate.test.js +112 -0
- package/payload/platform/lib/graph-mcp/dist/__tests__/cypher-validate.test.js.map +1 -0
- package/payload/platform/lib/graph-mcp/dist/__tests__/schema-cache.test.d.ts +2 -0
- package/payload/platform/lib/graph-mcp/dist/__tests__/schema-cache.test.d.ts.map +1 -0
- package/payload/platform/lib/graph-mcp/dist/__tests__/schema-cache.test.js +163 -0
- package/payload/platform/lib/graph-mcp/dist/__tests__/schema-cache.test.js.map +1 -0
- package/payload/platform/lib/graph-mcp/dist/cypher-validate.d.ts +38 -0
- package/payload/platform/lib/graph-mcp/dist/cypher-validate.d.ts.map +1 -0
- package/payload/platform/lib/graph-mcp/dist/cypher-validate.js +130 -0
- package/payload/platform/lib/graph-mcp/dist/cypher-validate.js.map +1 -0
- package/payload/platform/lib/graph-mcp/dist/index.js +201 -45
- package/payload/platform/lib/graph-mcp/dist/index.js.map +1 -1
- package/payload/platform/lib/graph-mcp/dist/schema-cache.d.ts +78 -0
- package/payload/platform/lib/graph-mcp/dist/schema-cache.d.ts.map +1 -0
- package/payload/platform/lib/graph-mcp/dist/schema-cache.js +194 -0
- package/payload/platform/lib/graph-mcp/dist/schema-cache.js.map +1 -0
- package/payload/platform/lib/graph-mcp/src/__tests__/cypher-validate.test.ts +141 -0
- package/payload/platform/lib/graph-mcp/src/__tests__/schema-cache.test.ts +169 -0
- package/payload/platform/lib/graph-mcp/src/cypher-validate.ts +157 -0
- package/payload/platform/lib/graph-mcp/src/index.ts +247 -47
- package/payload/platform/lib/graph-mcp/src/schema-cache.ts +212 -0
- package/payload/platform/lib/graph-trash/dist/index.d.ts +8 -0
- package/payload/platform/lib/graph-trash/dist/index.d.ts.map +1 -1
- package/payload/platform/lib/graph-trash/dist/index.js +109 -14
- package/payload/platform/lib/graph-trash/dist/index.js.map +1 -1
- package/payload/platform/lib/graph-trash/src/index.ts +136 -21
- package/payload/platform/plugins/docs/references/memory-guide.md +5 -1
- package/payload/platform/plugins/docs/references/platform.md +1 -1
- package/payload/platform/plugins/docs/references/troubleshooting.md +18 -0
- package/payload/platform/plugins/memory/PLUGIN.md +1 -0
- package/payload/platform/plugins/memory/mcp/dist/index.js +54 -6
- package/payload/platform/plugins/memory/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/lib/filter-token.d.ts +36 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/filter-token.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/filter-token.js +86 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/filter-token.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-delete.d.ts +23 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-delete.d.ts.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-delete.js +47 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-delete.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-find-candidates.d.ts +58 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-find-candidates.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-find-candidates.js +125 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-find-candidates.js.map +1 -0
- package/payload/platform/templates/agents/admin/IDENTITY.md +16 -0
- package/payload/server/chunk-3RBKKDHC.js +783 -0
- package/payload/server/maxy-edge.js +11 -3
- package/payload/server/server.js +284 -112
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canAccessAdmin,
|
|
3
|
+
describeRemoteSession,
|
|
3
4
|
newCorrId,
|
|
5
|
+
parseCookieValue,
|
|
4
6
|
sanitizeClientCorrId,
|
|
5
7
|
vncLog
|
|
6
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3RBKKDHC.js";
|
|
7
9
|
|
|
8
10
|
// server/maxy-edge.ts
|
|
9
11
|
import { createServer, request as httpRequest } from "http";
|
|
@@ -61,15 +63,18 @@ function handleUpgrade(req, clientSocket, head, opts) {
|
|
|
61
63
|
const originHeader = headerString(req.headers.origin);
|
|
62
64
|
const remote = req.socket.remoteAddress;
|
|
63
65
|
const xff = headerString(req.headers["x-forwarded-for"]);
|
|
66
|
+
const cookieHeader = headerString(req.headers.cookie);
|
|
64
67
|
const decision = canAccessAdmin({
|
|
65
68
|
host: hostHeader,
|
|
66
69
|
remoteAddress: remote,
|
|
67
70
|
xForwardedFor: xff,
|
|
68
|
-
cookieHeader
|
|
71
|
+
cookieHeader,
|
|
69
72
|
isPublicHost: opts.isPublicHost
|
|
70
73
|
});
|
|
71
74
|
if (!decision.allow) {
|
|
72
75
|
const status = decision.reason === "public-host" ? 404 : 401;
|
|
76
|
+
const rawToken = parseCookieValue(cookieHeader, "__remote_session");
|
|
77
|
+
const tokenInfo = describeRemoteSession(rawToken);
|
|
73
78
|
vncLog("ws-upgrade", {
|
|
74
79
|
corrId,
|
|
75
80
|
clientCorrId: clientCorrId ?? null,
|
|
@@ -78,7 +83,10 @@ function handleUpgrade(req, clientSocket, head, opts) {
|
|
|
78
83
|
ip: remote,
|
|
79
84
|
xff: xff ?? null,
|
|
80
85
|
origin: originHeader ?? null,
|
|
81
|
-
host: hostHeader
|
|
86
|
+
host: hostHeader,
|
|
87
|
+
cookieHeaderPresent: cookieHeader != null && cookieHeader.length > 0,
|
|
88
|
+
tokenPresent: tokenInfo.present,
|
|
89
|
+
tokenExpired: tokenInfo.expired
|
|
82
90
|
});
|
|
83
91
|
writeStatusAndDestroy(clientSocket, status, decision.reason === "public-host" ? "Not Found" : "Unauthorized");
|
|
84
92
|
return;
|