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
fix(x-content): stamp publishedAt with the tick's clock and give test fixtures the now-required tier
nirholasa1af13b2af3f
diff --git a/api/_lib/x-content/publisher.js b/api/_lib/x-content/publisher.jsindex 43a46570f..7f697dc7a 100644--- a/api/_lib/x-content/publisher.js+++ b/api/_lib/x-content/publisher.js@@ -126,7 +126,7 @@ export async function publishItem({ item, client, root, state, store, account =kind: item.kind,lane: item.lane,pattern: item.pattern,- publishedAt: new Date(Math.max(now, Date.now() - 60 * 60_000 * 24 * 365)).toISOString(),+ publishedAt: new Date(now).toISOString(),text: item.kind === 'article' ? item.article.title : item.posts[0].text,postIds: progress.postIds,url: `https://x.com/${account}/status/${leadId}`,diff --git a/api/_lib/x-content/runner.js b/api/_lib/x-content/runner.jsindex 8d9a67065..07c4178ab 100644--- a/api/_lib/x-content/runner.js+++ b/api/_lib/x-content/runner.js@@ -160,7 +160,7 @@ export async function runTick({ root, store, now = Date.now(), dryRun = true, retry {const meta = decision.slot ? { slot: decision.slot.key, tier: decision.tier, slotTier: decision.slot.tier } : {};- const row = await publishItem({ item, client, root, state, store, account: queue.account, meta });+ const row = await publishItem({ item, client, root, state, store, account: queue.account, meta, now });if (state.holds?.[item.id]) {delete state.holds[item.id];await store.save(state);diff --git a/tests/x-content.test.js b/tests/x-content.test.jsindex bd0eb8196..463ac6dca 100644--- a/tests/x-content.test.js+++ b/tests/x-content.test.js@@ -325,7 +325,7 @@ describe('queue', () => {it('requires media on the head post unless text-only is explicit', () => {const dir = sandbox();- const base = { id: 'demo', status: 'review', kind: 'post', lane: 'l', pattern: 'p', notBefore: '2026-09-17T14:00:00Z' };+ const base = { id: 'demo', status: 'review', kind: 'post', tier: 2, lane: 'l', pattern: 'p', notBefore: '2026-09-17T14:00:00Z' };expect(validateItem({ ...base, posts: [{ text: HEAD }] }, dir).join('\n')).toMatch(/no media/);expect(validateItem({ ...base, textOnly: true, posts: [{ text: HEAD }] }, dir)).toEqual([]);});@@ -334,7 +334,7 @@ describe('queue', () => {const dir = sandbox();writeFileSync(join(dir, 'data/x-content/articles/demo.md'), '## Why\n\nBecause.\n\n\n\nThe end.');const item = {- id: 'demo', status: 'review', kind: 'article', lane: 'article', pattern: 'longform', notBefore: '2026-09-17T14:00:00Z',+ id: 'demo', status: 'review', kind: 'article', tier: 1, lane: 'article', pattern: 'longform', notBefore: '2026-09-17T14:00:00Z',article: { title: 'How rigs get named', body: 'data/x-content/articles/demo.md', cover: { path: 'public/x-media/t/a.png' } },posts: [{ text: 'The long version of how Rig Doctor reads a skeleton.' }],};@@ -505,7 +505,7 @@ describe('review', () => {it('blocks an approved item in the queue validator until it is reviewed', () => {const dir = sandbox();- const item = { id: 'demo', status: 'approved', kind: 'post', lane: 'l', pattern: 'p', notBefore: '2026-09-17T14:00:00Z', posts: [{ text: HEAD, media: [{ path: 'public/x-media/t/a.png', alt: 'The Rig Doctor page' }] }] };+ const item = { id: 'demo', status: 'approved', kind: 'post', tier: 2, lane: 'l', pattern: 'p', notBefore: '2026-09-17T14:00:00Z', posts: [{ text: HEAD, media: [{ path: 'public/x-media/t/a.png', alt: 'The Rig Doctor page' }] }] };expect(validateItem(item, dir).join('\n')).toMatch(/review: no editorial review/);expect(validateItem({ ...item, status: 'review' }, dir)).toEqual([]);});