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(duels): award trader-duel badges and keep duel XP out of the daily quest count
nirholasacf330a5115e
diff --git a/api/_lib/streaks.js b/api/_lib/streaks.jsindex 488df0164..9b3509eb4 100644--- a/api/_lib/streaks.js+++ b/api/_lib/streaks.js@@ -32,6 +32,10 @@ export const BADGES = Object.freeze({QUEST_FIRST: 'quest_first',QUEST_CLEAR: 'quest_clear',QUEST_STREAK_7: 'quest_streak_7',+ DUEL_FIRST: 'duel_first',+ DUEL_HIT: 'duel_hit',+ DUEL_STREAK_3: 'duel_streak_3',+ DUEL_SHARP: 'duel_sharp',TOP10: (metric) => `top10_${metric}`,});@@ -81,6 +85,26 @@ export const BADGE_META = {description: 'Cleared the daily trading quests seven days running.',icon: '🏅',},+ duel_first: {+ label: 'First Call',+ description: 'Made a first call on a trader duel.',+ icon: '🎲',+ },+ duel_hit: {+ label: 'Called It',+ description: 'Called a trader duel correctly.',+ icon: '📣',+ },+ duel_streak_3: {+ label: 'Hot Hand',+ description: 'Called three decided trader duels in a row correctly.',+ icon: '🔥',+ },+ duel_sharp: {+ label: 'Sharp Caller',+ description: 'Right on at least 70% of ten or more decided trader duels.',+ icon: '🧠',+ },};function top10Meta(metric) {diff --git a/api/_lib/trading-quests.js b/api/_lib/trading-quests.jsindex 1edaabeb4..55dc2b885 100644--- a/api/_lib/trading-quests.js+++ b/api/_lib/trading-quests.js@@ -317,7 +317,7 @@ export async function loadQuestBoard(userId, { now = Date.now() } = {}) {const [[totals], clearRows] = await Promise.all([sql`select coalesce(sum(xp), 0)::int as xp,- count(*) filter (where code <> ${DAILY_CLEAR.code})::int as quests_done+ count(*) filter (where code <> ${DAILY_CLEAR.code} and code not like 'duel:%')::int as quests_donefrom trading_quest_completions where user_id = ${userId}`,sql`