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(coin3d,coincommunities): land the world panel and picker follow-ups
nirholase19135155ccd
diff --git a/src/coin3d/main.js b/src/coin3d/main.jsindex 9f176f094..2938fcb88 100644--- a/src/coin3d/main.js+++ b/src/coin3d/main.js@@ -816,6 +816,7 @@ const tape = {timer: null,netFlow: 0, // running USD net flow over the sessionprimed: false,+ misses: 0, // consecutive failed polls};async function pollTrades(mintAddr) {@@ -823,7 +824,8 @@ async function pollTrades(mintAddr) {const r = await fetch(`/api/pump/dex-trades?mint=${encodeURIComponent(mintAddr)}&limit=40`, {signal: AbortSignal.timeout(9000),});- if (!r.ok) return;+ if (!r.ok) throw new Error(`dex-trades ${r.status}`);+ tape.misses = 0;const body = await r.json();const trades = Array.isArray(body?.trades) ? body.trades : [];// Oldest-first so newest ends up at the top of the tape and pulses fire@@ -835,7 +837,11 @@ async function pollTrades(mintAddr) {const stale = body?.stale === true;updateLiveDot(stale, trades.length > 0);- if (!fresh.length) return;+ if (!fresh.length) {+ // Restores the "watching" message if an earlier outage replaced it.+ if (!tape.rows.length) renderTape();+ return;+ }for (const t of fresh) tape.seen.add(t.signature);// Keep the seen-set from growing without bound over a long session.if (tape.seen.size > 4000) tape.seen = new Set([...tape.seen].slice(-2000));@@ -851,7 +857,17 @@ async function pollTrades(mintAddr) {tape.primed = true;renderTape();} catch {- // Tape is best-effort; a blip just skips this tick.+ // A single blip just skips a tick. A sustained outage gets said out loud,+ // so the tape never sits on "watching for swaps" while nothing is watching.+ tape.misses += 1;+ updateLiveDot(true, tape.rows.length > 0);+ if (tape.misses >= 2 && !tape.rows.length) {+ const list = document.getElementById('c3d-tape-list');+ if (list) {+ list.innerHTML =+ '<div class="c3d-tape-empty">Live trades are unavailable right now. Retrying every few seconds.</div>';+ }+ }}}diff --git a/src/constellation/main.js b/src/constellation/main.jsindex 9d4fb8863..67fd84ca5 100644--- a/src/constellation/main.js+++ b/src/constellation/main.js@@ -75,6 +75,11 @@ let signedIn = false; // resolved once at boot; gates the Granite analysis callfunction setStatus(kind, html) {statusEl.classList.remove('live', 'off', 'err');if (kind) statusEl.classList.add(kind);+ // "Starting…" is an annotated placeholder, and the i18n runtime re-applies+ // translations asynchronously once its catalog lands. Dropping the annotation+ // before the first live write stops a late pass from resetting the pipeline+ // status back to "Starting…" after the galaxy is already up.+ statusText.removeAttribute('data-i18n');statusText.innerHTML = html;}function hideOverlay() {diff --git a/src/game/coincommunities-ui.js b/src/game/coincommunities-ui.jsindex fa5bd5f7c..af6c7b7cd 100644--- a/src/game/coincommunities-ui.js+++ b/src/game/coincommunities-ui.js@@ -1391,7 +1391,14 @@ export class CommunityUI {// so anchoring there stranded the Holders badge in the middle of the// card, floating over the seam. Hang them off the card instead, which// is also position:relative, so they land on its real top corners.- el('div', { class: 'cc-card-img', style: cssBgImage(c.image) }, featured ? [mono] : [mono, liveBadge, holdersBadge, popPill]),+ // The monogram is a layer BELOW the artwork, not a fallback swapped in on+ // error: a CSS background cannot report a load failure, so the mark simply+ // stays behind the image and shows through when there is no image to paint.+ el('div', { class: 'cc-card-img' }, [+ mono,+ el('div', { class: 'cc-card-art', style: cssBgImage(c.image) }),+ ...(featured ? [] : [liveBadge, holdersBadge, popPill]),+ ]),el('div', { class: 'cc-card-body' }, [el('div', { class: 'cc-card-name', text: c.name || 'Unnamed coin' }),el('div', { class: 'cc-card-meta' }, [@@ -3152,6 +3159,9 @@ export class CommunityUI {this.hud.hidden = true;this.lobby.hidden = false;this._renderGrid();+ // Coming back out of a world, the headcounts on the cards are as old as the+ // session that just ended. Re-read them now rather than at the next tick.+ this._readPopulation();}setStatus(state, error = null) {diff --git a/src/game/coincommunities.css b/src/game/coincommunities.cssindex 6921c5135..3168645cb 100644--- a/src/game/coincommunities.css+++ b/src/game/coincommunities.css@@ -881,10 +881,11 @@ html[data-bg="transparent"] #cc-lobby {/* Identity mark under the artwork: visible only where the art is missing or thegateway failed, so a card is never a blank grey rectangle. */.cc-card-mono {- position: absolute; inset: 0; z-index: 0; display: grid; place-items: center;+ position: absolute; inset: 0; display: grid; place-items: center;font-size: 40px; font-weight: 800; letter-spacing: 0.02em;- color: rgba(255, 255, 255, 0.14); background: var(--cc-bg2);+ color: rgba(255, 255, 255, 0.16); background: var(--cc-bg2);}+.cc-card-art { position: absolute; inset: 0; background: center/cover no-repeat; }/* Live headcount over the artwork. Hidden at zero (see _coinCard): an emptyworld is normal and "0 inside" is noise, not information. */.cc-card-pop {@@ -911,8 +912,19 @@ html[data-bg="transparent"] #cc-lobby {@keyframes cc-blink { 50% { opacity: 0.3; } }.cc-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }.cc-card-name { font-weight: 700; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }-.cc-card-meta { display: flex; align-items: center; gap: 8px; color: var(--cc-dim); font-size: 12px; font-variant-numeric: tabular-nums; }+.cc-card-meta { display: flex; align-items: center; gap: 8px; color: var(--cc-dim); font-size: 12px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }.cc-card-sym { color: var(--cc-text); font-weight: 700; }+.cc-card-age { color: var(--cc-faint); }+/* Coin signals: shown only when true of that coin (NEW under a day old, a+ completed bonding curve, a board with replies on it). */+.cc-card-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; }+.cc-tag {+ font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;+ padding: 3px 7px; border-radius: var(--cc-radius-sm);+ color: var(--cc-text); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--cc-edge-soft);+}+.cc-tag-new { color: var(--cc-ink); background: #fff; border-color: #fff; }+.cc-tag-quiet { color: var(--cc-faint); background: none; }/* Always on screen, in one of two weights. Hiding it until hover reserved itsfull height anyway, so every card carried a card-wide band of dead spaceunder the meta row and the grid read as a wall of unfinished tiles. It also