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(theme-boot): stop the injector emitting the banned dash into every new page
nirholas80d40c529e6f
diff --git a/pages/oracle-lab.html b/pages/oracle-lab.htmlindex 8d1b88e6e..69373351f 100644--- a/pages/oracle-lab.html+++ b/pages/oracle-lab.html@@ -1,7 +1,7 @@<!DOCTYPE html><html lang="en"><head>- <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>+ <script>/* three.ws theme boot: no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script><meta charset="UTF-8" /><link rel="icon" href="/favicon.ico" sizes="any" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" />diff --git a/scripts/inject-theme-boot.mjs b/scripts/inject-theme-boot.mjsindex f1692eb45..50cfdf2fd 100644--- a/scripts/inject-theme-boot.mjs+++ b/scripts/inject-theme-boot.mjs@@ -8,7 +8,7 @@* key the dashboard Appearance setting and the nav toggle use), resolves 'auto'* against the OS scheme, and defaults to the brand dark when unset. The full* runtime (toggle wiring, persistence, cross-tab sync) lives in- * public/theme-switcher.js — this is only the pre-paint apply.+ * public/theme-switcher.js. This is only the pre-paint apply.** Skips embed/widget/badge/artifact/kiosk contexts (they render inside hosts* that own their own theming) and any document without a viewport meta.@@ -27,7 +27,7 @@ const ROOTS = [const MARKER = 'three.ws theme boot';const BOOT =- `<script>/* ${MARKER} — no-flash; runtime in /theme-switcher.js */` ++ `<script>/* ${MARKER}: no-flash; runtime in /theme-switcher.js */` +`(function(){try{var m=localStorage.getItem('twx_theme');` +`var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';` +`document.documentElement.setAttribute('data-theme',l?'light':'dark');}` +