@rubytech/create-maxy 1.0.889 → 1.0.891
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/package.json +2 -2
- package/payload/platform/plugins/admin/PLUGIN.md +8 -3
- package/payload/platform/plugins/admin/mcp/dist/__tests__/skill-load.test.d.ts +2 -0
- package/payload/platform/plugins/admin/mcp/dist/__tests__/skill-load.test.d.ts.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/__tests__/skill-load.test.js +88 -0
- package/payload/platform/plugins/admin/mcp/dist/__tests__/skill-load.test.js.map +1 -0
- package/payload/platform/plugins/admin/mcp/dist/index.js +62 -5
- package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/admin/mcp/dist/skill-resolution.d.ts +13 -0
- package/payload/platform/plugins/admin/mcp/dist/skill-resolution.d.ts.map +1 -1
- package/payload/platform/plugins/admin/mcp/dist/skill-resolution.js +14 -0
- package/payload/platform/plugins/admin/mcp/dist/skill-resolution.js.map +1 -1
- package/payload/platform/plugins/admin/skills/plugin-management/SKILL.md +1 -1
- package/payload/platform/plugins/docs/references/plugins-guide.md +1 -1
- package/payload/platform/plugins/docs/references/troubleshooting.md +6 -2
- package/payload/platform/plugins/memory/PLUGIN.md +1 -1
- package/payload/platform/scripts/check-skill-load-coverage.mjs +100 -0
- package/payload/platform/scripts/log-adherence-check.sh +28 -3
- package/payload/platform/scripts/logs-read.sh +108 -5
- package/payload/platform/templates/agents/admin/IDENTITY.md +10 -10
- package/payload/platform/templates/agents/public/IDENTITY.md +1 -1
- package/payload/platform/templates/specialists/agents/content-producer.md +2 -2
- package/payload/platform/templates/specialists/agents/database-operator.md +3 -3
- package/payload/platform/templates/specialists/agents/personal-assistant.md +2 -2
- package/payload/platform/templates/specialists/agents/project-manager.md +1 -1
- package/payload/platform/templates/specialists/agents/research-assistant.md +1 -1
- package/payload/server/chunk-FBTNBSB4.js +2282 -0
- package/payload/server/chunk-NZ6D7QJM.js +3571 -0
- package/payload/server/chunk-O7DTMDJM.js +759 -0
- package/payload/server/chunk-OD4LSAB2.js +9770 -0
- package/payload/server/chunk-RICR2PXW.js +9771 -0
- package/payload/server/chunk-TUCK5CI2.js +3566 -0
- package/payload/server/client-pool-E3OU5NYU.js +34 -0
- package/payload/server/client-pool-PG23WNFG.js +34 -0
- package/payload/server/cloudflare-task-tracker-KCIUQYB5.js +22 -0
- package/payload/server/maxy-edge.js +29 -5
- package/payload/server/public/assets/{admin-BN_z-2Bm.js → admin-BM3orGyK.js} +31 -31
- package/payload/server/public/index.html +1 -1
- package/payload/server/server.js +452 -314
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
_evictAllForTest,
|
|
3
|
+
_poolSnapshotForTest,
|
|
4
|
+
acquireClient,
|
|
5
|
+
acquireOneShotClient,
|
|
6
|
+
evictClient,
|
|
7
|
+
getActiveClient,
|
|
8
|
+
interruptClient,
|
|
9
|
+
pushUserMessage,
|
|
10
|
+
pushUserToolResult,
|
|
11
|
+
recordCachedTokens,
|
|
12
|
+
recordCrash,
|
|
13
|
+
setInflight,
|
|
14
|
+
startIdleEvictTick,
|
|
15
|
+
stopIdleEvictTick
|
|
16
|
+
} from "./chunk-TUCK5CI2.js";
|
|
17
|
+
import "./chunk-FBTNBSB4.js";
|
|
18
|
+
import "./chunk-JSBRDJBE.js";
|
|
19
|
+
export {
|
|
20
|
+
_evictAllForTest,
|
|
21
|
+
_poolSnapshotForTest,
|
|
22
|
+
acquireClient,
|
|
23
|
+
acquireOneShotClient,
|
|
24
|
+
evictClient,
|
|
25
|
+
getActiveClient,
|
|
26
|
+
interruptClient,
|
|
27
|
+
pushUserMessage,
|
|
28
|
+
pushUserToolResult,
|
|
29
|
+
recordCachedTokens,
|
|
30
|
+
recordCrash,
|
|
31
|
+
setInflight,
|
|
32
|
+
startIdleEvictTick,
|
|
33
|
+
stopIdleEvictTick
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
_evictAllForTest,
|
|
3
|
+
_poolSnapshotForTest,
|
|
4
|
+
acquireClient,
|
|
5
|
+
acquireOneShotClient,
|
|
6
|
+
evictClient,
|
|
7
|
+
getActiveClient,
|
|
8
|
+
interruptClient,
|
|
9
|
+
pushUserMessage,
|
|
10
|
+
pushUserToolResult,
|
|
11
|
+
recordCachedTokens,
|
|
12
|
+
recordCrash,
|
|
13
|
+
setInflight,
|
|
14
|
+
startIdleEvictTick,
|
|
15
|
+
stopIdleEvictTick
|
|
16
|
+
} from "./chunk-NZ6D7QJM.js";
|
|
17
|
+
import "./chunk-FBTNBSB4.js";
|
|
18
|
+
import "./chunk-JSBRDJBE.js";
|
|
19
|
+
export {
|
|
20
|
+
_evictAllForTest,
|
|
21
|
+
_poolSnapshotForTest,
|
|
22
|
+
acquireClient,
|
|
23
|
+
acquireOneShotClient,
|
|
24
|
+
evictClient,
|
|
25
|
+
getActiveClient,
|
|
26
|
+
interruptClient,
|
|
27
|
+
pushUserMessage,
|
|
28
|
+
pushUserToolResult,
|
|
29
|
+
recordCachedTokens,
|
|
30
|
+
recordCrash,
|
|
31
|
+
setInflight,
|
|
32
|
+
startIdleEvictTick,
|
|
33
|
+
stopIdleEvictTick
|
|
34
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CLOUDFLARE_TASK_DIAGNOSTICS,
|
|
3
|
+
appendCloudflareSteps,
|
|
4
|
+
completeCloudflareTask,
|
|
5
|
+
findMostRecentTerminalCloudflareTask,
|
|
6
|
+
openCloudflareTask,
|
|
7
|
+
readTunnelState,
|
|
8
|
+
recoverRunningCloudflareTasks,
|
|
9
|
+
resolveUnitGoneVerdict
|
|
10
|
+
} from "./chunk-O7DTMDJM.js";
|
|
11
|
+
import "./chunk-FBTNBSB4.js";
|
|
12
|
+
import "./chunk-JSBRDJBE.js";
|
|
13
|
+
export {
|
|
14
|
+
CLOUDFLARE_TASK_DIAGNOSTICS,
|
|
15
|
+
appendCloudflareSteps,
|
|
16
|
+
completeCloudflareTask,
|
|
17
|
+
findMostRecentTerminalCloudflareTask,
|
|
18
|
+
openCloudflareTask,
|
|
19
|
+
readTunnelState,
|
|
20
|
+
recoverRunningCloudflareTasks,
|
|
21
|
+
resolveUnitGoneVerdict
|
|
22
|
+
};
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
streamActionEvents,
|
|
17
17
|
vncLog,
|
|
18
18
|
websockifyLog
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RICR2PXW.js";
|
|
20
20
|
import {
|
|
21
21
|
LOG_DIR,
|
|
22
22
|
WEBSOCKIFY_PORT
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-NZ6D7QJM.js";
|
|
24
|
+
import "./chunk-O7DTMDJM.js";
|
|
25
|
+
import "./chunk-FBTNBSB4.js";
|
|
26
26
|
import "./chunk-JSBRDJBE.js";
|
|
27
27
|
|
|
28
28
|
// server/edge.ts
|
|
@@ -688,9 +688,12 @@ function createEdgeAdminApp(opts) {
|
|
|
688
688
|
app6.use("*", clientIpMiddleware);
|
|
689
689
|
app6.use("*", async (c, next) => {
|
|
690
690
|
const start = Date.now();
|
|
691
|
+
console.log(
|
|
692
|
+
`[edge-admin] inbound method=${c.req.method} path=${c.req.path} allowlist-branch=edge-admin`
|
|
693
|
+
);
|
|
691
694
|
await next();
|
|
692
695
|
console.log(
|
|
693
|
-
`[edge-admin] method=${c.req.method} path=${c.req.path} status=${c.res.status} duration_ms=${Date.now() - start}`
|
|
696
|
+
`[edge-admin] outcome method=${c.req.method} path=${c.req.path} status=${c.res.status} duration_ms=${Date.now() - start}`
|
|
694
697
|
);
|
|
695
698
|
});
|
|
696
699
|
app6.use("*", requireAdminCookie(opts.isPublicHost));
|
|
@@ -869,6 +872,11 @@ var HOP_BY_HOP2 = /* @__PURE__ */ new Set([
|
|
|
869
872
|
"transfer-encoding",
|
|
870
873
|
"upgrade"
|
|
871
874
|
]);
|
|
875
|
+
function isAdminProxyPath(url) {
|
|
876
|
+
const q = url.indexOf("?");
|
|
877
|
+
const pathname = q === -1 ? url : url.slice(0, q);
|
|
878
|
+
return pathname.startsWith("/api/admin/");
|
|
879
|
+
}
|
|
872
880
|
function forwardHttp(clientReq, clientRes) {
|
|
873
881
|
const headers = {};
|
|
874
882
|
for (const [name, value] of Object.entries(clientReq.headers)) {
|
|
@@ -879,6 +887,22 @@ function forwardHttp(clientReq, clientRes) {
|
|
|
879
887
|
const existingXff = headers["x-forwarded-for"];
|
|
880
888
|
const remote = clientReq.socket.remoteAddress ?? "";
|
|
881
889
|
headers["x-forwarded-for"] = existingXff ? Array.isArray(existingXff) ? [...existingXff, remote].join(", ") : `${existingXff}, ${remote}` : remote;
|
|
890
|
+
const reqUrl = clientReq.url ?? "";
|
|
891
|
+
const logIngress = isAdminProxyPath(reqUrl);
|
|
892
|
+
const ingressStart = Date.now();
|
|
893
|
+
if (logIngress) {
|
|
894
|
+
const cookieHeader = String(clientReq.headers.cookie ?? "");
|
|
895
|
+
const hasRemoteSession = /(?:^|;\s*)__remote_session=/.test(cookieHeader);
|
|
896
|
+
console.log(
|
|
897
|
+
`[edge-admin] inbound method=${clientReq.method} path=${reqUrl} token=${hasRemoteSession ? "present" : "absent"} allowlist-branch=passthrough`
|
|
898
|
+
);
|
|
899
|
+
clientRes.on("close", () => {
|
|
900
|
+
const status = clientRes.headersSent ? clientRes.statusCode : "aborted";
|
|
901
|
+
console.log(
|
|
902
|
+
`[edge-admin] outcome method=${clientReq.method} path=${reqUrl} status=${status} duration_ms=${Date.now() - ingressStart}`
|
|
903
|
+
);
|
|
904
|
+
});
|
|
905
|
+
}
|
|
882
906
|
const upstream = httpRequest({
|
|
883
907
|
host: UPSTREAM_HOST,
|
|
884
908
|
port: UPSTREAM_PORT,
|