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.

fix(avatars): strip banned em-dashes from comments to satisfy push gate

nirholasb51cdc7c3732
diff --git a/api/avatars/[id]/[action].js b/api/avatars/[id]/[action].js
index e05871053..078a48bb3 100644
--- a/api/avatars/[id]/[action].js
+++ b/api/avatars/[id]/[action].js
@@ -428,7 +428,7 @@ async function handleStorageMode(req, res) {
const body = parse(storageModeSchema, await readJson(req));
- // Read current stored mode to preserve attestation fields — clients must not
+ // Read current stored mode to preserve attestation fields: clients must not
// be able to forge tx_hash / chain_id / attested_at from the UI.
const current = await readStorageMode(id);
const safeBody = {
@@ -440,7 +440,7 @@ async function handleStorageMode(req, res) {
return json(res, 200, { storage_mode: safeBody });
}
- // GET — public/unlisted anyone; private owner only.
+ // GET: public/unlisted anyone; private owner only.
const [row] = await sql`
SELECT id, owner_id, visibility FROM avatars WHERE id = ${id} AND deleted_at IS NULL
`;
diff --git a/api/avatars/_actions.js b/api/avatars/_actions.js
index 19df1e4ac..6fda0ccab 100644
--- a/api/avatars/_actions.js
+++ b/api/avatars/_actions.js
@@ -156,8 +156,8 @@ const handleUpload = wrap(async (req, res) => {
}
// Cloud Run's Express layer pre-drains the request stream and stashes the
// bytes on req.rawBody / req.body (see readBody in api/_lib/http.js). The
- // raw-stream listener below never fires for those requests — its 'data' and
- // 'end' events already emitted — so production uploads must prefer the
+ // raw-stream listener below never fires for those requests: its 'data' and
+ // 'end' events already emitted, so production uploads must prefer the
// captured buffer over the stream, exactly like readBody does.
} else if (Buffer.isBuffer(req.rawBody) || req.body !== undefined) {
try {
diff --git a/tests/custody-proof-epoch.test.js b/tests/custody-proof-epoch.test.js
index 9a8f34107..c00607ee5 100644
--- a/tests/custody-proof-epoch.test.js
+++ b/tests/custody-proof-epoch.test.js
@@ -1,9 +1,9 @@
-// api/_lib/custody-proof.js — the prover behind POST /api/cron/custody-attest.
+// api/_lib/custody-proof.js, the prover behind POST /api/cron/custody-attest.
// The Merkle primitives themselves are pinned in tests/custody-merkle.test.js;
// this file covers the epoch orchestration around them: the main path persists
// an epoch + leaves and reports the anchor verdict, and the failure paths
// (every balance read failing, an unconfigured attester key) degrade to a
-// recorded epoch instead of throwing — the cron must never 500 on an RPC blip
+// recorded epoch instead of throwing: the cron must never 500 on an RPC blip
// or a missing key.
//
// I/O is mocked at the module seams (db.js, solana/connection.js,