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
feat: Enhance news curation and sniper optimization
nirholas563036438155
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7bb723ffb..2a745b2bf 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,10 +8,11 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Cookbook: self-correcting 3D with function calling** (`/cookbook`) — An executable tutorial: an AI art director turns a one-line brief into a themed set of real 3D props with parallel function calls, inspects each render with vision, and rebuilds what fails. Read it with interactive galleries, or download the notebook and run it.- **Docs · NVIDIA Inception membership** (`/docs/nvidia-inception`) — three.ws is a member of the NVIDIA Inception program: what the platform runs on NVIDIA today, what membership adds (GPU credits, ACE/NIM migration, ecosystem access), and who is building it.-- **Object Library** (`/objects`) — Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live or download the GLB.+- **Object Library** (`/objects`) — Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live, place it in your room with AR, or download the GLB.- **A free CC0 object library: hundreds of props, ready to drop in** — A new Object Library brings hundreds of free 3D objects and props to three.ws - furniture, lighting, electronics, containers, decor. Every one is CC0 public domain: free to use commercially with no attribution. Browse them at /objects, preview any one live in your browser, or download the GLB to use anywhere. (`/objects`) `[feature]`- **Installing a marketplace skill now actually teaches your agent** — Skills from the marketplace used to install into the void: you clicked Install, a badge flipped, and nothing changed. Now every knowledge skill you install loads its playbook into your agent's context in every signed-in chat, so an install visibly changes how your agent answers (install whale-wallet-tracking and ask about a token's whales to see it). Skill pages also explain what installing does up front and, once installed, hand you a 'Chat with your agent' shortcut. Developers can pull their full installed set, playbooks included, from GET /api/skills?installed=true. (`/marketplace?tab=skills`) `[feature, improvement]`- **Marketplace: submitting an agent no longer means typing a form** — The Submit Agent flow on /marketplace is now a chooser instead of a wall of text fields. The primary path sends you to the guided agent builder (3D avatar, persona, publish); a second path lists the agents you already have, with drafts publishable in one click right from the dialog; the old manual form and JSON import stay available behind an Advanced toggle. The featured hero is more compact so search and listings are visible without scrolling, the signed-out My Agents view got a proper call to action, and related agents on detail pages now show their 3D thumbnails. (`/marketplace`) `[improvement]`+- **Object Library props now place straight into AR Studio** — The CC0 Object Library and AR Studio are now wired together. Every prop card on /objects has an AR button that opens the model in AR Studio, ready to place in your room through your camera. Inside AR Studio, a new Objects tab in the model tray lets you search all the CC0 props by name or category and tap any of them into your scene alongside your forged models. (`/ar/studio`) `[improvement, feature]`- **Sniper agents learn to skip painted charts** — The trading fleet gained a defense against a trap experienced traders spot instantly but bots miss: a coin with a big opening candle that then stairsteps up on a handful of wallets with no sellers, a chart painted to lure momentum buyers. Analysis of about 62,000 labeled launches showed the tell in data: a coin with a genuine two-sided market (many distinct buyers and real sellers during its first minute) wins around 52% of the time, versus roughly 12% for a one-sided painted rise. The agents now score every coin market for this, and the AI-judge agents receive the market shape in their prompt so they read the chart like a human instead of judging a coin blind on its name. The AI agents were also changed to observe a launch for its first ~90 seconds before deciding, so the market has revealed whether it is real before any money moves. (`/sniper/experiments`) `[feature, improvement]`- **Sniper Experiments: every wallet and every decision, in the open** — The /sniper/experiments scoreboard now shows each strategy's live wallet: its address, a Solscan link, and its real-time SOL balance, plus the shared master wallet that auto-funds the fleet. Every arm also links straight to its Reasoning Ledger, a tamper-evident, on-chain-anchored record of every single buy decision: the exact market data and rationale the agent acted on at entry, and once the trade closes, the real outcome (win or loss, by how much). Nothing is hidden or summarized away; wins and losses are published with the same detail. (`/sniper/experiments`) `[feature, improvement]`- **Snipers that tune themselves from their own results** — The sniper fleet now has an intra-arm optimizer that learns from each strategy's real trading record and proposes bounded adjustments to its own knobs (take-profit, trailing/stop, hold time, entry-quality, size). It runs in shadow mode by default, recording exactly what it would change without touching anything, and in apply mode only tunes strategies that opted in, logging every change to the agent's tamper-evident reasoning ledger. It pairs with the portfolio evolution engine (which reallocates budget across arms): the optimizer tunes each arm inward, evolution decides which arms get capital. Neither can touch a safety field. (`/docs/agent-sniper`) `[feature]`@@ -130,7 +131,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-07-17-- **AR Studio** (`/ar/studio`) — A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.+- **AR Studio** (`/ar/studio`) — A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, the CC0 object library, or any GLB link, and generate new models by prompt without leaving the view.- **Daily Forge** (`/daily`) — A new 3D creative challenge every day. Forge today's theme into a real 3D model, free and no sign-up, build a daily streak, and place your creation in AR on your phone.- **Image to 3D — Turn a Photo into a 3D Model** (`/image-to-3d`) — Upload a photo (or up to 4 angles) and get a downloadable textured 3D model (GLB). The Forge's photo lane, opened directly — for objects and props; for faces, use Selfie to Avatar.- **3D imports are now hardened against a memory-exhaustion crash** — When the platform pulls a 3D model from an external link (a shared GLB, a generation-provider result), it now enforces a hard size ceiling before and during the download instead of buffering the whole response first. An over-size file is rejected up front on its declared length, and any host that keeps streaming past the cap is cut off mid-transfer with both sockets destroyed, so a hostile or misbehaving source can no longer stream unbounded data and exhaust a server's memory. Normal imports are unaffected; only oversized or malicious fetches change, and they now fail cleanly with a clear error instead of taking an instance down. `[security]`diff --git a/api/_lib/migrations/20260721130000_oracle_realized_feedback.sql b/api/_lib/migrations/20260721130000_oracle_realized_feedback.sqlnew file mode 100644index 000000000..2537b36d6--- /dev/null+++ b/api/_lib/migrations/20260721130000_oracle_realized_feedback.sql@@ -0,0 +1,50 @@+-- Oracle realized-outcome feedback: close the loop between the sniper's real+-- money and the Oracle/intel that decides what to buy.+--+-- Until now two learning systems ran in separate silos:+-- * Oracle/intel learned "which launch signals predict a coin PUMPING" from+-- coarse chart labels (pump_coin_outcomes: ATH >= 3x = a win).+-- * The sniper optimizer learned "which config makes money" from realized PnL.+-- Neither fed the other, and Oracle never saw a single real trade result. A coin+-- can ATH 3x on the chart and the sniper still LOSE (bought late, timed-out+-- exit). Realized PnL is scarcer but far higher-fidelity ground truth.+--+-- Two additive tables:+-- oracle_realized_outcomes — per mint, the fleet's REAL realized result+-- (win/loss + avg PnL%), derived from agent_sniper_positions by the+-- api/cron/oracle-realized-labels cron. trainWeights (intel/learn.js)+-- LEFT JOINs this and PREFERS the realized label when present, so Oracle+-- trains on real money, not just price history. (Bridge 1)+-- oracle_calibration — per conviction bucket, how the Oracle's score+-- lined up with the REALIZED win rate (does an 80 actually win ~80%?),+-- plus a bounded correction_factor the scorer can apply. Written by+-- api/cron/oracle-calibrate. (Bridge 3)+--+-- Additive and idempotent, safe to re-run.++CREATE TABLE IF NOT EXISTS oracle_realized_outcomes (+ mint TEXT NOT NULL,+ network TEXT NOT NULL DEFAULT 'mainnet',+ realized_win INTEGER NOT NULL, -- 1 if net realized PnL > 0 across the fleet's closes, else 0+ realized_pnl_pct NUMERIC, -- avg realized_pnl_pct across closed real positions on this mint+ samples INTEGER NOT NULL DEFAULT 0, -- number of closed real positions backing the label+ updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ PRIMARY KEY (mint, network)+);++CREATE INDEX IF NOT EXISTS oracle_realized_outcomes_net+ ON oracle_realized_outcomes (network, updated_at DESC);++CREATE TABLE IF NOT EXISTS oracle_calibration (+ network TEXT NOT NULL DEFAULT 'mainnet',+ bucket_lo INTEGER NOT NULL, -- conviction band floor (inclusive)+ bucket_hi INTEGER NOT NULL, -- conviction band ceiling (exclusive; 101 for the top band)+ samples INTEGER NOT NULL DEFAULT 0,+ wins INTEGER NOT NULL DEFAULT 0,+ observed_rate NUMERIC, -- realized win rate in this band (0..1)+ avg_conviction NUMERIC, -- mean conviction score of coins in this band+ avg_realized_pct NUMERIC, -- mean realized PnL% in this band+ correction_factor NUMERIC NOT NULL DEFAULT 1, -- bounded multiplier for future scores in this band+ updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ PRIMARY KEY (network, bucket_lo)+);diff --git a/api/_lib/news-curation.js b/api/_lib/news-curation.jsnew file mode 100644index 000000000..a65fe7cf6--- /dev/null+++ b/api/_lib/news-curation.js@@ -0,0 +1,158 @@+// Editorial display filter for the crypto-news reader.+// ---------------------------------------------------------------------------+// three.ws ingests ~190 feeds. Many are crypto-native (every article is on+// topic); a smaller set are broad outlets — WSJ, CNBC, the SEC, the Fed, world+// news desks — that run crypto stories AND a lot that isn't. We WANT to keep+// pulling the broad ones: their crypto coverage is high-value, and the macro /+// regulatory context feeds the archive and the agents' knowledge corpus. What+// we do NOT want is a world-politics headline or a general-markets note landing+// in a crypto feed.+//+// So this is a DISPLAY filter, not an ingestion filter. It runs on what a human+// sees (the /markets/news feed, the RSS mirror, the daily digest, related+// coverage), never on what we archive or what the agents read. Two gates:+//+// 1. Relevance — a broad source's article shows only if the article itself is+// about crypto (a detected ticker, or a term from the crypto lexicon).+// Crypto-native sources always pass.+// 2. Quality — a credibility floor. Scored sources must clear it; unscored+// crypto-native outlets are presumed acceptable (they were hand-added to+// the registry), and archived rows with no registry entry are never nuked.+//+// The floor is overridable at runtime via NEWS_MIN_CREDIBILITY so the bar can+// be tuned without a code change.++import { NEWS_SOURCES } from './news-sources.js';+import { env } from './env.js';++// Categories whose every source is crypto-first. An article from one of these+// is on topic by definition; only the quality gate applies. `institutional` and+// `etf` are included: they are exchanges, custodians, and crypto-ETF issuers+// (Kraken, Fireblocks, ARK, CoinShares), i.e. crypto-native even though the+// name isn't a coin.+const CRYPTO_NATIVE_CATEGORIES = new Set([+ 'general',+ 'bitcoin',+ 'ethereum',+ 'layer2',+ 'solana',+ 'altl1',+ 'defi',+ 'nft',+ 'gaming',+ 'trading',+ 'derivatives',+ 'research',+ 'onchain',+ 'quant',+ 'stablecoin',+ 'depin',+ 'mining',+ 'security',+ 'institutional',+ 'etf',+]);++// Everything else — mainstream, geopolitical, macro, journalism, asia, fintech,+// developer — is a mixed source: its article must prove it is about crypto.++// Crypto topical lexicon for the per-article relevance gate. Kept lowercase and+// matched as substrings against `${title} ${description}`. Deliberately broad+// on the crypto side (better to admit a borderline crypto story than drop a+// real one), while excluding the generic finance words that a non-crypto+// markets story would trip ("stocks", "inflation", "GDP" are NOT here).+const CRYPTO_TERMS = [+ 'crypto',+ 'bitcoin',+ 'btc',+ 'ethereum',+ 'ether ',+ 'blockchain',+ 'stablecoin',+ 'defi',+ 'web3',+ 'altcoin',+ 'memecoin',+ 'token',+ 'nft',+ 'solana',+ 'ripple',+ 'xrp',+ 'dogecoin',+ 'coinbase',+ 'binance',+ 'onchain',+ 'on-chain',+ 'digital asset',+ 'digital-asset',+ 'tokeniz', // tokenize / tokenization / tokenized+ 'spot etf',+ 'crypto etf',+ 'bitcoin etf',+ 'ether etf',+ 'ethereum etf',+ 'satoshi',+ 'halving',+ 'staking',+ 'metamask',+ 'ledger',+ 'defi',+ 'dao ',+ 'wallet',+];++/** Runtime-tunable credibility floor (0–1). */+export const DEFAULT_MIN_CREDIBILITY = (() => {+ const raw = Number(env.NEWS_MIN_CREDIBILITY);+ return Number.isFinite(raw) && raw >= 0 && raw <= 1 ? raw : 0.6;+})();++function sourceOf(a) {+ return NEWS_SOURCES[a?.source_key] || null;+}++/**+ * Is this article about crypto enough to show in a crypto feed?+ *+ * Crypto-native source → yes. Otherwise it needs a detected ticker or a crypto+ * lexicon hit in its title/description.+ */+export function isCryptoRelevant(a) {+ if (!a) return false;+ const src = sourceOf(a);+ if (src && CRYPTO_NATIVE_CATEGORIES.has(src.category)) return true;++ // A source we don't know (archived row, or a key not in the registry) can't+ // be judged by category — fall through to the content test rather than+ // assuming either way.+ if (Array.isArray(a.tickers) && a.tickers.length) return true;++ const hay = ` ${String(a.title || '')} ${String(a.description || '')} `.toLowerCase();+ return CRYPTO_TERMS.some((t) => hay.includes(t));+}++/**+ * Does the source clear the quality floor?+ *+ * Scored source → credibility ≥ floor. Unscored source in the registry →+ * presumed acceptable (it was curated in by hand). Source not in the registry+ * at all (legacy archive rows) → never dropped on quality grounds; the+ * relevance gate still applies to it.+ */+export function passesQualityFloor(a, min = DEFAULT_MIN_CREDIBILITY) {+ const src = sourceOf(a);+ if (!src) return true;+ if (typeof src.credibility === 'number') return src.credibility >= min;+ return true;+}++/**+ * The combined display gate. `true` → show it to a human.+ *+ * @param {object} a article+ * @param {{minCredibility?: number}} [opts]+ */+export function isDisplayable(a, opts = {}) {+ const min = typeof opts.minCredibility === 'number' ? opts.minCredibility : DEFAULT_MIN_CREDIBILITY;+ return isCryptoRelevant(a) && passesQualityFloor(a, min);+}diff --git a/api/_lib/news.js b/api/_lib/news.jsindex 9584d841b..ec8f21601 100644--- a/api/_lib/news.js+++ b/api/_lib/news.js@@ -26,6 +26,7 @@ import { createHash } from 'node:crypto';import { XMLParser } from 'fast-xml-parser';import { NEWS_SOURCES, sourcesForCategory, sourcesForLanguage, sourcePriority, isFeaturedSource } from './news-sources.js';import { isSuppressed, excerptText } from './news-rights.js';+import { isDisplayable } from './news-curation.js';const FEED_TIMEOUT_MS = 7000;const FRESH_MS = 300_000; // refetch a source after 5 min@@ -543,10 +544,14 @@ function dedupe(articles) {* `featured` narrows the fan-out to the majors (tier1/tier2 or credibility* ≥ 0.85) — the "Featured" tab on /markets/news.*- * @param {object} opts { category, source, lang, q, limit, offset, featured }+ * `curated` applies the editorial display gate (crypto-relevant + above the+ * quality floor, see api/_lib/news-curation.js). Off by default: ingestion and+ * agent-signal callers get the full firehose; human-facing feeds opt in.+ *+ * @param {object} opts { category, source, lang, q, limit, offset, featured, curated }* @returns {{ articles: Array, total: number, sources_ok: number, sources_total: number }}*/-export async function getNews({ category, source, lang = 'en', q, limit = 30, offset = 0, featured = false } = {}) {+export async function getNews({ category, source, lang = 'en', q, limit = 30, offset = 0, featured = false, curated = false } = {}) {let keys;if (source && NEWS_SOURCES[source]) keys = [source];else if (source) return { articles: [], total: 0, sources_ok: 0, sources_total: 0 };@@ -573,6 +578,14 @@ export async function getNews({ category, source, lang = 'en', q, limit = 30, oflet articles = dedupe(all).filter((a) => !isSuppressed(a)).sort((a, b) => new Date(b.pub_date || 0) - new Date(a.pub_date || 0));+ // Editorial display gate (opt-in): crypto-relevant + above the quality+ // floor. OFF by default so ingestion (the archive cron) and agent-signal+ // callers keep the full firehose; the human-facing feeds pass curated:true.+ // An explicit single-source request is exempt — the caller asked for that+ // outlet by name, so honour it.+ if (curated && !source) {+ articles = articles.filter((a) => isDisplayable(a));+ }if (q) {const needle = q.toLowerCase();articles = articles.filter((a) =>diff --git a/api/_lib/sniper-optimizer.js b/api/_lib/sniper-optimizer.jsindex 333e082e2..d7af8b708 100644--- a/api/_lib/sniper-optimizer.js+++ b/api/_lib/sniper-optimizer.js@@ -45,9 +45,49 @@ export const STEP = {per_trade_fraction: 0.2, // ≤20% size change per run};+// Fields that may be set from unset (null). For a filter threshold, null means+// "no filter" and turning one on is a safe tightening; for take-profit it locks+// gains. Stops/hold are deliberately excluded: null there is load-bearing.+const UNSET_OK = new Set(['take_profit_pct', 'min_oracle_score', 'min_quality_score']);+const clamp = (n, lo, hi) => Math.max(lo, Math.min(hi, n));const num = (v) => (v == null ? null : Number(v));+/**+ * Oracle-aware entry threshold (Bridge 2). Given an arm's realized win rate+ * bucketed by the Oracle conviction the coin had at entry, find the conviction+ * floor that best separates winners from losers: the threshold T where trades+ * with conviction >= T win meaningfully more than the arm overall, with enough+ * sample above T to trust it. Returns the target floor, or null when the data+ * does not support a move. Pure.+ *+ * @param {Array<{lo:number, closed:number|string, wins:number|string}>} buckets+ * @param {{ minAbove?:number, minLift?:number, minTotal?:number }} [opts]+ */+export function bestOracleThreshold(buckets, { minAbove = 4, minLift = 0.15, minTotal = 6 } = {}) {+ const b = (buckets || [])+ .map((x) => ({ lo: Number(x.lo), closed: Number(x.closed) || 0, wins: Number(x.wins) || 0 }))+ .filter((x) => x.closed > 0)+ .sort((a, z) => a.lo - z.lo);+ if (!b.length) return null;+ const total = b.reduce((s, x) => s + x.closed, 0);+ const totalWins = b.reduce((s, x) => s + x.wins, 0);+ if (total < minTotal) return null;+ const overall = totalWins / total;+ let best = null;+ for (const cand of b) {+ if (cand.lo <= 0) continue; // a zero floor is "no filter", never a proposal+ const above = b.filter((x) => x.lo >= cand.lo);+ const closedAbove = above.reduce((s, x) => s + x.closed, 0);+ const winsAbove = above.reduce((s, x) => s + x.wins, 0);+ if (closedAbove < minAbove || closedAbove === total) continue; // need a real, informative cut+ const rateAbove = winsAbove / closedAbove;+ const lift = rateAbove - overall;+ if (lift >= minLift && (!best || rateAbove > best.rateAbove)) best = { threshold: cand.lo, rateAbove };+ }+ return best ? best.threshold : null;+}+// Move `from` toward `to` but never by more than `step`, then clamp to bounds.// Returns the bounded target, or null if `from` is already there.function boundedToward(from, to, step, bounds) {@@ -108,11 +148,21 @@ export function proposeAdjustments(stats, config) {target = clamp(target, b.min, b.max);if (field === 'max_hold_seconds' || field === 'per_trade_lamports') target = Math.round(target);if (from != null && target === from) return; // no-op- if (from == null && field !== 'take_profit_pct') return; // only TP supports unset→set+ if (from == null && !UNSET_OK.has(field)) return; // some fields must not be set from unsetclaimed.add(field);proposals.push({ field, from, to: target, reason });};+ // Rule O: Oracle-aware entry. If the arm's realized wins concentrate above a+ // conviction floor, tune min_oracle_score toward it. Runs FIRST so this+ // data-driven signal claims the field before Rule B's cruder stop-loss bump.+ // This is what makes the optimizer actually USE the Oracle rather than ignore it.+ const oracleTarget = bestOracleThreshold(stats.oracleBuckets);+ if (oracleTarget != null && (oracle == null || oracleTarget > oracle)) {+ propose('min_oracle_score', oracleTarget,+ `Realized wins concentrate at Oracle conviction >= ${oracleTarget} over ${sample} trades: raise the conviction floor to buy where this arm actually wins.`);+ }+// Rule A: winners are timing out unrealized (the classic "no take-profit" leak).if (share(er, 'timeout', sample) >= 0.4 && avg > 5) {if (tp == null) {diff --git a/api/cron/sniper-optimize.js b/api/cron/sniper-optimize.jsindex 73c06a49a..e58687598 100644--- a/api/cron/sniper-optimize.js+++ b/api/cron/sniper-optimize.js@@ -72,6 +72,26 @@ async function armStats(network, interval) {`;}+// Per-arm realized win rate bucketed by the Oracle conviction each coin had at+// entry (Bridge 2). Feeds the optimizer's Rule O so it tunes min_oracle_score to+// the conviction band where the arm actually wins, instead of ignoring Oracle.+// Uses the coin's current conviction (oracle_conviction keeps one row per mint);+// coins the Oracle never scored simply don't contribute.+async function armOracleBuckets(network, interval) {+ return sql`+ select p.strategy_id,+ case when oc.score >= 85 then 85 when oc.score >= 70 then 70+ when oc.score >= 50 then 50 when oc.score >= 30 then 30 else 0 end as lo,+ count(*) as closed,+ count(*) filter (where p.realized_pnl_lamports > 0) as wins+ from agent_sniper_positions p+ join oracle_conviction oc on oc.mint = p.mint and oc.network = p.network+ where p.network = ${network} and p.status = 'closed' and p.buy_sig <> 'SIMULATED'+ and p.opened_at > now() - (${interval}::text)::interval+ group by p.strategy_id, lo+ `;+}+export default wrapCron(async (req, res) => {if (!method(req, res, ['GET', 'POST'])) return;if (!requireCron(req, res)) return;@@ -84,8 +104,15 @@ export default wrapCron(async (req, res) => {const report = { mode, window: windowLabel, arms: 0, with_proposals: 0, applied: 0, skipped_optin: 0, errors: 0, runs: [] };let rows = [];+ let oracleByArm = new Map();try {rows = await armStats(network, interval);+ const oracleRows = await armOracleBuckets(network, interval).catch(() => []);+ for (const o of oracleRows) {+ const list = oracleByArm.get(o.strategy_id) || [];+ list.push({ lo: Number(o.lo), closed: Number(o.closed), wins: Number(o.wins) });+ oracleByArm.set(o.strategy_id, list);+ }} catch (err) {return json(res, 200, { ok: false, error: err.message, report });}@@ -104,6 +131,7 @@ export default wrapCron(async (req, res) => {avgHoldSeconds: r.avg_hold_s != null ? Math.round(Number(r.avg_hold_s)) : null,netPnlLamports: Number(r.net_pnl_lamports) || 0,exitReasons: r.exit_reasons || {},+ oracleBuckets: oracleByArm.get(r.strategy_id) || [],};const { proposals, sample, acted, notes } = proposeAdjustments(stats, r);if (!acted) continue;diff --git a/data/changelog.json b/data/changelog.jsonindex 4d7f61a74..08321c02d 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,16 @@{"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-07-21",+ "title": "Object Library props now place straight into AR Studio",+ "summary": "The CC0 Object Library and AR Studio are now wired together. Every prop card on /objects has an AR button that opens the model in AR Studio, ready to place in your room through your camera. Inside AR Studio, a new Objects tab in the model tray lets you search all the CC0 props by name or category and tap any of them into your scene alongside your forged models.",+ "tags": [+ "improvement",+ "feature"+ ],+ "link": "/ar/studio"+ },{"date": "2026-07-21","title": "A free CC0 object library: hundreds of props, ready to drop in",diff --git a/data/pages.json b/data/pages.jsonindex 907f3bcd7..514c496d4 100644--- a/data/pages.json+++ b/data/pages.json@@ -59,7 +59,7 @@{"path": "/objects","title": "Object Library",- "description": "Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live or download the GLB.",+ "description": "Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live, place it in your room with AR, or download the GLB.","priority": 0.8,"changefreq": "weekly","added": "2026-07-21",@@ -802,7 +802,7 @@{"path": "/ar/studio","title": "AR Studio",- "description": "A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.",+ "description": "A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, the CC0 object library, or any GLB link, and generate new models by prompt without leaving the view.","priority": 0.7,"changefreq": "monthly","added": "2026-07-17",diff --git a/pages/ar-studio.html b/pages/ar-studio.htmlindex 4a4f302f6..c97b8f973 100644--- a/pages/ar-studio.html+++ b/pages/ar-studio.html@@ -290,6 +290,8 @@}.ars-link-row input:focus { outline: none; border-color: rgba(139, 124, 248, 0.6); }.ars-link-hint { margin: 0; font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; }+ .ars-objects-head { display: flex; flex-direction: column; gap: 7px; padding: 2px 2px 10px; }+ .ars-objects-more { padding: 10px 0 2px; display: flex; justify-content: center; }/* ── QR modal ── */.ars-modal {diff --git a/public/changelog.json b/public/changelog.jsonindex f238931e3..97278c170 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-21T13:24:08.958Z",+ "generated_at": "2026-07-21T13:26:02.017Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -30,7 +30,7 @@"date": "2026-07-21","type": "launch","title": "Object Library",- "summary": "Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live or download the GLB.",+ "summary": "Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live, place it in your room with AR, or download the GLB.","link": "/objects","tags": ["launch"@@ -67,6 +67,17 @@"improvement"]},+ {+ "date": "2026-07-21",+ "type": "update",+ "title": "Object Library props now place straight into AR Studio",+ "summary": "The CC0 Object Library and AR Studio are now wired together. Every prop card on /objects has an AR button that opens the model in AR Studio, ready to place in your room through your camera. Inside AR Studio, a new Objects tab in the model tray lets you search all the CC0 props by name or category and tap any of them into your scene alongside your forged models.",+ "link": "/ar/studio",+ "tags": [+ "improvement",+ "feature"+ ]+ },{"date": "2026-07-21","type": "update",@@ -1172,7 +1183,7 @@"date": "2026-07-17","type": "launch","title": "AR Studio",- "summary": "A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.",+ "summary": "A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, the CC0 object library, or any GLB link, and generate new models by prompt without leaving the view.","link": "/ar/studio","tags": ["launch"diff --git a/public/changelog.xml b/public/changelog.xmlindex 76a166f9a..f111c2786 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -28,7 +28,7 @@<guid isPermaLink="false">2026-07-21:Object Library</guid><pubDate>Tue, 21 Jul 2026 12:00:00 GMT</pubDate><category>launch</category>- <description>Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live or download the GLB.</description>+ <description>Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live, place it in your room with AR, or download the GLB.</description></item><item><title>A free CC0 object library: hundreds of props, ready to drop in</title>@@ -54,6 +54,14 @@<category>improvement</category><description>The Submit Agent flow on /marketplace is now a chooser instead of a wall of text fields. The primary path sends you to the guided agent builder (3D avatar, persona, publish); a second path lists the agents you already have, with drafts publishable in one click right from the dialog; the old manual form and JSON import stay available behind an Advanced toggle. The featured hero is more compact so search and listings are visible without scrolling, the signed-out My Agents view got a proper call to action, and related agents on detail pages now show their 3D thumbnails.</description></item>+ <item>+ <title>Object Library props now place straight into AR Studio</title>+ <link>https://three.ws/ar/studio</link>+ <guid isPermaLink="false">2026-07-21:Object Library props now place straight into AR Studio</guid>+ <pubDate>Tue, 21 Jul 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The CC0 Object Library and AR Studio are now wired together. Every prop card on /objects has an AR button that opens the model in AR Studio, ready to place in your room through your camera. Inside AR Studio, a new Objects tab in the model tray lets you search all the CC0 props by name or category and tap any of them into your scene alongside your forged models.</description>+ </item><item><title>Sniper agents learn to skip painted charts</title><link>https://three.ws/sniper/experiments</link>@@ -908,7 +916,7 @@<guid isPermaLink="false">2026-07-17:AR Studio</guid><pubDate>Fri, 17 Jul 2026 12:00:00 GMT</pubDate><category>launch</category>- <description>A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.</description>+ <description>A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, the CC0 object library, or any GLB link, and generate new models by prompt without leaving the view.</description></item><item><title>Daily Forge</title>diff --git a/public/features.json b/public/features.jsonindex 300173ca0..9ca6c43c0 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-21T13:24:08.944Z",+ "generated_at": "2026-07-21T13:26:02.002Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",@@ -68,7 +68,7 @@{"path": "/objects","title": "Object Library",- "description": "Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live or download the GLB.",+ "description": "Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live, place it in your room with AR, or download the GLB.","added": "2026-07-21","auth": null,"indexable": true,@@ -982,7 +982,7 @@{"path": "/ar/studio","title": "AR Studio",- "description": "A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.",+ "description": "A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, the CC0 object library, or any GLB link, and generate new models by prompt without leaving the view.","added": "2026-07-17","auth": null,"indexable": true,diff --git a/public/llms-full.txt b/public/llms-full.txtindex 5b4501646..340a0897a 100644--- a/public/llms-full.txt+++ b/public/llms-full.txt@@ -47,7 +47,7 @@ URL: https://three.ws/character-libraryURL: https://three.ws/objects-Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live or download the GLB.+Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live, place it in your room with AR, or download the GLB.### Diorama@@ -600,7 +600,7 @@ Type a prompt, get a real 3D model, and place it in your room: free text-to-3D wURL: https://three.ws/ar/studio-A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.+A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, the CC0 object library, or any GLB link, and generate new models by prompt without leaving the view.### Daily Forgediff --git a/public/llms.txt b/public/llms.txtindex 912e19e75..fd0da7312 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -16,7 +16,7 @@ Entry points into the product.- [Avatar Gallery](https://three.ws/gallery): Every public 3D avatar in the system, browsable as a grid.- [Animation Gallery](https://three.ws/animations): Browse and preview public animations authored by the three.ws community. Apply any clip to your avatar in the Animation Studio.- [Character Library](https://three.ws/character-library): 106 professionally rigged 3D characters, free to use. Every one drives the full animation library and drops into the Studio, Animation Studio, and embed viewer in one click.-- [Object Library](https://three.ws/objects): Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live or download the GLB.+- [Object Library](https://three.ws/objects): Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live, place it in your room with AR, or download the GLB.- [Diorama](https://three.ws/diorama): Speak a little world into being — describe a scene and watch it assemble into an explorable 3D diorama you can walk through, then take it into AR.- [Mocap Studio](https://three.ws/mocap-studio): Drive a 3D avatar with your webcam — real-time facial motion capture in the browser, no rig and no download.- [Coin Autopilot](https://three.ws/autopilot): A hands-off token cockpit: set the rules — buys, sells, and guardrails — and let your agent run the coin autonomously.@@ -113,7 +113,7 @@ Experimental features actively shipping. Expect fast iteration.- [Avatar Artifact](https://three.ws/avatar-artifact): Standalone Three.js viewer for avatar artifacts — embeddable and shareable without any wrapper page.- [glTF / GLB Viewer](https://three.ws/viewer): Preview any public glTF/GLB inline, then take it further: pose and animate it, restyle the material, build a scene, place it in AR, embed it on your site, or launch it as a pump.fun coin.- [AR Forge](https://three.ws/ar): Type a prompt, get a real 3D model, and place it in your room: free text-to-3D with one-tap AR on any phone (WebXR, Scene Viewer, Quick Look) and a QR handoff from desktop.-- [AR Studio](https://three.ws/ar/studio): A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.+- [AR Studio](https://three.ws/ar/studio): A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, the CC0 object library, or any GLB link, and generate new models by prompt without leaving the view.- [Daily Forge](https://three.ws/daily): A new 3D creative challenge every day. Forge today's theme into a real 3D model, free and no sign-up, build a daily streak, and place your creation in AR on your phone.- [Spatial MCP — reference renderer](https://three.ws/spatial-mcp): The open standard for returning a live, interactive 3D scene as a first-class MCP tool result, with a framework-free reference renderer that displays any conformant artifact — including ones transformed from other tools.- [Playground](https://three.ws/playground): Sandbox for experimenting with agents, prompts, and 3D scenes.diff --git a/public/locales/en.json b/public/locales/en.jsonindex 228981657..f74fc6c5a 100644--- a/public/locales/en.json+++ b/public/locales/en.json@@ -1533,6 +1533,7 @@"meta_twitter_description": "Place any number of 3D models in your real space, and forge new ones by prompt without leaving the camera.","meta_twitter_title": "AR Studio · three.ws","model": "Model",+ "objects": "Objects","open_a_shared_room_and_everyone_with": "Open a shared room and everyone with the code sees the same scene update in real time — add, move, and forge models together.","or_join_one": "or join one","phone": "Phone ↗",diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex bcfd1680e..6a0cdfc3e 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -132,7 +132,7 @@<a href="/objects"><span class="sm-title">Object Library</span><span class="sm-path">/objects</span>- <span class="sm-desc">Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live or download the GLB.</span>+ <span class="sm-desc">Hundreds of free CC0 3D objects and props: furniture, lighting, electronics, decor. Public domain, no attribution required. Preview live, place it in your room with AR, or download the GLB.</span></a></li><li>@@ -780,7 +780,7 @@<a href="/ar/studio"><span class="sm-title">AR Studio</span><span class="sm-path">/ar/studio</span>- <span class="sm-desc">A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, or any GLB link, and generate new models by prompt without leaving the view.</span>+ <span class="sm-desc">A live multi-model AR scene through your camera: place any number of 3D models and avatars in your real space, pull in your forge creations, community models, the CC0 object library, or any GLB link, and generate new models by prompt without leaving the view.</span></a></li><li>diff --git a/scripts/rug-signature.mjs b/scripts/rug-signature.mjsnew file mode 100644index 000000000..e4b562bf5--- /dev/null+++ b/scripts/rug-signature.mjs@@ -0,0 +1,157 @@+// Rug signature: what the platform's own labeled data actually says a rug looks+// like. No hand-picked thresholds. This reads pump_coin_intel joined with the+// ground-truth outcome label (pump_coin_outcomes) and prints, per outcome+// bucket, the real distribution of every entry-time feature the intel watcher+// captures. The gap between the "rugged" column and the "won" column IS the+// signature: features whose distributions separate the two are the ones worth+// gating on; features that overlap are noise no matter how intuitive they seem.+//+// node scripts/rug-signature.mjs # print the full table+// node scripts/rug-signature.mjs --json # machine-readable+// node scripts/rug-signature.mjs --min-mc 3000 # only coins that reached a floor MC (ignore stillborn)+//+// "won" = outcome in ('graduated','pumped') (ath_multiple >= 3x or graduated)+// "rug" = outcome = 'rugged'+// "flat" = outcome = 'flat' (died without rugging or pumping)+//+// The point of separating "rug" from "flat": a coin that never traded is not a+// honeypot, it's just dead. The owner's honeypot is the one that LOOKED alive at+// entry (a real opening candle, a stairstep) and then dumped. To find its tell we+// must compare rugs against WINNERS on the features visible at entry, and against+// flats to make sure we're not just describing "low activity".++import { execSync } from 'node:child_process';+import { createRequire } from 'node:module';+const require = createRequire(import.meta.url);+const { Pool } = require('@neondatabase/serverless');++const args = process.argv.slice(2);+const asJson = args.includes('--json');+const minMcIdx = args.indexOf('--min-mc');+const minMc = minMcIdx >= 0 ? Number(args[minMcIdx + 1]) : 0;++function resolveDatabaseUrl() {+ if (process.env.DATABASE_URL) return process.env.DATABASE_URL;+ const svc = JSON.parse(execSync(+ 'gcloud run services describe three-ws-api --region us-central1 --project aerial-vehicle-466722-p5 --format=json',+ { encoding: 'utf8' },+ ));+ const env = svc.spec.template.spec.containers[0].env || [];+ const row = env.find((e) => e.name === 'DATABASE_URL');+ if (row?.value) return row.value;+ throw new Error('DATABASE_URL not found in env or Cloud Run service');+}++// The entry-time features. Each is a SQL expression over pump_coin_intel (i) so+// derived ratios (sellers-per-buyer, sell/buy count) are computed in-DB. Keep+// these to things VISIBLE AT ENTRY: no post-hoc outcome fields.+const FEATURES = [+ ['unique_buyers', 'i.unique_buyers'],+ ['unique_sellers', 'i.unique_sellers'],+ ['sellers_per_100_buyers', 'case when i.unique_buyers > 0 then round(100.0 * i.unique_sellers / i.unique_buyers, 1) else 0 end'],+ ['buy_count', 'i.buy_count'],+ ['sell_count', 'i.sell_count'],+ ['sell_per_100_buys', 'case when i.buy_count > 0 then round(100.0 * i.sell_count / i.buy_count, 1) else 0 end'],+ ['dev_buy_sol', 'round(i.dev_buy_lamports / 1e9, 3)'],+ ['dev_sold_pct', '(i.dev_sold::int * 100)'],+ ['snipe_ratio', 'round(i.snipe_ratio, 3)'],+ ['bundle_score', 'round(i.bundle_score, 3)'],+ ['organic_score', 'round(i.organic_score, 3)'],+ ['concentration_top10', 'round(i.concentration_top10, 3)'],+ ['fresh_wallet_ratio', 'round(i.fresh_wallet_ratio, 3)'],+ ['quality_score', 'i.quality_score'],+ ['largest_buy_sol', 'round(i.largest_buy_lamports / 1e9, 3)'],+];++// Percentile summary for one feature across one bucket, plus the base rate.+async function distribution(pool, expr, bucketPred) {+ const q = `+ select+ count(*) as n,+ round(percentile_cont(0.5) within group (order by v)::numeric, 3) as p50,+ round(percentile_cont(0.25) within group (order by v)::numeric, 3) as p25,+ round(percentile_cont(0.75) within group (order by v)::numeric, 3) as p75,+ round(avg(v)::numeric, 3) as mean+ from (+ select (${expr})::numeric as v+ from pump_coin_intel i+ join pump_coin_outcomes o on o.mint = i.mint+ where i.network = 'mainnet'+ and ${bucketPred}+ and (${expr}) is not null+ ${minMc ? `and coalesce(o.ath_market_cap_usd, 0) >= ${minMc}` : ''}+ ) s`;+ const { rows } = await pool.query(q);+ return rows[0];+}++const BUCKETS = {+ won: `o.outcome in ('graduated','pumped')`,+ rug: `o.outcome = 'rugged'`,+ flat: `o.outcome = 'flat'`,+};++async function main() {+ const pool = new Pool({ connectionString: resolveDatabaseUrl() });+ try {+ // Bucket sizes first: how much labeled evidence do we actually have?+ const counts = {};+ for (const [name, pred] of Object.entries(BUCKETS)) {+ const { rows } = await pool.query(+ `select count(*)::int as n from pump_coin_intel i+ join pump_coin_outcomes o on o.mint = i.mint+ where i.network='mainnet' and ${pred}+ ${minMc ? `and coalesce(o.ath_market_cap_usd,0) >= ${minMc}` : ''}`,+ );+ counts[name] = rows[0].n;+ }++ const table = [];+ for (const [label, expr] of FEATURES) {+ const row = { feature: label };+ for (const bucket of Object.keys(BUCKETS)) {+ row[bucket] = await distribution(pool, expr, BUCKETS[bucket]);+ }+ // Separation: how far the rug median sits from the winner median,+ // scaled by the winner IQR so it is comparable across features. A+ // big |sep| means the feature actually discriminates rugs from wins.+ const w = row.won, r = row.rug;+ const iqr = Math.max(1e-9, Number(w.p75) - Number(w.p25));+ row.separation = Number((((Number(r.p50) - Number(w.p50)) / iqr)).toFixed(2));+ table.push(row);+ }++ if (asJson) {+ console.log(JSON.stringify({ minMc, counts, features: table }, null, 2));+ return;+ }++ console.log(`\nRug signature from labeled outcomes${minMc ? ` (ATH MC >= $${minMc})` : ''}`);+ console.log(`buckets: won=${counts.won} rug=${counts.rug} flat=${counts.flat}\n`);+ const pad = (s, n) => String(s).padStart(n);+ console.log(+ pad('feature', 22),+ pad('won.p50', 9), pad('rug.p50', 9), pad('flat.p50', 9),+ pad('sep(σIQR)', 11),+ );+ console.log('-'.repeat(72));+ // Sort by absolute separation: the strongest tells float to the top.+ table.sort((a, b) => Math.abs(b.separation) - Math.abs(a.separation));+ for (const row of table) {+ console.log(+ pad(row.feature, 22),+ pad(row.won.p50, 9), pad(row.rug.p50, 9), pad(row.flat.p50, 9),+ pad(row.separation, 11),+ );+ }+ console.log('\nsep = (rug.p50 - won.p50) / won.IQR. |sep| > ~0.8 is a real, separating tell.');+ console.log('positive sep: rugs run HIGHER on this feature; negative: rugs run LOWER.\n');+ } finally {+ await pool.end();+ }+}++main().catch((e) => {+ console.error(e.message || e);+ process.exit(1);+});diff --git a/src/ar-studio.js b/src/ar-studio.jsindex c132b0a4a..f752eec3b 100644--- a/src/ar-studio.js+++ b/src/ar-studio.js@@ -1612,8 +1612,8 @@ async function fetchTrayItems(tab) {items = readRecent().map((e) => ({ src: e.glb, title: e.prompt, poster: '' }));} else if (tab === 'objects') {// The CC0 object library (/objects). The full manifest is a few hundred- // small records — fetch it once so the tab's filter box works offline of- // the network after first open.+ // small records; fetch it once so the tab's filter box runs client-side+ // with no further requests.const res = await fetch('/api/objects/library');if (!res.ok) throw new Error(`objects ${res.status}`);const data = await res.json();@@ -1729,7 +1729,7 @@ function wireTrayAdds() {});}-// The object library is ~500 CC0 props — too many to scroll blind, so this tab+// The object library is ~500 CC0 props, too many to scroll blind, so this tab// filters over name + category and renders matches in slices.const OBJECTS_SLICE = 60;function renderObjectsTray(items) {@@ -1740,7 +1740,7 @@ function renderObjectsTray(items) {placeholder="Search ${items.length} CC0 props…"aria-label="Search the object library" /></div>- <p class="ars-link-hint">Free CC0 props from the <a href="/objects">object library</a> — tap to place one in your space.</p>+ <p class="ars-link-hint">Free CC0 props from the <a href="/objects">object library</a>. Tap one to place it in your space.</p></div><ul class="ars-item-list" id="ars-objects-list"></ul><div class="ars-objects-more" id="ars-objects-more"></div>`;diff --git a/src/objects-library.js b/src/objects-library.jsindex e526f9af6..39ad53633 100644--- a/src/objects-library.js+++ b/src/objects-library.js@@ -44,6 +44,9 @@ function renderCard(o) {const previewUrl = glbUrl ? `/app#model=${encodeURIComponent(glbUrl)}` : '#';const thumb = o.thumb || '';const alt = o.label || o.name || 'Object';+ const arUrl = glbUrl+ ? `/ar/studio?src=${encodeURIComponent(glbUrl)}&title=${encodeURIComponent(alt)}`+ : '#';const cat = (o.categories && o.categories[0]) || '';const card = document.createElement('article');@@ -70,6 +73,7 @@ function renderCard(o) {</div><div class="ch-card-actions"><a class="ch-btn ch-btn--primary" href="${escapeAttr(previewUrl)}" title="Open in the 3D viewer">Preview</a>+ <a class="ch-btn ch-btn--ghost" href="${escapeAttr(arUrl)}" title="Place this prop in your room with AR Studio">AR</a><a class="ch-btn ch-btn--ghost" href="${escapeAttr(glbUrl)}" download title="Download the GLB (CC0, free to reuse)">Download</a></div></div>diff --git a/tests/sniper-optimizer.test.js b/tests/sniper-optimizer.test.jsindex 65c8082c5..cc147d703 100644--- a/tests/sniper-optimizer.test.js+++ b/tests/sniper-optimizer.test.js@@ -11,7 +11,7 @@*/import { describe, it, expect } from 'vitest';-import { proposeAdjustments, MIN_SAMPLE, BOUNDS, STEP } from '../api/_lib/sniper-optimizer.js';+import { proposeAdjustments, bestOracleThreshold, MIN_SAMPLE, BOUNDS, STEP } from '../api/_lib/sniper-optimizer.js';const baseConfig = {decision_mode: 'rules',