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: integrate quote mint filtering across multiple API endpoints and workers
zprv20f95712671a
diff --git a/api/cron/oracle-score.js b/api/cron/oracle-score.jsindex ec2a1dbed..e00c3b22c 100644--- a/api/cron/oracle-score.js+++ b/api/cron/oracle-score.js@@ -27,7 +27,7 @@ import { runScorePass } from '../../workers/oracle/score-loop.js';import { actOnFreshCoins, freshlyScored } from '../../workers/oracle/agent-loop.js';import { runSettlePass } from '../../workers/oracle/settle-loop.js';import { alertNewHighConviction } from '../_lib/oracle/alerts.js';-import { purgeOldHistory } from '../_lib/oracle/store.js';+import { purgeOldHistory, purgeQuoteMints } from '../_lib/oracle/store.js';// How far back the agent pass looks for scored coins. Wider than the cron// cadence so a missed tick still catches up; the per-(agent,mint) dedup makes@@ -87,6 +87,10 @@ export default wrapCron(async (req, res) => {// slow delete never extends the cron response time.purgeOldHistory(cfg.network).catch(() => {});+ // 6) Self-heal: evict any quote/stablecoin/LST mints (USDC, USDT, wSOL, …)+ // cached before the ingestion guard existed. Fire-and-forget.+ purgeQuoteMints(cfg.network).catch(() => {});+return json(res, 200, {ok: true,network: cfg.network,diff --git a/api/oracle/movers.js b/api/oracle/movers.jsindex 9259b3661..9a72108da 100644--- a/api/oracle/movers.js+++ b/api/oracle/movers.js@@ -26,6 +26,7 @@import { cors, json, method, wrap, rateLimited } from '../_lib/http.js';import { limits, clientIp } from '../_lib/rate-limit.js';import { sql } from '../_lib/db.js';+import { QUOTE_MINT_LIST } from '../_lib/quote-mints.js';const NETWORKS = new Set(['mainnet', 'devnet']);const DIRECTIONS = new Set(['rising', 'falling', 'all']);@@ -83,6 +84,7 @@ export default wrap(async (req, res) => {from deduped djoin oracle_conviction c on c.mint = d.mint and c.network = d.networkwhere abs(c.score - d.first_score) >= ${minDelta}+ and c.mint <> all(${QUOTE_MINT_LIST})and (${direction}::text = 'all'or (${direction}::text = 'rising' and c.score > d.first_score)diff --git a/api/oracle/search.js b/api/oracle/search.jsindex dc5b633e3..8880e3fee 100644--- a/api/oracle/search.js+++ b/api/oracle/search.js@@ -14,6 +14,7 @@import { cors, json, method, wrap, error, rateLimited } from '../_lib/http.js';import { limits, clientIp } from '../_lib/rate-limit.js';import { sql } from '../_lib/db.js';+import { QUOTE_MINT_LIST } from '../_lib/quote-mints.js';const NETWORKS = new Set(['mainnet', 'devnet']);@@ -38,6 +39,7 @@ export default wrap(async (req, res) => {from oracle_convictionwhere network = ${network}and (symbol ilike ${pattern} or name ilike ${pattern})+ and mint <> all(${QUOTE_MINT_LIST})order by score desc nulls lastlimit ${limit}`;diff --git a/api/oracle/wins.js b/api/oracle/wins.jsindex d40a0c91f..72431e221 100644--- a/api/oracle/wins.js+++ b/api/oracle/wins.js@@ -23,6 +23,7 @@import { cors, json, method, wrap, rateLimited } from '../_lib/http.js';import { limits, clientIp } from '../_lib/rate-limit.js';import { sql } from '../_lib/db.js';+import { QUOTE_MINT_LIST } from '../_lib/quote-mints.js';const NETWORKS = new Set(['mainnet', 'devnet']);const TIERS = new Set(['prime', 'strong', 'lean', 'watch', 'avoid', 'all']);@@ -85,6 +86,7 @@ export default wrap(async (req, res) => {where c.network = ${network}and o.ath_multiple >= ${minAth}and (o.graduated or o.ath_multiple >= 2)+ and c.mint <> all(${QUOTE_MINT_LIST})${tierFilter}${periodFilter}${beforeFilter}@@ -107,6 +109,7 @@ export default wrap(async (req, res) => {where c.network = ${network}and o.ath_multiple >= ${minAth}and (o.graduated or o.ath_multiple >= 2)+ and c.mint <> all(${QUOTE_MINT_LIST})${tierFilter}${periodFilter}`.catch(() => [{}]);diff --git a/api/pump/launch-detail.js b/api/pump/launch-detail.jsindex 50fcaeaca..28dec2957 100644--- a/api/pump/launch-detail.js+++ b/api/pump/launch-detail.js@@ -162,7 +162,8 @@ async function buildDetail(mint, network) {ai.meta->>'solana_address' as agent_solana_address,ai.meta->>'solana_vanity_prefix' as agent_solana_vanity_prefix,ai.meta->>'solana_vanity_suffix' as agent_solana_vanity_suffix,- a.thumbnail_key as avatar_thumbnail_key, a.visibility as avatar_visibility+ a.thumbnail_key as avatar_thumbnail_key, a.storage_key as avatar_storage_key,+ a.visibility as avatar_visibilityfrom pump_agent_mints pamleft join agent_identities ai on ai.id = pam.agent_id and ai.deleted_at is nullleft join avatars a on a.id = ai.avatar_id and a.deleted_at is null@@ -287,6 +288,10 @@ async function buildDetail(mint, network) {url: `/agents/${reg.agent_id}`,is_public: reg.agent_public,avatar_thumbnail_url: avatarPublic ? safeR2Url(reg.avatar_thumbnail_key) : null,+ // The launching agent's interactive 3D model — drives the inline+ // <agent-3d> stage on the coin page. Public/unlisted only; private+ // avatars fall back to the shared mannequin client-side.+ avatar_model_url: avatarPublic ? safeR2Url(reg.avatar_storage_key) : null,// Public custodial wallet (+ vanity) of the launching agent, so the// shared wallet chip renders identically here as on the feed/profile.solana_address: reg.agent_solana_address || null,diff --git a/src/launch-detail.js b/src/launch-detail.jsindex 68bc6f33e..e589488b7 100644--- a/src/launch-detail.js+++ b/src/launch-detail.js@@ -36,6 +36,7 @@ import {verifiedBadge,} from './trader-format.js';import { walletChipEl } from './shared/agent-wallet-chip.js';+import { agentAvatarGlb, hasCustomAvatar, seeInWorldHref } from './shared/agent-3d.js';const GRADUATION_CAP_USD = 69_000; // pump.fun bonding-curve graduation thresholdconst REDUCED_MOTION = window.matchMedia('(prefers-reduced-motion: reduce)').matches;diff --git a/workers/oracle/score-loop.js b/workers/oracle/score-loop.jsindex 63b7bd6ea..09e981653 100644--- a/workers/oracle/score-loop.js+++ b/workers/oracle/score-loop.js@@ -9,6 +9,7 @@import { sql } from '../../api/_lib/db.js';import { log } from './log.js';import { scoreCoin } from '../../api/_lib/oracle/store.js';+import { QUOTE_MINT_LIST } from '../../api/_lib/quote-mints.js';/** Mints that need (re)scoring: recent brain coins missing or stale in our cache. */async function pendingMints(cfg) {@@ -18,6 +19,7 @@ async function pendingMints(cfg) {left join oracle_conviction c on c.mint = i.mint and c.network = ${cfg.network}where i.network = ${cfg.network}and i.first_seen_at > now() - interval '12 hours'+ and i.mint <> all(${QUOTE_MINT_LIST})and (c.mint is null or c.scored_at < now() - (${cfg.rescoreAfterSec} || ' seconds')::interval)order by i.first_seen_at desclimit ${cfg.scoreBatch}