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
chore: sync working tree
nirholasc039fbc36228
diff --git a/docs/aws-marketplace-listing-kit.md b/docs/aws-marketplace-listing-kit.mdindex bd0220219..96444fa67 100644--- a/docs/aws-marketplace-listing-kit.md+++ b/docs/aws-marketplace-listing-kit.md@@ -33,24 +33,48 @@ products" page shows "No products to display").This codespace has no AWS credentials, so these must be run on a machine withadmin creds on account 155407237916.-### 1. Provision SNS topic + IAM user+### 1. Provision the IAM user (the SNS half of the script is dead weight)```bash./scripts/aws-marketplace-provision.sh```-Outputs `AWS_MP_SNS_TOPIC_ARN`, `AWS_MP_ACCESS_KEY_ID`, `AWS_MP_SECRET_ACCESS_KEY`,-`AWS_MP_REGION`. Set all four on the Cloud Run service (production env lives there,-not Vercel):+**The SNS topic this script creates is NOT the topic AMMP wants, and there is no+field in the SaaS wizard to paste it into.** AWS Marketplace creates and owns the+notification topics and hands you the ARN *during product creation*, in the form+`arn:aws:sns:us-east-1:<aws-owned-account>:aws-mp-subscription-notification-<PRODUCTCODE>`.+You subscribe to that topic afterwards; you never supply your own. Ignore the+script's `AWS_MP_SNS_TOPIC_ARN` output. See+[Amazon SNS notifications for SaaS products](https://docs.aws.amazon.com/marketplace/latest/userguide/saas-notification.html).++What the script is genuinely needed for is the IAM user: `resolveCustomer()` in+`api/_lib/aws-marketplace.js` calls `aws-marketplace:ResolveCustomer`, and without+those keys every subscribe redirect dies at `/aws-marketplace/error?reason=token_expired`.++Take `AWS_MP_ACCESS_KEY_ID`, `AWS_MP_SECRET_ACCESS_KEY`, and `AWS_MP_REGION` and set+them on the Cloud Run service (production env lives there, not Vercel):```bashgcloud run services update three-ws-api --region us-central1 \- --update-env-vars AWS_MP_SNS_TOPIC_ARN=…,AWS_MP_ACCESS_KEY_ID=…,AWS_MP_SECRET_ACCESS_KEY=…,AWS_MP_REGION=…+ --update-env-vars AWS_MP_ACCESS_KEY_ID=…,AWS_MP_SECRET_ACCESS_KEY=…,AWS_MP_REGION=…```+(`--update-env-vars` merges. Never use `--set-env-vars` here: it replaces the entire+env set and would wipe every other production variable.)+`AWS_MP_PRODUCT_CODE` is assigned by AMMP after the product is created — add it last.-### 2. Publish the EULA to public S3 (currently returns 403 — must be fixed)+### 2. EULA: pick Standard Contract and skip this entirely (recommended)++The AMMP wizard accepts either the **Standard Contract for AWS Marketplace (SCMP)**+or a custom EULA at a publicly readable S3 URL. Choosing SCMP removes the only+remaining hard blocker on this listing and needs zero setup. For a free listing+there is nothing a custom EULA buys you that is worth delaying the listing for, and+the EULA can be swapped later via **Request changes → Update public offer → Update EULA**.++Only do the S3 work below if you specifically want the custom EULA on day one.++#### (Optional) Publish the EULA to public S3 (currently returns 404)```bash./scripts/aws-eula-publish.sh@@ -164,8 +188,8 @@ The free AWS subscription only grants the x402 access key.| AMMP field | Value ||---|---|| Fulfillment / SaaS URL (Registration URL) | `https://three.ws/api/aws-marketplace/register` |-| SNS notification topic ARN | output of `aws-marketplace-provision.sh` (`arn:aws:sns:us-east-1:155407237916:three-ws-marketplace-subscription`) |-| Custom EULA URL | `https://three-ws-legal-155407237916.s3.amazonaws.com/aws-marketplace-eula.html` (must return 200 — see prereq #2) — or pick Standard Contract |+| SNS notification topic ARN | Not a field you fill in. AWS hands you `aws-mp-subscription-notification-<PRODUCTCODE>` after the product is created; subscribe to it then. |+| EULA | **Standard Contract (SCMP)**: recommended, zero setup. Custom EULA only if the S3 copy returns 200 (see prereq #2). || Post-subscribe redirect | `https://three.ws/aws-marketplace/welcome` (handled by register.js) |Lifecycle events land on `POST /api/aws-marketplace/subscription` (SNS webhook —@@ -176,18 +200,30 @@ entitlement-updated, and the SubscriptionConfirmation handshake).## Step sequence in AMMP-1. Run prereqs #1 and #2 above; set the five `AWS_MP_*` env vars on the Cloud Run service (`gcloud run services update three-ws-api --region us-central1 …`).+Nothing in steps 2-7 depends on the IAM keys, so if creds are slow to arrive, start+the wizard anyway and backfill the env vars before the round-trip test in step 9.++1. Run prereq #1; set `AWS_MP_ACCESS_KEY_ID`, `AWS_MP_SECRET_ACCESS_KEY`, and+ `AWS_MP_REGION` on the Cloud Run service.2. AMMP → **AI agents & tools products** → **Create AI agents & tools product**.3. Delivery method: **API-based** (SaaS). (Until you finish the wizard the draft mayappear under **SaaS products**, per AMMP's own note — that's expected.)4. Fill product detail fields from the "Listing fields" section above; upload the logo.5. Pricing: choose **Free**.-6. Fulfillment: paste the Registration URL and SNS Topic ARN from the table.-7. EULA: paste the S3 Custom EULA URL (confirm 200 first) or select Standard Contract.-8. Save → AMMP assigns a **Product Code**. Set `AWS_MP_PRODUCT_CODE` on the Cloud Run service and redeploy (`npm run build` then `npm run deploy:gcp`).-9. Submit as a **limited (private) offer** first and run one end-to-end subscribe →- redirect → welcome → issue-key test before requesting public visibility.-10. Once the private round-trip works, request **public** visibility.+6. Fulfillment: paste the Registration URL from the table. There is no SNS field here.+7. EULA: select **Standard Contract**.+8. Save → AMMP assigns a **Product Code** and gives you the two `aws-mp-*` SNS topic+ ARNs. Set `AWS_MP_PRODUCT_CODE` on the Cloud Run service. No rebuild is needed:+ `gcloud run services update three-ws-api --region us-central1 --update-env-vars+ AWS_MP_PRODUCT_CODE=…` cuts a new revision on its own.+9. Subscribe `https://three.ws/api/aws-marketplace/subscription` to the+ `aws-mp-subscription-notification-<PRODUCTCODE>` topic (HTTPS subscription; the+ handler already answers the `SubscriptionConfirmation` handshake). This must be+ done from the seller account 155407237916. Then run one end-to-end+ subscribe → redirect → welcome → issue-key test while the product is **limited**.+10. Once the private round-trip works, **Request changes → Update visibility →+ Public**. This one needs AWS Marketplace Seller Operations approval, so it is the+ step with real calendar time on it. Everything before it is same-day.---diff --git a/public/changelog.json b/public/changelog.jsonindex 07eebc678..8d1278edd 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-02T07:51:16.716Z",+ "generated_at": "2026-08-02T08:29:35.315Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",diff --git a/public/features.json b/public/features.jsonindex f380c731c..72905ccfb 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-02T07:51:16.700Z",+ "generated_at": "2026-08-02T08:29:35.303Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/tests/docs-search.test.js b/tests/docs-search.test.jsindex 3015eeb28..bd3cc5fa8 100644--- a/tests/docs-search.test.js+++ b/tests/docs-search.test.js@@ -242,10 +242,16 @@ describe('docs search: the real corpus', () => {const slug = index.docs[docId][0];const anchor = slugifyHeading(heading);const hits = engine.query(heading, 5);- if (hits.some((h) => h.slug === slug && h.anchor === anchor)) found++;+ // The anchor, not the slug, is what has to come back. Long-form docs are+ // published twice (FULL-ARTICLE plus per-chapter files) and the+ // duplicate-heading suppression deliberately keeps one copy of each+ // heading, so demanding the copy in one specific file would fail the+ // sampler on whichever twin it happened to draw. Retrieving the section+ // that owns that heading is the property under test either way.+ if (hits.some((h) => h.anchor === anchor)) found++;}- // Not 100%: long-form docs are also published split into chapters, and the- // duplicate-heading suppression deliberately keeps only one of the copies.+ // Not 100%: a few headings are too generic to out-rank a near-identical one+ // elsewhere in the corpus ("Step 6: See it in the browser").expect(found / candidates.length).toBeGreaterThan(0.8);});