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
Add 3d-studio OpenAPI test and refresh OpenAI store submission docs
nirholas0fc5fa38bcbe
diff --git a/prompts/store-submissions/_generated/openai-gpt-config.md b/prompts/store-submissions/_generated/openai-gpt-config.mdindex 9f1d405c4..0a5fd5194 100644--- a/prompts/store-submissions/_generated/openai-gpt-config.md+++ b/prompts/store-submissions/_generated/openai-gpt-config.md@@ -188,7 +188,7 @@ Leaving these off keeps the review surface minimal: the GPT does exactly one thinothing destructive). ChatGPT still asks the user to allow the first call tothe domain, but with `false` the user gets an "Always allow" option, so thepoll loop and repeat generations run without a confirmation on every call.-4. **Privacy policy URL:** `https://three.ws/legal/privacy.html`+4. **Privacy policy URL:** `https://three.ws/legal/privacy`(required to publish a GPT with Actions to everyone; section **10a, "Free 3DActions (ChatGPT / GPT Store)"** covers exactly this action's data handling).diff --git a/prompts/store-submissions/_generated/openai-submission.md b/prompts/store-submissions/_generated/openai-submission.mdindex 1276fb426..2ba77e699 100644--- a/prompts/store-submissions/_generated/openai-submission.md+++ b/prompts/store-submissions/_generated/openai-submission.md@@ -177,8 +177,10 @@ three.ws separately serves a **general-platform** discovery manifest at `/.well-third-party agents and crawlers). That manifest describes the broader three.ws platform, not this app,and is **not** part of the Apps SDK review flow. To keep the app's own discovery story unambiguous, the3D Studio app additionally ships a dedicated, served OpenAPI at-`https://three.ws/.well-known/3d-studio-openapi.yaml`, scoped to the two free endpoints-(`/api/3d/studio`, `/api/ar`) with `auth: none` and no payment fields, verified crypto/payment-free by+`https://three.ws/.well-known/3d-studio-openapi.yaml`, scoped to the free generation action+(`/api/3d/studio`, POST to generate + GET to poll) with `security: []` (no auth) and no payment fields.+The returned `arUrl` is a public place-in-your-room link, not a paid call. The schema is verified+crypto/payment-free and kept byte-identical to the custom-GPT Action file by`tests/api/3d-studio-openapi.test.js`.> Owner note: the general `ai-plugin.json` and `openapi.yaml` under `/.well-known/` describe the paiddiff --git a/tests/api/3d-studio-openapi.test.js b/tests/api/3d-studio-openapi.test.jsnew file mode 100644index 000000000..493372eea--- /dev/null+++ b/tests/api/3d-studio-openapi.test.js@@ -0,0 +1,66 @@+// Guards the served 3D Studio OpenAPI schema that describes the custom-GPT+// Actions surface (https://three.ws/.well-known/3d-studio-openapi.yaml).+//+// Two things matter for the OpenAI submission:+// 1. The served copy must never drift from the custom-GPT Action file the+// builder pastes in (`prompts/store-submissions/_generated/openai-actions.yaml`).+// 2. The app's discovery surface must stay keyless and free of any crypto /+// payment surface, so a reviewer who fetches it sees the same "free, no+// account, no payment" story the submission claims.++import { describe, it, expect } from 'vitest';+import { readFileSync } from 'node:fs';+import { fileURLToPath } from 'node:url';+import { dirname, resolve } from 'node:path';+import { parse } from 'yaml';++const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '../..');+const SERVED = resolve(ROOT, 'public/.well-known/3d-studio-openapi.yaml');+const SOURCE = resolve(ROOT, 'prompts/store-submissions/_generated/openai-actions.yaml');++const servedRaw = readFileSync(SERVED, 'utf8');+const sourceRaw = readFileSync(SOURCE, 'utf8');+const doc = parse(servedRaw);++describe('3d-studio-openapi served schema', () => {+ it('is byte-identical to the custom-GPT Action source (drift guard)', () => {+ expect(servedRaw).toBe(sourceRaw);+ });++ it('is a valid OpenAPI 3.1 document for three.ws', () => {+ expect(doc.openapi).toBe('3.1.0');+ expect(doc.info?.title).toBe('three.ws 3D Studio');+ expect(doc.servers?.[0]?.url).toBe('https://three.ws');+ });++ it('declares no authentication (keyless)', () => {+ // An explicit empty root security requirement = "no auth required".+ expect(doc.security).toEqual([]);+ expect(doc.components?.securitySchemes ?? {}).toEqual({});+ });++ it('exposes only the free generation action (POST generate + GET poll)', () => {+ expect(Object.keys(doc.paths)).toEqual(['/api/3d/studio']);+ expect(doc.paths['/api/3d/studio'].post?.operationId).toBe('generate3DModel');+ expect(doc.paths['/api/3d/studio'].get?.operationId).toBe('checkModelJob');+ // No action may be flagged consequential (nothing charges or mutates state).+ expect(doc.paths['/api/3d/studio'].post['x-openai-isConsequential']).toBe(false);+ expect(doc.paths['/api/3d/studio'].get['x-openai-isConsequential']).toBe(false);+ });++ it('uses the canonical no-.html legal URLs', () => {+ expect(servedRaw).not.toMatch(/legal\/\w+\.html/);+ expect(servedRaw).toContain('https://three.ws/legal/privacy');+ expect(servedRaw).toContain('https://three.ws/legal/tos');+ });++ it('carries ZERO crypto / payment / settlement surface', () => {+ // Deliberately excludes the bare word "payment": the schema says+ // "No account, no API key, no payment" as reassurance, which is fine.+ // This matches real crypto/settlement/collection indicators only.+ const FORBIDDEN =+ /x402|usdc|\bsolana\b|onchain|web3|\bwallet\b|crypto|\$three|pump\.?fun|checkout|invoice|\bprice\b|billing|paymentrequired|permit2/i;+ const match = servedRaw.match(FORBIDDEN);+ expect(match, `served schema leaked a crypto/payment token: ${match?.[0]}`).toBeNull();+ });+});