Fix duplicate CAT_COLORS const breaking admin login

Rename memory section CAT_COLORS to MEM_CAT_COLORS to avoid SyntaxError
that prevented doLogin from being defined, locking users out of admin.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 18:10:42 +00:00
parent cb90ea087e
commit abe7a25141
+2 -2
View File
@@ -4049,7 +4049,7 @@ async function syncCalNow() {
} }
// ── MEMORY CORE ─────────────────────────────────────────────────────────────── // ── MEMORY CORE ───────────────────────────────────────────────────────────────
const CAT_COLORS = { const MEM_CAT_COLORS = {
preference:'var(--cyan)', person:'#a78bfa', place:'#00ff88', preference:'var(--cyan)', person:'#a78bfa', place:'#00ff88',
routine:'#ffd700', goal:'#ff9900', fact:'var(--text)', instruction:'#ff6680' routine:'#ffd700', goal:'#ff9900', fact:'var(--text)', instruction:'#ff6680'
}; };
@@ -4090,7 +4090,7 @@ async function loadMemory() {
const allCats = [...new Set([...catOrder, ...Object.keys(grouped)])]; const allCats = [...new Set([...catOrder, ...Object.keys(grouped)])];
for (const cat of allCats) { for (const cat of allCats) {
if (!grouped[cat]) continue; if (!grouped[cat]) continue;
const color = CAT_COLORS[cat] || 'var(--text)'; const color = MEM_CAT_COLORS[cat] || 'var(--text)';
html += `<div style="margin-bottom:16px"> html += `<div style="margin-bottom:16px">
<div style="font-family:var(--mono);font-size:0.65rem;letter-spacing:2px;color:${color};margin-bottom:6px;display:flex;align-items:center;gap:8px"> <div style="font-family:var(--mono);font-size:0.65rem;letter-spacing:2px;color:${color};margin-bottom:6px;display:flex;align-items:center;gap:8px">
${cat.toUpperCase()} <span style="color:var(--dim)">(${grouped[cat].length})</span> ${cat.toUpperCase()} <span style="color:var(--dim)">(${grouped[cat].length})</span>