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
style(api): replace the em-dashes in this sweep's new comments with plain punctuation
nirholas69a9c7b79fc5
diff --git a/api/agents/[id].js b/api/agents/[id].jsindex c63184ff6..73444e57a 100644--- a/api/agents/[id].js+++ b/api/agents/[id].js@@ -16,7 +16,7 @@* /api/agents/:id/sign — owner-only: sign message with server wallet* /api/agents/:id/usage — owner-only: LLM usage stats* /api/agents/:id/achievements — public: earned + locked achievements from real platform data- * /api/agents/:id/reserves — public: proof-of-reserves (alias of /solana/reserves)+ * /api/agents/:id/reserves public proof-of-reserves (alias of /solana/reserves)** /api/agents/:id/livekit-token — GET short-lived LiveKit room JWT* /api/agents/:id/embed — POST text → 1024-dim embedding vectordiff --git a/api/agents/[id]/pricing-rules.js b/api/agents/[id]/pricing-rules.jsindex bacd97668..c86e9ad1a 100644--- a/api/agents/[id]/pricing-rules.js+++ b/api/agents/[id]/pricing-rules.js@@ -149,7 +149,7 @@ async function handlePatch(req, res, agentId, ruleId) {// start_at/end_at are nullable on purpose: sending an explicit null is how a// seller reopens a time window that had a bound. COALESCE alone cannot express- // that — it reads an explicit null exactly like an omitted key and keeps the+ // that: it reads an explicit null exactly like an omitted key and keeps the// old timestamp, so the write returned 200 while silently discarding the// clear. Distinguish "present and null" from "absent" before the query runs.const clearStart = Object.hasOwn(parsed.data, 'start_at') && start_at === null;diff --git a/api/agents/_id/memory/[cid].js b/api/agents/_id/memory/[cid].jsindex d344fe05f..7edc661aa 100644--- a/api/agents/_id/memory/[cid].js+++ b/api/agents/_id/memory/[cid].js@@ -18,7 +18,7 @@ const MAX_BYTES = 512 * 1024;// A public gateway can hang indefinitely on an unpinned CID. Without a deadline// the request holds a server slot until Cloud Run kills it, and three of those in-// series is three times the wait — bound each attempt so the chain can actually+// series is three times the wait, so bound each attempt so the chain can actually// reach the next gateway.const GATEWAY_TIMEOUT_MS = 12_000;diff --git a/api/agents/_id/memory/pin.js b/api/agents/_id/memory/pin.jsindex a45d03ec4..373d2adae 100644--- a/api/agents/_id/memory/pin.js+++ b/api/agents/_id/memory/pin.js@@ -15,8 +15,8 @@ const bodySchema = z.object({.max(260).regex(/^[A-Za-z0-9._-]+$/, 'invalid filename characters'),// base64-encoded bytes (encrypted, or plaintext for MEMORY.md). `Buffer.from`- // never throws on malformed base64 — it silently drops the invalid characters- // — so garbage would otherwise be pinned to IPFS as a valid-looking CID. The+ // never throws on malformed base64: it silently drops the invalid characters+ // so garbage would otherwise be pinned to IPFS as a valid-looking CID. The// shape is enforced here, before any byte reaches a pinning provider.data: z.string()diff --git a/api/agents/_id/payments.js b/api/agents/_id/payments.jsindex 583a47470..746d2acf3 100644--- a/api/agents/_id/payments.js+++ b/api/agents/_id/payments.js@@ -44,7 +44,7 @@ export const handlePayments = wrap(async (req, res, id) => {// `id < cursor` keyset compared random v4 uuids against a timestamp ordering// and silently skipped or repeated rows across pages; the id is only the// tiebreaker for rows sharing a `created_at`. A malformed cursor used to hit- // Postgres as an invalid uuid literal and 500 — it is validated here instead.+ // Postgres as an invalid uuid literal and 500, so it is validated here instead.const rawCursor = url.searchParams.get('cursor');let cursorTs = null;let cursorId = null;diff --git a/api/agents/_id/reserves.js b/api/agents/_id/reserves.jsindex 92517d7e1..2f732a84a 100644--- a/api/agents/_id/reserves.js+++ b/api/agents/_id/reserves.js@@ -63,7 +63,7 @@ export const handleReserves = wrap(async (req, res, agentId) => {}// Reserves are live; flows are a paginated ledger window. Short public cache so- // the "verify on-chain" claim stays close to real-time — but only for the+ // the "verify on-chain" claim stays close to real-time, but only for the// anonymous variant. The payload echoes `is_owner`, so an authenticated read is// personal and must never land in the shared CDN cache under this URL.varyOn(res, 'Cookie', 'Authorization');diff --git a/api/agents/nfts.js b/api/agents/nfts.jsindex dc85c8d4c..c5a6c350f 100644--- a/api/agents/nfts.js+++ b/api/agents/nfts.js@@ -25,7 +25,7 @@ const BASE58_RE = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;// DAS (`getAssetsByOwner`) is a Helius extension, not core Solana JSON-RPC.// dasRpcUrl() resolves HELIUS_API_KEY (or a SOLANA_RPC_URL that already points at-// Helius) and returns null when neither is set — which is a configuration fault,+// Helius) and returns null when neither is set, which is a configuration fault,// not a client error, so it maps to 503.const DAS_RPC = () => {const url = dasRpcUrl();diff --git a/api/animations/clips.js b/api/animations/clips.jsindex c641879ac..ebe656bdd 100644--- a/api/animations/clips.js+++ b/api/animations/clips.js@@ -310,7 +310,7 @@ function autoSlug(name) {function encodeCursor({ createdAt }) {return Buffer.from(JSON.stringify({ c: createdAt })).toString('base64url');}-// A cursor the caller mangled is ignored, never fatal — but the decoded date has+// A cursor the caller mangled is ignored, never fatal, but the decoded date has// to be real, or it reaches Postgres as an invalid timestamp and turns a typo in// a query string into a 500.function decodeCursor(cursor) {diff --git a/api/animations/sell.js b/api/animations/sell.jsindex db5d8e017..76531aa35 100644--- a/api/animations/sell.js+++ b/api/animations/sell.js@@ -118,10 +118,10 @@ async function handleList(req, res, auth, raw) {// clips/:id enforces the other half of that: a private clip 404s for// non-owners, and a priced unlisted one comes back `paywalled` with no// tracks. Listing for sale is intentionally not the same as publishing the- // clip free to the gallery — that is what `visibility: 'public'` means, and+ // clip free to the gallery: that is what `visibility: 'public'` means, and// a creator who chooses it is giving the motion away deliberately.// Re-pricing an existing listing usually re-sends only the key, so keep the- // size we already measured for that same artifact — dropping it blanks the+ // size we already measured for that same artifact, and dropping it blanks the// "size" a buyer sees in the marketplace feed. A new key resets it.const artifactBytes =input.artifact_bytes ??diff --git a/api/auth/wallets/[action].js b/api/auth/wallets/[action].jsindex 1800ae85b..3390c949c 100644--- a/api/auth/wallets/[action].js+++ b/api/auth/wallets/[action].js@@ -585,7 +585,7 @@ async function handleUnlinkWallet(req, res, address) {if (!wallet) return error(res, 404, 'not_found', 'wallet not found');// 2. Check if this is the only wallet. Postgres count(*) is a bigint and the- // Neon driver hands it back as a STRING ("1"), so this must be coerced —+ // Neon driver hands it back as a STRING ("1"), so this must be coerced:// a strict `=== 1` against the raw column never matched and let a// password-less account unlink its last wallet, its only way back in.const [count] = await sql`diff --git a/api/community/world-gate.js b/api/community/world-gate.jsindex 3d05ae007..79d10f03a 100644--- a/api/community/world-gate.js+++ b/api/community/world-gate.js@@ -16,7 +16,7 @@// 401 auth_required — POST without a CoinCommunities session// 403 not_creator — signed in, but not this coin's creator// 403 wallet_required — signed in, but no linked Solana wallet to match-// 400 solana_only — POST for a non-Solana world (see below)+// 400 solana_only: POST for a non-Solana world (see below)import { cors, error, json, method, readJson, wrap, rateLimited } from '../_lib/http.js';import { clientIp, limits } from '../_lib/rate-limit.js';import {diff --git a/api/cosmetics/earnings.js b/api/cosmetics/earnings.jsindex 0bc806210..8a206d03c 100644--- a/api/cosmetics/earnings.js+++ b/api/cosmetics/earnings.js@@ -24,7 +24,7 @@ export default wrap(async (req, res) => {}// A creator with no sales yet already reads back as zeroed totals from the- // ledger — not a 404 — so the dashboard renders the designed empty state.+ // ledger, not a 404, so the dashboard renders the designed empty state.// A read FAILURE is a different thing entirely and must not be flattened into// the same zeros: telling a creator they earned nothing because the ledger was// unreachable is fabricated financial data. Surface it as a retryable 503 so@@ -35,7 +35,7 @@ export default wrap(async (req, res) => {} catch (err) {console.warn('[cosmetics/earnings] read failed:', err?.message);return error(res, 503, 'ledger_unavailable',- 'the cosmetic sales ledger is temporarily unreachable — retry in a moment');+ 'the cosmetic sales ledger is temporarily unreachable, retry in a moment');}return json(res, 200, earnings, { 'cache-control': 'no-store' });diff --git a/api/cosmetics/split.js b/api/cosmetics/split.jsindex 0125bf167..174385753 100644--- a/api/cosmetics/split.js+++ b/api/cosmetics/split.js@@ -19,7 +19,7 @@ import { getSplitConfig, setSplitConfig, splitConfigMessage, isMint, MAX_CREATORexport default wrap(async (req, res) => {// Public origins: a config read is public, and a write is authorized by an- // ed25519 signature in the body, never by a cookie — so no credentialed CORS.+ // ed25519 signature in the body, never by a cookie, so no credentialed CORS.if (cors(req, res, { methods: 'GET,POST,OPTIONS', origins: '*' })) return;if (req.method === 'GET') {diff --git a/api/creators/skill-analytics.js b/api/creators/skill-analytics.jsindex adbcc2084..afe457c5a 100644--- a/api/creators/skill-analytics.js+++ b/api/creators/skill-analytics.js@@ -3,8 +3,8 @@** Aggregated skill usage metrics for all agents owned by the authenticated creator.* Query params:- * agent_id — filter to a specific agent (optional, must be a UUID)- * days — lookback window in days (default 30, clamped to 1..365)+ * agent_id: filter to a specific agent (optional, must be a UUID)+ * days: lookback window in days (default 30, clamped to 1..365)*/import { sql } from '../_lib/db.js';diff --git a/tests/agent-trade-endpoint.test.js b/tests/agent-trade-endpoint.test.jsindex 9473b6856..eb178a1e8 100644--- a/tests/agent-trade-endpoint.test.js+++ b/tests/agent-trade-endpoint.test.js@@ -475,7 +475,7 @@ describe('POST /api/agents/:id/trade — execution', () => {// answered 200 as though it had tightened it. A spend guardrail must never be// relaxed by a value the server could not parse.-describe('PUT /api/agents/:id/trade/limits — input validation', () => {+describe('PUT /api/agents/:id/trade/limits: input validation', () => {async function putLimits(body) {const req = mockReq({ method: 'PUT', url: `/api/agents/${AGENT_ID}/trade/limits`, body });const res = mockRes();diff --git a/tests/api-agents-recovery-handler.test.js b/tests/api-agents-recovery-handler.test.jsindex 006b9b36d..40daf1a6c 100644--- a/tests/api-agents-recovery-handler.test.js+++ b/tests/api-agents-recovery-handler.test.js@@ -1,4 +1,4 @@-// Tests for api/agents/recovery.js — the HTTP dispatcher behind+// Tests for api/agents/recovery.js, the HTTP dispatcher behind// /api/agents/:id/recovery. It is not a routable file of its own: the// vercel.json rule sends the path to api/agents/[id].js, which imports this// module and calls it with (req, res, id, action, parts). So nothing exercisesdiff --git a/tests/api/api-keys.test.js b/tests/api/api-keys.test.jsindex 535e8773a..053906ac9 100644--- a/tests/api/api-keys.test.js+++ b/tests/api/api-keys.test.js@@ -286,7 +286,7 @@ describe('DELETE /api/api-keys/:id — revoke 200', () => {});});-describe('DELETE /api/api-keys/:id — malformed id', () => {+describe('DELETE /api/api-keys/:id with a malformed id', () => {// api_keys.id is a uuid column, so a non-uuid segment used to reach Postgres// and come back as 22P02 → 500 with a support ref. Bad input is a 400.it.each(['not-a-uuid', ' ', '', "'; drop table api_keys; --"])(diff --git a/tests/creator-pricing-rules-isolation.test.js b/tests/creator-pricing-rules-isolation.test.jsindex d9df954df..c6ce25537 100644--- a/tests/creator-pricing-rules-isolation.test.js+++ b/tests/creator-pricing-rules-isolation.test.js@@ -97,7 +97,7 @@ describe('pricing-rules owner isolation', () => {});expect(status).toBe(401);expect(body.error).toBe('unauthorized');- // A rule set names scheduled and deactivated prices — never read it for an+ // A rule set names scheduled and deactivated prices, never read it for an// anonymous caller.expect(sqlState.calls.some((c) => /FROM skill_pricing_rules/i.test(c.query))).toBe(false);});