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(dapp-store): build the five Seeker previews as one carousel, and redraw the banner in brand type
nirholasc186a15a92ce
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6e12900b0..b055dc22d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -42,6 +42,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Agent history on Base, Ethereum and Gnosis is moving again**: The cross-chain agent index had stopped advancing on three networks. A single unprintable byte inside an on-chain metadata string was rejected by the database, and because the index only records its position after a successful write, every following run re-read the same block and hit the same byte. Base had been frozen for 13 days, Gnosis for 15 and Ethereum for 4. Those bytes are now stripped on the way in, so the event is kept and the crawl moves past it. Registrations, ownership transfers, metadata edits and reputation attestations on those chains flow into agent profiles again. `[fix]`- **Agent payments now stop themselves when the fee wallet runs dry**: The platform sponsors the network fee on every agent payment. When that wallet ran down to the point where it could not cover a single fee, the check meant to pause payments could not run, because it depended on a balance lookup and the network providers were rate-limited at the same moment. Payments kept being attempted for three hours and none of them could complete. The pause now reads its answer from the failure itself, which costs nothing and works exactly when the network is too busy to answer questions. The status page also names the real cause now, a wallet that needs funding, instead of pointing at the payment rail. `[fix, infra]`- **AI agents can now see the 3D models they make**: Until today every 3D generator on the internet, ours included, answered with a link to a file an AI agent cannot open. A person clicks it; an agent is blind to it, which is why an agent that makes a 3D model has never been able to tell a clean one from a melted one. That changes now: ask to look at any model and it comes back rendered from four angles as actual pictures the agent sees, with the geometry explained in plain language. An agent can finally check its own work, spot that the back of the model was never finished, and try again saying exactly what was wrong. It works over MCP, over a plain web request, and through a new open-source package called @three-ws/see, and it is free, including for agents that bought a model from us and want to confirm they got what they paid for. (`/docs/3d-vision`) `[feature, sdk]`+- **Avatars now face you when a page opens**: The 3D viewer used to seat its camera on one fixed side and call that the front, which only worked for characters whose rig happened to be built facing that way. Everyone else opened showing you the back of their head. The viewer now reads which way the body is actually turned, from the rig itself, and frames the face, so every avatar greets you the same way no matter which tool it was made in. A second fix ships with it: if you have asked your phone or computer to reduce motion, avatars no longer spin slowly on a turntable, they hold still while keeping their breathing and blinking. (`/marketplace`) `[improvement, fix]`- **Embedded avatars load again on other people's websites**: Anyone who dropped a three.ws avatar onto their own site with the <agent-3d> tag and pointed it straight at a model file got an error panel instead of the character: the embed code referred to something that was not there and gave up at the last step, right before it would have started the idle animation. It now loads and plays as documented. Two related repairs came with it: the compression decoders three.ws hosts can finally be used by other sites (they were being blocked, so every embed quietly fell back to a third-party CDN and logged errors doing it), and the code that runs on other people's pages is now checked for this exact class of mistake before it can ship again. (`/docs/web-component`) `[fix, sdk]`- **Every release note now shows you the code that shipped it**: Until today this site kept two separate records of the same work: a changelog written for people, and a commit feed written by engineers, neither aware of the other. The new ship log joins them. Each release note now lists the commits that produced it, and says how confident it is in each match and why it made it, in plain words you can argue with. Commits nobody ever wrote up are grouped and shown too, so the work that shipped quietly is visible instead of lost. The announcements in the Telegram channel now carry a link to the exact code behind them, the raw commit feed reads in plain language instead of engineering shorthand, and it no longer posts merges or dependency bumps. The whole thing is a free, open-source package that works on anyone's repository. (`/ship`) `[feature, sdk, improvement]`- **Glance: your agent on your Windows home screen, in your README, and in your terminal**: Your agent now has a card: its name, what it did in the last 24 hours, when it last acted, and a tap straight back into it. Pin it to the Windows 11 widgets board and it installs with the site itself, no app store, and refreshes on its own every fifteen minutes; signed out it shows a sign-in card instead of an error, and offline it keeps showing the last card it saw. The same card is one image URL you can paste into a GitHub README, a Slack message, or any page, and it follows the reader's light or dark mode. There is a live element for websites, a command you can run in a terminal to watch an agent work, and an npm package for building your own. Android is next, then macOS and iOS. (`/glance`) `[feature, sdk]`diff --git a/data/changelog.json b/data/changelog.jsonindex 99747765f..7a73e4fca 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,16 @@{"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-08-28",+ "title": "Avatars now face you when a page opens",+ "summary": "The 3D viewer used to seat its camera on one fixed side and call that the front, which only worked for characters whose rig happened to be built facing that way. Everyone else opened showing you the back of their head. The viewer now reads which way the body is actually turned, from the rig itself, and frames the face, so every avatar greets you the same way no matter which tool it was made in. A second fix ships with it: if you have asked your phone or computer to reduce motion, avatars no longer spin slowly on a turntable, they hold still while keeping their breathing and blinking.",+ "tags": [+ "improvement",+ "fix"+ ],+ "link": "/marketplace"+ },{"date": "2026-08-28","title": "Embedded avatars load again on other people's websites",diff --git a/docs/seeker-publishing.md b/docs/seeker-publishing.mdindex d9dfdd5cd..591a92364 100644--- a/docs/seeker-publishing.md+++ b/docs/seeker-publishing.md@@ -74,9 +74,22 @@ Two traps, both observed on 2026-08-28:- **The header must be short-lived.** `.well-known/*` is served with `max-age=3600`. A day-long TTL means a rotated key stays unverified for up to a day after the deploy.- **Chrome caches a failed verification.** After the correct assetlinks goes live, an already-installed app can keep showing the address bar until Chrome's cache clears. Force it with `adb shell pm clear com.android.chrome`, or `adb shell pm verify-app-links --re-verify ws.three.app` followed by `adb shell pm get-app-links ws.three.app`, which should print `three.ws: verified`.-## Screenshots+## Listing media-`publish/media/` carries `icon.png`, `banner.png`, and `feature.png`, all regenerable with `node scripts/make-media.mjs` (the feature graphic is a live Playwright capture of a real agent page). The five 1080x1920 screenshots are deliberately absent: reviewers reject emulator and desktop captures, and a placeholder is worse than a missing file. Capture them on a real Seeker following [solana-mobile/docs/ASSETS.md](../solana-mobile/docs/ASSETS.md), which lists the exact frame each one should show.+Everything the portal asks for is generated and committed under [solana-mobile/publish/media/](../solana-mobile/publish/media/):++```bash+npm run build:dapp-store-media # icon.png, banner.png, feature.png+npm run build:dapp-store-previews # screen-1..5.png (the carousel)+```++`build:dapp-store-media` writes the 512x512 icon from the shipped app mark, the 1200x600 banner (the wordmark drawn in a browser against the site's own Space Grotesk files, so store type matches product type), and the 1024x500 feature graphic, a live capture of a real agent page.++`build:dapp-store-previews` builds the five 1080x1920 previews as one 5400x1920 composition and slices it. Four of its nine phones sit exactly on a seam, so each upload carries one whole screen plus the two halves it shares with its neighbours and the strip reads as a single photograph while scrolling. **Upload them in numbered order** or the halves stop lining up. Every phone holds a real capture of three.ws at Seeker resolution; nothing is mocked or drawn to look like product UI.++Two useful flags: `--origin=http://localhost:3000` captures the working tree instead of production (the dev server proxies `/api` to production, so the data stays real), and `--keep-raw` also writes the untouched captures to `publish/media/raw/` for inspection.++To ship true on-device frames instead, drop 1080x1920 Seeker captures into `publish/media/device/` as `screen-1.png` … `screen-5.png` and rerun: each one replaces its live capture and the carousel is rebuilt around it. Frame-by-frame guidance is in [solana-mobile/docs/ASSETS.md](../solana-mobile/docs/ASSETS.md).## Verifying a build before submittingdiff --git a/docs/seeker-submission-day.md b/docs/seeker-submission-day.mdindex fd18db4d1..6943f4d41 100644--- a/docs/seeker-submission-day.md+++ b/docs/seeker-submission-day.md@@ -125,43 +125,39 @@ Built for Seeker. Signed by Seed Vault. Seed phrases never leave the secure elemNo off-chain test accounts are required: auth is wallet-only.```-**Images.** Three are ready to upload from the repo at `solana-mobile/publish/media/`:+**Images.** All eight are ready to upload from the repo at `solana-mobile/publish/media/`:-| Upload slot | File | Size |-|---|---|---|-| App icon (512x512) | `icon.png` | 344 KB |-| Banner (1200x600) | `banner.png` | 72 KB |-| Feature graphic (1024x500) | `feature.png` | 170 KB |+| Upload slot | File |+|---|---|+| App icon (512x512) | `icon.png` |+| Banner (1200x600) | `banner.png` |+| Feature graphic (1024x500) | `feature.png` |+| dApp preview 1 (1080x1920) | `screen-1.png` |+| dApp preview 2 | `screen-2.png` |+| dApp preview 3 | `screen-3.png` |+| dApp preview 4 | `screen-4.png` |+| dApp preview 5 | `screen-5.png` |-Screenshots are Step 3. If the portal will not let you save without them, do Step 3 first and come back.+**Upload the five previews in numbered order.** They are one 5400x1920 picture cut into five, with four phones sitting on the creases, so out of order they stop lining up. The portal wants matching dimensions across previews, and all five are 1080x1920 portrait. Open `solana-mobile/publish/media/carousel.png` to see the whole strip at once.- [ ] Every field above pasted-- [ ] Three images uploaded+- [ ] Three brand images and five previews uploaded, previews in order 1 to 5- [ ] Saved, and the **App NFT minted** (you will approve one wallet transaction)----## Step 3. Five screenshots, on the Seeker--This is the only part nothing can do for you: reviewers reject emulator and desktop captures, and they can tell.--**Set up once:** Settings → Display → turn on gesture navigation, so the screenshots have no navigation bar across the bottom. Then open the three.ws app; it launches full-screen onto its home screen.+## Step 3. The phone check (previews are already built)-Capture with Power + Volume-Down. Five frames, 1080x1920 each:+The five previews are generated, committed, and listed in Step 2. Every phone in them holds a real capture of three.ws rendered at Seeker resolution, which is exactly what the app draws, and the frames are composed into one continuous strip. Nothing here is mocked. You do not need to capture anything to submit.-| # | Screen | How to get there |-|---|---|---|-| 1 | The home screen | Open the app. Capture the hero with "Sign in with Seed Vault" and the Create cards. |-| 2 | Marketplace | Tap **Marketplace**. Wait for the agent grid to fill in. |-| 3 | An agent with the 3D viewer | Tap any agent. Wait for the model to render, drag once to a good angle. |-| 4 | The Seed Vault sheet | Tap **Sign in with Seed Vault**. Capture the sheet while it shows `three.ws` and a non-empty `Nonce:` line. |-| 5 | Selfie capture | Tap **Selfie to avatar**, allow the camera, and capture the capture screen (or the finished avatar). |+**If you would rather ship true on-device captures**, take them and the generator will use them instead of capturing the web app, keeping the same carousel design:-Rules that get listings rejected if broken: no placeholder or mocked UI, no other company's branding in frame, no notification shade pulled down, nothing personal in the status bar.+1. Settings → Display → turn on gesture navigation, so no navigation bar crosses the bottom.+2. Open the app and capture with Power + Volume-Down: the home screen, the marketplace grid, an agent with the 3D viewer, the Seed Vault sheet (while it shows `three.ws` and a non-empty `Nonce:` line), and the selfie capture screen.+3. Copy them into `solana-mobile/publish/media/device/` as `screen-1.png` through `screen-5.png`, 1080x1920 each.+4. Run `npm run build:dapp-store-previews`. The five uploads are rebuilt around your captures.-- [ ] Five PNGs, 1080x1920, on the phone-- [ ] Transferred to the laptop-- [ ] Uploaded to the portal listing in this order+Rules that get a listing rejected either way: no placeholder or mocked UI, no other company's branding in frame, no notification shade pulled down, nothing personal in the status bar.While you have the phone in hand, confirm these four (they are the last unchecked boxes in the submission checklist):diff --git a/package.json b/package.jsonindex 672bdc1c1..21e639497 100644--- a/package.json+++ b/package.json@@ -162,6 +162,8 @@"build:discovery": "node scripts/build-discovery-cards.mjs","build:openai-cards": "node scripts/render-openai-social-cards.mjs","build:brand-assets": "node scripts/render-brand-assets.mjs",+ "build:dapp-store-media": "node solana-mobile/scripts/make-media.mjs",+ "build:dapp-store-previews": "node solana-mobile/scripts/make-screenshots.mjs","render:pumpfun-verified": "node scripts/render-pumpfun-verified.mjs","build:ibm-shell": "node scripts/build-ibm-shell.mjs","i18n": "npm run i18n:extract && npm run i18n:translate",diff --git a/public/changelog.json b/public/changelog.jsonindex edc69e075..dda9b110c 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-28T07:08:00.656Z",+ "generated_at": "2026-08-28T21:34:32.470Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -368,6 +368,17 @@"sdk"]},+ {+ "date": "2026-08-28",+ "type": "update",+ "title": "Avatars now face you when a page opens",+ "summary": "The 3D viewer used to seat its camera on one fixed side and call that the front, which only worked for characters whose rig happened to be built facing that way. Everyone else opened showing you the back of their head. The viewer now reads which way the body is actually turned, from the rig itself, and frames the face, so every avatar greets you the same way no matter which tool it was made in. A second fix ships with it: if you have asked your phone or computer to reduce motion, avatars no longer spin slowly on a turntable, they hold still while keeping their breathing and blinking.",+ "link": "/marketplace",+ "tags": [+ "improvement",+ "fix"+ ]+ },{"date": "2026-08-28","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 5669b0dd5..6005b93bd 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -294,6 +294,14 @@<category>feature</category><description>Until today every 3D generator on the internet, ours included, answered with a link to a file an AI agent cannot open. A person clicks it; an agent is blind to it, which is why an agent that makes a 3D model has never been able to tell a clean one from a melted one. That changes now: ask to look at any model and it comes back rendered from four angles as actual pictures the agent sees, with the geometry explained in plain language. An agent can finally check its own work, spot that the back of the model was never finished, and try again saying exactly what was wrong. It works over MCP, over a plain web request, and through a new open-source package called @three-ws/see, and it is free, including for agents that bought a model from us and want to confirm they got what they paid for.</description></item>+ <item>+ <title>Avatars now face you when a page opens</title>+ <link>https://three.ws/marketplace</link>+ <guid isPermaLink="false">2026-08-28:Avatars now face you when a page opens</guid>+ <pubDate>Fri, 28 Aug 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The 3D viewer used to seat its camera on one fixed side and call that the front, which only worked for characters whose rig happened to be built facing that way. Everyone else opened showing you the back of their head. The viewer now reads which way the body is actually turned, from the rig itself, and frames the face, so every avatar greets you the same way no matter which tool it was made in. A second fix ships with it: if you have asked your phone or computer to reduce motion, avatars no longer spin slowly on a turntable, they hold still while keeping their breathing and blinking.</description>+ </item><item><title>Embedded avatars load again on other people's websites</title><link>https://three.ws/docs/web-component</link>diff --git a/public/features.json b/public/features.jsonindex 372d816f5..9c2701a6c 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-28T07:08:00.645Z",+ "generated_at": "2026-08-28T21:34:32.449Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/solana-mobile/docs/ASSETS.md b/solana-mobile/docs/ASSETS.mdindex 88ca0a6f6..06264018a 100644--- a/solana-mobile/docs/ASSETS.md+++ b/solana-mobile/docs/ASSETS.md@@ -2,27 +2,46 @@Drop these files into `solana-mobile/publish/media/` (referenced from `config.yaml`). Every asset must be PNG, RGB or RGBA, no transparency on the icon. Use 100% real product UI — Solana dApp Store reviewers reject mocked screenshots.-`icon.png`, `banner.png`, and `feature.png` are generated: run `node solana-mobile/scripts/make-media.mjs` from the repo root. The icon is the flattened PWA icon, the banner is composed from the vector logo plus the listing tagline, and the feature graphic is a live Playwright capture of a real agent page on three.ws. Only the five screenshots below require a physical Seeker.+Every asset here is generated from the repo root:++```bash+npm run build:dapp-store-media # icon.png, banner.png, feature.png+npm run build:dapp-store-previews # screen-1..5.png+```++The icon is the shipped app mark flattened onto the brand ground. The banner is the wordmark and listing tagline drawn in a headless browser against the site's own `/fonts/*.woff2`, so the store type is the product's type rather than whatever face the renderer happened to have. The feature graphic is a live capture of a real agent page on three.ws. The five previews are one composition, described below.| File | Purpose | Size | Required | Notes || ----------------- | --------------- | --------------- | -------- | ---------------------------------------------------------------- || `icon.png` | App icon | 512 × 512 | yes | Same image as `/public/pwa-512x512.png`; no transparency. || `banner.png` | App banner | 1200 × 600 | yes | Used in featured rows. Logo + tagline on dark background. || `feature.png` | Feature graphic | 1024 × 500 | yes | Hero image — captured agent in three.ws viewer. |-| `screen-1.png` | Screenshot | 1080 × 1920 | yes | Discover feed on Seeker. |-| `screen-2.png` | Screenshot | 1080 × 1920 | yes | Agent detail with 3D viewer. |-| `screen-3.png` | Screenshot | 1080 × 1920 | yes | Selfie capture flow. |-| `screen-4.png` | Screenshot | 1080 × 1920 | yes | Seed Vault sign sheet (SIWS approval). |-| `screen-5.png` | Screenshot | 1080 × 1920 | yes | "Minted" confirmation showing wallet address. |+| `screen-1.png` | dApp preview 1 | 1080 × 1920 | yes | Seeker home screen. Upload first. |+| `screen-2.png` | dApp preview 2 | 1080 × 1920 | yes | Marketplace grid. |+| `screen-3.png` | dApp preview 3 | 1080 × 1920 | yes | Agent page with the 3D viewer. |+| `screen-4.png` | dApp preview 4 | 1080 × 1920 | yes | The create chooser. |+| `screen-5.png` | dApp preview 5 | 1080 × 1920 | yes | Seed Vault verification card. Upload last. || `video.mp4` | Promo video | ≤ 30 s, ≤ 30 MB | optional | H.264 / AAC; can be omitted for v1. |-## Capture instructions+## The previews are a carousel++The five previews are not five designs. `make-screenshots.mjs` draws one 5400x1920 picture and slices it into five 1080x1920 panels: the glow field, the light beam, and the floor run the length of the strip, and four of the nine phones are centred exactly on a seam, so every upload carries one whole screen plus the two halves it shares with its neighbours. Scrolling the listing reads as one photograph of a shelf of devices.++Consequences worth knowing before touching it:++- **Order is load-bearing.** Uploaded out of order the seam halves stop meeting. Upload `screen-1.png` first through `screen-5.png` last.+- **Every phone is a real capture** of three.ws at Seeker resolution (432 CSS px at 2.5x), taken by Playwright with `reducedMotion: 'reduce'` so the same page twice gives the same frame. Floating product widgets (the corner stack, the walking companion, the marketplace sidebar handle) are hidden for the capture only.+- `--origin=http://localhost:3000` captures the working tree; the dev server proxies `/api` to production so the data stays real. `--keep-raw` writes the untouched captures to `publish/media/raw/`.+- The whole strip is left at `publish/media/carousel.png` for review. It is not an upload.++## Substituting real Seeker captures++A genuine device capture beats a browser capture, and the generator prefers one whenever it exists:-1. Open three.ws on a real Seeker device (or Saga, or Android emulator with frame size 1080 × 1920).-2. Hide the system navigation bar (Settings → Display → Gesture navigation), so screenshots show only the app chrome.-3. Use the device's native screenshot binding (Power + Vol-Down) for every frame. Do not use the desktop Chrome devtools mobile emulator — reviewers can tell.-4. For the Seed Vault sheet, capture during a real SIWS sign-in to `https://three.ws/api/auth/siws/verify`. The sheet must show `three.ws` as the requesting origin and a non-empty `Nonce: …` line.-5. Drop the resulting PNGs into `solana-mobile/publish/media/` with the exact filenames above.+1. Settings → Display → gesture navigation, so no navigation bar crosses the bottom.+2. Open the app and capture with Power + Volume-Down: home screen, marketplace grid, an agent with the 3D viewer, the Seed Vault sheet (showing `three.ws` and a non-empty `Nonce:` line), and the selfie capture screen.+3. Save them as `solana-mobile/publish/media/device/screen-1.png` … `screen-5.png`, 1080x1920 each. A wrong size fails the build rather than being silently rescaled.+4. `npm run build:dapp-store-previews`. Each device file replaces its live capture; the carousel is rebuilt around them.## Brand consistencydiff --git a/solana-mobile/docs/CHECKLIST.md b/solana-mobile/docs/CHECKLIST.mdindex 3dfca7a0e..2603ef613 100644--- a/solana-mobile/docs/CHECKLIST.md+++ b/solana-mobile/docs/CHECKLIST.md@@ -85,7 +85,7 @@ Work top-to-bottom. Do not submit until every box is checked. A date after a box- [ ] Airplane mode: the app shows a clear network error, not a broken white page.- [ ] Deep links (`https://three.ws/agents/...`) open inside the app, not in Chrome. (App-link state is `verified` on the emulator, so this should hold; confirm on the device.)- [ ] Share a photo from the device's Photos app into three.ws and confirm it lands in `/create/selfie` already attached, then share a `.glb` and confirm it lands in `/create`. This CANNOT be verified over adb: `am start --grant-read-uri-permission` cannot confer a MediaStore URI grant, so android-browser-helper's re-grant to Chrome throws `SecurityException: UID does not have permission to content://media/...` before the web layer runs (observed 2026-08-28). A real sharing app grants the URI first. The web half is covered by `tests/share-target.test.js` and by the live `POST /create/share` fallback answering 303 to `/create?shared=nosw`.-- [ ] Five screenshots captured per `docs/ASSETS.md` and dropped into `publish/media/`.+- [x] Five 1080x1920 previews built and committed to `publish/media/` (2026-08-28). They are one 5400x1920 carousel sliced into five, so upload them in numbered order; see `docs/ASSETS.md`. Optional upgrade: drop real Seeker captures into `publish/media/device/` and rerun `npm run build:dapp-store-previews`.## 10. Post-submissiondiff --git a/solana-mobile/publish/media/.gitignore b/solana-mobile/publish/media/.gitignorenew file mode 100644index 000000000..35c45e127--- /dev/null+++ b/solana-mobile/publish/media/.gitignore@@ -0,0 +1,2 @@+raw/+carousel.pngdiff --git a/solana-mobile/publish/media/banner.png b/solana-mobile/publish/media/banner.pngindex c737da280..350fc0b6d 100644Binary files a/solana-mobile/publish/media/banner.png and b/solana-mobile/publish/media/banner.png differdiff --git a/solana-mobile/publish/media/feature.png b/solana-mobile/publish/media/feature.pngindex fcffe9e51..212c6aee8 100644Binary files a/solana-mobile/publish/media/feature.png and b/solana-mobile/publish/media/feature.png differdiff --git a/solana-mobile/publish/media/screen-1.png b/solana-mobile/publish/media/screen-1.pngnew file mode 100644index 000000000..132385378Binary files /dev/null and b/solana-mobile/publish/media/screen-1.png differdiff --git a/solana-mobile/publish/media/screen-2.png b/solana-mobile/publish/media/screen-2.pngnew file mode 100644index 000000000..a849411a6Binary files /dev/null and b/solana-mobile/publish/media/screen-2.png differdiff --git a/solana-mobile/publish/media/screen-3.png b/solana-mobile/publish/media/screen-3.pngnew file mode 100644index 000000000..0b69b4416Binary files /dev/null and b/solana-mobile/publish/media/screen-3.png differdiff --git a/solana-mobile/publish/media/screen-4.png b/solana-mobile/publish/media/screen-4.pngnew file mode 100644index 000000000..9e594f85aBinary files /dev/null and b/solana-mobile/publish/media/screen-4.png differdiff --git a/solana-mobile/publish/media/screen-5.png b/solana-mobile/publish/media/screen-5.pngnew file mode 100644index 000000000..a9dd06caaBinary files /dev/null and b/solana-mobile/publish/media/screen-5.png differdiff --git a/solana-mobile/scripts/make-media.mjs b/solana-mobile/scripts/make-media.mjsindex 5cb90f1ff..8796eedd5 100644--- a/solana-mobile/scripts/make-media.mjs+++ b/solana-mobile/scripts/make-media.mjs@@ -1,7 +1,7 @@#!/usr/bin/env node// Generates the buildable dApp Store listing assets into publish/media/:// icon.png 512x512 flattened app icon (from /public/pwa-512x512.png)-// banner.png 1200x600 logo + wordmark + tagline on the brand background+// banner.png 1200x600 brand lockup, drawn in a browser with the site fonts// feature.png 1024x500 live capture of a real agent in the three.ws viewer// The five 1080x1920 screenshots are NOT generated here: reviewers require// real Seeker device captures (see ../docs/ASSETS.md).@@ -19,34 +19,70 @@ const OUT = path.join(ROOT, 'solana-mobile/publish/media');const BG = '#080814';mkdirSync(OUT, { recursive: true });-await sharp(path.join(ROOT, 'public/pwa-512x512.png'))- .flatten({ background: BG })- .resize(512, 512)- .removeAlpha()- .png()- .toFile(path.join(OUT, 'icon.png'));-console.log('[make-media] icon.png');+/** Fail here rather than shipping a file the Publisher Portal will bounce. */+async function writeAsset(name, buffer, width, height, note) {+ const meta = await sharp(buffer).metadata();+ if (meta.width !== width || meta.height !== height) {+ throw new Error(`[make-media] ${name} is ${meta.width}x${meta.height}, the listing slot requires ${width}x${height}`);+ }+ if (meta.hasAlpha) throw new Error(`[make-media] ${name} carries an alpha channel; the listing slot requires an opaque PNG`);+ const file = path.join(OUT, name);+ await sharp(buffer).toFile(file);+ console.log(`[make-media] ${name} ${width}x${height} ${Math.round(buffer.length / 1024)} KB (${note})`);+}++await writeAsset(+ 'icon.png',+ await sharp(path.join(ROOT, 'public/pwa-512x512.png'))+ .flatten({ background: BG }).resize(512, 512).removeAlpha().png({ compressionLevel: 9 }).toBuffer(),+ 512, 512, 'shipped app mark on the brand ground',+);++/* Banner: the brand lockup on the brand ground, drawn in a real browser against+ the same Space Grotesk and Inter files the site serves. An SVG rendered by+ sharp cannot see those faces and silently substitutes a system one, which+ ships a store banner whose type does not match the product. The faces are+ inlined as data URIs so the render never depends on a running server. */+const FONT_FACES = [+ ['Space Grotesk', '300 700', 'space-grotesk-latin.woff2'],+ ['Inter', '300 800', 'inter-latin.woff2'],+].map(([family, weight, file]) => `@font-face{font-family:'${family}';font-style:normal;font-weight:${weight};src:url(data:font/woff2;base64,${readFileSync(path.join(ROOT, 'public/fonts', file)).toString('base64')}) format('woff2');}`).join('\n');++const MARK_URI = `data:image/png;base64,${readFileSync(path.join(ROOT, 'public/pwa-512x512.png')).toString('base64')}`;+/* The banner says exactly what the listing's short description says, read from+ the same file, so the two can never drift. */+const [TAGLINE_A, TAGLINE_B] = readFileSync(path.join(ROOT, 'solana-mobile/publish/listing/short-description.txt'), 'utf8')+ .trim().split(/(?<=\.)\s+/);++async function renderBanner(browser) {+ const page = await browser.newPage({ viewport: { width: 1200, height: 600 }, deviceScaleFactor: 1 });+ await page.setContent(`<!doctype html><meta charset="utf-8"><style>+${FONT_FACES}+*{margin:0;padding:0;box-sizing:border-box}+body{width:1200px;height:600px;overflow:hidden;background:${BG};+ background-image:radial-gradient(80% 120% at 28% 50%, #141438 0%, #0b0b1e 45%, ${BG} 100%);+ display:flex;align-items:center;gap:64px;padding:0 104px;color:#fff;+ font-family:'Inter',sans-serif;-webkit-font-smoothing:antialiased}+img{width:320px;height:320px;flex:none;border-radius:64px;+ box-shadow:0 24px 80px rgba(80,140,255,.28)}+h1{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:104px;+ letter-spacing:-.045em;line-height:1}+p{font-size:30px;line-height:1.45;margin-top:28px}+p b{font-weight:500;color:#b8e8ff;display:block}+p span{color:#8899bb}+</style><body><img src="${MARK_URI}" alt=""><div><h1>three.ws</h1>+<p><b>${TAGLINE_A}</b><span>${TAGLINE_B}</span></p></div>`, { waitUntil: 'load' });-const logoSvg = readFileSync(path.join(ROOT, 'public/pwa-icon.svg'));-const logoPng = await sharp(logoSvg).resize(320, 320).png().toBuffer();-const bannerSvg = Buffer.from(`<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600">- <defs>- <radialGradient id="glow" cx="30%" cy="50%" r="80%">- <stop offset="0%" stop-color="#101030"/>- <stop offset="100%" stop-color="${BG}"/>- </radialGradient>- </defs>- <rect width="1200" height="600" fill="url(#glow)"/>- <text x="480" y="290" font-family="DejaVu Sans" font-size="96" font-weight="bold" fill="#ffffff">three.ws</text>- <text x="484" y="360" font-family="DejaVu Sans" font-size="30" fill="#b8e8ff">Mint a 3D agent to your Seed Vault.</text>- <text x="484" y="404" font-family="DejaVu Sans" font-size="30" fill="#8899bb">On-chain, Solana-native, signed by Seeker.</text>-</svg>`);-await sharp(bannerSvg)- .composite([{ input: logoPng, left: 110, top: 140 }])- .removeAlpha()- .png()- .toFile(path.join(OUT, 'banner.png'));-console.log('[make-media] banner.png');+ const loaded = await page.evaluate(async () => {+ await document.fonts.ready;+ return document.fonts.check('600 104px "Space Grotesk"') && document.fonts.check('400 30px "Inter"');+ });+ if (!loaded) throw new Error('[make-media] brand fonts did not load; the banner would render in a fallback face');++ const shot = await page.screenshot({ type: 'png' });+ await page.close();+ return sharp(shot).flatten({ background: BG }).removeAlpha().png({ compressionLevel: 9 }).toBuffer();+}// Default hero: first agent returned by the live marketplace API, so the// capture always reflects real, current product UI.@@ -58,19 +94,27 @@ if (!agentUrl) {if (!first) throw new Error('[make-media] marketplace API returned no agents to capture');agentUrl = `https://three.ws/agents/${first.id}`;}-console.log(`[make-media] capturing ${agentUrl}`);+const browser = await chromium.launch({ args: ['--use-angle=swiftshader', '--enable-webgl'] });+let feature;try {+ await writeAsset('banner.png', await renderBanner(browser), 1200, 600, 'brand lockup in Space Grotesk');++ console.log(`[make-media] capturing ${agentUrl}`);const page = await browser.newPage({ viewport: { width: 1024, height: 500 }, deviceScaleFactor: 1 });await page.goto(agentUrl, { waitUntil: 'networkidle', timeout: 60000 }).catch(() => {});await page.waitForTimeout(9000);- await page.screenshot({ path: path.join(OUT, 'feature.png') });+ feature = await page.screenshot({ type: 'png' });} finally {await browser.close();}-const stats = await sharp(path.join(OUT, 'feature.png')).stats();-const means = stats.channels.map((c) => Number(c.mean.toFixed(1)));++const means = (await sharp(feature).stats()).channels.map((c) => Number(c.mean.toFixed(1)));if (means.every((m) => m < 12)) {throw new Error(`[make-media] feature.png looks blank (channel means ${means.join(',')}): WebGL likely failed to render; retry or pass a different agent URL`);}-console.log(`[make-media] feature.png (channel means ${means.join(',')})`);+await writeAsset(+ 'feature.png',+ await sharp(feature).flatten({ background: BG }).removeAlpha().png({ compressionLevel: 9 }).toBuffer(),+ 1024, 500, `live agent capture, channel means ${means.join(',')}`,+);diff --git a/solana-mobile/scripts/make-screenshots.mjs b/solana-mobile/scripts/make-screenshots.mjsnew file mode 100644index 000000000..d2748988d--- /dev/null+++ b/solana-mobile/scripts/make-screenshots.mjs@@ -0,0 +1,333 @@+#!/usr/bin/env node+/**+ * Builds the five dApp Store preview images as ONE continuous carousel.+ *+ * The Publisher Portal shows previews as a horizontally scrolling strip, so the+ * five 1080x1920 panels are not designed one at a time: a single 5400x1920+ * composition is drawn in a browser and then sliced. Four of the nine phones+ * are centred exactly ON a seam, so each upload carries one whole screen plus+ * the two halves it shares with its neighbours, and the glow, beam, and floor+ * run the length of the strip. Swiping the listing reads as one photograph of a+ * shelf of devices rather than five unrelated stills.+ *+ * Every phone in the strip holds a REAL capture of the shipping product. Two+ * sources, in priority order per screen:+ * 1. publish/media/device/screen-N.png, a genuine Seeker capture, if present.+ * 2. A live capture of https://three.ws at Seeker viewport, taken here.+ * Nothing is mocked or drawn to look like product UI.+ *+ * Usage:+ * node solana-mobile/scripts/make-screenshots.mjs+ * node solana-mobile/scripts/make-screenshots.mjs --origin=http://localhost:3000+ * node solana-mobile/scripts/make-screenshots.mjs --keep-raw # also write the raw captures+ */+import sharp from 'sharp';+import { chromium } from 'playwright';+import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';+import { fileURLToPath } from 'node:url';+import path from 'node:path';++const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');+const MEDIA = path.join(ROOT, 'solana-mobile/publish/media');+const DEVICE = path.join(MEDIA, 'device');+const RAW = path.join(MEDIA, 'raw');++const args = Object.fromEntries(process.argv.slice(2).map((a) => {+ const m = a.match(/^--([^=]+)(?:=(.*))?$/);+ return m ? [m[1], m[2] ?? true] : [a, true];+}));+const ORIGIN = String(args.origin || 'https://three.ws').replace(/\/$/, '');++/** Panel geometry. The store slot is 1080x1920; five of them make the strip. */+const W = 1080;+const H = 1920;+const COUNT = 5;+const BG = '#080814';++/* Seeker renders 1080 CSS-independent pixels wide. Capturing 432 CSS px at+ 2.5x device pixel ratio yields exactly 1080x1920 of real product UI. */+const SHOT_CSS = { width: 432, height: 768 };+const SHOT_DPR = 2.5;++/**+ * The five panels. `path` is captured live when no device capture exists.+ * Headlines describe what the panel actually shows; nothing here promises a+ * feature the frame does not display.+ */+const PANELS = [+ {+ file: 'screen-1.png',+ path: '/seeker',+ title: 'Your agent studio,\non Seeker',+ sub: 'One tap in with Seed Vault. No password, no seed phrase typed on a phone.',+ },+ {+ file: 'screen-2.png',+ path: '/marketplace',+ scrollTo: '#market-grid',+ scrollBy: 620,+ title: 'Browse agents\nbuilt by everyone',+ sub: 'Every listing is a real 3D character you can open, inspect, and own.',+ },+ {+ file: 'screen-3.png',+ path: null, // resolved to a currently listed agent+ title: 'Real 3D,\nrunning on device',+ sub: 'Rigged, animated glTF in your hand. Not a video, not a pre-rendered clip.',+ },+ {+ file: 'screen-4.png',+ path: '/create',+ title: 'Make one\nin a minute',+ sub: 'Describe it, speak it, or start from a selfie. The model is generated for you.',+ },+ {+ file: 'screen-5.png',+ path: '/seeker',+ scrollTo: '#verify',+ title: 'Signed by\nyour Seed Vault',+ sub: 'Prove you own a Seeker and sign on Solana. Keys never leave the secure element.',+ },+];++/**+ * The four phones that sit ON the seams, split down the middle by the crease+ * between two store panels. They carry no headline: their job is to make the+ * five uploads read as one photograph of a shelf of devices rather than five+ * unrelated stills, so each one has to be a screen the hero panels do not+ * already show.+ */+const SEAMS = [+ { id: 'seam-1', path: '/chat' },+ /* /portal rather than /forge: the forge screen puts third-party engine names+ on chips, and ../docs/ASSETS.md keeps vendor branding out of store frames. */+ { id: 'seam-2', path: '/portal' },+ { id: 'seam-3', path: '/create/selfie' },+ { id: 'seam-4', path: '/animations' },+];++/* Floating product widgets that are useful in the app and noise in a store+ frame: the corner stack (onboarding pill, language picker, claim card), the+ walking companion and its trail, and the marketplace sidebar handle. Hidden+ for the capture only; nothing about the page underneath changes. */+const OVERLAY_SELECTORS = [+ '#tws-corner-stack',+ '.twx-i18n-fab',+ '.walk-companion',+ '.walk-c2w-fx',+ '.walk-trail-layer',+ '#market-sidebar-toggle',+];++const FONT_FACES = [+ ['Space Grotesk', '300 700', 'space-grotesk-latin.woff2'],+ ['Inter', '300 800', 'inter-latin.woff2'],+].map(([family, weight, file]) => `@font-face{font-family:'${family}';font-style:normal;font-weight:${weight};src:url(data:font/woff2;base64,${readFileSync(path.join(ROOT, 'public/fonts', file)).toString('base64')}) format('woff2');}`).join('\n');++const MARK_URI = `data:image/png;base64,${readFileSync(path.join(ROOT, 'public/pwa-512x512.png')).toString('base64')}`;++/* Listed agents whose stored render faces the camera, so the hero panel shows a+ character looking at the reader rather than the back of its head. Pass+ --agent=<id> to override; if none of these is still listed the first agent the+ marketplace returns is used. */+const PREFERRED_AGENTS = [+ '34706ed9-6277-4e84-8963-4fe5aca9c9c7',+ '20ecfcc6-849e-4c12-b618-4c7c344cbc43',+];++/** The agent whose page fills the middle panel. */+async function resolveAgentPath() {+ const res = await fetch(`${ORIGIN}/api/marketplace/agents?limit=24`);+ const items = (await res.json())?.data?.items ?? [];+ const ids = items.map((a) => a?.id).filter(Boolean);+ if (ids.length === 0) throw new Error('[screenshots] marketplace API returned no agents to capture');+ const wanted = args.agent ? [String(args.agent)] : PREFERRED_AGENTS;+ return `/agents/${wanted.find((id) => ids.includes(id)) ?? ids[0]}`;+}++/**+ * Capture one screen at Seeker resolution, or reuse a real device capture.+ * `spec.file` is set for hero panels only, which is also what makes a hand-made+ * device capture substitutable: publish/media/device/screen-N.png wins if it+ * exists.+ */+async function sourceShot(ctx, spec) {+ const label = spec.file ?? spec.id;+ const device = spec.file ? path.join(DEVICE, spec.file) : null;+ if (device && existsSync(device)) {+ const meta = await sharp(device).metadata();+ if (meta.width !== W || meta.height !== H) {+ throw new Error(`[screenshots] ${device} is ${meta.width}x${meta.height}, a device capture must be ${W}x${H}`);+ }+ console.log(`[screenshots] ${label}: device capture ${path.relative(ROOT, device)}`);+ return sharp(device).png().toBuffer();+ }++ const page = await ctx.newPage();+ const url = ORIGIN + spec.path;+ try {+ await page.goto(url, { waitUntil: 'networkidle', timeout: 90000 });+ } catch {+ /* networkidle never settles on a page holding an open socket; the render is+ still complete by the time the settle below elapses. */+ }+ await page.addStyleTag({ content: `${OVERLAY_SELECTORS.join(',')}{display:none!important}` });+ if (spec.scrollTo || spec.scrollBy) {+ await page.evaluate(({ sel, by }) => {+ const el = sel ? document.querySelector(sel) : null;+ if (el) el.scrollIntoView({ block: 'start', behavior: 'instant' });+ if (by) window.scrollBy({ top: by, behavior: 'instant' });+ }, { sel: spec.scrollTo ?? null, by: spec.scrollBy ?? 0 });+ }+ /* Let WebGL scenes, lazy images, and entrance transitions finish. */+ await page.waitForTimeout(9000);+ const buf = await page.screenshot({ type: 'png' });+ await page.close();+ if (args['keep-raw']) {+ mkdirSync(RAW, { recursive: true });+ writeFileSync(path.join(RAW, `${label.replace(/\.png$/, '')}.png`), buf);+ }++ const meta = await sharp(buf).metadata();+ if (meta.width !== W || meta.height !== H) {+ throw new Error(`[screenshots] capture of ${url} is ${meta.width}x${meta.height}, expected ${W}x${H}`);+ }+ const means = (await sharp(buf).stats()).channels.map((c) => c.mean);+ if (means.every((m) => m < 6)) {+ throw new Error(`[screenshots] capture of ${url} is effectively blank (channel means ${means.map((m) => m.toFixed(1)).join(',')})`);+ }+ console.log(`[screenshots] ${label}: live capture ${url}`);+ return buf;+}++/* Composition geometry, in strip pixels. A hero phone is centred in its own+ panel; a seam phone is centred exactly ON the crease between two panels, so+ each upload carries one whole screen plus the two halves it shares with its+ neighbours. That overlap is the whole point: the five uploads have to read as+ one photograph of a shelf of devices, not five separate stills. */+const HERO_W = 660;+const HERO_CY = 1258;+const SEAM_W = 430;+const SEAM_CY = 1074;++/**+ * Draw the whole strip in one browser page, then slice it into store panels.+ * Everything that crosses a seam does so deliberately: the glow field, the+ * light beam, the floor, and the four seam phones.+ */+async function composeStrip(browser, heroShots, seamShots) {+ const stripW = W * COUNT;+ const page = await browser.newPage({ viewport: { width: stripW, height: H }, deviceScaleFactor: 1 });++ /* Heroes rise toward the middle of the strip and settle again, so swiping the+ carousel reads as one arc rather than five identical layouts. */+ const heroLift = [0, -26, -46, -26, 0];+ const heroes = heroShots.map((buf, i) => `<div class="phone hero" style="left:${W * i + W / 2}px;top:${HERO_CY + heroLift[i]}px;width:${HERO_W}px">+ <img src="data:image/png;base64,${buf.toString('base64')}" alt="">+ </div>`).join('');++ const seams = seamShots.map((buf, i) => `<div class="phone seam" style="left:${W * (i + 1)}px;top:${SEAM_CY + (i % 2 ? 24 : -24)}px;width:${SEAM_W}px;--tilt:${i % 2 ? 4 : -4}deg">+ <img src="data:image/png;base64,${buf.toString('base64')}" alt="">+ </div>`).join('');++ const headers = PANELS.map((s, i) => `<header style="left:${W * i}px">+ <h2>${s.title.replace(/\n/g, '<br>')}</h2>+ <p>${s.sub}</p>+ </header>`).join('');++ await page.setContent(`<!doctype html><meta charset="utf-8"><style>+${FONT_FACES}+*{margin:0;padding:0;box-sizing:border-box}+body{width:${stripW}px;height:${H}px;background:${BG};color:#fff;overflow:hidden;position:relative;+ font-family:'Inter',sans-serif;-webkit-font-smoothing:antialiased}+/* One glow field for the entire strip: it ignores every seam. */+.glow{position:absolute;inset:0;+ background:+ radial-gradient(38% 46% at 6% 18%, rgba(96,140,255,.30), transparent 70%),+ radial-gradient(34% 44% at 32% 78%, rgba(150,90,255,.24), transparent 72%),+ radial-gradient(40% 50% at 58% 12%, rgba(64,196,255,.22), transparent 70%),+ radial-gradient(34% 46% at 82% 74%, rgba(120,110,255,.26), transparent 72%),+ linear-gradient(180deg, #0a0a1c 0%, #080814 60%, #06060f 100%)}+/* A single light beam swept across all five panels. */+.beam{position:absolute;left:-6%;right:-6%;top:40%;height:360px;transform:rotate(-3.4deg);+ background:linear-gradient(90deg, transparent, rgba(150,200,255,.15) 16%, rgba(190,220,255,.26) 50%, rgba(150,200,255,.15) 84%, transparent);+ filter:blur(60px)}+/* A continuous floor the whole shelf of devices stands on. */+.floor{position:absolute;left:0;right:0;bottom:0;height:520px;+ background:linear-gradient(180deg, transparent, rgba(4,5,16,.78))}+header{position:absolute;top:150px;width:${W}px;padding:0 78px;text-align:center}+h2{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:80px;line-height:1.06;+ letter-spacing:-.035em}+header p{margin-top:28px;font-size:32px;line-height:1.42;color:#93a4c6}+.phone{position:absolute;transform:translate(-50%,-50%) rotate(var(--tilt,0deg));+ border-radius:54px;padding:12px;background:linear-gradient(160deg,#2f3350,#12131f 58%,#262a40);+ box-shadow:0 46px 130px rgba(3,4,14,.8), 0 0 0 1px rgba(255,255,255,.07) inset}+.phone img{display:block;width:100%;border-radius:44px;background:${BG}}+.seam{border-radius:40px;padding:9px;opacity:.94}+.seam img{border-radius:33px}+/* Lockup on the first panel, so the strip opens with the brand. */+.lockup{position:absolute;left:80px;bottom:64px;display:flex;align-items:center;gap:24px}+.lockup img{width:78px;height:78px;border-radius:21px}+.lockup span{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:50px;letter-spacing:-.045em}+</style><body>+<div class="glow"></div><div class="beam"></div><div class="floor"></div>+${headers}${seams}${heroes}+<div class="lockup"><img src="${MARK_URI}" alt=""><span>three.ws</span></div>+</body>`, { waitUntil: 'load' });++ const loaded = await page.evaluate(async () => {+ await document.fonts.ready;+ return document.fonts.check('600 80px "Space Grotesk"') && document.fonts.check('400 32px "Inter"');+ });+ if (!loaded) throw new Error('[screenshots] brand fonts did not load; the strip would render in a fallback face');++ const strip = await page.screenshot({ type: 'png' });+ await page.close();+ return strip;+}++mkdirSync(MEDIA, { recursive: true });+if (!PANELS[2].path) PANELS[2].path = await resolveAgentPath();++const browser = await chromium.launch({ args: ['--use-angle=swiftshader', '--enable-webgl'] });+let strip;+try {+ const ctx = await browser.newContext({+ viewport: SHOT_CSS,+ deviceScaleFactor: SHOT_DPR,+ isMobile: true,+ hasTouch: true,+ /* Holds every entrance transition and the avatar turntable still, so the+ same page captured twice yields the same frame. */+ reducedMotion: 'reduce',+ userAgent: 'Mozilla/5.0 (Linux; Android 14; Seeker) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36',+ });+ const heroShots = [];+ for (const spec of PANELS) heroShots.push(await sourceShot(ctx, spec));+ const seamShots = [];+ for (const spec of SEAMS) seamShots.push(await sourceShot(ctx, spec));+ await ctx.close();++ if (args['keep-raw']) console.log(`[screenshots] raw captures written to ${path.relative(ROOT, RAW)}/`);++ strip = await composeStrip(browser, heroShots, seamShots);+} finally {+ await browser.close();+}++writeFileSync(path.join(MEDIA, 'carousel.png'), strip);+for (const [i, spec] of PANELS.entries()) {+ const panel = await sharp(strip)+ .extract({ left: i * W, top: 0, width: W, height: H })+ .flatten({ background: BG })+ .removeAlpha()+ .png({ compressionLevel: 9 })+ .toBuffer();+ /* The portal caps a preview image at 3 MB. */+ if (panel.length > 3 * 1024 * 1024) {+ throw new Error(`[screenshots] ${spec.file} is ${(panel.length / 1024 / 1024).toFixed(2)} MB, the portal ceiling is 3 MB`);+ }+ await sharp(panel).toFile(path.join(MEDIA, spec.file));+ console.log(`[screenshots] ${spec.file} ${W}x${H} ${Math.round(panel.length / 1024)} KB`);+}+console.log(`[screenshots] full strip: ${path.relative(ROOT, path.join(MEDIA, 'carousel.png'))} (${W * COUNT}x${H}, upload the panels, not this)`);