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.

style(rules): drop the banned dashes this sweep added and untrack the Neon probe

nirholasa35ad219c777
diff --git a/.probe-neon.mjs b/.probe-neon.mjs
deleted file mode 100644
index 0f770a5fa..000000000
--- a/.probe-neon.mjs
+++ /dev/null
@@ -1,6 +0,0 @@
-import { neon, neonConfig } from '@neondatabase/serverless';
-neonConfig.fetchEndpoint = 'http://127.0.0.1:54490/sql';
-neonConfig.useSecureWebSocket = false;
-neonConfig.poolQueryViaFetch = true;
-const sql = neon('postgres://postgres:[email protected]:5432/main');
-console.log(await sql`select version()`);
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index 925df624e..b316207f9 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -770,7 +770,7 @@ Beyond the feature areas above, the `api/` tree exposes many more surfaces. Comp
| `/api/users/*` (16) vs `/api/user/*` (5) | — | Two namespaces: `users/` = public profiles/follows/referrals/earnings; `user/` = account wallet/settings |
| `/api/rider/*`, `/api/play/*`, `/api/seed/*`, `/api/club/*` (incl. `tips-stream` SSE), `/api/tournaments/*`, `/api/clash/*` | — | Rider passes / play-pass / fixtures-seed / 3D-club tips / tournament + Coin Clash game surfaces |
-> Internal MCP handler implementations live in `api/_mcp`, `api/_mcp3d`, `api/_mcpagent`, `api/_mcpbazaar`, `api/_mcpibm`, `api/_mcp-studio` — see [MCP Layer](#mcp-layer).
+> Internal MCP handler implementations live in `api/_mcp`, `api/_mcp3d`, `api/_mcpagent`, `api/_mcpbazaar`, `api/_mcpibm`, `api/_mcp-studio`, see [MCP Layer](#mcp-layer).
---
diff --git a/api/_lib/market/upstream-error.js b/api/_lib/market/upstream-error.js
index 442bd0606..9dbebc7c0 100644
--- a/api/_lib/market/upstream-error.js
+++ b/api/_lib/market/upstream-error.js
@@ -5,7 +5,7 @@
// it does NOT do is decide how that reaches the client, and every handler used to
// answer differently:
// - an unmapped 502 bubbled into wrap(), which logs `[api] unhandled`, captures
-// to Sentry, and pages ops once per request — for someone else's rate limit;
+// to Sentry, and pages ops once per request, for someone else's rate limit;
// - an unmapped 429/404 came back as `bad_request` with the vendor's raw body
// (ref ids and all) pasted into error_description;
// - a handler that forwarded `err.code` emitted `{"error": undefined}`, i.e. a
diff --git a/api/labor/tick.js b/api/labor/tick.js
index c111ad23d..3375fce77 100644
--- a/api/labor/tick.js
+++ b/api/labor/tick.js
@@ -10,13 +10,13 @@
// an optimization, it is the correctness property that keeps the cap from
// starving the market: the scans are ordered oldest-first, so any row the driver
// can never move occupies a slot on every tick forever. Two such rows existed:
-// • a 'working' job whose worker never opted into autonomy — runAutopilot
+// • a 'working' job whose worker never opted into autonomy, runAutopilot
// returns immediately for it, so it can only ever leave 'working' through
// the manual /deliver endpoint. Ten of them (a human sitting on ten jobs)
// used to consume the entire job batch and no autonomous job was ever driven
// again. The scan now requires worker_enabled, mirroring the policy join the
// bounty scan already had.
-// • an open bounty holding fewer pending bids than its poster's min_bids —
+// • an open bounty holding fewer pending bids than its poster's min_bids,
// autoAwardIfReady declines it until more bids arrive, which may be never.
// Award-ready bounties now sort ahead of bid-gathering ones, so a bounty
// whose money is ready to move cannot be blocked behind ten that are not.
diff --git a/api/ledger/[agentId].js b/api/ledger/[agentId].js
index a9452f789..62e73e966 100644
--- a/api/ledger/[agentId].js
+++ b/api/ledger/[agentId].js
@@ -117,7 +117,7 @@ export default wrap(async (req, res) => {
// The track record is public by design; the agent's identity is not. An
// unlisted or deleted agent renders as the bare id, exactly like an id with no
- // identity row — this endpoint used to select is_public and never read it, so
+ // identity row, this endpoint used to select is_public and never read it, so
// it published the name and avatar of every agent its owner had made private.
const named = !!identity && identity.is_public !== false && !identity.deleted_at;
diff --git a/api/oauth/[action].js b/api/oauth/[action].js
index 36dfe9c01..3fb547a3a 100644
--- a/api/oauth/[action].js
+++ b/api/oauth/[action].js
@@ -114,7 +114,7 @@ async function handleAuthorize(req, res) {
if (!code_challenge_method) return error(res, 400, 'invalid_request', 'code_challenge_method required (must be S256)');
if (code_challenge_method !== 'S256') return error(res, 400, 'invalid_request', 'code_challenge_method must be S256');
const targetResource = canonicalResource(resource);
- if (!targetResource) return error(res, 400, 'invalid_target', `unknown resource — this server only issues tokens for ${env.MCP_RESOURCE}`);
+ if (!targetResource) return error(res, 400, 'invalid_target', `unknown resource, this server only issues tokens for ${env.MCP_RESOURCE}`);
const rows = await sql`select * from oauth_clients where client_id = ${client_id} limit 1`;
const client = rows[0];
if (!client) return error(res, 400, 'invalid_client', 'unknown client');
diff --git a/tests/api/ibm-attest.test.js b/tests/api/ibm-attest.test.js
index 6aedb0aa2..ae5a8b493 100644
--- a/tests/api/ibm-attest.test.js
+++ b/tests/api/ibm-attest.test.js
@@ -178,7 +178,7 @@ async function invoke(reqOpts) {
}
beforeEach(() => {
- vi.clearAllMocks(); // call counts only — the factory implementations survive
+ vi.clearAllMocks(); // call counts only, the factory implementations survive
state.wxConfigured = false;
state.guardianVerdict = 'No';
state.walletConfigured = false;
@@ -369,7 +369,7 @@ describe('POST /api/ibm/attest (notarize)', () => {
// A GeckoTerminal fault is a third party's problem. It must come back with a real
// error code (an upstream error carries a status but never a code, which used to
// produce a body with no `error` field at all) and must not read as a 5xx bug.
-describe('GET /api/ibm/attest — market data upstream failures', () => {
+describe('GET /api/ibm/attest: market data upstream failures', () => {
it('maps a missing pool to 404 pool_not_found', async () => {
fetchOhlcv.mockRejectedValueOnce(upstreamFault(404));
const { status, body } = await invoke({ url: `/api/ibm/attest?pool=${POOL}` });
diff --git a/tests/api/ibm-mcp.test.js b/tests/api/ibm-mcp.test.js
index a6b9a9ab6..68f3168f5 100644
--- a/tests/api/ibm-mcp.test.js
+++ b/tests/api/ibm-mcp.test.js
@@ -325,7 +325,7 @@ describe('IBM Granite MCP — pricing', () => {
// TOOL_PRICING, the map the 402 challenge and the settle path both read. A
// number quoted anywhere else is a number a caller can be shown before paying a
// different one.
-describe('IBM Granite MCP — advertised prices match the charged price', () => {
+describe('IBM Granite MCP: advertised prices match the charged price', () => {
const PRICED = Object.keys(TOOL_PRICING);
it('every priced tool title quotes its own price', () => {
diff --git a/tests/api/mcp-bazaar-challenge.test.js b/tests/api/mcp-bazaar-challenge.test.js
index ffb302780..f8a89b87c 100644
--- a/tests/api/mcp-bazaar-challenge.test.js
+++ b/tests/api/mcp-bazaar-challenge.test.js
@@ -74,7 +74,7 @@ const searchCall = {
params: { name: 'search_services', arguments: { query: 'weather' } },
};
-describe('POST /api/mcp-bazaar — unauthenticated challenge identity', () => {
+describe('POST /api/mcp-bazaar: unauthenticated challenge identity', () => {
it('plain x402 clients get a 402 naming the bazaar resource', async () => {
const res = makeRes();
await handler(makeReq({ body: searchCall }), res);
@@ -121,7 +121,7 @@ describe('POST /api/mcp-bazaar — unauthenticated challenge identity', () => {
});
});
-describe('POST /api/mcp-bazaar — free discovery for plain clients', () => {
+describe('POST /api/mcp-bazaar: free discovery for plain clients', () => {
it('initialize with no credentials advertises the bazaar server', async () => {
const res = makeRes();
await handler(
diff --git a/tests/api/mcp-payments-embed-policy.test.js b/tests/api/mcp-payments-embed-policy.test.js
index 1b95d5742..8a1f2bad2 100644
--- a/tests/api/mcp-payments-embed-policy.test.js
+++ b/tests/api/mcp-payments-embed-policy.test.js
@@ -1,4 +1,4 @@
-// api/_mcp/payments.js and api/_mcp/embed-policy.js — the two small shared
+// api/_mcp/payments.js and api/_mcp/embed-policy.js, the two small shared
// modules the MCP servers reach for on the paid path and the embed gate.
//
// payments.js is the single error boundary for every hand-rolled x402 MCP
diff --git a/tests/api/mcp-render-origin.test.js b/tests/api/mcp-render-origin.test.js
index 9d3768218..a8ce3b020 100644
--- a/tests/api/mcp-render-origin.test.js
+++ b/tests/api/mcp-render-origin.test.js
@@ -1,4 +1,4 @@
-// api/_mcp/render.js and api/_mcp/origin.js — the two shared helpers behind
+// api/_mcp/render.js and api/_mcp/origin.js, the two shared helpers behind
// every MCP tool that emits viewer HTML or an absolute link.
//
// render.js builds an HTML document from caller-supplied values, so its whole
diff --git a/tests/api/okx-3d-services.test.js b/tests/api/okx-3d-services.test.js
index b0f027672..42616ec39 100644
--- a/tests/api/okx-3d-services.test.js
+++ b/tests/api/okx-3d-services.test.js
@@ -396,7 +396,7 @@ describe('paid dispatch — verify → engine → settle', () => {
});
// The three tool-backed rows call an MCP tool handler DIRECTLY, bypassing the
-// studio dispatcher that would normally validate arguments — so a renamed key
+// studio dispatcher that would normally validate arguments, so a renamed key
// fails at runtime, on a paid call, with nothing catching it in between. This
// holds each adapter to the engine tool's own published schema.
describe('engine argument contract', () => {
diff --git a/tests/galaxy-flows-endpoint.test.js b/tests/galaxy-flows-endpoint.test.js
index e0218ff07..bd09632a7 100644
--- a/tests/galaxy-flows-endpoint.test.js
+++ b/tests/galaxy-flows-endpoint.test.js
@@ -1,5 +1,5 @@
/**
- * GET /api/galaxy/flows — request handling + degraded-path contracts.
+ * GET /api/galaxy/flows, request handling + degraded-path contracts.
*
* The pure row shaping lives in tests/galaxy-flows.test.js. This file pins the
* endpoint's own behaviour: how it sanitises query params before they reach
@@ -8,7 +8,7 @@
*
* The last-good snapshot is the load-bearing part. It is keyed by
* (network, type, limit) only, so a delta poll and the first page collide on it
- * while carrying completely different slices of the feed — which is why only the
+ * while carrying completely different slices of the feed, which is why only the
* first page may write or read it.
*/
@@ -180,7 +180,7 @@ describe('degraded paths', () => {
it('answers a failed delta poll with an empty window that echoes the client cursor', async () => {
const cur = encodeCursor('2026-08-12T09:00:00.000Z', 'c900');
- // A stale first-page snapshot exists — the poll must NOT be answered with it,
+ // A stale first-page snapshot exists, the poll must NOT be answered with it,
// or the client rewinds its cursor and replays past flows as new light.
h.cache.set('galaxy:flows:lastgood:mainnet:all:50', { flows: [{ id: 'c1' }], head_cursor: 'OLDHEAD' });
h.failNext = true;
diff --git a/tests/labor-tick-batch.test.js b/tests/labor-tick-batch.test.js
index b43b9e05b..4bafec6f8 100644
--- a/tests/labor-tick-batch.test.js
+++ b/tests/labor-tick-batch.test.js
@@ -6,7 +6,7 @@
// 1. HEAD-OF-LINE STARVATION. Both scans are `ORDER BY created_at ASC LIMIT 10`,
// so a row the driver can never advance holds a slot on every tick forever.
// The job scan selected any 'working' job, but runAutopilot returns
-// immediately unless the worker opted into autonomy — so ten jobs held by
+// immediately unless the worker opted into autonomy, so ten jobs held by
// manual workers (who deliver through /deliver, on their own time) consumed
// the whole batch and no autonomous job was ever driven again. The bounty scan
// admitted any open bounty with >= 1 pending bid, but autoAwardIfReady
@@ -18,7 +18,7 @@
// number the economy heartbeat reports.
// 3. NO ERROR ISOLATION OR REPORTING. Row reads inside the loop were unguarded,
// so one transient failure aborted the rest of the batch, and every driver
-// failure was swallowed by `.catch(() => null)` — a fully stalled lane
+// failure was swallowed by `.catch(() => null)`, a fully stalled lane
// reported `{ ok: true, settled: 0 }`, indistinguishable from a quiet minute.
//
// The sql double models only what those bugs turn on: which rows each scan asks
@@ -116,7 +116,7 @@ beforeEach(() => {
h.getJob.mockImplementation(async (id) => ({ id, status: 'delivered', worker_agent_id: 'w' }));
});
-describe('labor tick — auth and method gates', () => {
+describe('labor tick: auth and method gates', () => {
it('rejects a caller without the cron secret', async () => {
const res = await tick({ headers: {} });
expect(res.statusCode).toBe(401);
@@ -130,7 +130,7 @@ describe('labor tick — auth and method gates', () => {
});
});
-describe('labor tick — scans only rows it can advance', () => {
+describe('labor tick: scans only rows it can advance', () => {
it('requires an autonomous worker before scanning a working job', async () => {
await tick();
// A 'working' job is only admitted alongside an enabled worker policy: that
@@ -154,7 +154,7 @@ describe('labor tick — scans only rows it can advance', () => {
});
});
-describe('labor tick — counting', () => {
+describe('labor tick: counting', () => {
it('reports real progress across both lanes', async () => {
bountyRows = [{ id: 'b1' }, { id: 'b2' }];
jobRows = [{ id: 'j1', bounty_id: 'b9', status: 'delivered' }];
@@ -194,7 +194,7 @@ describe('labor tick — counting', () => {
});
});
-describe('labor tick — failure isolation', () => {
+describe('labor tick: failure isolation', () => {
it('finishes the batch when one row fails, and says which', async () => {
jobRows = [
{ id: 'j1', bounty_id: 'b1', status: 'delivered' },
diff --git a/tests/ledger-endpoints.test.js b/tests/ledger-endpoints.test.js
index 550fab74a..a57a8b8ac 100644
--- a/tests/ledger-endpoints.test.js
+++ b/tests/ledger-endpoints.test.js
@@ -1,5 +1,5 @@
/**
- * GET /api/ledger/:agentId and GET /api/ledger/verify/:agentId — the two public
+ * GET /api/ledger/:agentId and GET /api/ledger/verify/:agentId, the two public
* Reasoning Ledger reads.
*
* Both handlers run for real against an in-memory `sql` that speaks enough of the
@@ -85,7 +85,7 @@ const h = vi.hoisted(() => {
};
});
}
- // Full chain, ascending — what the verify endpoint rehashes.
+ // Full chain, ascending, what the verify endpoint rehashes.
if (text.includes('from agent_decisions') && text.includes('order by seq asc')) {
const [agentId] = params;
return store.decisions.filter((d) => d.agent_id === agentId).sort((a, b) => Number(a.seq) - Number(b.seq)).map((d) => ({ ...d }));
diff --git a/tests/mcp-trader-tools.test.js b/tests/mcp-trader-tools.test.js
index f88d5a495..ff8ce4d49 100644
--- a/tests/mcp-trader-tools.test.js
+++ b/tests/mcp-trader-tools.test.js
@@ -1,5 +1,5 @@
/**
- * Trader MCP tools (api/_mcp/tools/trader.js) — the four tools that close the
+ * Trader MCP tools (api/_mcp/tools/trader.js), the four tools that close the
* autonomous copy-trading loop: trader_leaderboard, trader_profile,
* copy_subscribe, copy_status.
*
diff --git a/tests/objects-library-endpoint.test.js b/tests/objects-library-endpoint.test.js
index a7b02a14a..c2fcf99d5 100644
--- a/tests/objects-library-endpoint.test.js
+++ b/tests/objects-library-endpoint.test.js
@@ -1,5 +1,5 @@
/**
- * GET /api/objects/library — CC0 prop manifest proxy.
+ * GET /api/objects/library, CC0 prop manifest proxy.
*
* The endpoint proxies the R2-hosted object manifest (published by
* scripts/build-object-library.mjs). Contract under test: