@rubytech/create-realagent 1.0.772 → 1.0.773
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 +1 -1
- package/payload/platform/plugins/admin/mcp/dist/index.js +43 -4
- package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/admin/skills/business-profile/SKILL.md +5 -6
- package/payload/platform/plugins/admin/skills/onboarding/SKILL.md +5 -6
- package/payload/server/chunk-2HBD6IRL.js +3242 -0
- package/payload/server/chunk-PIMJJCOQ.js +9563 -0
- package/payload/server/client-pool-U3A5YUO7.js +28 -0
- package/payload/server/maxy-edge.js +2 -2
- package/payload/server/public/assets/{admin-CFttroHB.js → admin-C4CTVtBu.js} +2 -2
- package/payload/server/public/index.html +1 -1
- package/payload/server/server.js +24 -4
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Real Agent</title>
|
|
7
7
|
<link rel="icon" href="/favicon.ico">
|
|
8
|
-
<script type="module" crossorigin src="/assets/admin-
|
|
8
|
+
<script type="module" crossorigin src="/assets/admin-C4CTVtBu.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/chunk-DD-I1_y5.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-DeNudFNA.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-qlgyTAkD.js">
|
package/payload/server/server.js
CHANGED
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
vncLog,
|
|
48
48
|
waitForExit,
|
|
49
49
|
writeChromiumWrapper
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-PIMJJCOQ.js";
|
|
51
51
|
import {
|
|
52
52
|
ACCOUNTS_DIR,
|
|
53
53
|
GREETING_DIRECTIVE,
|
|
@@ -107,8 +107,9 @@ import {
|
|
|
107
107
|
validateAgentSlug,
|
|
108
108
|
validateSession,
|
|
109
109
|
verifyAndGetConversationUpdatedAt,
|
|
110
|
-
verifyConversationOwnership
|
|
111
|
-
|
|
110
|
+
verifyConversationOwnership,
|
|
111
|
+
writeAdminUserAndPerson
|
|
112
|
+
} from "./chunk-2HBD6IRL.js";
|
|
112
113
|
|
|
113
114
|
// ../lib/graph-trash/dist/index.js
|
|
114
115
|
var require_dist = __commonJS({
|
|
@@ -7444,6 +7445,10 @@ app8.post("/set-pin", async (c) => {
|
|
|
7444
7445
|
if (!body.pin || body.pin.length < 4) {
|
|
7445
7446
|
return c.json({ error: "PIN must be at least 4 characters." }, 400);
|
|
7446
7447
|
}
|
|
7448
|
+
const fullName = (body.name ?? "").trim();
|
|
7449
|
+
if (!fullName) {
|
|
7450
|
+
return c.json({ error: "Your name is required." }, 400);
|
|
7451
|
+
}
|
|
7447
7452
|
const hash = hashPin(body.pin);
|
|
7448
7453
|
const account = resolveAccount();
|
|
7449
7454
|
const existingOwnerUserId = account?.config.admins?.find((a) => a.role === "owner")?.userId;
|
|
@@ -7468,6 +7473,21 @@ app8.post("/set-pin", async (c) => {
|
|
|
7468
7473
|
} catch (err) {
|
|
7469
7474
|
console.error(`[set-pin] failed to update account.json admins: ${err instanceof Error ? err.message : String(err)}`);
|
|
7470
7475
|
}
|
|
7476
|
+
try {
|
|
7477
|
+
const result = await writeAdminUserAndPerson({
|
|
7478
|
+
userId,
|
|
7479
|
+
fullName,
|
|
7480
|
+
accountId: account.accountId
|
|
7481
|
+
});
|
|
7482
|
+
console.log(
|
|
7483
|
+
`[admin-identity] adminuser-bound userId=${userId.slice(0, 8)} givenName=${result.givenName} familyName=${result.familyName ?? "null"} personReused=${result.personReused}`
|
|
7484
|
+
);
|
|
7485
|
+
} catch (err) {
|
|
7486
|
+
console.error(
|
|
7487
|
+
`[admin-identity] adminuser-bind-failed userId=${userId.slice(0, 8)} accountId=${account.accountId.slice(0, 8)} error=${err instanceof Error ? err.message : String(err)}`
|
|
7488
|
+
);
|
|
7489
|
+
return c.json({ error: "Failed to write admin identity to graph. Check Neo4j connectivity and retry." }, 500);
|
|
7490
|
+
}
|
|
7471
7491
|
}
|
|
7472
7492
|
return c.json({ ok: true });
|
|
7473
7493
|
});
|
|
@@ -8181,7 +8201,7 @@ var app11 = new Hono();
|
|
|
8181
8201
|
app11.post("/cancel", requireAdminSession, async (c) => {
|
|
8182
8202
|
const session_key = c.var.sessionKey;
|
|
8183
8203
|
try {
|
|
8184
|
-
const { interruptClient: interruptClient2 } = await import("./client-pool-
|
|
8204
|
+
const { interruptClient: interruptClient2 } = await import("./client-pool-U3A5YUO7.js");
|
|
8185
8205
|
await interruptClient2(session_key);
|
|
8186
8206
|
return c.json({ ok: true });
|
|
8187
8207
|
} catch (err) {
|