@rubytech/create-maxy 1.0.702 → 1.0.704
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/uninstall.js +24 -15
- package/package.json +1 -1
- package/payload/platform/config/brand.json +1 -1
- package/payload/platform/package-lock.json +67 -249
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.d.ts +1 -0
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.d.ts.map +1 -1
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.js +11 -3
- package/payload/platform/plugins/admin/mcp/dist/lib/onboarding.js.map +1 -1
- package/payload/platform/plugins/admin/skills/business-profile/SKILL.md +13 -1
- package/payload/platform/plugins/admin/skills/onboarding/SKILL.md +19 -6
- package/payload/platform/plugins/docs/references/internals.md +2 -0
- package/payload/platform/plugins/docs/references/platform.md +2 -1
- package/payload/platform/plugins/docs/references/plugins-guide.md +1 -0
- package/payload/platform/plugins/linkedin-import/PLUGIN.md +26 -0
- package/payload/platform/plugins/linkedin-import/skills/linkedin-import/SKILL.md +119 -0
- package/payload/platform/plugins/linkedin-import/skills/linkedin-import/references/connections.md +162 -0
- package/payload/platform/plugins/linkedin-import/skills/linkedin-import/references/profile.md +102 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/graph-write-gate.d.ts +21 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/graph-write-gate.d.ts.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/graph-write-gate.js +50 -0
- package/payload/platform/plugins/memory/mcp/dist/lib/graph-write-gate.js.map +1 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-update.d.ts.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-update.js +15 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-update.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.d.ts.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.js +11 -0
- package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.js.map +1 -1
- package/payload/platform/templates/agents/admin/IDENTITY.md +5 -3
- package/payload/platform/templates/specialists/agents/database-operator.md +113 -0
- package/payload/server/{chunk-O2FWENOD.js → chunk-UFLV7I6N.js} +181 -33
- package/payload/server/maxy-edge.js +1 -1
- package/payload/server/public/assets/{Checkbox-C24zNZ3g.js → Checkbox-CDUmQ1Bu.js} +1 -1
- package/payload/server/public/assets/{admin-DQS9d7gx.js → admin-picYWZfn.js} +2 -2
- package/payload/server/public/assets/{data-lJ2vb2jV.js → data-yYbcrFrc.js} +1 -1
- package/payload/server/public/assets/{file-16btGXA4.js → file-CzLc4Rvq.js} +1 -1
- package/payload/server/public/assets/{graph-gsP1la3h.js → graph-BRzC0ZtS.js} +1 -1
- package/payload/server/public/assets/{house-DJ35FtjK.js → house-lM4gLKkH.js} +1 -1
- package/payload/server/public/assets/jsx-runtime-I6ZqIGn8.css +1 -0
- package/payload/server/public/assets/{public-D8whQhxR.js → public-scZadgzt.js} +1 -1
- package/payload/server/public/assets/{share-2-C-ICFdTB.js → share-2-CNdrRWue.js} +1 -1
- package/payload/server/public/assets/{useVoiceRecorder-xTGR1bpD.js → useVoiceRecorder-D2kfoqVB.js} +1 -1
- package/payload/server/public/assets/{x-BrDQr7Iy.js → x-CsDhB6Vr.js} +1 -1
- package/payload/server/public/data.html +6 -6
- package/payload/server/public/graph.html +7 -7
- package/payload/server/public/index.html +8 -8
- package/payload/server/public/public.html +5 -5
- package/payload/server/server.js +90 -45
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/index.d.ts +0 -2
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/index.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/index.js +0 -293
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/index.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/lib/crypto.d.ts +0 -10
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/lib/crypto.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/lib/crypto.js +0 -88
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/lib/crypto.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/lib/loop-api.d.ts +0 -80
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/lib/loop-api.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/lib/loop-api.js +0 -355
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/lib/loop-api.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/lib/neo4j.d.ts +0 -5
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/lib/neo4j.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/lib/neo4j.js +0 -34
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/lib/neo4j.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/customer-preferences.d.ts +0 -10
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/customer-preferences.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/customer-preferences.js +0 -24
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/customer-preferences.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/feedback-list.d.ts +0 -6
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/feedback-list.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/feedback-list.js +0 -18
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/feedback-list.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/feedback.d.ts +0 -16
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/feedback.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/feedback.js +0 -35
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/feedback.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/key-deregister.d.ts +0 -5
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/key-deregister.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/key-deregister.js +0 -19
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/key-deregister.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/key-list.d.ts +0 -4
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/key-list.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/key-list.js +0 -14
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/key-list.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/key-register.d.ts +0 -9
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/key-register.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/key-register.js +0 -60
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/key-register.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-enquiry.d.ts +0 -13
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-enquiry.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-enquiry.js +0 -41
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-enquiry.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-match-batch.d.ts +0 -9
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-match-batch.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-match-batch.js +0 -16
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-match-batch.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-match-request.d.ts +0 -15
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-match-request.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-match-request.js +0 -11
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-match-request.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-match.d.ts +0 -10
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-match.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-match.js +0 -39
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/marketing-match.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/people-detail.d.ts +0 -9
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/people-detail.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/people-detail.js +0 -125
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/people-detail.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/people-list.d.ts +0 -7
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/people-list.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/people-list.js +0 -16
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/people-list.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/people-search.d.ts +0 -18
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/people-search.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/people-search.js +0 -87
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/people-search.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/properties-list.d.ts +0 -7
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/properties-list.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/properties-list.js +0 -19
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/properties-list.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-detail.d.ts +0 -10
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-detail.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-detail.js +0 -82
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-detail.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-listed.d.ts +0 -12
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-listed.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-listed.js +0 -32
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-listed.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-request.d.ts +0 -15
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-request.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-request.js +0 -11
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-request.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-search.d.ts +0 -16
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-search.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-search.js +0 -41
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/property-search.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/supplier.d.ts +0 -13
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/supplier.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/supplier.js +0 -49
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/supplier.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/team-availability.d.ts +0 -7
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/team-availability.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/team-availability.js +0 -19
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/team-availability.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/team-info.d.ts +0 -5
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/team-info.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/team-info.js +0 -32
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/team-info.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-create.d.ts +0 -14
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-create.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-create.js +0 -11
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-create.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-detail.d.ts +0 -9
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-detail.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-detail.js +0 -85
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-detail.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-search.d.ts +0 -13
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-search.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-search.js +0 -44
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-search.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-update.d.ts +0 -14
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-update.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-update.js +0 -18
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewing-update.js.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewings-list.d.ts +0 -9
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewings-list.d.ts.map +0 -1
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewings-list.js +0 -25
- package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/tools/viewings-list.js.map +0 -1
- package/payload/server/chunk-32ZHQJNX.js +0 -11395
- package/payload/server/chunk-3RBKKDHC.js +0 -783
- package/payload/server/chunk-3VVHVJK2.js +0 -11405
- package/payload/server/chunk-5YIXIF6C.js +0 -726
- package/payload/server/chunk-B54KBAK4.js +0 -72
- package/payload/server/chunk-IAIGB5WN.js +0 -11406
- package/payload/server/chunk-Q6NDXCM6.js +0 -11448
- package/payload/server/chunk-U3W5YIXU.js +0 -11450
- package/payload/server/chunk-ZL2A4ROK.js +0 -11416
- package/payload/server/public/assets/jsx-runtime-n7GjUxnC.css +0 -1
- package/payload/server/upgrade-progress-server.js +0 -83
- /package/payload/server/public/assets/{jsx-runtime-CHagz7cd.js → jsx-runtime-BK2hplUC.js} +0 -0
package/payload/server/server.js
CHANGED
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
vncLog,
|
|
98
98
|
waitForExit,
|
|
99
99
|
writeChromiumWrapper
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-UFLV7I6N.js";
|
|
101
101
|
|
|
102
102
|
// ../lib/graph-trash/dist/index.js
|
|
103
103
|
var require_dist = __commonJS({
|
|
@@ -596,8 +596,8 @@ var serveStatic = (options = { root: "" }) => {
|
|
|
596
596
|
};
|
|
597
597
|
|
|
598
598
|
// server/index.ts
|
|
599
|
-
import { readFileSync as readFileSync17, existsSync as
|
|
600
|
-
import { resolve as resolve21, join as
|
|
599
|
+
import { readFileSync as readFileSync17, existsSync as existsSync19, watchFile } from "fs";
|
|
600
|
+
import { resolve as resolve21, join as join10, basename as basename7 } from "path";
|
|
601
601
|
import { homedir as homedir2 } from "os";
|
|
602
602
|
|
|
603
603
|
// app/lib/agent-slug-pattern.ts
|
|
@@ -7502,7 +7502,7 @@ app8.post("/skip", async (c) => {
|
|
|
7502
7502
|
body = await c.req.json();
|
|
7503
7503
|
} catch {
|
|
7504
7504
|
}
|
|
7505
|
-
const targetStep = body.minimal === true ?
|
|
7505
|
+
const targetStep = body.minimal === true ? 9 : 6;
|
|
7506
7506
|
const account = resolveAccount();
|
|
7507
7507
|
if (!account) {
|
|
7508
7508
|
console.error("[onboarding-skip] no account found");
|
|
@@ -7539,7 +7539,8 @@ app8.post("/skip", async (c) => {
|
|
|
7539
7539
|
o.step3CompletedAt = $now, o.step4CompletedAt = $now,
|
|
7540
7540
|
o.step5CompletedAt = $now, o.step6CompletedAt = $now,
|
|
7541
7541
|
o.step7CompletedAt = CASE WHEN $targetStep >= 7 THEN $now ELSE null END,
|
|
7542
|
-
o.step8CompletedAt = CASE WHEN $targetStep >= 8 THEN $now ELSE null END
|
|
7542
|
+
o.step8CompletedAt = CASE WHEN $targetStep >= 8 THEN $now ELSE null END,
|
|
7543
|
+
o.step9CompletedAt = CASE WHEN $targetStep >= 9 THEN $now ELSE null END
|
|
7543
7544
|
ON MATCH SET o.currentStep = CASE WHEN $targetStep > o.currentStep THEN $targetStep ELSE o.currentStep END,
|
|
7544
7545
|
o.updatedAt = $now,
|
|
7545
7546
|
o.step1CompletedAt = CASE WHEN o.step1CompletedAt IS NULL THEN $now ELSE o.step1CompletedAt END,
|
|
@@ -7549,7 +7550,8 @@ app8.post("/skip", async (c) => {
|
|
|
7549
7550
|
o.step5CompletedAt = CASE WHEN o.step5CompletedAt IS NULL THEN $now ELSE o.step5CompletedAt END,
|
|
7550
7551
|
o.step6CompletedAt = CASE WHEN o.step6CompletedAt IS NULL THEN $now ELSE o.step6CompletedAt END,
|
|
7551
7552
|
o.step7CompletedAt = CASE WHEN $targetStep >= 7 AND o.step7CompletedAt IS NULL THEN $now ELSE o.step7CompletedAt END,
|
|
7552
|
-
o.step8CompletedAt = CASE WHEN $targetStep >= 8 AND o.step8CompletedAt IS NULL THEN $now ELSE o.step8CompletedAt END
|
|
7553
|
+
o.step8CompletedAt = CASE WHEN $targetStep >= 8 AND o.step8CompletedAt IS NULL THEN $now ELSE o.step8CompletedAt END,
|
|
7554
|
+
o.step9CompletedAt = CASE WHEN $targetStep >= 9 AND o.step9CompletedAt IS NULL THEN $now ELSE o.step9CompletedAt END`,
|
|
7553
7555
|
{ accountId, now, targetStep }
|
|
7554
7556
|
);
|
|
7555
7557
|
console.log(`[onboarding-skip] accountId=${accountId.slice(0, 8)}\u2026 currentStep=${targetStep} mode=${body.minimal ? "minimal" : "default"}`);
|
|
@@ -7721,7 +7723,7 @@ async function createAdminSession(accountId, thinkingView, userId, userName) {
|
|
|
7721
7723
|
let onboardingComplete = true;
|
|
7722
7724
|
try {
|
|
7723
7725
|
const step = await loadOnboardingStep(accountId);
|
|
7724
|
-
onboardingComplete = step === null || step >=
|
|
7726
|
+
onboardingComplete = step === null || step >= 9;
|
|
7725
7727
|
} catch (err) {
|
|
7726
7728
|
console.error(`[session] onboarding query failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
7727
7729
|
}
|
|
@@ -7758,7 +7760,7 @@ app10.get("/", async (c) => {
|
|
|
7758
7760
|
let onboardingComplete = true;
|
|
7759
7761
|
try {
|
|
7760
7762
|
const step = await loadOnboardingStep(accountId);
|
|
7761
|
-
onboardingComplete = step === null || step >=
|
|
7763
|
+
onboardingComplete = step === null || step >= 9;
|
|
7762
7764
|
} catch (err) {
|
|
7763
7765
|
console.error(`[session] restore onboarding query failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
7764
7766
|
}
|
|
@@ -8405,8 +8407,17 @@ app12.post("/", requireAdminSession, async (c) => {
|
|
|
8405
8407
|
var compact_default = app12;
|
|
8406
8408
|
|
|
8407
8409
|
// server/routes/admin/logs.ts
|
|
8408
|
-
import { existsSync as
|
|
8410
|
+
import { existsSync as existsSync15, readdirSync as readdirSync3, readFileSync as readFileSync12, statSync as statSync7 } from "fs";
|
|
8409
8411
|
import { resolve as resolve13, basename as basename5 } from "path";
|
|
8412
|
+
|
|
8413
|
+
// app/lib/logs-read-resolve.ts
|
|
8414
|
+
import { existsSync as existsSync14 } from "fs";
|
|
8415
|
+
import { join as join8 } from "path";
|
|
8416
|
+
function preflushSliceOf(id) {
|
|
8417
|
+
return `preflush-${id.slice(0, 12)}`;
|
|
8418
|
+
}
|
|
8419
|
+
|
|
8420
|
+
// server/routes/admin/logs.ts
|
|
8410
8421
|
var TAIL_BYTES = 8192;
|
|
8411
8422
|
var app13 = new Hono();
|
|
8412
8423
|
app13.get("/", async (c) => {
|
|
@@ -8475,13 +8486,47 @@ app13.get("/", async (c) => {
|
|
|
8475
8486
|
console.debug(`[admin/logs] miss dir=${dir} name=${fileName} reason=${reason}`);
|
|
8476
8487
|
}
|
|
8477
8488
|
}
|
|
8478
|
-
|
|
8489
|
+
let sessionKey = null;
|
|
8490
|
+
const neoSession = getSession();
|
|
8491
|
+
try {
|
|
8492
|
+
const result = await neoSession.run(
|
|
8493
|
+
`MATCH (c:Conversation {conversationId: $conversationId})
|
|
8494
|
+
RETURN c.sessionKey AS sessionKey LIMIT 1`,
|
|
8495
|
+
{ conversationId: conversationIdParam }
|
|
8496
|
+
);
|
|
8497
|
+
const sk = result.records[0]?.get("sessionKey");
|
|
8498
|
+
if (typeof sk === "string" && sk.length > 0) sessionKey = sk;
|
|
8499
|
+
} catch (err) {
|
|
8500
|
+
const reason = err instanceof Error ? err.message : String(err);
|
|
8501
|
+
console.warn(`[admin/logs] fallback-preflush-neo4j-error conversationId=${conversationIdParam} reason=${reason}`);
|
|
8502
|
+
} finally {
|
|
8503
|
+
await neoSession.close();
|
|
8504
|
+
}
|
|
8505
|
+
if (sessionKey) {
|
|
8506
|
+
const preflushFileName = `${prefix}-${preflushSliceOf(sessionKey)}.log`;
|
|
8507
|
+
for (const dir of [accountLogDir2, LOG_DIR]) {
|
|
8508
|
+
if (!dir) continue;
|
|
8509
|
+
const preflushPath = resolve13(dir, preflushFileName);
|
|
8510
|
+
if (!existsSync15(preflushPath)) continue;
|
|
8511
|
+
try {
|
|
8512
|
+
const content = readFileSync12(preflushPath, "utf-8");
|
|
8513
|
+
console.info(`[admin/logs] fallback-preflush matched=${preflushPath} conversationId=${conversationIdParam} sessionKey=${sessionKey.slice(0, 12)}`);
|
|
8514
|
+
const headers = { "Content-Type": "text/plain; charset=utf-8" };
|
|
8515
|
+
if (download) headers["Content-Disposition"] = `attachment; filename="${preflushFileName}"`;
|
|
8516
|
+
return new Response(content, { headers });
|
|
8517
|
+
} catch (err) {
|
|
8518
|
+
const reason = err instanceof Error ? err.message : String(err);
|
|
8519
|
+
console.debug(`[admin/logs] miss dir=${dir} name=${preflushFileName} reason=${reason}`);
|
|
8520
|
+
}
|
|
8521
|
+
}
|
|
8522
|
+
}
|
|
8523
|
+
console.warn(`[admin/logs] not-found name=${fileName} searched=[${searched.join(",")}] preflushSessionKey=${sessionKey ? sessionKey.slice(0, 12) : "none"}`);
|
|
8479
8524
|
return c.json({ error: `Log not found: ${fileName}`, code: "NOT_FOUND" }, 404);
|
|
8480
8525
|
}
|
|
8481
8526
|
const seen = /* @__PURE__ */ new Set();
|
|
8482
8527
|
const logs = {};
|
|
8483
8528
|
for (const dir of [accountLogDir2, LOG_DIR]) {
|
|
8484
|
-
if (!dir || !
|
|
8529
|
+
if (!dir || !existsSync15(dir)) continue;
|
|
8485
8530
|
let files;
|
|
8486
8531
|
try {
|
|
8487
8532
|
files = readdirSync3(dir).filter((f) => f.endsWith(".log"));
|
|
@@ -8533,7 +8578,7 @@ var claude_info_default = app14;
|
|
|
8533
8578
|
|
|
8534
8579
|
// server/routes/admin/attachment.ts
|
|
8535
8580
|
import { readFile as readFile3, readdir } from "fs/promises";
|
|
8536
|
-
import { existsSync as
|
|
8581
|
+
import { existsSync as existsSync16 } from "fs";
|
|
8537
8582
|
import { resolve as resolve14 } from "path";
|
|
8538
8583
|
var app15 = new Hono();
|
|
8539
8584
|
app15.get("/:attachmentId", requireAdminSession, async (c) => {
|
|
@@ -8547,11 +8592,11 @@ app15.get("/:attachmentId", requireAdminSession, async (c) => {
|
|
|
8547
8592
|
return new Response("Not found", { status: 404 });
|
|
8548
8593
|
}
|
|
8549
8594
|
const dir = resolve14(ATTACHMENTS_ROOT, accountId, attachmentId);
|
|
8550
|
-
if (!
|
|
8595
|
+
if (!existsSync16(dir)) {
|
|
8551
8596
|
return new Response("Not found", { status: 404 });
|
|
8552
8597
|
}
|
|
8553
8598
|
const metaPath = resolve14(dir, `${attachmentId}.meta.json`);
|
|
8554
|
-
if (!
|
|
8599
|
+
if (!existsSync16(metaPath)) {
|
|
8555
8600
|
return new Response("Not found", { status: 404 });
|
|
8556
8601
|
}
|
|
8557
8602
|
let meta;
|
|
@@ -8612,13 +8657,13 @@ var account_default = app16;
|
|
|
8612
8657
|
|
|
8613
8658
|
// server/routes/admin/agents.ts
|
|
8614
8659
|
import { resolve as resolve16 } from "path";
|
|
8615
|
-
import { readdirSync as readdirSync4, readFileSync as readFileSync14, existsSync as
|
|
8660
|
+
import { readdirSync as readdirSync4, readFileSync as readFileSync14, existsSync as existsSync17, rmSync } from "fs";
|
|
8616
8661
|
var app17 = new Hono();
|
|
8617
8662
|
app17.get("/", (c) => {
|
|
8618
8663
|
const account = resolveAccount();
|
|
8619
8664
|
if (!account) return c.json({ agents: [] });
|
|
8620
8665
|
const agentsDir = resolve16(account.accountDir, "agents");
|
|
8621
|
-
if (!
|
|
8666
|
+
if (!existsSync17(agentsDir)) return c.json({ agents: [] });
|
|
8622
8667
|
const agents = [];
|
|
8623
8668
|
try {
|
|
8624
8669
|
const entries = readdirSync4(agentsDir, { withFileTypes: true });
|
|
@@ -8626,7 +8671,7 @@ app17.get("/", (c) => {
|
|
|
8626
8671
|
if (!entry.isDirectory()) continue;
|
|
8627
8672
|
if (entry.name === "admin") continue;
|
|
8628
8673
|
const configPath2 = resolve16(agentsDir, entry.name, "config.json");
|
|
8629
|
-
if (!
|
|
8674
|
+
if (!existsSync17(configPath2)) continue;
|
|
8630
8675
|
try {
|
|
8631
8676
|
const config = JSON.parse(readFileSync14(configPath2, "utf-8"));
|
|
8632
8677
|
agents.push({
|
|
@@ -8655,7 +8700,7 @@ app17.delete("/:slug", (c) => {
|
|
|
8655
8700
|
return c.json({ error: "Invalid agent slug" }, 400);
|
|
8656
8701
|
}
|
|
8657
8702
|
const agentDir = resolve16(account.accountDir, "agents", slug);
|
|
8658
|
-
if (!
|
|
8703
|
+
if (!existsSync17(agentDir)) {
|
|
8659
8704
|
return c.json({ error: "Agent not found" }, 404);
|
|
8660
8705
|
}
|
|
8661
8706
|
try {
|
|
@@ -9049,12 +9094,12 @@ function isValidDomain(value) {
|
|
|
9049
9094
|
}
|
|
9050
9095
|
|
|
9051
9096
|
// app/lib/alias-domains.ts
|
|
9052
|
-
import { existsSync as
|
|
9097
|
+
import { existsSync as existsSync18, mkdirSync as mkdirSync8, readFileSync as readFileSync15, writeFileSync as writeFileSync9 } from "fs";
|
|
9053
9098
|
import { dirname as dirname7 } from "path";
|
|
9054
9099
|
import { resolve as resolve17 } from "path";
|
|
9055
9100
|
var ALIAS_DOMAINS_PATH = resolve17(MAXY_DIR, "alias-domains.json");
|
|
9056
9101
|
function readExisting() {
|
|
9057
|
-
if (!
|
|
9102
|
+
if (!existsSync18(ALIAS_DOMAINS_PATH)) return /* @__PURE__ */ new Set();
|
|
9058
9103
|
try {
|
|
9059
9104
|
const parsed = JSON.parse(readFileSync15(ALIAS_DOMAINS_PATH, "utf-8"));
|
|
9060
9105
|
if (!Array.isArray(parsed)) return /* @__PURE__ */ new Set();
|
|
@@ -9372,7 +9417,7 @@ var cloudflare_default = app22;
|
|
|
9372
9417
|
import { createReadStream as createReadStream3 } from "fs";
|
|
9373
9418
|
import { readdir as readdir2, readFile as readFile4, stat as stat4, mkdir as mkdir3, writeFile as writeFile4, unlink as unlink2 } from "fs/promises";
|
|
9374
9419
|
import { realpathSync as realpathSync4 } from "fs";
|
|
9375
|
-
import { basename as basename6, dirname as dirname8, join as
|
|
9420
|
+
import { basename as basename6, dirname as dirname8, join as join9, resolve as resolve20, sep as sep2 } from "path";
|
|
9376
9421
|
import { Readable as Readable2 } from "stream";
|
|
9377
9422
|
|
|
9378
9423
|
// app/lib/data-path.ts
|
|
@@ -9730,7 +9775,7 @@ async function cascadeDeleteDocument(params) {
|
|
|
9730
9775
|
var UUID_RE3 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
9731
9776
|
async function readMeta(absDir, baseName) {
|
|
9732
9777
|
try {
|
|
9733
|
-
const raw = await readFile4(
|
|
9778
|
+
const raw = await readFile4(join9(absDir, `${baseName}.meta.json`), "utf8");
|
|
9734
9779
|
const parsed = JSON.parse(raw);
|
|
9735
9780
|
if (typeof parsed?.filename === "string") {
|
|
9736
9781
|
return { filename: parsed.filename, mimeType: typeof parsed.mimeType === "string" ? parsed.mimeType : void 0 };
|
|
@@ -9768,7 +9813,7 @@ async function readAccountNames() {
|
|
|
9768
9813
|
}
|
|
9769
9814
|
async function enrich(absolute, entry, accountNames) {
|
|
9770
9815
|
if (entry.kind === "directory" && UUID_RE3.test(entry.name)) {
|
|
9771
|
-
const meta = await readMeta(
|
|
9816
|
+
const meta = await readMeta(join9(absolute, entry.name), entry.name);
|
|
9772
9817
|
if (meta?.filename) {
|
|
9773
9818
|
entry.displayName = meta.filename;
|
|
9774
9819
|
entry.mimeType = meta.mimeType;
|
|
@@ -9827,7 +9872,7 @@ app23.get("/", requireAdminSession, async (c) => {
|
|
|
9827
9872
|
continue;
|
|
9828
9873
|
}
|
|
9829
9874
|
try {
|
|
9830
|
-
const entryPath =
|
|
9875
|
+
const entryPath = join9(absolute, name);
|
|
9831
9876
|
const s = await stat4(entryPath);
|
|
9832
9877
|
entries.push({
|
|
9833
9878
|
name,
|
|
@@ -10000,7 +10045,7 @@ app23.delete("/", requireAdminSession, async (c) => {
|
|
|
10000
10045
|
}
|
|
10001
10046
|
const dot = base.lastIndexOf(".");
|
|
10002
10047
|
const stem = dot === -1 ? base : base.slice(0, dot);
|
|
10003
|
-
const sidecarPath = UUID_RE3.test(stem) && base !== `${stem}.meta.json` ?
|
|
10048
|
+
const sidecarPath = UUID_RE3.test(stem) && base !== `${stem}.meta.json` ? join9(dirname8(absolute), `${stem}.meta.json`) : null;
|
|
10004
10049
|
await unlink2(absolute);
|
|
10005
10050
|
if (sidecarPath) {
|
|
10006
10051
|
try {
|
|
@@ -11301,12 +11346,12 @@ function clientFrom(c) {
|
|
|
11301
11346
|
);
|
|
11302
11347
|
}
|
|
11303
11348
|
var PLATFORM_ROOT6 = process.env.MAXY_PLATFORM_ROOT || "";
|
|
11304
|
-
var BRAND_JSON_PATH = PLATFORM_ROOT6 ?
|
|
11349
|
+
var BRAND_JSON_PATH = PLATFORM_ROOT6 ? join10(PLATFORM_ROOT6, "config", "brand.json") : "";
|
|
11305
11350
|
var BRAND = { productName: "Maxy", hostname: "maxy", configDir: ".maxy", domain: "getmaxy.com" };
|
|
11306
|
-
if (BRAND_JSON_PATH && !
|
|
11351
|
+
if (BRAND_JSON_PATH && !existsSync19(BRAND_JSON_PATH)) {
|
|
11307
11352
|
console.error(`[brand] WARNING: brand.json not found at ${BRAND_JSON_PATH} \u2014 using Maxy defaults`);
|
|
11308
11353
|
}
|
|
11309
|
-
if (BRAND_JSON_PATH &&
|
|
11354
|
+
if (BRAND_JSON_PATH && existsSync19(BRAND_JSON_PATH)) {
|
|
11310
11355
|
try {
|
|
11311
11356
|
const parsed = JSON.parse(readFileSync17(BRAND_JSON_PATH, "utf-8"));
|
|
11312
11357
|
BRAND = { ...BRAND, ...parsed };
|
|
@@ -11327,10 +11372,10 @@ var brandLoginOpts = {
|
|
|
11327
11372
|
bodyFont: BRAND.defaultFonts?.body,
|
|
11328
11373
|
logoContainsName: !!BRAND.logoContainsName
|
|
11329
11374
|
};
|
|
11330
|
-
var ALIAS_DOMAINS_PATH2 =
|
|
11375
|
+
var ALIAS_DOMAINS_PATH2 = join10(homedir2(), BRAND.configDir, "alias-domains.json");
|
|
11331
11376
|
function loadAliasDomains() {
|
|
11332
11377
|
try {
|
|
11333
|
-
if (!
|
|
11378
|
+
if (!existsSync19(ALIAS_DOMAINS_PATH2)) return null;
|
|
11334
11379
|
const parsed = JSON.parse(readFileSync17(ALIAS_DOMAINS_PATH2, "utf-8"));
|
|
11335
11380
|
if (!Array.isArray(parsed)) {
|
|
11336
11381
|
console.error("[alias-domains] malformed alias-domains.json \u2014 expected array");
|
|
@@ -11676,7 +11721,7 @@ app33.get("/agent-assets/:slug/:filename", (c) => {
|
|
|
11676
11721
|
console.error(`[agent-assets] path-traversal-rejected slug=${slug} file=${filename}`);
|
|
11677
11722
|
return c.text("Forbidden", 403);
|
|
11678
11723
|
}
|
|
11679
|
-
if (!
|
|
11724
|
+
if (!existsSync19(filePath)) {
|
|
11680
11725
|
console.error(`[agent-assets] serve slug=${slug} file=${filename} status=404`);
|
|
11681
11726
|
return c.text("Not found", 404);
|
|
11682
11727
|
}
|
|
@@ -11706,7 +11751,7 @@ app33.get("/generated/:filename", (c) => {
|
|
|
11706
11751
|
console.error(`[generated] serve file=${filename} status=403`);
|
|
11707
11752
|
return c.text("Forbidden", 403);
|
|
11708
11753
|
}
|
|
11709
|
-
if (!
|
|
11754
|
+
if (!existsSync19(filePath)) {
|
|
11710
11755
|
console.error(`[generated] serve file=${filename} status=404`);
|
|
11711
11756
|
return c.text("Not found", 404);
|
|
11712
11757
|
}
|
|
@@ -11722,7 +11767,7 @@ app33.get("/generated/:filename", (c) => {
|
|
|
11722
11767
|
var htmlCache = /* @__PURE__ */ new Map();
|
|
11723
11768
|
var brandLogoPath = "/brand/maxy-monochrome.png";
|
|
11724
11769
|
var brandIconPath = "/brand/maxy-monochrome.png";
|
|
11725
|
-
if (BRAND_JSON_PATH &&
|
|
11770
|
+
if (BRAND_JSON_PATH && existsSync19(BRAND_JSON_PATH)) {
|
|
11726
11771
|
try {
|
|
11727
11772
|
const fullBrand = JSON.parse(readFileSync17(BRAND_JSON_PATH, "utf-8"));
|
|
11728
11773
|
if (fullBrand.assets?.logo) brandLogoPath = `/brand/${fullBrand.assets.logo}`;
|
|
@@ -11741,8 +11786,8 @@ var brandScript = `<script>window.__BRAND__=${JSON.stringify({
|
|
|
11741
11786
|
function readInstalledVersion() {
|
|
11742
11787
|
try {
|
|
11743
11788
|
if (!PLATFORM_ROOT6) return "unknown";
|
|
11744
|
-
const versionFile =
|
|
11745
|
-
if (!
|
|
11789
|
+
const versionFile = join10(PLATFORM_ROOT6, "config", `.${BRAND.hostname}-version`);
|
|
11790
|
+
if (!existsSync19(versionFile)) return "unknown";
|
|
11746
11791
|
const content = readFileSync17(versionFile, "utf-8").trim();
|
|
11747
11792
|
return content || "unknown";
|
|
11748
11793
|
} catch {
|
|
@@ -11799,15 +11844,15 @@ ${clientErrorReporterScript}
|
|
|
11799
11844
|
}
|
|
11800
11845
|
var brandedHtmlCache = /* @__PURE__ */ new Map();
|
|
11801
11846
|
function loadBrandingCache(agentSlug) {
|
|
11802
|
-
const configDir2 =
|
|
11847
|
+
const configDir2 = join10(homedir2(), BRAND.configDir);
|
|
11803
11848
|
try {
|
|
11804
|
-
const accountJsonPath =
|
|
11805
|
-
if (!
|
|
11849
|
+
const accountJsonPath = join10(configDir2, "account.json");
|
|
11850
|
+
if (!existsSync19(accountJsonPath)) return null;
|
|
11806
11851
|
const account = JSON.parse(readFileSync17(accountJsonPath, "utf-8"));
|
|
11807
11852
|
const accountId = account.accountId;
|
|
11808
11853
|
if (!accountId) return null;
|
|
11809
|
-
const cachePath =
|
|
11810
|
-
if (!
|
|
11854
|
+
const cachePath = join10(configDir2, "branding-cache", accountId, `${agentSlug}.json`);
|
|
11855
|
+
if (!existsSync19(cachePath)) return null;
|
|
11811
11856
|
return JSON.parse(readFileSync17(cachePath, "utf-8"));
|
|
11812
11857
|
} catch {
|
|
11813
11858
|
return null;
|
|
@@ -11815,9 +11860,9 @@ function loadBrandingCache(agentSlug) {
|
|
|
11815
11860
|
}
|
|
11816
11861
|
function resolveDefaultSlug() {
|
|
11817
11862
|
try {
|
|
11818
|
-
const configDir2 =
|
|
11819
|
-
const accountJsonPath =
|
|
11820
|
-
if (!
|
|
11863
|
+
const configDir2 = join10(homedir2(), BRAND.configDir);
|
|
11864
|
+
const accountJsonPath = join10(configDir2, "account.json");
|
|
11865
|
+
if (!existsSync19(accountJsonPath)) return null;
|
|
11821
11866
|
const account = JSON.parse(readFileSync17(accountJsonPath, "utf-8"));
|
|
11822
11867
|
return account.defaultAgent || null;
|
|
11823
11868
|
} catch {
|
|
@@ -11981,7 +12026,7 @@ try {
|
|
|
11981
12026
|
(async () => {
|
|
11982
12027
|
try {
|
|
11983
12028
|
let userId = "";
|
|
11984
|
-
if (
|
|
12029
|
+
if (existsSync19(USERS_FILE)) {
|
|
11985
12030
|
const users = JSON.parse(readFileSync17(USERS_FILE, "utf-8").trim() || "[]");
|
|
11986
12031
|
userId = users[0]?.userId ?? "";
|
|
11987
12032
|
}
|
|
@@ -12009,7 +12054,7 @@ if (bootAccountConfig?.whatsapp) {
|
|
|
12009
12054
|
}
|
|
12010
12055
|
init({
|
|
12011
12056
|
configDir: configDirForWhatsApp,
|
|
12012
|
-
platformRoot: resolve21(process.env.MAXY_PLATFORM_ROOT ??
|
|
12057
|
+
platformRoot: resolve21(process.env.MAXY_PLATFORM_ROOT ?? join10(__dirname, "..")),
|
|
12013
12058
|
accountConfig: bootAccountConfig,
|
|
12014
12059
|
onMessage: async (msg) => {
|
|
12015
12060
|
try {
|
package/payload/premium-plugins/real-agency/plugins/real-agency-loop/mcp/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|