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
style(rules): fix em-dash violations in the war/souvenir test and page additions
nirholasdeadbb0fffb9
diff --git a/pages/play/war.html b/pages/play/war.htmlindex 286d01409..d17480c8f 100644--- a/pages/play/war.html+++ b/pages/play/war.html@@ -1,10 +1,10 @@<!doctype html><html lang="en" data-theme="dark"><head>- <style>/* three.ws hidden-guard — make the `hidden` attribute authoritative; see scripts/lib/hidden-guard.mjs */[hidden]{display:none!important}</style>+ <style>/* three.ws hidden-guard: make the `hidden` attribute authoritative; see scripts/lib/hidden-guard.mjs */[hidden]{display:none!important}</style><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />- <title>Coin Wars arena — fight for your community · three.ws</title>+ <title>Coin Wars arena: fight for your community · three.ws</title><meta name="description" content="The live Coin Wars arena: two coin communities meet in one 3D battlefield, fight to the kill cap, and the result lands on the war league ladder. You fight for the coin you hold." /><meta property="og:title" content="Coin Wars arena · three.ws" /><meta property="og:description" content="Two coin communities, one battlefield. Hold the coin, enlist from your world's war portal, and fight for the ladder." />@@ -43,7 +43,7 @@</span></div><div class="war-mid">- <span id="clock" class="war-clock">—</span>+ <span id="clock" class="war-clock">-</span><span id="cap" class="war-cap"></span><span class="war-coin"><img id="coin-img" class="war-coin-img" alt="" hidden />@@ -75,7 +75,7 @@<button id="attack" class="war-attack no-orbit" type="button">Fire<small>space</small></button><button id="leave" class="war-leave no-orbit" type="button">Leave</button></div>- <p id="downed" class="war-downed" role="status" hidden>You are down — respawning shortly.</p>+ <p id="downed" class="war-downed" role="status" hidden>You are down, respawning shortly.</p></div><!-- Terminal states. Both are designed cards with the one way out. -->diff --git a/scripts/play-souvenir-e2e.mjs b/scripts/play-souvenir-e2e.mjsindex f53869524..e2f9ed43f 100644--- a/scripts/play-souvenir-e2e.mjs+++ b/scripts/play-souvenir-e2e.mjs@@ -16,7 +16,7 @@// The event config is served from THIS process (a throwaway static endpoint) so// nothing in the repo is edited to fake a live window, and the window can be// opened and closed between phases of one run. Point the game server at it with-// EVENT_CONFIG_URL — see below.+// EVENT_CONFIG_URL, see below.//// Requires vite on :3000 and colyseus on :2567 with the config override://@@ -47,7 +47,7 @@ const results = [];function check(name, ok, detail = '') {results.push({ name, ok, detail });- console.log(`${at()} ${ok ? 'PASS' : 'FAIL'} ${name}${detail ? ` — ${detail}` : ''}`);+ console.log(`${at()} ${ok ? 'PASS' : 'FAIL'} ${name}${detail ? `: ${detail}` : ''}`);return ok;}@@ -247,7 +247,7 @@ async function main() {}, { timeout: 30_000, arg: [SOUVENIR_ID] });check('live window: souvenir published on the shared schema', onWire?.ok === true, JSON.stringify(onWire));- // A peer must actually see it — that is what a souvenir is for.+ // A peer must actually see it, that is what a souvenir is for.const bob = await openPlayer(browser, 'bob');players.push(bob);// `_cosWire` is the loadout string the peer's RemotePlayer last rendered, so@@ -342,7 +342,7 @@ async function main() {const failed = results.filter((r) => !r.ok);console.log(`\n${at()} ${results.length - failed.length}/${results.length} checks passed`);if (failed.length) {- for (const f of failed) console.log(` FAIL ${f.name} — ${f.detail}`);+ for (const f of failed) console.log(` FAIL ${f.name}: ${f.detail}`);process.exit(1);}}diff --git a/src/play/war.css b/src/play/war.cssindex 9a3f7e242..1b15adab5 100644--- a/src/play/war.css+++ b/src/play/war.css@@ -1,4 +1,4 @@-/* Coin Wars arena (/play/war) — the battle HUD over the 3D field.+/* Coin Wars arena (/play/war): the battle HUD over the 3D field.** A fighting HUD has one job: never get between the player and the fight. So it* lives at the screen edges, uses opaque-enough panels to stay readable over adiff --git a/tests/meetup-event-ui.test.js b/tests/meetup-event-ui.test.jsindex cce9a6ae3..1e862296e 100644--- a/tests/meetup-event-ui.test.js+++ b/tests/meetup-event-ui.test.js@@ -1,6 +1,6 @@// @vitest-environment jsdom//-// Meetup event layer DOM contract — what /play actually paints during a live+// Meetup event layer DOM contract: what /play actually paints during a live// community event. The schedule math is covered in meetup-schedule.test.js;// these tests lock the view: when the chip mounts (and when it must NOT), the// agenda drawer's active/done marking, the one-shot go-live moment (includingdiff --git a/tests/play-account-identity.test.js b/tests/play-account-identity.test.jsindex 227d0cc7c..03cee7ba2 100644--- a/tests/play-account-identity.test.js+++ b/tests/play-account-identity.test.js@@ -63,7 +63,7 @@ describe('guest-token', () => {});});-describe('WalkRoom._resolveIdentity — who may claim a saved profile', () => {+describe('WalkRoom._resolveIdentity: who may claim a saved profile', () => {let room;beforeEach(() => {room = makeRoom();diff --git a/tests/play-deeplink-safety.test.js b/tests/play-deeplink-safety.test.jsindex cf89792d8..11f2e9a0f 100644--- a/tests/play-deeplink-safety.test.js+++ b/tests/play-deeplink-safety.test.js@@ -3,13 +3,13 @@// part of it is untrusted text. Three defences are covered here, each of which// failed in a real audit of the live surface://-// 1. cssBgImage() — a coin image lands inside a CSS `url("…")`, so a+// 1. cssBgImage(): a coin image lands inside a CSS `url("…")`, so a// crafted value must not be able to close the// declaration and paint its own full-screen overlay.-// 2. isPlausibleMint() — a malformed mint used to build a complete, convincing+// 2. isPlausibleMint(): a malformed mint used to build a complete, convincing// world keyed on garbage instead of saying the link was// broken.-// 3. clampParam() — name/symbol are display-only and must be stripped of+// 3. clampParam(): name/symbol are display-only and must be stripped of// control characters and cut to the room server's caps.//// The three helpers are module-private (they guard call sites inside very largediff --git a/tests/war-matchmaking.test.js b/tests/war-matchmaking.test.jsindex 6457deb86..a8e650e3c 100644--- a/tests/war-matchmaking.test.js+++ b/tests/war-matchmaking.test.js@@ -4,7 +4,7 @@// (api/_lib/war-ticket.js signs, multiplayer/src/war-ticket.js verifies).//// Both are dependency-free, so they run without Redis, a Colyseus room, or a-// browser — the same isolation clash.js and war-standings.js already rely on.+// browser, the same isolation clash.js and war-standings.js already rely on.import { describe, it, expect } from 'vitest';import {@@ -15,7 +15,7 @@ import { signWarTicket } from '../api/_lib/war-ticket.js';import { verifyWarTicket } from '../multiplayer/src/war-ticket.js';// Two synthetic mints of a realistic length. ALPHA sorts below BRAVO, so ALPHA is-// always faction A — that ordering is the whole point of the key format.+// always faction A, that ordering is the whole point of the key format.const ALPHA = 'ALPHAsynthetic11111111111111111111111111111';const BRAVO = 'BRAVOsynthetic11111111111111111111111111111';const CHARLIE = 'CHARLIEsynthetic111111111111111111111111111';