@rubytech/create-realagent 1.0.837 → 1.0.839
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/lib/graph-write/dist/index.js +1 -1
- package/payload/platform/lib/graph-write/dist/index.js.map +1 -1
- package/payload/platform/lib/graph-write/src/index.ts +1 -1
- package/payload/platform/plugins/admin/PLUGIN.md +2 -0
- package/payload/platform/plugins/admin/mcp/dist/index.js +1 -1
- package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/admin/skills/business-profile/SKILL.md +5 -5
- package/payload/platform/plugins/admin/skills/onboarding/SKILL.md +11 -11
- package/payload/platform/plugins/admin/skills/unzip-attachment/SKILL.md +2 -0
- package/payload/platform/plugins/contacts/mcp/dist/index.js +1 -1
- package/payload/platform/plugins/contacts/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/docs/references/troubleshooting.md +20 -0
- package/payload/platform/plugins/memory/PLUGIN.md +3 -3
- package/payload/platform/plugins/memory/mcp/dist/index.js +14 -14
- package/payload/platform/plugins/memory/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/lib/graph-write-gate.d.ts +12 -11
- package/payload/platform/plugins/memory/mcp/dist/lib/graph-write-gate.d.ts.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/lib/graph-write-gate.js +22 -10
- package/payload/platform/plugins/memory/mcp/dist/lib/graph-write-gate.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-update.js +1 -1
- package/payload/platform/plugins/memory/mcp/dist/tools/profile-update.js.map +1 -1
- package/payload/platform/plugins/memory/references/schema-base.md +17 -17
- package/payload/platform/plugins/memory/skills/conversation-archive/SKILL.md +14 -14
- package/payload/platform/plugins/tasks/PLUGIN.md +2 -2
- package/payload/platform/plugins/tasks/mcp/dist/index.js +11 -11
- package/payload/platform/plugins/tasks/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-update.js +1 -1
- package/payload/platform/plugins/tasks/mcp/dist/tools/task-update.js.map +1 -1
- package/payload/platform/scripts/seed-neo4j.sh +13 -3
- package/payload/platform/templates/agents/admin/IDENTITY.md +1 -0
- package/payload/platform/templates/specialists/agents/database-operator.md +1 -1
- package/payload/server/adminuser-self-heal-QAWOZ3JV.js +45 -0
- package/payload/server/chunk-7PLAT6UR.js +2103 -0
- package/payload/server/chunk-M6J4JM3D.js +656 -0
- package/payload/server/chunk-PZZ3IKUU.js +1116 -0
- package/payload/server/chunk-TSOYVJC4.js +10003 -0
- package/payload/server/client-pool-OX75YUFD.js +33 -0
- package/payload/server/cloudflare-task-tracker-OQTQWFWK.js +20 -0
- package/payload/server/maxy-edge.js +4 -3
- package/payload/server/neo4j-migrations-4PG2KB4W.js +665 -0
- package/payload/server/server.js +30 -9
package/payload/server/server.js
CHANGED
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
vncLog,
|
|
46
46
|
waitForExit,
|
|
47
47
|
writeChromiumWrapper
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-TSOYVJC4.js";
|
|
49
49
|
import {
|
|
50
50
|
agentLogStream,
|
|
51
51
|
clearSessionHistory,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
sigtermFlushStreamLogs,
|
|
74
74
|
unregisterSession,
|
|
75
75
|
validateSession
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-PZZ3IKUU.js";
|
|
77
77
|
import {
|
|
78
78
|
ACCOUNTS_DIR,
|
|
79
79
|
COMMERCIAL_MODE,
|
|
@@ -98,12 +98,10 @@ import {
|
|
|
98
98
|
openCloudflareTask,
|
|
99
99
|
readTunnelState,
|
|
100
100
|
resolveUnitGoneVerdict
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-M6J4JM3D.js";
|
|
102
102
|
import {
|
|
103
103
|
GREETING_DIRECTIVE,
|
|
104
104
|
HAIKU_MODEL,
|
|
105
|
-
__commonJS,
|
|
106
|
-
__toESM,
|
|
107
105
|
backfillNullUserIdConversations,
|
|
108
106
|
bindVisitorToGroup,
|
|
109
107
|
checkGroupMembership,
|
|
@@ -126,11 +124,16 @@ import {
|
|
|
126
124
|
loadOnboardingStep,
|
|
127
125
|
projectAgent,
|
|
128
126
|
renameConversation,
|
|
127
|
+
runAdminUserSelfHeal,
|
|
129
128
|
runBootMigrations,
|
|
130
129
|
verifyAndGetConversationUpdatedAt,
|
|
131
130
|
verifyConversationOwnership,
|
|
132
131
|
writeAdminUserAndPerson
|
|
133
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-7PLAT6UR.js";
|
|
133
|
+
import {
|
|
134
|
+
__commonJS,
|
|
135
|
+
__toESM
|
|
136
|
+
} from "./chunk-JSBRDJBE.js";
|
|
134
137
|
|
|
135
138
|
// ../lib/graph-trash/dist/index.js
|
|
136
139
|
var require_dist = __commonJS({
|
|
@@ -7493,7 +7496,7 @@ var app11 = new Hono();
|
|
|
7493
7496
|
app11.post("/cancel", requireAdminSession, async (c) => {
|
|
7494
7497
|
const session_key = c.var.sessionKey;
|
|
7495
7498
|
try {
|
|
7496
|
-
const { interruptClient: interruptClient2 } = await import("./client-pool-
|
|
7499
|
+
const { interruptClient: interruptClient2 } = await import("./client-pool-OX75YUFD.js");
|
|
7497
7500
|
await interruptClient2(session_key);
|
|
7498
7501
|
return c.json({ ok: true });
|
|
7499
7502
|
} catch (err) {
|
|
@@ -12128,7 +12131,7 @@ var MIME = {
|
|
|
12128
12131
|
".otf": "font/otf"
|
|
12129
12132
|
};
|
|
12130
12133
|
var HTML_EXTS = /* @__PURE__ */ new Set([".html", ".htm"]);
|
|
12131
|
-
var CSP_HTML = "default-src 'self' https: data:; style-src 'self' https: 'unsafe-inline'; script-src '
|
|
12134
|
+
var CSP_HTML = "default-src 'self' https: data:; style-src 'self' https: 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-hashes'";
|
|
12132
12135
|
function getExt(p) {
|
|
12133
12136
|
const idx = p.lastIndexOf(".");
|
|
12134
12137
|
if (idx < 0) return "";
|
|
@@ -13054,6 +13057,24 @@ try {
|
|
|
13054
13057
|
console.error(`[migration] runBootMigrations rejected: ${err instanceof Error ? err.message : String(err)}`);
|
|
13055
13058
|
}
|
|
13056
13059
|
})();
|
|
13060
|
+
(async () => {
|
|
13061
|
+
try {
|
|
13062
|
+
if (!existsSync23(USERS_FILE)) return;
|
|
13063
|
+
const usersRaw = readFileSync17(USERS_FILE, "utf-8").trim();
|
|
13064
|
+
if (!usersRaw) return;
|
|
13065
|
+
const users = JSON.parse(usersRaw);
|
|
13066
|
+
const userId = users[0]?.userId;
|
|
13067
|
+
if (!userId) return;
|
|
13068
|
+
const account = resolveAccount();
|
|
13069
|
+
if (!account) {
|
|
13070
|
+
console.error("[adminuser-self-heal] no account resolved \u2014 skipping (resolveAccount returned null)");
|
|
13071
|
+
return;
|
|
13072
|
+
}
|
|
13073
|
+
await runAdminUserSelfHeal({ userId, accountId: account.accountId });
|
|
13074
|
+
} catch (err) {
|
|
13075
|
+
console.error(`[adminuser-self-heal] rejected: ${err instanceof Error ? err.message : String(err)}`);
|
|
13076
|
+
}
|
|
13077
|
+
})();
|
|
13057
13078
|
startGraphHealthTimer();
|
|
13058
13079
|
var configDirForWhatsApp = basename5(MAXY_DIR) || ".maxy";
|
|
13059
13080
|
var bootAccount = resolveAccount();
|
|
@@ -13072,7 +13093,7 @@ autoDeliverPremiumPlugins(bootEntitlement?.purchasedPlugins ?? void 0);
|
|
|
13072
13093
|
(async () => {
|
|
13073
13094
|
if (!bootAccount) return;
|
|
13074
13095
|
try {
|
|
13075
|
-
const { recoverRunningCloudflareTasks } = await import("./cloudflare-task-tracker-
|
|
13096
|
+
const { recoverRunningCloudflareTasks } = await import("./cloudflare-task-tracker-OQTQWFWK.js");
|
|
13076
13097
|
const result = await recoverRunningCloudflareTasks(
|
|
13077
13098
|
bootAccount.accountId,
|
|
13078
13099
|
configDirForWhatsApp,
|