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
refactor(crons): drop the unused error and env imports from the handlers that never call them
nirholasf2594b67f0aa
diff --git a/api/cron/economy-reconcile.js b/api/cron/economy-reconcile.jsindex edc9ce7ab..aa4757a3c 100644--- a/api/cron/economy-reconcile.js+++ b/api/cron/economy-reconcile.js@@ -21,8 +21,7 @@// financial-integrity board alongside x402 revenue discrepancies. Read-only// on-chain — it never moves funds.-import { error, json, method, wrapCron } from '../_lib/http.js';-import { env } from '../_lib/env.js';+import { json, method, wrapCron } from '../_lib/http.js';import { sendOpsAlert } from '../_lib/alerts.js';import { withDbRetry } from '../_lib/db-retry.js';import { sql } from '../_lib/db.js';diff --git a/api/cron/fact-check-benchmark.js b/api/cron/fact-check-benchmark.jsindex 96956e4b3..8391e3503 100644--- a/api/cron/fact-check-benchmark.js+++ b/api/cron/fact-check-benchmark.js@@ -20,8 +20,7 @@// The Redis verdict cache is disabled for the run. A benchmark that reads// week-old cached verdicts measures the cache, not the chain.-import { error, json, method, wrapCron } from '../_lib/http.js';-import { env } from '../_lib/env.js';+import { json, method, wrapCron } from '../_lib/http.js';import {acquireLock,buildReport,diff --git a/api/cron/forge-smoke.js b/api/cron/forge-smoke.jsindex d0ac8d668..6a4f7302b 100644--- a/api/cron/forge-smoke.js+++ b/api/cron/forge-smoke.js@@ -27,7 +27,7 @@// Failures page the ops Telegram channel; recovery is announced once. Like// uptime-check, a concrete file keeps the import graph tiny.-import { error, json, method, wrapCron } from '../_lib/http.js';+import { json, method, wrapCron } from '../_lib/http.js';import { env } from '../_lib/env.js';import { cacheGet, cacheSet } from '../_lib/cache.js';import { sendOpsAlert } from '../_lib/alerts.js';diff --git a/api/cron/garment-job-sweep.js b/api/cron/garment-job-sweep.jsindex c49442f10..b6bc51937 100644--- a/api/cron/garment-job-sweep.js+++ b/api/cron/garment-job-sweep.js@@ -19,7 +19,6 @@// job — the claim is an atomic generation-matched write.import { error, json, method, reportServerError, wrapCron } from '../_lib/http.js';-import { env } from '../_lib/env.js';import { requireCron } from '../_lib/cron-auth.js';export default wrapCron(async (req, res) => {diff --git a/api/cron/gcp-burn-report.js b/api/cron/gcp-burn-report.jsindex 950f5f11f..b23729536 100644--- a/api/cron/gcp-burn-report.js+++ b/api/cron/gcp-burn-report.js@@ -21,7 +21,6 @@// deps don't share a cold start with the heavy SDK bundles.import { json, method, wrapCron } from '../_lib/http.js';-import { error } from '../_lib/http.js';import { sendOpsAlert } from '../_lib/alerts.js';import { buildBurnReport, billingConfigured, BillingUnavailableError, usd, PROGRAM_LANES } from '../_lib/gcp-billing.js';import { requireCron } from '../_lib/cron-auth.js';diff --git a/api/cron/intel-learn.js b/api/cron/intel-learn.jsindex 06b3f83cf..7a00f9cb1 100644--- a/api/cron/intel-learn.js+++ b/api/cron/intel-learn.js@@ -14,7 +14,6 @@// mainnet. Idempotent + bounded so a frequent cron can never run away.import { json, method, wrapCron } from '../_lib/http.js';-import { env } from '../_lib/env.js';import { labelOutcomes, trainWeights } from '../../workers/agent-sniper/intel/learn.js';import { requireCron } from '../_lib/cron-auth.js';diff --git a/api/cron/irl-reap.js b/api/cron/irl-reap.jsindex 9ec232e44..be3408ff1 100644--- a/api/cron/irl-reap.js+++ b/api/cron/irl-reap.js@@ -39,7 +39,7 @@//// Runs hourly. Idempotent: re-running deletes nothing new once the table is clean.-import { error, json, method, wrapCron } from '../_lib/http.js';+import { json, method, wrapCron } from '../_lib/http.js';import { sql } from '../_lib/db.js';import { sendOpsAlert } from '../_lib/alerts.js';import { requireCron } from '../_lib/cron-auth.js';diff --git a/api/cron/leaderboard-rollup.js b/api/cron/leaderboard-rollup.jsindex b86e73ea1..661387ab7 100644--- a/api/cron/leaderboard-rollup.js+++ b/api/cron/leaderboard-rollup.js@@ -12,7 +12,7 @@// now. Idempotent (user_badges is unique on user_id+code), so a user who holds// top-10 for a week earns the badge once, on day one.-import { error, json, method, wrapCron } from '../_lib/http.js';+import { json, method, wrapCron } from '../_lib/http.js';import { sql } from '../_lib/db.js';import { unlockBadge, BADGES } from '../_lib/streaks.js';import { requireCron } from '../_lib/cron-auth.js';diff --git a/api/cron/oracle-digest.js b/api/cron/oracle-digest.jsindex 5b5be0cd0..c9874af87 100644--- a/api/cron/oracle-digest.js+++ b/api/cron/oracle-digest.js@@ -16,7 +16,6 @@// CRON_SECRET auth.import { json, method, wrapCron } from '../_lib/http.js';-import { env } from '../_lib/env.js';import { sql } from '../_lib/db.js';import { gmgnTokenUrl, referralUrl, TERMINAL_LABELS } from '../../src/shared/trading-terminals.js';import { requireCron } from '../_lib/cron-auth.js';diff --git a/api/cron/solana-autodeploy.js b/api/cron/solana-autodeploy.jsindex a3ad7176e..49c9e0a13 100644--- a/api/cron/solana-autodeploy.js+++ b/api/cron/solana-autodeploy.js@@ -28,7 +28,6 @@import { LAMPORTS_PER_SOL } from '@solana/web3.js';import { json, method, wrapCron } from '../_lib/http.js';-import { env } from '../_lib/env.js';import { publishFeedEvent } from '../_lib/feed.js';import {authoritySecret,diff --git a/api/cron/strategy-fanout.js b/api/cron/strategy-fanout.jsindex 5178ef71d..0550eec0e 100644--- a/api/cron/strategy-fanout.js+++ b/api/cron/strategy-fanout.js@@ -11,7 +11,7 @@// The per-owner global kill switch halts all of an owner's strategies at once;// exits still mark-to-market while killed but never initiate a trade.-import { error, json, method, wrapCron } from '../_lib/http.js';+import { json, method, wrapCron } from '../_lib/http.js';import { sweepStrategies } from '../_lib/agent-strategy-runtime.js';import { requireCron } from '../_lib/cron-auth.js';diff --git a/api/cron/three-holders-snapshot.js b/api/cron/three-holders-snapshot.jsindex d7ebc4078..736f0cbeb 100644--- a/api/cron/three-holders-snapshot.js+++ b/api/cron/three-holders-snapshot.js@@ -16,8 +16,7 @@// Standalone (not [name].js) so the import graph stays minimal — just the snapshot// module and its Helius/DB dependencies.-import { error, json, method, wrapCron } from '../_lib/http.js';-import { env } from '../_lib/env.js';+import { json, method, wrapCron } from '../_lib/http.js';import { refreshThreeHolderSnapshot } from '../_lib/coin/three-holders.js';import { isRpcRateLimited } from '../_lib/coin/holders.js';import { isDbUnavailableError } from '../_lib/db.js';diff --git a/api/cron/trader-score-attest.js b/api/cron/trader-score-attest.jsindex 4ea776ced..13121f1de 100644--- a/api/cron/trader-score-attest.js+++ b/api/cron/trader-score-attest.js@@ -9,7 +9,7 @@// (ATTEST_AGENT_SECRET_KEY) the cron is authoritative as a DRY RUN — it reports// exactly which wallets WOULD be attested and why it skipped — rather than 500ing.-import { error, json, method, wrapCron } from '../_lib/http.js';+import { json, method, wrapCron } from '../_lib/http.js';import { getLeaderboard, getTraderStats } from '../_lib/trader-stats.js';import { attestTraderScore } from '../_lib/trader-score-attest.js';import { requireCron } from '../_lib/cron-auth.js';diff --git a/api/cron/treasury-topup.js b/api/cron/treasury-topup.jsindex 550fc447e..eb83bce00 100644--- a/api/cron/treasury-topup.js+++ b/api/cron/treasury-topup.js@@ -27,8 +27,7 @@// ECONOMY_MASTER_RESERVE_SOL / _PER_TOPUP_MAX_SOL / _RUN_CAP_SOL, guard capsimport { randomUUID } from 'node:crypto';-import { error, json, method, wrapCron } from '../_lib/http.js';-import { env } from '../_lib/env.js';+import { json, method, wrapCron } from '../_lib/http.js';import { sendOpsAlert } from '../_lib/alerts.js';import { SOLANA_SIGNERS, resolveSignerPubkey } from '../_lib/solana-signers.js';import { sweepTopUps, RESERVE_SOL, RUN_CAP_SOL, PER_TOPUP_MAX_SOL, ECONOMY_MASTER_ADDRESS } from '../_lib/economy-master.js';diff --git a/api/cron/uptime-check.js b/api/cron/uptime-check.jsindex 95555f149..aa8e4ed16 100644--- a/api/cron/uptime-check.js+++ b/api/cron/uptime-check.js@@ -15,7 +15,7 @@// path, which keeps this handler's import graph tiny — a monitor must not// share a 10s cold start with ethers/viem/pump-sdk.-import { error, json, method, wrapCron } from '../_lib/http.js';+import { json, method, wrapCron } from '../_lib/http.js';import { env } from '../_lib/env.js';import { cacheGet, cacheSet } from '../_lib/cache.js';import { sendOpsAlert } from '../_lib/alerts.js';diff --git a/api/cron/world-health.js b/api/cron/world-health.jsindex c7d11082e..8458147c8 100644--- a/api/cron/world-health.js+++ b/api/cron/world-health.js@@ -15,7 +15,6 @@// cold start with the heavy generation/pump SDKs behind the [name].js dispatcher.import { json, method, wrapCron } from '../_lib/http.js';-import { env } from '../_lib/env.js';import { sendOpsAlert } from '../_lib/alerts.js';import { cacheSet } from '../_lib/cache.js';import { requireCron } from '../_lib/cron-auth.js';diff --git a/api/cron/x402-ring-leak-scan.js b/api/cron/x402-ring-leak-scan.jsindex 6fea33c2d..ebee5952b 100644--- a/api/cron/x402-ring-leak-scan.js+++ b/api/cron/x402-ring-leak-scan.js@@ -32,7 +32,7 @@import { randomUUID } from 'node:crypto';-import { json, wrapCron, method, error } from '../_lib/http.js';+import { json, wrapCron, method } from '../_lib/http.js';import { env } from '../_lib/env.js';import { sendOpsAlert } from '../_lib/alerts.js';import { withDbRetry } from '../_lib/db-retry.js';