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
Merge branch 'main' of https://github.com/nirholas/three.ws
nirholas2f9b4140b808
diff --cc tasks/CLEANUP-MANIFEST.mdindex 0ee40af3f,b6165f66e..e4c8052cd--- a/tasks/CLEANUP-MANIFEST.md+++ b/tasks/CLEANUP-MANIFEST.md@@@ -101,32 -101,19 +101,48 @@@ verifiably present in code**KEEP (notable):** all monetization/ + monetization-prompts/ (subscriptions, bundles, NFT receipts, fiat, creator payouts, email, admin — none shipped); all feature-innovation/ (improvement specs, gaps remain); all living-agents/, living-wallet/, wallet-innovation/, inventions/, moonshots/, agent-studio 04-12, vanity-* (named modules absent).+## 2026-06-21 verified-shipped sweep (25 removed)++| spec file | decision | evidence |+|---|---|---|+| tasks/next-gen-trading/01-rug-honeypot-firewall.md | DELETE | api/_lib/trade-firewall.js:assessTradeSafety (round-trip simulateTransaction + mint authority + venue checks), api/pump/safety.js endpoint, migration 20260620045927_trade_firewall.sql (firewall_level/firewall_decisions), executor.js wiring, and src/shared/safety-panel.js gating buy in coin-buy.js/trade.js all shipped. |+| tasks/next-gen-trading/02-mev-execution-engine.md | DELETE | api/_lib/execution-engine.js:submitProtected (Jito sendBundle + dynamic fee/tip + retry), trade-client.js routes signAndSend through it, migration 20260620062600_mev_execution.sql adds exec_route/tip_lamports/landed_ms, persisted in executor.js, and mev_tip_mode editor + exec readout in src/dashboard-next/pages/sniper.js. |+| tasks/next-gen-trading/03-smart-money-graph.md | DELETE | api/_lib/smart-money.js:getSmartMoneyForMint/getWalletReputation, workers/agent-sniper/recompute-wallet-graph.js job, migration 20260620061500_smart_money_graph.sql (smart_wallet_reputation/smart_wallet_clusters), scorer.js min_smart_money_score gate, api/intel/smart-money.js + api/intel/wallet/[address].js, and src/shared/smart-money-panel.js all shipped. |+| tasks/irl-production/10-mobile-responsive-polish.md | DELETE | pages/irl.html: viewport-fit=cover meta (L6), env(safe-area-inset-*) in portrait+landscape (L118-261, L1773-1781), .irl-secondary-row flex-wrap for 320px (L395-401), 44px tap targets (L434-437), #irl-caption-input font:16px (L1096, no iOS zoom), .irl-agent-label-name ellipsis (L1310); changelog entry shipped (data/changelog.json L856). |+| tasks/irl-production/13-security-validation.md | DELETE | api/irl/pins.js: outfit-bake error logs server-side and returns generic 502 (L791-796), isValidPinId gates calibrate/outfit/delete (L1274,1397), isExpiredOrHidden+ownership on mutations (L535-542,768-773), safePaymentEndpoint fail-safe allow-list (L160-193); api/irl/report.js: sanitizeDetail (L66-74) + REPORT_PIN_CAP_24H per-pin 429 (L49,155-169); covered by tests/api/irl-pins-hardening.test.js and irl-report.test.js. |+| tasks/irl-production/14-observability.md | DELETE | api/irl/interactions.js view_count catch logs (L326-327); api/irl/interactions-stream.js poller-health metrics (L112-141); api/irl/report.js auto-hide structured log + sendOpsAlert (L211-225); api/cron/irl-reap.js swept log + isReapSpike/sendOpsAlert (L150-160); multiplayer/src/rooms/IrlRoom.js join/leave/error logs no PII (L108,172,177); reapTotal/isReapSpike unit-tested in tests/api/irl-reap-cron.test.js. |+| prompts/monetization/17-subscription-purchase-flow.md | DELETE | api/subscriptions/subscribe.js + verify.js (activateSubscription in api/_lib/subscription-checkout.js) display tiers (src/marketplace.js renderSubscriptionTiers), process first payment, and create creator_subscriptions/subscription_payments/user_agent_subscriptions records with start/end. |+| prompts/monetization/19-backend-record-earnings.md | DELETE | api/_lib/purchase-confirm.js computes gross/platform_fee/net and inserts the creator earnings ledger row (agent_revenue_events) inside the confirmation transaction after grant creation. |+| prompts/monetization/22-my-collection-page.md | DELETE | pages/collection.html (wired in vite.config.js) + src/collection.js render My Skills + My Subscriptions sections with auth wall, fetching /api/users/me/purchased-skills and /api/subscriptions. |+| prompts/monetization/17-subscription-payment-activation.md | DELETE | api/subscriptions/subscribe.js + verify.js + api/_lib/subscription-checkout.js:activateSubscription build/verify/activate the subscription (creator_subscriptions, subscription_payments, user_agent_subscriptions), wired from src/shared/skill-purchase.js:openSubscribeFlow. |+| prompts/monetization/18-tip-jar-feature.md | DELETE | src/shared/agent-tip.js + src/shared/agent-tip-modal.js (openTipModal) implement a real SOL/USDC tip-an-agent modal, reachable on agent/marketplace detail via the wallet chip (src/shared/agent-wallet-chip.js, used by src/marketplace-detail.js / src/agent-detail.js). |+| prompts/monetization/19-creator-revenue-dashboard.md | DELETE | pages/dashboard-next/monetize.html → src/dashboard-next/pages/monetize.js renders revenue summary, time-range chart, and payment history from /api/billing/revenue, /api/monetization/revenue, /api/users/me/earnings; routed at /dashboard/monetize in src/dashboard-next/nav.js. |+| prompts/monetization/19-platform-fee-integration.md | DELETE | api/_lib/marketplace-platform-fee.js (resolveMarketplaceFee, MARKETPLACE_PLATFORM_FEE_BPS + treasury wallet) appends a real on-chain creator/treasury split, consumed by api/subscriptions/subscribe.js and api/marketplace/purchase-bundle.js. |+| prompts/monetization/22-marketplace-analytics-dashboard.md | DELETE | api/marketplace/analytics.js computes total volume, unique buyers/sellers, daily sales time-series, top-10 skills and top-10 agents; rendered by src/marketplace-analytics.js (pages/marketplace-analytics.html), routed at /marketplace-analytics in data/pages.json. |+| prompts/monetization/24-subscription-model.md | DELETE | user_agent_subscriptions table + activation in api/_lib/subscription-checkout.js:activateSubscription, subscribe/verify endpoints, creator subscribe UI in src/agent-detail-market.js/marketplace.js, and the active-subscription access gate read for skill access. |+| prompts/agent-wallets/04-ownership-fork-to-own.md | DELETE | api/avatars/fork.js mints a fresh custodial wallet per fork (provisionAgentWallets) with forked_from lineage and GET ?of= fork network; public/avatar-actions.js renders owner wallet block, non-owner 'fork' CTA, lineage and provision moment. |+| prompts/agent-wallets/05-sniper-trading-copilot.md | DELETE | api/agents/solana-trade.js#handleTrade does real quote->spend-guard(enforceSpendLimit)->simulate->sign(recoverSolanaAgentKeypair)->confirm with audit, routed via solana-wallet.js action 'trade'; src/agent-wallet-hub/tabs/trade.js + snipe.js give the cockpit with positions/P&L/history. |+| prompts/monetization-prompts/10-creator-dashboard-earnings-ui.md | DELETE | Creator earnings dashboard shipped at src/dashboard-next/pages/monetize.js (Total Revenue/available, Recent Sales via renderPaymentsPanel, withdrawal UI via renderWithdrawals), reachable via /dashboard/monetize wired in src/dashboard-next/nav.js. |+| prompts/monetization-prompts/11-api-creator-earnings.md | DELETE | Creator earnings API shipped: api/monetization/revenue.js aggregates SUM(net_amount) from royalty_ledger and MonetizationService.getCreatorSalesData() returns the recent confirmed sales list with skill/agent names. |+| prompts/monetization-prompts/10-creator-payout-logic.md | DELETE | api/_lib/marketplace-platform-fee.js:resolveMarketplaceFee + api/_lib/purchase-confirm.js:feeLegSatisfied implement the on-chain creator/treasury fee split, verified at confirm and credited via recordRevenueEvent. |+| prompts/monetization-prompts/12-on-chain-receipts-as-nfts.md | DELETE | api/_lib/skill-nft.js:mintSkillNft mints a Metaplex Core receipt NFT to the buyer, wired via api/skills/mint.js and stored in skill_purchases.skill_nft_mint (schema.sql:1452). |+| prompts/monetization-prompts/16-on-chain-nft-license.md | DELETE | api/_lib/skill-nft.js:mintSkillNft + skill_nft_mint column + src/collection.js:nftLine renders the Solscan explorer link on the purchased-skills page. |+| prompts/monetization-prompts/21-gifting-skills.md | DELETE | api/payments/purchase-skill.js + api/_lib/resolve-recipient.js + MonetizationService recipient_user_id path + src/shared/skill-purchase.js gift UI + skill_gift_received notification (purchase-confirm.js:548) fully wire gifting. |+| prompts/monetization-prompts/21-skill-subscription-model-backend.md | DELETE | Full subscription backend: subscription_plans table, api/subscriptions/{plans,subscribe,verify}.js create/activate flow, and gating in api/_lib/skill-access.js (user_agent_subscriptions + creator_subscriptions). |+| prompts/monetization-prompts/22-unit-tests-monetization-service.md | DELETE | tests/api/monetization-service.test.js directly tests MonetizationService methods (setSkillPrices, preparePurchaseTransaction, confirmPurchase, etc.) and tests/monetization-service.test.js covers fee/balance/revenue logic. |++ ## monetization revenue (2026-06-21) — subscription earnings visibility shipped + 2 specs retired++ Built: creator subscription income now surfaced in the earnings dashboard.+ - api/billing/revenue.js: adds a block (income_usd, payment_count,+ active_subscribers, plan_count) + , sourced from+ subscription_payments→creator_subscriptions→subscription_plans. USD-denominated+ and kept SEPARATE from the atomic net_total/withdrawable balance (subscription+ legs settle creator-direct on-chain) so there is no unit-mixing or double-pay.+ - src/dashboard-next/pages/monetize.js: new "Subscription income" hero card.++ Retired (feature verified shipped):+ | spec | evidence |+ | --- | --- |+ | monetization-prompts/21-skill-subscription-model-backend.md | subscription_plans/creator_subscriptions/subscription_payments (schema.sql:1205+); api/subscriptions/{plans,subscribe,verify}.js; api/_lib/subscription-billing.js; gating in api/_lib/skill-access.js (creator_subscriptions check); process-subscriptions cron in api/cron/[name].js |+ | monetization-prompts/17-database-schema-creator-payouts.md | creator payout function shipped via agent_revenue_events (balance ledger) + agent_withdrawals (payout log) + api/billing/{revenue,withdrawals,payout-wallets} + process-withdrawals cron; the spec-named creator_balances/creator_payouts tables are intentionally superseded by this canonical ledger |