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(scene-capture): tell callers when a clip exceeded the reconstruction frame budget
nirholas5c28cd35cd91
diff --git a/api/_providers/gcp.js b/api/_providers/gcp.jsindex 6229914b9..f0286c326 100644--- a/api/_providers/gcp.js+++ b/api/_providers/gcp.js@@ -595,6 +595,10 @@ export function createRegenProvider({ reconstructUrl } = {}) {if (typeof data.num_points === 'number') result.numPoints = data.num_points;if (typeof data.frames === 'number') result.frames = data.frames;if (typeof data.bytes === 'number') result.bytes = data.bytes;+ // The worker caps a job at its frame budget; say so rather than let a+ // partial reconstruction look like the whole clip.+ if (typeof data.frames_truncated === 'boolean') result.framesTruncated = data.frames_truncated;+ if (typeof data.sky_points_removed === 'number') result.skyPointsRemoved = data.sky_points_removed;} else {result.resultGlbUrl = url;}diff --git a/api/scene-capture.js b/api/scene-capture.jsindex 0820a2d02..f98acbfdb 100644--- a/api/scene-capture.js+++ b/api/scene-capture.js@@ -128,6 +128,7 @@ async function pollJob(req, res, jobId) {result_url: result.resultPointCloudUrl || null,num_points: result.numPoints ?? null,frames: result.frames ?? null,+ frames_truncated: result.framesTruncated ?? null,error: result.error || null,});}diff --git a/tests/api/scene-capture.test.js b/tests/api/scene-capture.test.jsindex 5665c5037..0254fc463 100644--- a/tests/api/scene-capture.test.js+++ b/tests/api/scene-capture.test.js@@ -110,7 +110,16 @@ describe('gcp provider — video2scene mode routing', () => {globalThis.fetch = vi.fn(async (url) => {expect(String(url)).toBe(`${WORKER_URL}/tasks/task-xyz`);return new Response(- JSON.stringify({ task_id: 'task-xyz', status: 'done', result_gcs_url: ply, num_points: 1_234_567, frames: 240, bytes: 9999 }),+ JSON.stringify({+ task_id: 'task-xyz',+ status: 'done',+ result_gcs_url: ply,+ num_points: 1_234_567,+ frames: 240,+ bytes: 9999,+ frames_truncated: true,+ sky_points_removed: 4_096,+ }),{ status: 200, headers: { 'content-type': 'application/json' } },);});@@ -120,6 +129,10 @@ describe('gcp provider — video2scene mode routing', () => {expect(status.resultPointCloudUrl).toBe(ply);expect(status.numPoints).toBe(1_234_567);expect(status.frames).toBe(240);+ // A clip longer than the worker's frame budget is reconstructed in part;+ // the caller has to be able to tell that from a whole-clip result.+ expect(status.framesTruncated).toBe(true);+ expect(status.skyPointsRemoved).toBe(4_096);// A point cloud is NOT a GLB mesh — the GLB field must stay unset.expect(status.resultGlbUrl).toBeUndefined();});