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
docs(seeker): record the Seeker app in Chromium at the real panel geometry and draft the launch post
nirholasd32385d8e734
diff --git a/data/pages.json b/data/pages.jsonindex 01edf64dd..25f36adda 100644--- a/data/pages.json+++ b/data/pages.json@@ -3336,6 +3336,12 @@"description": "The release runbook for the three.ws Seeker app: Publisher Portal setup, the release keystore, building and verifying a signed APK, and submitting it for review.","added": "2026-08-28"},+ {+ "path": "/docs/seeker-video",+ "title": "Filming three.ws on a Seeker without a Seeker",+ "description": "How to record a Seeker screen recording of the app with no device: why the Trusted Web Activity makes a browser capture at the real panel geometry a genuine capture, and which moments still have to come from an Android emulator.",+ "added": "2026-09-01"+ },{"path": "/docs/seeker-submission-day","title": "Submission day: three.ws on the Seeker dApp Store",diff --git a/docs/seeker-app.md b/docs/seeker-app.mdindex 37dec174d..4956a9fa9 100644--- a/docs/seeker-app.md+++ b/docs/seeker-app.md@@ -41,6 +41,8 @@ The handoff is one-shot and expires after ten minutes, so a stale share can neveThe APK can be exercised in a stock Android emulator (Pixel 7, Android 14 image). Everything except the Seed Vault itself works there: install, launch, shortcuts, the share intent, deep-link verification state. The recipe is in [solana-mobile/README.md](../solana-mobile/README.md#emulator-qa). For the wallet flows, `tests/solana-mobile-*.test.js` drive the MWA wrapper against a fake transport, and the Solana Mobile reference wallet can be sideloaded into the emulator for an end-to-end sign-in.+Because the app is a TWA, filming it needs no device either: [Filming three.ws on a Seeker without a Seeker](./seeker-video.md) records the shipping page at the Seeker's real panel geometry and seats it in a device body, and says which moments genuinely have to come from the emulator.+## The home screen widgetVersion 1.1 adds **Agent glance**, an Android app widget: your agent's avatar, its name, and howdiff --git a/docs/seeker-video.md b/docs/seeker-video.mdnew file mode 100644index 000000000..6be9accde--- /dev/null+++ b/docs/seeker-video.md@@ -0,0 +1,91 @@+# Filming three.ws on a Seeker without a Seeker++You do not need the phone to make a Seeker screen recording of three.ws, and you should not buy a+generic Android phone to fake one. This page explains why, and gives the two capture paths that+produce real footage: one for the app itself, one for the Android surfaces around it.++## Why no device is needed for the app++`ws.three.app` is a Trusted Web Activity. The APK is a full-screen shell with no browser chrome, and+everything inside it is `https://three.ws/seeker` rendered by Chrome's engine on the phone. There is+no second, native UI that only the hardware can draw. So a browser rendering that page at the+Seeker's real panel geometry produces the same pixels the Seeker does. That is a capture of the+shipping product, not a re-creation of it.++The Seeker panel is a 6.36" AMOLED at 1200x2670 (about 460 ppi), which Android reports to the page+as a 400x890 CSS viewport at device pixel ratio 3. Those are the numbers+[make-screencast.mjs](../solana-mobile/scripts/make-screencast.mjs) captures at, and they are the+same numbers behind the store screenshots in+[make-screenshots.mjs](../solana-mobile/scripts/make-screenshots.mjs).++What a browser capture cannot show, because it genuinely is not part of the app: the Android status+bar, the launcher and the app-open animation, the system share sheet, the Seed Vault approval sheet,+and the dApp Store install. Those are system surfaces. Capture them in an emulator (below) and cut+them around the app footage. Do not draw them.++## Path 1: the app itself++```bash+node solana-mobile/scripts/make-screencast.mjs+```++Two files land in `marketing/seeker-video/`:++| File | Size | What it is |+|---|---|---|+| `seeker-screen.mp4` | 1200x2670 | The bare panel, for dropping into your own edit or device frame |+| `seeker-device.mp4` | 1080x1920 | The same panel seated in a Seeker-proportioned body on the three.ws backdrop, ready to post |++The tour is scripted in the `TOUR` constant at the top of the script: the hero, the Create/Explore+grid, the agents rail, the Seeker verification card, then a real tap on **Explore** through to the+marketplace. Every selector in it resolves on the live page, and a step whose target is missing+fails the run rather than quietly recording a still frame. Edit that array to change the story.++Useful flags:++- `--origin=http://localhost:3000` records against a dev server instead of production.+- `--authed` replays the QA session so the signed-in state is on screen. Mint the session first with+ `npm run audit:web:login`; it writes the `.auth/audit-state.json` this reads.+- `--out=<dir>` writes somewhere other than `marketing/seeker-video/`.++The recording needs `ffmpeg` on `PATH` (`sudo apt-get install -y ffmpeg`). Playwright ships its own+ffmpeg for the raw webm capture, but that build is VP8-only with no filters, so it cannot do the+H.264 encode or the device compositing.++## Path 2: the Android surfaces around the app++For the launcher tap, the status bar, the share sheet, and an end-to-end Seed Vault sign-in, run the+signed APK in a stock Android emulator and record that. This is the same setup the app's QA uses.++1. `bash solana-mobile/scripts/setup-android-sdk.sh` stages a JDK 17 and the Android command-line+ tools under `~/.bubblewrap`. Add the emulator and a system image to it with+ `sdkmanager 'emulator' 'system-images;android-34;google_apis;x86_64'`.+2. On a machine without KVM group access, `sudo chgrp kvm /dev/kvm && sudo chmod 660 /dev/kvm` (or+ the equivalent for your host). Without hardware acceleration the emulator is too slow to record.+3. Create a device close to the Seeker's proportions. A Pixel 7 profile with `hw.lcd.width=1200`,+ `hw.lcd.height=2670`, `hw.lcd.density=460` matches the panel; the AVD at `~/.android/avd/seeker`+ already carries this shape.+4. Install the release APK: `adb install -r solana-mobile/build/app-release-signed.apk`.+5. For wallet flows, sideload Solana Mobile's **Seed Vault Simulator** from+ [solana-mobile/seed-vault-sdk](https://github.com/solana-mobile/seed-vault-sdk). It implements the+ Wallet API on any Android 12+ image, so Mobile Wallet Adapter sign-in works end to end in the+ emulator. It is a development tool with no security guarantees: use throwaway test seeds only,+ never a real one.+6. Record with `adb shell screenrecord --bit-rate 16000000 /sdcard/take.mp4`, then+ `adb pull /sdcard/take.mp4`.++The emulator's own frame rate is not good enough to carry a whole marketing video. Use it for the+few seconds of system chrome and let Path 1 carry the app.++## Why not just buy an Android phone++A phone that is not a Seeker gives you a recording of a phone that is not a Seeker. It has no Seed+Vault, no dApp Store, no Seeker Genesis Token, and a different panel shape, so every Seeker-specific+moment in the video would still have to come from somewhere else. It costs money and removes none of+the work. Buy a Seeker if you want a Seeker; otherwise use the two paths above.++## Related++- [three.ws on Solana Seeker](./seeker-app.md) - what the app adds over the website+- [Publishing to the Solana dApp Store](./seeker-publishing.md) - how a release ships+- [solana-mobile/README.md](../solana-mobile/README.md) - the packaging and code layoutdiff --git a/docs/start-here.md b/docs/start-here.mdindex dfe6d9e29..b344a4ee1 100644--- a/docs/start-here.md+++ b/docs/start-here.md@@ -177,6 +177,7 @@ Deeper references that don't fit a track above but answer real questions:- [three.ws on Solana Seeker](./seeker-app.md): the Android app for Seeker and Saga, and what it adds on top of the website (Seed Vault sign-in, share-sheet capture, offline shell, Seeker verification)- [Publishing to the Solana dApp Store](./seeker-publishing.md): the release runbook for the Seeker app, from the Publisher Portal setup and the release keystore through building, verifying, and submitting a signed APK- [Submission day: getting three.ws onto the Seeker dApp Store](./seeker-submission-day.md): the owner's step-by-step, with every portal field, the listing copy to paste, and the five screenshots to capture on the phone+- [Filming three.ws on a Seeker without a Seeker](./seeker-video.md): how to record a Seeker screen-recording of the app with no device, why the TWA makes that a real capture rather than a mock-up, and what still has to come from an emulator- [three.ws on iOS](./ios-app.md): the App Store app, what it adds on top of the website (native share sheet, universal links, wallet deep links, offline shell), and how the web half of it ships on every deploy- [Free LLM providers](./free-llm-providers.md): the failover chain of a dozen free AI providers behind every text completion, what each free tier gives, and how to add the next rung- [Tokens API on three.ws](./tokens-xyz.md): the Solana Foundation asset layer that tells us which mints are the same asset, why it sits second in the market-data cascade, and the one env var that turns it ondiff --git a/marketing/seeker-launch/post.md b/marketing/seeker-launch/post.mdnew file mode 100644index 000000000..bd537d87b--- /dev/null+++ b/marketing/seeker-launch/post.md@@ -0,0 +1,195 @@+# Seeker launch: the announcement++Two posts. The first is the announcement and carries the photo. The second is a+reply to it and explains the whole app. Nothing here is written to be read+without the picture: the photo is the proof, the copy is the caption.++Counts are X's arithmetic (a URL costs 23 characters however long it is, and a+newline costs one). Every claim below is drawn from the shipping listing copy in+[solana-mobile/publish/listing/](../../solana-mobile/publish/listing/) and+[docs/seeker-app.md](../../docs/seeker-app.md); nothing is promised that v1.0+does not do.++---++## The photo++One frame, held in the hand, outdoors, natural light. What has to be legible:++- the three.ws listing on the Solana dApp Store, on screen, in focus+- the phone read as a phone someone owns, not a product shot on a white sweep++What to avoid: a flat-on screenshot angle (that is what the store screenshots+are for), direct sun on the AMOLED, and a grip that covers the listing. Tilt the+top of the phone a few degrees away from the camera to kill the glare, expose+for the screen rather than the trees, and let the woods go soft behind it.++The setting is the strongest thing about this image. A crypto launch photo is+normally a desk, a monitor, and a mechanical keyboard. This one is a person, in+the woods, holding a phone that just got an app. Do not art-direct that out.++**Alt text** (paste into X's alt field, it is not optional):++```+A hand holding a Solana Seeker phone outdoors in a forest, with the three.ws listing open on the Solana dApp Store.+```++---++## Post 1: the announcement++Attach the photo here. No link in the body: the install instruction is the+call to action, and the explainer in post 2 carries the URL.++### Option A, plain and certain++```+three.ws is live on the Solana dApp Store.++Take a selfie. Get a rigged 3D agent. Give it a mind, a voice, and a wallet that never leaves your Seeker.++No extension. No twelve words to write down.++Open the dApp Store on your Seeker and search three.ws.+```++### Option B, leans on what it costs to try++```+three.ws is live on the Solana dApp Store.++Your phone is now a 3D agent studio. One selfie, one rigged character, one wallet that signs without ever handing over a key.++Free to make. Free to talk to. Yours on-chain when you decide it is.++Search three.ws on your Seeker.+```++Pick A if the photo is tight on the listing and the screen carries the story.+Pick B if the photo is wider and the copy has to do more work.++---++## Post 2: the explainer++A reply to post 1. Written as one long post; the threaded version underneath is+the fallback if you are posting without Premium.++```+What three.ws actually is, and why it belongs on this phone.++It is a 3D agent studio. Start with a selfie: one frontal photo, plus two optional side angles for a sharper likeness. About a minute later you have a textured, rigged, animation-ready character. No photo? Describe the character in text instead, or upload a GLB you already have.++Then give it a mind. A personality, a voice, skills. And talk to it. It answers in 3D, on your phone, in your language.++The marketplace is everyone else's work. Drag to orbit any agent, tap to inspect it, open its page and talk to it. Every agent has a shareable URL and a one-line embed, so it drops into Telegram, X, or your own site.++When an agent should be properly yours, you deploy it on-chain as a Metaplex Core asset held by your wallet. Open manifest, no lock-in, portable to any compatible marketplace. Sell its skills, take tips, trade the agent itself in USDC.++Here is the part that needed a Seeker.++Every signature routes to Seed Vault through Mobile Wallet Adapter. Sign-In With Solana is a single interaction instead of a connect step followed by a signing step, and the private key never enters the app process at all. It stays in the hardware-isolated secure element. Approve a session once and it survives Android killing the app; revoke it in the wallet and the app drops it cleanly and asks again next time.++Share a photo to three.ws from any app and it opens the selfie flow with that photo already attached. Share a .glb and it opens the upload flow. Long-press the icon for Create, Discover, My agents. Any three.ws link opens in the app instead of a browser tab.++Own a Seeker and you can prove it. The app reads your soulbound Seeker Genesis Token, never moves it, and puts a Seeker verified badge on every agent you own.++Creating, chatting and browsing are free. Deploying an agent on-chain costs whatever Solana charges, typically under 0.01 SOL.++And everything you make on the Seeker is on the web app the moment you sign in there. Same wallet, same library, any screen.++Open source, all of it: github.com/nirholas/three.ws+```++### Threaded fallback, if you are posting without Premium++Post 2 becomes replies 2 through 9, in order.++**2**++```+What three.ws actually is, and why it belongs on this phone.++It is a 3D agent studio. Start with a selfie: one frontal photo, two optional side angles for a sharper likeness. About a minute later you have a textured, rigged, animation-ready character.+```++**3**++```+No photo? Describe the character in text instead. Or upload a GLB you already have.++Then give it a mind. A personality, a voice, skills. And talk to it.++It answers in 3D, on your phone, in your language.+```++**4**++```+The marketplace is everyone else's work.++Drag to orbit any agent. Tap to inspect it. Open its page and talk to it.++Every agent has a shareable URL and a one-line embed, so it drops straight into Telegram, X, or your own site.+```++**5**++```+When an agent should be properly yours, you deploy it on-chain as a Metaplex Core asset held by your wallet.++Open manifest. No lock-in. Portable to any compatible marketplace.++Sell its skills, take tips, trade the agent itself in USDC.+```++**6**++```+Here is the part that needed a Seeker.++Every signature routes to Seed Vault through Mobile Wallet Adapter. Sign-In With Solana is one interaction, not connect-then-sign.++The private key never enters the app. It stays in the secure element.+```++**7**++```+Approve a session once and it survives Android killing the app. Revoke it in the wallet and the app drops it cleanly, then asks again next time.++That is the whole sign-in story. No extension, no seed phrase typed into a phone.+```++**8**++```+Share a photo to three.ws from any app: it opens the selfie flow with the photo attached. Share a .glb: it opens the upload flow.++Long-press the icon for Create, Discover, My agents.++Any three.ws link opens in the app, not a browser tab.+```++**9**++```+Own a Seeker and you can prove it. The app reads your soulbound Genesis Token, never moves it, and badges every agent you own.++Creating, chatting and browsing are free. Deploying on-chain is usually under 0.01 SOL.++Open source: github.com/nirholas/three.ws+```++---++## What was deliberately left out++- **The home screen widget.** Agent glance is version 1.1. What is on the store+ is 1.0, so announcing the widget today would be announcing something nobody+ can install yet. It is the natural second announcement once 1.1 is approved.+- **$THREE.** The announcement is stronger as a product post than as a coin+ post, and the audience that installs an app from a launch photo is not the+ audience that wants a ticker in the first line. If you want it in, it belongs+ as a short standalone reply at the end of the thread, never in post 1.+- **Version numbers and release IDs.** Nobody installing an app needs them.diff --git a/marketing/seeker-video/.raw/bezel.png b/marketing/seeker-video/.raw/bezel.pngnew file mode 100644index 000000000..4c741a765Binary files /dev/null and b/marketing/seeker-video/.raw/bezel.png differdiff --git a/marketing/seeker-video/.raw/bg.png b/marketing/seeker-video/.raw/bg.pngnew file mode 100644index 000000000..b16982a9bBinary files /dev/null and b/marketing/seeker-video/.raw/bg.png differdiff --git a/marketing/seeker-video/.raw/[email protected] b/marketing/seeker-video/.raw/[email protected]new file mode 100644index 000000000..d550e9422Binary files /dev/null and b/marketing/seeker-video/.raw/[email protected] differdiff --git a/marketing/seeker-video/seeker-device.mp4 b/marketing/seeker-video/seeker-device.mp4new file mode 100644index 000000000..a10142f18Binary files /dev/null and b/marketing/seeker-video/seeker-device.mp4 differdiff --git a/marketing/seeker-video/seeker-screen.mp4 b/marketing/seeker-video/seeker-screen.mp4new file mode 100644index 000000000..5da65aff3Binary files /dev/null and b/marketing/seeker-video/seeker-screen.mp4 differdiff --git a/solana-mobile/scripts/make-screencast.mjs b/solana-mobile/scripts/make-screencast.mjsnew file mode 100644index 000000000..b69424bf0--- /dev/null+++ b/solana-mobile/scripts/make-screencast.mjs@@ -0,0 +1,217 @@+#!/usr/bin/env node+/**+ * Records a Seeker screen-recording video of the shipping three.ws app without+ * a Seeker in the room.+ *+ * This is not a mock-up. `ws.three.app` is a Trusted Web Activity: the APK is a+ * full-screen shell around https://three.ws/seeker, so what the phone renders in+ * the app IS this page. Driving that same page in Chromium at the Seeker's real+ * panel geometry (1200x2670 device pixels, 3x density) produces the identical+ * pixels the device would, and the tour below only touches links and sections+ * that exist on the live page.+ *+ * Two artefacts come out of one recording:+ * seeker-screen.mp4 the raw 1200x2670 panel, for dropping into an edit+ * seeker-device.mp4 the same panel seated in a Seeker-proportioned body,+ * 1080x1920, ready to post+ *+ * What this deliberately does NOT fake: the Android status bar, the launcher,+ * the Seed Vault approval sheet, and the dApp Store install. Those are system+ * surfaces, not app surfaces, and inventing them would be inventing UI. Capture+ * them in an Android emulator (docs/seeker-video.md) and cut them around this.+ *+ * Usage:+ * node solana-mobile/scripts/make-screencast.mjs+ * node solana-mobile/scripts/make-screencast.mjs --origin=http://localhost:3000+ * node solana-mobile/scripts/make-screencast.mjs --authed # replays the audit session+ */+import sharp from 'sharp';+import { chromium } from 'playwright';+import { spawnSync } from 'node:child_process';+import { existsSync, mkdirSync, readdirSync, rmSync } from 'node:fs';+import { fileURLToPath } from 'node:url';+import path from 'node:path';++const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');++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(/\/$/, '');+const OUT = path.resolve(ROOT, String(args.out || 'marketing/seeker-video'));+const AUTH_STATE = path.join(ROOT, '.auth/audit-state.json');++/* Seeker panel: 6.36" AMOLED, 1200x2670 at ~460ppi, which Android reports as a+ 400x890 CSS viewport at density 3. Capturing at that density is what makes+ the frames real device pixels rather than an upscale. */+const CSS = { width: 400, height: 890 };+const DPR = 3;+const PANEL = { width: CSS.width * DPR, height: CSS.height * DPR };++/* Output composition. The screen keeps the panel's exact aspect ratio; the body+ reuses the bezel proportions and gradient the store frames already use, so+ the video and the listing screenshots read as one set of assets. */+const OUT_W = 1080;+const OUT_H = 1920;+const SCREEN_H = 1740;+const SCREEN_W = Math.round(SCREEN_H * (PANEL.width / PANEL.height)) & ~1;+const BEZEL = 20;+const BODY_W = SCREEN_W + BEZEL * 2;+const BODY_H = SCREEN_H + BEZEL * 2;+const BODY_X = Math.round((OUT_W - BODY_W) / 2);+const BODY_Y = Math.round((OUT_H - BODY_H) / 2);+const SCREEN_X = BODY_X + BEZEL;+const SCREEN_Y = BODY_Y + BEZEL;+const BG = '#080814';++/**+ * The tour. Every `click` selector and every `to` selector resolves on the live+ * page; a step that cannot find its target fails the run rather than silently+ * recording a still. A numeric `to` between 0 and 1 is a fraction of the page's+ * scrollable height, which keeps a step meaningful on pages of any length.+ */+const TOUR = [+ { hold: 2600, note: 'hero and the Seed Vault sign-in' },+ { to: '#agents', glide: 1500, hold: 1800, note: 'agents rail' },+ { to: '#verify', glide: 1400, hold: 2200, note: 'Seeker verification' },+ { to: 0, glide: 1200, hold: 900, note: 'back to the hero' },+ { click: 'a[href^="/marketplace"]', settle: 3600, note: 'tap Marketplace' },+ { to: 0.35, glide: 2600, hold: 1400, note: 'marketplace grid' },+ { to: 0.7, glide: 2600, hold: 2000, note: 'deeper into the grid' },+];++const log = (...m) => console.log('[screencast]', ...m);++function ffmpeg(argv) {+ const r = spawnSync('ffmpeg', ['-hide_banner', '-loglevel', 'error', '-y', ...argv], { stdio: 'inherit' });+ if (r.error || r.status !== 0) throw new Error(`ffmpeg failed (${r.status ?? r.error?.message})`);+}++/** Eased scroll driven by rAF inside the page, so the capture sees real frames. */+async function glide(page, target, ms) {+ await page.evaluate(([t, d]) => new Promise((done) => {+ const el = typeof t === 'string' ? document.querySelector(t) : null;+ if (typeof t === 'string' && !el) { done(`missing:${t}`); return; }+ const from = window.scrollY;+ const max = Math.max(0, document.documentElement.scrollHeight - window.innerHeight);+ const want = el ? from + el.getBoundingClientRect().top - 72 : (t > 0 && t < 1 ? t * max : t);+ const to = Math.max(0, Math.min(max, want));+ const t0 = performance.now();+ const ease = (x) => (x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2);+ (function step(now) {+ const p = Math.min(1, (now - t0) / d);+ window.scrollTo(0, from + (to - from) * ease(p));+ p < 1 ? requestAnimationFrame(step) : done(null);+ })(t0);+ }), [target, ms]).then((miss) => {+ if (miss) throw new Error(`tour target not on the page: ${String(miss).slice(8)}`);+ });+}++async function record() {+ mkdirSync(OUT, { recursive: true });+ const raw = path.join(OUT, '.raw');+ rmSync(raw, { recursive: true, force: true });+ mkdirSync(raw, { recursive: true });++ const browser = await chromium.launch();+ const ctx = await browser.newContext({+ viewport: CSS,+ deviceScaleFactor: DPR,+ isMobile: true,+ hasTouch: true,+ colorScheme: 'dark',+ userAgent: 'Mozilla/5.0 (Linux; Android 15; Seeker) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36',+ recordVideo: { dir: raw, size: PANEL },+ ...(args.authed && existsSync(AUTH_STATE) ? { storageState: AUTH_STATE } : {}),+ });+ if (args.authed && !existsSync(AUTH_STATE)) {+ throw new Error(`--authed needs ${path.relative(ROOT, AUTH_STATE)}; mint it with: npm run audit:web:login`);+ }++ const page = await ctx.newPage();+ log(`opening ${ORIGIN}/seeker at ${PANEL.width}x${PANEL.height}`);+ /* `load` never settles on this page (the 3D scene keeps streaming), so the+ ready signal is the hero being on screen plus a fixed beat for the avatar. */+ await page.goto(`${ORIGIN}/seeker`, { waitUntil: 'domcontentloaded', timeout: 60_000 });+ await page.waitForSelector('#hero-title', { timeout: 30_000 });+ await page.waitForTimeout(4000);++ for (const step of TOUR) {+ log(step.note);+ if (step.click) {+ const target = page.locator(step.click).first();+ await target.waitFor({ state: 'visible', timeout: 15_000 });+ await target.scrollIntoViewIfNeeded();+ await page.waitForTimeout(500);+ await target.click();+ await page.waitForLoadState('domcontentloaded', { timeout: 30_000 }).catch(() => {});+ }+ if (step.to !== undefined) await glide(page, step.to, step.glide ?? 1200);+ await page.waitForTimeout(step.settle ?? step.hold ?? 600);+ }++ await ctx.close();+ await browser.close();++ const webm = readdirSync(raw).filter((f) => f.endsWith('.webm')).map((f) => path.join(raw, f));+ if (webm.length !== 1) throw new Error(`expected one recording in ${raw}, found ${webm.length}`);+ return webm[0];+}++async function frames() {+ const bg = Buffer.from(`<svg xmlns="http://www.w3.org/2000/svg" width="${OUT_W}" height="${OUT_H}">+ <defs><radialGradient id="g" cx="0.5" cy="0.4" r="0.66">+ <stop offset="0" stop-color="#4b32d6" stop-opacity="0.5"/>+ <stop offset="0.55" stop-color="#1b1650" stop-opacity="0.28"/>+ <stop offset="1" stop-color="${BG}" stop-opacity="0"/>+ </radialGradient></defs>+ <rect width="${OUT_W}" height="${OUT_H}" fill="${BG}"/>+ <rect width="${OUT_W}" height="${OUT_H}" fill="url(#g)"/>+</svg>`);++ const bezel = Buffer.from(`<svg xmlns="http://www.w3.org/2000/svg" width="${OUT_W}" height="${OUT_H}">+ <defs>+ <linearGradient id="body" x1="0" y1="0" x2="1" y2="1">+ <stop offset="0" stop-color="#2f3350"/><stop offset="0.58" stop-color="#12131f"/><stop offset="1" stop-color="#262a40"/>+ </linearGradient>+ <mask id="hole">+ <rect width="${OUT_W}" height="${OUT_H}" fill="black"/>+ <rect x="${BODY_X}" y="${BODY_Y}" width="${BODY_W}" height="${BODY_H}" rx="62" fill="white"/>+ <rect x="${SCREEN_X}" y="${SCREEN_Y}" width="${SCREEN_W}" height="${SCREEN_H}" rx="44" fill="black"/>+ </mask>+ </defs>+ <rect width="${OUT_W}" height="${OUT_H}" fill="url(#body)" mask="url(#hole)"/>+</svg>`);++ const bgPath = path.join(OUT, '.raw/bg.png');+ const bezelPath = path.join(OUT, '.raw/bezel.png');+ await sharp(bg).png().toFile(bgPath);+ await sharp(bezel).png().toFile(bezelPath);+ return { bgPath, bezelPath };+}++const source = await record();+const screenMp4 = path.join(OUT, 'seeker-screen.mp4');+const deviceMp4 = path.join(OUT, 'seeker-device.mp4');++log('encoding the raw panel');+ffmpeg(['-i', source, '-r', '30', '-c:v', 'libx264', '-crf', '18', '-preset', 'slow', '-pix_fmt', 'yuv420p', '-movflags', '+faststart', screenMp4]);++log('seating the panel in the device body');+const { bgPath, bezelPath } = await frames();+ffmpeg([+ '-loop', '1', '-i', bgPath,+ '-i', source,+ '-loop', '1', '-i', bezelPath,+ '-filter_complex',+ `[1:v]scale=${SCREEN_W}:${SCREEN_H}:flags=lanczos,setpts=PTS-STARTPTS[s];` ++ `[0:v][s]overlay=${SCREEN_X}:${SCREEN_Y}:shortest=1[a];` ++ `[a][2:v]overlay=0:0,format=yuv420p[v]`,+ '-map', '[v]', '-r', '30', '-c:v', 'libx264', '-crf', '18', '-preset', 'slow', '-movflags', '+faststart', deviceMp4,+]);++rmSync(path.join(OUT, '.raw'), { recursive: true, force: true });+log(`wrote ${path.relative(ROOT, screenMp4)} (${PANEL.width}x${PANEL.height})`);+log(`wrote ${path.relative(ROOT, deviceMp4)} (${OUT_W}x${OUT_H})`);