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
IRL lock button HTML + styles; sniper intel-confirmed form fields
nirholascfd568d51502
diff --git a/pages/irl.html b/pages/irl.htmlindex ae702c824..a7e29b25b 100644--- a/pages/irl.html+++ b/pages/irl.html@@ -352,6 +352,12 @@.irl-pill-btn:disabled { opacity: 0.35; cursor: not-allowed; }#irl-clear-btn { color: var(--danger); border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.06); }#irl-clear-btn:hover { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.5); }+ #irl-lock-btn.is-active {+ color: #fbbf24;+ border-color: rgba(251,191,36,0.45);+ background: rgba(251,191,36,0.1);+ }+ #irl-lock-btn.is-active:hover { background: rgba(251,191,36,0.18); }/* Object picker — slides up above the secondary row */#irl-picker {@@ -498,6 +504,10 @@<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="4"/><path d="M4 20c0-4 3.582-7 8-7s8 3 8 7"/></svg>Avatar</button>+ <button class="irl-pill-btn" id="irl-lock-btn" type="button" aria-pressed="false" aria-label="Lock avatar in place">+ <svg id="irl-lock-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>+ <span class="irl-lock-label">Lock</span>+ </button><button class="irl-pill-btn" id="irl-place-btn" type="button" aria-pressed="false"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>Add objectdiff --git a/src/dashboard-next/pages/sniper.js b/src/dashboard-next/pages/sniper.jsindex 1c75fcc2e..979e643f8 100644--- a/src/dashboard-next/pages/sniper.js+++ b/src/dashboard-next/pages/sniper.js@@ -269,7 +269,7 @@ function stratCard(s) {const wins = s.summary?.wins || 0;const wr = closed > 0 ? Math.round((wins / closed) * 100) : null;const img = s.image || '/favicon.ico';- const triggerLabel = s.trigger === 'first_claim' ? 'First-claim trigger' : 'New mint trigger';+ const triggerLabel = s.trigger === 'first_claim' ? 'First-claim trigger' : s.trigger === 'intel_confirmed' ? 'Intel-confirmed trigger' : 'New mint trigger';const walletBal = s.wallet_sol != null ? s.wallet_sol : null;const walletWarn = walletBal != null && walletBal < lamportsToSol(s.per_trade_lamports || '0') + 0.003;@@ -432,6 +432,7 @@ function stratForm(s) {</div>${s.trigger === 'first_claim' ? firstClaimFields(s) : ''}+ ${s.trigger === 'intel_confirmed' ? intelFields(s) : ''}<div class="sn-save-row"><button type="submit" class="sn-btn primary" data-save="${esc(s.agent_id)}">Save changes</button>@@ -460,6 +461,39 @@ function firstClaimFields(s) {</div>`;}+function intelFields(s) {+ const cats = Array.isArray(s.allowed_categories) ? s.allowed_categories.join(', ') : '';+ return `+ <div class="sn-section-head">Coin Intelligence Filters</div>+ <div class="sn-field">+ <label>Min quality score (0–100)</label>+ <input name="min_quality_score" type="number" step="1" min="0" max="100" value="${s.min_quality_score != null ? s.min_quality_score : ''}" placeholder="e.g. 60" />+ <span class="sn-hint">Overall quality composite. 0 = any, 100 = best only. Higher = fewer but cleaner entries.</span>+ </div>+ <div class="sn-field">+ <label>Max bundle score (0–1)</label>+ <input name="max_bundle_score" type="number" step="0.05" min="0" max="1" value="${s.max_bundle_score != null ? s.max_bundle_score : ''}" placeholder="e.g. 0.5" />+ <span class="sn-hint">Bundle likelihood from wallet graph analysis. 0 = no bundles tolerated, 1 = allow all.</span>+ </div>+ <div class="sn-field">+ <label>Max top-wallet concentration (%)</label>+ <input name="max_concentration_top1" type="number" step="1" min="0" max="100" value="${s.max_concentration_top1 != null ? s.max_concentration_top1 : ''}" placeholder="e.g. 20" />+ <span class="sn-hint">Skip if the single largest holder owns more than this % of supply.</span>+ </div>+ <div class="sn-field">+ <label>Avoid dev dump</label>+ <select name="avoid_dev_dump">+ <option value="true" ${s.avoid_dev_dump !== false ? 'selected' : ''}>Yes — skip if dev sold (recommended)</option>+ <option value="false" ${s.avoid_dev_dump === false ? 'selected' : ''}>No — allow dev sells</option>+ </select>+ </div>+ <div class="sn-field">+ <label>Allowed categories (comma-separated)</label>+ <input name="allowed_categories" type="text" value="${esc(cats)}" placeholder="e.g. meme, animal, culture (blank = allow all)" />+ <span class="sn-hint">Only snipe coins classified into these categories. Leave blank to allow all.</span>+ </div>`;+}+// ── Live positions ────────────────────────────────────────────────────────────function livePositionsSection() {@@ -753,6 +787,13 @@ async function saveForm(form, root) {body.max_claim_lamports = fd.max_claim_lamports_sol !== '' ? solToLamports(fd.max_claim_lamports_sol) : null;body.first_claim_max_age_seconds = fd.first_claim_max_age_seconds !== '' ? Number(fd.first_claim_max_age_seconds) : null;}+ if (fd.trigger === 'intel_confirmed') {+ body.min_quality_score = fd.min_quality_score !== '' ? Number(fd.min_quality_score) : null;+ body.max_bundle_score = fd.max_bundle_score !== '' ? Number(fd.max_bundle_score) : null;+ body.max_concentration_top1 = fd.max_concentration_top1 !== '' ? Number(fd.max_concentration_top1) : null;+ body.avoid_dev_dump = fd.avoid_dev_dump !== 'false';+ body.allowed_categories = fd.allowed_categories ? fd.allowed_categories.split(',').map((c) => c.trim()).filter(Boolean) : null;+ }await post('/api/sniper/strategy', body);if (msg) { msg.textContent = 'Saved!'; setTimeout(() => { if (msg) msg.textContent = ''; }, 2000); }