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
sniper: strategy API accepts the audit fields (ceiling, strictness, moonbag opt-out)
nirholas00587f655dba
diff --git a/api/sniper/strategy.js b/api/sniper/strategy.jsindex abff210d8..dd93f28b6 100644--- a/api/sniper/strategy.js+++ b/api/sniper/strategy.js@@ -113,6 +113,9 @@ const STRATEGY_SCHEMA = z.object({decision_mode: z.enum(['rules', 'llm']).optional(),llm_model: z.string().max(120).nullable().optional(),llm_min_confidence: z.union([z.string(), z.number()]).nullable().optional(),+ llm_max_confidence: z.union([z.string(), z.number()]).nullable().optional(),+ llm_strict_model: z.boolean().optional(),+ moonbag_always: z.boolean().optional(),label: z.string().max(80).nullable().optional(),experiment_group: z.string().max(80).nullable().optional(),});@@ -252,6 +255,9 @@ async function listStrategies(req, res, userId) {decision_mode: s.decision_mode || 'rules',llm_model: s.llm_model || null,llm_min_confidence: s.llm_min_confidence != null ? Number(s.llm_min_confidence) : null,+ llm_max_confidence: s.llm_max_confidence != null ? Number(s.llm_max_confidence) : null,+ llm_strict_model: s.llm_strict_model === true,+ moonbag_always: s.moonbag_always !== false,label: s.label || null,experiment_group: s.experiment_group || null,summary: {@@ -314,6 +320,7 @@ async function upsertStrategy(req, res, userId) {alpha_min_smart_money: null, alpha_min_organic_score: null, alpha_max_mcap_usd: null,alpha_narrative_keywords: null, alpha_min_quality_score: null,decision_mode: 'rules', llm_model: null, llm_min_confidence: null,+ llm_max_confidence: null, llm_strict_model: false, moonbag_always: true,label: null, experiment_group: null,};@@ -371,6 +378,14 @@ async function upsertStrategy(req, res, userId) {decision_mode: p.decision_mode ?? cur.decision_mode ?? 'rules',llm_model: 'llm_model' in p ? (p.llm_model || null) : (cur.llm_model || null),llm_min_confidence: 'llm_min_confidence' in p ? (p.llm_min_confidence == null || p.llm_min_confidence === '' ? null : Math.min(1, Math.max(0, Number(p.llm_min_confidence)))) : (cur.llm_min_confidence != null ? Number(cur.llm_min_confidence) : null),+ // Overconfidence CEILING (audit: the 0.9+ band went winless). A buy verdict+ // at/above it is recorded but never funded. Null = no ceiling.+ llm_max_confidence: 'llm_max_confidence' in p ? (p.llm_max_confidence == null || p.llm_max_confidence === '' ? null : Math.min(1, Math.max(0.05, Number(p.llm_max_confidence)))) : (cur.llm_max_confidence != null ? Number(cur.llm_max_confidence) : null),+ // Named-model integrity: a strict arm refuses to trade on a fallback+ // model's verdict, pausing rather than polluting its own experiment.+ llm_strict_model: 'llm_strict_model' in p ? Boolean(p.llm_strict_model) : (cur.llm_strict_model === true),+ // Fleet-wide never-sell-100%-of-a-winner rule; opt-out per strategy.+ moonbag_always: 'moonbag_always' in p ? Boolean(p.moonbag_always) : (cur.moonbag_always !== false),label: 'label' in p ? (p.label || null) : (cur.label || null),experiment_group: 'experiment_group' in p ? (p.experiment_group || null) : (cur.experiment_group || null),};@@ -407,7 +422,7 @@ async function upsertStrategy(req, res, userId) {alpha_min_smart_money, alpha_min_organic_score, alpha_max_mcap_usd,alpha_narrative_keywords, alpha_min_quality_score, auto_fund_enabled,initials_out_multiple, moonbag_min_pct,- decision_mode, llm_model, llm_min_confidence, label, experiment_group, updated_at)+ decision_mode, llm_model, llm_min_confidence, llm_max_confidence, llm_strict_model, moonbag_always, label, experiment_group, updated_at)values(${p.agent_id}, ${userId}, ${p.network}, ${next.enabled}, ${next.kill_switch},${next.trigger}, ${next.buy_delay_ms}, ${next.min_claim_lamports}, ${next.max_claim_lamports}, ${next.first_claim_max_age_seconds},@@ -423,7 +438,7 @@ async function upsertStrategy(req, res, userId) {${next.alpha_min_smart_money}, ${next.alpha_min_organic_score}, ${next.alpha_max_mcap_usd},${next.alpha_narrative_keywords}, ${next.alpha_min_quality_score}, ${next.auto_fund_enabled},${next.initials_out_multiple}, ${next.moonbag_min_pct},- ${next.decision_mode}, ${next.llm_model}, ${next.llm_min_confidence}, ${next.label}, ${next.experiment_group}, now())+ ${next.decision_mode}, ${next.llm_model}, ${next.llm_min_confidence}, ${next.llm_max_confidence}, ${next.llm_strict_model}, ${next.moonbag_always}, ${next.label}, ${next.experiment_group}, now())on conflict (agent_id, network) do update setenabled = excluded.enabled,kill_switch = excluded.kill_switch,@@ -470,6 +485,9 @@ async function upsertStrategy(req, res, userId) {decision_mode = excluded.decision_mode,llm_model = excluded.llm_model,llm_min_confidence = excluded.llm_min_confidence,+ llm_max_confidence = excluded.llm_max_confidence,+ llm_strict_model = excluded.llm_strict_model,+ moonbag_always = excluded.moonbag_always,label = excluded.label,experiment_group = excluded.experiment_group,updated_at = now()@@ -526,6 +544,9 @@ async function upsertStrategy(req, res, userId) {decision_mode: row.decision_mode || 'rules',llm_model: row.llm_model || null,llm_min_confidence: row.llm_min_confidence != null ? Number(row.llm_min_confidence) : null,+ llm_max_confidence: row.llm_max_confidence != null ? Number(row.llm_max_confidence) : null,+ llm_strict_model: row.llm_strict_model === true,+ moonbag_always: row.moonbag_always !== false,label: row.label || null,experiment_group: row.experiment_group || null,},