Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(tokens): extend the drift audit to a vocabulary-integrity gate and fix its hits
nirholas6a61c13d6fcc
diff --git a/pages/concierge.html b/pages/concierge.htmlindex 96aaad543..5512f2c71 100644--- a/pages/concierge.html+++ b/pages/concierge.html@@ -98,7 +98,7 @@font-size: var(--text-sm);letter-spacing: 0.08em;text-transform: uppercase;- color: var(--text-tertiary);+ color: var(--ink-faint);}.cl-hero h1 {font-size: clamp(2rem, 5.5vw, 3.4rem);@@ -108,7 +108,7 @@max-width: 17ch;}.cl-hero .cl-sub {- color: var(--text-secondary);+ color: var(--ink-dim);font-size: var(--text-lg);max-width: 56ch;margin: 0 auto var(--space-lg);@@ -134,14 +134,14 @@.cl-btn:hover { transform: translateY(-1px); }.cl-btn-primary { background: var(--btn-primary-bg, var(--accent)); color: var(--btn-primary-fg, #0a0a0a); }.cl-btn-primary:hover { filter: brightness(1.08); }- .cl-btn-ghost { border: 1px solid var(--border-primary); color: var(--text-primary); }+ .cl-btn-ghost { border: 1px solid var(--stroke); color: var(--ink-bright); }.cl-btn-ghost:hover { border-color: var(--accent); }.cl-hint {margin-top: var(--space-lg);font-family: var(--font-mono);font-size: var(--text-sm);- color: var(--text-tertiary);+ color: var(--ink-faint);}.cl-hint .cl-arrow { display: inline-block; animation: cl-nudge 1.6s ease-in-out infinite; }@keyframes cl-nudge { 50% { transform: translate(4px, 4px); } }@@ -154,7 +154,7 @@margin: 0 0 var(--space-xs);}.cl-section .cl-lede {- color: var(--text-secondary);+ color: var(--ink-dim);max-width: 62ch;margin: 0 0 var(--space-lg);line-height: 1.65;@@ -166,19 +166,19 @@gap: var(--space-md);}.cl-card {- border: 1px solid var(--border-primary);+ border: 1px solid var(--stroke);border-radius: var(--radius-lg);padding: var(--space-md);- background: var(--bg-secondary);+ background: var(--bg-1);transition: border-color 0.2s ease, transform 0.2s ease;}.cl-card:hover { border-color: var(--accent); transform: translateY(-2px); }.cl-card h3 { margin: 0 0 var(--space-2); font-size: var(--text-base); }- .cl-card p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; }+ .cl-card p { margin: 0; color: var(--ink-dim); font-size: var(--text-sm); line-height: 1.6; }.cl-card .cl-k {font-family: var(--font-mono);font-size: var(--text-xs);- color: var(--text-tertiary);+ color: var(--ink-faint);display: block;margin-bottom: var(--space-2);}@@ -189,19 +189,19 @@font-size: var(--text-sm);padding: 0.4rem 0.85rem;border-radius: 999px;- border: 1px solid var(--border-primary);+ border: 1px solid var(--stroke);background: none;- color: var(--text-secondary);+ color: var(--ink-dim);cursor: pointer;transition: border-color 0.15s ease, color 0.15s ease;}.cl-tab:hover { border-color: var(--accent); }- .cl-tab[aria-selected='true'] { border-color: var(--accent); color: var(--text-primary); background: var(--bg-secondary); }+ .cl-tab[aria-selected='true'] { border-color: var(--accent); color: var(--ink-bright); background: var(--bg-1); }.cl-code {position: relative;- border: 1px solid var(--border-primary);+ border: 1px solid var(--stroke);border-radius: var(--radius-lg);- background: var(--bg-secondary);+ background: var(--bg-1);overflow: hidden;}.cl-code pre {@@ -211,7 +211,7 @@font-family: var(--font-mono);font-size: 0.82rem;line-height: 1.6;- color: var(--text-primary);+ color: var(--ink-bright);}.cl-copy {position: absolute;@@ -221,13 +221,13 @@font-size: var(--text-xs);padding: 0.3rem 0.65rem;border-radius: var(--radius-sm);- border: 1px solid var(--border-primary);- background: var(--bg-primary);- color: var(--text-secondary);+ border: 1px solid var(--stroke);+ background: var(--bg-0);+ color: var(--ink-dim);cursor: pointer;transition: color 0.15s ease, border-color 0.15s ease;}- .cl-copy:hover { color: var(--text-primary); border-color: var(--accent); }+ .cl-copy:hover { color: var(--ink-bright); border-color: var(--accent); }.cl-panel[hidden] { display: none; }.cl-steps { counter-reset: step; display: grid; gap: var(--space-md); }@@ -241,8 +241,8 @@padding-top: 0.15rem;}.cl-step h3 { margin: 0 0 var(--space-1); font-size: var(--text-base); }- .cl-step p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.65; max-width: 68ch; }- .cl-step code { font-family: var(--font-mono); font-size: 0.82em; background: var(--bg-secondary); padding: 0.1em 0.4em; border-radius: var(--radius-sm); }+ .cl-step p { margin: 0; color: var(--ink-dim); font-size: var(--text-sm); line-height: 1.65; max-width: 68ch; }+ .cl-step code { font-family: var(--font-mono); font-size: 0.82em; background: var(--bg-1); padding: 0.1em 0.4em; border-radius: var(--radius-sm); }.cl-links { display: flex; gap: var(--space-md); flex-wrap: wrap; }.cl-links a { color: var(--accent); text-decoration: none; font-size: var(--text-sm); }diff --git a/pages/home.html b/pages/home.htmlindex acfa63e61..e2ef1d08e 100644--- a/pages/home.html+++ b/pages/home.html@@ -734,7 +734,7 @@@media (max-width: 720px) { #home-sniper .snipe-stats { grid-template-columns: 1fr; gap: 12px; } }#home-sniper .snipe-stat {position: relative; padding: 26px 24px; border-radius: 14px; overflow: hidden;- background: var(--surface-0); border: 1px solid var(--hairline-strong);+ background: var(--surface-1); border: 1px solid var(--hairline-strong);transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s, background .25s;}#home-sniper .snipe-stat::before {@@ -743,7 +743,7 @@opacity: 0; transition: opacity .3s;}#home-sniper .snipe-stat:hover {- transform: translateY(-3px); border-color: rgba(255,255,255,0.4); background: var(--surface-1);+ transform: translateY(-3px); border-color: rgba(255,255,255,0.4); background: var(--surface-2);}#home-sniper .snipe-stat:hover::before { opacity: 1; }#home-sniper .snipe-stat-val {@@ -761,13 +761,13 @@#home-sniper .snipe-console {margin-top: 24px; border: 1px solid var(--hairline-strong); border-radius: 16px;- background: var(--surface-0); overflow: hidden;+ background: var(--surface-1); overflow: hidden;box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 24px 60px -32px rgba(0,0,0,0.8);}#home-sniper .snipe-console-head {display: flex; align-items: center; justify-content: space-between; gap: 16px;padding: 14px 20px; border-bottom: 1px solid var(--hairline);- background: linear-gradient(to bottom, var(--surface-1), var(--surface-0));+ background: linear-gradient(to bottom, var(--surface-2), var(--surface-1));}#home-sniper .snipe-status { display: flex; align-items: center; gap: 12px; min-width: 0; }#home-sniper .snipe-state {diff --git a/public/home.css b/public/home.cssindex 03079107b..cf3d75052 100644--- a/public/home.css+++ b/public/home.css@@ -789,7 +789,7 @@.walk-preview-retry {margin-top: 4px; padding: 7px 16px;font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;- text-transform: uppercase; color: var(--text-1);+ text-transform: uppercase; color: var(--text);background: transparent; border: 1px solid var(--hairline-strong);border-radius: 6px; cursor: pointer;transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;diff --git a/public/master-wallet.css b/public/master-wallet.cssindex 5c3b0fb06..975e1ae40 100644--- a/public/master-wallet.css+++ b/public/master-wallet.css@@ -898,7 +898,7 @@ input.wlt-input {backdrop-filter: blur(3px);}.wlt-sheet[open] {- animation: wlt-sheet-in var(--duration-normal) var(--ease-standard);+ animation: wlt-sheet-in var(--duration-base) var(--ease-standard);}@keyframes wlt-sheet-in {from {diff --git a/scripts/audit-token-drift.mjs b/scripts/audit-token-drift.mjsindex 323c6df0a..ddd0367e4 100644--- a/scripts/audit-token-drift.mjs+++ b/scripts/audit-token-drift.mjs@@ -10,7 +10,11 @@** - It counts hardcoded occurrences of the canonical status/base hexes inside* <style> blocks of pages/ *.html files that load the token vocabulary- * (via /style.css, /nav.css, or /tokens.css).+ * (via /style.css, /nav.css, or /tokens.css), and inside every stylesheet+ * under src/ and public/ (QB-07). Those sheets are token-covered by+ * construction: they already reference the canonical vars throughout, so a+ * raw hex beside them is drift by the same definition, and leaving them out+ * was hiding four fifths of the debt.* - The count may only go DOWN. If it exceeds the recorded baseline the audit* fails and names each offending file so the author swaps the hex for the var.* - When the count drops, the audit tells you to lower the baseline so the@@ -21,6 +25,17 @@* their own --success/--danger/--warn) are out of scope — the ratchet only sees* CSS on pages where the canonical var is the unambiguous right answer.*+ * It also runs a second, non-ratcheted gate: VOCABULARY INTEGRITY (QB-07). Every+ * bare `var(--x)` whose name belongs to a canonical token family (--ink-*,+ * --surface-*, --bg-*, --accent-*, --space-*, --radius-*, --duration-* …) must+ * actually be defined, either in public/tokens.css or locally in the same file.+ * A bare var() that resolves to nothing is not a style nit: the whole+ * declaration is dropped at computed-value time, so the element silently+ * inherits instead. That is how /concierge shipped a --text-primary /+ * --bg-secondary vocabulary no sheet on the platform defines, and how a page can+ * reference a token a refactor removed. This half has no baseline and no ratchet+ * (it is always zero).+ ** Usage:* node scripts/audit-token-drift.mjs # exit 1 if drift increased* node scripts/audit-token-drift.mjs --update # rewrite baseline to current counts@@ -68,6 +83,22 @@ function stripNonAuthoritative(css) {return out;}+/** Every stylesheet under a source root, minus the token sheet itself and any+ * build output (public/chat/assets is written by `npm run build:chat`). */+function collectStylesheets(dir) {+ const out = [];+ for (const entry of readdirSync(dir)) {+ const p = join(dir, entry);+ if (statSync(p).isDirectory()) {+ if (entry === 'node_modules' || entry === 'vendor' || entry === 'assets') continue;+ out.push(...collectStylesheets(p));+ } else if (entry.endsWith('.css') && relative(ROOT, p) !== 'public/tokens.css') {+ out.push(p);+ }+ }+ return out;+}+function collectPages(dir) {const out = [];for (const entry of readdirSync(dir)) {@@ -100,6 +131,21 @@ function countDrift() {total += n;}}+ for (const sheet of [+ ...collectStylesheets(join(ROOT, 'src')),+ ...collectStylesheets(join(ROOT, 'public')),+ ]) {+ const css = stripNonAuthoritative(readFileSync(sheet, 'utf8'));+ let n = 0;+ for (const { hex, token } of TOKEN_HEXES) {+ if (LOCAL_DEF(css, token)) continue;+ n += (css.match(new RegExp(`${hex}(?![0-9a-fA-F])`, 'gi')) || []).length;+ }+ if (n > 0) {+ perFile[relative(ROOT, sheet)] = n;+ total += n;+ }+ }return { total, perFile };}diff --git a/src/alpha-copilot.css b/src/alpha-copilot.cssindex 3c5268619..0826d4e24 100644--- a/src/alpha-copilot.css+++ b/src/alpha-copilot.css@@ -341,7 +341,7 @@ body {/* Oracle platform context bar */.acp-oracle-bar { display:flex; align-items:stretch; gap:0; border:1px solid var(--stroke); border-radius:10px; overflow:hidden; max-width:760px; margin:0 auto var(--space-lg); }-.acp-oracle-kpi { flex:1; padding:10px 16px; background:var(--surface-0); border-right:1px solid var(--stroke); display:flex; flex-direction:column; gap:2px; }+.acp-oracle-kpi { flex:1; padding:10px 16px; background:var(--surface-1); border-right:1px solid var(--stroke); display:flex; flex-direction:column; gap:2px; }.acp-oracle-kpi:last-child { border-right:none; }.acp-oracle-kpi-val { font-size:16px; font-weight:700; color:var(--ink-bright); letter-spacing:-0.02em; }.acp-oracle-kpi-val.pos { color:#34d399; }diff --git a/src/leaderboard.css b/src/leaderboard.cssindex 8ac2555cc..be26c1b0c 100644--- a/src/leaderboard.css+++ b/src/leaderboard.css@@ -671,7 +671,7 @@.lb-oracle-section {margin: var(--space-2xl) 0 var(--space-xl);border: 1px solid var(--stroke);- border-radius: var(--radius-xl);+ border-radius: var(--radius-lg);overflow: hidden;background: var(--surface-1);}diff --git a/src/watchlist.css b/src/watchlist.cssindex 402c9a11d..02b70314d 100644--- a/src/watchlist.css+++ b/src/watchlist.css@@ -116,7 +116,7 @@ body {transition: border-color 0.18s;min-width: 0;}-.wl-add-input::placeholder { color: var(--ink-dim); font-family: var(--font-base); }+.wl-add-input::placeholder { color: var(--ink-dim); font-family: var(--font-body); }.wl-add-input:focus { outline: none; border-color: var(--accent, #7c6aff); }/* Match the toolbar search field: the border tint alone is a weak keyboardaffordance, so restore the platform ring the `outline: none` above removes. */