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
feat(anchor): fail the narrative over to the news feed when the intel lane is empty
nirholasfcd5f7bac437
diff --git a/workers/agent-anchor/anchor-client.js b/workers/agent-anchor/anchor-client.jsindex a26357bd0..d04b1c499 100644--- a/workers/agent-anchor/anchor-client.js+++ b/workers/agent-anchor/anchor-client.js@@ -36,6 +36,20 @@ async function fetchIntel() {}}+/**+ * Narrative failover: the aggregated publisher feed. Only fetched when the+ * aixbt lane returns nothing, so a healthy cycle still costs three requests.+ * `featured=1` narrows the 38-source registry to the majors, which is what an+ * anchor should be reading on air.+ */+async function fetchNews() {+ try {+ return await getJson(`/api/news/feed?limit=12&featured=1`);+ } catch {+ return null;+ }+}+/** Sentiment pulse for the house ticker (pump.fun comments, no key needed). */async function fetchSentiment() {try {@@ -78,14 +92,20 @@ async function fetchPump() {}}-/** Fetch all three feeds concurrently and merge into an anchor briefing. */+/**+ * Fetch the feeds concurrently and merge into an anchor briefing. The narrative+ * failover only fires when the primary lane came back empty, so it costs a+ * round trip on degraded cycles and nothing on healthy ones.+ */export async function gatherBrief() {const [intel, sentiment, pump] = await Promise.all([fetchIntel(),fetchSentiment(),fetchPump(),]);- return mergeBrief({ intel, sentiment, pump });+ const hasIntel = Array.isArray(intel?.intel) ? intel.intel.length > 0 : Array.isArray(intel) && intel.length > 0;+ const news = hasIntel ? null : await fetchNews();+ return mergeBrief({ intel, news, sentiment, pump });}/**