Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
feat(web): generate app store artwork from shared components (#1061)
Gener869d28c15383
diff --git a/.gitignore b/.gitignoreindex 08d702e93..e94563ba3 100644--- a/.gitignore+++ b/.gitignore@@ -10,6 +10,7 @@ bundled/!.env.example.next/src/web/readme-capture/next-env.d.ts+src/web/app-store-capture/next-env.d.tscoverage/.vitest-reports/.open-next/diff --git a/assets/app-store/duo-2007x2853/06-existing-setup.jpg b/assets/app-store/duo-2007x2853/06-existing-setup.jpgnew file mode 100644index 000000000..0c70c86bdBinary files /dev/null and b/assets/app-store/duo-2007x2853/06-existing-setup.jpg differdiff --git a/assets/app-store/manifest.json b/assets/app-store/manifest.jsonnew file mode 100644index 000000000..c53326e12--- /dev/null+++ b/assets/app-store/manifest.json@@ -0,0 +1,427 @@+{+ "renderer": "156.0.8078.48",+ "encoding": "RGB JPEG quality 80",+ "clock": "2026-10-25T00:00:00Z",+ "locale": "en-US",+ "timezone": "UTC",+ "repositoryHead": "30cc2f9be9aff68c76e68c4584d4b0fbb0f74012",+ "inputs": {+ "pnpm-lock.yaml": "77e604bc7004bdd8073e9e035c910b0997b482c17192d7336903b4b29ff63397",+ "src/web/app-store-capture/app/globals.css": "e54b13c04636964ae7738e52668de9f1356006aec256ace8bd0a9d554873124f",+ "src/web/app-store-capture/app/layout.tsx": "8b3cc05ec699f99b766dd6fa69127e089ce11b74681d92b80898b95a650aa110",+ "src/web/app-store-capture/app/page.tsx": "73fb0fff70da74672f854baa19ddd957ed9357b3f5a11e898f3105231fa57ef3",+ "src/web/app-store-capture/app/surface/page.tsx": "fd708a2d4eebc1483840dd4eec466f737a309508c78aac91932748f5b8792e8d",+ "src/web/app-store-capture/assets/face-blue.svg": "6ba47540a0c02a03d3955dc26219c2b248537890f55cb7ceafd09b080e454598",+ "src/web/app-store-capture/assets/face-orange.svg": "b26fccaf217060bd67c3874776f11d329401dc79b33a49a5168a33d3458d240e",+ "src/web/app-store-capture/assets/face-purple.svg": "2ec902464f75486fe3433b80ad65c30de4a4fcf947403bba8a38c4c54e0e162b",+ "src/web/app-store-capture/assets/face-red.svg": "d762e20ec379a14a492ca1cd438fb608267ed1870e20d0ed17d6acf16dd8924a",+ "src/web/app-store-capture/assets/face-teal.svg": "6b53ffd30e7ae6935eaea4dffb31e7bb096d03163c99c2855c5846aec8b375e0",+ "src/web/app-store-capture/capture.mjs": "098f62d5a43683ed9066f963268e2a4474063dbc60163acd33be5daffc6db10f",+ "src/web/app-store-capture/captures/poster.css": "caa813453a47bb316b8c568231e44a4ab34c2e96a0a548573e81d1c4d3047dbe",+ "src/web/app-store-capture/captures/poster.tsx": "d4b039b6e1603c2b86e6fa5decda46cf13a6943eae272494ae573c309a3b027a",+ "src/web/app-store-capture/captures/surface.tsx": "85cbb9cceb479761978b5d9c0b91f8a2a6c6f2867dd3e0d1327a16df83e78a98",+ "src/web/app-store-capture/next.config.ts": "5950152b533fccc7b4731c2453556a737554f8ee67b284a8a5e086cc4bced98f",+ "src/web/app-store-capture/postcss.config.mjs": "d8c6ca24e85236776ac135ad5ee2f92f5accb400c48ec4ad6146a1fe52546d26",+ "src/web/app-store-capture/tsconfig.json": "4ca3402309398dbb7db42b0ca67e4380b680d9a01d362449dff6eb856d32796e",+ "src/web/public/alook.svg": "93752523cd171706887d8c70b6511f99727478386d3842fd1efab764c119988e",+ "src/web/public/landing/people/alex.webp": "758f2f0cc12c446b974f74499ed123355679947171b4e7da9c198aa50d105c78",+ "src/web/public/landing/people/lin.webp": "4ece7b3297ef9484b7abfc6bb025c2ec2b8e79f6e5a0b67fa4f1cd75ad0c99ef",+ "src/web/public/landing/people/nina.webp": "a46cdfff5c81e14b9bbe8dde8fa6ddb0b8351639315b8317a20312b66397c708",+ "src/web/public/landing/people/priya.webp": "66785a80d418fcae8873f718407480ec2cacae7d39614414162575b01932d92c",+ "src/web/public/landing/people/sam.webp": "4532092fb06f8b46f8db89a91a7ef11f72abd049a41ac27798033c0e333ac750",+ "src/web/src/app/favicon.ico": "baf23e7451dca00a358f04a49a674a5776fabe56d417ae1b60131e5ef262ab87",+ "src/web/src/app/fonts.ts": "0ed0de9e0bdc5ff3e76a8aca45ae3c6d2e5879a4b4f49ff72ae84ade3d1ee092",+ "src/web/src/app/fonts/caveat-latin.woff2": "891951df5e8b5b0f0bc760d31375405e795c666b5add70437de12d4a6482b33f",+ "src/web/src/app/fonts/dm-mono-latin-400.woff2": "e1896b13b2b1bb112fac2f9571bd6c40e118746e77a4511edbf43fbb41bf3e1e",+ "src/web/src/app/fonts/dm-sans-latin.woff2": "9fea608a947e67020c33cad9a6fe3d60c54119dfb8cff87768a8117a15ed7543",+ "src/web/src/app/fonts/instrument-serif-latin-400-italic.woff2": "5a51946dfffa82972bc98745359c46761515641fda557c25116459a9f83da4a7",+ "src/web/src/app/fonts/instrument-serif-latin-400.woff2": "5eb09b5ac0e28b67c2f041c8ba6d244604ca0c0980d65912ab2d47fed84ddc31",+ "src/web/src/app/fonts/literata-latin.woff2": "9adbeac5b167fe5ad6c49d9e29aa0c76e2f1bb3b46bf4ebf12a9eca7d3525384",+ "src/web/src/app/fonts/vt323-latin-400.woff2": "8ddbebcc1048154132e1d78eb9b1f7850bca1b7d857035ccf1cb4318ebc615b6",+ "src/web/src/app/globals.css": "98c7bce2964a19dd5df1dee12cfad1c7b6b638c384e942aab31ace654ebaf834",+ "src/web/src/components/home/landing-demo-copy.ts": "4cca071697a56d0a6f452e782d192c215dd7d9a7514a67b1855aef85068ac9ea",+ "src/web/src/components/home/landing-human-avatars.ts": "ff8ecf3907d8b03dae2296ab2749df9ae7c4b74a17fe339d64fdd20d860ddb3f",+ "src/web/src/components/home/landing-interactive-shell-data.ts": "94348c7f5beebc49a3da5d87cbeea1e40b635d038bc8451c96449f55c2babce7",+ "src/web/src/components/home/landing-interactive-shell.module.css": "fc20425992b69444cbab96cc2fe3275dbad820b0b8e55bd52f88b569a407466f",+ "src/web/src/components/home/landing-interactive-shell.tsx": "a6a5c30c749f667f492437cf6636c521713a95f7b9df4eccddf68ff432718fb6",+ "src/web/src/components/home/landing-profile-content.tsx": "b39df0bda2cd07876772428c4f7ab3c0c67bfeea3f1d22bd6c06b6d4f69e8812",+ "src/web/src/components/home/landing-shell-motion-timeline.ts": "3d97b9cd687226a6a39df4e5fc5b0f370914e0970d87f8d5e11b26d6f655cd14",+ "src/web/src/components/home/landing-shell-motion.module.css": "76d407f5ac035e9cc70cdcaef59a29325fba2b738537e0e59d2e75ef490c5113",+ "src/web/src/components/home/landing-shell-motion.tsx": "d515bfa5ed01383fb0d338862da3373d21a0efba75c32dc67619295154cfec2d"+ },+ "outputs": [+ {+ "path": "phone-1206x2622/01-share-agents.jpg",+ "width": 1206,+ "height": 2622,+ "sha256": "c288263e05f53b2ba44f014cf9b870b383411eb284bfc46609652a0409f1060f",+ "surfaces": [+ {+ "scene": "workspace",+ "width": 402,+ "height": 874,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ },+ {+ "scene": "reply",+ "width": 500,+ "height": 130,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "phone-1206x2622/02-teamwork.jpg",+ "width": 1206,+ "height": 2622,+ "sha256": "34cf1e59f682cde447700a4a28006b45b129fc44a1dea83d620bceda5662a8c7",+ "surfaces": [+ {+ "scene": "workspace",+ "width": 1280,+ "height": 800,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ },+ {+ "scene": "reply",+ "width": 450,+ "height": 150,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "phone-1206x2622/03-companion.jpg",+ "width": 1206,+ "height": 2622,+ "sha256": "b7296b797e2c3ab4cf84583f8046ad41a8e4bdd9b85aab2c442fe4f2a18e5a89",+ "surfaces": [+ {+ "scene": "identity",+ "width": 1120,+ "height": 660,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ },+ {+ "scene": "profile",+ "width": 300,+ "height": 308,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "phone-1206x2622/04-context.jpg",+ "width": 1206,+ "height": 2622,+ "sha256": "cc57121ba1d021cd324d11a73d0a764f9777fb804e4dc431ed32f84e1a68fe9a",+ "surfaces": [+ {+ "scene": "continuity",+ "width": 1120,+ "height": 660,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ },+ {+ "scene": "continuity-ask",+ "width": 500,+ "height": 130,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ },+ {+ "scene": "continuity-answer",+ "width": 500,+ "height": 110,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "phone-1206x2622/05-phone.jpg",+ "width": 1206,+ "height": 2622,+ "sha256": "9bb4dcb6859e22ff71e6f18dfbecf5edc119c3e8eb8f71d6672fe6f2d3a6bed0",+ "surfaces": [+ {+ "scene": "workspace",+ "width": 402,+ "height": 874,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ },+ {+ "scene": "composer",+ "width": 402,+ "height": 64,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "phone-1206x2622/06-existing-setup.jpg",+ "width": 1206,+ "height": 2622,+ "sha256": "04a166c157245c45198ea739270e429ec5e55910a8037a7df70d0bc09de9962c",+ "surfaces": [+ {+ "scene": "workspace",+ "width": 1280,+ "height": 800,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ },+ {+ "scene": "workspace",+ "width": 402,+ "height": 874,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "phone-1320x2868/01-share-agents.jpg",+ "width": 1320,+ "height": 2868,+ "sha256": "d37c16eb5d0d97d253ce163e0e14ce3abcd475724ad260b1f0eea236a0dfa46f",+ "surfaces": [+ {+ "scene": "workspace",+ "width": 402,+ "height": 874,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ },+ {+ "scene": "reply",+ "width": 500,+ "height": 130,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "phone-1320x2868/02-teamwork.jpg",+ "width": 1320,+ "height": 2868,+ "sha256": "e8428d8e97b8311bf2e3e3d358c12bdff11c03384d4df1c6efbefe71c16c99e5",+ "surfaces": [+ {+ "scene": "workspace",+ "width": 1280,+ "height": 800,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ },+ {+ "scene": "reply",+ "width": 450,+ "height": 150,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "phone-1320x2868/03-companion.jpg",+ "width": 1320,+ "height": 2868,+ "sha256": "58c43d8d6ad737dcfa0aee874800273a0278b24c37755fa56071bd7dad9d3a2f",+ "surfaces": [+ {+ "scene": "identity",+ "width": 1120,+ "height": 660,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ },+ {+ "scene": "profile",+ "width": 300,+ "height": 308,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "phone-1320x2868/04-context.jpg",+ "width": 1320,+ "height": 2868,+ "sha256": "d6f337a5222a2e7b20e800df7f5d4c8a9f8b8f0ce44d68b4c5acf472472a017c",+ "surfaces": [+ {+ "scene": "continuity",+ "width": 1120,+ "height": 660,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ },+ {+ "scene": "continuity-ask",+ "width": 500,+ "height": 130,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ },+ {+ "scene": "continuity-answer",+ "width": 500,+ "height": 110,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "phone-1320x2868/05-phone.jpg",+ "width": 1320,+ "height": 2868,+ "sha256": "9466ba7dee6a453c135c862e6ebc22fbeb04db46cff16ef95a64e9fdc8049fc3",+ "surfaces": [+ {+ "scene": "workspace",+ "width": 402,+ "height": 874,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ },+ {+ "scene": "composer",+ "width": 402,+ "height": 64,+ "rootFontSize": "16px",+ "sharedShell": false,+ "messageRows": 0,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "phone-1320x2868/06-existing-setup.jpg",+ "width": 1320,+ "height": 2868,+ "sha256": "6f084b5eacf1d904bdc1de90bc43249607f04d90dca73a145ad7f9e8db72af08",+ "surfaces": [+ {+ "scene": "workspace",+ "width": 1280,+ "height": 800,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ },+ {+ "scene": "workspace",+ "width": 402,+ "height": 874,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "tablet-2064x2752/01-share-agents.jpg",+ "width": 2064,+ "height": 2752,+ "sha256": "2edf07846c4eee4ec778466148080c2ecf0194f26f841c955abb664f19b21235",+ "surfaces": [+ {+ "scene": "workspace",+ "width": 1280,+ "height": 800,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ }+ ]+ },+ {+ "path": "duo-2007x2853/06-existing-setup.jpg",+ "width": 2007,+ "height": 2853,+ "sha256": "8ad80e749c6c4c6c96bbf12c650b3d20775c442281ba3102e6c9e2f62621ad6c",+ "surfaces": [+ {+ "scene": "workspace",+ "width": 951,+ "height": 669,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ },+ {+ "scene": "workspace",+ "width": 466,+ "height": 678,+ "rootFontSize": "16px",+ "sharedShell": true,+ "messageRows": 12,+ "positioningSkeletons": 0+ }+ ]+ }+ ]+}diff --git a/assets/app-store/phone-1206x2622/01-share-agents.jpg b/assets/app-store/phone-1206x2622/01-share-agents.jpgnew file mode 100644index 000000000..0c99c1b4fBinary files /dev/null and b/assets/app-store/phone-1206x2622/01-share-agents.jpg differdiff --git a/assets/app-store/phone-1206x2622/02-teamwork.jpg b/assets/app-store/phone-1206x2622/02-teamwork.jpgnew file mode 100644index 000000000..6ceea778fBinary files /dev/null and b/assets/app-store/phone-1206x2622/02-teamwork.jpg differdiff --git a/assets/app-store/phone-1206x2622/03-companion.jpg b/assets/app-store/phone-1206x2622/03-companion.jpgnew file mode 100644index 000000000..532420e99Binary files /dev/null and b/assets/app-store/phone-1206x2622/03-companion.jpg differdiff --git a/assets/app-store/phone-1206x2622/04-context.jpg b/assets/app-store/phone-1206x2622/04-context.jpgnew file mode 100644index 000000000..b0fe689d4Binary files /dev/null and b/assets/app-store/phone-1206x2622/04-context.jpg differdiff --git a/assets/app-store/phone-1206x2622/05-phone.jpg b/assets/app-store/phone-1206x2622/05-phone.jpgnew file mode 100644index 000000000..35a4481d9Binary files /dev/null and b/assets/app-store/phone-1206x2622/05-phone.jpg differdiff --git a/assets/app-store/phone-1206x2622/06-existing-setup.jpg b/assets/app-store/phone-1206x2622/06-existing-setup.jpgnew file mode 100644index 000000000..a56f87d69Binary files /dev/null and b/assets/app-store/phone-1206x2622/06-existing-setup.jpg differdiff --git a/assets/app-store/phone-1320x2868/01-share-agents.jpg b/assets/app-store/phone-1320x2868/01-share-agents.jpgnew file mode 100644index 000000000..ed00cf918Binary files /dev/null and b/assets/app-store/phone-1320x2868/01-share-agents.jpg differdiff --git a/assets/app-store/phone-1320x2868/02-teamwork.jpg b/assets/app-store/phone-1320x2868/02-teamwork.jpgnew file mode 100644index 000000000..b69d3e1a6Binary files /dev/null and b/assets/app-store/phone-1320x2868/02-teamwork.jpg differdiff --git a/assets/app-store/phone-1320x2868/03-companion.jpg b/assets/app-store/phone-1320x2868/03-companion.jpgnew file mode 100644index 000000000..22effd425Binary files /dev/null and b/assets/app-store/phone-1320x2868/03-companion.jpg differdiff --git a/assets/app-store/phone-1320x2868/04-context.jpg b/assets/app-store/phone-1320x2868/04-context.jpgnew file mode 100644index 000000000..0d2c006b8Binary files /dev/null and b/assets/app-store/phone-1320x2868/04-context.jpg differdiff --git a/assets/app-store/phone-1320x2868/05-phone.jpg b/assets/app-store/phone-1320x2868/05-phone.jpgnew file mode 100644index 000000000..db45533e7Binary files /dev/null and b/assets/app-store/phone-1320x2868/05-phone.jpg differdiff --git a/assets/app-store/phone-1320x2868/06-existing-setup.jpg b/assets/app-store/phone-1320x2868/06-existing-setup.jpgnew file mode 100644index 000000000..dd8e089eeBinary files /dev/null and b/assets/app-store/phone-1320x2868/06-existing-setup.jpg differdiff --git a/assets/app-store/tablet-2064x2752/01-share-agents.jpg b/assets/app-store/tablet-2064x2752/01-share-agents.jpgnew file mode 100644index 000000000..5506f9c76Binary files /dev/null and b/assets/app-store/tablet-2064x2752/01-share-agents.jpg differdiff --git a/package.json b/package.jsonindex 06f5c822f..d75319a16 100644--- a/package.json+++ b/package.json@@ -43,6 +43,7 @@"readme:badges": "node scripts/generate-readme-badges.mjs","readme:badges:test": "node --test scripts/generate-readme-badges.test.mjs","readme:capture": "node src/web/readme-capture/capture.mjs",+ "app-store:capture": "node src/web/app-store-capture/capture.mjs","prepare": "simple-git-hooks"},"simple-git-hooks": {diff --git a/scripts/ci/app-store-capture.test.ts b/scripts/ci/app-store-capture.test.tsnew file mode 100644index 000000000..e330af60f--- /dev/null+++ b/scripts/ci/app-store-capture.test.ts@@ -0,0 +1,118 @@+import { spawn } from "node:child_process"+import { createHash } from "node:crypto"+import { once } from "node:events"+import { existsSync } from "node:fs"+import { readFile } from "node:fs/promises"+import { createServer } from "node:http"+import { createRequire } from "node:module"+import { resolve } from "node:path"+import sharp from "sharp"+import { describe, expect, it, vi } from "vitest"+import { captures, captureArtwork, captureInputHashes, main, stopCaptureProcess } from "../../src/web/app-store-capture/capture.mjs"++const root = resolve(import.meta.dirname, "../..")+const captureRoot = resolve(root, "src/web/app-store-capture")+const { chromium } = createRequire(resolve(root, "src/web/package.json"))("@playwright/test")++describe("component-rendered App Store artwork", () => {+ it("maps fourteen RGB artwork canvases outside the production router", async () => {+ expect(captures).toHaveLength(14)+ expect(new Set(captures.map(capture => capture.filename)).size).toBe(14)+ expect(captures.filter(capture => capture.width === 1206 && capture.height === 2622)).toHaveLength(6)+ expect(captures.filter(capture => capture.width === 1320 && capture.height === 2868)).toHaveLength(6)+ expect(captures[12]).toMatchObject({ width: 2064, height: 2752, url: "/?kind=tablet" })+ expect(captures[13]).toMatchObject({ width: 2007, height: 2853, url: "/?kind=duo" })+ expect(existsSync(resolve(captureRoot, "app/page.tsx"))).toBe(true)+ expect(existsSync(resolve(root, "src/web/src/app/app-store-capture/page.tsx"))).toBe(false)+ const readme = await readFile(resolve(captureRoot, "README.md"), "utf8")+ for (const capture of captures) expect(readme).toContain(capture.filename)+ const packageJson = JSON.parse(await readFile(resolve(root, "package.json"), "utf8"))+ expect(packageJson.scripts["app-store:capture"]).toBe("node src/web/app-store-capture/capture.mjs")+ })++ it("renders shared Web components with the same homepage fixtures and normal root type", async () => {+ const surface = await readFile(resolve(captureRoot, "captures/surface.tsx"), "utf8")+ for (const component of ["LandingInteractiveShell", "LandingShellMotion", "LandingProfileContent", "Message", "Composer"]) expect(surface).toContain(`<${component}`)+ expect(surface).toContain('from "@/components/home/landing-interactive-shell-data"')+ expect(surface).toContain("DEMO_MESSAGES[\"demo-general\"]")+ expect(surface).toContain("CONTINUITY_WORK_MESSAGES[")+ expect(surface).not.toContain("previewRoot")+ const styles = await readFile(resolve(captureRoot, "app/globals.css"), "utf8")+ expect(styles).toContain('@import "../../src/app/globals.css"')+ expect(styles).toContain("font-size: 16px")+ const poster = await readFile(resolve(captureRoot, "captures/poster.tsx"), "utf8")+ expect(poster).toContain("<iframe")+ expect(poster).not.toContain("dangerouslySetInnerHTML")+ for (const oldInput of ["demo-phone.png", "demo-desktop.png", "duo-open-demo.jpg", "duo-closed-demo.jpg", "identity.webp", "profile.webp", "continuity.webp"]) expect(poster).not.toContain(oldInput)+ const lintProject = JSON.parse(await readFile(resolve(root, "src/web/tsconfig.eslint.json"), "utf8"))+ expect(lintProject.include).toContain("app-store-capture/**/*")+ })++ it("ships actual component viewports and JPEGs bound to the current direct source inputs", async () => {+ const manifest = JSON.parse(await readFile(resolve(root, "assets/app-store/manifest.json"), "utf8"))+ expect(manifest).toMatchObject({ clock: "2026-10-25T00:00:00Z", locale: "en-US", timezone: "UTC" })+ expect(manifest.outputs.filter(output => output.path !== "overview.jpg").map(output => output.path)).toEqual(captures.map(capture => capture.filename))+ for (const capture of captures) {+ const bytes = await readFile(resolve(root, "assets/app-store", capture.filename))+ const metadata = await sharp(bytes).metadata()+ expect(metadata).toMatchObject({ format: "jpeg", width: capture.width, height: capture.height, channels: 3, hasAlpha: false, space: "srgb" })+ const output = manifest.outputs.find(output => output.path === capture.filename)+ expect(output.sha256).toBe(createHash("sha256").update(bytes).digest("hex"))+ expect(output.surfaces.length).toBeGreaterThan(0)+ for (const surface of output.surfaces) {+ expect(surface.rootFontSize).toBe("16px")+ if (surface.scene === "workspace") {+ expect(surface.sharedShell).toBe(true)+ expect(surface.messageRows).toBeGreaterThan(0)+ expect(surface.positioningSkeletons).toBe(0)+ }+ }+ }+ const duo = manifest.outputs.find(output => output.path.startsWith("duo-"))+ expect(duo.surfaces.map(surface => [surface.width, surface.height])).toEqual([[951, 669], [466, 678]])+ expect(manifest.inputs).toEqual(await captureInputHashes())+ })++ it("keeps the original source-package manifests as history rather than live screenshot inputs", async () => {+ const approved = JSON.parse(await readFile(resolve(captureRoot, "approved-manifest.json"), "utf8"))+ const duo = JSON.parse(await readFile(resolve(captureRoot, "duo-manifest.json"), "utf8"))+ expect(approved.input_files).toHaveLength(15)+ expect(approved.approved_outputs).toHaveLength(13)+ expect(duo.inputs).toHaveLength(11)+ expect(duo.output.pixels).toEqual([2007, 2853])+ const inputs = Object.keys(await captureInputHashes())+ expect(inputs).toContain("src/web/src/components/home/landing-interactive-shell-data.ts")+ expect(inputs.some(input => /demo-(phone|desktop)\.png|duo-(open|closed)-demo\.jpg|\.html$/.test(input))).toBe(false)+ })++ it("stops its owned process group and leaves an unrelated listener alive", async () => {+ const unrelated = createServer((_request, response) => response.end("unrelated"))+ unrelated.listen(0, "127.0.0.1")+ await once(unrelated, "listening")+ const address = unrelated.address()+ if (!address || typeof address === "string") throw new Error("Missing fixture address")+ const owned = spawn(process.execPath, ["-e", "const s=require('node:http').createServer((q,r)=>r.end('owned'));s.listen(0,'127.0.0.1',()=>console.log(s.address().port))"], { detached: process.platform !== "win32", stdio: ["ignore", "pipe", "pipe"] })+ try {+ const [line] = await once(owned.stdout, "data")+ const port = Number(line.toString().trim())+ expect(await (await fetch(`http://127.0.0.1:${port}`)).text()).toBe("owned")+ await stopCaptureProcess(owned)+ await expect(fetch(`http://127.0.0.1:${port}`)).rejects.toThrow()+ expect(await (await fetch(`http://127.0.0.1:${address.port}`)).text()).toBe("unrelated")+ } finally {+ await stopCaptureProcess(owned)+ unrelated.closeAllConnections()+ await new Promise<void>((resolve, reject) => unrelated.close(error => error ? reject(error) : resolve()))+ }+ })++ it("rejects invalid CLI arguments and cancellation before launching resources", async () => {+ await expect(main(["--unknown"])).rejects.toThrow("Usage:")+ await expect(main(["--output"])).rejects.toThrow("Usage:")+ const launch = vi.spyOn(chromium, "launch")+ try {+ await expect(captureArtwork({ signal: AbortSignal.abort(new Error("cancelled")) })).rejects.toThrow("cancelled")+ expect(launch).not.toHaveBeenCalled()+ } finally { vi.restoreAllMocks() }+ })+})diff --git a/src/web/app-store-capture/README.md b/src/web/app-store-capture/README.mdnew file mode 100644index 000000000..978b211c2--- /dev/null+++ b/src/web/app-store-capture/README.md@@ -0,0 +1,46 @@+# App Store artwork capture++Generate the warm-orange marketing compositions from the repository root:++```bash+pnpm install --frozen-lockfile+pnpm app-store:capture+```++This standalone Next app follows `readme-capture` and lives outside the production router. `captures/poster.tsx` draws the marketing layout. Each device contains a local iframe with its own logical viewport, importing real Web components and the homepage's existing demo data through `captures/surface.tsx`. No screenshot bitmap or hand-written App markup supplies the screen UI.++Workspace scenes use `LandingInteractiveShell`, including the shared rail, sidebar, header, message list, composer and user bar. Identity, continuity and profile scenes reuse `LandingShellMotion`, `LandingProfileContent` and their existing fixtures. Enlarged messages use the real `Message` component with the original fixture objects. Only the marketing headline, device illustrations and surrounding artwork are capture-specific.++The normal App root size is 16px; the public demo's 14px preview modifier is not applied. Desktop workspaces use 1280×800 logical pixels; phone scenes use 402×874. Duo uses 951×669 and 466×678 screen-reference rectangles. These are browser layout inputs, not measurements of a native WebView's usable safe area. See [SOURCES.md](SOURCES.md) for the geometry and evidence boundaries.++The generator starts its own Next process group on an unused loopback port and launches installed Chrome with `channel: "chrome"`, without an existing profile. It opens the mobile general channel using its actual control, waits for frame readiness, fonts and images, rejects external requests/resource errors, captures the poster and validates RGB JPEG dimensions. Success, errors and signals close its owned browser and Next group; unrelated services are not stopped. Fixtures use local providers without account credentials or backend writes.++## Outputs++Paths are relative to `assets/app-store/`:++| Story | 1206×2622 phone | 1320×2868 phone |+| --- | --- | --- |+| Share your agents | `phone-1206x2622/01-share-agents.jpg` | `phone-1320x2868/01-share-agents.jpg` |+| Let teammates talk to your agent | `phone-1206x2622/02-teamwork.jpg` | `phone-1320x2868/02-teamwork.jpg` |+| A companion of your own | `phone-1206x2622/03-companion.jpg` | `phone-1320x2868/03-companion.jpg` |+| Pick up where you left off | `phone-1206x2622/04-context.jpg` | `phone-1320x2868/04-context.jpg` |+| Check in from your phone | `phone-1206x2622/05-phone.jpg` | `phone-1320x2868/05-phone.jpg` |+| Keep your existing setup | `phone-1206x2622/06-existing-setup.jpg` | `phone-1320x2868/06-existing-setup.jpg` |++The tablet is `tablet-2064x2752/01-share-agents.jpg` (2064×2752), retaining the complete desktop navigation and user bar. The Duo is `duo-2007x2853/06-existing-setup.jpg` (2007×2853).++All 14 are three-channel sRGB JPEGs without alpha. `manifest.json` records actual Chrome version, direct input hashes, reference clock, locale/timezone, component viewports and output hashes. Browser time is fixed to 2026-10-25 UTC for stable fixture date labels; fixture timestamps are unchanged. The repository HEAD identifies the baseline; an uncommitted candidate also needs its review tree/file binding. Direct hashes are not a complete transitive dependency graph. Browser/font rasterization can change JPEG bytes between runs, so hashes do not prove visual equivalence.++```bash+pnpm app-store:capture --output /tmp/alook-store-artwork+pnpm app-store:capture --overview --output /tmp/alook-store-review+```++`--overview` composites a 1206×1679 review sheet from the six generated small-phone images and adds it to that run's manifest. It does not recapture a second set of live UI frames. The command overwrites only its declared images and manifest, without clearing unrelated destination files. A failure can leave partial images or a previous manifest; use outputs only after the command succeeds.++## Source and updates++See [SOURCES.md](SOURCES.md). Normal generation is local and needs no online page, private account, database or credentials. Public asset links are relative to repository logo, fonts and homepage avatars. The five face SVGs retain the official logo paths and approved crops.++Edit capture composition or shared fixture consumers, regenerate all 14, review all stories/crops and update contracts and provenance for intentional changes. Keep production rendering free of capture flags. The old static package manifests are historical; their former byte freeze does not constrain this component implementation. These marketing outputs do not prove native layout parity, store acceptance or a particular installed build.diff --git a/src/web/app-store-capture/SOURCES.md b/src/web/app-store-capture/SOURCES.mdnew file mode 100644index 000000000..a0709dc48--- /dev/null+++ b/src/web/app-store-capture/SOURCES.md@@ -0,0 +1,38 @@+# Artwork sources++## Current component rendering++`app/` is a local Next application outside the production router. `captures/poster.tsx` and `poster.css` retain the selected warm-orange composition, copy and illustrated hardware. Screen content comes from imported Web components, with the same data objects used by the public [Alook homepage](https://alook.ai/):++| Scene | Component and data source |+| --- | --- |+| Workspace / phone / tablet / Duo | `LandingInteractiveShell`; `landing-interactive-shell-data.ts` DEMO servers, channels, profiles and messages |+| Identity / continuity | `LandingShellMotion`; existing timeline and scene fixtures |+| Maya profile | `LandingProfileContent`; existing profile content and avatar |+| Enlarged general reply | `Message`; original Alli object in `DEMO_MESSAGES["demo-general"]` |+| Enlarged continuity replies | `Message`; original first two `CONTINUITY_WORK_MESSAGES` objects |+| Input detail | Shared `Composer`, with sending disabled in local fixture IO |++All component paths are under `src/web/src/components/`. Shared providers retain fixture profile ownership; the capture does not fetch production conversations. Current continuity is the homepage's work scene (Alli/Shelly), rather than the old frozen Home screenshot. Message authors, bodies and timestamps come directly from those objects, without a second fixture copy. Display time uses a fixed reference clock and UTC; the original timestamp strings are unchanged.++The capture imports production global CSS and local fonts, keeping normal 16px root type instead of the public demo's 14px preview wrapper. Each iframe sets an explicit logical viewport, independent of the poster's pixel dimensions. Public symlinks reuse `src/web/public/alook.svg`, homepage people avatars, and `src/web/src/app/fonts/`. Five `assets/face-*.svg` files are the original face groups extracted from the official logo, preserving paths, colours, expressions and approved crops. No generated character or screenshot bitmap supplies App UI.++`assets/app-store/manifest.json` records direct source/asset hashes, actual renderer, fixture clock, logical viewports and generated JPEG hashes. Transitive shared code is identified by the complete review tree or committed source, not only the direct input list. Encoding and subpixel rasterization can differ across Chrome versions or repeated captures; a byte hash is not a visual comparison.++## Duo geometry++Both illustrated CSS bodies use 10px/mm before perspective: unfolded 1646×1178 and folded 841×1178. The dimensions follow [Apple technical specifications](https://www.apple.com/iphone-duo/specs/): 164.6×117.8mm and 84.1×117.8mm. Screen apertures retain hardware ratios 2670:1878 and 1398:2034, with component frames fitted without stretching. Bezel widths, corners, crease, hinge, buttons and perspective remain illustration approximations.++The 2007×2853 poster is a store canvas listed in [Apple screenshot specifications](https://developer.apple.com/help/app-store-connect/reference/app-information/screenshot-specifications/), distinct from the inner hardware panel's 1878×2670 pixels. Neither defines a CSS viewport. Duo's browser frames are 951×669 and 466×678 logical pixels, derived from simulator screen descriptors at UI scale 3 as reference rectangles. They do not establish the current native WebView's usable area, which can exclude safe insets. [Apple development guidance](https://developer.apple.com/iphone-duo/prepare/) requires layouts to follow the current window/view.++These are browser marketing compositions, not screenshots from a native build. Reusing Web components does not prove native status-bar/safe-area parity or a successful store submission. No private simulator screenshot is a pipeline input.++## Historical static packages++The previous implementation and its rendered files remain in Git history. The current generator does not read their HTML or screenshot inputs, and the former 13-image byte freeze no longer applies.++- `alook-store-v6-actual-source-and-approved-output.zip`, SHA256 `1e883c1d1933d4996fc1748519315cf663eb513476517d53e7e86adea5455246`: original warm-orange six-phone-story/tablet prototype. `approved-manifest.json` retains its 15 input and 13 output records.+- `alook-store-duo-v1-actual-source-and-output.zip`, SHA256 `b7bc3a4beee1951f308771e9d94700895e6c8011c598a5926f5e831a09436e6f`: original Duo template and frozen dark public-demo images. `duo-manifest.json` retains its 11 input and one output records.+- `duo-refinement.json` is the historical physical-scale-v2 HTML binding at commit `30cc2f9be9aff68c76e68c4584d4b0fbb0f74012`. It is not a live template manifest for the component generator.++Those packages used public homepage/demo scenes, not private conversations or native runtime evidence. The historical static HTML and bitmap inputs have been retired from this directory. Original manifests are preserved for attribution, while current source/output metadata is recorded separately.diff --git a/src/web/app-store-capture/app/globals.css b/src/web/app-store-capture/app/globals.cssnew file mode 100644index 000000000..f481d2103--- /dev/null+++ b/src/web/app-store-capture/app/globals.css@@ -0,0 +1,8 @@+@import "../../src/app/globals.css";+@source "../../src/**/*.{ts,tsx}";+@source "../**/*.{ts,tsx}";++html, body { margin: 0; scrollbar-width: none; }+html { font-size: 16px; }+body { min-height: 100vh; }+nextjs-portal { display: none !important; }diff --git a/src/web/app-store-capture/app/layout.tsx b/src/web/app-store-capture/app/layout.tsxnew file mode 100644index 000000000..3e848c58c--- /dev/null+++ b/src/web/app-store-capture/app/layout.tsx@@ -0,0 +1,7 @@+import type { ReactNode } from "react"+import { caveat, dmMono, dmSans, instrumentSerif, literata, vt323 } from "@/app/fonts"+import "./globals.css"++export default function CaptureLayout({ children }: { children: ReactNode }) {+ return <html lang="en" className={`${dmSans.variable} ${dmMono.variable} ${instrumentSerif.variable} ${caveat.variable} ${vt323.variable} ${literata.variable} antialiased`}><body>{children}</body></html>+}diff --git a/src/web/app-store-capture/app/page.tsx b/src/web/app-store-capture/app/page.tsxnew file mode 100644index 000000000..f7ed586de--- /dev/null+++ b/src/web/app-store-capture/app/page.tsx@@ -0,0 +1,7 @@+import { Artwork } from "../captures/poster"++export default async function CapturePage({ searchParams }: { searchParams: Promise<Record<string, string | string[] | undefined>> }) {+ const query = await searchParams+ const story = Number(query.story ?? 1)+ return <Artwork kind={typeof query.kind === "string" ? query.kind : "phone"} story={story >= 1 && story <= 6 ? story : 1} large={query.large === "1"} />+}diff --git a/src/web/app-store-capture/app/surface/page.tsx b/src/web/app-store-capture/app/surface/page.tsxnew file mode 100644index 000000000..dcf42cc18--- /dev/null+++ b/src/web/app-store-capture/app/surface/page.tsx@@ -0,0 +1,6 @@+import { CaptureSurface } from "../../captures/surface"++export default async function SurfacePage({ searchParams }: { searchParams: Promise<Record<string, string | string[] | undefined>> }) {+ const query = await searchParams+ return <CaptureSurface scene={typeof query.scene === "string" ? query.scene : "workspace"} beat={Number(query.beat ?? 9)} />+}diff --git a/src/web/app-store-capture/approved-manifest.json b/src/web/app-store-capture/approved-manifest.jsonnew file mode 100644index 000000000..d1ee2b668--- /dev/null+++ b/src/web/app-store-capture/approved-manifest.json@@ -0,0 +1,151 @@+{+ "version": "v6-warm-orange-approved",+ "input_files": [+ {+ "file": "prototype/index.html",+ "bytes": 16581,+ "sha256": "04f02bec3b1b2bbf53068fe2f25d9d97a0d1b9abd20bf2b9e1681d66f17285c6"+ },+ {+ "file": "prototype/tablet.html",+ "bytes": 3053,+ "sha256": "730d5b8b0ec64b0f2d3f95940cbd8cd6a433f25bd9623487df72600e3204a1e9"+ },+ {+ "file": "prototype/alook.svg",+ "bytes": 7571,+ "sha256": "93752523cd171706887d8c70b6511f99727478386d3842fd1efab764c119988e"+ },+ {+ "file": "prototype/caveat.woff2",+ "bytes": 74932,+ "sha256": "891951df5e8b5b0f0bc760d31375405e795c666b5add70437de12d4a6482b33f"+ },+ {+ "file": "prototype/dm-sans.woff2",+ "bytes": 36932,+ "sha256": "9fea608a947e67020c33cad9a6fe3d60c54119dfb8cff87768a8117a15ed7543"+ },+ {+ "file": "prototype/demo-desktop.png",+ "bytes": 534689,+ "sha256": "fc39ef3ab09fd6bb18726ac9ceb068b0ab5c00d1d83c6b6d4189d3b72a0a75ed"+ },+ {+ "file": "prototype/demo-phone.png",+ "bytes": 529870,+ "sha256": "402a9183e37fea06cdd4a8a6183198bd7268e2a66dec092fc1a21f1be85350df"+ },+ {+ "file": "prototype/identity.webp",+ "bytes": 15724,+ "sha256": "d96c37b4a7080ee8206d29529529ad9155968b75d8d5109df64bd7249779ed82"+ },+ {+ "file": "prototype/profile.webp",+ "bytes": 21114,+ "sha256": "90755d8b6f2b2eb03cdf7d8032585a61d4818893ad5f52d531409f8516ef3566"+ },+ {+ "file": "prototype/continuity.webp",+ "bytes": 20024,+ "sha256": "15b5a2e10fb1a57b5a8d252bd59cee9d45fe41426165cb3bdaade61a896e3f37"+ },+ {+ "file": "prototype/face-red.svg",+ "bytes": 1433,+ "sha256": "d762e20ec379a14a492ca1cd438fb608267ed1870e20d0ed17d6acf16dd8924a"+ },+ {+ "file": "prototype/face-purple.svg",+ "bytes": 1399,+ "sha256": "2ec902464f75486fe3433b80ad65c30de4a4fcf947403bba8a38c4c54e0e162b"+ },+ {+ "file": "prototype/face-teal.svg",+ "bytes": 1860,+ "sha256": "6b53ffd30e7ae6935eaea4dffb31e7bb096d03163c99c2855c5846aec8b375e0"+ },+ {+ "file": "prototype/face-blue.svg",+ "bytes": 1338,+ "sha256": "6ba47540a0c02a03d3955dc26219c2b248537890f55cb7ceafd09b080e454598"+ },+ {+ "file": "prototype/face-orange.svg",+ "bytes": 1777,+ "sha256": "b26fccaf217060bd67c3874776f11d329401dc79b33a49a5168a33d3458d240e"+ }+ ],+ "approved_outputs": [+ {+ "file": "approved-output/alook-store-v6-phone-01-1206x2622.jpg",+ "bytes": 229516,+ "sha256": "f92c0cb786b07fefc4a74ca66e9a9ffc79108e9909b85796f3bafe70a90c3811"+ },+ {+ "file": "approved-output/alook-store-v6-phone-02-1206x2622.jpg",+ "bytes": 208853,+ "sha256": "4ddaba485e6f4cea3b99dd9308fa65f790f444b71799af9f3cd9eba9929597f3"+ },+ {+ "file": "approved-output/alook-store-v6-phone-03-1206x2622.jpg",+ "bytes": 175992,+ "sha256": "4a7c7946e17776433c98e29213373fcc277a5e06b4b83a50e928ec63c9efc6a3"+ },+ {+ "file": "approved-output/alook-store-v6-phone-04-1206x2622.jpg",+ "bytes": 157562,+ "sha256": "95e0c8471c5c2ca5fba7d8d55f4c602e3be3995a7a985fd3a6d1967ff286f049"+ },+ {+ "file": "approved-output/alook-store-v6-phone-05-1206x2622.jpg",+ "bytes": 228149,+ "sha256": "c1ddd8380f89114acf6a75828b301f30cfed1fd1e115de91878f8a104b0bc8b6"+ },+ {+ "file": "approved-output/alook-store-v6-phone-06-1206x2622.jpg",+ "bytes": 232043,+ "sha256": "256e9021c3ff9cc3fe05b2f1ff181bff2cb7a373d4bb734cb9440ca532c5371d"+ },+ {+ "file": "approved-output/alook-store-v6-phone-01-1320x2868.jpg",+ "bytes": 255498,+ "sha256": "35749964b17ad22b03a2a1625f343ed89fe3d4433ce61bf18a753cfbf6b1792b"+ },+ {+ "file": "approved-output/alook-store-v6-phone-02-1320x2868.jpg",+ "bytes": 234652,+ "sha256": "bb60b001cdbf6026e8cc48b4205059a2e88fc89ed8f0af015140a8cd320cce90"+ },+ {+ "file": "approved-output/alook-store-v6-phone-03-1320x2868.jpg",+ "bytes": 196116,+ "sha256": "7f688066e4f2f6ec4059115c1b27b09c7999b2d6cf51d4af1d36b31ddc47919d"+ },+ {+ "file": "approved-output/alook-store-v6-phone-04-1320x2868.jpg",+ "bytes": 175680,+ "sha256": "e7021221d8a60b0f872e34bc8efac39e656f5eeecdbda4ecd6c7854c4e8131ba"+ },+ {+ "file": "approved-output/alook-store-v6-phone-05-1320x2868.jpg",+ "bytes": 254489,+ "sha256": "aca54d194de92275b3c81df6f755591dca45b86fc66356e69bd328f5d52b4ea0"+ },+ {+ "file": "approved-output/alook-store-v6-phone-06-1320x2868.jpg",+ "bytes": 246767,+ "sha256": "4e16b6cc87ed8d20fd6ae637bfc9a8a88381e28df2fbccc67c13696acdeda541"+ },+ {+ "file": "approved-output/alook-store-v6-tablet-01-2064x2752.jpg",+ "bytes": 279345,+ "sha256": "ed1061fedaca98bc4fe60e1795126cd12c4ddc786c136a9d7fcb46b15d2b050c"+ }+ ],+ "board": {+ "file": "alook-six-previews-v6-warm-orange.jpg",+ "sha256": "3d865c5a326db00fb1524f5194f48dfa3dd80a5de44a945da9b82574c09401c8"+ }+}\ No newline at end of filediff --git a/src/web/app-store-capture/assets/face-blue.svg b/src/web/app-store-capture/assets/face-blue.svgnew file mode 100644index 000000000..6dd6dbad2--- /dev/null+++ b/src/web/app-store-capture/assets/face-blue.svg@@ -0,0 +1,9 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="-132.036 591.151 574.507 574.507" fill="none"><g data-face="blue">+ <path d="M-109.988 949.35L-99.7556 851.999C-85.7718 718.952 24.7154 635.419 172.106 637.787C331.026 639.726 436.163 747.563 419.451 906.57L409.219 1003.92C399.839 1093.16 313.597 1133.31 135.12 1114.55C-43.357 1095.79 -119.367 1038.59 -109.988 949.35Z" fill="#6A8CAF" />+ <g data-part="expression" opacity="1">+ <path d="M96.9934 852.993C113.123 854.688 127.573 842.987 129.268 826.857C130.964 810.728 119.262 796.278 103.133 794.582C87.0029 792.887 72.5529 804.588 70.8576 820.718C69.1623 836.848 80.8637 851.298 96.9934 852.993Z" fill="black" />+ <path d="M254.259 830.894C259.753 826.445 267.814 827.292 272.263 832.786C276.711 838.28 275.864 846.339 270.371 850.788C256.884 861.71 242.205 868.002 226.821 866.385C211.437 864.768 198.388 855.562 187.467 842.075C183.018 836.581 183.865 828.521 189.359 824.072C194.853 819.623 202.913 820.471 207.361 825.964C215.8 836.385 223.247 840.269 229.497 840.926C235.747 841.582 243.839 839.332 254.259 830.894Z" fill="black" />+ <path d="M88.7148 884.932C130.907 930.924 177.419 935.813 228.252 899.598C219.15 944.573 193.506 964.844 151.321 960.41C109.135 955.977 88.2666 930.817 88.7148 884.932Z" fill="black" />+ </g>+ </g>+ </svg>\ No newline at end of filediff --git a/src/web/app-store-capture/assets/face-orange.svg b/src/web/app-store-capture/assets/face-orange.svgnew file mode 100644index 000000000..65e58bdb0--- /dev/null+++ b/src/web/app-store-capture/assets/face-orange.svg@@ -0,0 +1,9 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="30.665 24.988 1148.327 1148.327" fill="none"><g data-face="orange" data-motion-layer="foreground">+ <path d="M73.3744 799.986L80.287 602.034C88.6974 361.193 232.448 217.568 434.621 198.202C507.549 190.84 540.698 92.9006 702.358 98.5459C972.892 107.993 1146.28 345.273 1136.03 638.902L1129.12 836.853C1122.78 1018.31 954.364 1111.52 591.453 1098.85C228.541 1086.18 67.0378 981.442 73.3744 799.986Z" fill="#FF9915" />+ <path d="M499.787 535.435C538.186 535.435 569.315 505.031 569.315 467.525C569.315 430.019 538.186 399.614 499.787 399.614C461.388 399.614 430.26 430.019 430.26 467.525C430.26 505.031 461.388 535.435 499.787 535.435Z" fill="white" />+ <path d="M522.424 513.445C540.641 513.445 555.409 498.677 555.409 480.46C555.409 462.243 540.641 447.475 522.424 447.475C504.207 447.475 489.439 462.243 489.439 480.46C489.439 498.677 504.207 513.445 522.424 513.445Z" fill="black" />+ <path d="M758.494 535.435C796.893 535.435 828.021 505.031 828.021 467.525C828.021 430.019 796.893 399.614 758.494 399.614C720.095 399.614 688.966 430.019 688.966 467.525C688.966 505.031 720.095 535.435 758.494 535.435Z" fill="white" />+ <path d="M781.131 513.445C799.348 513.445 814.116 498.677 814.116 480.46C814.116 462.243 799.348 447.475 781.131 447.475C762.914 447.475 748.146 462.243 748.146 480.46C748.146 498.677 762.914 513.445 781.131 513.445Z" fill="black" />+ <path d="M711.48 571.1C722.145 562.995 737.361 565.07 745.466 575.735C753.571 586.399 751.496 601.615 740.832 609.72C680.61 655.489 608.609 669.247 527.369 652.999C514.235 650.372 505.716 637.594 508.343 624.459C510.971 611.325 523.748 602.806 536.883 605.433C606.555 619.368 663.908 607.255 711.48 571.1Z" fill="black" />+ </g>+ </svg>\ No newline at end of filediff --git a/src/web/app-store-capture/assets/face-purple.svg b/src/web/app-store-capture/assets/face-purple.svgnew file mode 100644index 000000000..3cf6af183--- /dev/null+++ b/src/web/app-store-capture/assets/face-purple.svg@@ -0,0 +1,9 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="499.005 -66.690 651.000 651.000" fill="none"><g data-face="purple">+ <path d="M523.747 365.154L550.571 58.5595C556.271 -6.59189 611.194 -38.4735 678.261 -32.6059L1015.52 -3.09997C1082.58 2.76768 1131.14 43.7023 1125.44 108.854L1098.61 415.448C1089.89 515.091 998.635 565.034 797.433 547.431C596.23 529.828 515.03 464.797 523.747 365.154Z" fill="#8A5A9E" />+ <g data-part="expression" opacity="1">+ <path d="M746.769 191.001C764.76 192.575 780.621 179.267 782.195 161.276C783.769 143.285 770.46 127.424 752.469 125.85C734.478 124.276 718.618 137.585 717.044 155.576C715.47 173.567 728.778 189.427 746.769 191.001Z" fill="white" />+ <path d="M900.067 204.413C918.058 205.987 933.918 192.679 935.492 174.688C937.066 156.697 923.758 140.836 905.767 139.262C887.776 137.688 871.915 150.997 870.341 168.988C868.767 186.979 882.076 202.839 900.067 204.413Z" fill="white" />+ <path d="M879.218 239.983C885.568 236.076 893.884 238.055 897.791 244.405C901.699 250.755 899.719 259.07 893.37 262.978C867.707 278.77 841.761 286.237 815.871 283.972C789.981 281.707 765.725 269.847 743.194 249.839C737.62 244.888 737.114 236.355 742.065 230.78C747.016 225.206 755.549 224.7 761.124 229.651C780.399 246.769 799.403 255.428 818.224 257.075C837.045 258.721 857.264 253.493 879.218 239.983Z" fill="white" />+ </g>+ </g>+ </svg>\ No newline at end of filediff --git a/src/web/app-store-capture/assets/face-red.svg b/src/web/app-store-capture/assets/face-red.svgnew file mode 100644index 000000000..58369bfd3--- /dev/null+++ b/src/web/app-store-capture/assets/face-red.svg@@ -0,0 +1,9 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="-69.525 -237.634 744.367 744.367" fill="none"><g data-face="red">+ <path d="M-26.5996 311.221L-39.86 185.057C-55.9935 31.5572 22.3761 -72.3481 148.875 -102.651C194.472 -113.822 206.766 -178.893 309.8 -189.722C482.225 -207.845 613.345 -72.8086 633.015 114.335L646.275 240.499C658.431 356.149 559.924 430.282 328.623 454.592C97.3226 478.903 -14.4443 426.871 -26.5996 311.221Z" fill="#FE4365" />+ <g data-part="expression" opacity="1">+ <path d="M210.59 140.663C225.106 139.137 234.746 117.66 232.122 92.6914C229.498 67.7233 215.603 48.7195 201.086 50.2452C186.57 51.771 176.93 73.2485 179.554 98.2166C182.178 123.185 196.073 142.189 210.59 140.663Z" fill="white" />+ <path d="M378.808 122.982C393.325 121.457 402.965 99.979 400.341 75.0109C397.717 50.0428 383.822 31.039 369.305 32.5647C354.789 34.0904 345.148 55.5679 347.773 80.536C350.397 105.504 364.292 124.508 378.808 122.982Z" fill="white" />+ <path d="M328.063 167.848C333.26 162.502 341.807 162.382 347.153 167.579C352.499 172.777 352.619 181.324 347.421 186.67C334.382 200.08 319.562 208.689 302.962 210.434C286.361 212.178 270.075 206.839 254.533 196.433C248.337 192.284 246.678 183.899 250.826 177.704C254.974 171.509 263.36 169.849 269.555 173.997C281.456 181.966 291.507 184.489 300.139 183.581C308.771 182.674 318.079 178.117 328.063 167.848Z" fill="white" />+ </g>+ </g>+ </svg>\ No newline at end of filediff --git a/src/web/app-store-capture/assets/face-teal.svg b/src/web/app-store-capture/assets/face-teal.svgnew file mode 100644index 000000000..b10c84c14--- /dev/null+++ b/src/web/app-store-capture/assets/face-teal.svg@@ -0,0 +1,8 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="-108.590 182.134 594.844 594.844" fill="none"><g data-face="teal">+ <path d="M-78.815 606.38L-85.9302 504.628C-93.0454 402.877 -38.9437 347.969 34.4882 325.793C26.946 266.675 72.4141 234.525 120.811 268.632C135.789 214.756 212.103 209.42 232.856 262.501C282.701 219.82 339.34 249.943 336.588 308.076C405.846 323.683 449.748 366.625 456.745 466.681L463.86 568.432C470.382 661.705 389.147 718.51 202.602 731.554C16.0577 744.599 -72.2928 699.652 -78.815 606.38Z" fill="#45ADA8" />+ <g data-part="expression" opacity="1">+ <path d="M112.83 422.564C129.98 421.365 145.457 430.644 158.934 444.695C164.133 450.116 163.953 458.725 158.532 463.924C153.111 469.123 144.502 468.944 139.303 463.523C128.271 452.021 120.188 449.315 114.727 449.697C109.266 450.079 101.638 453.884 92.3142 466.809C87.92 472.9 79.4196 474.276 73.3281 469.882C67.2366 465.488 65.8599 456.988 70.254 450.896C81.644 435.107 95.6792 423.763 112.83 422.564ZM248.498 413.077C265.649 411.878 281.126 421.157 294.603 435.208C299.802 440.629 299.621 449.238 294.201 454.437C288.78 459.636 280.171 459.457 274.972 454.036C263.94 442.534 255.857 439.828 250.396 440.21C244.935 440.592 237.307 444.397 227.983 457.322C223.589 463.414 215.088 464.789 208.997 460.395C202.905 456.001 201.529 447.501 205.923 441.409C217.313 425.62 231.348 414.276 248.498 413.077Z" fill="black" />+ <path d="M237.886 492.175C243.232 487.591 251.282 488.21 255.865 493.556C260.449 498.901 259.83 506.951 254.484 511.535C234.167 528.953 212.389 539.153 189.261 540.77C166.134 542.387 143.149 535.318 120.604 520.896C114.673 517.102 112.94 509.216 116.734 503.285C120.529 497.353 128.415 495.62 134.346 499.415C153.427 511.621 171.04 516.482 187.483 515.332C203.925 514.182 220.69 506.917 237.886 492.175Z" fill="black" />+ </g>+ </g>+ </svg>\ No newline at end of filediff --git a/src/web/app-store-capture/capture.mjs b/src/web/app-store-capture/capture.mjsnew file mode 100644index 000000000..08213b798--- /dev/null+++ b/src/web/app-store-capture/capture.mjs@@ -0,0 +1,212 @@+import { spawn, execFile } from "node:child_process"+import { createHash } from "node:crypto"+import { once } from "node:events"+import { mkdir, readFile, readdir, writeFile } from "node:fs/promises"+import { createServer } from "node:net"+import { createRequire } from "node:module"+import path from "node:path"+import { fileURLToPath, pathToFileURL } from "node:url"+import { promisify } from "node:util"+import { chromium } from "@playwright/test"+import sharp from "sharp"++const captureRoot = path.dirname(fileURLToPath(import.meta.url))+const webRoot = path.resolve(captureRoot, "..")+const repositoryRoot = path.resolve(webRoot, "../..")+const stories = ["share-agents", "teamwork", "companion", "context", "phone", "existing-setup"]+const require = createRequire(import.meta.url)++export const captures = [+ ...[{ width: 1206, height: 2622 }, { width: 1320, height: 2868 }].flatMap(({ width, height }) =>+ stories.map((story, index) => ({ width, height, url: `/?story=${index + 1}${width === 1320 ? "&large=1" : ""}`, filename: `phone-${width}x${height}/${String(index + 1).padStart(2, "0")}-${story}.jpg` }))),+ { width: 2064, height: 2752, url: "/?kind=tablet", filename: "tablet-2064x2752/01-share-agents.jpg" },+ { width: 2007, height: 2853, url: "/?kind=duo", filename: "duo-2007x2853/06-existing-setup.jpg" },+]++export async function captureInputHashes() {+ const files = ["capture.mjs", "next.config.ts", "postcss.config.mjs", "tsconfig.json"].map(file => path.join(captureRoot, file))+ async function walk(directory) {+ for (const entry of await readdir(directory, { withFileTypes: true })) {+ const filename = path.join(directory, entry.name)+ if (entry.isDirectory()) await walk(filename)+ else if (/\.(tsx?|css|mjs)$/.test(filename)) files.push(filename)+ }+ }+ await walk(path.join(captureRoot, "app"))+ await walk(path.join(captureRoot, "captures"))+ files.push(path.join(repositoryRoot, "pnpm-lock.yaml"), path.join(webRoot, "src/app/globals.css"), path.join(webRoot, "src/app/fonts.ts"), path.join(webRoot, "src/app/favicon.ico"), path.join(webRoot, "public/alook.svg"))+ for (const name of ["landing-interactive-shell.tsx", "landing-interactive-shell-data.ts", "landing-interactive-shell.module.css", "landing-shell-motion.tsx", "landing-shell-motion-timeline.ts", "landing-shell-motion.module.css", "landing-profile-content.tsx", "landing-human-avatars.ts", "landing-demo-copy.ts"]) files.push(path.join(webRoot, "src/components/home", name))+ for (const name of ["caveat-latin", "dm-sans-latin", "dm-mono-latin-400", "instrument-serif-latin-400", "instrument-serif-latin-400-italic", "literata-latin", "vt323-latin-400"]) files.push(path.join(webRoot, "src/app/fonts", `${name}.woff2`))+ for (const color of ["red", "purple", "teal", "blue", "orange"]) files.push(path.join(captureRoot, "assets", `face-${color}.svg`))+ for (const name of ["lin", "alex", "nina", "priya", "sam"]) files.push(path.join(webRoot, "public/landing/people", `${name}.webp`))+ return Object.fromEntries(await Promise.all(files.sort().map(async filename => [path.relative(repositoryRoot, filename), createHash("sha256").update(await readFile(filename)).digest("hex")])))+}++function availablePort() {+ return new Promise((resolve, reject) => {+ const server = createServer()+ server.once("error", reject)+ server.listen(0, "127.0.0.1", () => {+ const address = server.address()+ server.close(error => error ? reject(error) : resolve(address.port))+ })+ })+}++export async function stopCaptureProcess(child) {+ if (!child?.pid) return+ const target = process.platform === "win32" ? child.pid : -child.pid+ const exists = () => { try { process.kill(target, 0); return true } catch { return false } }+ if (!exists()) return+ try { process.kill(target, "SIGTERM") } catch { return }+ const deadline = Date.now() + 3000+ while (exists() && Date.now() < deadline) await new Promise(resolve => setTimeout(resolve, 50))+ if (exists()) {+ try { process.kill(target, "SIGKILL") } catch {}+ }+ if (child.exitCode === null && child.signalCode === null) await once(child, "exit")+}++async function startCaptureApp({ signal } = {}) {+ signal?.throwIfAborted()+ const port = await availablePort()+ const origin = `http://127.0.0.1:${port}`+ const child = spawn(process.execPath, [require.resolve("next/dist/bin/next"), "dev", captureRoot, "--hostname", "127.0.0.1", "--port", String(port)], {+ cwd: webRoot, detached: process.platform !== "win32", env: { ...process.env, NEXT_TELEMETRY_DISABLED: "1", TZ: "UTC" }, stdio: ["ignore", "pipe", "pipe"],+ })+ let logs = ""+ let spawnError+ child.on("error", error => { spawnError = error })+ for (const stream of [child.stdout, child.stderr]) stream.on("data", data => { logs = (logs + data.toString()).slice(-12000) })+ let closing+ const close = () => closing ??= (async () => { signal?.removeEventListener("abort", abort); await stopCaptureProcess(child) })()+ const abort = () => { void close() }+ signal?.addEventListener("abort", abort, { once: true })+ try {+ const deadline = Date.now() + 120000+ while (Date.now() < deadline) {+ signal?.throwIfAborted()+ if (spawnError) throw spawnError+ if (child.exitCode !== null || child.signalCode !== null) throw new Error(`Capture app exited: ${logs}`)+ try {+ const response = await fetch(origin, { signal: AbortSignal.timeout(2000) })+ if (response.ok) return { origin, close }+ } catch {}+ await new Promise(resolve => setTimeout(resolve, 250))+ }+ throw new Error(`Capture app did not become ready: ${logs}`)+ } catch (error) { await close(); throw error }+}++async function render(browser, origin, capture) {+ const context = await browser.newContext({ viewport: { width: capture.width, height: capture.height }, deviceScaleFactor: 1, colorScheme: "light", reducedMotion: "reduce", serviceWorkers: "block", locale: "en-US", timezoneId: "UTC" })+ try {+ const errors = []+ context.setDefaultTimeout(30000)+ await context.route("**/*", route => {+ if (new URL(route.request().url()).origin === origin) return route.continue()+ errors.push(`External request: ${route.request().url()}`)+ return route.abort()+ })+ const page = await context.newPage()+ await page.clock.install({ time: new Date("2026-10-25T00:00:00Z") })+ page.on("pageerror", error => errors.push(error.message))+ page.on("console", message => { if (message.type() === "error") errors.push(message.text()) })+ page.on("requestfailed", request => errors.push(`Failed resource: ${request.url()}`))+ page.on("response", response => { if (response.status() >= 400) errors.push(`HTTP ${response.status()}: ${response.url()}`) })+ const response = await page.goto(`${origin}${capture.url}`, { waitUntil: "networkidle", timeout: 120000 })+ if (!response?.ok()) throw new Error(`Artwork page failed: ${errors.join("\n")}`)+ await page.locator("#capture-poster").waitFor()+ const surfaces = []+ for (const frame of page.frames().filter(frame => frame !== page.mainFrame())) {+ await frame.locator('[data-capture-ready="true"]').waitFor({ timeout: 120000 })+ const scene = await frame.locator("[data-capture-surface]").getAttribute("data-capture-surface")+ if (scene === "workspace" && await frame.evaluate(() => innerWidth < 640)) {+ await frame.getByTestId("community-channel-row-demo-general").click()+ await frame.locator('[data-community-mobile-surface="detail"]').waitFor({ state: "visible" })+ }+ if (scene === "workspace") {+ await frame.locator('[data-message-list-content][data-initial-position-phase="revealed"][aria-hidden="false"]').waitFor({ state: "visible" })+ await frame.locator('[data-message-list-skeleton]').waitFor({ state: "hidden" })+ await frame.getByTestId("community-message-scroller").evaluate(element => element.scrollTo({ top: 0, behavior: "instant" }))+ await frame.evaluate(() => new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve))))+ await frame.locator('[data-message-row-key]').first().waitFor({ state: "visible" })+ }+ const measured = await frame.evaluate(async () => {+ await document.fonts.ready+ await Promise.all([...document.images].map(image => image.decode()))+ return { width: innerWidth, height: innerHeight, rootFontSize: getComputedStyle(document.documentElement).fontSize, sharedShell: !!document.querySelector('[data-slot="community-shell-root"]'), messageRows: document.querySelectorAll('[data-message-row-key]').length, positioningSkeletons: document.querySelectorAll('[data-message-list-skeleton]').length }+ })+ if (measured.rootFontSize !== "16px") throw new Error(`Unexpected App root type: ${measured.rootFontSize}`)+ if (scene === "workspace" && !measured.sharedShell) throw new Error("Shared Web shell did not render")+ surfaces.push({ scene, ...measured })+ }+ if (!surfaces.length) throw new Error("No real component surface rendered")+ await page.evaluate(async () => { await document.fonts.ready; await Promise.all([...document.images].map(image => image.decode())) })+ const bytes = await page.locator("#capture-poster").screenshot({ type: "jpeg", quality: 80, scale: "css", animations: "disabled" })+ if (errors.length) throw new Error(errors.join("\n"))+ return { bytes, surfaces }+ } finally { await context.close() }+}++export async function captureArtwork({ output = path.join(repositoryRoot, "assets/app-store"), overview = false, signal } = {}) {+ signal?.throwIfAborted()+ const app = await startCaptureApp({ signal })+ let browser+ const abort = () => { void browser?.close().catch(() => {}) }+ try {+ browser = await chromium.launch({ headless: true, channel: "chrome" })+ signal?.throwIfAborted()+ signal?.addEventListener("abort", abort, { once: true })+ const outputs = []+ for (const capture of captures) {+ signal?.throwIfAborted()+ const { bytes, surfaces } = await render(browser, app.origin, capture)+ const metadata = await sharp(bytes).metadata()+ if (metadata.format !== "jpeg" || metadata.width !== capture.width || metadata.height !== capture.height || metadata.channels !== 3 || metadata.hasAlpha || metadata.space !== "srgb") throw new Error(`Invalid RGB JPEG: ${capture.filename}`)+ const filename = path.join(output, capture.filename)+ await mkdir(path.dirname(filename), { recursive: true })+ await writeFile(filename, bytes)+ outputs.push({ path: capture.filename, width: metadata.width, height: metadata.height, sha256: createHash("sha256").update(bytes).digest("hex"), surfaces })+ }+ if (overview) {+ const tiles = await Promise.all(outputs.slice(0, 6).map(async (entry, index) => ({ input: await sharp(path.join(output, entry.path)).resize(368, 800).toBuffer(), left: 28 + (index % 3) * 391, top: 28 + Math.floor(index / 3) * 823 })))+ const bytes = await sharp({ create: { width: 1206, height: 1679, channels: 3, background: "#f3e6d4" } }).composite(tiles).jpeg({ quality: 80 }).toBuffer()+ await writeFile(path.join(output, "overview.jpg"), bytes)+ outputs.push({ path: "overview.jpg", width: 1206, height: 1679, sha256: createHash("sha256").update(bytes).digest("hex"), surfaces: [] })+ }+ const { stdout } = await promisify(execFile)("git", ["rev-parse", "HEAD"], { cwd: repositoryRoot })+ const manifest = { renderer: browser.version(), encoding: "RGB JPEG quality 80", clock: "2026-10-25T00:00:00Z", locale: "en-US", timezone: "UTC", repositoryHead: stdout.trim(), inputs: await captureInputHashes(), outputs }+ await writeFile(path.join(output, "manifest.json"), `${JSON.stringify(manifest, null, 2)}\n`)+ return manifest+ } finally {+ signal?.removeEventListener("abort", abort)+ try { await browser?.close() } finally { await app.close() }+ }+}++export async function main(args = process.argv.slice(2)) {+ const options = {}+ for (let index = 0; index < args.length; index++) {+ if (args[index] === "--overview") options.overview = true+ else if (args[index] === "--output" && args[index + 1] && !args[index + 1].startsWith("--")) options.output = path.resolve(args[++index])+ else throw new Error("Usage: pnpm app-store:capture [--output directory] [--overview]")+ }+ const controller = new AbortController()+ const interrupt = () => {+ process.exitCode = 1+ controller.abort(new Error("App Store capture interrupted"))+ }+ process.once("SIGINT", interrupt)+ process.once("SIGTERM", interrupt)+ try {+ const manifest = await captureArtwork({ ...options, signal: controller.signal })+ process.stdout.write(`Captured ${manifest.outputs.length} App Store artwork images with Chrome ${manifest.renderer}\n`)+ return manifest+ } finally {+ process.removeListener("SIGINT", interrupt)+ process.removeListener("SIGTERM", interrupt)+ }+}++if (process.argv[1] && pathToFileURL(path.resolve(process.argv[1])).href === import.meta.url) main().catch(error => { console.error(error.message); process.exitCode = 1 })diff --git a/src/web/app-store-capture/captures/poster.css b/src/web/app-store-capture/captures/poster.cssnew file mode 100644index 000000000..694243cec--- /dev/null+++ b/src/web/app-store-capture/captures/poster.css@@ -0,0 +1,149 @@+@font-face{font-family:Caveat;src:url(/caveat.woff2);font-weight:400 700;font-display:block}+@font-face{font-family:DMSans;src:url(/dm-sans.woff2);font-weight:100 1000;font-display:block}+*{box-sizing:border-box}+.phone-poster{position:relative;width:1206px;height:2622px;overflow:hidden;background:linear-gradient(165deg,#fff8ec 0%,#fff0dc 30%,#ffd8a5 62%,#ff9b43 100%)}+.phone-poster:before{content:"";position:absolute;width:1750px;height:1750px;border:2px solid #fff8ecaa;border-radius:50%;left:-380px;top:1100px;box-shadow:0 0 0 160px #fff8ec33,0 0 0 320px #fff8ec22}+.phone-poster .brand{position:absolute;left:87px;top:91px;display:flex;align-items:center;gap:18px;font-family:Caveat,cursive;font-size:94px;font-weight:700;letter-spacing:-4px;line-height:1}+.phone-poster .brand img{width:75px;height:75px}+.phone-poster .number{position:absolute;right:90px;top:127px;font-size:26px;font-weight:700;letter-spacing:5px;color:#715340}+.phone-poster .headline{position:absolute;left:84px;right:60px;top:247px;margin:0;font-size:137px;font-weight:1000;line-height:1.01;letter-spacing:-6px}+.phone-poster .headline .accent{color:#b94f13}+.phone-poster .subtitle{position:absolute;left:90px;right:90px;top:718px;font-size:47px;line-height:1.3;letter-spacing:-1px;margin:0;color:#715340;max-width:1000px}+.phone-poster .phone{position:absolute;left:122px;top:989px;width:962px;border:18px solid #192625;border-radius:88px;background:#fff;overflow:hidden;box-shadow:0 58px 100px #7a482c33,0 9px 0 2px #fff8ec,0 0 0 3px #71534066}+.phone-poster .phone img{display:block;width:100%}+.phone-poster .reply{position:absolute;left:49px;top:1634px;width:1107px;height:315px;border:14px solid #fff8ec;border-radius:46px;overflow:hidden;background:#fff;box-shadow:0 30px 70px #7a482c30;transform:rotate(-3deg);z-index:3}+.phone-poster .reply img{position:absolute;width:1085px;max-width:none;left:0;top:-491px}+.phone-poster .window{position:absolute;overflow:hidden;border:14px solid #fff8ec;border-radius:48px;background:#fff;box-shadow:0 45px 100px #7a482c30}+.phone-poster .window img{display:block;width:100%}+.phone-poster .chip{position:absolute;display:inline-block;background:#192625;color:#fff8ec;border-radius:99px;padding:22px 39px;font-weight:700;font-size:37px;box-shadow:0 15px 40px #7a482c22;z-index:4}+.phone-poster .footer{position:absolute;bottom:62px;left:90px;font-size:28px;letter-spacing:1px;color:#715340;z-index:8}+.phone-poster.hero .headline{font-size:174px;top:255px}+.phone-poster.hero .subtitle{top:654px;font-size:61px;color:#192625}+.phone-poster.team .headline{font-size:126px}+.phone-poster.team .window{left:55px;top:1077px;width:1096px;height:1285px;transform:rotate(-3deg)}+.phone-poster.team .window img{position:absolute;width:1820px;max-width:none;left:-475px;top:0}+.phone-poster.team .reply{top:1745px}+.phone-poster.companion .headline{font-size:145px}+.phone-poster.companion .window{left:-92px;top:1088px;width:1120px;transform:rotate(7deg)}+.phone-poster.companion .profile{position:absolute;left:153px;top:1290px;width:900px;transform:rotate(-3deg);border-radius:50px;box-shadow:0 50px 90px #7a482c33;z-index:2}+.phone-poster.companion .profile img{display:block;width:100%;border-radius:50px}+.phone-poster.companion .chip{right:38px;top:2290px;transform:rotate(4deg)}+.phone-poster.continuity .headline{font-size:146px}+.phone-poster.continuity .window{left:54px;top:1100px;width:1100px;height:1250px;transform:rotate(3deg)}+.phone-poster.continuity .window img{position:absolute;width:1770px;max-width:none;left:-455px;top:0}+.phone-poster.continuity .focus{position:absolute;top:1650px;left:30px;width:1145px;height:435px;border:14px solid #fff8ec;border-radius:40px;overflow:hidden;box-shadow:0 35px 65px #7a482c38;transform:rotate(-3deg);z-index:3;background:#fff}+.phone-poster.continuity .focus img{position:absolute;width:1770px;max-width:none;left:-455px;top:-85px}+.phone-poster.reach .headline{font-size:146px}+.phone-poster.reach .subtitle{font-size:44px}+.phone-poster.reach .chip{left:72px;top:2050px;transform:rotate(-3deg);max-width:1040px;font-size:32px}+.phone-poster.setup .headline{font-size:148px}+.phone-poster.setup .window{left:55px;top:1137px;width:1096px;height:1150px;transform:rotate(-3deg)}+.phone-poster.setup .window img{position:absolute;width:1670px;max-width:none;left:-370px;top:0}+.phone-poster.setup .chip{left:78px;top:2100px;transform:rotate(3deg)}+.phone-poster.setup .window img{width:1460px;left:-415px}+.phone-poster.hero .reply,.phone-poster.team .reply{top:1730px;height:306px}+.phone-poster.hero .reply img,.phone-poster.team .reply img{top:-1040px;width:1085px;left:0}+.phone-poster.team .window{top:1077px;height:1285px}+.phone-poster.team .window img{width:1068px;left:0;top:-200px}+.phone-poster.hero .footer,.phone-poster.reach .footer{background:#fff8ecee;border-radius:12px;padding:8px 14px;font-size:23px;bottom:40px}+.phone-poster.setup .desktop-device{position:absolute;left:86px;top:1080px;width:1380px;height:1040px;transform:perspective(2000px) rotateY(-9deg) rotateZ(-5deg);z-index:1;filter:drop-shadow(0 45px 55px #7a482c40)}+.phone-poster .desktop-screen{width:1380px;height:902px;border:24px solid #192625;border-bottom:46px solid #192625;border-radius:42px;background:#fff;overflow:hidden;box-shadow:inset 0 0 0 2px #715340,0 0 0 3px #a5805f}+.phone-poster .desktop-screen img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}+.phone-poster .monitor-neck{position:absolute;width:210px;height:145px;left:580px;top:898px;background:linear-gradient(100deg,#715340,#baaa95 47%,#5e4937);clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}+.phone-poster .monitor-base{position:absolute;left:420px;top:1018px;width:540px;height:45px;border-radius:60% 60% 18% 18%;background:linear-gradient(#c7baa7,#715340);box-shadow:0 18px 26px #19262530}+.phone-poster .tablet-device{position:absolute;left:-98px;top:1545px;width:758px;height:1010px;border:20px solid #192625;border-radius:50px;overflow:hidden;background:#fff;transform:rotate(-8deg);box-shadow:0 40px 80px #7a482c38,0 0 0 3px #a5805f;z-index:2}+.phone-poster .tablet-device img{display:block;width:100%;height:100%;object-fit:contain}+.phone-poster .mobile-device{position:absolute;left:698px;top:1540px;width:468px;border:16px solid #192625;border-radius:64px;overflow:hidden;background:#fff;transform:rotate(5deg);box-shadow:0 40px 80px #7a482c50,0 0 0 3px #a5805f;z-index:3}+.phone-poster .mobile-device img{display:block;width:100%}+.phone-poster.setup .footer{background:#fff8ecee;border-radius:12px;padding:8px 14px;font-size:23px;bottom:34px}+.phone-poster .scattered-face{position:absolute;object-fit:contain;filter:drop-shadow(0 9px 0 #fff8ec) drop-shadow(0 16px 18px #7a482c28);z-index:5}+.phone-poster .face-red{left:1010px;top:2390px;width:150px;transform:rotate(18deg)}+.phone-poster .face-orange{left:45px;top:2180px;width:300px;transform:rotate(-10deg)}+.phone-poster .face-blue{left:459px;top:2200px;width:180px;transform:rotate(15deg)}+.phone-poster .face-purple{left:34px;top:930px;width:160px;transform:rotate(-18deg)}+.phone-poster .face-teal{left:1055px;top:945px;width:185px;transform:rotate(12deg)}+.phone-poster .art-face{position:absolute;object-fit:contain;filter:drop-shadow(0 8px 0 #fff8ec) drop-shadow(0 15px 19px #7a482c25);z-index:5}+.phone-poster .hero-blue{left:1010px;top:872px;width:145px;transform:rotate(12deg)}+.phone-poster .hero-orange{left:28px;top:2260px;width:175px;transform:rotate(-13deg)}+.phone-poster.team{background:linear-gradient(160deg,#fff8ec,#fff0dc 35%,#f6d8b8 66%,#ff9b43)}+.phone-poster.team .window{left:52px;top:1095px;width:1120px;height:718px;border:22px solid #192625;border-radius:47px;transform:rotate(-4deg);box-shadow:0 45px 80px #7a482c35,0 0 0 3px #a5805f}+.phone-poster.team .window img{position:static;width:100%;height:100%;object-fit:contain}+.phone-poster .quote-card{position:absolute;display:flex;gap:24px;align-items:flex-start;padding:26px;border:14px solid #fff8ec;border-radius:43px;background:#fff;box-shadow:0 30px 70px #7a482c35;color:#192625;z-index:4}+.phone-poster .team-quote{left:28px;top:1760px;width:1135px;transform:rotate(3deg)}+.phone-poster .team-teal{left:94px;top:2260px;width:220px;transform:rotate(-15deg)}+.phone-poster .team-purple{left:480px;top:2200px;width:230px;transform:rotate(9deg)}+.phone-poster .team-orange{left:950px;top:2310px;width:165px;transform:rotate(-9deg)}+.phone-poster.companion .window{left:33px;top:1120px;width:1210px;border:18px solid #192625;border-radius:45px;transform:rotate(-5deg)}+.phone-poster.companion .profile{left:190px;top:1320px;width:900px;border:14px solid #fff8ec;transform:rotate(4deg);overflow:hidden}+.phone-poster.companion .chip{top:2340px;right:65px;transform:rotate(-3deg)}+.phone-poster .companion-purple{left:40px;top:2070px;width:195px;transform:rotate(-14deg)}+.phone-poster .companion-blue{left:1000px;top:1020px;width:150px;transform:rotate(14deg)}+.phone-poster.continuity .window{left:52px;top:1100px;width:1190px;height:724px;border:18px solid #192625;border-radius:45px;transform:rotate(3deg)}+.phone-poster.continuity .window img{position:static;width:100%;height:100%;object-fit:contain}+.phone-poster .continuity-ask{left:23px;top:1690px;width:1110px;transform:rotate(-3deg)}+.phone-poster .continuity-answer{left:85px;top:2070px;width:1080px;transform:rotate(3deg)}+.phone-poster .continuity-red{left:1020px;top:930px;width:145px;transform:rotate(13deg)}+.phone-poster .continuity-blue{left:40px;top:2380px;width:170px;transform:rotate(-14deg)}+.phone-poster.reach{background:linear-gradient(165deg,#fff8ec,#fff0dc 35%,#f7d9b7 65%,#ff9b43)}+.phone-poster .composer-focus{position:absolute;left:26px;top:2150px;width:1145px;height:185px;border:14px solid #fff8ec;border-radius:50px;overflow:hidden;background:#fff;box-shadow:0 30px 70px #7a482c35;transform:rotate(-3deg);z-index:4}+.phone-poster .composer-focus img{position:absolute;width:1117px;max-width:none;left:0;top:-2275px}+.phone-poster.reach .chip{left:130px;top:2410px;font-size:30px;transform:rotate(3deg)}+.phone-poster .reach-teal{left:18px;top:1535px;width:135px;transform:rotate(-16deg)}+.phone-poster .reach-red{left:1015px;top:930px;width:150px;transform:rotate(12deg)}+.phone-poster .composer-crop{position:relative;margin:14px;width:1089px;height:128px;border-radius:65px;overflow:hidden;background:#e8e5de}+.phone-poster .composer-focus .composer-crop img{left:-14px;top:-2290px}+.tablet-poster{position:relative;margin:0;width:2064px;height:2752px;overflow:hidden;background:linear-gradient(165deg,#fff8ec,#fff0dc 35%,#ffd8a5 65%,#ff9b43);color:#192625;font-family:DMSans,Arial,sans-serif}+.tablet-poster .brand{position:absolute;left:142px;top:108px;display:flex;align-items:center;gap:24px;font-family:Caveat,cursive;font-size:132px;font-weight:700;letter-spacing:-5px;line-height:1}+.tablet-poster .brand img{width:110px;height:110px}+.tablet-poster .number{position:absolute;right:140px;top:160px;color:#715340;font-size:32px;letter-spacing:6px;font-weight:700}+.tablet-poster h1{position:absolute;left:134px;top:320px;font-size:240px;letter-spacing:-8px;line-height:1.03;font-weight:1000;margin:0}+.tablet-poster .accent{color:#b94f13}+.tablet-poster .subtitle{position:absolute;left:142px;top:865px;font-size:78px;color:#192625;margin:0;line-height:1.3}+.tablet-poster .window{position:absolute;left:130px;top:1120px;width:1804px;height:1460px;overflow:hidden;background:#fff;border:18px solid #192625;border-radius:58px;box-shadow:0 55px 100px #7a482c35;transform:rotate(-2deg)}+.tablet-poster .window img{position:absolute;display:block;width:1768px;left:0;top:-580px}+.tablet-poster .reply{position:absolute;left:610px;top:1830px;width:1320px;height:219px;background:#fff;border:17px solid #fff8ec;border-radius:44px;overflow:hidden;transform:rotate(2deg);box-shadow:0 35px 80px #7a482c35}+.tablet-poster .reply img{position:absolute;display:block;width:2010px;left:-750px;top:-1450px}+.tablet-poster .footer{position:absolute;bottom:47px;left:145px;font-size:30px;color:#715340;letter-spacing:1px}+.tablet-poster .window{left:122px;top:1130px;width:1820px;height:1156px;border:24px solid #192625;border-radius:72px;transform:rotate(-3deg);overflow:hidden}+.tablet-poster .window img{position:static;display:block;width:100%;height:100%;object-fit:contain;background:#fff}+.tablet-poster .art-face{position:absolute;object-fit:contain;filter:drop-shadow(0 12px 0 #fff8ec) drop-shadow(0 22px 25px #7a482c28);z-index:4}+.tablet-poster .tablet-purple{left:52px;top:990px;width:170px;transform:rotate(-14deg)}+.tablet-poster .tablet-orange{left:142px;top:2360px;width:260px;transform:rotate(-12deg)}+.tablet-poster .tablet-teal{left:1680px;top:2300px;width:250px;transform:rotate(12deg)}+.tablet-poster .clean .footer{display:none}+.duo-poster{--mm:10px;position:relative;width:2007px;height:2853px;overflow:hidden;background:linear-gradient(165deg,#fff8ec 0%,#fff0dc 30%,#ffd8a5 62%,#ff9b43 100%)}+.duo-poster:before{content:"";position:absolute;width:2500px;height:2500px;border:3px solid #fff8ecaa;border-radius:50%;left:-600px;top:1050px;box-shadow:0 0 0 210px #fff8ec33,0 0 0 420px #fff8ec22}+.duo-poster .brand{position:absolute;left:132px;top:112px;display:flex;align-items:center;gap:26px;font-family:Caveat,cursive;font-size:144px;font-weight:700;letter-spacing:-5px;line-height:1}+.duo-poster .brand img{width:114px;height:114px}+.duo-poster .number{position:absolute;right:139px;top:166px;font-size:35px;font-weight:700;letter-spacing:7px;color:#715340}+.duo-poster h1{position:absolute;left:126px;right:110px;top:345px;margin:0;font-size:226px;font-weight:1000;line-height:1.01;letter-spacing:-9px}+.duo-poster .accent{color:#b94f13}+.duo-poster .subtitle{position:absolute;left:136px;top:1060px;margin:0;color:#715340;font-size:65px;line-height:1.3;letter-spacing:-1px}+.duo-poster .device{position:absolute;display:flex;align-items:center;justify-content:center;height:calc(117.8 * var(--mm));background:linear-gradient(105deg,#ded7ce,#7f7a70 20%,#f2eee5 45%,#403f3c 65%,#b1aca3);border:2px solid #4d4c49;box-shadow:0 2px 0 3px #fff8ec,0 48px 85px #7a482c55}+.duo-poster .screen{position:relative;flex-shrink:0;overflow:hidden;background:#11110f}+.duo-poster .screen img{display:block;width:100%;height:100%;object-fit:contain}+.duo-poster .unfolded{left:150px;top:1300px;width:calc(164.6 * var(--mm));border-radius:83px;transform:perspective(3500px) rotateY(-7deg) rotateZ(-5deg);z-index:1}+.duo-poster .unfolded .screen{width:calc(100% - 24px);aspect-ratio:2670 / 1878;border-radius:68px}+.duo-poster .crease{position:absolute;left:calc(50% - 26px);top:0;bottom:0;width:52px;background:linear-gradient(90deg,transparent,#00000032 38%,#ffffff16 55%,transparent);pointer-events:none}+.duo-poster .hinge-top,.duo-poster .hinge-bottom{position:absolute;width:24px;height:18px;left:calc(50% - 12px);background:linear-gradient(90deg,#484943,#ddd6cb,#545650);z-index:2}+.duo-poster .hinge-top{top:-6px;border-radius:0 0 5px 5px}+.duo-poster .hinge-bottom{bottom:-6px;border-radius:5px 5px 0 0}+.duo-poster .folded{left:1005px;top:1545px;width:calc(84.1 * var(--mm));border-radius:86px;transform:perspective(2500px) rotateY(-10deg) rotateZ(7deg);z-index:3}+.duo-poster .folded .screen{height:calc(100% - 24px);aspect-ratio:1398 / 2034;border-radius:70px}+.duo-poster .folded:before{content:"";position:absolute;right:-14px;top:80px;bottom:78px;width:17px;background:linear-gradient(90deg,#d5d0c5,#56564f,#c3bdae);border-radius:0 10px 10px 0;z-index:-1}+.duo-poster .folded:after{content:"";position:absolute;right:-20px;top:250px;width:8px;height:127px;background:#69685f;border:1px solid #d8d2c6;border-radius:0 5px 5px 0}+.duo-poster .face{position:absolute;object-fit:contain;filter:drop-shadow(0 12px 0 #fff8ec) drop-shadow(0 22px 25px #7a482c28);z-index:5}+.duo-poster .purple{left:50px;top:1150px;width:180px;transform:rotate(-17deg)}+.duo-poster .teal{left:1750px;top:1010px;width:180px;transform:rotate(12deg)}+.duo-poster .orange{left:110px;top:2610px;width:210px;transform:rotate(-11deg)}+.duo-poster .blue{left:720px;top:2640px;width:155px;transform:rotate(14deg)}+.duo-poster .red{left:1840px;top:2690px;width:135px;transform:rotate(16deg)}+.capture-canvas { position: relative; overflow: hidden; background: #fff8ec; color: #192625; font-family: DMSans, sans-serif; }+.surface-frame { position: relative; overflow: hidden; background: var(--background, #fff); }+.surface-frame iframe { display: block; position: absolute; border: 0; transform-origin: top left; }+.quote-card { display: block; }+.composer-focus { height: 230px; }+.composer-crop { height: 174px; }+.poster-board { display: grid; grid-template-columns: repeat(3, 368px); gap: 23px; padding: 28px; background: #f3e6d4; }+.poster-thumb { position: relative; width: 368px; height: 800px; overflow: hidden; border-radius: 16px; }+.poster-thumb > section { transform: scale(.305); transform-origin: top left; }diff --git a/src/web/app-store-capture/captures/poster.tsx b/src/web/app-store-capture/captures/poster.tsxnew file mode 100644index 000000000..d7bee9efb--- /dev/null+++ b/src/web/app-store-capture/captures/poster.tsx@@ -0,0 +1,96 @@+import type { CSSProperties } from "react"+import "./poster.css"++function Surface({ scene = "workspace", width, height, viewport = [1280, 800], beat = 9 }: { scene?: string; width: number; height: number; viewport?: [number, number]; beat?: number }) {+ const [logicalWidth, logicalHeight] = viewport+ const scale = Math.min(width / logicalWidth, height / logicalHeight)+ return <div className="surface-frame" style={{ width, height }} data-surface-frame={scene}>+ <iframe title={`Alook ${scene}`} src={`/surface?scene=${scene}&beat=${beat}`} width={logicalWidth} height={logicalHeight} data-logical-width={logicalWidth} data-logical-height={logicalHeight}+ style={{ width: logicalWidth, height: logicalHeight, left: (width - logicalWidth * scale) / 2, top: (height - logicalHeight * scale) / 2, transform: `scale(${scale})` }} />+ </div>+}++function Brand() {+ return <div className="brand"><img src="/alook.svg" alt="" />Alook</div>+}++function Face({ color, className }: { color: string; className: string }) {+ return <img className={className} src={`/faces/face-${color}.svg`} alt="" />+}++const stories = [+ { kind: "hero", lines: ["SHARE YOUR", "AGENTS."], subtitle: <>with people you trust.</> },+ { kind: "team", lines: ["LET TEAMMATES", "TALK TO YOUR", "AGENT."], subtitle: <>Coordinate multi-agent workflows<br />in one conversation.</> },+ { kind: "companion", lines: ["A COMPANION", "OF YOUR", "OWN."], subtitle: <>Your agent belongs to you.<br />Bring them along to any room or team you join.</> },+ { kind: "continuity", lines: ["PICK UP", "WHERE YOU", "LEFT OFF."], subtitle: <>Keep the context</> },+ { kind: "reach", lines: ["CHECK IN", "FROM YOUR", "PHONE."], subtitle: <>Read updates and give the next instruction<br />wherever you are.</> },+ { kind: "setup", lines: ["KEEP YOUR", "EXISTING", "SETUP."], subtitle: <>Connect the agent you already use.</> },+]++function Mobile({ width }: { width: number }) {+ return <Surface width={width} height={width * 874 / 402} viewport={[402, 874]} />+}++function PhonePoster({ story, large = false }: { story: number; large?: boolean }) {+ const data = stories[story - 1]+ return <section className={`poster phone-poster ${data.kind}`} data-story={story} style={large ? { transform: `scale(${1320 / 1206})`, transformOrigin: "top left" } : undefined}>+ <Brand /><div className="number">{String(story).padStart(2, "0")} / 06</div>+ <h1 className="headline">{data.lines.map((line, index) => <span key={line}>{index > 0 && <br />}<span className={index === data.lines.length - 1 ? "accent" : undefined}>{line}</span></span>)}</h1>+ <p className="subtitle">{data.subtitle}</p>+ {story === 1 && <>+ <div className="phone"><Mobile width={926} /></div>+ <div className="reply"><Surface scene="reply" width={1079} height={278} viewport={[500, 130]} /></div>+ <Face color="blue" className="art-face hero-blue" /><Face color="orange" className="art-face hero-orange" />+ </>}+ {story === 2 && <>+ <div className="window"><Surface width={1076} height={674} /></div>+ <div className="quote-card team-quote"><Surface scene="reply" width={1055} height={352} viewport={[450, 150]} /></div>+ <Face color="teal" className="art-face team-teal" /><Face color="purple" className="art-face team-purple" /><Face color="orange" className="art-face team-orange" />+ </>}+ {story === 3 && <>+ <div className="window"><Surface scene="identity" beat={14} width={1174} height={692} viewport={[1120, 660]} /></div>+ <div className="profile"><Surface scene="profile" width={872} height={895.25} viewport={[300, 308]} /></div>+ <div className="chip">Invite your agent</div>+ <Face color="purple" className="art-face companion-purple" /><Face color="blue" className="art-face companion-blue" />+ </>}+ {story === 4 && <>+ <div className="window"><Surface scene="continuity" beat={9} width={1154} height={688} viewport={[1120, 660]} /></div>+ <div className="quote-card continuity-ask"><Surface scene="continuity-ask" width={1030} height={270} viewport={[500, 130]} /></div>+ <div className="quote-card continuity-answer"><Surface scene="continuity-answer" width={1000} height={220} viewport={[500, 110]} /></div>+ <Face color="red" className="art-face continuity-red" /><Face color="blue" className="art-face continuity-blue" />+ </>}+ {story === 5 && <>+ <div className="phone"><Mobile width={926} /></div>+ <div className="composer-focus"><div className="composer-crop"><Surface scene="composer" width={1089} height={174} viewport={[402, 64]} /></div></div>+ <Face color="teal" className="art-face reach-teal" /><Face color="red" className="art-face reach-red" />+ <div className="chip">Keep your agent’s computer online.</div>+ </>}+ {story === 6 && <>+ <div className="desktop-device"><div className="desktop-screen"><Surface width={1332} height={832} /></div><div className="monitor-neck" /><div className="monitor-base" /></div>+ <div className="mobile-device"><Mobile width={436} /></div>+ {["red", "purple", "teal", "blue", "orange"].map(color => <Face key={color} color={color} className={`scattered-face face-${color}`} />)}+ </>}+ </section>+}++function TabletPoster() {+ return <section className="tablet-poster"><Brand /><div className="number">01 / 06</div><h1>SHARE YOUR<br /><span className="accent">AGENTS.</span></h1><p className="subtitle">with people you trust.</p>+ <div className="window"><Surface width={1772} height={1108} /></div>+ <Face color="purple" className="art-face tablet-purple" /><Face color="orange" className="art-face tablet-orange" /><Face color="teal" className="art-face tablet-teal" />+ </section>+}++function DuoPoster() {+ return <section className="duo-poster"><Brand /><div className="number">06 / 06</div><h1>KEEP YOUR<br />EXISTING<br /><span className="accent">SETUP.</span></h1><p className="subtitle">Connect the agent you already use.</p>+ <div className="device unfolded"><div className="screen"><Surface width={1618} height={1138.05} viewport={[951, 669]} /><div className="crease" /></div><div className="hinge-top" /><div className="hinge-bottom" /></div>+ <div className="device folded"><div className="screen"><Surface width={790.406} height={1150} viewport={[466, 678]} /></div></div>+ {["purple", "teal", "orange", "blue", "red"].map(color => <Face key={color} color={color} className={`face ${color}`} />)}+ </section>+}++export function Artwork({ kind, story, large }: { kind: string; story: number; large: boolean }) {+ const dimensions = kind === "duo" ? [2007, 2853] : kind === "tablet" ? [2064, 2752] : large ? [1320, 2868] : [1206, 2622]+ return <div id="capture-poster" className="capture-canvas" style={{ width: dimensions[0], height: dimensions[1] } as CSSProperties}>+ {kind === "duo" ? <DuoPoster /> : kind === "tablet" ? <TabletPoster /> : <PhonePoster story={story} large={large} />}+ </div>+}diff --git a/src/web/app-store-capture/captures/surface.tsx b/src/web/app-store-capture/captures/surface.tsxnew file mode 100644index 000000000..42bd5c7ea--- /dev/null+++ b/src/web/app-store-capture/captures/surface.tsx@@ -0,0 +1,51 @@+"use client"++import { useEffect, useRef, useState, type ReactNode } from "react"+import { QueryClient, QueryClientProvider } from "@tanstack/react-query"+import LandingInteractiveShell from "@/components/home/landing-interactive-shell"+import { CONTINUITY_WORK_MESSAGES, LANDING_PREVIEW_PROFILES, LandingShellMotion } from "@/components/home/landing-shell-motion"+import LandingProfileContent from "@/components/home/landing-profile-content"+import { DEMO_MESSAGES, DEMO_PROFILES } from "@/components/home/landing-interactive-shell-data"+import { createCommunityDbRegistry } from "@/lib/community-db/collections"+import { CommunityDbProvider } from "@/lib/community-db/projections"+import { CommunityPreviewProfileOwner } from "@/stores/community/profile-preview"+import { Message } from "@/components/community/messages/message"+import { Composer } from "@/components/community/messages/composer"++function FixtureProviders({ children, identity = false }: { children: ReactNode; identity?: boolean }) {+ const [queryClient] = useState(() => new QueryClient({ defaultOptions: { queries: { enabled: false, retry: false, staleTime: Infinity } } }))+ const [registry] = useState(() => createCommunityDbRegistry(queryClient, null))+ const lifetimeRef = useRef({ generation: 0 })+ useEffect(() => {+ const lifetime = lifetimeRef.current+ const generation = ++lifetime.generation+ return () => queueMicrotask(() => {+ if (lifetime.generation === generation) void registry.cleanup().finally(() => queryClient.clear())+ })+ }, [registry, queryClient])+ return <QueryClientProvider client={queryClient}><CommunityDbProvider registry={registry}><CommunityPreviewProfileOwner profiles={identity ? LANDING_PREVIEW_PROFILES : DEMO_PROFILES}>{children}</CommunityPreviewProfileOwner></CommunityDbProvider></QueryClientProvider>+}++export function CaptureSurface({ scene, beat }: { scene: string; beat: number }) {+ const [ready, setReady] = useState(false)+ useEffect(() => setReady(true), [])+ const reply = DEMO_MESSAGES["demo-general"].find(message => message.authorId === "demo-alli")!+ const content = scene === "workspace" ? <LandingInteractiveShell />+ : scene === "profile" ? <FixtureProviders><LandingProfileContent /></FixtureProviders>+ : scene === "reply" ? <FixtureProviders><div className="p-4"><Message m={reply} onOpenThread={() => undefined} /></div></FixtureProviders>+ : scene === "continuity-ask" || scene === "continuity-answer" ? <FixtureProviders identity><div className="p-4"><Message m={CONTINUITY_WORK_MESSAGES[scene === "continuity-ask" ? 0 : 1]} onOpenThread={() => undefined} /></div></FixtureProviders>+ : scene === "composer" ? <FixtureProviders><div className="flex h-full flex-col justify-end"><Composer channel="general" context="channel" members={[]} sendContract="accepted" onAcceptSend={() => false} autoFocus={false} /></div></FixtureProviders>+ : scene === "identity" || scene === "continuity" || scene === "provider" ? <LandingShellMotion scene={scene} beat={beat} />+ : null+ return <main data-capture-surface={scene} data-capture-ready={ready ? "true" : undefined} className={`capture-surface surface-${scene}`}>+ {ready ? content : null}+ <style jsx global>{`+ .capture-surface { width: 100vw; height: 100dvh; overflow: hidden; background: var(--background); color: var(--foreground); font-family: var(--font-dm-sans), sans-serif; }+ .surface-profile { display: flex; align-items: center; justify-content: center; }+ .surface-profile > div { width: 300px; }+ .capture-surface [data-testid="landing-motion-stage"] { width: 1120px; height: 660px; }+ .capture-surface [data-testid="landing-motion-stage"] > div > div { transform: scale(1) !important; transition: none !important; }+ .capture-surface [data-testid="landing-motion-cursor"] { display: none !important; }+ `}</style>+ </main>+}diff --git a/src/web/app-store-capture/config.test.ts b/src/web/app-store-capture/config.test.tsnew file mode 100644index 000000000..ba9127ac8--- /dev/null+++ b/src/web/app-store-capture/config.test.ts@@ -0,0 +1,10 @@+import path from "node:path"+import { describe, expect, it } from "vitest"+import config from "./next.config"++describe("standalone App Store capture configuration", () => {+ it("resolves shared workspace imports without generating app-owned instruction files", () => {+ expect(config.turbopack?.root).toBe(path.resolve(import.meta.dirname, "../../.."))+ expect(config.agentRules).toBe(false)+ })+})diff --git a/src/web/app-store-capture/duo-manifest.json b/src/web/app-store-capture/duo-manifest.jsonnew file mode 100644index 000000000..9d200135e--- /dev/null+++ b/src/web/app-store-capture/duo-manifest.json@@ -0,0 +1,79 @@+{+ "inputs": [+ {+ "file": "prototype/duo.html",+ "bytes": 4377,+ "sha256": "340f68c58ee4ff8cd5a40c1be3ab1f5e099214237e6e4b4471137dfc81fdeb18"+ },+ {+ "file": "prototype/duo-open-demo.jpg",+ "bytes": 94913,+ "sha256": "7e57b0fe2ca764062ba75368929c60f3e84faa00b80200c74c4d6d014fb441ca",+ "pixels": [+ 1426,+ 1003+ ]+ },+ {+ "file": "prototype/duo-closed-demo.jpg",+ "bytes": 41801,+ "sha256": "90647750694fd4347aac84daea07455a2ff10f4244f5984339f30f5db5ef12c1",+ "pixels": [+ 466,+ 678+ ]+ },+ {+ "file": "prototype/alook.svg",+ "bytes": 7571,+ "sha256": "93752523cd171706887d8c70b6511f99727478386d3842fd1efab764c119988e"+ },+ {+ "file": "prototype/caveat.woff2",+ "bytes": 74932,+ "sha256": "891951df5e8b5b0f0bc760d31375405e795c666b5add70437de12d4a6482b33f"+ },+ {+ "file": "prototype/dm-sans.woff2",+ "bytes": 36932,+ "sha256": "9fea608a947e67020c33cad9a6fe3d60c54119dfb8cff87768a8117a15ed7543"+ },+ {+ "file": "prototype/face-red.svg",+ "bytes": 1433,+ "sha256": "d762e20ec379a14a492ca1cd438fb608267ed1870e20d0ed17d6acf16dd8924a"+ },+ {+ "file": "prototype/face-purple.svg",+ "bytes": 1399,+ "sha256": "2ec902464f75486fe3433b80ad65c30de4a4fcf947403bba8a38c4c54e0e162b"+ },+ {+ "file": "prototype/face-teal.svg",+ "bytes": 1860,+ "sha256": "6b53ffd30e7ae6935eaea4dffb31e7bb096d03163c99c2855c5846aec8b375e0"+ },+ {+ "file": "prototype/face-blue.svg",+ "bytes": 1338,+ "sha256": "6ba47540a0c02a03d3955dc26219c2b248537890f55cb7ceafd09b080e454598"+ },+ {+ "file": "prototype/face-orange.svg",+ "bytes": 1777,+ "sha256": "b26fccaf217060bd67c3874776f11d329401dc79b33a49a5168a33d3458d240e"+ }+ ],+ "output": {+ "file": "alook-store-duo-v1-2007x2853.jpg",+ "bytes": 316489,+ "sha256": "a0a7a06929d9b2205ee7ef100edbaa3a28296d8d1e2154dd11d92997dba1c98b",+ "pixels": [+ 2007,+ 2853+ ],+ "mode": "RGB"+ },+ "approved_prior_13_images_changed": false,+ "store_upload_status": "pending at bundle creation"+}diff --git a/src/web/app-store-capture/duo-refinement.json b/src/web/app-store-capture/duo-refinement.jsonnew file mode 100644index 000000000..2fa52a26c--- /dev/null+++ b/src/web/app-store-capture/duo-refinement.json@@ -0,0 +1,66 @@+{+ "status": "historical",+ "source_commit": "30cc2f9be9aff68c76e68c4584d4b0fbb0f74012",+ "revision": "physical-scale-v2",+ "previous_template": {+ "file": "duo.html",+ "bytes": 4377,+ "sha256": "340f68c58ee4ff8cd5a40c1be3ab1f5e099214237e6e4b4471137dfc81fdeb18",+ "git_commit": "4a61a1d57ad470896ce62c59ea8d4a8f1251b935"+ },+ "sources": {+ "body_and_hardware_pixels": "https://www.apple.com/iphone-duo/specs/",+ "store_screenshot_pixels": "https://developer.apple.com/help/app-store-connect/reference/app-information/screenshot-specifications/",+ "responsive_window_guidance": "https://developer.apple.com/iphone-duo/prepare/"+ },+ "geometry": {+ "css_pixels_per_mm": 10,+ "unfolded": {+ "body_mm": [+ 164.6,+ 117.8+ ],+ "body_css_pixels": [+ 1646,+ 1178+ ],+ "screen_pixel_ratio": [+ 2670,+ 1878+ ]+ },+ "folded": {+ "body_mm": [+ 84.1,+ 117.8+ ],+ "body_css_pixels": [+ 841,+ 1178+ ],+ "screen_pixel_ratio": [+ 1398,+ 2034+ ]+ },+ "poster_pixels": [+ 2007,+ 2853+ ],+ "image_fit": "contain"+ },+ "illustration_only": [+ "bezel widths",+ "corner radii",+ "crease",+ "hinges",+ "button geometry",+ "perspective"+ ],+ "preserved_original_manifest": "duo-manifest.json",+ "revised_template": {+ "file": "duo.html",+ "bytes": 4534,+ "sha256": "cfe5144dcb17d5abb2c3bc30a73af50df614c8bf6e8ee51b6147df4fcd4842f3"+ }+}diff --git a/src/web/app-store-capture/next.config.ts b/src/web/app-store-capture/next.config.tsnew file mode 100644index 000000000..62ffcb82f--- /dev/null+++ b/src/web/app-store-capture/next.config.ts@@ -0,0 +1,9 @@+import path from "node:path"+import type { NextConfig } from "next"++const config: NextConfig = {+ agentRules: false,+ turbopack: { root: path.resolve(__dirname, "../../..") },+}++export default configdiff --git a/src/web/app-store-capture/postcss.config.mjs b/src/web/app-store-capture/postcss.config.mjsnew file mode 100644index 000000000..f4aa8a8fe--- /dev/null+++ b/src/web/app-store-capture/postcss.config.mjs@@ -0,0 +1,5 @@+const config = {+ plugins: ["@tailwindcss/postcss"],+}++export default configdiff --git a/src/web/app-store-capture/public/alook.svg b/src/web/app-store-capture/public/alook.svgnew file mode 120000index 000000000..02316342b--- /dev/null+++ b/src/web/app-store-capture/public/alook.svg@@ -0,0 +1 @@+../../public/alook.svg\ No newline at end of filediff --git a/src/web/app-store-capture/public/caveat.woff2 b/src/web/app-store-capture/public/caveat.woff2new file mode 120000index 000000000..ae18fe258--- /dev/null+++ b/src/web/app-store-capture/public/caveat.woff2@@ -0,0 +1 @@+../../src/app/fonts/caveat-latin.woff2\ No newline at end of filediff --git a/src/web/app-store-capture/public/dm-sans.woff2 b/src/web/app-store-capture/public/dm-sans.woff2new file mode 120000index 000000000..d71a0c9ce--- /dev/null+++ b/src/web/app-store-capture/public/dm-sans.woff2@@ -0,0 +1 @@+../../src/app/fonts/dm-sans-latin.woff2\ No newline at end of filediff --git a/src/web/app-store-capture/public/faces b/src/web/app-store-capture/public/facesnew file mode 120000index 000000000..ec2e4be2f--- /dev/null+++ b/src/web/app-store-capture/public/faces@@ -0,0 +1 @@+../assets\ No newline at end of filediff --git a/src/web/app-store-capture/public/favicon.ico b/src/web/app-store-capture/public/favicon.iconew file mode 120000index 000000000..60ef3778d--- /dev/null+++ b/src/web/app-store-capture/public/favicon.ico@@ -0,0 +1 @@+../../src/app/favicon.ico\ No newline at end of filediff --git a/src/web/app-store-capture/public/landing b/src/web/app-store-capture/public/landingnew file mode 120000index 000000000..ead75b0ab--- /dev/null+++ b/src/web/app-store-capture/public/landing@@ -0,0 +1 @@+../../public/landing\ No newline at end of filediff --git a/src/web/app-store-capture/render.dom.test.tsx b/src/web/app-store-capture/render.dom.test.tsxnew file mode 100644index 000000000..799dc812b--- /dev/null+++ b/src/web/app-store-capture/render.dom.test.tsx@@ -0,0 +1,87 @@+import { renderToStaticMarkup } from "react-dom/server"+import { describe, expect, it, vi } from "vitest"+import CaptureLayout from "./app/layout"+import CapturePage from "./app/page"+import { Artwork } from "./captures/poster"++vi.mock("next/font/local", () => ({+ default: ({ variable }: { variable: string }) => ({ variable }),+}))++function documentFor(element: Parameters<typeof renderToStaticMarkup>[0]) {+ return new DOMParser().parseFromString(renderToStaticMarkup(element), "text/html")+}++const posterQueries: [Record<string, string | string[] | undefined>, string, string | null, string][] = [+ [{}, "phone", "1", "1206px"],+ [{ story: "6", large: "1" }, "phone", "6", "1320px"],+ [{ story: "0" }, "phone", "1", "1206px"],+ [{ story: "7" }, "phone", "1", "1206px"],+ [{ story: "invalid", kind: ["duo"] }, "phone", "1", "1206px"],+ [{ kind: "tablet" }, "tablet", null, "2064px"],+ [{ kind: "duo" }, "duo", null, "2007px"],+]++describe("App Store capture document and poster entry", () => {+ it("keeps the shared font variables and body content on the root document", () => {+ const document = documentFor(<CaptureLayout><main>Capture content</main></CaptureLayout>)+ expect(document.documentElement.lang).toBe("en")+ expect([...document.documentElement.classList]).toEqual([+ "--font-dm-sans", "--font-dm-mono", "--font-instrument-serif", "--font-caveat",+ "--font-vt323", "--font-literata", "antialiased",+ ])+ expect(document.body.querySelector("main")?.textContent).toBe("Capture content")+ })++ it.each([+ [1, "SHARE YOURAGENTS.", ["workspace", "reply"]],+ [2, "LET TEAMMATESTALK TO YOURAGENT.", ["workspace", "reply"]],+ [3, "A COMPANIONOF YOUROWN.", ["identity", "profile"]],+ [4, "PICK UPWHERE YOULEFT OFF.", ["continuity", "continuity-ask", "continuity-answer"]],+ [5, "CHECK INFROM YOURPHONE.", ["workspace", "composer"]],+ [6, "KEEP YOUREXISTINGSETUP.", ["workspace", "workspace"]],+ ] as const)("renders story %s with its own headline and live surface destinations", (story, heading, scenes) => {+ for (const large of [false, true]) {+ const document = documentFor(<Artwork kind="phone" story={story} large={large} />)+ const canvas = document.querySelector<HTMLElement>("#capture-poster")!+ expect([canvas.style.width, canvas.style.height]).toEqual(large ? ["1320px", "2868px"] : ["1206px", "2622px"])+ expect(document.querySelector("h1")?.textContent).toBe(heading)+ expect(document.querySelector("[data-story]")?.getAttribute("data-story")).toBe(String(story))+ expect([...document.querySelectorAll("iframe")].map(frame => new URL(frame.src).searchParams.get("scene"))).toEqual(scenes)+ expect([...document.querySelectorAll(".art-face, .scattered-face")].every(face => face.getAttribute("src")?.startsWith("/faces/face-"))).toBe(true)+ const poster = document.querySelector<HTMLElement>(".phone-poster")!+ expect(poster.style.transform).toBe(large ? `scale(${1320 / 1206})` : "")+ }+ })++ it("preserves the complete tablet viewport and independent Duo screen geometry", () => {+ const tablet = documentFor(<Artwork kind="tablet" story={1} large={false} />)+ expect(tablet.querySelector<HTMLElement>("#capture-poster")?.style.width).toBe("2064px")+ expect(tablet.querySelector<HTMLElement>("#capture-poster")?.style.height).toBe("2752px")+ expect(tablet.querySelector("iframe")?.getAttribute("width")).toBe("1280")+ expect(tablet.querySelector("iframe")?.getAttribute("height")).toBe("800")+ expect(tablet.querySelector(".number")?.textContent).toBe("01 / 06")+ const duo = documentFor(<Artwork kind="duo" story={6} large={false} />)+ expect(duo.querySelector<HTMLElement>("#capture-poster")?.style.width).toBe("2007px")+ expect(duo.querySelector<HTMLElement>("#capture-poster")?.style.height).toBe("2853px")+ const screens = [...duo.querySelectorAll("iframe")]+ expect(screens.map(frame => [frame.width, frame.height])).toEqual([["951", "669"], ["466", "678"]])+ for (const frame of screens) {+ const parent = frame.parentElement!+ const scale = Math.min(parseFloat(parent.style.width) / Number(frame.width), parseFloat(parent.style.height) / Number(frame.height))+ expect(frame.style.transform).toBe(`scale(${scale})`)+ expect(parseFloat(frame.style.left)).toBeCloseTo((parseFloat(parent.style.width) - Number(frame.width) * scale) / 2)+ expect(parseFloat(frame.style.top)).toBeCloseTo((parseFloat(parent.style.height) - Number(frame.height) * scale) / 2)+ }+ expect(duo.querySelector(".number")?.textContent).toBe("06 / 06")+ expect(duo.querySelectorAll(".face")).toHaveLength(5)+ })++ it.each(posterQueries)("resolves the awaited query %j before composing its poster", async (query, kind, story, width) => {+ const element = await CapturePage({ searchParams: Promise.resolve(query) })+ const document = documentFor(element)+ expect(document.querySelector(`.${kind === "phone" ? "phone" : kind}-poster`)).not.toBeNull()+ expect(document.querySelector("[data-story]")?.getAttribute("data-story") ?? null).toBe(story)+ expect(document.querySelector<HTMLElement>("#capture-poster")?.style.width).toBe(width)+ })+})diff --git a/src/web/app-store-capture/surface.dom.test.tsx b/src/web/app-store-capture/surface.dom.test.tsxnew file mode 100644index 000000000..5a601564a--- /dev/null+++ b/src/web/app-store-capture/surface.dom.test.tsx@@ -0,0 +1,114 @@+import { StrictMode } from "react"+import { cleanup } from "@testing-library/react"+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"+import { act, fireEvent, render, screen, waitFor } from "@/test/react-dom-harness"+import type { CommunityDbRegistry } from "@/lib/community-db/collections"+import { DEMO_MESSAGES } from "@/components/home/landing-interactive-shell-data"+import { CONTINUITY_WORK_MESSAGES } from "@/components/home/landing-shell-motion"+import SurfacePage from "./app/surface/page"+import { CaptureSurface } from "./captures/surface"++const observed = vi.hoisted(() => ({ registries: [] as CommunityDbRegistry[] }))++const surfaceQueries: [Record<string, string | string[] | undefined>, string, number][] = [+ [{}, "workspace", 9],+ [{ scene: ["profile"], beat: "3" }, "workspace", 3],+ [{ scene: "identity", beat: "14" }, "identity", 14],+ [{ scene: "unknown", beat: "invalid" }, "unknown", Number.NaN],+]++vi.mock("@/lib/community-db/collections", async (importOriginal) => {+ const original = await importOriginal<typeof import("@/lib/community-db/collections")>()+ return {+ ...original,+ createCommunityDbRegistry: (...args: Parameters<typeof original.createCommunityDbRegistry>) => {+ const registry = original.createCommunityDbRegistry(...args)+ observed.registries.push(registry)+ return registry+ },+ }+})++beforeEach(() => {+ observed.registries.length = 0+ vi.stubGlobal("ResizeObserver", class { observe() {} unobserve() {} disconnect() {} })+ vi.stubGlobal("IntersectionObserver", class { observe() {} unobserve() {} disconnect() {} })+})++afterEach(async () => {+ cleanup()+ await act(async () => { await Promise.resolve() })+ for (const registry of observed.registries) {+ await registry.cleanup()+ registry.queryClient.clear()+ }+ vi.unstubAllGlobals()+ vi.restoreAllMocks()+})++describe("App Store capture shared surfaces", () => {+ it("mounts the real workspace and changes channels through its existing control", async () => {+ const view = render(<CaptureSurface scene="workspace" beat={9} />)+ expect(view.container.querySelector("main")).toHaveAttribute("data-capture-ready", "true")+ expect(await screen.findByRole("button", { name: "general" })).toBeInTheDocument()+ fireEvent.click(screen.getByRole("button", { name: "design-review" }))+ await waitFor(() => expect(view.container.querySelector('[data-placeholder="Message /design-review"]')).not.toBeNull())+ view.unmount()+ })++ it.each([+ ["reply", DEMO_MESSAGES["demo-general"].find(message => message.authorId === "demo-alli")!.content!, "Alli"],+ ["continuity-ask", CONTINUITY_WORK_MESSAGES[0].content!, "Alli"],+ ["continuity-answer", CONTINUITY_WORK_MESSAGES[1].content!, "Shelly"],+ ])("renders %s from canonical homepage messages with their own author", async (scene, content, author) => {+ const view = render(<CaptureSurface scene={scene} beat={9} />)+ const row = view.container.querySelector("[data-page-swipe-reply-row]")+ expect(row).not.toBeNull()+ expect(row?.textContent).toContain(content.replace(/#\d{4,}\b/g, ""))+ expect(row?.textContent).toContain(author)+ view.unmount()+ })++ it("renders the real profile and composer without a live account", async () => {+ const profile = render(<CaptureSurface scene="profile" beat={9} />)+ expect(await screen.findByText("Free for dinner")).toBeInTheDocument()+ expect(profile.container.textContent).toContain("Maya")+ profile.unmount()+ const composer = render(<CaptureSurface scene="composer" beat={9} />)+ await waitFor(() => expect(composer.container.querySelector('[data-placeholder="Message /general"]')).not.toBeNull())+ composer.unmount()+ })++ it.each(["identity", "continuity", "provider"])("renders the actual %s motion scene at the requested beat", (scene) => {+ const view = render(<CaptureSurface scene={scene} beat={9} />)+ expect(view.container.querySelector('[data-testid="landing-motion-stage"]')).not.toBeNull()+ expect(view.container.textContent).not.toContain("Unknown")+ expect(view.container.textContent?.length).toBeGreaterThan(50)+ view.unmount()+ })++ it("keeps fixture owners live through effect replay and retires them on unmount", async () => {+ const view = render(<StrictMode><CaptureSurface scene="reply" beat={9} /></StrictMode>)+ await act(async () => { await Promise.resolve() })+ const active = observed.registries.filter(registry => registry.runtime.lifecycle.get().active)+ expect(active.length).toBeGreaterThan(0)+ view.rerender(<StrictMode><CaptureSurface scene="continuity-answer" beat={9} /></StrictMode>)+ expect(view.container.textContent).toContain("Shelly")+ expect(active.every(registry => registry.runtime.lifecycle.get().active)).toBe(true)+ view.unmount()+ await waitFor(() => expect(observed.registries.every(registry => !registry.runtime.lifecycle.get().active)).toBe(true))+ expect(observed.registries.every(registry => registry.queryClient.getQueryCache().getAll().length === 0)).toBe(true)+ })++ it.each(surfaceQueries)("resolves surface query %j without replacing its scene or beat", async (query, scene, beat) => {+ const element = await SurfacePage({ searchParams: Promise.resolve(query) })+ expect(element.type).toBe(CaptureSurface)+ expect(element.props).toEqual({ scene, beat })+ if (scene === "unknown") {+ const view = render(element)+ expect(view.container.querySelector("main")?.children).toHaveLength(1)+ expect(view.container.querySelector("main")?.firstElementChild?.tagName).toBe("STYLE")+ view.unmount()+ }+ })+})diff --git a/src/web/app-store-capture/tsconfig.json b/src/web/app-store-capture/tsconfig.jsonnew file mode 100644index 000000000..823e2a602--- /dev/null+++ b/src/web/app-store-capture/tsconfig.json@@ -0,0 +1,6 @@+{+ "extends": "../tsconfig.json",+ "compilerOptions": { "types": ["../cloudflare-env.d.ts", "node"] },+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", ".next/dev/types/**/*.ts"],+ "exclude": ["node_modules", "**/*.test.ts"]+}diff --git a/src/web/eslint.config.mjs b/src/web/eslint.config.mjsindex 2af17c656..27bce2686 100644--- a/src/web/eslint.config.mjs+++ b/src/web/eslint.config.mjs@@ -32,6 +32,8 @@ const eslintConfig = defineConfig([// Default ignores of eslint-config-next:".next/**","blog/.next/**",+ "app-store-capture/.next/**",+ "app-store-capture/next-env.d.ts","blog/.open-next/**","**/.wrangler/**","out/**",diff --git a/src/web/knip.json b/src/web/knip.jsonindex 921fe251a..6461e79c7 100644--- a/src/web/knip.json+++ b/src/web/knip.json@@ -23,9 +23,14 @@"blog/scripts/**/*.ts","blog/src/content/**/*.mdx","auth/index.ts",- "scripts/**/*.{ts,mjs}"+ "scripts/**/*.{ts,mjs}",+ "app-store-capture/capture.mjs",+ "app-store-capture/next.config.ts",+ "app-store-capture/postcss.config.mjs",+ "app-store-capture/app/**/page.tsx",+ "app-store-capture/app/layout.tsx"],- "project": ["src/**/*.{ts,tsx,css,mdx}", "blog/**/*.{ts,tsx,css,mdx}", "auth/**/*.{ts,tsx,mts}", "scripts/**/*.{ts,mjs}", "test-runtime/**/*.ts"],+ "project": ["src/**/*.{ts,tsx,css,mdx}", "blog/**/*.{ts,tsx,css,mdx}", "auth/**/*.{ts,tsx,mts}", "scripts/**/*.{ts,mjs}", "test-runtime/**/*.ts", "app-store-capture/**/*.{ts,tsx,mjs,css}", "!app-store-capture/.next/**", "!app-store-capture/next-env.d.ts"],"ignoreDependencies": ["cloudflare","rehype-autolink-headings",diff --git a/src/web/package.json b/src/web/package.jsonindex e9e249a5c..22a0567d2 100644--- a/src/web/package.json+++ b/src/web/package.json@@ -17,7 +17,7 @@"verify:zone-output": "tsx scripts/verify-zone-output.ts","preflight:bug-reports": "tsx scripts/preflight-bug-reports.ts","start": "next start",- "lint": "node --max-old-space-size=8192 node_modules/eslint/bin/eslint.js src/ blog/ auth/ scripts/",+ "lint": "node --max-old-space-size=8192 node_modules/eslint/bin/eslint.js src/ blog/ auth/ scripts/ app-store-capture/","deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy","deploy:blog": "pnpm build:blog && opennextjs-cloudflare deploy --config blog/wrangler.toml","deploy:auth": "wrangler deploy --config auth/wrangler.toml",diff --git a/src/web/src/components/home/landing-shell-motion.tsx b/src/web/src/components/home/landing-shell-motion.tsxindex ebaeac055..dac257146 100644--- a/src/web/src/components/home/landing-shell-motion.tsx+++ b/src/web/src/components/home/landing-shell-motion.tsx@@ -402,7 +402,7 @@ const CONTINUITY_DM_MESSAGES: RenderMsg[] = [},]-const CONTINUITY_WORK_MESSAGES: RenderMsg[] = [+export const CONTINUITY_WORK_MESSAGES: RenderMsg[] = [{id: "continuity-work-alli",type: "chat",@@ -452,7 +452,7 @@ const CONTINUITY_LIFE_MESSAGES: RenderMsg[] = [},]-const LANDING_PREVIEW_PROFILES = new Map<string, CommunityProfile>(+export const LANDING_PREVIEW_PROFILES = new Map<string, CommunityProfile>([...MESSAGES,...Object.values(SPACE_MESSAGES).flat(),diff --git a/src/web/src/test/architecture/vitest-workspace-config.test.ts b/src/web/src/test/architecture/vitest-workspace-config.test.tsindex bb317b424..f165c4313 100644--- a/src/web/src/test/architecture/vitest-workspace-config.test.ts+++ b/src/web/src/test/architecture/vitest-workspace-config.test.ts@@ -21,6 +21,7 @@ describe("Web Vitest workspace contract", () => {it("keeps Web Node and DOM ownership explicit and disjoint from auth and runtime", () => {expect(nodeConfig).toMatchObject({test: {+ include: expect.arrayContaining(["app-store-capture/**/*.test.ts"]),exclude: expect.arrayContaining(["**/*.dom.test.{ts,tsx}"]),},});@@ -31,6 +32,7 @@ describe("Web Vitest workspace contract", () => {"blog/**/*.dom.test.{ts,tsx}","scripts/**/*.dom.test.{ts,tsx}","readme-capture/**/*.dom.test.{ts,tsx}",+ "app-store-capture/**/*.dom.test.{ts,tsx}",],},});diff --git a/src/web/src/test/e2e-ui/30-bot-profile-audit-preview.spec.ts b/src/web/src/test/e2e-ui/30-bot-profile-audit-preview.spec.tsindex b2a0e1a3a..86e2cfca9 100644--- a/src/web/src/test/e2e-ui/30-bot-profile-audit-preview.spec.ts+++ b/src/web/src/test/e2e-ui/30-bot-profile-audit-preview.spec.ts@@ -1326,7 +1326,9 @@ for (const scenario of ["same-day", "cross-day"] as const) {await settleSheet(sheet)const scroller = sheet.getByRole("region", { name: "Activity log", exact: true })await expect(scroller).toHaveCount(1)- await expect.poll(() => scroller.evaluate(element => element.scrollTop + element.clientHeight >= element.scrollHeight - 1)).toBe(true)+ await expect.poll(() => scroller.evaluate(element => Boolean(element.querySelector("[data-activity-event-id]"))+ && element.scrollHeight > element.clientHeight+ && element.scrollTop + element.clientHeight >= element.scrollHeight - 1)).toBe(true)for (const [index, target] of [0, 80].entries()) {await scroller.hover()await page.mouse.wheel(0, -1_000_000)diff --git a/src/web/src/test/e2e-ui/55-message-scroll-characterization.spec.ts b/src/web/src/test/e2e-ui/55-message-scroll-characterization.spec.tsindex 60316fa2b..fad7c0364 100644--- a/src/web/src/test/e2e-ui/55-message-scroll-characterization.spec.ts+++ b/src/web/src/test/e2e-ui/55-message-scroll-characterization.spec.ts@@ -171,6 +171,7 @@ async function establishScrollDistancePrecondition(scroller: Locator,label: string,targetDistanceToEnd: number,+ tolerance = 1,): Promise<{ scrollTop: number; scrollHeight: number; clientHeight: number; distanceToEnd: number }> {const readGeometry = () => scroller.evaluate((element) => ({scrollTop: element.scrollTop,@@ -180,7 +181,7 @@ async function establishScrollDistancePrecondition(})).then((geometry) => ({...geometry,targetDistanceToEnd,- atTarget: Math.abs(geometry.distanceToEnd - targetDistanceToEnd) <= 1,+ atTarget: Math.abs(geometry.distanceToEnd - targetDistanceToEnd) <= tolerance,}))const driveToTarget = async () => {const geometry = await readGeometry()@@ -895,7 +896,7 @@ test.describe("message scroll characterization", () => {await attachLocalTrace()for (const author of ["bob", "alice"] as const) {for (const distance of [0, 1, 2, 20, 100, 101]) {- await establishScrollDistancePrecondition(scroller, `${author}-${distance}`, distance)+ await establishScrollDistancePrecondition(scroller, `${author}-${distance}`, distance, 0.01)const before = await waitForCommittedGeometry(scroller)expect(before.firstVisibleId).not.toBeNull()expect(Math.abs(before.distanceToEnd - distance)).toBeLessThanOrEqual(0.01)diff --git a/src/web/tsconfig.eslint.json b/src/web/tsconfig.eslint.jsonindex 7f9aa31d6..25de43e55 100644--- a/src/web/tsconfig.eslint.json+++ b/src/web/tsconfig.eslint.json@@ -8,7 +8,8 @@"include": ["src/**/*","src/app/.well-known/**/*.ts",- "scripts/**/*"+ "scripts/**/*",+ "app-store-capture/**/*"],"exclude": ["node_modules"diff --git a/src/web/vitest.config.ts b/src/web/vitest.config.tsindex 0d4320f79..17c24b481 100644--- a/src/web/vitest.config.ts+++ b/src/web/vitest.config.ts@@ -15,7 +15,7 @@ export default mergeConfig(shared, defineConfig({name: "web-node",testTimeout: 30_000,hookTimeout: 30_000,- include: ["src/**/*.test.ts", "scripts/**/*.test.ts", "blog/**/*.test.ts", "readme-capture/**/*.test.ts"],+ include: ["src/**/*.test.ts", "scripts/**/*.test.ts", "blog/**/*.test.ts", "readme-capture/**/*.test.ts", "app-store-capture/**/*.test.ts"],exclude: ["**/*.dom.test.{ts,tsx}", "src/test/e2e/**", "src/test/e2e-ui/**"],},}))diff --git a/src/web/vitest.dom.config.ts b/src/web/vitest.dom.config.tsindex 9767b6c7a..347ab4a55 100644--- a/src/web/vitest.dom.config.ts+++ b/src/web/vitest.dom.config.ts@@ -21,6 +21,7 @@ export default mergeConfig(shared, defineConfig({"blog/**/*.dom.test.{ts,tsx}","scripts/**/*.dom.test.{ts,tsx}","readme-capture/**/*.dom.test.{ts,tsx}",+ "app-store-capture/**/*.dom.test.{ts,tsx}",],exclude: ["src/test/e2e/**", "src/test/e2e-ui/**"],setupFiles: ["src/test/react-dom-setup.ts"],