Skip to content

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.

Economy-tick cron + pulse refinements

nirholas51da040e5ef9
diff --git a/api/cron/economy-tick.js b/api/cron/economy-tick.js
index e800e3a43..d3c0f9bb2 100644
--- a/api/cron/economy-tick.js
+++ b/api/cron/economy-tick.js
@@ -61,7 +61,13 @@ const TARGETS = [
// ── Coin launches (pump.fun) ───────────────────────────────────────────
{ label: 'launcher', path: '/api/cron/launcher-tick', method: 'GET' },
{ label: 'launcher-claimer', path: '/api/cron/launcher-claimer', method: 'GET' },
- { label: 'coin-intel', path: '/api/cron/coin-intel-observe', method: 'GET' },
+ // coin-intel-observe is deliberately NOT fired here. It is a firehose that
+ // observes PumpPortal for OBSERVE_MS (85s) inside its own 120s maxDuration and
+ // runs on its own dedicated `*/2 * * * *` cron. Firing it from the economy tick
+ // aborted it at CALL_TIMEOUT_MS (60s) every single minute — a guaranteed
+ // timeout that never once completed, opened a doomed WebSocket per tick, and
+ // pinned the /status economy heartbeat to failed:1. The 2-min cron is the only
+ // correct owner of this engine.
{ label: 'pumpfun-monitor', path: '/api/cron/pumpfun-monitor', method: 'GET' },
{ label: 'pumpfun-graduations', path: '/api/cron/pumpfun-graduations-sync', method: 'GET' },
{ label: 'coin-cycle', path: '/api/cron/run-coin-cycle', method: 'GET' },
diff --git a/api/pulse.js b/api/pulse.js
index 77ca7ba2e..b5a332b21 100644
--- a/api/pulse.js
+++ b/api/pulse.js
@@ -131,6 +131,13 @@ function shapeEvent(r) {
mint: r.mint || null,
symbol: r.symbol || null,
coin_name: r.coin_name || null,
+ // Trade direction, derived from which leg the agent spent: a BUY spends the
+ // SOL/USDC/THREE quote leg (asset != mint), a SELL spends the token itself
+ // (asset == mint). Only meaningful for coin-moving trade/snipe rows; null
+ // otherwise. Lets a coin page colour each marker without an extra column.
+ side: (r.kind === 'trade' || r.kind === 'snipe') && r.mint
+ ? (r.asset === r.mint ? 'sell' : 'buy')
+ : null,
skill: r.skill || null, // marketplace 'purchase' beats carry the skill name
mint_explorer: r.mint ? explorerAccountUrl(r.mint, r.network) : null,
// the counterparty of a tip / payment, when public on-chain
@@ -139,7 +146,7 @@ function shapeEvent(r) {
}
// ── feed view ───────────────────────────────────────────────────────────────
-async function handleFeed(req, res, { network, type, agentId, cursor, since }) {
+async function handleFeed(req, res, { network, type, agentId, mint, cursor, since }) {
const kinds = TYPE_KINDS[type] || TYPE_KINDS.all;
const limit = Math.min(MAX_LIMIT, Math.max(1, Number(new URL(req.url, 'http://x').searchParams.get('limit')) || 30));
@@ -298,10 +305,18 @@ async function handleFeed(req, res, { network, type, agentId, cursor, since }) {
? sql`AND (feed.ts > ${sinceCur.ts} OR (feed.ts = ${sinceCur.ts} AND feed.row_id > ${sinceCur.rowId}))`
: sql``;
+ // Coin-scoped feed: every agent transaction in one token, newest first. The
+ // unified `feed.mint` column already resolves the traded mint on every branch
+ // (trade/snipe via meta.mint or the asset leg, launch via pump_agent_mints), so
+ // one equality narrows the whole UNION to a single coin. Powers the "agent
+ // transactions" panel + chart markers on the coin detail page.
+ const mintFilter = mint ? sql`AND feed.mint = ${mint}` : sql``;
+
const rows = await sql`
WITH feed AS (${feedCte})
SELECT * FROM feed
WHERE feed.kind = ANY(${kinds})
+ ${mintFilter}
${olderBound}
${newerBound}
ORDER BY feed.ts DESC, feed.row_id DESC
@@ -323,6 +338,7 @@ async function handleFeed(req, res, { network, type, agentId, cursor, since }) {
network,
type,
agent_id: agentId || null,
+ mint: mint || null,
};
}
diff --git a/data/changelog.json b/data/changelog.json
index b3fedd427..0a22340d5 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,25 @@
{
"$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-17",
+ "title": "The homepage Forge grew the full studio's brains",
+ "summary": "The mini-forge on the homepage is no longer just a prompt box on the free lane. An Options panel now unfolds under it with the same controls the full Forge runs on: choose a quality tier (Draft, Standard, or the $THREE-holder High tier, with hold-or-pay-per-generation built in), pick a specific engine or leave it on Auto (which routes to the best live lane and shows each engine's real up or down status), set the aspect ratio, and add your own provider key for keyed lanes. Two new one-tap helpers sit in the bar: Enhance rewrites your prompt into a richer, single-subject spec for sharper geometry, and Surprise rolls a fresh idea. The controls read the exact same catalog and health feed as the full page, so the two never drift, and the default view stays the clean single bar until you open Options.",
+ "tags": [
+ "feature",
+ "improvement"
+ ],
+ "link": "/"
+ },
+ {
+ "date": "2026-07-17",
+ "title": "Avatars made from your photo now match your actual face shape",
+ "summary": "When you create an avatar from a selfie, it used to paint your face onto a generic head, so the shape (jaw, nose, brow, how wide your face is) stayed the same for everyone. Now the head is reshaped to your real face structure, so the avatar reads as you, not just your photo on a mannequin. The avatar still arrives fully rigged with all its facial expressions and lip-sync shapes intact, ready to animate. This is the first step of a bigger push toward photoreal, self-hosted avatars that beat the best avatar makers out there.",
+ "tags": [
+ "improvement",
+ "feature"
+ ]
+ },
{
"date": "2026-07-17",
"title": "The autonomous-trading scoreboard now counts only real on-chain trades",