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(comments): replace the banned dashes in the monetization endpoint headers

nirholasf0407278cc5c
diff --git a/api/monetization/prices.js b/api/monetization/prices.js
index 5f29b3f6b..424c8ca17 100644
--- a/api/monetization/prices.js
+++ b/api/monetization/prices.js
@@ -1,6 +1,6 @@
-// GET /api/monetization/prices?agent_id=X — list active prices for an agent
-// PUT /api/monetization/prices — set/update price for a skill (owner only)
-// DELETE /api/monetization/prices — remove price for a skill (owner only)
+// GET /api/monetization/prices?agent_id=X lists active prices for an agent
+// PUT /api/monetization/prices sets/updates a skill price (owner only)
+// DELETE /api/monetization/prices removes a skill price (owner only)
//
// Body (PUT): { agent_id, skill_name, price_usdc, currency_mint?, chain? }
// Body (DELETE): { agent_id, skill_name, hard? }
@@ -123,7 +123,7 @@ export default wrap(async (req, res) => {
const isNft = gate_type === 'nft';
// For a price gate, convert price_usdc (float like 0.001) to atomic units.
- // For an NFT gate there is no price — amount is stored as 0 so the row stays
+ // For an NFT gate there is no price, so amount is stored as 0 and the row stays
// a valid (premium, not free) entry while access is driven by the holding.
const amountAtomic = isNft ? 0 : Math.round(price_usdc * 1_000_000);
if (!isNft && amountAtomic < MIN_PRICE_ATOMIC) {
diff --git a/api/monetization/wallet.js b/api/monetization/wallet.js
index ff78a04f5..f2ba5c44d 100644
--- a/api/monetization/wallet.js
+++ b/api/monetization/wallet.js
@@ -1,5 +1,5 @@
-// GET /api/monetization/wallet?agent_id=X — get payout wallet config
-// PUT /api/monetization/wallet — set/update payout addresses
+// GET /api/monetization/wallet?agent_id=X reads the payout wallet config
+// PUT /api/monetization/wallet sets/updates payout addresses
//
// Body (PUT): { agent_id, evm_address?, solana_address?, preferred_network? }
@@ -90,7 +90,7 @@ export default wrap(async (req, res) => {
});
}
- // PUT — set/update payout addresses
+ // PUT: set/update payout addresses
// CSRF on state-changing session-cookie requests; bearer tokens are exempt
// (the token itself proves intent and isn't auto-attached by browsers).
if (!(await requireCsrf(req, res, userId))) return;
diff --git a/api/monetization/withdrawals.js b/api/monetization/withdrawals.js
index 854914487..74bd45c13 100644
--- a/api/monetization/withdrawals.js
+++ b/api/monetization/withdrawals.js
@@ -1,5 +1,5 @@
-// GET /api/monetization/withdrawals?agent_id=X — list withdrawal history
-// POST /api/monetization/withdrawals — request a withdrawal
+// GET /api/monetization/withdrawals?agent_id=X lists withdrawal history
+// POST /api/monetization/withdrawals requests a withdrawal
//
// Body (POST): { agent_id, amount_usdc?, network? }
// amount_usdc = null withdraw all available balance
@@ -157,7 +157,7 @@ export default wrap(async (req, res) => {
});
}
- // POST — request a withdrawal
+ // POST: request a withdrawal
const csrfOk = await requireCsrf(req, res, userId);
if (!csrfOk) return;
@@ -225,7 +225,7 @@ export default wrap(async (req, res) => {
}
// Reserve the withdrawal atomically. The available-balance check above is a
- // fast/UX pre-check only — on its own it's a TOCTOU hole: N concurrent
+ // fast/UX pre-check only. On its own it is a TOCTOU hole: N concurrent
// requests all read the same `available` and all insert, over-withdrawing
// past the real balance (the per-user rate limit admits several before any
// pending row is committed, so it can't guarantee integrity).