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(build): update build:rider script to use npm run build for consistency
nirholas5843fdbb9922
diff --git a/CLAUDE.md b/CLAUDE.mdindex 5cefbbf57..cf3510db3 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -10,19 +10,16 @@ Behavioral guidelines for agents working in this repo. Bias toward **acting deci**If the next step is obvious, take it. Show the diff, not a question.**-Default to action when:+Default to action when the work is **directly and explicitly** within what was asked:-- The user reports a bug → fix it.-- A fix has an obvious follow-up (failing test, broken import, dead reference, type error your change introduced) → do it in the same turn.-- The user says "this is broken" / "X doesn't work" / "why is Y happening" → diagnose AND fix, then explain.-- A test fails for a reason directly tied to the task → fix it.-- You find a typo, wrong path, or stale reference while doing the task → fix it.-- The user has already approved the approach earlier in the conversation → keep going.+- The user reports a bug → diagnose it, fix only the reported bug.+- The user says "fix X" → fix X. Not X plus related things you noticed.+- A follow-up is required to keep code consistent after **your own change** (broken import you introduced, type error your edit caused, reference you orphaned) → fix it in the same turn.+- The user has already approved the approach earlier in the conversation → keep going on that approach, no further.**Banned phrases** (do not send these — just do the thing):- "Want me to fix this?"-- "Should I also update X?" (when X is obviously coupled to the change)- "Do you want me to run the tests?"- "Shall I proceed?"- "Let me know if you'd like me to…"@@ -30,6 +27,7 @@ Default to action when:**Only stop and ask when:**- The action is **destructive and irreversible** (force push, drop table, rm -rf, history rewrite on shared branches).+- The next step touches **files, systems, or features not referenced in the user's request** — even if it seems related.- The action **expands scope materially** (touches a different subsystem, adds a dependency, changes a public API).- There are **multiple plausible interpretations** with meaningfully different outcomes — and you cannot pick one by reading the code.- The user explicitly asked for a plan/review before changes.@@ -82,11 +80,11 @@ Test: every changed line traces directly to the user's request or to keeping the**Define success. Loop until verified. Then report.**-Translate fuzzy asks into verifiable goals:+Translate fuzzy asks into verifiable goals, but **don't add work that wasn't asked for**:-- "Add validation" → write tests for invalid inputs, make them pass.-- "Fix the bug" → write a test that reproduces it, make it pass.-- "Refactor X" → tests green before and after.+- "Add validation" → add the validation. Run existing tests. Don't write new tests unless asked.+- "Fix the bug" → fix it. Don't refactor the surrounding code.+- "Refactor X" → existing tests green before and after.- "Make it faster" → measure before, change, measure after.For multi-step work, hold a short plan internally and execute it. Don't narrate steps you haven't done. Don't ask the user to confirm steps inside an already-approved task.diff --git a/package.json b/package.jsonindex f59ec13d1..714177fb1 100644--- a/package.json+++ b/package.json@@ -45,7 +45,7 @@"build:artifact": "vite build --config vite.config.artifact.js","publish:lib": "node scripts/publish-lib.mjs","build:chat": "cd chat && npm ci --prefer-offline --no-audit --no-fund && npm run build",- "build:rider": "cd rider && npm ci --prefer-offline --no-audit --no-fund --ignore-engines && cross-env NODE_ENV=production npx webpack && mkdir -p ../dist/rider && cp index.html ../dist/rider/ && cp -r assets ../dist/rider/ && cp -r build ../dist/rider/ && cp -r vendor ../dist/rider/",+ "build:rider": "cd rider && npm ci --prefer-offline --no-audit --no-fund --ignore-engines && npm run build && mkdir -p ../dist/rider && cp index.html ../dist/rider/ && cp -r assets ../dist/rider/ && cp -r build ../dist/rider/ && cp -r vendor ../dist/rider/","build:all": "npm run build:chat && npm run build:rider && npm run build && npm run build:lib && npm run publish:lib","clean": "rm -rf dist/* dist-lib/* || true","generate-icons": "node scripts/generate-pwa-icons.mjs",diff --git a/rider/index.html b/rider/index.htmlindex f621df013..8fe782348 100644--- a/rider/index.html+++ b/rider/index.html@@ -29,19 +29,5 @@gtag('js', new Date());gtag('config', 'UA-111391431-16');</script>-- <div id="subscribeForm">- <h2>Get Updates on Our Upcoming VR Projects!</h2>- <form>- <input name="email" type="email" placeholder="Email address">- <button class="submit" type="submit">Subscribe</button>- </form>- <p>Also chat with us on <a href="https://three.ws/discord">three.ws/discord</a></p>- <span id="subscribeClose">×</span>- </div>-- <div id="brokenNotice" style="position: fixed; top: 0; left: 0; right: 0; background: rgba(30, 30, 30, 0.8); padding: 10px">- <p style="font-family: monospace; color: #FAFAFA; text-align: center">Welcome to three.ws — VR music visualization. Chat with us on <a href="https://three.ws/discord" style="color: rgb(221,132,195)">three.ws/discord</a></p>- </div></body></html>diff --git a/rider/package-lock.json b/rider/package-lock.jsonindex 7b092c533..4bff278c8 100644--- a/rider/package-lock.json+++ b/rider/package-lock.json@@ -1,5 +1,5 @@{- "name": "threews-rider",+ "name": "rider","version": "1.0.0","lockfileVersion": 2,"requires": true,@@ -27,7 +27,7 @@"@babel/plugin-syntax-import-meta": "^7.10.4","@babel/preset-env": "^7.16.11","aframe-aabb-collider-component": "^3.1.0",- "aframe-atlas-uvs-component": "^2.1.0",+ "aframe-atlas-uvs-component": "^3.0.0","aframe-audioanalyser-component": "^6.0.0","aframe-event-decorators": "^1.0.2","aframe-event-set-component": "^4.2.1",@@ -43,7 +43,6 @@"aframe-super-hot-html-loader": "^1.2.0","aframe-super-hot-loader": "^1.5.0","aframe-thumb-controls-component": "^2.0.2",- "algoliasearch": "^3.29.0","ansi-html": "0.0.7","autoprefixer": "^7.2.3","babel-loader": "^8.0.5",@@ -59,12 +58,10 @@"promise-polyfill": "^8.1.0","style-loader": "^0.23.1","super-nunjucks-loader": "^2.0.0",- "uglify-es": "git://github.com/mishoo/UglifyJS2.git#harmony",- "uglify-js": "git://github.com/mishoo/UglifyJS2#harmony",- "uglifyjs-webpack-plugin": "0.4.6","unzip-js": "^1.0.0","url-loader": "^1.1.2","webpack": "^4.46.0",+ "webpack-cli": "^3.2.0","webpack-glsl-loader": "^1.0.1","webpack-sources": "1.0.1","zip-loader": "github:ngokevin/ziploader#xhrdist"@@ -79,8 +76,7 @@"webpack-dev-server": "^3.2.0"},"engines": {- "node": "<=12.18.3",- "npm": "<=6.14.6"+ "node": ">=16"}},"node_modules/@ampproject/remapping": {@@ -3199,9 +3195,10 @@"integrity": "sha512-54ZRnsyhSfXiQmvWYC3RliVOjfUP3MtL7AL1OeaMx6WSUs2yTfUErrlKEBbEy+CJSG01p0Ev03Unl7wQuchEBw=="},"node_modules/aframe-atlas-uvs-component": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/aframe-atlas-uvs-component/-/aframe-atlas-uvs-component-2.1.0.tgz",- "integrity": "sha512-+zUnGMcj20Lkbth1/nWJjJoKsoc3jOTj8tuD3vy5BjWDha3cpQhBslxekvFL8LcAl88yv0WwD1kfkmLKQKcdvw=="+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/aframe-atlas-uvs-component/-/aframe-atlas-uvs-component-3.0.0.tgz",+ "integrity": "sha512-zoGFRsPTyXjq9hmEkJ/QiC/Pr9FmQxBm93Td2j7BE0yZ05H3z9KZwLm/gweRKPDYfc6PdV5SVtpYdBnRfjhH2A==",+ "license": "MIT"},"node_modules/aframe-audioanalyser-component": {"version": "6.1.0",@@ -3511,14 +3508,6 @@"node": ">= 6.0.0"}},- "node_modules/agentkeepalive": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-2.2.0.tgz",- "integrity": "sha1-xdG9SxKQCPEWPyNvhuX66iAm4u8=",- "engines": {- "node": ">= 0.10.0"- }- },"node_modules/ajv": {"version": "8.11.2","resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.2.tgz",@@ -3563,88 +3552,6 @@"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==","peer": true},- "node_modules/algoliasearch": {- "version": "3.35.1",- "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-3.35.1.tgz",- "integrity": "sha512-K4yKVhaHkXfJ/xcUnil04xiSrB8B8yHZoFEhWNpXg23eiCnqvTZw1tn/SqvdsANlYHLJlKl0qi3I/Q2Sqo7LwQ==",- "dependencies": {- "agentkeepalive": "^2.2.0",- "debug": "^2.6.9",- "envify": "^4.0.0",- "es6-promise": "^4.1.0",- "events": "^1.1.0",- "foreach": "^2.0.5",- "global": "^4.3.2",- "inherits": "^2.0.1",- "isarray": "^2.0.1",- "load-script": "^1.0.0",- "object-keys": "^1.0.11",- "querystring-es3": "^0.2.1",- "reduce": "^1.0.1",- "semver": "^5.1.0",- "tunnel-agent": "^0.6.0"- },- "engines": {- "node": ">=0.8"- }- },- "node_modules/algoliasearch/node_modules/debug": {- "version": "2.6.9",- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",- "dependencies": {- "ms": "2.0.0"- }- },- "node_modules/algoliasearch/node_modules/envify": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/envify/-/envify-4.1.0.tgz",- "integrity": "sha512-IKRVVoAYr4pIx4yIWNsz9mOsboxlNXiu7TNBnem/K/uTHdkyzXWDzHCK7UTolqBbgaBz0tQHsD3YNls0uIIjiw==",- "dependencies": {- "esprima": "^4.0.0",- "through": "~2.3.4"- },- "bin": {- "envify": "bin/envify"- }- },- "node_modules/algoliasearch/node_modules/events": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz",- "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=",- "engines": {- "node": ">=0.4.x"- }- },- "node_modules/algoliasearch/node_modules/isarray": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",- "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw=="- },- "node_modules/align-text": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz",- "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=",- "dependencies": {- "kind-of": "^3.0.2",- "longest": "^1.0.1",- "repeat-string": "^1.5.2"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/align-text/node_modules/kind-of": {- "version": "3.2.2",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",- "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",- "dependencies": {- "is-buffer": "^1.1.5"- },- "engines": {- "node": ">=0.10.0"- }- },"node_modules/alphanum-sort": {"version": "1.0.2","resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz",@@ -5237,18 +5144,6 @@"webvr-polyfill-dpdb": "^1.0.17"}},- "node_modules/center-align": {- "version": "0.1.3",- "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz",- "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=",- "dependencies": {- "align-text": "^0.1.3",- "lazy-cache": "^1.0.3"- },- "engines": {- "node": ">=0.10.0"- }- },"node_modules/chai": {"version": "3.5.0","resolved": "https://registry.npmjs.org/chai/-/chai-3.5.0.tgz",@@ -7185,11 +7080,6 @@"resolved": "https://registry.npmjs.org/es6-object-assign/-/es6-object-assign-1.1.0.tgz","integrity": "sha1-wsNYJlYkfDnqEHyx5mUrb58kUjw="},- "node_modules/es6-promise": {- "version": "4.2.8",- "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",- "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w=="- },"node_modules/es6-set": {"version": "0.1.5","resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz",@@ -7641,18 +7531,6 @@"node": ">=0.10.0"}},- "node_modules/esprima": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",- "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",- "bin": {- "esparse": "bin/esparse.js",- "esvalidate": "bin/esvalidate.js"- },- "engines": {- "node": ">=4"- }- },"node_modules/esprima-fb": {"version": "15001.1.0-dev-harmony-fb","resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-15001.1.0-dev-harmony-fb.tgz",@@ -8594,11 +8472,6 @@"node": ">=0.10.0"}},- "node_modules/foreach": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz",- "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k="- },"node_modules/form-data": {"version": "2.5.1","resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",@@ -11482,14 +11355,6 @@"xtend": "^4.0.0"}},- "node_modules/lazy-cache": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz",- "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=",- "engines": {- "node": ">=0.10.0"- }- },"node_modules/lcid": {"version": "2.0.0","resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz",@@ -11559,11 +11424,6 @@"node": ">=0.10.0"}},- "node_modules/load-script": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/load-script/-/load-script-1.0.0.tgz",- "integrity": "sha1-BJGTngvuVkPuSUp+PaPSuscMbKQ="- },"node_modules/loader-runner": {"version": "2.4.0","resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz",@@ -11703,14 +11563,6 @@"resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz","integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA=="},- "node_modules/longest": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz",- "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=",- "engines": {- "node": ">=0.10.0"- }- },"node_modules/loose-envify": {"version": "1.4.0","resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",@@ -16143,14 +15995,6 @@"node": ">=0.10.0"}},- "node_modules/reduce": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/reduce/-/reduce-1.0.2.tgz",- "integrity": "sha512-xX7Fxke/oHO5IfZSk77lvPa/7bjMh9BuCk4OOoX5XTXrM7s0Z+MkPfSDfz0q7r91BhhGSs8gii/VEN/7zhCPpQ==",- "dependencies": {- "object-keys": "^1.1.0"- }- },"node_modules/reduce-css-calc": {"version": "1.3.0","resolved": "https://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz",@@ -16437,17 +16281,6 @@"node": ">= 4"}},- "node_modules/right-align": {- "version": "0.1.3",- "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz",- "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=",- "dependencies": {- "align-text": "^0.1.1"- },- "engines": {- "node": ">=0.10.0"- }- },"node_modules/rimraf": {"version": "2.7.1","resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",@@ -19249,17 +19082,6 @@"resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz","integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw=="},- "node_modules/tunnel-agent": {- "version": "0.6.0",- "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",- "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",- "dependencies": {- "safe-buffer": "^5.0.1"- },- "engines": {- "node": "*"- }- },"node_modules/type": {"version": "1.2.0","resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz",@@ -19301,142 +19123,6 @@"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz","integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="},- "node_modules/uglify-es": {- "version": "3.3.10",- "resolved": "git+ssh://[email protected]/mishoo/UglifyJS2.git#569757d14dbbe04f66af65d7bf0600b3a75efd96",- "license": "BSD-2-Clause",- "dependencies": {- "commander": "~2.14.1",- "source-map": "~0.6.1"- },- "bin": {- "uglifyjs": "bin/uglifyjs"- },- "engines": {- "node": ">=0.8.0"- }- },- "node_modules/uglify-es/node_modules/commander": {- "version": "2.14.1",- "resolved": "https://registry.npmjs.org/commander/-/commander-2.14.1.tgz",- "integrity": "sha512-+YR16o3rK53SmWHU3rEM3tPAh2rwb1yPcQX5irVn7mb0gXbwuCCrnkbV5+PBfETdfg1vui07nM6PCG1zndcjQw=="- },- "node_modules/uglify-es/node_modules/source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/uglify-js": {- "name": "uglify-es",- "version": "3.3.10",- "resolved": "git+ssh://[email protected]/mishoo/UglifyJS2.git#569757d14dbbe04f66af65d7bf0600b3a75efd96",- "integrity": "sha512-875XHREePaji3eGpJp0mqveaZq03AoswEHsFZj/oIUYd7RRODt6rkTePxR6QA2/Il1nzKtTq5dmxmu6bAnxsFg==",- "license": "BSD-2-Clause",- "dependencies": {- "commander": "~2.14.1",- "source-map": "~0.6.1"- },- "bin": {- "uglifyjs": "bin/uglifyjs"- },- "engines": {- "node": ">=0.8.0"- }- },- "node_modules/uglify-js/node_modules/commander": {- "version": "2.14.1",- "resolved": "https://registry.npmjs.org/commander/-/commander-2.14.1.tgz",- "integrity": "sha512-+YR16o3rK53SmWHU3rEM3tPAh2rwb1yPcQX5irVn7mb0gXbwuCCrnkbV5+PBfETdfg1vui07nM6PCG1zndcjQw=="- },- "node_modules/uglify-js/node_modules/source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/uglify-to-browserify": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz",- "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=",- "optional": true- },- "node_modules/uglifyjs-webpack-plugin": {- "version": "0.4.6",- "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz",- "integrity": "sha1-uVH0q7a9YX5m9j64kUmOORdj4wk=",- "hasInstallScript": true,- "dependencies": {- "source-map": "^0.5.6",- "uglify-js": "^2.8.29",- "webpack-sources": "^1.0.1"- },- "engines": {- "node": ">=4.3.0 <5.0.0 || >=5.10"- },- "peerDependencies": {- "webpack": "^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3.0.0"- }- },- "node_modules/uglifyjs-webpack-plugin/node_modules/camelcase": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",- "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/uglifyjs-webpack-plugin/node_modules/cliui": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz",- "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=",- "dependencies": {- "center-align": "^0.1.1",- "right-align": "^0.1.1",- "wordwrap": "0.0.2"- }- },- "node_modules/uglifyjs-webpack-plugin/node_modules/uglify-js": {- "version": "2.8.29",- "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz",- "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=",- "dependencies": {- "source-map": "~0.5.1",- "yargs": "~3.10.0"- },- "bin": {- "uglifyjs": "bin/uglifyjs"- },- "engines": {- "node": ">=0.8.0"- },- "optionalDependencies": {- "uglify-to-browserify": "~1.0.0"- }- },- "node_modules/uglifyjs-webpack-plugin/node_modules/wordwrap": {- "version": "0.0.2",- "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz",- "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=",- "engines": {- "node": ">=0.4.0"- }- },- "node_modules/uglifyjs-webpack-plugin/node_modules/yargs": {- "version": "3.10.0",- "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz",- "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=",- "dependencies": {- "camelcase": "^1.0.2",- "cliui": "^2.1.0",- "decamelize": "^1.0.0",- "window-size": "0.1.0"- }- },"node_modules/ultron": {"version": "1.0.2","resolved": "https://registry.npmjs.org/ultron/-/ultron-1.0.2.tgz",@@ -20804,14 +20490,6 @@"resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz","integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho="},- "node_modules/window-size": {- "version": "0.1.0",- "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz",- "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=",- "engines": {- "node": ">= 0.8.0"- }- },"node_modules/word-wrap": {"version": "1.2.3","resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",@@ -23462,9 +23140,9 @@"integrity": "sha512-54ZRnsyhSfXiQmvWYC3RliVOjfUP3MtL7AL1OeaMx6WSUs2yTfUErrlKEBbEy+CJSG01p0Ev03Unl7wQuchEBw=="},"aframe-atlas-uvs-component": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/aframe-atlas-uvs-component/-/aframe-atlas-uvs-component-2.1.0.tgz",- "integrity": "sha512-+zUnGMcj20Lkbth1/nWJjJoKsoc3jOTj8tuD3vy5BjWDha3cpQhBslxekvFL8LcAl88yv0WwD1kfkmLKQKcdvw=="+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/aframe-atlas-uvs-component/-/aframe-atlas-uvs-component-3.0.0.tgz",+ "integrity": "sha512-zoGFRsPTyXjq9hmEkJ/QiC/Pr9FmQxBm93Td2j7BE0yZ05H3z9KZwLm/gweRKPDYfc6PdV5SVtpYdBnRfjhH2A=="},"aframe-audioanalyser-component": {"version": "6.1.0",@@ -23741,11 +23419,6 @@"debug": "4"}},- "agentkeepalive": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-2.2.0.tgz",- "integrity": "sha1-xdG9SxKQCPEWPyNvhuX66iAm4u8="- },"ajv": {"version": "8.11.2","resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.2.tgz",@@ -23784,77 +23457,6 @@"integrity": "sha1-MU3QpLM2j609/NxU7eYXG4htrzw=","requires": {}},- "algoliasearch": {- "version": "3.35.1",- "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-3.35.1.tgz",- "integrity": "sha512-K4yKVhaHkXfJ/xcUnil04xiSrB8B8yHZoFEhWNpXg23eiCnqvTZw1tn/SqvdsANlYHLJlKl0qi3I/Q2Sqo7LwQ==",- "requires": {- "agentkeepalive": "^2.2.0",- "debug": "^2.6.9",- "envify": "^4.0.0",- "es6-promise": "^4.1.0",- "events": "^1.1.0",- "foreach": "^2.0.5",- "global": "^4.3.2",- "inherits": "^2.0.1",- "isarray": "^2.0.1",- "load-script": "^1.0.0",- "object-keys": "^1.0.11",- "querystring-es3": "^0.2.1",- "reduce": "^1.0.1",- "semver": "^5.1.0",- "tunnel-agent": "^0.6.0"- },- "dependencies": {- "debug": {- "version": "2.6.9",- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",- "requires": {- "ms": "2.0.0"- }- },- "envify": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/envify/-/envify-4.1.0.tgz",- "integrity": "sha512-IKRVVoAYr4pIx4yIWNsz9mOsboxlNXiu7TNBnem/K/uTHdkyzXWDzHCK7UTolqBbgaBz0tQHsD3YNls0uIIjiw==",- "requires": {- "esprima": "^4.0.0",- "through": "~2.3.4"- }- },- "events": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz",- "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ="- },- "isarray": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",- "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw=="- }- }- },- "align-text": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz",- "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=",- "requires": {- "kind-of": "^3.0.2",- "longest": "^1.0.1",- "repeat-string": "^1.5.2"- },- "dependencies": {- "kind-of": {- "version": "3.2.2",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",- "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",- "requires": {- "is-buffer": "^1.1.5"- }- }- }- },"alphanum-sort": {"version": "1.0.2","resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz",@@ -25223,15 +24825,6 @@"webvr-polyfill-dpdb": "^1.0.17"}},- "center-align": {- "version": "0.1.3",- "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz",- "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=",- "requires": {- "align-text": "^0.1.3",- "lazy-cache": "^1.0.3"- }- },"chai": {"version": "3.5.0","resolved": "https://registry.npmjs.org/chai/-/chai-3.5.0.tgz",@@ -26890,11 +26483,6 @@"resolved": "https://registry.npmjs.org/es6-object-assign/-/es6-object-assign-1.1.0.tgz","integrity": "sha1-wsNYJlYkfDnqEHyx5mUrb58kUjw="},- "es6-promise": {- "version": "4.2.8",- "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",- "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w=="- },"es6-set": {"version": "0.1.5","resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz",@@ -27265,11 +26853,6 @@"acorn-jsx": "^3.0.0"}},- "esprima": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",- "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="- },"esprima-fb": {"version": "15001.1.0-dev-harmony-fb","resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-15001.1.0-dev-harmony-fb.tgz",@@ -28034,11 +27617,6 @@"for-in": "^1.0.1"}},- "foreach": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz",- "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k="- },"form-data": {"version": "2.5.1","resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",@@ -30391,11 +29969,6 @@"xtend": "^4.0.0"}},- "lazy-cache": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz",- "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4="- },"lcid": {"version": "2.0.0","resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz",@@ -30455,11 +30028,6 @@}}},- "load-script": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/load-script/-/load-script-1.0.0.tgz",- "integrity": "sha1-BJGTngvuVkPuSUp+PaPSuscMbKQ="- },"loader-runner": {"version": "2.4.0","resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz",@@ -30577,11 +30145,6 @@"resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz","integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA=="},- "longest": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz",- "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc="- },"loose-envify": {"version": "1.4.0","resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",@@ -34224,14 +33787,6 @@"strip-indent": "^1.0.1"}},- "reduce": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/reduce/-/reduce-1.0.2.tgz",- "integrity": "sha512-xX7Fxke/oHO5IfZSk77lvPa/7bjMh9BuCk4OOoX5XTXrM7s0Z+MkPfSDfz0q7r91BhhGSs8gii/VEN/7zhCPpQ==",- "requires": {- "object-keys": "^1.1.0"- }- },"reduce-css-calc": {"version": "1.3.0","resolved": "https://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz",@@ -34457,14 +34012,6 @@"resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz","integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs="},- "right-align": {- "version": "0.1.3",- "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz",- "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=",- "requires": {- "align-text": "^0.1.1"- }- },"rimraf": {"version": "2.7.1","resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",@@ -36834,14 +36381,6 @@"resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz","integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw=="},- "tunnel-agent": {- "version": "0.6.0",- "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",- "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",- "requires": {- "safe-buffer": "^5.0.1"- }- },"type": {"version": "1.2.0","resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz",@@ -36874,106 +36413,6 @@"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz","integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="},- "uglify-es": {- "version": "git+ssh://[email protected]/mishoo/UglifyJS2.git#569757d14dbbe04f66af65d7bf0600b3a75efd96",- "from": "uglify-es@git://github.com/mishoo/UglifyJS2.git#harmony",- "requires": {- "commander": "~2.14.1",- "source-map": "~0.6.1"- },- "dependencies": {- "commander": {- "version": "2.14.1",- "resolved": "https://registry.npmjs.org/commander/-/commander-2.14.1.tgz",- "integrity": "sha512-+YR16o3rK53SmWHU3rEM3tPAh2rwb1yPcQX5irVn7mb0gXbwuCCrnkbV5+PBfETdfg1vui07nM6PCG1zndcjQw=="- },- "source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="- }- }- },- "uglify-js": {- "version": "git+ssh://[email protected]/mishoo/UglifyJS2.git#569757d14dbbe04f66af65d7bf0600b3a75efd96",- "integrity": "sha512-875XHREePaji3eGpJp0mqveaZq03AoswEHsFZj/oIUYd7RRODt6rkTePxR6QA2/Il1nzKtTq5dmxmu6bAnxsFg==",- "from": "uglify-js@git://github.com/mishoo/UglifyJS2#harmony",- "requires": {- "commander": "~2.14.1",- "source-map": "~0.6.1"- },- "dependencies": {- "commander": {- "version": "2.14.1",- "resolved": "https://registry.npmjs.org/commander/-/commander-2.14.1.tgz",- "integrity": "sha512-+YR16o3rK53SmWHU3rEM3tPAh2rwb1yPcQX5irVn7mb0gXbwuCCrnkbV5+PBfETdfg1vui07nM6PCG1zndcjQw=="- },- "source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="- }- }- },- "uglify-to-browserify": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz",- "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=",- "optional": true- },- "uglifyjs-webpack-plugin": {- "version": "0.4.6",- "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz",- "integrity": "sha1-uVH0q7a9YX5m9j64kUmOORdj4wk=",- "requires": {- "source-map": "^0.5.6",- "uglify-js": "^2.8.29",- "webpack-sources": "^1.0.1"- },- "dependencies": {- "camelcase": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",- "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk="- },- "cliui": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz",- "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=",- "requires": {- "center-align": "^0.1.1",- "right-align": "^0.1.1",- "wordwrap": "0.0.2"- }- },- "uglify-js": {- "version": "2.8.29",- "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz",- "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=",- "requires": {- "source-map": "~0.5.1",- "uglify-to-browserify": "~1.0.0",- "yargs": "~3.10.0"- }- },- "wordwrap": {- "version": "0.0.2",- "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz",- "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8="- },- "yargs": {- "version": "3.10.0",- "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz",- "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=",- "requires": {- "camelcase": "^1.0.2",- "cliui": "^2.1.0",- "decamelize": "^1.0.0",- "window-size": "0.1.0"- }- }- }- },"ultron": {"version": "1.0.2","resolved": "https://registry.npmjs.org/ultron/-/ultron-1.0.2.tgz",@@ -38054,11 +37493,6 @@"resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz","integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho="},- "window-size": {- "version": "0.1.0",- "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz",- "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0="- },"word-wrap": {"version": "1.2.3","resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",diff --git a/rider/src/constants/colors.js b/rider/src/constants/colors.jsindex 9adc32d5b..aba5338d5 100644--- a/rider/src/constants/colors.js+++ b/rider/src/constants/colors.js@@ -113,7 +113,7 @@ COLORS.options = Object.keys(COLORS.schemes);if (typeof localStorage === 'undefined') {COLORS.initial = 'default';} else {- COLORS.initial = COLORS.schemes[localStorage.getItem('colorScheme') || 'default'];+ COLORS.initial = COLORS.schemes[localStorage.getItem('colorScheme') || 'blue'];}module.exports = COLORS;diff --git a/rider/src/index.css b/rider/src/index.cssindex bc9fc4070..33615dbed 100644--- a/rider/src/index.css+++ b/rider/src/index.css@@ -57,50 +57,6 @@ html {100% { opacity: 1; }}-#subscribeForm {- background: rgba(0, 0, 0, 0.75);- box-shadow: 0px 0 1px #888;- bottom: 0;- color: #FAFAFA;- font-family: monospace;- height: 100px;- left: 0;- margin: 0;- min-width: 400px;- padding: 5px 20px 0 5px;- position: fixed;- text-align: center;- z-index: 9999999;-}--#subscribeForm h2 {- font-size: 16px;- font-weight: 300;-}--#subscribeForm #subscribeClose {- cursor: pointer;- font-size: 26px;- font-weight: 600;- position: absolute;- top: 0;- right: 5px;-}--input[type="email"] {- background: #FAFAFA;- border: 0;- border-radius: 5px;- color: $gray;- height: 40px;- padding-left: 20px;- margin-right: 10px;- max-width: 480px;- text-transform: uppercase;- vertical-align: middle;- width: 50%;-}-button {border: 0;background: #FF74b8;diff --git a/rider/src/index.js b/rider/src/index.jsindex 75a5bb9db..b006c8a24 100644--- a/rider/src/index.js+++ b/rider/src/index.js@@ -35,82 +35,6 @@ require('./scene.html');if (module.hot) { module.hot.accept(); }-document.addEventListener('DOMContentLoaded', () => {- initSubscribeForm();-});--/**- * Init XHR handler to subscribe.- */-function initSubscribeForm () {- const form = document.querySelector('form');- if (!form) { return; }-- if (localStorage.getItem('subscribeClosed')) {- const formParent = form.parentNode;- formParent.parentNode.removeChild(formParent);- return;- }-- document.getElementById('subscribeClose').addEventListener('click', () => {- const formParent = form.parentNode;- formParent.parentNode.removeChild(formParent);- localStorage.setItem('subscribeClosed', true);- });-- const button = form.querySelector('.submit');- const input = form.querySelector('input[type="email"]');- const newsletterHeader = document.querySelector('#subscribeForm > h2');-- let originalHeaderText = '';- if (newsletterHeader) {- originalHeaderText = newsletterHeader.innerHTML;- }-- form.addEventListener('submit', evt => {- evt.preventDefault();-- const xhr = new XMLHttpRequest();- let endpoint = 'http://localhost:5000/mail/subscribe';- if (process.env.NODE_ENV === 'production') {- endpoint = 'https://three.ws/api/subscribe';- }- xhr.open('POST', endpoint);-- xhr.addEventListener('load', () => {- if (parseInt(xhr.status, 10) !== 200) {- window.location.href = 'https://three.ws/subscribe/';- }- if (button) {- button.disabled = true;- button.innerHTML = 'Subscribed!';- }- if (newsletterHeader) {- newsletterHeader.innerHTML = 'Successfully subscribed, thank you!';- }- });-- xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');- xhr.send(JSON.stringify({- email: document.querySelector('[name="email"]').value,- source: 'threews'- }));-- return false;- });-- if (button) {- input.addEventListener('keydown', () => {- if (button.hasAttribute('disabled')) {- button.innerHTML = 'Subscribe';- button.removeAttribute('disabled');- }- if (newsletterHeader && originalHeaderText) {- newsletterHeader.innerHTML = originalHeaderText;- }- });- }-}// Redirect to HTTPS in production.if (window.location.protocol === 'http:' && !window.location.host.startsWith('localhost')) {diff --git a/rider/src/state/index.js b/rider/src/state/index.jsindex 93885634d..f033c16fd 100644--- a/rider/src/state/index.js+++ b/rider/src/state/index.js@@ -37,7 +37,7 @@ const DEBUG_CHALLENGE = {const SKIP_INTRO = AFRAME.utils.getUrlParameter('skipintro') === 'true';-const colorScheme = localStorage.getItem('colorScheme') || 'default';+const colorScheme = localStorage.getItem('colorScheme') || 'blue';let favorites = localStorage.getItem('favorites-v2');if (favorites) {diff --git a/rider/src/templates/news.html b/rider/src/templates/news.htmlindex d929c4052..84fc5f031 100644--- a/rider/src/templates/news.html+++ b/rider/src/templates/news.html@@ -1,7 +1,7 @@{% set text = 'three.ws\n\n' %}-{% set text = text + 'Open source VR music visualization experience built in HTML and JavaScript running on the Web.\n\n' %}-{% set text = text + 'Song maps sourced from beatsaver.com. Supports most browsers and headsets (including Quest).\n\n' %}-{% set text = text + 'Chat with us on three.ws/discord' %}+{% set text = text + 'Give your AI a body. three.ws is an open-source, browser-native 3D AI agent platform.\n\n' %}+{% set text = text + 'Drop a GLB file, add an LLM brain, register on-chain, and embed anywhere — no plugins, no installs.\n\n' %}+{% set text = text + 'Visit three.ws to build your agent.' %}<a-entityid="news"diff --git a/rider/webpack.config.js b/rider/webpack.config.jsindex 20de96159..9b6ffa9ab 100644--- a/rider/webpack.config.js+++ b/rider/webpack.config.js@@ -84,7 +84,7 @@ module.exports = {use: ['style-loader', 'css-loader']},{- test: /\.(png|jpg)/,+ test: /\.(png|jpg|svg)/,loader: 'url-loader'}]diff --git a/src/element.js b/src/element.jsindex c2396bbba..c5c6e3d80 100644--- a/src/element.js+++ b/src/element.js@@ -270,6 +270,37 @@ const BASE_STYLE = `color: rgba(0, 0, 0, 0.55);text-shadow: none;}+ /* Transparent floating: remove box chrome so avatar composites over the page */+ :host([mode="floating"][background="transparent"]) {+ box-shadow: none;+ border-radius: 0;+ overflow: visible;+ }+ /* Drag handle — visible in floating mode, used to reposition the widget */+ .drag-handle {+ display: none;+ position: absolute;+ top: 0;+ left: 0;+ right: 0;+ height: 24px;+ cursor: grab;+ z-index: 15;+ touch-action: none;+ }+ .drag-handle:active { cursor: grabbing; }+ .drag-handle::after {+ content: '';+ position: absolute;+ top: 7px;+ left: 50%;+ transform: translateX(-50%);+ width: 32px;+ height: 3px;+ border-radius: 2px;+ background: rgba(255,255,255,0.3);+ }+ :host([mode="floating"]) .drag-handle { display: block; }`;class Agent3DElement extends HTMLElement {@@ -400,6 +431,13 @@ class Agent3DElement extends HTMLElement {this.shadowRoot.appendChild(loading);this._loadingEl = loading;+ // Drag handle — floating mode only (CSS hides it otherwise)+ const dragHandle = document.createElement('div');+ dragHandle.className = 'drag-handle';+ dragHandle.setAttribute('aria-hidden', 'true');+ this.shadowRoot.appendChild(dragHandle);+ this._dragHandleEl = dragHandle;+// Optional name-plate overlay. Hidden until a name is set on boot, and// toggled off entirely when the host carries `name-plate="off"`. The CSS// hides `.name-plate:empty`, so we don't have to manage `hidden` here.@@ -581,12 +619,15 @@ class Agent3DElement extends HTMLElement {if (!v) return;const mode = this.getAttribute('background') || 'transparent';if (mode === 'transparent') {+ if (v.state) v.state.transparentBg = true;v.renderer?.setClearAlpha?.(0);if (v.scene) v.scene.background = null;} else if (mode === 'dark') {+ if (v.state) v.state.transparentBg = false;v.renderer?.setClearAlpha?.(1);if (v.scene?.background?.set) v.scene.background.set('#0b0d10');} else if (mode === 'light') {+ if (v.state) v.state.transparentBg = false;v.renderer?.setClearAlpha?.(1);if (v.scene?.background?.set) v.scene.background.set('#f5f5f5');}@@ -700,6 +741,9 @@ class Agent3DElement extends HTMLElement {this._updatePillState(this._mqNarrow.matches);}+ // Free drag for floating mode+ if (mode === 'floating') this._setupDrag();+// Swipe-down to close the bottom-sheet (CSS transitions handle the animation)let touchStartY = 0;this.shadowRoot.addEventListener(@@ -721,6 +765,49 @@ class Agent3DElement extends HTMLElement {);}+ _setupDrag() {+ if (!this._dragHandleEl) return;+ let dragging = false;+ let startX, startY, startLeft, startTop;++ const onPointerMove = (e) => {+ if (!dragging) return;+ const dx = e.clientX - startX;+ const dy = e.clientY - startY;+ const w = this.offsetWidth;+ const h = this.offsetHeight;+ const newLeft = Math.max(0, Math.min(window.innerWidth - w, startLeft + dx));+ const newTop = Math.max(0, Math.min(window.innerHeight - h, startTop + dy));+ this.style.left = newLeft + 'px';+ this.style.top = newTop + 'px';+ };++ const onPointerUp = () => {+ if (!dragging) return;+ dragging = false;+ document.removeEventListener('pointermove', onPointerMove);+ document.removeEventListener('pointerup', onPointerUp);+ };++ this._dragHandleEl.addEventListener('pointerdown', (e) => {+ e.preventDefault();+ dragging = true;+ const rect = this.getBoundingClientRect();+ startX = e.clientX;+ startY = e.clientY;+ startLeft = rect.left;+ startTop = rect.top;+ // Switch to top/left so drag math works correctly+ this.style.right = '';+ this.style.bottom = '';+ this.style.left = startLeft + 'px';+ this.style.top = startTop + 'px';+ this.style.transform = '';+ document.addEventListener('pointermove', onPointerMove);+ document.addEventListener('pointerup', onPointerUp);+ });+ }+_updatePillState(narrow) {if (narrow && !this._pillActive) {this._pillActive = true;