diff --git a/.agents/skills/lilo-release-media/SKILL.md b/.agents/skills/lilo-release-media/SKILL.md new file mode 100644 index 000000000..7cec6aa78 --- /dev/null +++ b/.agents/skills/lilo-release-media/SKILL.md @@ -0,0 +1,31 @@ +--- +name: lilo-release-media +description: Author and quality-gate HyperFrames announcements or screenshots from genuine native Lilo captures. +--- + +# Lilo release media + +Use the exact release notes and changed implementation to choose the story. An interaction gets a HyperFrames film; a finished visual state gets a screenshot; routine fixes stay text-only. Never substitute a screenshot for a failed required film. `make release-media-author` checks known capture capabilities and exact source notes, including pending changes. Unknown visual work fails closed: add its native capture and storyboard in the feature pull request, so release preparation needs no editorial work after merge. + +Capture the compiled native app with a disposable profile, owned example.com pages and synthetic call handlers. Extend concrete cases in `LiloTests/Window/ReleaseMediaCaptureTests.swift`. Keep actual app version/build/source commit in every receipt, separately from the release being illustrated. Never recreate browser controls or use the website demo as evidence. + +Author literal editable HTML scenes under `release-media/hyperframes/`, with one paused GSAP timeline per composition, registered after synchronous construction. Use local assets, stable timed clip IDs, explicit durations and native state changes. No timers, unseeded randomness or network-fetched UI. Follow the approved 0.8.0 film for readable typography, deliberate transitions and pointer actions. Its share-only variant avoids announcing the address-bar feature in an unrelated release. + +Use real source geometry for pointer targets and transparent PNG cutouts. Preserve captured RGB bytes and canvas sizes; change only alpha outside the native interface. Keep the UI’s own surfaces and complete window/page content. Check physical pixel density before enlargement. No CSS blur or 3D tilt on native UI. Titles settle while the product acts; do not add idle motion to satisfy a gate. + +Use Make: + +1. `make release-media-author` +2. `make release-media-capture RELEASE=x.y.z FIXTURE=a.b.c` +3. `make release-media-import release-media-render RELEASE=x.y.z` +4. `make release-media-check release-media-test release-media-inspect` +5. Review encoded frames at 342px, play the English/French changelog at desktop/mobile widths, and check native What’s New using `make release-media-review RELEASE=x.y.z`. Restore `make ui-build` after the native preview. +6. `make validate` and the release-media CI job must pass. + +`make release-media-ci RELEASE=x.y.z` runs selection, fresh native capture, import, render, inspection, bundled What’s New playback and publication checks. Tagged CI captures the exact source commit and app version before signing; deployment uses that run’s validated website artifact. A failed audit, missing capability, broken capture, stale hash or failed media check blocks publication. Preserve a catalog publication kill switch; never re-enable it merely to make a workflow green. + +Films use lossless PNG capture and 1080p60 H.264/AAC. Strict HyperFrames checks cover structure, runtime, layout, contrast, motion and audio. Encoded checks verify frame count, decode, sound, bounded motion, native/recipe/output hashes, cutout RGB preservation and poster similarity. Announcement reading holds may last up to three seconds; signal checks complement visual review rather than judging artistic quality. + +Use the committed CC0 soundtrack and licensed editorial Foley. Music rights and hashes live in `release-media/public/audio/music.license.json`; attribution is optional, so no music credit overlay is needed. Never remove a required credit from a different track. Keep sound controls, explicit play, keyboard access and offscreen pause in both compact players. + +See `release-media/README.md` and `docs/RELEASING.md` for production commands and Alexays’s one-time Cloudflare release-environment setup. diff --git a/.changes/unreleased/Changed-20261101-125840.670751.yaml b/.changes/unreleased/Changed-20261101-125840.670751.yaml new file mode 100644 index 000000000..78ccbd8fc --- /dev/null +++ b/.changes/unreleased/Changed-20261101-125840.670751.yaml @@ -0,0 +1,3 @@ +kind: Changed +body: Release highlights use focused native videos with sound, screenshots when motion adds little, and text alone for routine fixes. +time: 2026-11-01T12:58:40.670751+02:00 diff --git a/.changes/unreleased/Fixed-20261101-134845.757200.yaml b/.changes/unreleased/Fixed-20261101-134845.757200.yaml new file mode 100644 index 000000000..ae39f599c --- /dev/null +++ b/.changes/unreleased/Fixed-20261101-134845.757200.yaml @@ -0,0 +1,3 @@ +kind: Fixed +body: Returning to a call cancels its automatic Picture-in-Picture opening, including a delayed response from the page. +time: 2026-11-01T13:48:45.7572+02:00 diff --git a/.changes/unreleased/Fixed-20261102-213555.701648.yaml b/.changes/unreleased/Fixed-20261102-213555.701648.yaml new file mode 100644 index 000000000..c77e1a87d --- /dev/null +++ b/.changes/unreleased/Fixed-20261102-213555.701648.yaml @@ -0,0 +1,3 @@ +kind: Fixed +body: Release illustrations show localized captions and identify their English text. +time: 2026-11-02T21:35:55.701648+02:00 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..49ea812f7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Preserve the creator's original license bytes and checksum. +release-media/public/audio/music.LICENSE.txt -text whitespace=cr-at-eol diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b45838d87..46bdb4249 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,8 @@ jobs: timeout-minutes: 5 outputs: code: ${{ steps.diff.outputs.code }} + media: ${{ steps.diff.outputs.media }} + media-render: ${{ steps.diff.outputs.media-render }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -33,12 +35,26 @@ jobs: BASE: ${{ github.event.pull_request.base.sha || github.event.before }} run: | code=true + media=true + media_render=true if git cat-file -e "$BASE^{commit}" 2>/dev/null; then files=$(git diff --name-only "$BASE" "$GITHUB_SHA") printf '%s\n' "$files" | grep -qvE '^(docs/|\.changes/)|\.md$' \ || printf '%s\n' "$files" | grep -qx COMPATIBILITY.md || code=false + media=false + media_render=false + inputs=$(printf '%s\n' "$files" | grep -vE '\.md$|^docs/' || true) + if printf '%s\n' "$inputs" | grep -qE '^(release-media/|LiloTests/(Support/ReleaseMediaCapture\.swift|Support/TestRunCleanup\.swift|Window/ReleaseMediaCaptureTests\.swift)$|Makefile$|\.github/workflows/(build|release)\.yml$)'; then + media_render=true + media=true + fi + if printf '%s\n' "$inputs" | grep -qE '^(site/|lilo-ui/|Lilo/Bridge/ChromeUISchemeHandler\.swift$|LiloTests/Bridge/ChromeUISchemeHandlerTests\.swift$)'; then + media=true + fi fi echo "code=$code" >> "$GITHUB_OUTPUT" + echo "media=$media" >> "$GITHUB_OUTPUT" + echo "media-render=$media_render" >> "$GITHUB_OUTPUT" release-tooling: name: Release tooling and website @@ -51,7 +67,37 @@ jobs: node-version-file: 'site/.nvmrc' cache: 'npm' cache-dependency-path: site/package-lock.json - - run: make release-status release-test site-check site-test site-deploy-check + - run: make release-status release-test release-media-author release-media-test release-media-publish-check site-check site-test site-deploy-check + + release-media: + name: Release media quality + needs: changes + if: needs.changes.outputs.media == 'true' + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version-file: '.nvmrc' + - if: needs.changes.outputs.media-render == 'true' + run: sudo apt-get update && sudo apt-get install -y ffmpeg + - if: needs.changes.outputs.media-render == 'true' + run: make release-media-audit + - name: Author and render the native changelog archive + if: needs.changes.outputs.media-render == 'true' + run: make release-media-author release-media-render release-media-check release-media-test release-media-inspect + # Measure playback without competing software decoders on the hosted runner. + - run: make site-e2e SITE_E2E_ARGS='tests/changelog.spec.ts tests/release-media.spec.ts --workers=1' + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + if: always() + with: + name: release-media-review-${{ github.sha }} + path: | + release-media/assets/ + build/release-media/inspection/ + site/test-results/ + if-no-files-found: ignore ui: name: UI (lint, test, build, end-to-end) @@ -197,9 +243,8 @@ jobs: path: | Lilo/Generated/ChromeUIAssets.swift Lilo/Generated/NativeStrings.swift - key: ui-${{ steps.ui-lock.outputs.hash }}-${{ hashFiles('lilo-ui/src/**', 'lilo-ui/index.html', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }} + key: ui-${{ steps.ui-lock.outputs.hash }}-${{ hashFiles('release-media/backlog.json', 'release-media/catalog.ts', 'release-media/assets/**/*.png', 'release-media/assets/**/*.mp4', '.changes/v*.md', 'lilo-ui/package.json', 'lilo-ui/releaseNotesPlugin.ts', 'lilo-ui/src/**', 'lilo-ui/index.html', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }} - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - if: steps.ui-cache.outputs.cache-hit != 'true' with: node-version-file: '.nvmrc' cache: 'npm' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90999403c..770aa0235 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,8 @@ # APPLE_NOTARY_APPLE_ID - Apple ID for notarytool # APPLE_NOTARY_PASSWORD - app-specific password for notarytool # SPARKLE_ED_PRIVATE_KEY - Sparkle EdDSA private key (generate_keys -x) that signs the appcast +# CLOUDFLARE_API_TOKEN - scoped Workers deployment token for lilo-site +# CLOUDFLARE_ACCOUNT_ID - Cloudflare account that owns getlilo.app name: Release @@ -23,7 +25,52 @@ concurrency: cancel-in-progress: false jobs: + release-media: + name: Native release media + if: github.repository == 'Alexays/Lilo' + runs-on: xcode-27 + timeout-minutes: 60 + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Setup Node + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version-file: '.nvmrc' + - name: Check the tag is a prepared release + run: make release-tag-check TAG="$GITHUB_REF_NAME" + - name: Install native capture and video tools + run: | + xcodebuild -downloadComponent MetalToolchain + brew install ffmpeg + - name: Capture, author, render and check the release + run: make release-media-ci RELEASE="${GITHUB_REF_NAME#v}" + - name: Build the website from the same verified media + run: make site-generate + - name: Preserve the verified native and website inputs + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: release-media-${{ github.sha }} + overwrite: true + path: | + release-media/ + !release-media/node_modules/ + site/dist/ + if-no-files-found: error + - name: Preserve failed capture and quality diagnostics + if: failure() + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: release-media-failure-${{ github.sha }} + path: | + build/release-media/ + release-media/assets/ + if-no-files-found: ignore + build-and-sign: + needs: release-media if: github.repository == 'Alexays/Lilo' # The signing and notarization secrets live in this environment, which only v* tags may deploy to: # a workflow pushed on any other branch cannot read them. @@ -40,14 +87,19 @@ jobs: with: persist-credentials: false - # Fails in seconds what would otherwise fail after an hour of notarization, or ship a build Sparkle never offers. - - name: Check the tag is a prepared release + - name: Setup Node + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version-file: '.nvmrc' + - name: Download this run's verified native media + uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 + with: + name: release-media-${{ github.sha }} + path: . + - name: Recheck the tag and media before signing run: | - test -f ".changes/$GITHUB_REF_NAME.md" \ - || { echo "::error::.changes/$GITHUB_REF_NAME.md is missing: run make release-version and commit it before tagging."; exit 1; } - grep -qx "MARKETING_VERSION = ${GITHUB_REF_NAME#v}" Xcode/Configs/Base.xcconfig \ - || { echo "::error::Xcode/Configs/Base.xcconfig is not at ${GITHUB_REF_NAME#v}."; exit 1; } - make release-status + make release-tag-check TAG="$GITHUB_REF_NAME" + make release-media-publish-check RELEASE="${GITHUB_REF_NAME#v}" - name: Show selected Xcode run: xcodebuild -version @@ -55,28 +107,8 @@ jobs: - name: Install Metal Toolchain run: xcodebuild -downloadComponent MetalToolchain - # The generated UI sources, also saved by build.yml's release-build job. The key leaves out the lockfile's - # version lines, which a release bumps: a dependency change still shows in its resolved and integrity lines. - - name: Hash the UI lockfile - id: ui-lock - run: echo "hash=$(grep -v '"version":' lilo-ui/package-lock.json | shasum -a 256 | cut -c1-16)" >> "$GITHUB_OUTPUT" - - name: Restore the UI build - id: ui-cache - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 - with: - path: | - Lilo/Generated/ChromeUIAssets.swift - Lilo/Generated/NativeStrings.swift - key: ui-${{ steps.ui-lock.outputs.hash }}-${{ hashFiles('lilo-ui/src/**', 'lilo-ui/index.html', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }} - - name: Setup Node - if: steps.ui-cache.outputs.cache-hit != 'true' - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version-file: '.nvmrc' - # Before any secret is in reach: no install script runs. The bridge bundles are committed, and checked against - # bridge-src by CI on main. - - name: Build the UI - if: steps.ui-cache.outputs.cache-hit != 'true' + # Native What's New must embed the just-verified media, not an earlier main build's cached bundle. + - name: Build the UI with the verified media run: | npm --prefix lilo-ui ci --ignore-scripts make ui-build @@ -189,3 +221,45 @@ jobs: run: | security delete-keychain "$RUNNER_TEMP/build.keychain" || true rm -f "$RUNNER_TEMP/cert.p12" + + deploy-site: + name: Deploy verified changelog website + needs: [release-media, build-and-sign] + if: github.repository == 'Alexays/Lilo' + environment: release + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Check Cloudflare deployment is configured + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + run: | + if [ -z "$CLOUDFLARE_API_TOKEN" ] || [ -z "$CLOUDFLARE_ACCOUNT_ID" ]; then + echo "::error::Alexays must add CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID to the release environment. See docs/RELEASING.md#cloudflare-deployment-once. The GitHub release must remain a draft until this job succeeds." + exit 1 + fi + - name: Checkout the release commit + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.sha }} + persist-credentials: false + - name: Setup Node + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version-file: 'site/.nvmrc' + - name: Download this run's verified website and media + uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 + with: + name: release-media-${{ github.sha }} + path: . + - name: Install pinned deployment dependencies + run: npm --prefix site ci --ignore-scripts + - name: Recheck and deploy the verified website without rebuilding + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + run: | + make release-tag-check TAG="$GITHUB_REF_NAME" + make release-media-publish-check RELEASE="${GITHUB_REF_NAME#v}" + make site-deploy-verified diff --git a/.gitignore b/.gitignore index f79421d1f..40a2f773b 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,9 @@ Vendor/ # Node / Svelte node_modules/ +.remotion/ +lilo-ui/public/release-media/* +!lilo-ui/public/release-media/.gitkeep site/.wrangler/ site/.astro/ site/dist/ diff --git a/Lilo.xcodeproj/project.pbxproj b/Lilo.xcodeproj/project.pbxproj index 75bdd1a57..81c9d662b 100644 --- a/Lilo.xcodeproj/project.pbxproj +++ b/Lilo.xcodeproj/project.pbxproj @@ -293,6 +293,7 @@ 720EEDBF9BC1B4E69E487858 /* TraditionalChineseLocalizationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E6E4C686494304EB3C12561 /* TraditionalChineseLocalizationTests.swift */; }; 733FF31D58F45F81D359C723 /* NativeMessaging.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0F387BD7442412B893689E36 /* NativeMessaging.swift */; }; 7347B5EE09265AB1363C7C3C /* QRCodeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1957E0C36D17C64137430863 /* QRCodeTests.swift */; }; + 7363D33C1CF6FD94E68AE402 /* release-media in Resources */ = {isa = PBXBuildFile; fileRef = 2D0A9E30F6B3FBDFADF75B3C /* release-media */; }; 7379D653347D408D4DA830D2 /* AppleScriptSupport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E2D3017282732FA173A586B /* AppleScriptSupport.swift */; }; 743016EA91C1FE0D03CC9B20 /* WKFeatureFlags.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6A559C549D5921A92A75791 /* WKFeatureFlags.swift */; }; 743729CA39F3F4BF097F570B /* TabBridgeHandlerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20DD2266C3DA5546A856F717 /* TabBridgeHandlerTests.swift */; }; @@ -458,6 +459,7 @@ AA1981619C8086B31D41309C /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = BF852971C441B1B9E5ED8E4A /* InfoPlist.strings */; }; AA3A3578AC5689268E862067 /* WindowChromeColorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97C395055212534811683918 /* WindowChromeColorTests.swift */; }; AA428E87D045690C31D1B8CE /* AppShortcuts.strings in Resources */ = {isa = PBXBuildFile; fileRef = 292F5F7373D512DF94EAB7C2 /* AppShortcuts.strings */; }; + AA555C325D6DECDBC5555CCC /* ReleaseMediaCaptureTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC423BCE8DBDE092FDE06546 /* ReleaseMediaCaptureTests.swift */; }; AA5BEF2E035E8E2916D9AB8C /* ExtensionNativeMessaging.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC431FF6C7CE8C14541FAF7B /* ExtensionNativeMessaging.swift */; }; AAE89A53D43B8BA4E8E7E2C3 /* TabFolder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7A3D97C68ECC17D5A7E28123 /* TabFolder.swift */; }; AB22EA9CB2BCA1DA8D0E86EE /* GapCallSupport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22AD4BA8211AEC8D9AB6672F /* GapCallSupport.swift */; }; @@ -593,6 +595,7 @@ D9A96ECC13EA19DC0D7E0EAB /* ProfileContext.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA9A1963E682A692AD6BC6DF /* ProfileContext.swift */; }; DA1DA94A0430E79326D8C699 /* DownloadDockProgressControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56DF492E9AC4C1ECC2684CE3 /* DownloadDockProgressControllerTests.swift */; }; DA32A5FD99B3F50E6A97CD22 /* SpaceTabMutationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6100E79970018F6E49982C2A /* SpaceTabMutationTests.swift */; }; + DA3D541AEC020671173C10C0 /* ReleaseMediaCapture.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57E906D33DFB1DB3BDF44E90 /* ReleaseMediaCapture.swift */; }; DB692D4081B04969B02106B2 /* SystemBridgeHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BC9EBCFF90134D8239518B9 /* SystemBridgeHandler.swift */; }; DB831A81D79B1EC1E2C28B87 /* ExtensionDiagnostics.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81AB35095009F1E4C0876C0F /* ExtensionDiagnostics.swift */; }; DBE942D7587C6CF9CF070F96 /* RecentTabsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 679CBA4FBF82EC3604570BFB /* RecentTabsTests.swift */; }; @@ -873,6 +876,7 @@ 2C5EAC944C4FA42F1A74E759 /* TerminalView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TerminalView.swift; sourceTree = ""; }; 2C5F024425A45722773238EE /* AgentFolders.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AgentFolders.swift; sourceTree = ""; }; 2C7F940372202EA7DFB8229B /* AgentInput.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AgentInput.swift; sourceTree = ""; }; + 2D0A9E30F6B3FBDFADF75B3C /* release-media */ = {isa = PBXFileReference; lastKnownFileType = folder; name = "release-media"; path = "lilo-ui/public/release-media"; sourceTree = SOURCE_ROOT; }; 2D24BF900BE3A4131D4378A9 /* ProceduralCosmetics.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = ProceduralCosmetics.js; sourceTree = ""; }; 2D8452792228C102FF9E9860 /* ExtensionLifecycleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExtensionLifecycleTests.swift; sourceTree = ""; }; 2DFCC36C22B7A6970C465AF4 /* TerminalFrameBuilderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TerminalFrameBuilderTests.swift; sourceTree = ""; }; @@ -990,6 +994,7 @@ 56D7CB14DA66713EBFEFE3D2 /* SessionsBridgeHandlerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SessionsBridgeHandlerTests.swift; sourceTree = ""; }; 56DF492E9AC4C1ECC2684CE3 /* DownloadDockProgressControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DownloadDockProgressControllerTests.swift; sourceTree = ""; }; 57AEC88F04C1DC1D3BF3EBFC /* SessionRestorePreloadTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SessionRestorePreloadTests.swift; sourceTree = ""; }; + 57E906D33DFB1DB3BDF44E90 /* ReleaseMediaCapture.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReleaseMediaCapture.swift; sourceTree = ""; }; 581932D62F12CC8633923AF5 /* ViewSourceSchemeHandlerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewSourceSchemeHandlerTests.swift; sourceTree = ""; }; 585A1CE3451EE726F20A8405 /* InfoPlist.strings */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = InfoPlist.strings; path = it.lproj/InfoPlist.strings; sourceTree = ""; }; 585E6783111B9F6C22D07D48 /* InfoPlist.strings */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = InfoPlist.strings; path = pl.lproj/InfoPlist.strings; sourceTree = ""; }; @@ -1278,6 +1283,7 @@ BB6D2F424BD81028CBC3F2D7 /* BuildIdentityTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BuildIdentityTests.swift; sourceTree = ""; }; BBB23A4535CD96F049DB84BE /* BrowserStateStoreTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrowserStateStoreTests.swift; sourceTree = ""; }; BBD06A0A69230BDB140C509B /* WindowExtensionAdapterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WindowExtensionAdapterTests.swift; sourceTree = ""; }; + BC423BCE8DBDE092FDE06546 /* ReleaseMediaCaptureTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReleaseMediaCaptureTests.swift; sourceTree = ""; }; BC75B45A1ECC4EB7438C3E34 /* GlyphAtlas.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlyphAtlas.swift; sourceTree = ""; }; BD4066E4F3CD717A035E1262 /* FullDiskAccessPanel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FullDiskAccessPanel.swift; sourceTree = ""; }; BD72EED90A74A2317DEDC69B /* ViewSourceSchemeHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewSourceSchemeHandler.swift; sourceTree = ""; }; @@ -2228,6 +2234,7 @@ 758C964D56746BC82A42145F /* BrowserStateFixtureSupport.swift */, 01838BCE08BCAEA786362E06 /* ExtensionRegistryFixture.swift */, 22AD4BA8211AEC8D9AB6672F /* GapCallSupport.swift */, + 57E906D33DFB1DB3BDF44E90 /* ReleaseMediaCapture.swift */, 5135E1934C469BB54C50A03D /* SidebarState.swift */, 431ABDDD13D3442436E79EA8 /* TemporaryBrowserContext.swift */, 2BF2A6D8AA9663C63227724B /* TemporaryProfileDatabase.swift */, @@ -2628,6 +2635,7 @@ isa = PBXGroup; children = ( 2142A3F2FD9FF647C3069FF7 /* password-managers */, + 2D0A9E30F6B3FBDFADF75B3C /* release-media */, ); path = public; sourceTree = ""; @@ -2694,6 +2702,7 @@ 7C5A63DD73D3B6D7E5BB7E77 /* PermissionRequestQueueTests.swift */, D127FE22E412BD3725926CC1 /* ProfileSwitchTests.swift */, 1957E0C36D17C64137430863 /* QRCodeTests.swift */, + BC423BCE8DBDE092FDE06546 /* ReleaseMediaCaptureTests.swift */, 42E6A2F13825700070354B2E /* SharedSpaceRuntimeTests.swift */, 095C1DCC47901E0E37EE95BB /* TabContextMenuActionsTests.swift */, 4B523A389F7E8333256B9883 /* TabLayoutTests.swift */, @@ -2915,6 +2924,7 @@ EAE2D8439E5F00188A79A185 /* content-blocker-rules.json in Resources */, 3014BDAE6885561DD0059830 /* password-managers in Resources */, 80E69F9C86FA46A7EBB45114 /* public-suffix-list.dat in Resources */, + 7363D33C1CF6FD94E68AE402 /* release-media in Resources */, ECECE200138640A7DAAB9707 /* shell-integration in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -3466,6 +3476,8 @@ 3F948185631F175905F3E8C8 /* ReaderModeTests.swift in Sources */, 37CC33EAD9437ECD51F60FE4 /* RealExtensionSmokeTests.swift in Sources */, DBE942D7587C6CF9CF070F96 /* RecentTabsTests.swift in Sources */, + DA3D541AEC020671173C10C0 /* ReleaseMediaCapture.swift in Sources */, + AA555C325D6DECDBC5555CCC /* ReleaseMediaCaptureTests.swift in Sources */, 98DFE6A65911C687B0589B99 /* RestoredTabActivationTests.swift in Sources */, 7A9B959DF963EBE1C2776DBE /* RuntimeGapAPITests.swift in Sources */, A2580731CDA533BBD2F4EA79 /* RuntimeTabProjectionTests.swift in Sources */, diff --git a/Lilo/Bridge/ChromeUISchemeHandler.swift b/Lilo/Bridge/ChromeUISchemeHandler.swift index 471088962..8e866b75d 100644 --- a/Lilo/Bridge/ChromeUISchemeHandler.swift +++ b/Lilo/Bridge/ChromeUISchemeHandler.swift @@ -37,6 +37,10 @@ final class ChromeUISchemeHandler: NSObject, WKURLSchemeHandler { return } let path = Self.assetPath(for: url) + if path.hasPrefix("release-media/") { + serveReleaseMedia(path: path, task: urlSchemeTask, url: url) + return + } if path.hasPrefix(Self.fileIconPrefix) { let data = Self.fileIconPNG(path: path) urlSchemeTask.didReceive(URLResponse( @@ -104,6 +108,53 @@ final class ChromeUISchemeHandler: NSObject, WKURLSchemeHandler { func webView(_ webView: WKWebView, stop urlSchemeTask: WKURLSchemeTask) {} + private func serveReleaseMedia(path: String, task: WKURLSchemeTask, url: URL) { + guard path.range(of: #"^release-media/[0-9]+\.[0-9]+\.[0-9]+/[a-z0-9-]+\.(png|mp4)$"#, options: .regularExpression) != nil else { + task.didFailWithError(URLError(.fileDoesNotExist)); return + } + let parts = path.split(separator: "/") + guard let file = Bundle.main.url(forResource: String(parts[2]), withExtension: nil, subdirectory: "release-media/\(parts[1])"), + let data = try? Data(contentsOf: file, options: .mappedIfSafe) else { + task.didFailWithError(URLError(.fileDoesNotExist)); return + } + let requested = task.request.value(forHTTPHeaderField: "Range") + let range = Self.mediaByteRange(requested, length: data.count) + var headers = ["Content-Type": path.hasSuffix(".mp4") ? "video/mp4" : "image/png", "Accept-Ranges": "bytes"] + let status: Int + if let range { + status = requested == nil ? 200 : 206 + headers["Content-Length"] = String(range.count) + if requested != nil { headers["Content-Range"] = "bytes \(range.lowerBound)-\(range.upperBound - 1)/\(data.count)" } + } else { + status = 416 + headers["Content-Length"] = "0" + headers["Content-Range"] = "bytes */\(data.count)" + } + guard let response = HTTPURLResponse(url: url, statusCode: status, httpVersion: "HTTP/1.1", headerFields: headers) else { + task.didFailWithError(URLError(.badServerResponse)); return + } + task.didReceive(response) + if let range { task.didReceive(data.subdata(in: range)) } + task.didFinish() + } + + /// WebKit asks for byte ranges to inspect and seek an MP4 without loading the whole film. + static func mediaByteRange(_ header: String?, length: Int) -> Range? { + guard length > 0 else { return nil } + guard let header else { return 0.. 0 else { return nil } + return max(0, length - suffix)..= 0, start < length else { return nil } + if parts[1].isEmpty { return start..= start else { return nil } + return start..<(min(end, length - 1) + 1) + } + /// The Finder icon for `file-icon/`, rendered once per extension. private static func fileIconPNG(path: String) -> Data { if let cached = dataByPath[path] { return cached } diff --git a/Lilo/Engine/MediaControl.swift b/Lilo/Engine/MediaControl.swift index 00e45a46c..59a796af4 100644 --- a/Lilo/Engine/MediaControl.swift +++ b/Lilo/Engine/MediaControl.swift @@ -162,7 +162,8 @@ extension WKWebViewTab { /// some accounts only, where its menu's opening works for all. func enterDocumentPictureInPicture() { guard callControls.hasPictureInPictureAction, wake() else { return } - wkWebView.evaluateJavaScript(PageWorld.push("media", ["enterpictureinpicture", "useraction"]), in: nil, in: PageWorld.bridgeWorld) + // Only the pending automatic opening authorizes the response; a gesture would outlive its cancellation. + WebViewPrivateAccessors(wkWebView).evaluateWithoutUserGesture(PageWorld.push("media", ["enterpictureinpicture", "useraction"]), in: nil, in: PageWorld.bridgeWorld) } /// `action` is play, pause, nexttrack, previoustrack, or one of `callActions` the page handles. diff --git a/LiloTests/Bridge/ChromeUISchemeHandlerTests.swift b/LiloTests/Bridge/ChromeUISchemeHandlerTests.swift index 33f88adad..932d1fd83 100644 --- a/LiloTests/Bridge/ChromeUISchemeHandlerTests.swift +++ b/LiloTests/Bridge/ChromeUISchemeHandlerTests.swift @@ -3,6 +3,16 @@ import XCTest @testable import Lilo final class ChromeUISchemeHandlerTests: XCTestCase { + func testMediaRangesSupportMetadataReadsSeekingAndSuffixes() { + XCTAssertEqual(ChromeUISchemeHandler.mediaByteRange(nil, length: 100), 0..<100) + XCTAssertEqual(ChromeUISchemeHandler.mediaByteRange("bytes=0-1", length: 100), 0..<2) + XCTAssertEqual(ChromeUISchemeHandler.mediaByteRange("bytes=40-", length: 100), 40..<100) + XCTAssertEqual(ChromeUISchemeHandler.mediaByteRange("bytes=-20", length: 100), 80..<100) + XCTAssertEqual(ChromeUISchemeHandler.mediaByteRange("bytes=80-200", length: 100), 80..<100) + for header in ["bytes=100-", "bytes=30-20", "bytes=0-1,3-4", "bytes=-0", "bytes=0-garbage", "items=0-1"] { + XCTAssertNil(ChromeUISchemeHandler.mediaByteRange(header, length: 100), header) + } + } func testAssetPathMapsURLsToEmbeddedKeys() { XCTAssertEqual( ChromeUISchemeHandler.assetPath(for: URL(string: "lilo-chrome://ui/index.html")!), diff --git a/LiloTests/PictureInPicture/DocumentPiPControllerTests.swift b/LiloTests/PictureInPicture/DocumentPiPControllerTests.swift index c50070544..45dbec1da 100644 --- a/LiloTests/PictureInPicture/DocumentPiPControllerTests.swift +++ b/LiloTests/PictureInPicture/DocumentPiPControllerTests.swift @@ -268,7 +268,14 @@ final class DocumentPiPControllerTests: XCTestCase { context.map { MainWindowController.prepareDocumentPiP(in: $0, webView: webView, size: size, userActivated: activated) } ?? false } engine.wkWebView.loadHTMLString(html + "

call

", baseURL: URL(string: "https://call.example/")) - _ = await pollUntil(timeout: 5) { (try? await engine.wkWebView.evaluateJavaScript("document.body?.textContent === 'call'")) as? Bool == true } + let loaded = await pollUntil(timeout: 5) { + await withCheckedContinuation { continuation in + WebViewPrivateAccessors(engine.wkWebView).evaluateWithoutUserGesture("document.body?.textContent === 'call'") { value in + continuation.resume(returning: value as? Bool == true) + } + } + } + XCTAssertTrue(loaded) addTeardownBlock { @MainActor in window.documentPiP.close() browserContext.tearDown() @@ -422,7 +429,7 @@ final class DocumentPiPControllerTests: XCTestCase { let (_, window, engine) = try await makeWindowTab(""" """) @@ -431,8 +438,17 @@ final class DocumentPiPControllerTests: XCTestCase { window.autoEnterDocumentPiP(engine) window.showContentView(for: engine) - let answered = await pollUntil(timeout: 5) { (try? await engine.wkWebView.evaluateJavaScript("window.late")) as? String == "NotAllowedError" } - XCTAssertTrue(answered, "the user is back on the call: a late answer opens no window over it") + // Observing the page must not create the gesture whose absence this test verifies. + var answer: String? + _ = await pollUntil(timeout: 5) { + await withCheckedContinuation { continuation in + WebViewPrivateAccessors(engine.wkWebView).evaluateWithoutUserGesture("window.late") { value in + answer = value as? String + continuation.resume(returning: answer != nil) + } + } + } + XCTAssertEqual(answer, "NotAllowedError", "the user is back on the call: a late answer opens no window over it") XCTAssertNil(window.documentPiP.webView) } diff --git a/LiloTests/Support/ReleaseMediaCapture.swift b/LiloTests/Support/ReleaseMediaCapture.swift new file mode 100644 index 000000000..04b856b94 --- /dev/null +++ b/LiloTests/Support/ReleaseMediaCapture.swift @@ -0,0 +1,271 @@ +import AppKit +import CryptoKit +import ScreenCaptureKit +import WebKit +import XCTest +@testable import Lilo + +@MainActor +final class ReleaseMediaCapture { + let fixture: TemporaryBrowserContext + let controller: MainWindowController + let space: Space + let output: URL + let version: String + let feature: String + private let backdrop: NSWindow + private let cachedLayout = (position: UserDefaults.lilo.string(forKey: "cachedTabPosition"), + address: UserDefaults.lilo.string(forKey: "cachedAddressPlacement")) + private var assets: [[String: Any]] = [] + var context: BrowserContext { fixture.context } + var chrome: WKWebView { controller.chromeWebView } + + init(version: String, feature: String) async throws { + let env = ProcessInfo.processInfo.environment + let requested = env["LILO_RELEASE_MEDIA_VERSION", default: ""] + let fixtureVersion = env["LILO_RELEASE_MEDIA_FIXTURE_VERSION"] ?? requested + guard let directory = env["LILO_RELEASE_MEDIA_OUT"], + fixtureVersion.isEmpty || fixtureVersion == version || "\(fixtureVersion)-announcement" == version else { + throw XCTSkip("Opt-in native release media capture") + } + let addressCapture = version == "0.8.0-announcement" + self.version = requested.isEmpty ? (addressCapture ? "0.8.0" : version) : requested + self.feature = feature + let releaseOutput = URL(fileURLWithPath: directory).appendingPathComponent(self.version) + output = addressCapture ? releaseOutput.appendingPathComponent("address-bar") : releaseOutput + try FileManager.default.createDirectory(at: output, withIntermediateDirectories: true) + try? FileManager.default.removeItem(at: output.appendingPathComponent("capture.json")) + try? FileManager.default.removeItem(at: output.appendingPathComponent("failure.json")) + fixture = try await TemporaryBrowserContext() + let context = fixture.context + context.settingsStore.set("onboardingCompleted", value: "true") + context.settingsStore.set("theme", value: "dark") + context.settingsStore.set("tabPosition", value: "left") + context.settingsStore.set("addressPlacement", value: "tabs") + context.settingsStore.didPromptDefaultBrowser = true + let profile = try context.profileManager.createProfile(name: "Studio") + space = try context.spaceManager.createSpace(name: "Research", icon: "🌿", color: "#8b79c6", profileId: profile.id) + controller = MainWindowController(context: context) + context.windows.add(controller) + controller.restoreWindowChromeState() + controller.setupBridgeEarly() + controller.setupViews() + controller.setupBridgeLate() + controller.setupTabShare() + controller.applyTabLayout(context.settingsStore.tabLayout, animated: false) + controller.switchToSpace(space.id) + controller.didCompleteSessionRestore = true + let window = try XCTUnwrap(controller.window) + window.appearance = NSAppearance(named: .darkAqua) + window.setContentSize(NSSize(width: 1280, height: 800)) + if let screen = NSScreen.main { + window.setFrameOrigin(NSPoint(x: screen.visibleFrame.midX - window.frame.width / 2, + y: screen.visibleFrame.midY - window.frame.height / 2)) + } + window.level = .floating + window.collectionBehavior = [.canJoinAllSpaces, .fullScreenAuxiliary] + backdrop = NSWindow(contentRect: window.frame.insetBy(dx: -60, dy: -60), styleMask: [.borderless], backing: .buffered, defer: false) + backdrop.isReleasedWhenClosed = false + backdrop.level = .floating + backdrop.contentView = CaptureBackdrop(frame: NSRect(origin: .zero, size: backdrop.frame.size)) + window.addChildWindow(backdrop, ordered: .below) + window.makeKeyAndOrderFront(nil) + window.orderFrontRegardless() + NSApp.activate() + controller.loadChromeUI() + do { + try await wait("native chrome is ready", timeout: 30) { self.controller.didChromeVisualReady } + // The picker normally reads the person's wallpaper. Only its fixture input is substituted. + let thumbnail = try CaptureBackdrop.png(size: NSSize(width: 480, height: 300)).base64EncodedString() + _ = try await chrome.callAsyncJavaScript(""" + const rewrite = m => m.event === 'wallpaperColorChanged' ? {...m, thumbnail: 'data:image/png;base64,' + thumbnail, color:'#8b79c6'} : m; + const receive=window.__lilo.receive.bind(window.__lilo), batch=window.__lilo.receiveBatch.bind(window.__lilo); + window.__lilo.receive=m=>receive(rewrite(m)); + window.__lilo.receiveBatch=ms=>batch(ms.map(rewrite)); + """, arguments: ["thumbnail": thumbnail], in: nil, contentWorld: .page) + } catch { + close() + throw error + } + } + + func close() { + fixture.tearDown() + backdrop.close() + UserDefaults.lilo.set(cachedLayout.position, forKey: "cachedTabPosition") + UserDefaults.lilo.set(cachedLayout.address, forKey: "cachedAddressPlacement") + } + + @discardableResult + func page(title: String = "Field notes", color: String = "#38334f") async throws -> Tab { + let tab = try XCTUnwrap(controller.createTabStateFirst(url: URL(string: "about:blank"))) + try await loadPage(in: tab, title: title, color: color) + return tab + } + + func loadPage(in tab: Tab, title: String, color: String = "#38334f", url: URL = URL(string: "https://example.com/notes/")!) async throws { + let engine = try XCTUnwrap(controller.tabManager.engineTab(for: tab.id)) + engine.wkWebView.stopLoading() + engine.wkWebView.loadHTMLString(""" + \(title) + +
STUDIO / RESEARCH

\(title)

A little more room for what comes next.

+

Keep one idea in view.

Collect the useful details. Leave room to explore.

The next chapter

Bring the work together, one step at a time.

+ """, baseURL: url) + try await wait("synthetic content loads") { + (try? await engine.wkWebView.evaluateJavaScript("document.title")) as? String == title + } + try await wait("native tab title matches the owned page") { self.controller.tabManager.tab(for: tab.id)?.title == title } + } + + func wait(_ message: String, timeout: TimeInterval = 12, _ condition: @MainActor () async -> Bool) async throws { + let passed = await pollUntil(timeout: timeout, condition) + XCTAssertTrue(passed, message) + if !passed { + let detail = try? await chrome.evaluateJavaScript("(()=>{const v=document.querySelector('.whats-new video'),q=v?.getVideoPlaybackQuality();return {url:location.href,visibility:document.visibilityState,ready:document.readyState,width:innerWidth,height:innerHeight,booting:document.documentElement.hasAttribute('data-booting'),text:document.body.innerText.slice(0,500),video:v?{time:v.currentTime,duration:v.duration,frames:q.totalVideoFrames,dropped:q.droppedVideoFrames,paused:v.paused,ready:v.readyState}:null}})()") + let session = CGSessionCopyCurrentDictionary() as? [String: Any] + let record: [String: Any] = ["message": message, "chrome": detail ?? [:], "windowVisible": controller.window?.isVisible ?? false, + "windowUnoccluded": controller.window?.occlusionState.contains(.visible) ?? false, + "windowOnActiveSpace": controller.window?.isOnActiveSpace ?? false, + "windowIsKey": controller.window?.isKeyWindow ?? false, + "appActive": NSApp.isActive, + "sessionLocked": session?["CGSSessionScreenIsLocked"] as? Bool ?? false] + try? JSONSerialization.data(withJSONObject: record, options: [.prettyPrinted, .sortedKeys]).write(to: output.appendingPathComponent("failure.json")) + throw NSError(domain: "ReleaseMedia", code: 1, userInfo: [NSLocalizedDescriptionKey: message]) + } + } + + func click(_ selector: String, text: String? = nil) async throws { + let clicked = try await chrome.callAsyncJavaScript(""" + const el = [...document.querySelectorAll(selector)].find(e => text === null || e.textContent.trim() === text); + if (!el || el.disabled) return false; el.click(); return true; + """, arguments: ["selector": selector, "text": text as Any? ?? NSNull()], in: nil, contentWorld: .page) as? Bool + XCTAssertEqual(clicked, true, "Actual production control must exist: \(selector) \(text ?? "")") + if clicked != true { throw NSError(domain: "ReleaseMedia", code: 2) } + } + + func exists(_ selector: String) async -> Bool { + (try? await chrome.callAsyncJavaScript("return !!document.querySelector(selector)", arguments: ["selector": selector], in: nil, contentWorld: .page)) as? Bool == true + } + + func input(_ selector: String, value: String) async throws { + _ = try await chrome.callAsyncJavaScript(""" + const input=document.querySelector(selector); + if (!input) throw Error('Missing native input: '+selector); + input.focus(); input.value=value; input.dispatchEvent(new InputEvent('input',{bubbles:true,inputType:'insertText',data:value})); + """, arguments: ["selector": selector, "value": value], in: nil, contentWorld: .page) + } + + func callPage() async throws -> Tab { + let tab = try await page(title: "Studio call") + let engine = try XCTUnwrap(controller.tabManager.engineTab(for: tab.id)) + _ = try await engine.wkWebView.callAsyncJavaScript(""" + window.fixtureMic=true;window.fixtureCamera=true; + navigator.mediaSession.setActionHandler('togglemicrophone',()=>navigator.mediaSession.setMicrophoneActive(window.fixtureMic=!window.fixtureMic)); + navigator.mediaSession.setActionHandler('togglecamera',()=>navigator.mediaSession.setCameraActive(window.fixtureCamera=!window.fixtureCamera)); + navigator.mediaSession.setActionHandler('hangup',()=>{window.fixtureHungUp=true}); + await navigator.mediaSession.setMicrophoneActive(true);await navigator.mediaSession.setCameraActive(true); + return true; + """, arguments: [:], in: nil, contentWorld: .page) + // Device usage is fixture input; the real Media Session handlers and native call controls run unchanged. + context.browserState.updateTab(id: tab.id) { $0.isMicrophoneActive = true; $0.isCameraActive = true } + context.mediaActivityChanged() + try await wait("real Media Session registers a native call") { self.context.callTabIds.contains(tab.id) } + return tab + } + + func settled(in webView: WKWebView? = nil) async throws { + _ = try await (webView ?? chrome).callAsyncJavaScript(""" + await document.fonts.ready; + await Promise.all([...document.images].map(i=>i.decode().catch(()=>{}))); + await Promise.all(document.getAnimations().filter(a=>a.effect?.getTiming().iterations!==Infinity).map(a=>a.finished.catch(()=>{}))); + await new Promise(r=>requestAnimationFrame(()=>requestAnimationFrame(r))); + """, arguments: [:], in: nil, contentWorld: .page) + } + + func region(_ selector: String, name: String, scale: CGFloat = 8, margin: CGFloat = 14, in webView: WKWebView? = nil, crop: CGSize? = nil) async throws { + let view = webView ?? chrome + try await settled(in: view) + let raw = try await view.callAsyncJavaScript(""" + const rs=[...document.querySelectorAll(selector)].map(e=>e.getBoundingClientRect()).filter(r=>r.width&&r.height); + if(!rs.length) throw Error('Missing visible native capture region: '+selector); + const x=Math.min(...rs.map(r=>r.x)), y=Math.min(...rs.map(r=>r.y)); + return [x,y,Math.max(...rs.map(r=>r.right))-x,Math.max(...rs.map(r=>r.bottom))-y]; + """, arguments: ["selector": selector], in: nil, contentWorld: .page) + let r = try XCTUnwrap(raw as? [Double]) + var rect = CGRect(x: r[0], y: r[1], width: r[2], height: r[3]).insetBy(dx: -margin, dy: -margin).intersection(view.bounds).integral + if let crop { rect.size = CGSize(width: min(rect.width, crop.width), height: min(rect.height, crop.height)) } + let config = WKSnapshotConfiguration() + config.rect = rect + config.snapshotWidth = NSNumber(value: rect.width * scale / (view.window?.backingScaleFactor ?? 1)) + let image = try await view.takeSnapshot(configuration: config) + let bitmap = try XCTUnwrap(image.tiffRepresentation.flatMap(NSBitmapImageRep.init(data:))) + XCTAssertEqual(bitmap.pixelsWide, Int(rect.width * scale)) + try save(bitmap, name: name, tool: "WKWebView.takeSnapshot", points: rect, scale: scale) + } + + func window(_ name: String) async throws { + try await settled() + try await wait("native window layout has settled") { + self.controller.contentContainerView.layer?.animation(forKey: "sidebarSlide") == nil + } + let nativeWindow = try XCTUnwrap(controller.window) + let content = try await SCShareableContent.currentProcess + let target = try XCTUnwrap(content.windows.first { $0.windowID == CGWindowID(nativeWindow.windowNumber) }) + let filter = SCContentFilter(desktopIndependentWindow: target) + let config = SCStreamConfiguration() + config.captureResolution = .best + config.showsCursor = false + config.ignoreShadowsSingleWindow = true + config.width = Int(filter.contentRect.width * CGFloat(filter.pointPixelScale)) + config.height = Int(filter.contentRect.height * CGFloat(filter.pointPixelScale)) + let image = try await SCScreenshotManager.captureImage(contentFilter: filter, configuration: config) + XCTAssertGreaterThanOrEqual(filter.pointPixelScale, 2) + XCTAssertEqual(image.width, config.width) + try save(NSBitmapImageRep(cgImage: image), name: name, tool: "ScreenCaptureKit desktop-independent native window", points: filter.contentRect, scale: CGFloat(filter.pointPixelScale)) + } + + func bundledArtwork(season: String, variant: String = "classic") throws { + let url = try XCTUnwrap(Bundle.main.url(forResource: variant, withExtension: "png", subdirectory: "AppIcons/\(season)")) + let data = try Data(contentsOf: url) + let bitmap = try XCTUnwrap(NSBitmapImageRep(data: data)) + try save(bitmap, name: season, tool: "actual compiled native bundle AppIcons/\(season)/\(variant).png", points: CGRect(x: 0, y: 0, width: bitmap.pixelsWide, height: bitmap.pixelsHigh), scale: 1) + } + + func finish(checks: [String: Any]) throws { + let env = ProcessInfo.processInfo.environment + let receipt: [String: Any] = [ + "schemaVersion": 1, "release": version, "feature": feature, + "appVersion": Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") ?? "", + "appBuild": Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") ?? "", + "productSourceCommit": env["LILO_RELEASE_MEDIA_COMMIT"] ?? "", + "capturedAt": ISO8601DateFormatter().string(from: Date()), + "fixture": "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "checks": checks, "assets": assets, + ] + try JSONSerialization.data(withJSONObject: receipt, options: [.prettyPrinted, .sortedKeys]) + .write(to: output.appendingPathComponent("capture.json"), options: .atomic) + } + + private func save(_ bitmap: NSBitmapImageRep, name: String, tool: String, points: CGRect, scale: CGFloat) throws { + let data = try XCTUnwrap(bitmap.representation(using: .png, properties: [:])) + let file = "\(name).png" + try data.write(to: output.appendingPathComponent(file), options: .atomic) + assets.append(["file": file, "tool": tool, "width": bitmap.pixelsWide, "height": bitmap.pixelsHigh, + "rectPoints": [points.minX, points.minY, points.width, points.height], "pixelsPerPoint": scale, + "sha256": SHA256.hash(data: data).map { String(format: "%02x", $0) }.joined()]) + } +} + +private final class CaptureBackdrop: NSView { + override func draw(_ dirtyRect: NSRect) { + NSGradient(colors: [NSColor(cssHex: "#607ea8")!, NSColor(cssHex: "#b8a1c4")!, NSColor(cssHex: "#c6a686")!])!.draw(in: bounds, angle: 25) + } + + static func png(size: NSSize) throws -> Data { + let view = CaptureBackdrop(frame: NSRect(origin: .zero, size: size)) + let bitmap = try XCTUnwrap(view.bitmapImageRepForCachingDisplay(in: view.bounds)) + view.cacheDisplay(in: view.bounds, to: bitmap) + return try XCTUnwrap(bitmap.representation(using: .png, properties: [:])) + } +} diff --git a/LiloTests/Support/TestRunCleanup.swift b/LiloTests/Support/TestRunCleanup.swift index cda3d5ccf..f6f5010ab 100644 --- a/LiloTests/Support/TestRunCleanup.swift +++ b/LiloTests/Support/TestRunCleanup.swift @@ -26,12 +26,14 @@ final class TestRunCleanup: NSObject, XCTestObservation { self.init(webKitRoot: FileManager.default.homeDirectoryForCurrentUser.appendingPathComponent("Library/WebKit/\(host)"), keepsExisting: !host.hasSuffix(".tests")) XCTestObservationCenter.shared.addTestObserver(self) - // The windows tests open stay out of Mission Control and the window cycle: parallel hosts open hundreds of them. - NotificationCenter.default.addObserver(forName: NSApplication.didUpdateNotification, object: nil, queue: .main) { _ in - MainActor.assumeIsolated { - for window in NSApp.windows where !window.collectionBehavior.contains(.transient) { - window.collectionBehavior.subtract([.managed, .stationary, .canJoinAllSpaces, .moveToActiveSpace]) - window.collectionBehavior.formUnion([.transient, .ignoresCycle]) + // Native capture needs visible windows; ordinary parallel tests keep theirs out of Mission Control. + if ProcessInfo.processInfo.environment["LILO_RELEASE_MEDIA_OUT"] == nil { + NotificationCenter.default.addObserver(forName: NSApplication.didUpdateNotification, object: nil, queue: .main) { _ in + MainActor.assumeIsolated { + for window in NSApp.windows where !window.collectionBehavior.contains(.transient) { + window.collectionBehavior.subtract([.managed, .stationary, .canJoinAllSpaces, .moveToActiveSpace]) + window.collectionBehavior.formUnion([.transient, .ignoresCycle]) + } } } } diff --git a/LiloTests/Window/ReleaseMediaCaptureTests.swift b/LiloTests/Window/ReleaseMediaCaptureTests.swift new file mode 100644 index 000000000..9c649f64b --- /dev/null +++ b/LiloTests/Window/ReleaseMediaCaptureTests.swift @@ -0,0 +1,357 @@ +import AppKit +import XCTest +@testable import Lilo + +@MainActor +final class ReleaseMediaCaptureTests: XCTestCase { + func testReviewBundledWhatsNewMedia() async throws { + guard let version = ProcessInfo.processInfo.environment["LILO_RELEASE_MEDIA_REVIEW_VERSION"] else { + throw XCTSkip("Opt-in actual native What's New media review") + } + let capture = try await ReleaseMediaCapture(version: "review", feature: "review") + defer { capture.close() } + var playbackQuality: [String: Any] = [:] + try await capture.page() + capture.controller.bridgeRouter.send(event: "openWhatsNew", data: ["version": version, "automatic": false]) + try await capture.wait("actual native What's New opens with the selected release") { await capture.exists(".whats-new .release-media") } + if await capture.exists(".whats-new video") { + _ = try await capture.chrome.evaluateJavaScript("document.querySelector('.whats-new video').load();undefined") + try await capture.wait("bundled MP4 decodes from Lilo's private origin") { + (try? await capture.chrome.evaluateJavaScript("document.querySelector('.whats-new video').readyState>=2")) as? Bool == true + } + _ = try await capture.chrome.callAsyncJavaScript("await document.querySelector('.whats-new video').play();return true", arguments: [:], in: nil, contentWorld: .page) + try await capture.wait("native MP4 playback advances with sound") { + (try? await capture.chrome.evaluateJavaScript("(()=>{const v=document.querySelector('.whats-new video');return v.currentTime>.2&&v.controls&&!v.muted&&v.audioTracks.length>0})()")) as? Bool == true + } + try await capture.wait("native MP4 playback stays smooth") { + (try? await capture.chrome.evaluateJavaScript("(()=>{const v=document.querySelector('.whats-new video'),q=v.getVideoPlaybackQuality();return v.currentTime>=1.8&&(q.totalVideoFrames-q.droppedVideoFrames)/v.currentTime>=54&&q.droppedVideoFrames/Math.max(1,q.totalVideoFrames)<.03})()")) as? Bool == true + } + let quality = try await capture.chrome.evaluateJavaScript("(()=>{const v=document.querySelector('.whats-new video'),q=v.getVideoPlaybackQuality();return {seconds:v.currentTime,totalFrames:q.totalVideoFrames,droppedFrames:q.droppedVideoFrames,presentedFps:(q.totalVideoFrames-q.droppedVideoFrames)/v.currentTime}})()") + playbackQuality = quality as? [String: Any] ?? [:] + _ = try await capture.chrome.evaluateJavaScript("(()=>{const v=document.querySelector('.whats-new video');v.pause();v.currentTime=v.duration*.88})();undefined") + try await capture.wait("native MP4 seeking completes") { + (try? await capture.chrome.evaluateJavaScript("(()=>{const v=document.querySelector('.whats-new video');return !v.seeking&&Math.abs(v.currentTime-v.duration*.88)<.05})()")) as? Bool == true + } + } else { + try await capture.wait("native release still loads losslessly") { + (try? await capture.chrome.evaluateJavaScript("document.querySelector('.release-media img')?.naturalWidth===1920")) as? Bool == true + } + } + try await capture.window("whats-new-\(version)") + try capture.finish(checks: ["actualNativeWhatsNew": true, "reviewedRelease": version, "actualBinaryVersion": Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") ?? "", "playbackQuality": playbackQuality]) + } + func testSpacesMaterialAndColor() async throws { + let capture = try await ReleaseMediaCapture(version: "0.11.0", feature: "spaces") + defer { capture.close() } + try await capture.page() + try await capture.window("solid-window") + capture.controller.editCurrentSpace(nil) + try await capture.wait("Space editor opens") { + (try? await capture.chrome.evaluateJavaScript("!!document.querySelector('.appearance-row')")) as? Bool == true + } + try await capture.click(".appearance-row") + try await capture.wait("native appearance controls open") { + (try? await capture.chrome.evaluateJavaScript("!!document.querySelector('.appearance-card .materials')")) as? Bool == true + } + try await capture.region(".materials", name: "solid-controls", margin: 0) + for material in ["Glass", "Grain"] { + try await capture.click(".material", text: material) + try await capture.wait("actual preview uses \(material)") { + (try? await capture.chrome.evaluateJavaScript("!!document.querySelector('.win.\(material.lowercased())')")) as? Bool == true + } + try await capture.region(".materials", name: "\(material.lowercased())-controls", margin: 0) + try await capture.click(".footer-actions button", text: "Save") + try await capture.wait("\(material) is saved through the native Space bridge") { + capture.context.spaceManager.space(with: capture.space.id)?.material == material.lowercased() + } + try await capture.window("\(material.lowercased())-window") + if material == "Glass" { + capture.controller.editCurrentSpace(nil) + try await capture.wait("Space editor reopens") { + (try? await capture.chrome.evaluateJavaScript("!!document.querySelector('.appearance-row')")) as? Bool == true + } + try await capture.click(".appearance-row") + try await capture.wait("appearance controls reopen") { + (try? await capture.chrome.evaluateJavaScript("!!document.querySelector('.appearance-card .materials')")) as? Bool == true + } + } + } + let second = try capture.context.spaceManager.createSpace(name: "Studio", icon: "🎨", color: "#c48d78", material: "glass", profileId: capture.space.profileId) + capture.controller.switchToSpace(second.id) + try await capture.page(title: "Room to create", color: "#6e493f") + try await capture.window("glass-space") + try capture.finish(checks: ["savedMaterial": "grain", "secondSpaceMaterial": "glass", "separateSpaceIds": second.id != capture.space.id]) + } + + func testHolidayIconsStill() async throws { + let capture = try await ReleaseMediaCapture(version: "0.13.0", feature: "seasons") + defer { capture.close() } + for season in ["halloween", "christmas", "easter"] { + try capture.bundledArtwork(season: season) + } + try capture.finish(checks: ["nativeSeasonalArtworkCount": 3, "medium": "screenshot", "animationNeeded": false]) + } + + func testFirstPublicBrowserStill() async throws { + let capture = try await ReleaseMediaCapture(version: "0.1.0", feature: "browser") + defer { capture.close() } + try await capture.page(title: "A place to begin") + try await capture.window("browser") + try capture.finish(checks: ["syntheticContent": true, "medium": "screenshot"]) + } + + func testTabEdges() async throws { + let capture = try await ReleaseMediaCapture(version: "0.2.0", feature: "tab-edges") + defer { capture.close() } + try await capture.page(title: "Field guide") + try await capture.page(title: "Studio notes") + for position in TabPosition.allCases { + capture.controller.setTabPosition(position) + try await capture.wait("native and rendered tab layouts are \(position)") { + guard capture.controller.tabLayout.position == position else { return false } + return (try? await capture.chrome.evaluateJavaScript("document.documentElement.dataset.tabPosition")) as? String == position.rawValue + } + try await capture.window(position.rawValue) + } + try capture.finish(checks: ["nativeTabPositions": TabPosition.allCases.map(\.rawValue), "renderedLayoutsVerified": true]) + } + + func testSettingsPageStill() async throws { + let capture = try await ReleaseMediaCapture(version: "0.3.0", feature: "settings") + defer { capture.close() } + try await capture.page() + capture.controller.setTabPosition(.top) + capture.controller.openSettings(nil) + try await capture.wait("native Settings opens") { await capture.exists(".ui-shell-frame") } + try await capture.window("settings-window") + try capture.finish(checks: ["nativeSettingsCommand": true, "medium": "screenshot"]) + } + + func testUpdateCardStill() async throws { + let capture = try await ReleaseMediaCapture(version: "0.4.0", feature: "updates") + defer { capture.close() } + try await capture.page() + capture.controller.bridgeRouter.send(event: "updateReady", data: ["version": capture.version]) + try await capture.wait("actual downloaded-update card appears") { await capture.exists(".update-card") } + try await capture.region(".update-dock", name: "updates", margin: 10) + try capture.finish(checks: ["fixtureInput": "Synthetic updateReady event; no real update downloaded or installed", "medium": "screenshot"]) + } + + func testUnreadStill() async throws { + let capture = try await ReleaseMediaCapture(version: "0.6.0", feature: "unread") + defer { capture.close() } + try await capture.page(title: "(3) Studio mail") + try await capture.page(title: "(12) Team chat") + try await capture.page(title: "Field notes") + try await capture.wait("native unread count is rendered") { await capture.exists(".unread-count") } + try await capture.region(".tab-item, .new-tab-line", name: "unread", scale: 6, margin: 8) + try capture.finish(checks: ["unreadSource": "Actual generic title unread detection on owned fixture pages", "medium": "screenshot"]) + } + + func testHistorySearch() async throws { + let capture = try await ReleaseMediaCapture(version: "0.9.0", feature: "history") + defer { capture.close() } + try await capture.page() + let history = try capture.context.profileContexts.context(for: capture.space.profileId).history + for (path, title) in [("research/field-guide", "Field guide"), ("studio/notes", "Studio notes"), ("studio/references", "Studio references"), ("research/ideas", "New ideas")] { + try history.recordVisit(url: "https://example.com/\(path)", title: title) + } + capture.controller.openHistory(nil) + try await capture.wait("native History opens") { await capture.exists(".history-search input") } + try await capture.wait("native history groups are loaded") { await capture.exists(".row.site") } + try await capture.click(".row.site") + try await capture.region(".nested-rows", name: "rows", margin: 0, crop: CGSize(width: 300, height: 120)) + for (index, query) in ["", "S", "St", "Stu", "Stud", "Studi", "Studio"].enumerated() { + try await capture.input(".history-search input", value: query) + try await capture.region(".history-search input", name: "search-\(index)", margin: 6) + } + try await capture.wait("native history filters the real store") { + (try? await capture.chrome.evaluateJavaScript("document.querySelector('.days')?.textContent.includes('Studio notes') && !document.querySelector('.days')?.textContent.includes('Field guide')")) as? Bool == true + } + try await capture.region(".ui-shell-frame", name: "filtered", scale: 3, margin: 0) + try await capture.region(".day .card", name: "filtered-rows", margin: 0, crop: CGSize(width: 300, height: 120)) + try capture.finish(checks: ["nativeHistoryStoreVisits": 4, "query": "Studio", "filteredOut": "Field guide"]) + } + + func testArchiveRestore() async throws { + let capture = try await ReleaseMediaCapture(version: "0.10.0", feature: "archive") + defer { capture.close() } + try await capture.page() + let entry = TabArchive.Entry(spaceId: capture.space.id, url: URL(string: "https://example.com/field-guide")!, title: "Field guide") + capture.context.tabArchive.add(entry) + capture.controller.sendArchivedTabs() + try await capture.wait("native archive button appears") { await capture.exists(".archive-button") } + try await capture.region(".tab-item, .new-tab-line", name: "before", scale: 6, margin: 8) + let rawInsertionY = try await capture.chrome.evaluateJavaScript("document.querySelector('.new-tab-line').getBoundingClientRect().y") + let insertionY = try XCTUnwrap(rawInsertionY as? Double) + try await capture.click(".archive-button") + try await capture.wait("native archive menu opens") { await capture.exists(".menu-row:not(.show-all)") } + try await capture.region(".strip-popover", name: "archive", margin: 0) + try await capture.click(".menu-row:not(.show-all)") + try await capture.wait("real native archive entry was restored") { !capture.context.tabArchive.entries.contains(where: { $0.id == entry.id }) } + let restored = try XCTUnwrap(capture.controller.tabManager.openTabs.first { $0.url == entry.url }) + try await capture.loadPage(in: restored, title: entry.title, url: entry.url) + try await capture.region(".tab-item, .new-tab-line", name: "restored", scale: 6, margin: 8) + try capture.finish(checks: ["restoredNativeArchiveEntry": true, "insertionY": insertionY]) + } + + func testSiteColorsStill() async throws { + let capture = try await ReleaseMediaCapture(version: "0.12.0", feature: "site-colors") + defer { capture.close() } + capture.context.settingsStore.set("addressPlacement", value: "page") + capture.controller.applyStoredTabLayoutEverywhere() + try await capture.page(title: "A calmer workspace", color: "#553f69") + try await capture.window("site-colors") + try capture.finish(checks: ["addressPlacement": "page", "ownedSiteThemeColor": "#553f69", "medium": "screenshot"]) + } + + func testAddressBarAnnouncement() async throws { + let capture = try await ReleaseMediaCapture(version: "0.8.0-announcement", feature: "address-bar") + defer { capture.close() } + capture.context.settingsStore.set("addressPlacement", value: "page") + capture.controller.applyStoredTabLayoutEverywhere() + let tab = try await capture.page(title: "Field guide", color: "#553f69") + let engine = try XCTUnwrap(capture.controller.tabManager.engineTab(for: tab.id)) + try await capture.wait("native page toolbar is visible") { + let address = try? await capture.chrome.evaluateJavaScript("document.documentElement.dataset.address") + return capture.controller.tabLayout.address == .page && address as? String == "page" + } + try await capture.window("address-visible") + let visibleHeight = capture.controller.contentContainerView.frame.height + capture.controller.openSettings(nil) + try await capture.wait("native Settings navigation opens") { await capture.exists(".section-nav-button") } + try await capture.click(".section-nav-button", text: "Appearance") + let selector = ".ui-list-row:has(.ui-segmented[aria-label='Address'])" + try await capture.wait("Appearance contains the real address setting") { await capture.exists(selector) } + try await capture.region(selector, name: "setting-visible", margin: 10) + try await capture.click(".ui-segmented[aria-label='Address'] button", text: "Hidden") + try await capture.wait("Hidden persists through the real Settings bridge") { + capture.context.settingsStore.tabLayout.address == .hidden && capture.controller.tabLayout.address == .hidden + } + try await capture.region(selector, name: "setting-hidden", margin: 10) + try await capture.click(".section-nav-panel .panel-close") + try await capture.wait("native address is hidden and the page remains loaded") { + let address = try? await capture.chrome.evaluateJavaScript("document.documentElement.dataset.address") + let title = try? await engine.wkWebView.evaluateJavaScript("document.title") + return address as? String == "hidden" && title as? String == "Field guide" + } + try await capture.window("address-hidden") + let hiddenHeight = capture.controller.contentContainerView.frame.height + XCTAssertGreaterThan(hiddenHeight, visibleHeight) + capture.controller.focusChrome() + capture.controller.bridgeRouter.send(event: "openCommandBar", data: ["newTab": false]) + try await capture.wait("command bar remains available with the address hidden") { await capture.exists(".command-bar") } + try capture.finish(checks: ["actualSettingsBridge": true, "addressPlacementBefore": "page", "addressPlacementAfter": "hidden", + "pageTitle": "Field guide", "pageHeightBefore": visibleHeight, "pageHeightAfter": hiddenHeight, + "commandBarWithAddressHidden": true]) + } + + func testCallControlsWhileBrowsing() async throws { + let capture = try await ReleaseMediaCapture(version: "0.7.0", feature: "calls") + defer { capture.close() } + let call = try await capture.callPage() + let engine = try XCTUnwrap(capture.controller.tabManager.engineTab(for: call.id)) + try await capture.page(title: "Field notes") + try await capture.wait("native call card remains while browsing") { await capture.exists(".call-card") } + try await capture.region(".call-card", name: "connected", margin: 0) + try await capture.window("browsing") + try await capture.click(".call-controls .call-btn[aria-label='Mute microphone']") + try await capture.wait("native mute reached the real page handler") { engine.callControls.microphoneActive == false } + try await capture.region(".call-card", name: "muted", margin: 0) + try await capture.click(".call-controls .call-btn[aria-label='Turn off camera']") + try await capture.wait("native camera control reached the real page handler") { engine.callControls.cameraActive == false } + try await capture.region(".call-card", name: "camera-off", margin: 0) + try capture.finish(checks: ["realMediaSessionHandlers": true, "syntheticDeviceUsage": true, "hardwareOrRemoteCallUsed": false]) + } + + func testTabShareSearchAndSwitch() async throws { + let capture = try await ReleaseMediaCapture(version: "0.8.0", feature: "tab-share") + defer { capture.close() } + let first = try await capture.page(title: "Field guide") + let second = try await capture.page(title: "Studio notes") + let call = try await capture.callPage() + let requester = try XCTUnwrap(capture.controller.tabManager.engineTab(for: call.id)).wkWebView + let pick = Task { await capture.controller.presentTabSharePicker(origin: "https://example.com", requester: requester, allowsSystem: false) } + defer { pick.cancel() } + try await capture.wait("actual native tab picker opens") { await capture.exists(".tab-share-panel") } + try await capture.region(".tab-share-panel", name: "picker", margin: 0) + for (index, query) in ["", "F", "Fi", "Fie", "Fiel", "Field"].enumerated() { + try await capture.input(".tab-share-search input", value: query) + try await capture.region(".tab-share-search", name: "search-\(index)", margin: 0) + } + try await capture.wait("actual native picker filters tabs") { + (try? await capture.chrome.evaluateJavaScript("document.querySelectorAll('.tab-share-card').length===1 && document.querySelector('.tab-share-card-title')?.textContent==='Field guide'")) as? Bool == true + } + try await capture.region(".tab-share-panel", name: "filtered", margin: 0) + try await capture.region(".tab-share-card", name: "match", margin: 0) + try await capture.click(".tab-share-btn.primary") + let choice = await pick.value + XCTAssertEqual(choice, .tab(first.id)) + let payload = try XCTUnwrap(capture.controller.startTabShare(tabId: first.id, requester: requester)) + let token = try XCTUnwrap(payload["token"] as? String) + try await capture.click(".tab-item[data-tab-id='\(second.id.uuidString)']") + try await capture.wait("share shown tab action appears") { await capture.exists(".share-instead") } + try await capture.region(".call-card", name: "sharing", margin: 0) + try await capture.click(".share-instead") + try await capture.wait("real share session changed source without replacing its token") { + let share = capture.controller.tabShareSessions.share(requestedBy: requester) + return share?.engineId == second.id && share?.token == token + } + try await capture.region(".call-card", name: "switched", margin: 0) + capture.controller.stopTabShare(token: token) + try capture.finish(checks: ["pickerSearch": "Field", "nativeShareSourceChanged": true, "shareTokenPreserved": true, "realMediaSessionHandlers": true, "syntheticDeviceUsage": true]) + } + + func testPinnedTabRename() async throws { + let capture = try await ReleaseMediaCapture(version: "0.1.3", feature: "pinned-tabs") + defer { capture.close() } + let tab = try await capture.page(title: "Field guide") + capture.controller.pinCurrentTab(nil) + try await capture.wait("native pinned tab appears") { await capture.exists(".pinned-section .tab-title") } + try await capture.region(".pinned-section", name: "pinned", margin: 0) + _ = try await capture.chrome.evaluateJavaScript("document.querySelector('.pinned-section .tab-title').dispatchEvent(new MouseEvent('dblclick',{bubbles:true}));undefined") + try await capture.wait("native rename input opens") { await capture.exists(".tab-title-input") } + for (index, title) in ["", "S", "St", "Stu", "Stud", "Studi", "Studio"].enumerated() { + try await capture.input(".tab-title-input", value: title) + try await capture.region(".pinned-section", name: "rename-\(index)", margin: 0) + } + _ = try await capture.chrome.evaluateJavaScript("document.querySelector('.tab-title-input').dispatchEvent(new KeyboardEvent('keydown',{key:'Enter',bubbles:true}));undefined") + try await capture.wait("native rename is saved") { capture.controller.tabManager.tab(for: tab.id)?.customTitle == "Studio" } + try await capture.region(".pinned-section", name: "renamed", margin: 0) + try capture.finish(checks: ["nativePinnedTab": true, "customTitle": "Studio", "realRenameInput": true]) + } + + func testDropLinkInSidebar() async throws { + let capture = try await ReleaseMediaCapture(version: "0.14.0", feature: "drop") + defer { capture.close() } + try await capture.page(title: "Studio notes") + let source = try await capture.page(title: "Field guide") + let sourceEngine = try XCTUnwrap(capture.controller.tabManager.engineTab(for: source.id)) + _ = try await sourceEngine.wkWebView.evaluateJavaScript("document.querySelector('a').textContent='New idea';document.querySelector('a').href='https://example.com/new-idea';undefined") + try await capture.region("a", name: "link", margin: 8, in: sourceEngine.wkWebView) + try await capture.region(".tab-item, .new-tab-line", name: "before", scale: 6, margin: 8) + capture.controller.bridgeRouter.send(event: "linkDrag", data: ["urls": ["https://example.com/new-idea"], "text": ""]) + try await capture.settled() + _ = try await capture.chrome.evaluateJavaScript(""" + window.fixtureDrag=new DataTransfer();window.fixtureDrag.setData('text/uri-list','https://example.com/new-idea'); + const r=document.querySelectorAll('.tab-list .tab-item')[1].getBoundingClientRect(); + window.fixtureInsertionY=r.y; + window.fixtureDragPoint={x:r.x+r.width/2,y:r.y+1}; + window.dispatchEvent(new DragEvent('dragover',{bubbles:true,cancelable:true,dataTransfer:window.fixtureDrag,clientX:window.fixtureDragPoint.x,clientY:window.fixtureDragPoint.y}));undefined; + """) + try await capture.wait("actual native link insertion indicator appears") { await capture.exists(".sidebar-link-drop") } + try await capture.region(".tab-item, .new-tab-line", name: "target", scale: 6, margin: 8) + _ = try await capture.chrome.evaluateJavaScript("window.dispatchEvent(new DragEvent('drop',{bubbles:true,cancelable:true,dataTransfer:window.fixtureDrag,clientX:window.fixtureDragPoint.x,clientY:window.fixtureDragPoint.y}));undefined") + try await capture.wait("production bridge opens the dropped link") { + capture.controller.tabManager.openTabs.contains { $0.url?.absoluteString == "https://example.com/new-idea" } + } + let dropped = try XCTUnwrap(capture.controller.tabManager.openTabs.first { $0.url?.absoluteString == "https://example.com/new-idea" }) + try await capture.loadPage(in: dropped, title: "New idea", url: URL(string: "https://example.com/new-idea")!) + try await capture.region(".tab-item, .new-tab-line", name: "dropped", scale: 6, margin: 8) + let rawPoint = try await capture.chrome.evaluateJavaScript("window.fixtureDragPoint") + let point = try XCTUnwrap(rawPoint as? [String: Double]) + let rawInsertionY = try await capture.chrome.evaluateJavaScript("window.fixtureInsertionY") + let insertionY = try XCTUnwrap(rawInsertionY as? Double) + try capture.finish(checks: ["syntheticExternalDragPayload": true, "actualNativeDropIndicator": true, "actualBrowserCommandOpenedLink": true, "insertionPoint": point, "insertionY": insertionY]) + } +} diff --git a/Makefile b/Makefile index 45761b405..6529036c2 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ XCODEGEN := $(CURDIR)/build/xcodegen-$(XCODEGEN_VERSION)/bin/xcodegen # What validate's UI and bridge builds read, and the stamps they leave once built from them. UI_SOURCES := $(shell find $(UI_DIR)/src) $(addprefix $(UI_DIR)/,index.html package-lock.json svelte.config.js tsconfig.json vite.config.ts) \ $(UI_DIR)/releaseNotesPlugin.ts $(wildcard .changes/v*.md) scripts/embed_chrome_ui.py scripts/generate_native_strings.py +UI_SOURCES += $(UI_DIR)/package.json release-media/catalog.ts release-media/backlog.json release-media/stage-native.mjs $(wildcard release-media/assets/*/*.png release-media/assets/*/*.mp4) BRIDGE_SOURCES := $(shell find $(BRIDGE_DIR)/src $(BRIDGE_DIR)/scripts) $(addprefix $(BRIDGE_DIR)/,esbuild.mjs package-lock.json tsconfig.json) UI_STAMP := build/.ui-build.stamp BRIDGE_STAMP := build/.ext-bridge-build.stamp @@ -75,13 +76,17 @@ TEST := $(TEST_LOCK) $(TEST_CONFIG) test-without-building $(TEST_TIMEOUTS) TEST_RETRY := $(if $(CI),-retry-tests-on-failure -test-iterations 2) TEST_WORKERS = $(shell sysctl -n hw.perflevel0.physicalcpu 2>/dev/null || sysctl -n hw.ncpu) -.PHONY: help site-release-import validate validate-ui swiftlint project-sync ui-build ui-watch ui-dev ui-lint ui-test e2e e2e-energy \ +.PHONY: help validate validate-ui swiftlint project-sync ui-build ui-watch ui-dev ui-lint ui-test e2e e2e-energy \ swift-test swift-test-slow blocker-coverage blocker-bench script-bench speedometer-bench page-bench preload-bench terminal-bench ext-bridge-build ext-bridge-test ext-smoke ext-nightly top-extensions top-manifests chrome-surface \ chrome-contracts chrome-smoke public-suffix-list app install install-debug xcode-build xcode-build-release \ run-ui-dev release release-notarize release-archive dmg dmg-background bridge-gen vt-build vt-build-source vt-zip bootstrap ui-preview check-commits startup-bench ext-bench energy-sample energy-compare energy-browsers perf-summary perf-compare perf-summary-test agent-call \ - logs logs-stream site-dev site-dev-stop site-preview site-native-preview site-generate site-check site-fix site-test site-e2e site-release-capture site-capture-server site-capture-deps site-lock site-audit site-add-svelte site-playground-deps site-demo-icons site-deploy site-deploy-check emoji-data password-manager-icons \ + logs logs-stream site-dev site-dev-stop site-preview site-native-preview site-generate site-check site-fix site-test site-e2e site-lock site-audit site-add-svelte site-playground-deps site-demo-icons site-deploy site-deploy-check emoji-data password-manager-icons \ hooks-install hooks-test lint-commit-message lint-commits \ changie change release-status release-version release-discord release-test +.PHONY: release-media-capture release-media-import release-media-render release-media-lock release-media-check release-media-publish-check +.PHONY: release-media-review release-media-stage +.PHONY: release-media-fix release-media-test +.PHONY: site-deploy-verified release-media-inspect release-media-hyperframes release-media-audit release-media-author release-tag-check release-media-ci ## List the targets help: @@ -197,9 +202,7 @@ release-status: $(CHANGIE) release-version: $(CHANGIE) @python3 scripts/release.py version --changie '$(CHANGIE)' @release=$$('$(CHANGIE)' latest --remove-prefix); \ - if [ -f "site/src/content/releases/$$release.json" ]; then \ - $(MAKE) --no-print-directory site-release-capture RELEASE="$$release"; \ - fi + $(MAKE) --no-print-directory release-media-ci RELEASE="$$release" @$(MAKE) --no-print-directory site-generate ## Announce a published GitHub release on Discord (needs GITHUB_EVENT_PATH and DISCORD_WEBHOOK_URL) @@ -212,10 +215,87 @@ release-test: $(CHANGIE) ## Build the embedded Svelte UI bundle and the Swift sources generated from lilo-ui ui-build: $(UI_DEPS) + @$(MAKE) --no-print-directory release-media-stage @npm --prefix $(UI_DIR) run build @python3 scripts/embed_chrome_ui.py @python3 scripts/generate_native_strings.py +## Capture genuine native sources for the release-media backlog (RELEASE=x.y.z narrows the capture) +release-media-capture: + @LILO_RELEASE_MEDIA_CAPTURE_ONLY=1 TEST_RUNNER_LILO_RELEASE_MEDIA_OUT='$(CURDIR)/build/release-media/native' TEST_RUNNER_LILO_RELEASE_MEDIA_VERSION='$(RELEASE)' TEST_RUNNER_LILO_RELEASE_MEDIA_FIXTURE_VERSION='$(or $(FIXTURE),$(RELEASE))' TEST_RUNNER_LILO_RELEASE_MEDIA_COMMIT="$$(git rev-parse HEAD)" $(MAKE) --no-print-directory ui-build swift-test SWIFT_TEST_FILTER=LiloTests/ReleaseMediaCaptureTests TEST_WORKERS=1 + +## Import verified native release sources (RELEASE=x.y.z narrows the import) +release-media-import: + @LILO_RELEASE_MEDIA_VERSION='$(RELEASE)' node release-media/import.mjs + +## Update the pinned HyperFrames dependency lockfile +release-media-lock: + @PUPPETEER_SKIP_DOWNLOAD=1 npm --prefix release-media install --package-lock-only --ignore-scripts --cache '$(CURDIR)/build/npm-release-media' + +## Format the authored release-media scripts and literal compositions +release-media-fix: $(SITE_DEPS) + @site/node_modules/.bin/oxfmt --write 'release-media/*.mjs' 'release-media/*.ts' 'release-media/hyperframes/archive/*.js' release-media/package.json release-media/backlog.json + +release-media/node_modules/.lilo-installed: release-media/package.json release-media/package-lock.json + @PUPPETEER_SKIP_DOWNLOAD=1 npm --prefix release-media ci --ignore-scripts --cache '$(CURDIR)/build/npm-release-media' + @touch $@ + +## Render selected native release films and stills (RELEASE=x.y.z narrows the render) +release-media-render: release-media/node_modules/.lilo-installed + @LILO_RELEASE_MEDIA_VERSION='$(RELEASE)' node release-media/render.mjs + +## Verify every backlog decision, native source hash, encoded film, sound and compression quality +release-media-check: + @LILO_RELEASE_MEDIA_VERSION='$(RELEASE)' node release-media/check.mjs + +## Verify publication refuses failed, stale or changed media without external build tools +release-media-test: + @node --test release-media/*.test.mjs + +## Extract compact-layout frames from the actual encoded films (RELEASE=x.y.z narrows the inspection) +release-media-inspect: + @LILO_RELEASE_MEDIA_VERSION='$(RELEASE)' node release-media/inspect.mjs + +## Refuse publication unless release media passes its current quality gates +release-media-publish-check: + @LILO_RELEASE_MEDIA_VERSION='$(RELEASE)' node release-media/check.mjs --publish + +## Stage only the installed release's binary media for the native bundle +release-media-stage: + @node release-media/stage-native.mjs + +## Review a historical release's actual bundled What's New and MP4 playback in native Lilo +release-media-review: + @test -n '$(RELEASE)' || { echo 'RELEASE=x.y.z is required' >&2; exit 2; } + @LILO_RELEASE_MEDIA_PREVIEW_VERSION='$(RELEASE)' $(MAKE) --no-print-directory ui-build + @TEST_RUNNER_LILO_RELEASE_MEDIA_OUT='$(CURDIR)/build/release-media/reviews/$(RELEASE)' TEST_RUNNER_LILO_RELEASE_MEDIA_REVIEW_VERSION='$(RELEASE)' $(MAKE) --no-print-directory swift-test SWIFT_TEST_FILTER=LiloTests/ReleaseMediaCaptureTests/testReviewBundledWhatsNewMedia TEST_WORKERS=1 + +## Run the pinned production HyperFrames authoring tools (HF_ARGS='help') +release-media-hyperframes: release-media/node_modules/.lilo-installed + @cd release-media && DO_NOT_TRACK=1 ./node_modules/.bin/hyperframes $(HF_ARGS) + +## Require a clean production dependency audit +release-media-audit: release-media/node_modules/.lilo-installed + @npm --prefix release-media audit --audit-level=moderate --cache '$(CURDIR)/build/npm-release-media' + +## Select a meaningful native visual story from exact release notes +release-media-author: $(CHANGIE) + @CHANGIE='$(CHANGIE)' LILO_RELEASE_MEDIA_VERSION='$(RELEASE)' node release-media/author.mjs + +## Verify this tag is a prepared release +release-tag-check: $(CHANGIE) + @python3 scripts/release.py tag --tag '$(TAG)' --changie '$(CHANGIE)' + +## Capture, render and quality-gate this release before packaging +release-media-ci: release-media-author release-media-audit + @test -n '$(RELEASE)' || { echo 'RELEASE=x.y.z is required' >&2; exit 2; } + @set -eu; fixture=$$(LILO_RELEASE_MEDIA_VERSION='$(RELEASE)' node release-media/author.mjs --fixture); \ + if [ -n "$$fixture" ]; then \ + $(MAKE) --no-print-directory release-media-capture RELEASE='$(RELEASE)' FIXTURE="$$fixture" && \ + $(MAKE) --no-print-directory release-media-import release-media-render release-media-check release-media-inspect release-media-review RELEASE='$(RELEASE)'; \ + fi + @$(MAKE) --no-print-directory release-media-publish-check RELEASE='$(RELEASE)' + # Built once when missing so a fresh clone compiles; ui-build, which validate's UI stamp runs on any # UI source change, refreshes both. $(CHROME_UI_ASSETS): @@ -425,13 +505,13 @@ release: vt-build $(UI_STAMP) $(BRIDGE_STAMP) @scripts/build-app.sh release ## Build the UI bundle and notarize the release artifacts -release-notarize: vt-build $(UI_STAMP) $(BRIDGE_STAMP) +release-notarize: release-media-publish-check vt-build $(UI_STAMP) $(BRIDGE_STAMP) @scripts/build-app.sh release notarize # CI's release path: the UI is built or restored beforehand and the committed bridge bundles are checked # against bridge-src on main, so neither needs npm here. ## Archive and export the release app from the UI already built (CI) -release-archive: vt-build $(CHROME_UI_ASSETS) $(NATIVE_STRINGS) +release-archive: release-media-stage vt-build $(CHROME_UI_ASSETS) $(NATIVE_STRINGS) @scripts/build-app.sh release # dmgbuild writes the window layout into .DS_Store itself, so no Finder or AppleScript is involved. @@ -580,22 +660,6 @@ site-test: site-generate site-e2e: site-generate @npm --prefix site run test:e2e -- $(SITE_E2E_ARGS) -## Capture a prepared release's recording and posters (RELEASE=x.y.z; RECAPTURE=1 replaces archived media) -site-release-capture: $(SITE_DEPS) - @LILO_CAPTURE_VERSION='$(RELEASE)' LILO_CAPTURE_REPLACE='$(RECAPTURE)' npm --prefix site run capture:release - -## Encode reviewed native Lilo frames (FRAMES=/path/to/manifest.json; RECAPTURE=1 replaces archived media) -site-release-import: $(SITE_DEPS) - @LILO_CAPTURE_VERSION='$(RELEASE)' LILO_CAPTURE_FRAMES='$(FRAMES)' LILO_CAPTURE_REPLACE='$(RECAPTURE)' npm --prefix site run capture:import - -# Playwright owns this foreground server; it leaves the maintainer's dev server alone. -site-capture-server: $(SITE_DEPS) - @ASTRO_DEV_BACKGROUND=0 npm --prefix site run dev -- --port 8791 --ignore-lock - -## Install the release recording encoder at the website's pinned Sharp version -site-capture-deps: - @npm --prefix site install --save-dev --save-exact sharp@0.35.5 - ## Update the website's dependencies and lockfile after changing package.json site-lock: @npm --prefix site update @@ -622,6 +686,12 @@ site-demo-icons: site-deploy-check: site-generate @npm --prefix site run deploy:check +## Deploy the validated CI website artifact without rebuilding its media +site-deploy-verified: $(SITE_DEPS) + @$(MAKE) --no-print-directory release-media-publish-check RELEASE= + @test -f site/dist/index.html || { echo 'Validated site/dist artifact is required' >&2; exit 1; } + @cd site && ./node_modules/.bin/wrangler deploy + ## Deploy getlilo.app to Cloudflare (requires authentication) site-deploy: $(SITE_DEPS) @npm --prefix site run deploy diff --git a/docs/RELEASING.md b/docs/RELEASING.md index 8cc48fe43..e0315339e 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -32,25 +32,56 @@ releases need neither. `make release-version` collects the pending notes into a release file, consumes the fragments, and regenerates `CHANGELOG.md`. It updates `MARKETING_VERSION` in `Xcode/Configs/Base.xcconfig`, the UI and -extension bridge package versions and their lockfiles. `make site-generate` then builds the Astro website, -including its changelog page and app metadata, in the git-ignored `site/dist/` directory. +extension bridge package versions and their lockfiles. It then runs `make release-media-ci` for the +prepared version: choose the native subject, capture, render and verify it. Finally `make site-generate` +builds the Astro website, including its changelog and app metadata, in the git-ignored `site/dist/` directory. It increments `CURRENT_PROJECT_VERSION` once for each release it collects, or when the app version differs from Changie's latest release. Sparkle compares this build number, so every release needs a -larger one. It reads and checks every file before consuming the fragments, and running it again -without new fragments leaves both versions alone. `Lilo/Info.plist` and the About panel read the Xcode settings at build time. - -For a release with visual highlights, add its translated story to -`site/src/content/releases/.json`. Each highlight names the release notes -it describes. A story may omit its `capture` and show no recording. Otherwise -`make release-version` runs the story's capture scenario when its media is missing, then builds the website. Demo stories record local sample pages -in English and French and both appearances. Native stories use reviewed frames -from installed Lilo; `make site-release-import` encodes their WebP and poster. -The pilot uses a real native Peek capture on public pages. Optional actions appear -with the feature text. Review the recordings and copy with the prepared notes, and commit the -versioned assets and their `capture.json` source record together. Existing captures -are preserved; normal website builds and `make validate` do not recapture them. -See [the website guide](../site/README.md#release-stories-and-recordings) for -capture and replacement commands. +larger one. It checks the version and highlight files before consuming the fragments; running it again +without new fragments leaves both versions alone. Native media generation follows preparation of the +notes. If it fails, the prepared version remains available for diagnosis and retry, but publication is +blocked. `Lilo/Info.plist` and the About panel read the Xcode settings at build time. + +### Native release media + +The shared `release-media/backlog.json` gives every published version an explicit video, +screenshot or text-only decision. HyperFrames turns genuine native Lilo captures into feature +announcements; a finished visual state gets a screenshot, and routine fixes with no useful visual +story stay text-only. The website and native What's New sheet consume the same final MP4/PNG. +The source receipt records the actual captured app version, build and commit separately from the +release being illustrated; a historical story never claims that today's app is the old binary. + +A feature's implementation includes its native capture scenario and literal HyperFrames recipe. +`make release-media-author` selects supported features from the exact release notes. An unknown +visual feature must gain a genuine native scenario and recipe in its feature pull request; it +fails closed rather than silently using an older feature, a fabricated interface or a static +fallback for a required video. This keeps publishing unattended after the feature is merged +without asking the release job to invent unverified browser behavior. + +For a local pass, use the same command as tagged CI: + +```bash +make release-media-ci RELEASE=x.y.z +make release-media-test +``` + +`make release-media-ci RELEASE=x.y.z` runs that selection, fresh native capture/import, rendering +and quality gate for the selected release. Capture uses the compiled app with a disposable +profile and owned sample pages. The macOS runner needs a usable GUI session and native capture +support; failure to capture blocks the release. Historical committed captures are preserved; +archive verification does not pretend to recapture old binaries. + +Isolated interface pieces use transparent PNGs and preserve their captured RGB pixels. Fonts, +MP4 players, sound, source hashes, current recipe hashes, exact frame counts, full decode, +compression, motion, visual layout and sound levels are checked before publication. The music +license permits use without attribution, so announcements have no author-credit ending. Rights +and source provenance remain in repository notices. + +Publication is quality-gated. A successful result applies only to the exact checked bytes: a +missing report, changed source, stale recipe, changed output or failed required check blocks +publishing. In tag CI, the target release's fresh native receipt must also name that tag's commit. +Rendering or validation failure cannot leave an old passing report as approval for a new attempt. +See the [media guide](../release-media/README.md) for recipes, native fixtures and quality limits. Review the generated notes and version changes, then commit them together. The initial `.changes/v0.1.5.md` contains all earlier published entries, with their dates and compare links. @@ -65,9 +96,9 @@ onboarding without an additional update introduction. To add visual highlights, add the exact version to `lilo-ui/src/components/whatsnew/releaseHighlights.json`. Its headline, introduction and up to three highlights reference keys under `whatsNew.releases` in **every** shared language -catalog. Use a benefit-led heading and one or two sentences per highlight. The static local -illustrations live in `WhatsNewArt.svelte`; a new illustration also needs a recognized identifier -in `releaseNotes.ts`. Keep illustrations decorative and communicate the change in the copy. +catalog. Use a benefit-led heading and one or two sentences per highlight. The sheet uses the +release's MP4 or PNG from the shared release-media catalog. Communicate the change in the copy +as well as the media. Without an entry for that version, the sheet opens the complete notes in a compact maintenance layout. An older version's highlights are never reused. The complete notes retain their original @@ -88,16 +119,53 @@ Pushing a `v*` tag triggers `.github/workflows/release.yml`. ## What CI does -The release workflow runs only in `Alexays/Lilo` (never in forks), on the GitHub-hosted `xcode-27` image (macOS 27, Xcode 27; `macos-26` has no Xcode 27): - -1. Checks the tag is a prepared release: its `.changes/vX.Y.Z.md` exists, `MARKETING_VERSION` matches it, and `make release-status` passes. -2. Restores the UI build CI cached for the same sources, or builds it with `npm ci --ignore-scripts`, before any secret is in reach. The extension bridge bundles are committed and checked against `bridge-src` by CI. The checkout keeps no token. -3. Dates every file by its content and restores the Release build of the last `main` push (CI's `release-build` job builds the same thing on every push and caches it from `main`), so only what changed since compiles: a version bump alone compiles nothing. -4. Imports the Developer ID certificate into a temporary keychain. -5. Downloads libghostty-vt (`make vt-build`, checked against `VT_SHA256`), then runs `make release-archive` (build, export signed with Developer ID, hardened runtime and a secure timestamp). -6. Runs `make dmg`: the pinned [dmgbuild](https://github.com/dmgbuild/dmgbuild) packages `build/release/export/Lilo.app` with the installer window from `scripts/dmg/` (`settings.py` and the committed background, regenerated from `background.html` by `make dmg-background`). It then signs the DMG and notarizes it, a single submission whose ticket also covers the app inside, and staples the DMG. The app itself is not stapled: a copy taken out of the DMG and first opened offline relies on Gatekeeper's online check, and Sparkle updates download the stapled DMG. The job then checks the staple and has Gatekeeper (`spctl`) assess the DMG and the app on its read-only mount, so a release users would be refused never reaches the draft. -7. Downloads Sparkle's tools (checked against a pinned sha256) and generates `appcast.xml` with `generate_appcast`, signed with `SPARKLE_ED_PRIVATE_KEY`. The app sets `SURequireSignedFeed`, so both the feed and the update archive must carry a valid EdDSA signature. -8. Creates a **draft** GitHub release with the DMG and the appcast attached, its notes taken from the tag's `.changes/vX.Y.Z.md`. Installed copies read the appcast from the latest published release, so they see the update once the draft is published. +The release workflow runs only in `Alexays/Lilo` (never in forks). Native capture and signing use +`xcode-27` (macOS 27, Xcode 27; `macos-26` has no Xcode 27); website deployment uses Ubuntu. +Native capture needs a visible, unlocked Retina desktop on that runner. It rejects a non-Retina +window instead of upscaling a lower-resolution capture; an unavailable desktop blocks the release. + + +1. A separate **Native release media** job checks `make release-tag-check TAG=vX.Y.Z`: the prepared + notes, generated changelog, app/package versions and feature highlights must agree with the tag. + This job has read-only repository permissions and no signing environment or signing secrets. +2. It runs `make release-media-ci RELEASE=X.Y.Z`, which authors the release's selected subject, + captures the real app, renders HyperFrames media, verifies bundled What’s New playback and runs + the full quality and publication gates. + Any failure stops the signing job. Failed capture/quality diagnostics are kept as Actions artifacts. +3. It builds the website from these exact media. + The verified media, native receipts, recipes and static website output are uploaded as a + same-workflow artifact. The app signing job has an explicit dependency on this job's success. +4. **Build and sign** downloads that artifact and repeats the prepared-tag and hash-based publication + checks before importing a certificate. It rebuilds the embedded UI with the verified media; + an earlier main build's cached UI cannot replace the new What's New assets. No checkout token + is left in Git configuration, and UI dependencies install with scripts disabled. +5. It dates files by content, restores the last main Release build, imports the Developer ID + certificate into a temporary keychain, and downloads checksum-pinned libghostty-vt. Then + `make release-archive` builds and exports the app with Developer ID and hardened runtime. +6. `make dmg` packages the app with the pinned installer layout. CI signs and notarizes the DMG, + staples its ticket, and verifies the DMG and app using `stapler` and `spctl`. A failed Gatekeeper + assessment stops the draft release. The app itself is not stapled; Sparkle downloads the stapled DMG. +7. Checksum-pinned Sparkle tools create `appcast.xml`, signed with `SPARKLE_ED_PRIVATE_KEY`. + `SURequireSignedFeed` requires valid EdDSA signatures on the feed and update archive. +8. CI creates a **draft** GitHub release with the DMG, appcast, debug symbols and + notes from the tag's prepared release file. Installed copies + discover the update only when the draft is published. +9. **Deploy verified changelog website** waits for media validation and the signed draft. It downloads + the same run's website artifact, repeats the tag and media publication checks, and runs + `make site-deploy-verified`. Wrangler publishes that existing `site/dist/` to `lilo-site` on + `getlilo.app`; it does not rebuild the website. Missing Cloudflare credentials or a deployment + error fail the workflow. Keep the GitHub release as a draft until every job succeeds. + +Pull-request and main CI also re-author and render the archive from committed genuine native +captures, run the media quality gate, and exercise the compact changelog players. Their review +artifacts contain encoded output and compact-frame sheets. The native source captures in this +archive retain their recorded version and commit. + +The same-run Actions artifact includes the validated website output for review and recovery. +Production deployment uses this exact artifact. Alexays must configure the +Cloudflare secrets below before the first automatic deployment can succeed; generating an artifact +alone does not publish it. Disable the earlier Cloudflare Workers Builds production branch deploy +when enabling this job, so a separate Git build cannot replace the verified release output. ## Secrets @@ -111,9 +179,23 @@ They are secrets of the `release` environment, which only `v*` tags may deploy t | `APPLE_NOTARY_APPLE_ID` | Apple ID for notarytool | | `APPLE_NOTARY_PASSWORD` | app-specific password for notarytool | | `SPARKLE_ED_PRIVATE_KEY` | Sparkle EdDSA private key that signs `appcast.xml` | +| `CLOUDFLARE_API_TOKEN` | scoped Cloudflare Workers deployment token for `lilo-site` | +| `CLOUDFLARE_ACCOUNT_ID` | account ID owning the `lilo-site` Worker and `getlilo.app` | | `HOMEBREW_TAP_TOKEN` | fine-grained token with `contents: write` on `Alexays/homebrew-tap`, used by `homebrew.yml` | | `DISCORD_WEBHOOK_URL` | incoming webhook URL for Lilo's Discord release channel, used by `discord.yml` | +### Cloudflare deployment (once) + +Alexays must create a token with the **Edit Cloudflare Workers** permission policy, restricted to +the account and zone used by `lilo-site` and `getlilo.app`, and find that account's ID. Follow +[Cloudflare's CI authentication instructions](https://developers.cloudflare.com/workers/ci-cd/external-cicd/github-actions/#1-authentication). +Add both values to **Alexays/Lilo > Settings > Environments > release > Environment secrets** as +`CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`. Keep this environment restricted to `v*` tags. + +Until both secrets are configured, **Deploy verified changelog website** deliberately fails with +setup instructions and the GitHub release remains a draft. After configuring them, rerun the failed +job to publish the same validated artifact. No token is needed in pull-request or native-media jobs. + ### Discord announcements (once) In the Discord channel that should receive release notes, open **Edit Channel > Integrations > @@ -158,7 +240,8 @@ Once Apple grants it: ## Publish checklist -1. Publish the draft release. CI already checked its DMG with `stapler` and `spctl`. +1. Check every release workflow job succeeded, including verified website deployment, then publish + the draft release. CI already checked its DMG with `stapler` and `spctl`. 2. Publishing runs `.github/workflows/homebrew.yml`, which bumps the `lilo` cask of the `alexays/tap` Homebrew tap to the new version and the DMG's sha256, so `brew install --cask alexays/tap/lilo` and `brew upgrade` pick it up. diff --git a/docs/screenshots/changelog-media-holiday-icons-mobile.png b/docs/screenshots/changelog-media-holiday-icons-mobile.png new file mode 100644 index 000000000..a3f784a18 Binary files /dev/null and b/docs/screenshots/changelog-media-holiday-icons-mobile.png differ diff --git a/docs/screenshots/changelog-media-spaces.png b/docs/screenshots/changelog-media-spaces.png new file mode 100644 index 000000000..705aec716 Binary files /dev/null and b/docs/screenshots/changelog-media-spaces.png differ diff --git a/docs/screenshots/changelog-media-tab-share.png b/docs/screenshots/changelog-media-tab-share.png new file mode 100644 index 000000000..44e67c0b7 Binary files /dev/null and b/docs/screenshots/changelog-media-tab-share.png differ diff --git a/docs/screenshots/whats-new-media-0.13.0.png b/docs/screenshots/whats-new-media-0.13.0.png new file mode 100644 index 000000000..cbf6bf583 Binary files /dev/null and b/docs/screenshots/whats-new-media-0.13.0.png differ diff --git a/docs/screenshots/whats-new-media-0.8.0.png b/docs/screenshots/whats-new-media-0.8.0.png new file mode 100644 index 000000000..974a89527 Binary files /dev/null and b/docs/screenshots/whats-new-media-0.8.0.png differ diff --git a/lilo-ui/e2e/whatsNew.spec.ts b/lilo-ui/e2e/whatsNew.spec.ts index 758eb395a..92b7ee97b 100644 --- a/lilo-ui/e2e/whatsNew.spec.ts +++ b/lilo-ui/e2e/whatsNew.spec.ts @@ -2,6 +2,7 @@ import { expect, test, type Page } from "@playwright/test"; import { bootChrome, type FakeHostWorld } from "./fakeHost"; import { initialWorld } from "./fixtures"; import type { ReleaseNotes } from "../src/components/whatsnew/releaseNotes"; +import { mediaForRelease } from "../../release-media/catalog"; const release: ReleaseNotes = { version: "0.6.0", date: "2026-01-15", @@ -13,13 +14,13 @@ const release: ReleaseNotes = { en: { headline: "A little more in the loop.", description: "A few improvements.", highlights: [ - { illustration: "unread", title: "Catch what you missed.", description: "Unread counts on your tabs." }, - { illustration: "calls", title: "Stay in the conversation.", description: "Smoother video calls." }, + { title: "Catch what you missed.", description: "Unread counts on your tabs." }, + { title: "Stay in the conversation.", description: "Smoother video calls." }, ], }, fr: { headline: "Toujours dans la boucle.", description: "De petites améliorations.", - highlights: [{ illustration: "unread", title: "Ne manquez plus un message.", description: "Les messages non lus dans vos onglets." }], + highlights: [{ title: "Ne manquez plus un message.", description: "Les messages non lus dans vos onglets." }], }, }, }; @@ -36,6 +37,20 @@ async function openWhatsNew(page: Page, automatic = false, version = "0.6.0") { await page.evaluate(({ automatic, version }) => window.__lilo!.receive({ event: "openWhatsNew", automatic, version }), { automatic, version }); } +test("release media keeps its English illustration labeled in the app language", async ({ page }) => { + await bootReleaseChrome(page, initialWorld(), undefined, { ...release, media: mediaForRelease(release.version) }); + await page.evaluate(() => window.__lilo!.receive({ event: "settingsLoaded", settings: { locale: "fr" } })); + await openWhatsNew(page); + const dialog = page.getByRole("dialog"); + const caption = dialog.locator("figcaption"); + await expect(caption).toBeVisible(); + await expect(caption).toHaveAttribute("lang", "fr"); + await expect(caption).toHaveText("Les messages non lus sur les onglets et favoris. Illustration en anglais"); + const illustration = dialog.locator("img"); + await expect(illustration).toHaveAttribute("lang", "en"); + await expect(illustration).toHaveAccessibleName("Les messages non lus sur les onglets et favoris. Illustration en anglais"); +}); + test("the sheet presents installed highlights, all changes and one acknowledgment", async ({ page }) => { const resourceReads = await bootReleaseChrome(page); await openWhatsNew(page, true); diff --git a/lilo-ui/public/release-media/.gitkeep b/lilo-ui/public/release-media/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/lilo-ui/releaseNotesPlugin.ts b/lilo-ui/releaseNotesPlugin.ts index c01571413..9e18266cd 100644 --- a/lilo-ui/releaseNotesPlugin.ts +++ b/lilo-ui/releaseNotesPlugin.ts @@ -1,13 +1,16 @@ import { readFileSync } from "node:fs"; import type { Plugin } from "vite"; +import { mediaForRelease } from "../release-media/catalog"; import { SUPPORTED_LOCALES } from "./src/lib/i18n/translate"; import { localizeReleaseEditorial, parseReleaseNotes, releaseHighlightsForVersion } from "./src/components/whatsnew/releaseNotes"; function bundledRelease(): string { - const version = (JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8")) as { version: string }).version; + const version = process.env.LILO_RELEASE_MEDIA_PREVIEW_VERSION || (JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8")) as { version: string }).version; + if (!/^\d+\.\d+\.\d+$/.test(version)) throw new Error("Invalid release preview version"); let markdown = ""; try { markdown = readFileSync(new URL(`../.changes/v${version}.md`, import.meta.url), "utf8"); } catch { /* Development builds may not have prepared notes. */ } const release = parseReleaseNotes(markdown, version); + release.media = mediaForRelease(version); const registry = JSON.parse(readFileSync(new URL("./src/components/whatsnew/releaseHighlights.json", import.meta.url), "utf8")); const editorial = releaseHighlightsForVersion(registry, version); release.editorial = {}; diff --git a/lilo-ui/src/components/whatsnew/ReleaseMedia.svelte b/lilo-ui/src/components/whatsnew/ReleaseMedia.svelte new file mode 100644 index 000000000..a8103e89a --- /dev/null +++ b/lilo-ui/src/components/whatsnew/ReleaseMedia.svelte @@ -0,0 +1,44 @@ + + +
+ {#if media.kind === "video"} + + {:else} + {media.alt.en} + {/if} +
+ {caption} + {t("whatsNew.mediaLanguage")} +
+
+ + diff --git a/lilo-ui/src/components/whatsnew/WhatsNewArt.svelte b/lilo-ui/src/components/whatsnew/WhatsNewArt.svelte deleted file mode 100644 index bc724439f..000000000 --- a/lilo-ui/src/components/whatsnew/WhatsNewArt.svelte +++ /dev/null @@ -1,140 +0,0 @@ - - - - - diff --git a/lilo-ui/src/components/whatsnew/WhatsNewSheet.svelte b/lilo-ui/src/components/whatsnew/WhatsNewSheet.svelte index f8f148bd0..ca3510d92 100644 --- a/lilo-ui/src/components/whatsnew/WhatsNewSheet.svelte +++ b/lilo-ui/src/components/whatsnew/WhatsNewSheet.svelte @@ -15,12 +15,13 @@ import { reportInteractiveZone } from "../../lib/actions/interactiveZone"; import { getLocale, t } from "../../lib/i18n/state.svelte"; import { acknowledgeWhatsNew, type WhatsNewRequest } from "../../stores/whatsNew.svelte"; - import WhatsNewArt from "./WhatsNewArt.svelte"; + import ReleaseMedia from "./ReleaseMedia.svelte"; let { request, onclose }: { request: WhatsNewRequest; onclose: () => void } = $props(); const titleId = $props.id(); let release = $state.raw(null); const groups = $derived(request.version === release?.version ? release.groups : []); + const media = $derived(request.version === release?.version ? release.media : null); const count = $derived(groups.reduce((sum, group) => sum + group.entries.length, 0)); const editorial = $derived(count ? release?.editorial?.[getLocale()] ?? release?.editorial?.en : null); const date = $derived(request.version === release?.version && release.date @@ -39,7 +40,7 @@ const loaded = await releaseResource; if (cancelled) return; release = loaded; - if (request.automatic && count === 0) { onclose(); return; } + if (request.automatic && count === 0 && !media) { onclose(); return; } await tick(); if (cancelled) return; opener = document.activeElement instanceof HTMLElement ? document.activeElement : null; @@ -65,13 +66,18 @@ function handleKeydown(event: KeyboardEvent): void { event.stopPropagation(); + if (document.fullscreenElement) return; if (event.key === "Escape") { event.preventDefault(); close(); return; } if (event.key !== "Tab") return; - const controls = [...dialog.querySelectorAll("button:not([disabled]), summary")]; - const index = controls.indexOf(document.activeElement as HTMLElement); - const next = event.shiftKey ? (index <= 0 ? controls.length - 1 : index - 1) : (index + 1) % controls.length; - event.preventDefault(); - controls[next]?.focus(); + const controls = [...dialog.querySelectorAll("button:not([disabled]), summary, video[controls], a[href]")] + .filter((element) => element.getClientRects().length > 0); + const current = document.activeElement; + // Let native media controls handle their own Tab stops; wrap only the dialog's outer edges. + if (event.shiftKey && (current === controls[0] || current === heading)) { + event.preventDefault(); controls.at(-1)?.focus(); + } else if (!event.shiftKey && current === controls.at(-1)) { + event.preventDefault(); controls[0]?.focus(); + } } @@ -101,11 +107,12 @@

{editorial?.description ?? t("whatsNew.description")}

+ {#if media}{/if} + {#if editorial}
{#each editorial.highlights as highlight, index (index)}
-

{highlight.title}

{highlight.description}

@@ -116,7 +123,7 @@ {/if} {#if count} -
+
{t("whatsNew.allChanges")} · {t("whatsNew.changes", { count })}

{t("whatsNew.originalNotes")}

@@ -126,7 +133,7 @@ {/each}
- {:else} + {:else if !media}

{t("whatsNew.unavailable")}

{/if}
@@ -200,7 +207,7 @@ .release-close:hover { color: var(--text-primary); background: var(--bg-tertiary); } h2 { margin: var(--space-16) 0 var(--space-8); font-size: var(--font-size-3xl); line-height: 1.2; font-weight: var(--font-weight-semibold); letter-spacing: -0.45px; outline: none; overflow-wrap: anywhere; } .release-intro { margin: 0; color: var(--text-secondary); font-size: var(--font-size-md); line-height: 1.5; } - .release-highlight { display: grid; grid-template-columns: minmax(72px, 25%) minmax(0, 1fr); align-items: center; gap: var(--space-16); padding: var(--space-16) 0; border-top: 1px solid var(--separator); } + .release-highlight { padding: var(--space-16) 0; border-top: 1px solid var(--separator); } h3 { margin: 0 0 var(--space-6); font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); line-height: 1.3; } .release-highlight p { margin: 0; color: var(--text-secondary); font-size: var(--font-size-sm); line-height: 1.5; } .release-notes { border-top: 1px solid var(--separator); padding-top: var(--space-12); font-size: var(--font-size-sm); } diff --git a/lilo-ui/src/components/whatsnew/releaseHighlights.json b/lilo-ui/src/components/whatsnew/releaseHighlights.json index eb38c7224..484f90def 100644 --- a/lilo-ui/src/components/whatsnew/releaseHighlights.json +++ b/lilo-ui/src/components/whatsnew/releaseHighlights.json @@ -4,12 +4,10 @@ "descriptionKey": "whatsNew.releases.v0140.description", "highlights": [ { - "illustration": "drop", "titleKey": "whatsNew.releases.v0140.dropTitle", "descriptionKey": "whatsNew.releases.v0140.dropDescription" }, { - "illustration": "dialogs", "titleKey": "whatsNew.releases.v0140.dialogsTitle", "descriptionKey": "whatsNew.releases.v0140.dialogsDescription" } @@ -20,7 +18,6 @@ "descriptionKey": "whatsNew.releases.v0130.description", "highlights": [ { - "illustration": "seasons", "titleKey": "whatsNew.releases.v0130.seasonsTitle", "descriptionKey": "whatsNew.releases.v0130.seasonsDescription" } @@ -31,7 +28,6 @@ "descriptionKey": "whatsNew.releases.v0120.description", "highlights": [ { - "illustration": "address", "titleKey": "whatsNew.releases.v0120.addressTitle", "descriptionKey": "whatsNew.releases.v0120.addressDescription" } @@ -42,14 +38,8 @@ "descriptionKey": "whatsNew.releases.v0110.description", "highlights": [ { - "illustration": "material", "titleKey": "whatsNew.releases.v0110.materialTitle", "descriptionKey": "whatsNew.releases.v0110.materialDescription" - }, - { - "illustration": "colors", - "titleKey": "whatsNew.releases.v0110.colorsTitle", - "descriptionKey": "whatsNew.releases.v0110.colorsDescription" } ] }, @@ -58,14 +48,12 @@ "descriptionKey": "whatsNew.releases.v0100.description", "highlights": [ { - "illustration": "fresh", - "titleKey": "whatsNew.releases.v0100.freshTitle", - "descriptionKey": "whatsNew.releases.v0100.freshDescription" - }, - { - "illustration": "archive", "titleKey": "whatsNew.releases.v0100.archiveTitle", "descriptionKey": "whatsNew.releases.v0100.archiveDescription" + }, + { + "titleKey": "whatsNew.releases.v0100.freshTitle", + "descriptionKey": "whatsNew.releases.v0100.freshDescription" } ] } diff --git a/lilo-ui/src/components/whatsnew/releaseNotes.test.ts b/lilo-ui/src/components/whatsnew/releaseNotes.test.ts index 5dc7e58f3..cd8c2b505 100644 --- a/lilo-ui/src/components/whatsnew/releaseNotes.test.ts +++ b/lilo-ui/src/components/whatsnew/releaseNotes.test.ts @@ -45,14 +45,14 @@ test("an invalid release date is omitted without losing the changes", () => { assert.deepEqual(notes.groups, [{ kind: "Fixed", entries: ["A useful fix."] }]); }); -const highlight = { illustration: "unread" as const, titleKey: "whatsNew.releases.v060.unreadTitle", descriptionKey: "whatsNew.releases.v060.unreadDescription" }; +const highlight = { titleKey: "whatsNew.releases.v060.unreadTitle", descriptionKey: "whatsNew.releases.v060.unreadDescription" }; const editorial = { headlineKey: "whatsNew.releases.v060.headline", descriptionKey: "whatsNew.releases.v060.description", highlights: [highlight] }; test("only the selected release's translated highlight copy is prepared for the lazy view", () => { const catalog = { whatsNew: { releases: { v060: { headline: "Small improvements.", description: "A better everyday.", unreadTitle: "Catch up.", unreadDescription: "Unread counts on tabs." } } } }; assert.deepEqual(localizeReleaseEditorial(editorial, catalog), { headline: "Small improvements.", description: "A better everyday.", - highlights: [{ illustration: "unread", title: "Catch up.", description: "Unread counts on tabs." }], + highlights: [{ title: "Catch up.", description: "Unread counts on tabs." }], }); assert.equal(localizeReleaseEditorial(editorial, {}), null); assert.equal(localizeReleaseEditorial(null, catalog), null); @@ -64,7 +64,7 @@ test("highlights belong to an exact version and are absent for a maintenance rel }); test("malformed highlights are discarded and at most three valid highlights survive", () => { - const entries = [null, { ...highlight, illustration: "missing" }, { ...highlight, titleKey: "" }, highlight, highlight, highlight, highlight]; + const entries = [null, { ...highlight, titleKey: "" }, { ...highlight, descriptionKey: "" }, highlight, highlight, highlight, highlight]; const result = releaseHighlightsForVersion({ "1.2.3": { ...editorial, highlights: entries } }, "1.2.3"); assert.deepEqual(result?.highlights, [highlight, highlight, highlight]); for (const registry of [null, [], {}, { "1.2.3": { highlights: [highlight] } }, { "1.2.3": { ...editorial, highlights: [] } }]) { diff --git a/lilo-ui/src/components/whatsnew/releaseNotes.ts b/lilo-ui/src/components/whatsnew/releaseNotes.ts index 5bd38f5b5..44d3d1488 100644 --- a/lilo-ui/src/components/whatsnew/releaseNotes.ts +++ b/lilo-ui/src/components/whatsnew/releaseNotes.ts @@ -1,11 +1,9 @@ import type { Locale } from "../../lib/i18n/translate"; +import type { ReleaseMedia } from "../../../../release-media/catalog"; export type ReleaseKind = "Breaking" | "Added" | "Changed" | "Fixed"; -const illustrations = ["unread", "calls", "share", "address", "history", "pip", "languages", "fresh", "archive", "material", "colors", "seasons", "drop", "dialogs"] as const; -export type ReleaseIllustration = typeof illustrations[number]; export interface ReleaseHighlight { - illustration: ReleaseIllustration; titleKey: string; descriptionKey: string; } @@ -19,7 +17,7 @@ export interface ReleaseEditorial { export interface ReleaseEditorialCopy { headline: string; description: string; - highlights: { illustration: ReleaseIllustration; title: string; description: string }[]; + highlights: { title: string; description: string }[]; } export interface ReleaseNotes { @@ -27,6 +25,7 @@ export interface ReleaseNotes { date: string; groups: { kind: ReleaseKind; entries: string[] }[]; editorial?: Partial> | null; + media?: ReleaseMedia | null; } export function parseReleaseNotes(markdown: string, version: string): ReleaseNotes { @@ -74,9 +73,8 @@ export function releaseHighlightsForVersion(registry: unknown, version: string): if (!record(entry) || !key(entry.headlineKey) || !key(entry.descriptionKey) || !Array.isArray(entry.highlights)) return null; const highlights: ReleaseHighlight[] = []; for (const value of entry.highlights) { - if (!record(value) || !illustrations.includes(value.illustration as ReleaseIllustration) - || !key(value.titleKey) || !key(value.descriptionKey)) continue; - highlights.push({ illustration: value.illustration as ReleaseIllustration, titleKey: value.titleKey.trim(), descriptionKey: value.descriptionKey.trim() }); + if (!record(value) || !key(value.titleKey) || !key(value.descriptionKey)) continue; + highlights.push({ titleKey: value.titleKey.trim(), descriptionKey: value.descriptionKey.trim() }); if (highlights.length === 3) break; } return highlights.length ? { headlineKey: entry.headlineKey.trim(), descriptionKey: entry.descriptionKey.trim(), highlights } : null; @@ -89,7 +87,7 @@ export function localizeReleaseEditorial(editorial: ReleaseEditorial | null, cat return typeof value === "string" ? value : ""; }; const headline = text(editorial.headlineKey), description = text(editorial.descriptionKey); - const highlights = editorial.highlights.map((item) => ({ illustration: item.illustration, title: text(item.titleKey), description: text(item.descriptionKey) })) + const highlights = editorial.highlights.map((item) => ({ title: text(item.titleKey), description: text(item.descriptionKey) })) .filter((item) => item.title && item.description); return headline && description && highlights.length ? { headline, description, highlights } : null; } diff --git a/lilo-ui/src/lib/i18n/locales/de.json b/lilo-ui/src/lib/i18n/locales/de.json index a1e477608..bac59e03d 100644 --- a/lilo-ui/src/lib/i18n/locales/de.json +++ b/lilo-ui/src/lib/i18n/locales/de.json @@ -2219,6 +2219,7 @@ "Date Modified": "Änderungsdatum" }, "whatsNew": { + "mediaLanguage": "Illustration auf Englisch", "version": "Lilo {version}", "title": "Neu in Lilo", "description": "Ein paar kleine Verbesserungen für dein tägliches Surfen.", @@ -2264,7 +2265,7 @@ }, "v0110": { "headline": "Jeder Space ganz nach deinem Geschmack.", - "description": "Glas, Körnung und Farben, die deinen Websites, deinem Hintergrundbild oder der Tageszeit folgen.", + "description": "Wähle Glas, Körnung oder eine einfarbige Oberfläche für jeden Space.", "materialTitle": "Glas, Körnung oder einfarbig.", "materialDescription": "Wähle das Material jedes Space in der Fenstervorschau unter Erscheinungsbild: Liquid Glass in seiner Farbe oder feine Filmkörnung.", "colorsTitle": "Farben, die dir folgen.", diff --git a/lilo-ui/src/lib/i18n/locales/en.json b/lilo-ui/src/lib/i18n/locales/en.json index 56ea1ef59..80e458ff4 100644 --- a/lilo-ui/src/lib/i18n/locales/en.json +++ b/lilo-ui/src/lib/i18n/locales/en.json @@ -2219,6 +2219,7 @@ "Date Modified": "Date Modified" }, "whatsNew": { + "mediaLanguage": "English-language illustration", "version": "Lilo {version}", "title": "What’s new in Lilo", "description": "A few small improvements for your everyday browsing.", @@ -2253,7 +2254,7 @@ }, "v0110": { "headline": "Make each Space your own.", - "description": "Glass, grain, and colors that follow your sites, your wallpaper or the time of day.", + "description": "Pick glass, grain or solid for each Space.", "materialTitle": "Glass, grain or solid.", "materialDescription": "Pick each Space's material on its window preview in Appearance: Liquid Glass tinted with its color, or a fine film grain.", "colorsTitle": "Colors that follow you.", diff --git a/lilo-ui/src/lib/i18n/locales/es.json b/lilo-ui/src/lib/i18n/locales/es.json index ee4af2a19..035b2a901 100644 --- a/lilo-ui/src/lib/i18n/locales/es.json +++ b/lilo-ui/src/lib/i18n/locales/es.json @@ -2219,6 +2219,7 @@ "Date Modified": "Fecha de modificación" }, "whatsNew": { + "mediaLanguage": "Ilustración en inglés", "version": "Lilo {version}", "title": "Novedades de Lilo", "description": "Pequeñas mejoras para tu navegación diaria.", @@ -2264,7 +2265,7 @@ }, "v0110": { "headline": "Cada Space, a tu manera.", - "description": "Cristal, grano y colores que siguen tus sitios, tu fondo o la hora del día.", + "description": "Elige vidrio, grano o un color sólido para cada espacio.", "materialTitle": "Cristal, grano o sólido.", "materialDescription": "Elige el material de cada Space en la vista previa de su ventana, en Apariencia: Liquid Glass teñido de su color o un grano fino.", "colorsTitle": "Colores que te siguen.", diff --git a/lilo-ui/src/lib/i18n/locales/fr.json b/lilo-ui/src/lib/i18n/locales/fr.json index 8925267b9..c7f893303 100644 --- a/lilo-ui/src/lib/i18n/locales/fr.json +++ b/lilo-ui/src/lib/i18n/locales/fr.json @@ -2219,6 +2219,7 @@ "Date Modified": "Date de modification" }, "whatsNew": { + "mediaLanguage": "Illustration en anglais", "version": "Lilo {version}", "title": "Les nouveautés de Lilo", "description": "De petites améliorations pour votre navigation au quotidien.", @@ -2253,7 +2254,7 @@ }, "v0110": { "headline": "À chaque Space son style.", - "description": "Du verre, du grain, et des couleurs qui suivent vos sites, votre fond d'écran ou l'heure.", + "description": "Choisissez du verre, du grain ou de l’uni pour chaque Space.", "materialTitle": "Verre, grain ou uni.", "materialDescription": "Choisissez la matière de chaque Space sur l'aperçu de sa fenêtre, dans Apparence : du Liquid Glass teinté de sa couleur, ou un grain fin.", "colorsTitle": "Des couleurs qui vous suivent.", diff --git a/lilo-ui/src/lib/i18n/locales/it.json b/lilo-ui/src/lib/i18n/locales/it.json index 22d0b9e3d..709151c22 100644 --- a/lilo-ui/src/lib/i18n/locales/it.json +++ b/lilo-ui/src/lib/i18n/locales/it.json @@ -2219,6 +2219,7 @@ "Date Modified": "Data di modifica" }, "whatsNew": { + "mediaLanguage": "Illustrazione in inglese", "version": "Lilo {version}", "title": "Novità di Lilo", "description": "Piccoli miglioramenti per la navigazione di ogni giorno.", @@ -2264,7 +2265,7 @@ }, "v0110": { "headline": "Ogni Space a modo tuo.", - "description": "Vetro, grana e colori che seguono i tuoi siti, il tuo sfondo o l'ora del giorno.", + "description": "Scegli vetro, grana o un colore uniforme per ogni spazio.", "materialTitle": "Vetro, grana o pieno.", "materialDescription": "Scegli il materiale di ogni Space nell'anteprima della sua finestra, in Aspetto: Liquid Glass tinto del suo colore o una grana fine.", "colorsTitle": "Colori che ti seguono.", diff --git a/lilo-ui/src/lib/i18n/locales/ja.json b/lilo-ui/src/lib/i18n/locales/ja.json index fff1277e7..c943df5e2 100644 --- a/lilo-ui/src/lib/i18n/locales/ja.json +++ b/lilo-ui/src/lib/i18n/locales/ja.json @@ -2219,6 +2219,7 @@ "Date Modified": "変更日" }, "whatsNew": { + "mediaLanguage": "英語の紹介映像・画像", "version": "Lilo {version}", "title": "Lilo の新機能", "description": "毎日のブラウジングを少し快適にする改善です。", @@ -2264,7 +2265,7 @@ }, "v0110": { "headline": "Space ごとに自分らしく。", - "description": "ガラス、グレイン、そしてサイトや壁紙、時間帯に合わせて変わる色。", + "description": "スペースごとに、ガラス、グレイン、ソリッドを選べます。", "materialTitle": "ガラス、グレイン、ソリッド。", "materialDescription": "「外観」のウインドウプレビューで各 Space の素材を選べます。色で染めた Liquid Glass か、細かなフィルムグレイン。", "colorsTitle": "あなたに合わせる色。", diff --git a/lilo-ui/src/lib/i18n/locales/ko.json b/lilo-ui/src/lib/i18n/locales/ko.json index 40bd5f75d..e7c14e317 100644 --- a/lilo-ui/src/lib/i18n/locales/ko.json +++ b/lilo-ui/src/lib/i18n/locales/ko.json @@ -2219,6 +2219,7 @@ "Date Modified": "수정일" }, "whatsNew": { + "mediaLanguage": "영어로 된 소개 영상 및 이미지", "version": "Lilo {version}", "title": "Lilo의 새로운 기능", "description": "일상적인 인터넷 사용을 위한 작은 개선사항입니다.", @@ -2264,7 +2265,7 @@ }, "v0110": { "headline": "Space마다 나만의 스타일로.", - "description": "유리, 그레인, 그리고 사이트·배경화면·시간대를 따르는 색상.", + "description": "공간마다 유리, 그레인 또는 단색을 선택하세요.", "materialTitle": "유리, 그레인 또는 단색.", "materialDescription": "모양의 창 미리보기에서 각 Space의 재질을 고르세요. 색상으로 물든 Liquid Glass 또는 고운 필름 그레인.", "colorsTitle": "나를 따르는 색상.", diff --git a/lilo-ui/src/lib/i18n/locales/nl.json b/lilo-ui/src/lib/i18n/locales/nl.json index fe9404d8b..2f9297675 100644 --- a/lilo-ui/src/lib/i18n/locales/nl.json +++ b/lilo-ui/src/lib/i18n/locales/nl.json @@ -2219,6 +2219,7 @@ "Date Modified": "Wijzigingsdatum" }, "whatsNew": { + "mediaLanguage": "Illustratie in het Engels", "version": "Lilo {version}", "title": "Nieuw in Lilo", "description": "Een paar kleine verbeteringen voor dagelijks surfen.", @@ -2264,7 +2265,7 @@ }, "v0110": { "headline": "Elke Space helemaal van jou.", - "description": "Glas, korrel en kleuren die je sites, je achtergrond of het tijdstip volgen.", + "description": "Kies glas, korrel of een effen kleur voor elke ruimte.", "materialTitle": "Glas, korrel of effen.", "materialDescription": "Kies het materiaal van elke Space in de venstervoorvertoning onder Weergave: Liquid Glass in zijn kleur, of een fijne filmkorrel.", "colorsTitle": "Kleuren die je volgen.", diff --git a/lilo-ui/src/lib/i18n/locales/pl.json b/lilo-ui/src/lib/i18n/locales/pl.json index e7dbea7bf..0fd80d6b1 100644 --- a/lilo-ui/src/lib/i18n/locales/pl.json +++ b/lilo-ui/src/lib/i18n/locales/pl.json @@ -2239,6 +2239,7 @@ "Date Modified": "Data modyfikacji" }, "whatsNew": { + "mediaLanguage": "Ilustracja w języku angielskim", "version": "Lilo {version}", "title": "Co nowego w Lilo", "description": "Kilka drobnych usprawnień codziennego przeglądania.", @@ -2286,7 +2287,7 @@ }, "v0110": { "headline": "Każdy Space po twojemu.", - "description": "Szkło, ziarno i kolory, które podążają za stronami, tapetą lub porą dnia.", + "description": "Wybierz szkło, ziarno lub jednolitą powierzchnię dla każdej przestrzeni.", "materialTitle": "Szkło, ziarno lub jednolity.", "materialDescription": "Wybierz materiał każdego Space w podglądzie jego okna w Wyglądzie: Liquid Glass zabarwione jego kolorem lub drobne ziarno.", "colorsTitle": "Kolory, które za tobą podążają.", diff --git a/lilo-ui/src/lib/i18n/locales/pt-BR.json b/lilo-ui/src/lib/i18n/locales/pt-BR.json index 8cedaa2f8..309f1df71 100644 --- a/lilo-ui/src/lib/i18n/locales/pt-BR.json +++ b/lilo-ui/src/lib/i18n/locales/pt-BR.json @@ -2219,6 +2219,7 @@ "Date Modified": "Data de modificação" }, "whatsNew": { + "mediaLanguage": "Ilustração em inglês", "version": "Lilo {version}", "title": "Novidades do Lilo", "description": "Pequenas melhorias para sua navegação no dia a dia.", @@ -2264,7 +2265,7 @@ }, "v0110": { "headline": "Cada Space do seu jeito.", - "description": "Vidro, granulado e cores que seguem seus sites, seu papel de parede ou a hora do dia.", + "description": "Escolha vidro, granulação ou uma cor sólida para cada espaço.", "materialTitle": "Vidro, granulado ou sólido.", "materialDescription": "Escolha o material de cada Space na prévia da janela, em Aparência: Liquid Glass tingido com a cor dele ou um granulado fino.", "colorsTitle": "Cores que seguem você.", diff --git a/lilo-ui/src/lib/i18n/locales/ru.json b/lilo-ui/src/lib/i18n/locales/ru.json index bf6cd03ea..b349a541a 100644 --- a/lilo-ui/src/lib/i18n/locales/ru.json +++ b/lilo-ui/src/lib/i18n/locales/ru.json @@ -2239,6 +2239,7 @@ "Date Modified": "Дата изменения" }, "whatsNew": { + "mediaLanguage": "Иллюстрация на английском языке", "version": "Lilo {version}", "title": "Что нового в Lilo", "description": "Небольшие улучшения для повседневной работы в браузере.", @@ -2286,7 +2287,7 @@ }, "v0110": { "headline": "Каждый Space по-своему.", - "description": "Стекло, зерно и цвета, которые следуют за сайтами, обоями или временем суток.", + "description": "Выберите стекло, зернистую или однотонную поверхность для каждого пространства.", "materialTitle": "Стекло, зерно или сплошной.", "materialDescription": "Выберите материал каждого Space в превью окна в разделе «Оформление»: Liquid Glass с его цветом или мелкое плёночное зерно.", "colorsTitle": "Цвета, которые следуют за вами.", diff --git a/lilo-ui/src/lib/i18n/locales/tr.json b/lilo-ui/src/lib/i18n/locales/tr.json index 41a2bb0ae..dcc0a89b9 100644 --- a/lilo-ui/src/lib/i18n/locales/tr.json +++ b/lilo-ui/src/lib/i18n/locales/tr.json @@ -2219,6 +2219,7 @@ "Date Modified": "Değiştirilme tarihi" }, "whatsNew": { + "mediaLanguage": "İngilizce görsel", "version": "Lilo {version}", "title": "Lilo'daki yenilikler", "description": "Günlük gezintinizi kolaylaştıran birkaç küçük iyileştirme.", @@ -2264,7 +2265,7 @@ }, "v0110": { "headline": "Her Space size göre.", - "description": "Cam, gren ve sitelerinizi, duvar kâğıdınızı ya da günün saatini takip eden renkler.", + "description": "Her alan için cam, gren veya düz renk seçin.", "materialTitle": "Cam, gren ya da düz.", "materialDescription": "Her Space'in malzemesini Görünüm'deki pencere önizlemesinde seçin: rengine boyanmış Liquid Glass ya da ince bir film greni.", "colorsTitle": "Sizi takip eden renkler.", diff --git a/lilo-ui/src/lib/i18n/locales/uk.json b/lilo-ui/src/lib/i18n/locales/uk.json index 2fe377355..6b737f235 100644 --- a/lilo-ui/src/lib/i18n/locales/uk.json +++ b/lilo-ui/src/lib/i18n/locales/uk.json @@ -2239,6 +2239,7 @@ "Date Modified": "Дата змінення" }, "whatsNew": { + "mediaLanguage": "Ілюстрація англійською мовою", "version": "Lilo {version}", "title": "Що нового в Lilo", "description": "Кілька невеликих покращень для щоденного перегляду.", @@ -2286,7 +2287,7 @@ }, "v0110": { "headline": "Кожен Space по-своєму.", - "description": "Скло, зерно й кольори, що стежать за сайтами, шпалерами чи часом доби.", + "description": "Виберіть скло, зернисту або однотонну поверхню для кожного простору.", "materialTitle": "Скло, зерно або суцільний.", "materialDescription": "Обирайте матеріал кожного Space у прев'ю вікна в розділі «Вигляд»: Liquid Glass з його кольором або дрібне плівкове зерно.", "colorsTitle": "Кольори, що йдуть за вами.", diff --git a/lilo-ui/src/lib/i18n/locales/zh-Hans.json b/lilo-ui/src/lib/i18n/locales/zh-Hans.json index 80494f35a..8c8adf2d2 100644 --- a/lilo-ui/src/lib/i18n/locales/zh-Hans.json +++ b/lilo-ui/src/lib/i18n/locales/zh-Hans.json @@ -2219,6 +2219,7 @@ "Date Modified": "修改日期" }, "whatsNew": { + "mediaLanguage": "英语演示", "version": "Lilo {version}", "title": "Lilo 更新内容", "description": "让日常浏览更顺手的一些小改进。", @@ -2264,7 +2265,7 @@ }, "v0110": { "headline": "每个 Space 都有自己的风格。", - "description": "玻璃、颗粒,以及随网站、墙纸或时间变化的颜色。", + "description": "为每个空间选择玻璃、颗粒或纯色材质。", "materialTitle": "玻璃、颗粒或纯色。", "materialDescription": "在“外观”的窗口预览中为每个 Space 选择材质:以其颜色着色的 Liquid Glass,或细腻的胶片颗粒。", "colorsTitle": "随你而变的颜色。", diff --git a/lilo-ui/src/lib/i18n/locales/zh-Hant.json b/lilo-ui/src/lib/i18n/locales/zh-Hant.json index e60063ca1..af784bcb4 100644 --- a/lilo-ui/src/lib/i18n/locales/zh-Hant.json +++ b/lilo-ui/src/lib/i18n/locales/zh-Hant.json @@ -2219,6 +2219,7 @@ "Date Modified": "修改日期" }, "whatsNew": { + "mediaLanguage": "英語示範", "version": "Lilo {version}", "title": "Lilo 的最新內容", "description": "為日常瀏覽帶來一些小改進。", @@ -2264,7 +2265,7 @@ }, "v0110": { "headline": "每個 Space 都有自己的風格。", - "description": "玻璃、顆粒,以及隨網站、背景圖片或時間變化的顏色。", + "description": "為每個空間選擇玻璃、顆粒或純色材質。", "materialTitle": "玻璃、顆粒或純色。", "materialDescription": "在「外觀」的視窗預覽中為每個 Space 選擇材質:以其顏色著色的 Liquid Glass,或細膩的底片顆粒。", "colorsTitle": "隨你而變的顏色。", diff --git a/lilo-ui/vite.config.ts b/lilo-ui/vite.config.ts index 4a269dc03..0cdf2d25a 100644 --- a/lilo-ui/vite.config.ts +++ b/lilo-ui/vite.config.ts @@ -24,6 +24,7 @@ function cspPlugin(): Plugin { "script-src 'self'; " + "style-src 'self' 'unsafe-inline'; " + "img-src 'self' data: blob:; " + + "media-src 'self'; " + "font-src data:; " + "connect-src 'self'; " + "base-uri 'none'; " + diff --git a/project.yml b/project.yml index a454e7a25..fd1d82193 100644 --- a/project.yml +++ b/project.yml @@ -119,6 +119,9 @@ targets: - path: lilo-ui/public/password-managers type: folder buildPhase: resources + - path: lilo-ui/public/release-media + type: folder + buildPhase: resources LiloPowerHelper: type: tool diff --git a/release-media/README.md b/release-media/README.md new file mode 100644 index 000000000..71baa37df --- /dev/null +++ b/release-media/README.md @@ -0,0 +1,39 @@ +# Release media + +HyperFrames produces the MP4 announcements and PNG screenshots shared by the public changelog and native What’s New. The archive covers 31 releases: eight interaction films, six screenshots and seventeen text-only maintenance releases. Each media decision names exact source notes in `backlog.json`. Visible captions use the reader’s language and label the retained English-language illustrations. + +## Native sources and authoring + +All UI imagery comes from compiled native Lilo with disposable profiles, owned example.com pages and synthetic call handlers. Receipts under `public/native/` identify the actual app version/build, source commit, geometry and PNG hashes. Historical releases are illustrated using that recorded app version; the historical release binary is not implied. + +`make release-media-author` checks published and pending notes. It selects a supported meaningful visual workflow, chooses a screenshot for a finished visual state, and leaves routine fixes text-only. Unknown visual features fail closed. The feature implementation must include its native capture and literal HyperFrames storyboard; the release step does not invent UI. The reusable capture capabilities are in `pipeline.mjs`, with their concrete tests in `LiloTests/Window/ReleaseMediaCaptureTests.swift`. + +Literal HTML scenes live in `hyperframes/`. The 26-second 0.8.0 story is the approved full announcement. Future tab-sharing-only releases use its 18.6-second variant, which does not claim the address-bar change is new. Each film has deliberate pointer actions, native state changes, readable titles and an ending. New compositions use local fonts/assets and deterministic paused GSAP timelines. + +Isolated interface pieces are RGBA PNG cutouts. Only alpha changes; all captured RGB bytes and canvas dimensions remain unchanged. The gate independently compares the processed assets with their original native sources. Complete browser windows retain their real page content. Native pixels receive no CSS blur or 3D tilt. + +## Make workflow + +- `make release-media-author`: select/check the story from release notes. +- `make release-media-capture RELEASE=x.y.z FIXTURE=a.b.c`: run the selected genuine native workflow; omit arguments to capture the archive. +- `make release-media-import RELEASE=x.y.z`: verify and import the native receipts, including secondary captures. +- `make release-media-render RELEASE=x.y.z`: generate the MP4 or screenshot; omit RELEASE to render the archive. +- `make release-media-check release-media-test release-media-inspect`: verify encoded media, run refusal tests and extract compact review sheets. +- `make release-media-publish-check`: require current passing receipts for every published asset. +- `make release-media-ci RELEASE=x.y.z`: select, capture, import, render, inspect, review in native What’s New and quality-gate the release automatically. + +`make release-version` invokes this pipeline and builds the site. Tagged CI repeats the native capture on macOS from the exact tag, then passes one verified artifact to signing and website deployment. A failed or missing check blocks publication. The complete signing/deployment setup is in [RELEASING.md](../docs/RELEASING.md). + +## Quality contract + +Films use 1920×1080, 60 fps, lossless PNG capture, H.264 CRF16 and stereo AAC 48k/192k. HyperFrames structural/runtime/layout/contrast/motion/audio checks run in strict mode. Encoded QA checks frame count, full decode, native/source/recipe/render hashes, transparent cutouts, loudness and true peak, bounded frame changes and poster SSIM ≥0.98. The announcement contract permits reading holds up to 3 seconds, requires at least 20% changing frames and bounds deliberate scene transitions. These signal checks complement compact visual review; they do not judge the music artistically. + +Each `quality.json` binds to the exact `render.json`, source receipts, recipes and PNG/MP4 hashes. The render receipt records its resolved fixture, composition directory and variant. Adding an unrelated fixture does not invalidate existing media; changing the selected recipe or shared renderer does. Screenshot receipts omit unused audio and logo inputs. Deployment checks use Node alone. Quality generation requires the local CLI/browser, Sharp and FFmpeg. A fresh checkout regenerates staging inputs; verified local renders can be reused when those inputs remain present and unchanged. No boolean manual-approval field bypasses the gate. Setting `backlog.json` publication to `blocked` remains a kill switch that automatic authoring preserves. + +CI checks the committed publication receipts on every pull request. Archive rendering runs only for authoring, capture or build wiring changes. Website and app UI changes run the media browser checks without rerendering the archive. Documentation-only changes skip both expensive paths. + +## Sound + +The soundtrack is **Week 37–Schmoovin** by Abstraction/Tallbeard Studios, licensed CC0. Attribution is optional; films have no music credit overlay. The original audio, creator’s waiver, source URL and checksums are committed under `public/audio/music.*`. CI uses committed assets and needs no music account or download. + +Editorial click/transition sounds retain their CC0 provenance in `public/audio/README.md`. They explain visible actions and are not represented as sounds made by Lilo itself. License notices for dependencies and referenced motion techniques remain in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). diff --git a/release-media/THIRD_PARTY_NOTICES.md b/release-media/THIRD_PARTY_NOTICES.md new file mode 100644 index 000000000..cc3414c29 --- /dev/null +++ b/release-media/THIRD_PARTY_NOTICES.md @@ -0,0 +1,27 @@ +# Motion references + +The camera easing curve and quintic mask-reveal easing are adapted from Motion Prompt #009 and #005 by Shohei Ohtaki. Native imagery, pointer paths and film timelines are Lilo-specific; no Linear artwork or interface recreation is included. + +Source: https://github.com/showheyohtaki/motion-prompt + +MIT License + +Copyright (c) 2026 Shohei Ohtaki + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/release-media/assets/0.1.0/browser.png b/release-media/assets/0.1.0/browser.png new file mode 100644 index 000000000..a0c69207c Binary files /dev/null and b/release-media/assets/0.1.0/browser.png differ diff --git a/release-media/assets/0.1.0/quality.json b/release-media/assets/0.1.0/quality.json new file mode 100644 index 000000000..51c7a2ffb --- /dev/null +++ b/release-media/assets/0.1.0/quality.json @@ -0,0 +1,11 @@ +{ + "release": "0.1.0", + "kind": "screenshot", + "passed": true, + "renderSha256": "9e60ab5424a4efac61379c176589fbc3f7cc8e61fab7e9c96d4420c1e31b9a21", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [] +} diff --git a/release-media/assets/0.1.0/render.json b/release-media/assets/0.1.0/render.json new file mode 100644 index 000000000..0e75b150b --- /dev/null +++ b/release-media/assets/0.1.0/render.json @@ -0,0 +1,37 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.1.0", + "kind": "screenshot", + "feature": "browser", + "recipe": { + "fixture": "0.1.0", + "directory": null, + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 1, + "posterFrame": 0, + "hashes": { + "browser.png": "4ff538154c0dc2f1a7f84faa484854af2215ac9b6174568d5dd6fdb137bedea8" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4" + }, + "nativeReceipts": [ + { + "path": "public/native/0.1.0/capture.json", + "sha256": "444d228ac189a2d817d665b436d2a18a53f934f0427905e1e3a98df6d93573f7", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [] +} diff --git a/release-media/assets/0.1.3/pinned-tabs.mp4 b/release-media/assets/0.1.3/pinned-tabs.mp4 new file mode 100644 index 000000000..f44a759eb Binary files /dev/null and b/release-media/assets/0.1.3/pinned-tabs.mp4 differ diff --git a/release-media/assets/0.1.3/pinned-tabs.png b/release-media/assets/0.1.3/pinned-tabs.png new file mode 100644 index 000000000..40c124574 Binary files /dev/null and b/release-media/assets/0.1.3/pinned-tabs.png differ diff --git a/release-media/assets/0.1.3/quality.json b/release-media/assets/0.1.3/quality.json new file mode 100644 index 000000000..7c7ac9ebb --- /dev/null +++ b/release-media/assets/0.1.3/quality.json @@ -0,0 +1,71 @@ +{ + "release": "0.1.3", + "kind": "video", + "passed": true, + "renderSha256": "f1e3f99aa3b2db51b8f968988499385a3a91ff713172462e5221ff323a3fc8cb", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [ + { + "file": "pinned.png", + "rgbPreserved": true, + "transparentPixels": 104904 + }, + { + "file": "rename-0.png", + "rgbPreserved": true, + "transparentPixels": 104904 + }, + { + "file": "rename-1.png", + "rgbPreserved": true, + "transparentPixels": 104904 + }, + { + "file": "rename-2.png", + "rgbPreserved": true, + "transparentPixels": 104904 + }, + { + "file": "rename-3.png", + "rgbPreserved": true, + "transparentPixels": 104904 + }, + { + "file": "rename-4.png", + "rgbPreserved": true, + "transparentPixels": 104904 + }, + { + "file": "rename-5.png", + "rgbPreserved": true, + "transparentPixels": 104904 + }, + { + "file": "rename-6.png", + "rgbPreserved": true, + "transparentPixels": 104904 + }, + { + "file": "renamed.png", + "rgbPreserved": true, + "transparentPixels": 104904 + } + ], + "decode": true, + "fps": 60, + "frames": 720, + "audio": { + "integratedLoudnessLUFS": -16.1, + "truePeakDbFS": -2.5 + }, + "motion": { + "measuredFrames": 719, + "movingFrameRatio": 0.24061196105702365, + "longestStillSeconds": 2.45, + "largestLumaChange": 2.84809 + }, + "posterSSIM": 0.999038 +} diff --git a/release-media/assets/0.1.3/render.json b/release-media/assets/0.1.3/render.json new file mode 100644 index 000000000..e574941c1 --- /dev/null +++ b/release-media/assets/0.1.3/render.json @@ -0,0 +1,123 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.1.3", + "kind": "video", + "feature": "pinned-tabs", + "recipe": { + "fixture": "0.1.3", + "directory": "hyperframes/archive/0.1.3", + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 720, + "posterFrame": 660, + "hashes": { + "pinned-tabs.png": "a85f418db31135c7d3654f048e3aa11cb0e4892ad751ca5e04853e3105f53380", + "pinned-tabs.mp4": "1789fabf5ca485bf16aee080838ddb3bcf8fdf867d12ea1bcf295a4f4d26b969" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4", + "public/audio/music.ogg": "076d06a68ce9dc8f7d2401afa05e247ad3849ac4d425c3b28f995c15bfdab007", + "public/audio/music.license.json": "a3e033734f1fb188ca9cb3b161938343e57d4e0aa289f5605486b8f15be8b2d8", + "public/audio/music.LICENSE.txt": "d02e059adb401d50167b2e04d12ef9236fbcef0b4e3b7157bd5ebfab8a82b8f4", + "public/audio/mouse-click.wav": "887a9259203cafa24ad90274029d574ba29438bcdc87e6f384e4472f85736348", + "public/audio/switch.wav": "0d07c6daac595425c820d92966bbc35cbd6590f4bde8a59199743b9bf45da77e", + "hyperframes/assets/logo.svg": "9345636a0774cc6d4439f5e90303d7f172c9f089c3dabcbe436e3f0d63f1ce49", + "hyperframes/archive/0.1.3/compositions/feature.html": "39b8ba7237584b00fe87f14f19186366a46865984bfe762fc0942559591fd507", + "hyperframes/archive/0.1.3/index.html": "7e89e8170e5cf56e5f9cdefb8bef98c39fabf696fe0d0ee5795a721e80dab323", + "hyperframes/archive/0.1.3/metadata.json": "ac723e64f6e6199676e8823984dceb6676e1a8d8de3e4e213f9689f314b03e93", + "hyperframes/archive/ending.html": "51bef5e03fdc91b4d1063d860e1fe7730e6f5cae85b62ba30bc327981eba8edd", + "hyperframes/archive/shared.css": "36cbfda538846c5d2a96ed082be6297f2a015e6cb824f46f3eefff66ae84b2d2", + "hyperframes/archive/shared.js": "71b6e4139f3dc008e640b269b5a7b24ab525366b6edc0ab519b33d8c783ec114" + }, + "nativeReceipts": [ + { + "path": "public/native/0.1.3/capture.json", + "sha256": "5aec056a570ea193050304af17700b15d699ea5991ff27960b11d78cbd9ccbb4", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [ + { + "file": "pinned.png", + "rgbSha256": "6709ef338d2af74ce5512640dd0c64f3b11597818f9788c7f83f5c77fc0bf20a", + "alphaSha256": "15002347423587dc01b17eb54857fde17cbff776550397a38a7a7bfd3a6f5c1e", + "transparentPixels": 104904, + "opaquePixels": 452056, + "source": "public/native/0.1.3/pinned.png" + }, + { + "file": "rename-0.png", + "rgbSha256": "5fa5f41e880d7af78695c856fb399538218fd00d27f2eb62601c458cae4ba4b9", + "alphaSha256": "15002347423587dc01b17eb54857fde17cbff776550397a38a7a7bfd3a6f5c1e", + "transparentPixels": 104904, + "opaquePixels": 452056, + "source": "public/native/0.1.3/rename-0.png" + }, + { + "file": "rename-1.png", + "rgbSha256": "14c2ef3800afd6eb8a087813c7d88048754e12898cfce6fb83b337bb87b30a68", + "alphaSha256": "15002347423587dc01b17eb54857fde17cbff776550397a38a7a7bfd3a6f5c1e", + "transparentPixels": 104904, + "opaquePixels": 452056, + "source": "public/native/0.1.3/rename-1.png" + }, + { + "file": "rename-2.png", + "rgbSha256": "b1c6d9d8a68c31a03f12edce42562a56555e5feb41be1cb37c32cbb49c98b369", + "alphaSha256": "15002347423587dc01b17eb54857fde17cbff776550397a38a7a7bfd3a6f5c1e", + "transparentPixels": 104904, + "opaquePixels": 452056, + "source": "public/native/0.1.3/rename-2.png" + }, + { + "file": "rename-3.png", + "rgbSha256": "d3db1fb431b5caa4af6cd46c7bc5920b6fdf3b71e60b242fc3a66d0410276d24", + "alphaSha256": "15002347423587dc01b17eb54857fde17cbff776550397a38a7a7bfd3a6f5c1e", + "transparentPixels": 104904, + "opaquePixels": 452056, + "source": "public/native/0.1.3/rename-3.png" + }, + { + "file": "rename-4.png", + "rgbSha256": "629a691aadc5c7483b42ab17740a4c790ec87637bbddaf38d5885d0c5b306539", + "alphaSha256": "15002347423587dc01b17eb54857fde17cbff776550397a38a7a7bfd3a6f5c1e", + "transparentPixels": 104904, + "opaquePixels": 452056, + "source": "public/native/0.1.3/rename-4.png" + }, + { + "file": "rename-5.png", + "rgbSha256": "5cc694269b7a94539f7c93e559c2c57b4b26c8012b7a10030c2164f8550e68e9", + "alphaSha256": "15002347423587dc01b17eb54857fde17cbff776550397a38a7a7bfd3a6f5c1e", + "transparentPixels": 104904, + "opaquePixels": 452056, + "source": "public/native/0.1.3/rename-5.png" + }, + { + "file": "rename-6.png", + "rgbSha256": "68393bb8571cfa33ef6b8ef7dff2da98723ecd13e8fff25e952cecb02aae72a5", + "alphaSha256": "15002347423587dc01b17eb54857fde17cbff776550397a38a7a7bfd3a6f5c1e", + "transparentPixels": 104904, + "opaquePixels": 452056, + "source": "public/native/0.1.3/rename-6.png" + }, + { + "file": "renamed.png", + "rgbSha256": "017d41d711ca44b3ac7047909344d1dc1346ddc6697d6ea2c606330c505eeb5e", + "alphaSha256": "15002347423587dc01b17eb54857fde17cbff776550397a38a7a7bfd3a6f5c1e", + "transparentPixels": 104904, + "opaquePixels": 452056, + "source": "public/native/0.1.3/renamed.png" + } + ] +} diff --git a/release-media/assets/0.10.0/archive.mp4 b/release-media/assets/0.10.0/archive.mp4 new file mode 100644 index 000000000..0c765a1bf Binary files /dev/null and b/release-media/assets/0.10.0/archive.mp4 differ diff --git a/release-media/assets/0.10.0/archive.png b/release-media/assets/0.10.0/archive.png new file mode 100644 index 000000000..9091ee745 Binary files /dev/null and b/release-media/assets/0.10.0/archive.png differ diff --git a/release-media/assets/0.10.0/quality.json b/release-media/assets/0.10.0/quality.json new file mode 100644 index 000000000..8e8c8eccf --- /dev/null +++ b/release-media/assets/0.10.0/quality.json @@ -0,0 +1,31 @@ +{ + "release": "0.10.0", + "kind": "video", + "passed": true, + "renderSha256": "4bba49f5dcfd2d295f760e32b0bf3faa0caa599b386cb773abe25cb586684952", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [ + { + "file": "archive.png", + "rgbPreserved": true, + "transparentPixels": 13692 + } + ], + "decode": true, + "fps": 60, + "frames": 780, + "audio": { + "integratedLoudnessLUFS": -16, + "truePeakDbFS": -2.5 + }, + "motion": { + "measuredFrames": 779, + "movingFrameRatio": 0.34403080872913994, + "longestStillSeconds": 2.683333333333333, + "largestLumaChange": 17.7082 + }, + "posterSSIM": 0.99905 +} diff --git a/release-media/assets/0.10.0/render.json b/release-media/assets/0.10.0/render.json new file mode 100644 index 000000000..658813c51 --- /dev/null +++ b/release-media/assets/0.10.0/render.json @@ -0,0 +1,59 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.10.0", + "kind": "video", + "feature": "archive", + "recipe": { + "fixture": "0.10.0", + "directory": "hyperframes/archive/0.10.0", + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 780, + "posterFrame": 720, + "hashes": { + "archive.png": "f87c18869a4c884104cef67f8a8fcf00004d128fd77e94ff5b9f4a081ac39577", + "archive.mp4": "aa5e8b48343a9c5537d0fc82adde90f9cb70eba56221e962ce3b673838e81180" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4", + "public/audio/music.ogg": "076d06a68ce9dc8f7d2401afa05e247ad3849ac4d425c3b28f995c15bfdab007", + "public/audio/music.license.json": "a3e033734f1fb188ca9cb3b161938343e57d4e0aa289f5605486b8f15be8b2d8", + "public/audio/music.LICENSE.txt": "d02e059adb401d50167b2e04d12ef9236fbcef0b4e3b7157bd5ebfab8a82b8f4", + "public/audio/mouse-click.wav": "887a9259203cafa24ad90274029d574ba29438bcdc87e6f384e4472f85736348", + "public/audio/switch.wav": "0d07c6daac595425c820d92966bbc35cbd6590f4bde8a59199743b9bf45da77e", + "hyperframes/assets/logo.svg": "9345636a0774cc6d4439f5e90303d7f172c9f089c3dabcbe436e3f0d63f1ce49", + "hyperframes/archive/0.10.0/compositions/feature.html": "192464edd5478b420b99a4dd90a7dcba949e1bdcd370d727c132e55a13a65e47", + "hyperframes/archive/0.10.0/index.html": "56fd34e2469e14a8c894d2a770835e40bcd5a60cd8db4cda797140117dfe63b4", + "hyperframes/archive/0.10.0/metadata.json": "038e7b99ac4e07172cfb6a905f2d477ed566ee3d698372c6f9249776a28a13e6", + "hyperframes/archive/ending.html": "51bef5e03fdc91b4d1063d860e1fe7730e6f5cae85b62ba30bc327981eba8edd", + "hyperframes/archive/shared.css": "36cbfda538846c5d2a96ed082be6297f2a015e6cb824f46f3eefff66ae84b2d2", + "hyperframes/archive/shared.js": "71b6e4139f3dc008e640b269b5a7b24ab525366b6edc0ab519b33d8c783ec114" + }, + "nativeReceipts": [ + { + "path": "public/native/0.10.0/capture.json", + "sha256": "8dba1d7d6ce61f22291bcbec3b2b3e01ce040462aa58f42fc17583df5895ed1c", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [ + { + "file": "archive.png", + "rgbSha256": "8085f109009123a54c85c94d268eff5d9d7c8e8ea3e92f33920ec895cb664c87", + "alphaSha256": "8d531cb8a538b38d25f99a6bed6993554fd6222e34c9b4e610455016fbeae985", + "transparentPixels": 13692, + "opaquePixels": 1588763, + "source": "public/native/0.10.0/archive.png" + } + ] +} diff --git a/release-media/assets/0.11.0/quality.json b/release-media/assets/0.11.0/quality.json new file mode 100644 index 000000000..a773cc5ac --- /dev/null +++ b/release-media/assets/0.11.0/quality.json @@ -0,0 +1,41 @@ +{ + "release": "0.11.0", + "kind": "video", + "passed": true, + "renderSha256": "7388cbdbfaf47c6a12fbbbf15446011c7b3938476a641b63e8ca7925ced08a9c", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [ + { + "file": "solid-controls.png", + "rgbPreserved": true, + "transparentPixels": 12028 + }, + { + "file": "glass-controls.png", + "rgbPreserved": true, + "transparentPixels": 12028 + }, + { + "file": "grain-controls.png", + "rgbPreserved": true, + "transparentPixels": 12028 + } + ], + "decode": true, + "fps": 60, + "frames": 1080, + "audio": { + "integratedLoudnessLUFS": -16, + "truePeakDbFS": -2.5 + }, + "motion": { + "measuredFrames": 1079, + "movingFrameRatio": 0.36793327154772937, + "longestStillSeconds": 2.5833333333333335, + "largestLumaChange": 6.80151 + }, + "posterSSIM": 0.999005 +} diff --git a/release-media/assets/0.11.0/render.json b/release-media/assets/0.11.0/render.json new file mode 100644 index 000000000..625e17c1a --- /dev/null +++ b/release-media/assets/0.11.0/render.json @@ -0,0 +1,75 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.11.0", + "kind": "video", + "feature": "spaces", + "recipe": { + "fixture": "0.11.0", + "directory": "hyperframes/archive/0.11.0", + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 1080, + "posterFrame": 1020, + "hashes": { + "spaces.png": "02321f3cd1af6d2f70508d9c5a2c9c26fb571ab9dc729755e6a4a871272862ec", + "spaces.mp4": "6a9f24b779eae2e71871e1563c5ea71004885cdb5cdf809af38a62bb4e23fdb5" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4", + "public/audio/music.ogg": "076d06a68ce9dc8f7d2401afa05e247ad3849ac4d425c3b28f995c15bfdab007", + "public/audio/music.license.json": "a3e033734f1fb188ca9cb3b161938343e57d4e0aa289f5605486b8f15be8b2d8", + "public/audio/music.LICENSE.txt": "d02e059adb401d50167b2e04d12ef9236fbcef0b4e3b7157bd5ebfab8a82b8f4", + "public/audio/mouse-click.wav": "887a9259203cafa24ad90274029d574ba29438bcdc87e6f384e4472f85736348", + "public/audio/switch.wav": "0d07c6daac595425c820d92966bbc35cbd6590f4bde8a59199743b9bf45da77e", + "hyperframes/assets/logo.svg": "9345636a0774cc6d4439f5e90303d7f172c9f089c3dabcbe436e3f0d63f1ce49", + "hyperframes/archive/0.11.0/compositions/feature.html": "ebe1adc9b352ad4bf42cc5d92ffb85acbc31135cffc2040faff14e5dd63b4fbc", + "hyperframes/archive/0.11.0/index.html": "56e907b11f5e41106275675220e476159afdb6c8310bbe4ecf69fe5b4ea244bc", + "hyperframes/archive/0.11.0/metadata.json": "b52b4c89b57fb3629b911666a67bc3875963e5c4126d4ef3753a5c2c387b444a", + "hyperframes/archive/ending.html": "51bef5e03fdc91b4d1063d860e1fe7730e6f5cae85b62ba30bc327981eba8edd", + "hyperframes/archive/shared.css": "36cbfda538846c5d2a96ed082be6297f2a015e6cb824f46f3eefff66ae84b2d2", + "hyperframes/archive/shared.js": "71b6e4139f3dc008e640b269b5a7b24ab525366b6edc0ab519b33d8c783ec114" + }, + "nativeReceipts": [ + { + "path": "public/native/0.11.0/capture.json", + "sha256": "4d6304bc998e10258cfdc671e4f32f7486708540beb43ae172bd4eeaba3b2148", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [ + { + "file": "solid-controls.png", + "rgbSha256": "577d71f56e431d54ce1bd199a1ce53bd2b7123a142221040c4637e15a541ca55", + "alphaSha256": "f8ef2b05b0239c7bf35819eb58196a76cbdcba694439806128a42cab29f27c0b", + "transparentPixels": 12028, + "opaquePixels": 359708, + "source": "public/native/0.11.0/solid-controls.png" + }, + { + "file": "glass-controls.png", + "rgbSha256": "e741269c87e18023863c818d6b943fe641640e57f0ab1c42743d191fcedc4ed6", + "alphaSha256": "f8ef2b05b0239c7bf35819eb58196a76cbdcba694439806128a42cab29f27c0b", + "transparentPixels": 12028, + "opaquePixels": 359708, + "source": "public/native/0.11.0/glass-controls.png" + }, + { + "file": "grain-controls.png", + "rgbSha256": "364d5f17a77c390a196a86f95ad082127ffce02a0e5c6446d88d23441778ffb3", + "alphaSha256": "f8ef2b05b0239c7bf35819eb58196a76cbdcba694439806128a42cab29f27c0b", + "transparentPixels": 12028, + "opaquePixels": 359708, + "source": "public/native/0.11.0/grain-controls.png" + } + ] +} diff --git a/release-media/assets/0.11.0/spaces.mp4 b/release-media/assets/0.11.0/spaces.mp4 new file mode 100644 index 000000000..a36af7062 Binary files /dev/null and b/release-media/assets/0.11.0/spaces.mp4 differ diff --git a/release-media/assets/0.11.0/spaces.png b/release-media/assets/0.11.0/spaces.png new file mode 100644 index 000000000..796454b55 Binary files /dev/null and b/release-media/assets/0.11.0/spaces.png differ diff --git a/release-media/assets/0.12.0/quality.json b/release-media/assets/0.12.0/quality.json new file mode 100644 index 000000000..5b3651434 --- /dev/null +++ b/release-media/assets/0.12.0/quality.json @@ -0,0 +1,11 @@ +{ + "release": "0.12.0", + "kind": "screenshot", + "passed": true, + "renderSha256": "e5ba5dfb2f7b8db4a4dcfb035f80632e05c5dda3e0116aeaec5c522aed5cb281", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [] +} diff --git a/release-media/assets/0.12.0/render.json b/release-media/assets/0.12.0/render.json new file mode 100644 index 000000000..a0fe68a51 --- /dev/null +++ b/release-media/assets/0.12.0/render.json @@ -0,0 +1,37 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.12.0", + "kind": "screenshot", + "feature": "site-colors", + "recipe": { + "fixture": "0.12.0", + "directory": null, + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 1, + "posterFrame": 0, + "hashes": { + "site-colors.png": "7fae0d25136c372364b93b4814d63ba6b0482052103ffd06a1a891b7262d11c5" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4" + }, + "nativeReceipts": [ + { + "path": "public/native/0.12.0/capture.json", + "sha256": "67284ca292f359f8bf5b060b2a51414ea6b343e6f6c6bc9e5f18c413d38da43a", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [] +} diff --git a/release-media/assets/0.12.0/site-colors.png b/release-media/assets/0.12.0/site-colors.png new file mode 100644 index 000000000..cb0e45373 Binary files /dev/null and b/release-media/assets/0.12.0/site-colors.png differ diff --git a/release-media/assets/0.13.0/quality.json b/release-media/assets/0.13.0/quality.json new file mode 100644 index 000000000..be51d742f --- /dev/null +++ b/release-media/assets/0.13.0/quality.json @@ -0,0 +1,11 @@ +{ + "release": "0.13.0", + "kind": "screenshot", + "passed": true, + "renderSha256": "5bb4d3ff3f022a83a2464cde4e9efa5eea3d04f6cc2d4f615392c3c452fee72d", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [] +} diff --git a/release-media/assets/0.13.0/render.json b/release-media/assets/0.13.0/render.json new file mode 100644 index 000000000..c3168a066 --- /dev/null +++ b/release-media/assets/0.13.0/render.json @@ -0,0 +1,37 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.13.0", + "kind": "screenshot", + "feature": "seasons", + "recipe": { + "fixture": "0.13.0", + "directory": null, + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 1, + "posterFrame": 0, + "hashes": { + "seasons.png": "3affc871f11e29591d55c4ee15a8f865989a5d83aa7049bf07a339626b7ed08d" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4" + }, + "nativeReceipts": [ + { + "path": "public/native/0.13.0/capture.json", + "sha256": "17de81df8c8a1e414552fb3ebab88197d06a3c06ddea42b5af120dd8eb3bba49", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [] +} diff --git a/release-media/assets/0.13.0/seasons.png b/release-media/assets/0.13.0/seasons.png new file mode 100644 index 000000000..a357de513 Binary files /dev/null and b/release-media/assets/0.13.0/seasons.png differ diff --git a/release-media/assets/0.14.0/drop.mp4 b/release-media/assets/0.14.0/drop.mp4 new file mode 100644 index 000000000..9f25e3766 Binary files /dev/null and b/release-media/assets/0.14.0/drop.mp4 differ diff --git a/release-media/assets/0.14.0/drop.png b/release-media/assets/0.14.0/drop.png new file mode 100644 index 000000000..d8d015794 Binary files /dev/null and b/release-media/assets/0.14.0/drop.png differ diff --git a/release-media/assets/0.14.0/quality.json b/release-media/assets/0.14.0/quality.json new file mode 100644 index 000000000..192909c42 --- /dev/null +++ b/release-media/assets/0.14.0/quality.json @@ -0,0 +1,25 @@ +{ + "release": "0.14.0", + "kind": "video", + "passed": true, + "renderSha256": "95b9049d1f30fa052762722201138429e9896c385cc61c7fc6107fa106c046c5", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [], + "decode": true, + "fps": 60, + "frames": 780, + "audio": { + "integratedLoudnessLUFS": -16, + "truePeakDbFS": -2.5 + }, + "motion": { + "measuredFrames": 779, + "movingFrameRatio": 0.38254172015404364, + "longestStillSeconds": 2.683333333333333, + "largestLumaChange": 7.55065 + }, + "posterSSIM": 0.999061 +} diff --git a/release-media/assets/0.14.0/render.json b/release-media/assets/0.14.0/render.json new file mode 100644 index 000000000..654742401 --- /dev/null +++ b/release-media/assets/0.14.0/render.json @@ -0,0 +1,50 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.14.0", + "kind": "video", + "feature": "drop", + "recipe": { + "fixture": "0.14.0", + "directory": "hyperframes/archive/0.14.0", + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 780, + "posterFrame": 720, + "hashes": { + "drop.png": "335f516adf51202b7ecf7fb152a8bb69603b41e06e4c9a9ef2663ee127a7f094", + "drop.mp4": "7e8545d6a320d015572454f470e79167d63f76f214eecf434cf52e266f9a48fb" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4", + "public/audio/music.ogg": "076d06a68ce9dc8f7d2401afa05e247ad3849ac4d425c3b28f995c15bfdab007", + "public/audio/music.license.json": "a3e033734f1fb188ca9cb3b161938343e57d4e0aa289f5605486b8f15be8b2d8", + "public/audio/music.LICENSE.txt": "d02e059adb401d50167b2e04d12ef9236fbcef0b4e3b7157bd5ebfab8a82b8f4", + "public/audio/mouse-click.wav": "887a9259203cafa24ad90274029d574ba29438bcdc87e6f384e4472f85736348", + "public/audio/switch.wav": "0d07c6daac595425c820d92966bbc35cbd6590f4bde8a59199743b9bf45da77e", + "hyperframes/assets/logo.svg": "9345636a0774cc6d4439f5e90303d7f172c9f089c3dabcbe436e3f0d63f1ce49", + "hyperframes/archive/0.14.0/compositions/feature.html": "fed3158f9d5744ff341d0c53271edd0dcd8d1cfce07b7ef1e284c5200a831370", + "hyperframes/archive/0.14.0/index.html": "6560a1e09f05831882214d4a2c90c2001b38ca5aab8f054cf31fa6da83888a17", + "hyperframes/archive/0.14.0/metadata.json": "af9d3b83e9bdcf0f744a3a958c19ff1d044f45740cf29b15989c060cf425010b", + "hyperframes/archive/ending.html": "51bef5e03fdc91b4d1063d860e1fe7730e6f5cae85b62ba30bc327981eba8edd", + "hyperframes/archive/shared.css": "36cbfda538846c5d2a96ed082be6297f2a015e6cb824f46f3eefff66ae84b2d2", + "hyperframes/archive/shared.js": "71b6e4139f3dc008e640b269b5a7b24ab525366b6edc0ab519b33d8c783ec114" + }, + "nativeReceipts": [ + { + "path": "public/native/0.14.0/capture.json", + "sha256": "957fb24723453a0ac49e0b32d781a6ea851139a5637a1cf76baaf9a099f181ba", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [] +} diff --git a/release-media/assets/0.2.0/quality.json b/release-media/assets/0.2.0/quality.json new file mode 100644 index 000000000..907daeda0 --- /dev/null +++ b/release-media/assets/0.2.0/quality.json @@ -0,0 +1,25 @@ +{ + "release": "0.2.0", + "kind": "video", + "passed": true, + "renderSha256": "66220a4b7b7b267466ee9efa378a335900c4dc1764ae36d89e383acb948dd442", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [], + "decode": true, + "fps": 60, + "frames": 900, + "audio": { + "integratedLoudnessLUFS": -15.9, + "truePeakDbFS": -2.6 + }, + "motion": { + "measuredFrames": 899, + "movingFrameRatio": 0.2324805339265851, + "longestStillSeconds": 2.3833333333333333, + "largestLumaChange": 6.92991 + }, + "posterSSIM": 0.999062 +} diff --git a/release-media/assets/0.2.0/render.json b/release-media/assets/0.2.0/render.json new file mode 100644 index 000000000..0304fbb99 --- /dev/null +++ b/release-media/assets/0.2.0/render.json @@ -0,0 +1,50 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.2.0", + "kind": "video", + "feature": "tab-edges", + "recipe": { + "fixture": "0.2.0", + "directory": "hyperframes/archive/0.2.0", + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 900, + "posterFrame": 840, + "hashes": { + "tab-edges.png": "5bfa1af69530aff9a621cdea2c26833383b63c84d048d2ea34c95ba5efd0e85b", + "tab-edges.mp4": "5d85d75b433a818ae7a8e5c95639b3e4cca42171b8386c239637f2ba2327ba58" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4", + "public/audio/music.ogg": "076d06a68ce9dc8f7d2401afa05e247ad3849ac4d425c3b28f995c15bfdab007", + "public/audio/music.license.json": "a3e033734f1fb188ca9cb3b161938343e57d4e0aa289f5605486b8f15be8b2d8", + "public/audio/music.LICENSE.txt": "d02e059adb401d50167b2e04d12ef9236fbcef0b4e3b7157bd5ebfab8a82b8f4", + "public/audio/mouse-click.wav": "887a9259203cafa24ad90274029d574ba29438bcdc87e6f384e4472f85736348", + "public/audio/switch.wav": "0d07c6daac595425c820d92966bbc35cbd6590f4bde8a59199743b9bf45da77e", + "hyperframes/assets/logo.svg": "9345636a0774cc6d4439f5e90303d7f172c9f089c3dabcbe436e3f0d63f1ce49", + "hyperframes/archive/0.2.0/compositions/feature.html": "231b8aa02caec3f42cb5906a0bdeae60c8c088e8baf7447b83cd208211e4245e", + "hyperframes/archive/0.2.0/index.html": "5a4fa4338d60c03a03f2db30a0d62c6325cd05f0c5958110bad84400b715ccaf", + "hyperframes/archive/0.2.0/metadata.json": "c3deee79a90e3e52373a5ea56752b1b1877f8eb1491cb363353841c533c4f071", + "hyperframes/archive/ending.html": "51bef5e03fdc91b4d1063d860e1fe7730e6f5cae85b62ba30bc327981eba8edd", + "hyperframes/archive/shared.css": "36cbfda538846c5d2a96ed082be6297f2a015e6cb824f46f3eefff66ae84b2d2", + "hyperframes/archive/shared.js": "71b6e4139f3dc008e640b269b5a7b24ab525366b6edc0ab519b33d8c783ec114" + }, + "nativeReceipts": [ + { + "path": "public/native/0.2.0/capture.json", + "sha256": "f5eae34f107b6c502c78d88c113fff01a4cf5d41a402e92e5805fa3666c90b4c", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [] +} diff --git a/release-media/assets/0.2.0/tab-edges.mp4 b/release-media/assets/0.2.0/tab-edges.mp4 new file mode 100644 index 000000000..4cf1c2696 Binary files /dev/null and b/release-media/assets/0.2.0/tab-edges.mp4 differ diff --git a/release-media/assets/0.2.0/tab-edges.png b/release-media/assets/0.2.0/tab-edges.png new file mode 100644 index 000000000..66150cce6 Binary files /dev/null and b/release-media/assets/0.2.0/tab-edges.png differ diff --git a/release-media/assets/0.3.0/quality.json b/release-media/assets/0.3.0/quality.json new file mode 100644 index 000000000..284ca6beb --- /dev/null +++ b/release-media/assets/0.3.0/quality.json @@ -0,0 +1,11 @@ +{ + "release": "0.3.0", + "kind": "screenshot", + "passed": true, + "renderSha256": "78fb3b6fb894e6dd2aac5c3b4459cc48b7a007d596f3815d6009ae85b8bb406b", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [] +} diff --git a/release-media/assets/0.3.0/render.json b/release-media/assets/0.3.0/render.json new file mode 100644 index 000000000..c51860e92 --- /dev/null +++ b/release-media/assets/0.3.0/render.json @@ -0,0 +1,37 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.3.0", + "kind": "screenshot", + "feature": "settings", + "recipe": { + "fixture": "0.3.0", + "directory": null, + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 1, + "posterFrame": 0, + "hashes": { + "settings.png": "ff341e08232777e1bdd4b28a71a31f62b7c666a5d3eec7d78caf4a718b661a61" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4" + }, + "nativeReceipts": [ + { + "path": "public/native/0.3.0/capture.json", + "sha256": "fee7dda1c779bf830eb6d649b2db94aed3533d14a6f37fd3f53384e75023777b", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [] +} diff --git a/release-media/assets/0.3.0/settings.png b/release-media/assets/0.3.0/settings.png new file mode 100644 index 000000000..f2af65051 Binary files /dev/null and b/release-media/assets/0.3.0/settings.png differ diff --git a/release-media/assets/0.4.0/quality.json b/release-media/assets/0.4.0/quality.json new file mode 100644 index 000000000..94b751384 --- /dev/null +++ b/release-media/assets/0.4.0/quality.json @@ -0,0 +1,17 @@ +{ + "release": "0.4.0", + "kind": "screenshot", + "passed": true, + "renderSha256": "3f6414507e62d8d580aad643d21ebb6124ee5b47d23ebddc65e01b6ce0a50777", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [ + { + "file": "updates.png", + "rgbPreserved": true, + "transparentPixels": 413844 + } + ] +} diff --git a/release-media/assets/0.4.0/render.json b/release-media/assets/0.4.0/render.json new file mode 100644 index 000000000..1abb6785a --- /dev/null +++ b/release-media/assets/0.4.0/render.json @@ -0,0 +1,46 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.4.0", + "kind": "screenshot", + "feature": "updates", + "recipe": { + "fixture": "0.4.0", + "directory": null, + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 1, + "posterFrame": 0, + "hashes": { + "updates.png": "779dcdd748c753da006532c7a34f092052524cc6dc34af81e918c6e54c0489a9" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4" + }, + "nativeReceipts": [ + { + "path": "public/native/0.4.0/capture.json", + "sha256": "4c2e3d5d32818e9ecc57a23eda50b6e04f7145b7f5bf14012bcc82b3d67303cc", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [ + { + "file": "updates.png", + "rgbSha256": "d19a4fef479e0e4e06e44c794b5a549a89162002b83c67bfc74397f904f8ee5a", + "alphaSha256": "86d000507bbc1c01580feb785507210e6f50eb5af4a638d2425032a841ae63f1", + "transparentPixels": 413844, + "opaquePixels": 700568, + "source": "public/native/0.4.0/updates.png" + } + ] +} diff --git a/release-media/assets/0.4.0/updates.png b/release-media/assets/0.4.0/updates.png new file mode 100644 index 000000000..f74bfb425 Binary files /dev/null and b/release-media/assets/0.4.0/updates.png differ diff --git a/release-media/assets/0.6.0/quality.json b/release-media/assets/0.6.0/quality.json new file mode 100644 index 000000000..965472a0d --- /dev/null +++ b/release-media/assets/0.6.0/quality.json @@ -0,0 +1,11 @@ +{ + "release": "0.6.0", + "kind": "screenshot", + "passed": true, + "renderSha256": "799d882723a74005c6ba2456e144a728993bd4239985a4a7a73756d19319ed1d", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [] +} diff --git a/release-media/assets/0.6.0/render.json b/release-media/assets/0.6.0/render.json new file mode 100644 index 000000000..87050a2bc --- /dev/null +++ b/release-media/assets/0.6.0/render.json @@ -0,0 +1,37 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.6.0", + "kind": "screenshot", + "feature": "unread", + "recipe": { + "fixture": "0.6.0", + "directory": null, + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 1, + "posterFrame": 0, + "hashes": { + "unread.png": "d1cae462ef5698abfcd0db0a7a509f8f748dcd3be93fac90f159eb56d40cb75c" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4" + }, + "nativeReceipts": [ + { + "path": "public/native/0.6.0/capture.json", + "sha256": "f5cf64ba71a277e8f71dda1964b0d8c97f7d404a617ee7fc313e1df306a7d314", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [] +} diff --git a/release-media/assets/0.6.0/unread.png b/release-media/assets/0.6.0/unread.png new file mode 100644 index 000000000..bbb5ae1d2 Binary files /dev/null and b/release-media/assets/0.6.0/unread.png differ diff --git a/release-media/assets/0.7.0/calls.mp4 b/release-media/assets/0.7.0/calls.mp4 new file mode 100644 index 000000000..c2d66de71 Binary files /dev/null and b/release-media/assets/0.7.0/calls.mp4 differ diff --git a/release-media/assets/0.7.0/calls.png b/release-media/assets/0.7.0/calls.png new file mode 100644 index 000000000..251bc0b97 Binary files /dev/null and b/release-media/assets/0.7.0/calls.png differ diff --git a/release-media/assets/0.7.0/quality.json b/release-media/assets/0.7.0/quality.json new file mode 100644 index 000000000..e51a77e19 --- /dev/null +++ b/release-media/assets/0.7.0/quality.json @@ -0,0 +1,41 @@ +{ + "release": "0.7.0", + "kind": "video", + "passed": true, + "renderSha256": "5fc122d749bc890847f11bf369515e789cf4ad146bcac12ad22942ed9616f466", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [ + { + "file": "connected.png", + "rgbPreserved": true, + "transparentPixels": 1848 + }, + { + "file": "muted.png", + "rgbPreserved": true, + "transparentPixels": 1848 + }, + { + "file": "camera-off.png", + "rgbPreserved": true, + "transparentPixels": 1848 + } + ], + "decode": true, + "fps": 60, + "frames": 840, + "audio": { + "integratedLoudnessLUFS": -16, + "truePeakDbFS": -2.5 + }, + "motion": { + "measuredFrames": 839, + "movingFrameRatio": 0.27056019070321813, + "longestStillSeconds": 2.5833333333333335, + "largestLumaChange": 4.36781 + }, + "posterSSIM": 0.999238 +} diff --git a/release-media/assets/0.7.0/render.json b/release-media/assets/0.7.0/render.json new file mode 100644 index 000000000..3a4e43e40 --- /dev/null +++ b/release-media/assets/0.7.0/render.json @@ -0,0 +1,75 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.7.0", + "kind": "video", + "feature": "calls", + "recipe": { + "fixture": "0.7.0", + "directory": "hyperframes/archive/0.7.0", + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 840, + "posterFrame": 780, + "hashes": { + "calls.png": "fa5dfb6df36f6399afa677cd7a2748f870881940adcbe921de8d93ade5fe21fb", + "calls.mp4": "9269ce9ff49eb0b12ef099a099a89b311c94c112c526629dd2a90df5a343eba7" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4", + "public/audio/music.ogg": "076d06a68ce9dc8f7d2401afa05e247ad3849ac4d425c3b28f995c15bfdab007", + "public/audio/music.license.json": "a3e033734f1fb188ca9cb3b161938343e57d4e0aa289f5605486b8f15be8b2d8", + "public/audio/music.LICENSE.txt": "d02e059adb401d50167b2e04d12ef9236fbcef0b4e3b7157bd5ebfab8a82b8f4", + "public/audio/mouse-click.wav": "887a9259203cafa24ad90274029d574ba29438bcdc87e6f384e4472f85736348", + "public/audio/switch.wav": "0d07c6daac595425c820d92966bbc35cbd6590f4bde8a59199743b9bf45da77e", + "hyperframes/assets/logo.svg": "9345636a0774cc6d4439f5e90303d7f172c9f089c3dabcbe436e3f0d63f1ce49", + "hyperframes/archive/0.7.0/compositions/feature.html": "76b8e19ff4758903a25e8cee9bced587008005aa48de33b68d39bfd76c13b0c3", + "hyperframes/archive/0.7.0/index.html": "4e34d0cc04ab7ef43f2df932638bcb4ba5e5f48eb9437254d545c9cf5950e8f8", + "hyperframes/archive/0.7.0/metadata.json": "f8770e2126b03c2fc7ea41f3995124f464b015207becbf434a500baf977d67e1", + "hyperframes/archive/ending.html": "51bef5e03fdc91b4d1063d860e1fe7730e6f5cae85b62ba30bc327981eba8edd", + "hyperframes/archive/shared.css": "36cbfda538846c5d2a96ed082be6297f2a015e6cb824f46f3eefff66ae84b2d2", + "hyperframes/archive/shared.js": "71b6e4139f3dc008e640b269b5a7b24ab525366b6edc0ab519b33d8c783ec114" + }, + "nativeReceipts": [ + { + "path": "public/native/0.7.0/capture.json", + "sha256": "dd9efb57a73a7f6d6eeeccf4f4921262086ac403b65a8645acbadea5589966cd", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [ + { + "file": "connected.png", + "rgbSha256": "100de5af60d720ced2a30197986ed440d6a29f9eb9899eca25aa3c122e13043e", + "alphaSha256": "be5f333bad13cd927a03a8498625e26bb7384ba69ff598fe10dcd1703dfc6b4c", + "transparentPixels": 1848, + "opaquePixels": 537512, + "source": "public/native/0.7.0/connected.png" + }, + { + "file": "muted.png", + "rgbSha256": "a1289a28ec4df6cd890c3537d34b608e9ad821327fed9acf167f147094a452da", + "alphaSha256": "be5f333bad13cd927a03a8498625e26bb7384ba69ff598fe10dcd1703dfc6b4c", + "transparentPixels": 1848, + "opaquePixels": 537512, + "source": "public/native/0.7.0/muted.png" + }, + { + "file": "camera-off.png", + "rgbSha256": "ba1b5ecc3d7188e474f5daa80dfdbaccb24e9866da78f81e130fb308d07bbb58", + "alphaSha256": "be5f333bad13cd927a03a8498625e26bb7384ba69ff598fe10dcd1703dfc6b4c", + "transparentPixels": 1848, + "opaquePixels": 537512, + "source": "public/native/0.7.0/camera-off.png" + } + ] +} diff --git a/release-media/assets/0.8.0/quality.json b/release-media/assets/0.8.0/quality.json new file mode 100644 index 000000000..5a748a7a0 --- /dev/null +++ b/release-media/assets/0.8.0/quality.json @@ -0,0 +1,91 @@ +{ + "release": "0.8.0", + "kind": "video", + "passed": true, + "renderSha256": "20c6d13ad254c64f611d5f4725864b1b3dbe0a072b2c228d72adc9e427859ffd", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [ + { + "file": "picker.png", + "rgbPreserved": true, + "transparentPixels": 13692 + }, + { + "file": "match.png", + "rgbPreserved": true, + "transparentPixels": 5268 + }, + { + "file": "sharing.png", + "rgbPreserved": true, + "transparentPixels": 1848 + }, + { + "file": "switched.png", + "rgbPreserved": true, + "transparentPixels": 1848 + }, + { + "file": "search-0.png", + "rgbPreserved": true, + "transparentPixels": 924 + }, + { + "file": "search-1.png", + "rgbPreserved": true, + "transparentPixels": 924 + }, + { + "file": "search-2.png", + "rgbPreserved": true, + "transparentPixels": 924 + }, + { + "file": "search-3.png", + "rgbPreserved": true, + "transparentPixels": 924 + }, + { + "file": "search-4.png", + "rgbPreserved": true, + "transparentPixels": 924 + }, + { + "file": "search-5.png", + "rgbPreserved": true, + "transparentPixels": 924 + }, + { + "file": "share-button.png", + "rgbPreserved": true, + "transparentPixels": 74264 + }, + { + "file": "setting-before.png", + "rgbPreserved": true, + "transparentPixels": 273428 + }, + { + "file": "setting-after.png", + "rgbPreserved": true, + "transparentPixels": 273428 + } + ], + "decode": true, + "fps": 60, + "frames": 1560, + "audio": { + "integratedLoudnessLUFS": -16.1, + "truePeakDbFS": -2.5 + }, + "motion": { + "measuredFrames": 1559, + "movingFrameRatio": 0.3707504810776139, + "longestStillSeconds": 2.85, + "largestLumaChange": 38.0682 + }, + "posterSSIM": 0.999007 +} diff --git a/release-media/assets/0.8.0/render.json b/release-media/assets/0.8.0/render.json new file mode 100644 index 000000000..01943ff68 --- /dev/null +++ b/release-media/assets/0.8.0/render.json @@ -0,0 +1,217 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.8.0", + "kind": "video", + "feature": "tab-share", + "recipe": { + "fixture": "0.8.0", + "directory": "hyperframes/0.8.0", + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 1560, + "posterFrame": 1440, + "hashes": { + "tab-share.png": "3e36ede8fd9dd50a1cb6a4b177decc719bfe9e95d0aed489c45b4ac30f36d329", + "tab-share.mp4": "aa16aba87dba2611a438190372217cac3ae9e18488dbf31b2c22c77913f176ed" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4", + "public/audio/music.ogg": "076d06a68ce9dc8f7d2401afa05e247ad3849ac4d425c3b28f995c15bfdab007", + "public/audio/music.license.json": "a3e033734f1fb188ca9cb3b161938343e57d4e0aa289f5605486b8f15be8b2d8", + "public/audio/music.LICENSE.txt": "d02e059adb401d50167b2e04d12ef9236fbcef0b4e3b7157bd5ebfab8a82b8f4", + "public/audio/mouse-click.wav": "887a9259203cafa24ad90274029d574ba29438bcdc87e6f384e4472f85736348", + "public/audio/switch.wav": "0d07c6daac595425c820d92966bbc35cbd6590f4bde8a59199743b9bf45da77e", + "hyperframes/assets/logo.svg": "9345636a0774cc6d4439f5e90303d7f172c9f089c3dabcbe436e3f0d63f1ce49", + "hyperframes/0.8.0/compositions/end.html": "b09f3980ec027113604452d40e8e87390811c284df3f3573d5de4cbf04580192", + "hyperframes/0.8.0/compositions/find.html": "d24cb3ee4a061a38d9309d6203f2ea650a4555f43bb87ca7d9762cd7602f198a", + "hyperframes/0.8.0/compositions/hook.html": "31a4e59957ed0b49307b61fdecf4e635bdfd18012c8969c81598c8be9f4ac556", + "hyperframes/0.8.0/compositions/room.html": "15ade3c24d99fc71c34686c18f8ceab094865e3165ff2f75593eb304f5621af3", + "hyperframes/0.8.0/compositions/switch.html": "8880047a9e49a92178140e4039dfe89f0048036360bbf0a5d725b0b11880df2f", + "hyperframes/0.8.0/index.html": "ad6e13e5ce4e6e141bf752e8c50eecfd366a0405ec504552bf20270cf6766859", + "hyperframes/0.8.0/metadata.json": "43b6fe934ddf8149898ec36209e22a0901b6a365dda1d4f9a7f71f26c7c7416a" + }, + "nativeReceipts": [ + { + "path": "public/native/0.8.0/address-bar/capture.json", + "sha256": "dea98e8c470cb0cae8d6d4c3c4588f4b7c4aafb08ad02860e907abbd8a8200b7", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "5153405324fb2b0dc59c3d8313873b3ef2c30c97" + }, + { + "path": "public/native/0.8.0/capture.json", + "sha256": "b1c62e99e6eee93aaef6687c8cf1cee1a62b0799beda2601b8ef82c0cab9543b", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "5153405324fb2b0dc59c3d8313873b3ef2c30c97" + } + ], + "cutouts": [ + { + "file": "picker.png", + "rgbSha256": "a692fa8b5761daa4e3f16a7789695ec5b982ba111f594918bac952706cb22ee0", + "alphaSha256": "34d22a2c6631eb7b03ac26b588df174665a4b678ed488226aabe56715bc32a16", + "transparentPixels": 13692, + "opaquePixels": 2008559, + "source": "public/native/0.8.0/picker.png" + }, + { + "file": "match.png", + "rgbSha256": "e6e600bdc9047607d9353e6dcc5259ad51dd3c95ffec0ce68da8124d588dab4b", + "alphaSha256": "32a3c2944668daee46e4aef29a56a2e2157584457b8cd913df729e614bbd14de", + "transparentPixels": 5268, + "opaquePixels": 874818, + "source": "public/native/0.8.0/match.png" + }, + { + "file": "sharing.png", + "rgbSha256": "ff7e08b91a6f02840c198d855aab63fbc5952284be3c1df39afbac88d1063e4d", + "alphaSha256": "d9735677c5f23ae96c70f67ddc749e8ec0e294ae5bd8a8571feecb3752988347", + "transparentPixels": 1848, + "opaquePixels": 1029544, + "source": "public/native/0.8.0/sharing.png" + }, + { + "file": "switched.png", + "rgbSha256": "63c97a2ad541ba4a29941b7270240225a08d30fb19cb270dbd42ebc839c40e3e", + "alphaSha256": "d9735677c5f23ae96c70f67ddc749e8ec0e294ae5bd8a8571feecb3752988347", + "transparentPixels": 1848, + "opaquePixels": 1029544, + "source": "public/native/0.8.0/switched.png" + }, + { + "file": "search-0.png", + "rgbSha256": "bc7c92c15a0b65c1e4bda39a77ab07fcad7818f01cbd56a828b5b9cf217f5e4c", + "alphaSha256": "bba9ac2c0256ecbc182b461506e46d4c04a258c99a92620c7495cd7ec3cff4a3", + "transparentPixels": 924, + "opaquePixels": 10784, + "source": "public/native/0.8.0/search-0.png", + "crop": [ + 0, + 0, + 2016, + 232 + ] + }, + { + "file": "search-1.png", + "rgbSha256": "0a9533f0af7ceb668548369ea1970570d9428dd1aee9260aefa70c4748331866", + "alphaSha256": "57500a8703615bb9f737761d58b96d7fe7b96aae30f44c4c4ede0bed02591f17", + "transparentPixels": 924, + "opaquePixels": 2912, + "source": "public/native/0.8.0/search-1.png", + "crop": [ + 0, + 0, + 2016, + 232 + ] + }, + { + "file": "search-2.png", + "rgbSha256": "3fb8f9a1a4df1c8377c666654ab137f4040c51284704e8dc0779baae3cbcde82", + "alphaSha256": "df3b73dc7194ae56b32755056640de4e03c0960c1848e9014d435559b166f33e", + "transparentPixels": 924, + "opaquePixels": 3341, + "source": "public/native/0.8.0/search-2.png", + "crop": [ + 0, + 0, + 2016, + 232 + ] + }, + { + "file": "search-3.png", + "rgbSha256": "c29fcbf59dad5fd3ef3b06ba78d4ac155a5db802940ca474319d3e3da5094cc9", + "alphaSha256": "0c8c83fb049a8d74f857c515755963d2cf484897e4790a16cac6b48b2143abea", + "transparentPixels": 924, + "opaquePixels": 4307, + "source": "public/native/0.8.0/search-3.png", + "crop": [ + 0, + 0, + 2016, + 232 + ] + }, + { + "file": "search-4.png", + "rgbSha256": "a68e84ce23bbdf3644cc1f6e4025838c5788715806d78db54eca0ef74175fe6a", + "alphaSha256": "9ba66b067ec4cb630da8afb27da382ca369d8818340110e691c0d77fd879640f", + "transparentPixels": 924, + "opaquePixels": 4797, + "source": "public/native/0.8.0/search-4.png", + "crop": [ + 0, + 0, + 2016, + 232 + ] + }, + { + "file": "search-5.png", + "rgbSha256": "b56372793c1c9bdaadbda9ef3d9a32f73fa73b9a1e91f1507f54bf0708b794fe", + "alphaSha256": "984cfbb7b6e0a65227c84cb9d59b9504a65555079886cf8fcbff7c2c3795f807", + "transparentPixels": 924, + "opaquePixels": 5920, + "source": "public/native/0.8.0/search-5.png", + "crop": [ + 0, + 0, + 2016, + 232 + ] + }, + { + "file": "share-button.png", + "rgbSha256": "4e4580244b8bc1503bbbd90b4930dde9f348a3a2412470b8aaa9943dd4ed575b", + "alphaSha256": "e6cc6aad3e2fe00bbb273a4238ac01dc7ce0167eaf3fd6dc0cadc716d079e5a9", + "transparentPixels": 74264, + "opaquePixels": 100620, + "source": "public/native/0.8.0/filtered.png", + "crop": [ + 4800, + 1992, + 592, + 296 + ] + }, + { + "file": "setting-before.png", + "rgbSha256": "1d393508b699e7589d5b8a5a17c91a0d9bff3ce545a1ea78fc3f66ad9d951f2c", + "alphaSha256": "5a705493f1d84ae484db86999c84a3143373db88e10e98c35e7fd8928e8405c7", + "transparentPixels": 273428, + "opaquePixels": 509464, + "source": "public/native/0.8.0/address-bar/setting-visible.png", + "crop": [ + 4880, + 100, + 2448, + 320 + ] + }, + { + "file": "setting-after.png", + "rgbSha256": "e12a1246c8c9f270b8cd25d75a2d31eb057385dcf8cdea4644a3de545efbc880", + "alphaSha256": "5a705493f1d84ae484db86999c84a3143373db88e10e98c35e7fd8928e8405c7", + "transparentPixels": 273428, + "opaquePixels": 509464, + "source": "public/native/0.8.0/address-bar/setting-hidden.png", + "crop": [ + 4880, + 100, + 2448, + 320 + ] + } + ] +} diff --git a/release-media/assets/0.8.0/tab-share.mp4 b/release-media/assets/0.8.0/tab-share.mp4 new file mode 100644 index 000000000..cb4973178 Binary files /dev/null and b/release-media/assets/0.8.0/tab-share.mp4 differ diff --git a/release-media/assets/0.8.0/tab-share.png b/release-media/assets/0.8.0/tab-share.png new file mode 100644 index 000000000..08b1b5a80 Binary files /dev/null and b/release-media/assets/0.8.0/tab-share.png differ diff --git a/release-media/assets/0.9.0/history.mp4 b/release-media/assets/0.9.0/history.mp4 new file mode 100644 index 000000000..02f643f85 Binary files /dev/null and b/release-media/assets/0.9.0/history.mp4 differ diff --git a/release-media/assets/0.9.0/history.png b/release-media/assets/0.9.0/history.png new file mode 100644 index 000000000..78b08e7c7 Binary files /dev/null and b/release-media/assets/0.9.0/history.png differ diff --git a/release-media/assets/0.9.0/quality.json b/release-media/assets/0.9.0/quality.json new file mode 100644 index 000000000..a4f9d86bd --- /dev/null +++ b/release-media/assets/0.9.0/quality.json @@ -0,0 +1,66 @@ +{ + "release": "0.9.0", + "kind": "video", + "passed": true, + "renderSha256": "70a8da687020133cf056a6a27bf1f00269d61cd2aced6f0dc9b485e7004c6370", + "sourceHashes": true, + "renderHashes": true, + "strictCompositionCheck": true, + "cutoutsVerified": true, + "cutouts": [ + { + "file": "search-0.png", + "rgbPreserved": true, + "transparentPixels": 164664 + }, + { + "file": "search-1.png", + "rgbPreserved": true, + "transparentPixels": 164664 + }, + { + "file": "search-2.png", + "rgbPreserved": true, + "transparentPixels": 164664 + }, + { + "file": "search-3.png", + "rgbPreserved": true, + "transparentPixels": 164664 + }, + { + "file": "search-4.png", + "rgbPreserved": true, + "transparentPixels": 164664 + }, + { + "file": "search-5.png", + "rgbPreserved": true, + "transparentPixels": 164664 + }, + { + "file": "search-6.png", + "rgbPreserved": true, + "transparentPixels": 164664 + }, + { + "file": "filtered-rows.png", + "rgbPreserved": true, + "transparentPixels": 10448 + } + ], + "decode": true, + "fps": 60, + "frames": 900, + "audio": { + "integratedLoudnessLUFS": -15.9, + "truePeakDbFS": -2.1 + }, + "motion": { + "measuredFrames": 899, + "movingFrameRatio": 0.2936596218020022, + "longestStillSeconds": 2.6166666666666667, + "largestLumaChange": 11.3326 + }, + "posterSSIM": 0.999016 +} diff --git a/release-media/assets/0.9.0/render.json b/release-media/assets/0.9.0/render.json new file mode 100644 index 000000000..9379ed95f --- /dev/null +++ b/release-media/assets/0.9.0/render.json @@ -0,0 +1,115 @@ +{ + "schemaVersion": 3, + "engine": "hyperframes", + "release": "0.9.0", + "kind": "video", + "feature": "history", + "recipe": { + "fixture": "0.9.0", + "directory": "hyperframes/archive/0.9.0", + "variant": null + }, + "width": 1920, + "height": 1080, + "fps": 60, + "frames": 900, + "posterFrame": 840, + "hashes": { + "history.png": "cdbe2f274efb77415a9b2ea83fbf3ef79341c70d92cafa225106ab99008439c4", + "history.mp4": "04ba00af2ccedf5c3cba673bf3e8d498979150310a98cd964c04762782284733" + }, + "recipeHashes": { + "render.mjs": "7bcb846b407273392788f3145e846042890597d6c812b07071b83c2c12676737", + "pipeline.mjs": "82ad9dd2bd2193de51afc4637f3a4ef073409c35da88ff99a9d7cdc087969d05", + "png-cutouts.mjs": "935897dc70dbb38d56763718c2045b85ddaf65d19c9d1bb2f2007397554954e6", + "package-lock.json": "de957a82e09d2e84ed973bfd323e247bec6b8423d5567a233483330f29e99a48", + "hyperframes/assets/inter.woff2": "c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4", + "public/audio/music.ogg": "076d06a68ce9dc8f7d2401afa05e247ad3849ac4d425c3b28f995c15bfdab007", + "public/audio/music.license.json": "a3e033734f1fb188ca9cb3b161938343e57d4e0aa289f5605486b8f15be8b2d8", + "public/audio/music.LICENSE.txt": "d02e059adb401d50167b2e04d12ef9236fbcef0b4e3b7157bd5ebfab8a82b8f4", + "public/audio/mouse-click.wav": "887a9259203cafa24ad90274029d574ba29438bcdc87e6f384e4472f85736348", + "public/audio/switch.wav": "0d07c6daac595425c820d92966bbc35cbd6590f4bde8a59199743b9bf45da77e", + "hyperframes/assets/logo.svg": "9345636a0774cc6d4439f5e90303d7f172c9f089c3dabcbe436e3f0d63f1ce49", + "hyperframes/archive/0.9.0/compositions/feature.html": "13f926e47e5dccf98de88e87bca3ba9a668e204ac74ca1e4184bf3d8ccb31bbd", + "hyperframes/archive/0.9.0/index.html": "03adf173a0818ea539fbd0acf10a94b5f65d86dba0bdcea198ab490acbf4b2f3", + "hyperframes/archive/0.9.0/metadata.json": "1dc363460e46aedcbb900e8385b331cada566aa3b518edd86427b56bb2cf06ab", + "hyperframes/archive/ending.html": "51bef5e03fdc91b4d1063d860e1fe7730e6f5cae85b62ba30bc327981eba8edd", + "hyperframes/archive/shared.css": "36cbfda538846c5d2a96ed082be6297f2a015e6cb824f46f3eefff66ae84b2d2", + "hyperframes/archive/shared.js": "71b6e4139f3dc008e640b269b5a7b24ab525366b6edc0ab519b33d8c783ec114" + }, + "nativeReceipts": [ + { + "path": "public/native/0.9.0/capture.json", + "sha256": "5101ed0dbd7e83bcc51068808a189647f4d386873a532d4749cd59ec880a2101", + "appVersion": "0.14.1", + "appBuild": "31", + "productSourceCommit": "6905252c253e7803410b690b2095fbdb8691a28f" + } + ], + "cutouts": [ + { + "file": "search-0.png", + "rgbSha256": "43d071719e2f627806ebe482f5d837b19c98d7d7229ba75c9c85d5175ad43e06", + "alphaSha256": "9697625ee516c87090609cb57d856e7f7cb9756907c523935c6f239eb44a0120", + "transparentPixels": 164664, + "opaquePixels": 228264, + "source": "public/native/0.9.0/search-0.png" + }, + { + "file": "search-1.png", + "rgbSha256": "7a4c70a9dabe768304ab67ee15015e280250d42f0a0e0f097d0844f058240eed", + "alphaSha256": "9697625ee516c87090609cb57d856e7f7cb9756907c523935c6f239eb44a0120", + "transparentPixels": 164664, + "opaquePixels": 228264, + "source": "public/native/0.9.0/search-1.png" + }, + { + "file": "search-2.png", + "rgbSha256": "b17f1402acc1ad293d8fdc8801e1f3474063b78ca4c4e97be112cc3b1f7c85b0", + "alphaSha256": "9697625ee516c87090609cb57d856e7f7cb9756907c523935c6f239eb44a0120", + "transparentPixels": 164664, + "opaquePixels": 228264, + "source": "public/native/0.9.0/search-2.png" + }, + { + "file": "search-3.png", + "rgbSha256": "fd9668d7dad38df81624a7292b9ecb72075e9bc0d219b98007076a0bdd57ecca", + "alphaSha256": "9697625ee516c87090609cb57d856e7f7cb9756907c523935c6f239eb44a0120", + "transparentPixels": 164664, + "opaquePixels": 228264, + "source": "public/native/0.9.0/search-3.png" + }, + { + "file": "search-4.png", + "rgbSha256": "d3ec7a609912ad48f3c589f42ff704871e28e464a4c828fedfc8ae8ed285db5f", + "alphaSha256": "9697625ee516c87090609cb57d856e7f7cb9756907c523935c6f239eb44a0120", + "transparentPixels": 164664, + "opaquePixels": 228264, + "source": "public/native/0.9.0/search-4.png" + }, + { + "file": "search-5.png", + "rgbSha256": "8ce4b545e9084f804cd7ffbd67a4043ed757f70d4e581696957fc49fb4ae0a3b", + "alphaSha256": "9697625ee516c87090609cb57d856e7f7cb9756907c523935c6f239eb44a0120", + "transparentPixels": 164664, + "opaquePixels": 228264, + "source": "public/native/0.9.0/search-5.png" + }, + { + "file": "search-6.png", + "rgbSha256": "7ea57affd73d1ac2a49692a3d8d691938821c9a3c8c48e0c8cb1c74df1fa561e", + "alphaSha256": "9697625ee516c87090609cb57d856e7f7cb9756907c523935c6f239eb44a0120", + "transparentPixels": 164664, + "opaquePixels": 228264, + "source": "public/native/0.9.0/search-6.png" + }, + { + "file": "filtered-rows.png", + "rgbSha256": "e0fdf4e09c4f43c29d2cf7ca510907cb9868c4d5c9215d70fea2d3a84a973688", + "alphaSha256": "145a2b9ccf3b1b3a068e0cd979d26c6e887d7bf53d783533a8ddfdc74a637a07", + "transparentPixels": 10448, + "opaquePixels": 1601668, + "source": "public/native/0.9.0/filtered-rows.png" + } + ] +} diff --git a/release-media/author.mjs b/release-media/author.mjs new file mode 100644 index 000000000..d6b6063c5 --- /dev/null +++ b/release-media/author.mjs @@ -0,0 +1,214 @@ +import { execFileSync } from "node:child_process"; +import { readFile, readdir, writeFile } from "node:fs/promises"; +import path from "node:path"; +import { fixtures } from "./fixtures.mjs"; +import { sha, releaseSections, root as mediaRoot } from "./pipeline.mjs"; + +// Specific product capabilities, ordered by how much a demonstrated interaction explains. +const capabilities = [ + [ + "tab-share", + /tab share picker|share (?:this|the shown|a different|another|the current) tab|switch(?:es|ing)? (?:the |a )?shared tab|chang(?:e|es|ing) (?:the )?shared tab/i, + ], + ["spaces", /(?:glass|grain|material).{0,80}\bspace|\bspace.{0,80}(?:glass|grain|material)/i], + [ + "drop", + /\bdropp?ing\b.{0,180}(?:sidebar|tab strip)|\bdrop\b.{0,80}(?:link|file|address).{0,80}(?:sidebar|tab)/i, + ], + [ + "tab-edges", + /tabs? on (?:any|each|every|all|the four) (?:edge|side)|tabs?.{0,50}(?:four|any) edges?|sidebar.{0,60}drag.{0,30}edge/i, + ], + [ + "history", + /\bhistory (?:page|search)\b|(?:browse|search|filter).{0,45}(?:browsing |whole |full )?history\b/i, + ], + [ + "archive", + /recent archive|archived tabs.{0,80}(?:back|restore)|tabs.{0,80}archived.{0,80}(?:back|restore)|(?:restore|bring back).{0,50}archiv/i, + ], + [ + "calls", + /call card.{0,100}(?:mute|microphone|camera)|(?:sidebar.{0,45}call controls|call controls.{0,45}sidebar)/i, + ], + ["pinned-tabs", /rename.{0,30}pinned tab|pinned tab.{0,80}(?:rename|lasting name|name stays)/i], + [ + "seasons", + /seasonal icon|icon.{0,60}(?:holiday|dresses|halloween|christmas)|(?:holiday|halloween|christmas).{0,50}icon/i, + ], + [ + "site-colors", + /(?:bar|toolbar|tabs).{0,80}(?:takes|matches|adopts|blends).{0,45}(?:site|page).{0,25}colou?r|(?:site|page).{0,35}colou?r.{0,45}(?:toolbar|address bar)/i, + ], + ["settings", /settings opens? as (?:a )?page|settings.{0,90}sections.{0,30}beside/i], + ["unread", /unread (?:count|badge|dot)|(?:tabs|bookmarks).{0,90}unread/i], + ["updates", /restart card|update.{0,80}card.{0,60}restart|restart.{0,50}(?:card|sidebar)/i], + ["browser", /first public release.{0,60}native.{0,30}browser/i], +]; + +const visualWords = + /\b(?:button|card|picker|panel|dialog|sheet|menu|settings|sidebar|toolbar|layout|appearance|theme|icon|tab|space|view|pane|page|window|screen|preview|prompt)\b/i; + +function bullets(markdown) { + const result = []; + let kind = ""; + for (const line of markdown.split("\n")) { + const heading = /^### (\w+)/.exec(line); + if (heading) kind = heading[1]; + else if (line.startsWith("- ")) result.push({ kind, text: line.slice(2) }); + else if (/^\s+\S/.test(line) && result.length) result.at(-1).text += `\n${line}`; + } + return result; +} + +function internalChange({ kind, text }) { + if ( + /^(?:\[release tooling\]|Release highlights use\b|Release media\b|Changelog (?:media|videos?)\b)/i.test( + text, + ) + ) + return true; + if ( + kind === "Changed" && + !/^(?:(?:a|an|the) )?(?:new|adding|introducing)\b/i.test(text) && + !/\b(?:and|but|while|which|that)\b/i.test(text) && + /^[^.!?;:\n]+\b(?:uses?|consumes?|needs?|requires?) (?:less|fewer) (?:CPU(?: time| cycles)?|memory)\.?$/i.test( + text, + ) + ) + return true; + return ( + !visualWords.test(text) && + /\b(?:API|MCP|AI agents?|bridge|CPU|memory|cache|prefetch|frames per second|frame rate|latency|timers?|echo cancellation)\b/i.test( + text, + ) + ); +} + +export function chooseMedia(version, markdown, catalog) { + if (!/^\d+\.\d+\.\d+$/.test(version)) throw Error(`Invalid release media version: ${version}`); + const entries = catalog.releases ?? catalog; + let existing = entries[version]; + const notesSha256 = sha(markdown); + if (existing?.notesSha256 && existing.notesSha256 !== notesSha256) existing = undefined; + if (existing) { + if (!["video", "screenshot", "none"].includes(existing.kind) || !existing.reason?.trim()) + throw Error(`Missing media decision for ${version}`); + if (existing.kind === "none") return { ...existing }; + const capability = capabilities.find(([feature]) => feature === existing.feature); + if ( + !capability || + !existing.alt?.en || + !existing.alt?.fr || + !existing.notes?.length || + existing.notes.some((note) => !markdown.includes(note)) + ) + throw Error( + `Missing native capability, translated description or exact source notes for ${version}`, + ); + return { ...existing }; + } + const changes = bullets(markdown).filter((note) => + ["Added", "Changed", "Breaking"].includes(note.kind), + ); + const visual = changes.filter((note) => !internalChange(note)); + const unsupported = visual.find( + (note) => + !capabilities.some(([, pattern]) => pattern.test(note.text)) && + (note.kind !== "Changed" || visualWords.test(note.text)), + ); + if (unsupported) + throw Error( + `Release ${version} is blocked: no genuine native capture and HyperFrames storyboard supports: ${unsupported.text}. Add that capability in the feature pull request.`, + ); + for (const [feature, pattern] of capabilities) { + const matches = visual.filter((note) => pattern.test(note.text)); + if (!matches.length) continue; + const fixture = fixtures[feature]; + const reference = entries[fixture]; + if (!reference || reference.feature !== feature || !reference.alt?.en || !reference.alt?.fr) + throw Error(`Missing canonical native media recipe for ${feature} (${fixture})`); + return { + kind: reference.kind, + feature, + notesSha256, + ...(feature === "tab-share" ? { variant: "share" } : {}), + reason: + reference.kind === "video" + ? "The release adds an interaction covered by a genuine native capture and motion recipe." + : "The release adds a finished visual state covered by a genuine native screenshot recipe.", + notes: matches.map((note) => note.text), + alt: { ...reference.alt }, + }; + } + return { + kind: "none", + notesSha256, + reason: "Routine fixes or internal changes have no new visual interaction to demonstrate.", + }; +} + +async function main() { + const root = path.resolve(mediaRoot, ".."); + const file = path.join(root, "release-media/backlog.json"); + const catalog = JSON.parse(await readFile(file, "utf8")); + const releases = releaseSections(await readFile(path.join(root, "CHANGELOG.md"), "utf8")); + const selected = process.env.LILO_RELEASE_MEDIA_VERSION; + const query = process.argv.includes("--fixture"); + if (query && !selected) throw Error("A selected RELEASE=x.y.z is required for media queries"); + const decisions = {}; + for (const version of selected ? [selected] : releases.keys()) { + let notes = releases.get(version); + if (!notes && /^\d+\.\d+\.\d+$/.test(version)) { + try { + notes = releaseSections( + await readFile(path.join(root, `.changes/v${version}.md`), "utf8"), + ).get(version); + } catch (error) { + if (error.code !== "ENOENT") throw error; + } + } + if (!notes) throw Error(`Unknown release media version: ${version}`); + decisions[version] = chooseMedia(version, notes, catalog); + } + if (query) { + const entry = decisions[selected]; + console.log(fixtures[entry.feature] ?? ""); + return; + } + if (!selected) { + for (const version of Object.keys(catalog.releases)) + if (!releases.has(version)) + throw Error(`Media decision has no published release: ${version}`); + const pending = await readdir(path.join(root, ".changes/unreleased")).catch((error) => { + if (error.code === "ENOENT") return []; + throw error; + }); + if (pending.some((name) => name.endsWith(".yaml"))) { + if (!process.env.CHANGIE) + throw Error("Use make release-media-author so pinned Changie can validate pending notes"); + const notes = execFileSync( + process.env.CHANGIE, + ["batch", "auto", "--dry-run", "--allow-no-changes=false"], + { cwd: root, encoding: "utf8" }, + ); + const pendingVersion = releaseSections(notes).keys().next().value; + if (!pendingVersion) throw Error("Changie did not produce a pending release to validate"); + chooseMedia(pendingVersion, notes, catalog); + } + } + await writeFile( + file, + JSON.stringify( + { + ...catalog, + releases: { ...catalog.releases, ...decisions }, + }, + null, + 2, + ) + "\n", + ); + console.log(`Verified automatic media selection for ${Object.keys(decisions).length} release(s)`); +} + +if (import.meta.main) await main(); diff --git a/release-media/author.test.mjs b/release-media/author.test.mjs new file mode 100644 index 000000000..0141b8936 --- /dev/null +++ b/release-media/author.test.mjs @@ -0,0 +1,274 @@ +import assert from "node:assert/strict"; +import { spawnSync } from "node:child_process"; +import { cp, mkdtemp, mkdir, readFile, rm, writeFile } from "node:fs/promises"; +import { tmpdir } from "node:os"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { test } from "node:test"; +import { chooseMedia } from "./author.mjs"; + +const catalog = { + releases: { + "0.8.0": { + kind: "video", + feature: "tab-share", + reason: "Demonstrate tab sharing.", + notes: ["The tab share picker searches tabs by title."], + alt: { en: "Find and share a tab.", fr: "Trouvez et partagez un onglet." }, + }, + "0.13.0": { + kind: "screenshot", + feature: "seasons", + reason: "Show finished seasonal artwork.", + notes: ["A seasonal icon dresses up for the holidays."], + alt: { en: "Seasonal icons.", fr: "Les icônes de saison." }, + }, + }, +}; + +test("a new tab-sharing release chooses its supported native movie and exact source note", () => { + const note = "The tab share picker searches by title and previews the tabs before sharing."; + const result = chooseMedia("0.15.0", `### Added\n\n- ${note}\n`, catalog); + assert.equal(result.kind, "video"); + assert.equal(result.feature, "tab-share"); + assert.deepEqual(result.notes, [note]); + assert.deepEqual(result.alt, catalog.releases["0.8.0"].alt); +}); + +test("finished artwork chooses a screenshot", () => { + const result = chooseMedia( + "0.15.0", + "### Added\n\n- A seasonal icon dresses up for the holidays.\n", + catalog, + ); + assert.equal(result.kind, "screenshot"); +}); + +test("fix-only releases and nonvisual API changes need no artificial media", () => { + for (const notes of [ + "### Fixed\n\n- Closing a tab no longer logs an error.\n", + "### Added\n\n- The agent API can send longer messages through its bridge.\n", + "### Changed\n\n- Release highlights use HyperFrames videos and screenshots.\n", + "### Changed\n\n- [release tooling] The release workflow renders HyperFrames videos.\n", + ]) + assert.equal(chooseMedia("0.15.1", notes, catalog).kind, "none"); +}); + +test("an unsupported new visual feature refuses the release instead of falling back", () => { + for (const kind of ["Added", "Changed", "Breaking"]) + assert.throws( + () => + chooseMedia( + "0.15.0", + `### ${kind}\n\n- A split view pane shows two pages side by side.\n`, + catalog, + ), + /blocked.*no genuine native capture.*split view pane/, + ); +}); + +for (const kind of ["Added", "Changed", "Breaking"]) { + for (const [description, note] of [ + ["memory", "A split view shows two documents side by side with lower memory use."], + ["cache", "A preview pane shows documents fetched from the cache."], + ["CPU", "A separate window compares two documents with lower CPU use."], + ]) + test(`${kind} visual changes mentioning ${description} still require supported media`, () => { + assert.throws( + () => chooseMedia("0.15.0", `### ${kind}\n\n- ${note}\n`, catalog), + /blocked.*no genuine native capture/, + ); + }); +} + +test("nonvisual performance changes need no artificial media", () => { + for (const kind of ["Added", "Changed", "Breaking"]) + for (const note of [ + "Audio processing uses less CPU.", + "Audio processing uses less memory.", + "The cache refreshes only after authentication changes.", + ]) + assert.equal(chooseMedia("0.15.0", `### ${kind}\n\n- ${note}\n`, catalog).kind, "none"); +}); + +for (const note of [ + "Opening a new window uses less CPU.", + "Rendering a web page uses less memory.", + "The sidebar consumes less memory.", + "The preview pane requires fewer CPU cycles.", +]) + test(`routine Changed optimization stays text-only: ${note}`, () => { + assert.equal(chooseMedia("0.15.0", `### Changed\n\n- ${note}\n`, catalog).kind, "none"); + }); + +test("explicit new interface changes cannot use the Changed optimization exemption", () => { + for (const kind of ["Added", "Changed", "Breaking"]) + assert.throws( + () => chooseMedia("0.15.0", `### ${kind}\n\n- A new preview pane uses less memory.\n`, catalog), + /blocked.*no genuine native capture/, + ); +}); + +test("resource reductions do not hide an additional interface behavior", () => { + for (const kind of ["Added", "Changed", "Breaking"]) + for (const note of [ + "A split view shows two documents and uses less memory.", + "A preview pane shows cached documents. It uses less CPU.", + "A separate window compares documents while consuming less memory.", + ]) + assert.throws( + () => chooseMedia("0.15.0", `### ${kind}\n\n- ${note}\n`, catalog), + /blocked.*no genuine native capture/, + ); +}); + +test("a rendering-tool name cannot hide an unsupported product interface", () => { + assert.throws( + () => + chooseMedia( + "0.15.0", + "### Added\n\n- A new sidebar panel plays HyperFrames exports.\n", + catalog, + ), + /blocked.*sidebar panel/, + ); +}); + +test("a supported important interaction is chosen from a larger release", () => { + const result = chooseMedia( + "0.15.0", + "### Added\n\n- A seasonal icon dresses up for the holidays.\n- The tab share picker previews tabs.\n", + catalog, + ); + assert.equal(result.kind, "video"); + assert.deepEqual(result.notes, ["The tab share picker previews tabs."]); +}); + +test("a familiar feature cannot conceal an unsupported new visual feature", () => { + for (const kind of ["Added", "Changed", "Breaking"]) + assert.throws( + () => + chooseMedia( + "0.15.0", + `### Added\n\n- The tab share picker previews tabs.\n\n### ${kind}\n\n- A split view pane shows two pages side by side.\n`, + catalog, + ), + /blocked.*split view pane/, + ); +}); + +test("new notes reconsider an automatically authored text-only or visual decision", () => { + for (const original of [ + "### Fixed\n\n- Closing a tab no longer logs an error.\n", + "### Added\n\n- The tab share picker previews tabs.\n", + ]) { + const decision = chooseMedia("0.15.0", original, catalog); + assert.match(decision.notesSha256, /^[a-f0-9]{64}$/); + const authored = { releases: { ...catalog.releases, "0.15.0": decision } }; + assert.throws( + () => + chooseMedia( + "0.15.0", + original + "\n### Added\n\n- A split view pane shows two pages side by side.\n", + authored, + ), + /blocked.*split view pane/, + ); + } + const fixes = "### Fixed\n\n- Closing a tab no longer logs an error.\n"; + const initial = chooseMedia("0.15.0", fixes, catalog); + const updated = chooseMedia("0.15.0", "### Added\n\n- The tab share picker previews tabs.\n", { + releases: { ...catalog.releases, "0.15.0": initial }, + }); + assert.equal(updated.kind, "video"); + assert.equal(updated.variant, "share"); + assert.notEqual(updated.notesSha256, initial.notesSha256); +}); + +test("existing editorial decisions keep their subject but must still match their notes", () => { + const result = chooseMedia( + "0.8.0", + "### Changed\n\n- The tab share picker searches tabs by title.\n", + catalog, + ); + assert.equal(result.reason, catalog.releases["0.8.0"].reason); + assert.throws( + () => chooseMedia("0.8.0", "### Fixed\n\n- An unrelated fix.\n", catalog), + /exact source notes/, + ); +}); + +test("invalid versions and missing canonical capabilities fail closed", () => { + for (const version of ["", "main", "0.15", "../0.15.0"]) + assert.throws(() => chooseMedia(version, "", catalog), /Invalid release media version/); + assert.throws( + () => + chooseMedia("0.15.0", "### Added\n\n- The tab share picker previews tabs.\n", { + releases: {}, + }), + /Missing canonical native media recipe/, + ); +}); + +test("CI media queries are read-only and reject an unknown prepared version", async () => { + const root = await mkdtemp(path.join(tmpdir(), "lilo-media-author-")); + try { + await mkdir(path.join(root, "release-media")); + await mkdir(path.join(root, ".changes")); + for (const file of ["author.mjs", "pipeline.mjs", "fixtures.mjs"]) + await cp( + fileURLToPath(new URL(file, import.meta.url)), + path.join(root, "release-media", file), + ); + const file = path.join(root, "release-media/backlog.json"); + const before = JSON.stringify(catalog); + await writeFile(file, before); + await writeFile( + path.join(root, "CHANGELOG.md"), + "## [0.8.0]\n\n### Changed\n\n- The tab share picker searches tabs by title.\n", + ); + await writeFile( + path.join(root, ".changes/v0.15.0.md"), + "## [0.15.0]\n\n### Added\n\n- The tab share picker previews tabs.\n", + ); + const query = (version, flag) => + spawnSync( + process.execPath, + [path.join(root, "release-media/author.mjs"), ...(flag ? [flag] : [])], + { + encoding: "utf8", + env: { + ...process.env, + LILO_RELEASE_MEDIA_VERSION: version, + }, + }, + ); + const result = query("0.15.0", "--fixture"); + assert.equal(result.status, 0, result.stderr); + assert.equal(result.stdout, "0.8.0\n"); + assert.equal(await readFile(file, "utf8"), before); + await writeFile( + path.join(root, ".changes/v0.15.1.md"), + "## [0.15.1]\n\n### Fixed\n\n- A sleeping tab wakes correctly.\n", + ); + const textOnly = query("0.15.1", "--fixture"); + assert.equal(textOnly.status, 0, textOnly.stderr); + assert.equal(textOnly.stdout, "\n"); + assert.equal(await readFile(file, "utf8"), before); + const missing = query("9.9.9", "--fixture"); + assert.notEqual(missing.status, 0); + assert.match(missing.stderr, /Unknown release media version: 9.9.9/); + assert.equal(await readFile(file, "utf8"), before); + await writeFile(file, JSON.stringify({ ...catalog, publication: "blocked" })); + const authored = query("0.15.0"); + assert.equal(authored.status, 0, authored.stderr); + const after = JSON.parse(await readFile(file, "utf8")); + assert.equal( + after.publication, + "blocked", + "authoring must not re-enable a publication kill switch", + ); + } finally { + await rm(root, { recursive: true, force: true }); + } +}); diff --git a/release-media/backlog.json b/release-media/backlog.json new file mode 100644 index 000000000..c2cfec76a --- /dev/null +++ b/release-media/backlog.json @@ -0,0 +1,243 @@ +{ + "schemaVersion": 1, + "publication": "quality-gated", + "releases": { + "0.14.1": { + "kind": "none", + "reason": "A single compatibility bug fix; no new feature or meaningful visual state to demonstrate." + }, + "0.14.0": { + "kind": "video", + "feature": "drop", + "reason": "Dropping content into the sidebar is a new interaction whose placement and result benefit from motion.", + "notes": [ + "Dropping a link, an address or a file from another app on the sidebar opens it: between two tabs as a new tab there, in a folder at its end, on a tab in that tab." + ], + "alt": { + "en": "Drop links into the sidebar.", + "fr": "Déposez des liens dans la barre latérale." + } + }, + "0.13.1": { + "kind": "none", + "reason": "Compatibility and keyboard fixes with a small About-window copy update; notes are enough." + }, + "0.13.0": { + "kind": "screenshot", + "feature": "seasons", + "reason": "The finished holiday icon artwork explains the feature; motion adds no useful information.", + "notes": [ + "Lilo's app icon dresses up for Halloween, Christmas, New Year, Valentine's Day, Lunar New Year, Easter, the summer solstice and its own birthday, in a version drawn for each icon. Turn it off in Settings > Appearance > Seasonal icon." + ], + "alt": { + "en": "Lilo’s app icons dressed for the holidays.", + "fr": "Les icônes de Lilo aux couleurs des fêtes." + } + }, + "0.12.0": { + "kind": "screenshot", + "feature": "site-colors", + "reason": "One native window shows the toolbar blending into a site; a film is unnecessary.", + "notes": [ + "The bar above the page, or the tabs on top, takes the site's color, gradients and images included, and slides with the page as one card. The window keeps a border all around, the traffic lights stay in the same place in every layout, and with the sidebar on the left its toggle sits just before the back arrow." + ], + "alt": { + "en": "The address toolbar takes the page’s color.", + "fr": "La barre d’adresse prend la couleur de la page." + } + }, + "0.11.1": { + "kind": "none", + "reason": "Performance and reliability improvements plus small agent artwork changes; no separate visual story is necessary." + }, + "0.11.0": { + "kind": "video", + "feature": "spaces", + "reason": "Choosing material and switching between personalized Spaces is a meaningful visual transformation.", + "notes": [ + "Each Space can be made of glass, with Liquid Glass tinted by its color, or of grain, its color under a fine film grain: pick it on the window preview under Appearance, in the Space editor or during setup." + ], + "alt": { + "en": "Choose glass, grain or solid for each Space.", + "fr": "Choisissez du verre, du grain ou de l’uni pour chaque Space." + } + }, + "0.10.1": { + "kind": "none", + "reason": "Two compatibility fixes; no new feature." + }, + "0.10.0": { + "kind": "video", + "feature": "archive", + "reason": "Opening the recent archive and bringing tabs back is a new workflow.", + "notes": [ + "The tabs Lilo archived in the last day wait next to New Tab, or in the tab bar, ready to come back in one click." + ], + "alt": { + "en": "Bring recently archived tabs back.", + "fr": "Retrouvez les onglets récemment archivés." + } + }, + "0.9.0": { + "kind": "video", + "feature": "history", + "reason": "Searching and filtering the new full history page is worth demonstrating.", + "notes": [ + "Browse your whole history in a History page (⌘Y), each day's visits grouped by site: filter by period, site or terminal, search, and delete what you pick." + ], + "alt": { + "en": "Find a page in your browsing history.", + "fr": "Retrouvez une page dans votre historique." + } + }, + "0.8.0": { + "kind": "video", + "feature": "tab-share", + "reason": "Searching the picker and changing the shared tab explains a new interaction.", + "notes": [ + "While a call shares a tab, its call card shows what is shared, shares the shown tab instead in one click without interrupting the call's stream, and stops the share. A shared tab also gets back to full frame rate as soon as it is scrolled or typed in.", + "The tab share picker shows tab previews, suggests the tabs likely to be shared first, groups the others by Space, searches by title or address and works from the keyboard. The tab asking to share is no longer offered." + ], + "alt": { + "en": "Find a tab and switch what you share.", + "fr": "Trouvez un onglet et changez celui que vous partagez." + } + }, + "0.7.0": { + "kind": "video", + "feature": "calls", + "reason": "The new sidebar call controls are useful away from the call tab.", + "notes": [ + "A call card in the sidebar mutes the microphone, turns the camera off and leaves the call of a Meet-like tab from anywhere, and ⇧⌘M mutes the call's microphone during a call." + ], + "alt": { + "en": "Keep call controls close while you browse.", + "fr": "Gardez les commandes d’appel à portée de main." + } + }, + "0.6.0": { + "kind": "screenshot", + "feature": "unread", + "reason": "An unread badge is a finished visual state; no film is needed.", + "notes": [ + "Tabs and bookmarks of messaging sites like Slack, Gmail or Google Chat show their unread count, or a dot when a page sent a notification you have not seen yet." + ], + "alt": { + "en": "Unread counts on tabs and bookmarks.", + "fr": "Les messages non lus sur les onglets et favoris." + } + }, + "0.5.0": { + "kind": "none", + "reason": "Agent API and progress improvements have no useful new native visual state." + }, + "0.4.1": { + "kind": "none", + "reason": "Website, privacy and prefetch improvements do not justify a native product film." + }, + "0.4.0": { + "kind": "screenshot", + "feature": "updates", + "reason": "The new restart card can be understood in one native screenshot.", + "notes": [ + "Lilo checks for and downloads updates on its own, then offers a Restart card at the bottom of the sidebar (an icon in a top or bottom tab bar) instead of an alert; ignored, the update installs when Lilo quits" + ], + "alt": { + "en": "An update ready to install from the sidebar.", + "fr": "Une mise à jour prête à installer depuis la barre latérale." + } + }, + "0.3.3": { + "kind": "none", + "reason": "Agent isolation and permission-layout refinements are clear in the notes." + }, + "0.3.2": { + "kind": "none", + "reason": "Bug fixes only." + }, + "0.3.1": { + "kind": "none", + "reason": "A small provider configuration addition does not need media." + }, + "0.3.0": { + "kind": "screenshot", + "feature": "settings", + "reason": "The page layout for Settings is a static visual improvement.", + "notes": [ + "With the tabs on top or at the bottom, Settings opens as a page: its sections sit beside the content in one card, and the tab strip shows an active Settings tab that closes it." + ], + "alt": { + "en": "Settings as a page beside your tabs.", + "fr": "Les réglages dans une page à côté de vos onglets." + } + }, + "0.2.4": { + "kind": "none", + "reason": "Bug fixes only; no new feature to demonstrate." + }, + "0.2.3": { + "kind": "none", + "reason": "Bug fixes only; no new feature to demonstrate." + }, + "0.2.2": { + "kind": "none", + "reason": "Bug fixes only; no new feature to demonstrate." + }, + "0.2.1": { + "kind": "none", + "reason": "Bug fixes only; no new feature to demonstrate." + }, + "0.2.0": { + "kind": "video", + "feature": "tab-edges", + "reason": "Moving tabs between the window’s four edges is a major spatial interaction.", + "notes": [ + "Put your tabs on any edge of the window: left, right, top or bottom, with the address with the tabs or above the page. Pick it in Settings, during the setup, from the command bar, or by holding the sidebar's top and dragging it to an edge." + ], + "alt": { + "en": "Put your tabs on any edge of the window.", + "fr": "Placez vos onglets sur le bord de votre choix." + } + }, + "0.1.5": { + "kind": "none", + "reason": "Incremental Settings and setup refinements; no new feature worth a standalone visual." + }, + "0.1.4": { + "kind": "none", + "reason": "Setup copy and layout refinements; the release notes explain the change." + }, + "0.1.3": { + "kind": "video", + "feature": "pinned-tabs", + "reason": "Giving a pinned tab a lasting name is a new interaction worth a short demonstration.", + "notes": [ + "Rename a pinned tab from its menu or by double-clicking its title: the name stays across page title changes, navigations and relaunches, and an empty name brings the page title back." + ], + "alt": { + "en": "Give a pinned tab a lasting name.", + "fr": "Donnez un nom durable à un onglet épinglé." + } + }, + "0.1.2": { + "kind": "none", + "reason": "Small Settings artwork and connection-progress improvements; notes are enough." + }, + "0.1.1": { + "kind": "none", + "reason": "Bug fixes only; no new feature to demonstrate." + }, + "0.1.0": { + "kind": "screenshot", + "feature": "browser", + "reason": "The first public release benefits from one product overview, rather than a feature movie.", + "notes": [ + "First public release: a native macOS browser for people who live in a sidebar, with Spaces that keep their own sign-ins, Chrome Web Store extensions, terminal tabs, and an Arc import. Requires macOS 26 or later." + ], + "alt": { + "en": "The first public Lilo browser release.", + "fr": "La première version publique du navigateur Lilo." + } + } + } +} diff --git a/release-media/catalog.ts b/release-media/catalog.ts new file mode 100644 index 000000000..ccaab75d8 --- /dev/null +++ b/release-media/catalog.ts @@ -0,0 +1,29 @@ +import backlog from "./backlog.json" with { type: "json" }; + +export interface ReleaseMedia { + kind: "video" | "screenshot"; + poster: string; + video?: string; + width: number; + height: number; + alt: { en: string; fr: string }; +} + +type Entry = { kind: string; feature?: string; alt?: ReleaseMedia["alt"] }; +const entries: Record = backlog.releases; + +export function mediaForRelease(version: string): ReleaseMedia | null { + const entry = entries[version]; + if (!entry || entry.kind === "none") return null; + if (!entry.feature || !entry.alt || (entry.kind !== "video" && entry.kind !== "screenshot")) + throw new Error(`Invalid release media: ${version}`); + const prefix = `/release-media/${version}/${entry.feature}`; + return { + kind: entry.kind, + poster: `${prefix}.png`, + ...(entry.kind === "video" ? { video: `${prefix}.mp4` } : {}), + width: 1920, + height: 1080, + alt: entry.alt, + }; +} diff --git a/release-media/check.mjs b/release-media/check.mjs new file mode 100644 index 000000000..4d5f72231 --- /dev/null +++ b/release-media/check.mjs @@ -0,0 +1,340 @@ +import { execFile } from "node:child_process"; +import { mkdtemp, readFile, readdir, rm, writeFile } from "node:fs/promises"; +import { tmpdir } from "node:os"; +import path from "node:path"; +import { promisify } from "node:util"; +import { + root, + sha, + json, + selected, + nativeSources, + resolveRecipe, + recipeHashes, + same, + releaseSections, +} from "./pipeline.mjs"; + +const run = promisify(execFile); +const publishing = process.argv.includes("--publish"); +const catalog = await json(path.join(root, "backlog.json")); +if (catalog.publication !== "quality-gated") + throw Error("Release blocked: media publication is disabled."); +const markdown = await readFile(path.join(root, "../CHANGELOG.md"), "utf8"); +const releases = new Map( + [...releaseSections(markdown)].map(([version, section]) => [ + version, + section.slice(section.indexOf("\n") + 1), + ]), +); +if (!same([...releases.keys()].sort(), Object.keys(catalog.releases).sort())) + throw Error("Every published release needs a video, screenshot or none decision."); +const passesMotion = (m, frames) => + m?.measuredFrames === frames - 1 && + Number.isFinite(m.movingFrameRatio) && + m.movingFrameRatio >= 0.2 && + m.movingFrameRatio <= 1 && + Number.isFinite(m.longestStillSeconds) && + m.longestStillSeconds <= 3 && + Number.isFinite(m.largestLumaChange) && + m.largestLumaChange <= 45; +const passesQuality = (q, render, hash) => + q?.passed === true && + q.renderSha256 === hash && + q.sourceHashes === true && + q.renderHashes === true && + q.cutoutsVerified === true && + q.strictCompositionCheck === true && + (render.kind !== "video" || + (q.decode === true && + passesMotion(q.motion, render.frames) && + q.posterSSIM >= 0.98 && + q.audio?.integratedLoudnessLUFS >= -19 && + q.audio?.integratedLoudnessLUFS <= -13 && + q.audio?.truePeakDbFS <= -0.7)); + +async function verifyCutouts(render, project) { + const { default: sharp } = await import("sharp"); + const results = []; + for (const cut of render.cutouts) { + const original = sharp(path.join(root, cut.source)); + if (cut.crop) { + const [left, top, width, height] = cut.crop; + original.extract({ left, top, width, height }); + } + const before = await original.ensureAlpha().raw().toBuffer({ resolveWithObject: true }); + const target = path.join(project, "assets/native", cut.file); + const after = await sharp(target).ensureAlpha().raw().toBuffer({ resolveWithObject: true }); + if ( + after.info.width !== before.info.width || + after.info.height !== before.info.height || + after.info.channels !== 4 + ) + throw Error(`Cutout dimensions changed: ${cut.file}`); + const rgb = Buffer.allocUnsafe(after.info.width * after.info.height * 3); + const alpha = Buffer.allocUnsafe(after.info.width * after.info.height); + let clear = 0, + opaque = 0; + for (let pixel = 0; pixel < alpha.length; pixel++) { + const i = pixel * 4; + for (let c = 0; c < 3; c++) { + if (before.data[i + c] !== after.data[i + c]) + throw Error(`Native RGB changed: ${cut.file}`); + rgb[pixel * 3 + c] = after.data[i + c]; + } + const a = after.data[i + 3]; + if (a > before.data[i + 3]) throw Error(`Native opacity increased: ${cut.file}`); + alpha[pixel] = a; + clear += Number(a === 0); + opaque += Number(a === 255); + } + if ( + !clear || + !opaque || + sha(rgb) !== cut.rgbSha256 || + sha(alpha) !== cut.alphaSha256 || + clear !== cut.transparentPixels || + opaque !== cut.opaquePixels + ) + throw Error(`Invalid alpha receipt: ${cut.file}`); + results.push({ file: cut.file, rgbPreserved: true, transparentPixels: clear }); + } + return results; +} + +const scratch = await mkdtemp(path.join(tmpdir(), "lilo-media-qa-")); +try { + for (const [version, entry] of selected(catalog)) { + if (!["none", "screenshot", "video"].includes(entry.kind) || !entry.reason?.trim()) + throw Error(`Missing editorial decision: ${version}`); + const folder = path.join(root, "assets", version); + if (entry.kind === "none") { + const files = await readdir(folder).catch((error) => { + if (error.code === "ENOENT") return []; + throw error; + }); + if (files.some((file) => /\.(png|mp4)$/.test(file))) + throw Error(`Text-only release has media: ${version}`); + continue; + } + if ( + !entry.alt?.en || + !entry.alt?.fr || + !entry.notes?.length || + entry.notes.some((note) => !releases.get(version)?.includes(note)) + ) + throw Error(`Media must describe exact release notes in both locales: ${version}`); + const native = await nativeSources(version, entry); + const bytes = await readFile(path.join(folder, "render.json")), + render = JSON.parse(bytes); + if ( + render.schemaVersion !== 3 || + render.engine !== "hyperframes" || + render.release !== version || + render.kind !== entry.kind || + render.feature !== entry.feature || + render.width !== 1920 || + render.height !== 1080 || + render.fps !== 60 + ) + throw Error(`Stale HyperFrames render: ${version}`); + if (!same(render.nativeReceipts, native.receipts)) + throw Error(`Native receipt changed: ${version}`); + const recipe = resolveRecipe(entry); + if ( + !same(render.recipe, recipe) || + !same(render.recipeHashes, await recipeHashes(entry, recipe)) + ) + throw Error(`HyperFrames recipe changed: ${version}`); + if ( + publishing && + process.env.LILO_RELEASE_MEDIA_VERSION && + process.env.GITHUB_REF_TYPE === "tag" && + process.env.GITHUB_SHA && + render.nativeReceipts.some( + (receipt) => receipt.productSourceCommit !== process.env.GITHUB_SHA, + ) + ) + throw Error(`Release blocked: native capture is not from this tag: ${version}`); + const expectedHashes = [ + `${entry.feature}.png`, + ...(entry.kind === "video" ? [`${entry.feature}.mp4`] : []), + ]; + if ( + !same(Object.keys(render.hashes ?? {}).sort(), expectedHashes.sort()) || + Object.values(render.hashes).some((hash) => !/^[a-f0-9]{64}$/.test(hash)) + ) + throw Error(`Missing or invalid rendered hashes: ${version}`); + if ( + publishing && + process.env.LILO_RELEASE_MEDIA_VERSION && + process.env.GITHUB_REF_TYPE === "tag" && + render.nativeReceipts.some((receipt) => receipt.appVersion !== version) + ) + throw Error(`Release blocked: captured app version does not match the tag: ${version}`); + for (const [file, hash] of Object.entries(render.hashes)) { + if ( + !/^[a-z0-9-]+\.(png|mp4)$/.test(file) || + sha(await readFile(path.join(folder, file))) !== hash + ) + throw Error(`Rendered media changed: ${version}/${file}`); + } + if (entry.kind === "video") { + const license = await json(path.join(root, "public/audio/music.license.json")); + if (license.license !== "CC0-1.0" || license.attributionRequired !== false) + throw Error("Release blocked: soundtrack must not require attribution"); + } + const hash = sha(bytes); + if (publishing) { + const q = await json(path.join(folder, "quality.json")); + if (!passesQuality(q, render, hash)) + throw Error( + `Release blocked: ${version} needs a passing quality check for these exact bytes.`, + ); + console.log(`Quality-gated ${version}: ${entry.kind} ${entry.feature}`); + continue; + } + await rm(path.join(folder, "quality.json"), { force: true }); + const project = path.join(root, "../build/release-media/projects", version); + const report = { + release: version, + kind: entry.kind, + passed: false, + renderSha256: hash, + sourceHashes: true, + renderHashes: true, + strictCompositionCheck: true, + cutoutsVerified: false, + }; + const composition = await json(path.join(project, "check.json")); + if ( + composition.ok !== true || + composition.strict !== true || + composition.browserSkipped === true + ) + throw Error(`HyperFrames runtime check missing: ${version}`); + report.cutouts = await verifyCutouts(render, project); + report.cutoutsVerified = true; + const { default: sharp } = await import("sharp"); + const poster = path.join(folder, `${entry.feature}.png`); + const picture = await sharp(poster).metadata(); + if (picture.format !== "png" || picture.width !== 1920 || picture.height !== 1080) + throw Error(`Invalid lossless poster: ${version}`); + if (entry.kind === "video") { + const film = path.join(folder, `${entry.feature}.mp4`); + const probe = JSON.parse( + ( + await run("ffprobe", [ + "-v", + "error", + "-count_frames", + "-show_streams", + "-show_format", + "-of", + "json", + film, + ]) + ).stdout, + ); + const video = probe.streams.find((s) => s.codec_type === "video"), + audio = probe.streams.find((s) => s.codec_type === "audio"); + if ( + video?.codec_name !== "h264" || + video.width !== 1920 || + video.height !== 1080 || + video.pix_fmt !== "yuv420p" || + video.avg_frame_rate !== "60/1" || + Number(video.nb_read_frames) !== render.frames || + audio?.codec_name !== "aac" || + Number(audio.sample_rate) !== 48000 || + audio.channels !== 2 || + Math.abs(Number(probe.format.duration) - render.frames / 60) > 0.05 + ) + throw Error(`Incorrect 1080p60 H.264/AAC output: ${version}`); + const { stderr: analysis } = await run( + "ffmpeg", + [ + "-hide_banner", + "-xerror", + "-i", + film, + "-vf", + "scale=240:135,tblend=all_mode=difference,signalstats,metadata=print:key=lavfi.signalstats.YAVG", + "-af", + "ebur128=peak=true", + "-f", + "null", + "-", + ], + { maxBuffer: 12 * 1024 * 1024 }, + ); + const tail = analysis.slice(analysis.lastIndexOf("Summary:")); + const loudness = Number(/I:\s*(-?[\d.]+) LUFS/.exec(tail)?.[1]), + peak = Number(/Peak:\s*(-?[\d.]+) dBFS/.exec(tail)?.[1]); + if ( + !Number.isFinite(loudness) || + loudness < -19 || + loudness > -13 || + !Number.isFinite(peak) || + peak > -0.7 + ) + throw Error(`Silent or clipping soundtrack: ${version}`); + const deltas = [...analysis.matchAll(/lavfi.signalstats.YAVG=([\d.e+-]+)/g)].map((m) => + Number(m[1]), + ); + let runStill = 0, + longest = 0; + for (const value of deltas) { + runStill = value < 0.04 ? runStill + 1 : 0; + longest = Math.max(longest, runStill); + } + const motion = { + measuredFrames: deltas.length, + movingFrameRatio: deltas.filter((d) => d >= 0.04).length / deltas.length, + longestStillSeconds: longest / 60, + largestLumaChange: Math.max(...deltas), + }; + if (!passesMotion(motion, render.frames)) + throw Error(`Motion quality failed for ${version}: ${JSON.stringify(motion)}`); + const frame = path.join(scratch, `${version}.png`); + await run("ffmpeg", [ + "-v", + "error", + "-i", + film, + "-vf", + `select=eq(n\\,${render.posterFrame})`, + "-frames:v", + "1", + frame, + ]); + const { stderr: result } = await run("ffmpeg", [ + "-hide_banner", + "-i", + frame, + "-i", + poster, + "-lavfi", + "ssim", + "-f", + "null", + "-", + ]); + const ssim = Number(/All:([\d.]+)/.exec(result)?.[1]); + if (!(ssim >= 0.98)) throw Error(`Encoded UI is too blurry: ${version}`); + Object.assign(report, { + decode: true, + fps: 60, + frames: render.frames, + audio: { integratedLoudnessLUFS: loudness, truePeakDbFS: peak }, + motion, + posterSSIM: ssim, + }); + } + report.passed = true; + await writeFile(path.join(folder, "quality.json"), JSON.stringify(report, null, 2) + "\n"); + console.log(`Verified HyperFrames ${version}: ${entry.kind} ${entry.feature}`); + } +} finally { + await rm(scratch, { recursive: true, force: true }); +} diff --git a/release-media/check.test.mjs b/release-media/check.test.mjs new file mode 100644 index 000000000..4171524bd --- /dev/null +++ b/release-media/check.test.mjs @@ -0,0 +1,444 @@ +import assert from "node:assert/strict"; +import { execFileSync } from "node:child_process"; +import { createHash } from "node:crypto"; +import { cp, mkdtemp, mkdir, readFile, rm, writeFile } from "node:fs/promises"; +import { tmpdir } from "node:os"; +import path from "node:path"; +import { test } from "node:test"; +import { fileURLToPath, pathToFileURL } from "node:url"; + +const root = path.dirname(fileURLToPath(import.meta.url)); +const json = (value) => JSON.stringify(value, null, 2) + "\n"; + +test("publication fails closed against the measured HyperFrames film and its sources", async (t) => { + const scratch = await mkdtemp(path.join(tmpdir(), "lilo-publication-test-")); + t.after(() => rm(scratch, { recursive: true, force: true })); + const folder = path.join(scratch, "release-media"); + const version = "0.11.0"; + const backlog = JSON.parse(await readFile(path.join(root, "backlog.json"), "utf8")); + const entry = backlog.releases[version]; + const catalog = { + schemaVersion: 1, + publication: "quality-gated", + releases: { [version]: entry }, + }; + const assets = path.join(folder, "assets", version); + await mkdir(path.join(folder, "public/native"), { recursive: true }); + await mkdir(path.join(folder, "hyperframes/archive"), { recursive: true }); + await cp(path.join(root, "assets", version), assets, { recursive: true }); + await cp(path.join(root, "public/native", version), path.join(folder, "public/native", version), { + recursive: true, + }); + await cp( + path.join(root, "hyperframes/archive", version), + path.join(folder, "hyperframes/archive", version), + { + recursive: true, + }, + ); + await cp(path.join(root, "public/audio"), path.join(folder, "public/audio"), { recursive: true }); + await cp( + path.join(root, "hyperframes/archive/ending.html"), + path.join(folder, "hyperframes/archive/ending.html"), + ); + for (const file of ["check.mjs", "pipeline.mjs", "fixtures.mjs"]) + await cp(path.join(root, file), path.join(folder, file)); + for (const file of [ + "render.mjs", + "png-cutouts.mjs", + "package-lock.json", + "hyperframes/assets", + "hyperframes/archive/shared.css", + "hyperframes/archive/shared.js", + ]) + await cp(path.join(root, file), path.join(folder, file), { recursive: true }); + await writeFile(path.join(folder, "backlog.json"), json(catalog)); + await writeFile( + path.join(scratch, "CHANGELOG.md"), + `## [${version}]\n${entry.notes.join("\n")}\n`, + ); + const run = (environment = {}) => + execFileSync(process.execPath, [path.join(folder, "check.mjs"), "--publish"], { + env: { PATH: "", ...environment }, + stdio: "pipe", + }).toString(); + const renderFile = path.join(assets, "render.json"); + const qualityFile = path.join(assets, "quality.json"); + const render = JSON.parse(await readFile(renderFile, "utf8")); + const expectQualityFailure = /needs a passing quality check for these exact bytes/u; + async function withChangedFile(file, change, check) { + const original = await readFile(file); + try { + await writeFile(file, await change(original)); + await check(); + } finally { + await writeFile(file, original); + } + } + const rejectJson = (name, file, change, message = expectQualityFailure) => + t.test(name, () => + withChangedFile( + file, + (bytes) => { + const value = JSON.parse(bytes); + change(value); + return json(value); + }, + () => assert.throws(run, message), + ), + ); + + await t.test("publishes the measured film using Node alone", () => { + assert.equal(render.engine, "hyperframes"); + assert.match(run(), /Quality-gated 0\.11\.0: video spaces/u); + }); + await t.test("an unrelated fixture preserves publication of the measured film", () => + withChangedFile( + path.join(folder, "fixtures.mjs"), + (bytes) => Buffer.concat([bytes, Buffer.from('\nfixtures["unrelated"] = "99.0.0";\n')]), + () => assert.match(run(), /Quality-gated 0\.11\.0: video spaces/u), + ), + ); + await t.test("soundtrack documentation does not invalidate the measured film", () => + withChangedFile( + path.join(folder, "public/audio/music.README.md"), + (bytes) => Buffer.concat([bytes, Buffer.from("\nClarified soundtrack documentation.\n")]), + () => assert.match(run(), /Quality-gated 0\.11\.0: video spaces/u), + ), + ); + await t.test("a changed selected fixture refuses the measured film", () => + withChangedFile( + path.join(folder, "fixtures.mjs"), + (bytes) => bytes.toString().replace('spaces: "0.11.0"', 'spaces: "0.10.0"'), + () => assert.throws(run, /HyperFrames recipe changed/u), + ), + ); + await rejectJson( + "a disabled publication policy blocks the release", + path.join(folder, "backlog.json"), + (value) => { + value.publication = "blocked"; + }, + /media publication is disabled/u, + ); + await t.test("a missing quality receipt blocks the release", async () => { + const original = await readFile(qualityFile); + try { + await rm(qualityFile); + assert.throws(run, /quality\.json/u); + } finally { + await writeFile(qualityFile, original); + } + }); + await rejectJson("a stale quality receipt is refused", qualityFile, (q) => { + q.renderSha256 = "stale"; + }); + await rejectJson("a failed quality receipt is refused", qualityFile, (q) => { + q.passed = false; + }); + for (const flag of [ + "sourceHashes", + "renderHashes", + "cutoutsVerified", + "strictCompositionCheck", + "decode", + ]) + await rejectJson(`missing ${flag} verification blocks publication`, qualityFile, (q) => { + q[flag] = false; + }); + for (const [name, field, value] of [ + ["insufficient measured frames", "measuredFrames", 0], + ["too little motion", "movingFrameRatio", 0], + ["a long static hold", "longestStillSeconds", 3.1], + ["a large frame jump", "largestLumaChange", 46], + ]) + await rejectJson(name, qualityFile, (q) => { + q.motion[field] = value; + }); + await rejectJson("a blurry encoded poster is refused", qualityFile, (q) => { + q.posterSSIM = 0.97; + }); + for (const [name, field, value] of [ + ["quiet audio", "integratedLoudnessLUFS", -30], + ["loud audio", "integratedLoudnessLUFS", -5], + ["clipping audio", "truePeakDbFS", 0], + ]) + await rejectJson(name, qualityFile, (q) => { + q.audio[field] = value; + }); + const licenseFile = path.join(folder, "public/audio/music.license.json"); + await t.test("a soundtrack requiring attribution is refused", () => + withChangedFile( + licenseFile, + (bytes) => { + const license = JSON.parse(bytes); + license.attributionRequired = true; + return json(license); + }, + async () => { + const licenseHash = createHash("sha256") + .update(await readFile(licenseFile)) + .digest("hex"); + await withChangedFile( + renderFile, + (bytes) => { + const value = JSON.parse(bytes); + value.recipeHashes["public/audio/music.license.json"] = licenseHash; + return json(value); + }, + () => + withChangedFile( + qualityFile, + async (bytes) => { + const quality = JSON.parse(bytes); + quality.renderSha256 = createHash("sha256") + .update(await readFile(renderFile)) + .digest("hex"); + return json(quality); + }, + () => assert.throws(run, /soundtrack must not require attribution/u), + ), + ); + }, + ), + ); + await rejectJson( + "a previous recipe schema cannot be published", + renderFile, + (value) => { + value.schemaVersion = 2; + }, + /Stale HyperFrames render/u, + ); + await rejectJson( + "a previous rendering engine cannot be published", + renderFile, + (value) => { + value.engine = "remotion"; + }, + /Stale HyperFrames render/u, + ); + for (const [name, change] of [ + [ + "an omitted poster digest", + (value) => { + delete value.hashes["spaces.png"]; + }, + ], + [ + "an omitted film digest", + (value) => { + delete value.hashes["spaces.mp4"]; + }, + ], + [ + "an empty digest map", + (value) => { + value.hashes = {}; + }, + ], + [ + "an invalid digest", + (value) => { + value.hashes["spaces.mp4"] = "invalid"; + }, + ], + ]) + await t.test(`${name} is refused even with a matching quality receipt`, async () => { + const changed = structuredClone(render); + change(changed); + const bytes = json(changed); + await withChangedFile( + renderFile, + () => bytes, + () => + withChangedFile( + qualityFile, + (original) => { + const quality = JSON.parse(original); + quality.renderSha256 = createHash("sha256").update(bytes).digest("hex"); + return json(quality); + }, + () => assert.throws(run, /Missing or invalid rendered hashes/u), + ), + ); + }); + await t.test("changed encoded bytes are refused", () => + withChangedFile( + path.join(assets, "spaces.mp4"), + () => "changed encoded bytes", + () => assert.throws(run, /Rendered media changed/u), + ), + ); + await rejectJson( + "changed native provenance is refused", + path.join(folder, "public/native", version, "capture.json"), + (value) => { + value.productSourceCommit = "different-build"; + }, + /Native receipt changed/u, + ); + await t.test("changed native pixels are refused", () => + withChangedFile( + path.join(folder, render.cutouts[0].source), + (bytes) => Buffer.concat([bytes, Buffer.from("changed native pixels")]), + () => assert.throws(run, /Native pixels changed/u), + ), + ); + await t.test("changed composition code invalidates the render", () => + withChangedFile( + path.join(folder, "hyperframes/archive", version, "index.html"), + (bytes) => Buffer.concat([bytes, Buffer.from("\n\n")]), + () => assert.throws(run, /HyperFrames recipe changed/u), + ), + ); + await t.test("a changed selected scene invalidates the render", () => + withChangedFile( + path.join(folder, "hyperframes/archive", version, "compositions/feature.html"), + (bytes) => Buffer.concat([bytes, Buffer.from("\n\n")]), + () => assert.throws(run, /HyperFrames recipe changed/u), + ), + ); + await t.test("an unrelated composition does not invalidate the render", async () => { + const unrelated = path.join(folder, "hyperframes/archive/99.0.0"); + await mkdir(unrelated); + await writeFile(path.join(unrelated, "index.html"), "Unrelated composition"); + assert.match(run(), /Quality-gated 0\.11\.0: video spaces/u); + }); + for (const file of ["render.mjs", "public/audio/music.ogg", "public/audio/mouse-click.wav"]) + await t.test(`changing ${file} invalidates the film`, () => + withChangedFile( + path.join(folder, file), + (bytes) => Buffer.concat([bytes, Buffer.from("\nchanged input\n")]), + () => assert.throws(run, /HyperFrames recipe changed/u), + ), + ); + await t.test("changing the shared ending invalidates a film that uses it", () => + withChangedFile( + path.join(folder, "hyperframes/archive/ending.html"), + (bytes) => Buffer.concat([bytes, Buffer.from("\n\n")]), + () => assert.throws(run, /HyperFrames recipe changed/u), + ), + ); + await t.test("a tag must use captures from its exact source commit", () => { + const source = render.nativeReceipts[0].productSourceCommit; + const selectedTag = { GITHUB_REF_TYPE: "tag", LILO_RELEASE_MEDIA_VERSION: version }; + assert.throws(() => run({ ...selectedTag, GITHUB_SHA: source }), /app version/u); + assert.throws( + () => run({ ...selectedTag, GITHUB_SHA: "different-tag-commit" }), + /native capture is not from this tag/u, + ); + }); + await t.test("publishing the archive retains verified historical captures", () => { + assert.match( + run({ GITHUB_REF_TYPE: "tag", GITHUB_SHA: "new-release-commit" }), + /Quality-gated 0\.11\.0/u, + ); + }); + await t.test("restoring the verified inputs makes publication pass again", () => { + assert.match(run(), /Quality-gated 0\.11\.0: video spaces/u); + }); +}); + +test("screenshots publish independently of unused video assets", async (t) => { + const scratch = await mkdtemp(path.join(tmpdir(), "lilo-screenshot-publication-test-")); + t.after(() => rm(scratch, { recursive: true, force: true })); + const folder = path.join(scratch, "release-media"); + const version = "0.6.0"; + const backlog = JSON.parse(await readFile(path.join(root, "backlog.json"), "utf8")); + const entry = backlog.releases[version]; + for (const file of [ + "check.mjs", + "pipeline.mjs", + "fixtures.mjs", + "render.mjs", + "png-cutouts.mjs", + "package-lock.json", + `assets/${version}`, + `public/native/${version}`, + "public/audio", + "hyperframes/assets", + ]) + await cp(path.join(root, file), path.join(folder, file), { recursive: true }); + await writeFile( + path.join(folder, "backlog.json"), + json({ publication: "quality-gated", releases: { [version]: entry } }), + ); + await writeFile( + path.join(scratch, "CHANGELOG.md"), + `## [${version}]\n${entry.notes.join("\n")}\n`, + ); + const run = () => + execFileSync(process.execPath, [path.join(folder, "check.mjs"), "--publish"], { + env: { PATH: "" }, + stdio: "pipe", + }).toString(); + assert.match(run(), /Quality-gated 0\.6\.0: screenshot unread/u); + for (const file of [ + "public/audio/music.ogg", + "public/audio/music.license.json", + "public/audio/mouse-click.wav", + "public/audio/switch.wav", + "hyperframes/assets/logo.svg", + ]) { + await writeFile(path.join(folder, file), "unused video asset changed"); + assert.match(run(), /Quality-gated 0\.6\.0: screenshot unread/u); + } + await writeFile( + path.join(folder, "fixtures.mjs"), + (await readFile(path.join(folder, "fixtures.mjs"), "utf8")).replace( + 'unread: "0.6.0"', + 'unread: "0.3.0"', + ), + ); + assert.throws(run, /HyperFrames recipe changed/u); +}); + +test("selected recipe dependencies exclude the fixture registry and unused video assets", async (t) => { + const scratch = await mkdtemp(path.join(tmpdir(), "lilo-recipe-dependencies-test-")); + t.after(() => rm(scratch, { recursive: true, force: true })); + for (const file of [ + "pipeline.mjs", + "fixtures.mjs", + "render.mjs", + "png-cutouts.mjs", + "package-lock.json", + "public/audio", + "hyperframes/assets", + "hyperframes/archive/0.11.0", + "hyperframes/archive/ending.html", + "hyperframes/archive/shared.css", + "hyperframes/archive/shared.js", + ]) + await cp(path.join(root, file), path.join(scratch, file), { recursive: true }); + const { resolveRecipe, recipeHashes } = await import( + pathToFileURL(path.join(scratch, "pipeline.mjs")) + ); + const screenshot = { kind: "screenshot", feature: "unread" }; + const video = { kind: "video", feature: "spaces" }; + const stillRecipe = resolveRecipe(screenshot); + const filmRecipe = resolveRecipe(video); + assert.deepEqual(stillRecipe, { fixture: "0.6.0", directory: null, variant: null }); + assert.deepEqual(filmRecipe, { + fixture: "0.11.0", + directory: "hyperframes/archive/0.11.0", + variant: null, + }); + assert.deepEqual(resolveRecipe({ kind: "video", feature: "tab-share", variant: "share" }), { + fixture: "0.8.0", + directory: "hyperframes/archive/0.8.0", + variant: "share", + }); + const stillHashes = await recipeHashes(screenshot, stillRecipe); + const filmHashes = await recipeHashes(video, filmRecipe); + assert.equal(Object.hasOwn(stillHashes, "fixtures.mjs"), false); + assert.equal(Object.hasOwn(filmHashes, "fixtures.mjs"), false); + assert.equal(Object.hasOwn(stillHashes, "public/audio/music.ogg"), false); + assert.equal(Object.hasOwn(stillHashes, "hyperframes/assets/logo.svg"), false); + assert.equal(Object.hasOwn(filmHashes, "public/audio/music.ogg"), true); + await writeFile(path.join(scratch, "public/audio/music.ogg"), "changed soundtrack"); + assert.deepEqual(await recipeHashes(screenshot, stillRecipe), stillHashes); + assert.notDeepEqual(await recipeHashes(video, filmRecipe), filmHashes); + await writeFile(path.join(scratch, "render.mjs"), "changed shared renderer"); + assert.notDeepEqual(await recipeHashes(screenshot, stillRecipe), stillHashes); +}); diff --git a/release-media/fixtures.mjs b/release-media/fixtures.mjs new file mode 100644 index 000000000..545f3ca4e --- /dev/null +++ b/release-media/fixtures.mjs @@ -0,0 +1,16 @@ +export const fixtures = { + browser: "0.1.0", + "pinned-tabs": "0.1.3", + "tab-edges": "0.2.0", + settings: "0.3.0", + updates: "0.4.0", + unread: "0.6.0", + calls: "0.7.0", + "tab-share": "0.8.0", + history: "0.9.0", + archive: "0.10.0", + spaces: "0.11.0", + "site-colors": "0.12.0", + seasons: "0.13.0", + drop: "0.14.0", +}; diff --git a/release-media/hyperframes/0.8.0/compositions/end.html b/release-media/hyperframes/0.8.0/compositions/end.html new file mode 100644 index 000000000..890b5a93c --- /dev/null +++ b/release-media/hyperframes/0.8.0/compositions/end.html @@ -0,0 +1,33 @@ + diff --git a/release-media/hyperframes/0.8.0/compositions/find.html b/release-media/hyperframes/0.8.0/compositions/find.html new file mode 100644 index 000000000..748f4f7ae --- /dev/null +++ b/release-media/hyperframes/0.8.0/compositions/find.html @@ -0,0 +1,65 @@ + diff --git a/release-media/hyperframes/0.8.0/compositions/hook.html b/release-media/hyperframes/0.8.0/compositions/hook.html new file mode 100644 index 000000000..b69d76561 --- /dev/null +++ b/release-media/hyperframes/0.8.0/compositions/hook.html @@ -0,0 +1,39 @@ + diff --git a/release-media/hyperframes/0.8.0/compositions/room.html b/release-media/hyperframes/0.8.0/compositions/room.html new file mode 100644 index 000000000..9b9bfc874 --- /dev/null +++ b/release-media/hyperframes/0.8.0/compositions/room.html @@ -0,0 +1,61 @@ + diff --git a/release-media/hyperframes/0.8.0/compositions/switch.html b/release-media/hyperframes/0.8.0/compositions/switch.html new file mode 100644 index 000000000..3286a2974 --- /dev/null +++ b/release-media/hyperframes/0.8.0/compositions/switch.html @@ -0,0 +1,50 @@ + diff --git a/release-media/hyperframes/0.8.0/index.html b/release-media/hyperframes/0.8.0/index.html new file mode 100644 index 000000000..3bd89a7cb --- /dev/null +++ b/release-media/hyperframes/0.8.0/index.html @@ -0,0 +1,42 @@ + + + + + + Lilo 0.8.0 — The handoff + + + + +
+
+
+
+
+
+ + + + + + + + + + + +
+ + + diff --git a/release-media/hyperframes/0.8.0/metadata.json b/release-media/hyperframes/0.8.0/metadata.json new file mode 100644 index 000000000..a132898fa --- /dev/null +++ b/release-media/hyperframes/0.8.0/metadata.json @@ -0,0 +1,4 @@ +{ + "duration": 26, + "posterFrame": 1440 +} diff --git a/release-media/hyperframes/archive/0.1.3/compositions/feature.html b/release-media/hyperframes/archive/0.1.3/compositions/feature.html new file mode 100644 index 000000000..a1121d069 --- /dev/null +++ b/release-media/hyperframes/archive/0.1.3/compositions/feature.html @@ -0,0 +1,31 @@ + diff --git a/release-media/hyperframes/archive/0.1.3/index.html b/release-media/hyperframes/archive/0.1.3/index.html new file mode 100644 index 000000000..b582e373d --- /dev/null +++ b/release-media/hyperframes/archive/0.1.3/index.html @@ -0,0 +1,36 @@ + + + + + + Lilo 0.1.3 — A name that stays. + + + + + +
+
+
+ + + + + + + + + + + +
+ + + diff --git a/release-media/hyperframes/archive/0.1.3/metadata.json b/release-media/hyperframes/archive/0.1.3/metadata.json new file mode 100644 index 000000000..f621e4dc1 --- /dev/null +++ b/release-media/hyperframes/archive/0.1.3/metadata.json @@ -0,0 +1,5 @@ +{ + "duration": 12, + "posterFrame": 660, + "caption": "A name that stays." +} diff --git a/release-media/hyperframes/archive/0.10.0/compositions/feature.html b/release-media/hyperframes/archive/0.10.0/compositions/feature.html new file mode 100644 index 000000000..9131dfc96 --- /dev/null +++ b/release-media/hyperframes/archive/0.10.0/compositions/feature.html @@ -0,0 +1,35 @@ + diff --git a/release-media/hyperframes/archive/0.10.0/index.html b/release-media/hyperframes/archive/0.10.0/index.html new file mode 100644 index 000000000..edfb3aa1b --- /dev/null +++ b/release-media/hyperframes/archive/0.10.0/index.html @@ -0,0 +1,30 @@ + + + + + + Lilo 0.10.0 — Bring a tab back. + + + + + +
+
+
+ + + + + +
+ + + diff --git a/release-media/hyperframes/archive/0.10.0/metadata.json b/release-media/hyperframes/archive/0.10.0/metadata.json new file mode 100644 index 000000000..83797fba2 --- /dev/null +++ b/release-media/hyperframes/archive/0.10.0/metadata.json @@ -0,0 +1,5 @@ +{ + "duration": 13, + "posterFrame": 720, + "caption": "Bring a tab back." +} diff --git a/release-media/hyperframes/archive/0.11.0/compositions/feature.html b/release-media/hyperframes/archive/0.11.0/compositions/feature.html new file mode 100644 index 000000000..9e75f4470 --- /dev/null +++ b/release-media/hyperframes/archive/0.11.0/compositions/feature.html @@ -0,0 +1,42 @@ + diff --git a/release-media/hyperframes/archive/0.11.0/index.html b/release-media/hyperframes/archive/0.11.0/index.html new file mode 100644 index 000000000..fd6b78d0c --- /dev/null +++ b/release-media/hyperframes/archive/0.11.0/index.html @@ -0,0 +1,29 @@ + + + + + + Lilo 0.11.0 — Make a Space yours. + + + + + +
+
+
+ + + + +
+ + + diff --git a/release-media/hyperframes/archive/0.11.0/metadata.json b/release-media/hyperframes/archive/0.11.0/metadata.json new file mode 100644 index 000000000..ef031f00a --- /dev/null +++ b/release-media/hyperframes/archive/0.11.0/metadata.json @@ -0,0 +1,5 @@ +{ + "duration": 18, + "posterFrame": 1020, + "caption": "Make a Space yours." +} diff --git a/release-media/hyperframes/archive/0.14.0/compositions/feature.html b/release-media/hyperframes/archive/0.14.0/compositions/feature.html new file mode 100644 index 000000000..8515ccec4 --- /dev/null +++ b/release-media/hyperframes/archive/0.14.0/compositions/feature.html @@ -0,0 +1,40 @@ + diff --git a/release-media/hyperframes/archive/0.14.0/index.html b/release-media/hyperframes/archive/0.14.0/index.html new file mode 100644 index 000000000..592c8ff61 --- /dev/null +++ b/release-media/hyperframes/archive/0.14.0/index.html @@ -0,0 +1,30 @@ + + + + + + Lilo 0.14.0 — From link to tab. + + + + + +
+
+
+ + + + + +
+ + + diff --git a/release-media/hyperframes/archive/0.14.0/metadata.json b/release-media/hyperframes/archive/0.14.0/metadata.json new file mode 100644 index 000000000..177304a1f --- /dev/null +++ b/release-media/hyperframes/archive/0.14.0/metadata.json @@ -0,0 +1,5 @@ +{ + "duration": 13, + "posterFrame": 720, + "caption": "From link to tab." +} diff --git a/release-media/hyperframes/archive/0.2.0/compositions/feature.html b/release-media/hyperframes/archive/0.2.0/compositions/feature.html new file mode 100644 index 000000000..8772cab53 --- /dev/null +++ b/release-media/hyperframes/archive/0.2.0/compositions/feature.html @@ -0,0 +1,28 @@ + diff --git a/release-media/hyperframes/archive/0.2.0/index.html b/release-media/hyperframes/archive/0.2.0/index.html new file mode 100644 index 000000000..cfe3e34de --- /dev/null +++ b/release-media/hyperframes/archive/0.2.0/index.html @@ -0,0 +1,29 @@ + + + + + + Lilo 0.2.0 — Tabs, your way. + + + + + +
+
+
+ + + + +
+ + + diff --git a/release-media/hyperframes/archive/0.2.0/metadata.json b/release-media/hyperframes/archive/0.2.0/metadata.json new file mode 100644 index 000000000..454ac53cb --- /dev/null +++ b/release-media/hyperframes/archive/0.2.0/metadata.json @@ -0,0 +1,5 @@ +{ + "duration": 15, + "posterFrame": 840, + "caption": "Tabs, your way." +} diff --git a/release-media/hyperframes/archive/0.7.0/compositions/feature.html b/release-media/hyperframes/archive/0.7.0/compositions/feature.html new file mode 100644 index 000000000..5746a62f6 --- /dev/null +++ b/release-media/hyperframes/archive/0.7.0/compositions/feature.html @@ -0,0 +1,30 @@ + diff --git a/release-media/hyperframes/archive/0.7.0/index.html b/release-media/hyperframes/archive/0.7.0/index.html new file mode 100644 index 000000000..b02309e6e --- /dev/null +++ b/release-media/hyperframes/archive/0.7.0/index.html @@ -0,0 +1,29 @@ + + + + + + Lilo 0.7.0 — Keep the call close. + + + + + +
+
+
+ + + + +
+ + + diff --git a/release-media/hyperframes/archive/0.7.0/metadata.json b/release-media/hyperframes/archive/0.7.0/metadata.json new file mode 100644 index 000000000..97d259b4c --- /dev/null +++ b/release-media/hyperframes/archive/0.7.0/metadata.json @@ -0,0 +1,5 @@ +{ + "duration": 14, + "posterFrame": 780, + "caption": "Keep the call close." +} diff --git a/release-media/hyperframes/archive/0.8.0/compositions/hook.html b/release-media/hyperframes/archive/0.8.0/compositions/hook.html new file mode 100644 index 000000000..71423882f --- /dev/null +++ b/release-media/hyperframes/archive/0.8.0/compositions/hook.html @@ -0,0 +1,39 @@ + diff --git a/release-media/hyperframes/archive/0.8.0/index.html b/release-media/hyperframes/archive/0.8.0/index.html new file mode 100644 index 000000000..2ad07dc14 --- /dev/null +++ b/release-media/hyperframes/archive/0.8.0/index.html @@ -0,0 +1,39 @@ + + + + + + Lilo 0.8.0 — Share the right tab + + + + +
+
+
+
+
+ + + + + + + + + +
+ + + diff --git a/release-media/hyperframes/archive/0.8.0/metadata.json b/release-media/hyperframes/archive/0.8.0/metadata.json new file mode 100644 index 000000000..c25bf2533 --- /dev/null +++ b/release-media/hyperframes/archive/0.8.0/metadata.json @@ -0,0 +1,4 @@ +{ + "duration": 18.6, + "posterFrame": 1020 +} diff --git a/release-media/hyperframes/archive/0.9.0/compositions/feature.html b/release-media/hyperframes/archive/0.9.0/compositions/feature.html new file mode 100644 index 000000000..02f510a43 --- /dev/null +++ b/release-media/hyperframes/archive/0.9.0/compositions/feature.html @@ -0,0 +1,34 @@ + diff --git a/release-media/hyperframes/archive/0.9.0/index.html b/release-media/hyperframes/archive/0.9.0/index.html new file mode 100644 index 000000000..55f3a2f44 --- /dev/null +++ b/release-media/hyperframes/archive/0.9.0/index.html @@ -0,0 +1,35 @@ + + + + + + Lilo 0.9.0 — Find your way back. + + + + + +
+
+
+ + + + + + + + + + +
+ + + diff --git a/release-media/hyperframes/archive/0.9.0/metadata.json b/release-media/hyperframes/archive/0.9.0/metadata.json new file mode 100644 index 000000000..636943c18 --- /dev/null +++ b/release-media/hyperframes/archive/0.9.0/metadata.json @@ -0,0 +1,5 @@ +{ + "duration": 15, + "posterFrame": 840, + "caption": "Find your way back." +} diff --git a/release-media/hyperframes/archive/README.md b/release-media/hyperframes/archive/README.md new file mode 100644 index 000000000..f5e53c94d --- /dev/null +++ b/release-media/hyperframes/archive/README.md @@ -0,0 +1,29 @@ +# Native release announcements + +Seven literal HyperFrames projects continue the approved 0.8.0 film's visual language: large, stationary Inter titles; actual native UI; purposeful camera moves; action sounds; and a clean Lilo ending. Each directory contains an editable root `index.html`, a literal feature sub-composition and its timing metadata. The ending template is shared across these projects. Copy `shared.css` and `shared.js` to the staged project root alongside it. They provide common typography, the editorial pointer's press and the logo ending; feature actions remain authored directly in each HTML file. + +All inputs are genuine captures from `public/native//`, with their original receipts. They illustrate historical features using the recorded current app build; they do not claim to be recordings of each historical binary. Fixture page titles, tab names and URLs are synthetic. The scenes neither redraw browser controls nor invent a successful action. The complete window captures retain their page content. Isolated interface cutouts can remove only their surrounding backdrop while retaining the original RGB pixels and canvas sizes. + +| Release | Length / frames at 60fps | Poster frame | Native proof | +| --- | ---: | ---: | --- | +| 0.1.3 | 12s / 720 | 660 | Double-click the real pinned title, show six captured input states, then the actual persistent name. | +| 0.2.0 | 15s / 900 | 840 | The four verified native tab layouts, with directional editorial transitions and labels. No simulated Settings click or drag is claimed. | +| 0.7.0 | 14s / 840 | 780 | Establish the actual browsing window; enlarge its real call card; mute and turn off the camera through the recorded Media Session handler results. | +| 0.9.0 | 15s / 900 | 840 | Type the captured `Studio` query, reveal the real filtered rows, then return to the complete native History page. | +| 0.10.0 | 13s / 780 | 720 | Open the captured recent archive, choose Field guide and reveal the actual restored row at its measured insertion boundary. | +| 0.11.0 | 18s / 1080 | 1020 | Select the actual Glass and Grain controls; show their native windows and another separately themed Space. | +| 0.14.0 | 13s / 780 | 720 | Carry the owned fixture link to the native drop indicator; reveal the new tab using the real insertion geometry and captured result. | + +## Action timing and geometry + +- **Pinned tabs:** double-click at 2.05/2.20s; native input at 2.25s; six letters at 3.00–3.75s; confirmation at 4.90s. The 2112×264 source is displayed at 1680×210. +- **Tab edges:** native layout transitions at 2.80, 5.50 and 8.20s. Each 2560×1600 native window is displayed at 1184×740. +- **Calls:** microphone at 4.00s, native result at 4.05s; camera at 6.30s, result at 6.35s. Native 1984×272 call-card sources display at 1560×213.87. Pointer targets are the actual recorded microphone/camera columns at x1167/x1323, y587. +- **History:** focus at 1.80s; six captured query changes at 2.60–3.40s; filtered native rows at 4.50s. Search and results display at 1280px, below their 1536px and 2400px source widths. +- **Archive:** archive button at 2.40s, row choice at 4.30s, restored-row reveal at 4.45–5.10s. The insertion boundary is `(161.109375 − 123) × 1440 / 264 = 207.8693px`, and the captured new row adds `180 × 1440 / 1584 = 163.6364px`. Three clipped CSS image layers of the real result supply the pixels above, inside and below that boundary; these are static graphic mattes rather than three separately timed media entries. +- **Spaces:** Glass at 3.20s, Grain at 6.50s, second native Space at 10.80s. The largest window display is 1536px, below its 2560px source. Controls display at 1400px, below their 1552px source. +- **Drop:** press at 2.00s, move from 2.10–3.50s, native indicator from 3.00s, release at 3.60s. The native receipt supplies insertion point x134/y162.109375 and insertion boundary y161.109375. The new row adds the same 163.6364 display pixels as the archive. The link is a real, owned fixture-page capture; its optional transparent cutout must preserve its original link glyphs. + +The factual source for each film is its selected exact note in `backlog.json`: pinned names persist; tabs can occupy any edge; native call controls work while browsing; History searches real visits; archived tabs return in one click; materials apply per Space; and external drops open at their chosen sidebar location. The films deliberately show these concrete subjects rather than enumerate unrelated fixes. + +The root release-media pipeline stages local `assets/native/`, Inter, the genuine Lilo mark, pinned GSAP, an attribution-free score and credited source Foley. No music-credit text is authored inside these films. The pipeline owns licensing evidence, rendering, native pixel checks, codec checks, posters and the release gate. These source files alone do not approve a release; they must pass the strict HyperFrames and encoded-media checks and be visually reviewed at compact width. diff --git a/release-media/hyperframes/archive/ending.html b/release-media/hyperframes/archive/ending.html new file mode 100644 index 000000000..5fb92a780 --- /dev/null +++ b/release-media/hyperframes/archive/ending.html @@ -0,0 +1,15 @@ + diff --git a/release-media/hyperframes/archive/shared.css b/release-media/hyperframes/archive/shared.css new file mode 100644 index 000000000..033ebac67 --- /dev/null +++ b/release-media/hyperframes/archive/shared.css @@ -0,0 +1,20 @@ +@font-face { font-family: LiloInter; src: url('assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: block; } +* { box-sizing: border-box; } +html, body { margin: 0; width: 1920px; height: 1080px; overflow: hidden; background: #eeedf2; } +body { font-family: LiloInter, sans-serif; -webkit-font-smoothing: antialiased; } +#main { position: relative; width: 1920px; height: 1080px; overflow: hidden; color: #26232f; } +#world { position: absolute; inset: 0; background: #eeedf2; } +.headline-clip { position: absolute; left: 150px; top: 70px; width: 1640px; height: 200px; } +.headline { margin: 0; font-size: 132px; line-height: 1.08; font-weight: 660; letter-spacing: -6px; } +.native { position: relative; width: 100%; height: 100%; } +.pixels { position: absolute; inset: 0; display: block; width: 100%; height: 100%; } +.cursor-clip { position: absolute; inset: 0; pointer-events: none; } +.cursor { position: absolute; left: 0; top: 0; width: 64px; height: 86px; } +.cursor svg { display: block; position: absolute; left: -5px; top: -5px; transform-origin: 5px 5px; } +.ending-clip { position: absolute; inset: 0; pointer-events: none; z-index: 100; } +#end-wipe { position: absolute; inset: 0; background: #eeedf2; } +#end-lockup { position: absolute; left: 300px; top: 240px; width: 1320px; height: 240px; display: flex; justify-content: center; align-items: center; gap: 58px; } +#end-mark { width: 204px; height: 204px; display: block; } +#end-brand { margin: 0; font-size: 182px; font-weight: 650; line-height: 1.1; letter-spacing: -9px; } +#end-version { position: absolute; left: 150px; top: 510px; width: 1620px; margin: 0; text-align: center; font-size: 96px; line-height: 1.1; color: #776692; font-weight: 500; letter-spacing: -4px; } +#end-caption { position: absolute; left: 140px; top: 730px; width: 1640px; margin: 0; text-align: center; font-size: 112px; line-height: 1.1; font-weight: 640; letter-spacing: -5px; } diff --git a/release-media/hyperframes/archive/shared.js b/release-media/hyperframes/archive/shared.js new file mode 100644 index 000000000..c070863bf --- /dev/null +++ b/release-media/hyperframes/archive/shared.js @@ -0,0 +1,44 @@ +window.pressPointer = (timeline, selector, seconds) => { + timeline + .fromTo( + `${selector} svg`, + { scale: 1 }, + { scale: 0.88, duration: 0.07, ease: "power2.out" }, + seconds, + ) + .to(`${selector} svg`, { scale: 1, duration: 0.15, ease: "power2.out" }, seconds + 0.07); +}; + +window.showEnding = (timeline, seconds) => { + timeline + .fromTo( + "#end-wipe", + { clipPath: "inset(100% 0 0 0)" }, + { clipPath: "inset(0% 0 0 0)", duration: 0.55, ease: "power3.inOut" }, + seconds, + ) + .fromTo( + "#end-mark", + { opacity: 0, y: 150 }, + { opacity: 1, y: 0, duration: 0.7, ease: "expo.out" }, + seconds + 0.1, + ) + .fromTo( + "#end-brand", + { opacity: 0, x: -36 }, + { opacity: 1, x: 0, duration: 0.55, ease: "power4.out" }, + seconds + 0.3, + ) + .fromTo( + "#end-version", + { opacity: 0 }, + { opacity: 1, duration: 0.3, ease: "none" }, + seconds + 0.45, + ) + .fromTo( + "#end-caption", + { opacity: 0 }, + { opacity: 1, duration: 0.35, ease: "none" }, + seconds + 0.65, + ); +}; diff --git a/release-media/hyperframes/assets/Inter-OFL.txt b/release-media/hyperframes/assets/Inter-OFL.txt new file mode 100644 index 000000000..9b2ca37b3 --- /dev/null +++ b/release-media/hyperframes/assets/Inter-OFL.txt @@ -0,0 +1,92 @@ +Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION AND CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/release-media/hyperframes/assets/inter.woff2 b/release-media/hyperframes/assets/inter.woff2 new file mode 100644 index 000000000..91dc3e852 Binary files /dev/null and b/release-media/hyperframes/assets/inter.woff2 differ diff --git a/release-media/hyperframes/assets/logo.svg b/release-media/hyperframes/assets/logo.svg new file mode 100644 index 000000000..1abd1e898 --- /dev/null +++ b/release-media/hyperframes/assets/logo.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/release-media/import.mjs b/release-media/import.mjs new file mode 100644 index 000000000..9ce789324 --- /dev/null +++ b/release-media/import.mjs @@ -0,0 +1,19 @@ +import { cp, mkdir, rm } from "node:fs/promises"; +import path from "node:path"; +import { root, json, selected, nativeSources } from "./pipeline.mjs"; + +const catalog = await json(path.join(root, "backlog.json")); +for (const [version, entry] of selected(catalog)) { + if (entry.kind === "none") continue; + const source = path.join(root, "../build/release-media/native", version); + const native = await nativeSources(version, entry, source); + const target = path.join(root, "public/native", version); + await rm(target, { recursive: true, force: true }); + for (const { path: file } of [...native.receipts, ...native.assets]) { + const from = path.resolve(root, file); + const to = path.join(target, path.relative(source, from)); + await mkdir(path.dirname(to), { recursive: true }); + await cp(from, to); + } + console.log(`Imported native sources for ${version}: ${entry.feature}`); +} diff --git a/release-media/import.test.mjs b/release-media/import.test.mjs new file mode 100644 index 000000000..a0cf96ca4 --- /dev/null +++ b/release-media/import.test.mjs @@ -0,0 +1,74 @@ +import assert from "node:assert/strict"; +import { spawnSync } from "node:child_process"; +import { createHash } from "node:crypto"; +import { cp, mkdir, mkdtemp, readFile, readdir, rm, writeFile } from "node:fs/promises"; +import { tmpdir } from "node:os"; +import path from "node:path"; +import { test } from "node:test"; +import { fileURLToPath } from "node:url"; + +test("imports only verified receipt files and preserves the last import on a corrupt secondary source", async (t) => { + const root = await mkdtemp(path.join(tmpdir(), "lilo-native-import-")); + t.after(() => rm(root, { recursive: true, force: true })); + const version = "0.15.0"; + const media = path.join(root, "release-media"); + const source = path.join(root, "build/release-media/native", version); + const target = path.join(media, "public/native", version); + await mkdir(media); + await mkdir(path.join(source, "detail"), { recursive: true }); + await mkdir(target, { recursive: true }); + for (const file of ["import.mjs", "pipeline.mjs", "fixtures.mjs"]) + await cp(fileURLToPath(new URL(file, import.meta.url)), path.join(media, file)); + await writeFile( + path.join(media, "backlog.json"), + JSON.stringify({ releases: { [version]: { kind: "screenshot", feature: "settings" } } }), + ); + const expected = new Map(); + for (const [directory, file, bytes] of [ + ["", "primary.png", Buffer.from([1, 2, 3])], + ["detail", "secondary.png", Buffer.from([4, 5, 6])], + ]) { + const receipt = Buffer.from( + JSON.stringify({ + release: version, + feature: "settings", + appVersion: "0.15.0", + appBuild: "1", + productSourceCommit: "synthetic-source-commit", + assets: [ + { file, width: 1, height: 1, sha256: createHash("sha256").update(bytes).digest("hex") }, + ], + }), + ); + for (const [name, data] of [ + [file, bytes], + ["capture.json", receipt], + ]) { + const relative = path.join(directory, name); + await writeFile(path.join(source, relative), data); + expected.set(relative, data); + } + } + for (const file of ["unlisted.png", "failure.json", "detail/unlisted.png"]) + await writeFile(path.join(source, file), "unlisted fixture"); + await writeFile(path.join(target, "stale.png"), "previous unused asset"); + const run = () => + spawnSync(process.execPath, [path.join(media, "import.mjs")], { + encoding: "utf8", + env: { ...process.env, LILO_RELEASE_MEDIA_VERSION: version }, + }); + const imported = run(); + assert.equal(imported.status, 0, imported.stderr); + const files = [...expected.keys(), "detail"].sort(); + assert.deepEqual((await readdir(target, { recursive: true })).sort(), files); + for (const [file, bytes] of expected) + assert.deepEqual(await readFile(path.join(target, file)), bytes); + + await writeFile(path.join(source, "detail/secondary.png"), Buffer.from([9])); + const rejected = run(); + assert.notEqual(rejected.status, 0); + assert.match(rejected.stderr, /Native pixels changed/u); + assert.deepEqual((await readdir(target, { recursive: true })).sort(), files); + for (const [file, bytes] of expected) + assert.deepEqual(await readFile(path.join(target, file)), bytes); +}); diff --git a/release-media/inspect.mjs b/release-media/inspect.mjs new file mode 100644 index 000000000..bfdb70852 --- /dev/null +++ b/release-media/inspect.mjs @@ -0,0 +1,28 @@ +import { execFile } from "node:child_process"; +import { mkdir } from "node:fs/promises"; +import path from "node:path"; +import { root, json, selected } from "./pipeline.mjs"; +import { promisify } from "node:util"; + +const run = promisify(execFile); +const catalog = await json(path.join(root, "backlog.json")); +for (const [version, entry] of selected(catalog)) { + if (entry.kind !== "video") continue; + const folder = path.join(root, "assets", version); + const render = await json(path.join(folder, "render.json")); + const output = path.join(root, "../build/release-media/inspection", version); + await mkdir(output, { recursive: true }); + await run("ffmpeg", [ + "-v", + "error", + "-y", + "-i", + path.join(folder, `${entry.feature}.mp4`), + "-vf", + `fps=${12 / (render.frames / render.fps)},scale=342:192,tile=4x3`, + "-frames:v", + "1", + path.join(output, "compact-frames.png"), + ]); + console.log(`Inspect ${version}: ${output}/compact-frames.png`); +} diff --git a/release-media/package-lock.json b/release-media/package-lock.json new file mode 100644 index 000000000..38af7c527 --- /dev/null +++ b/release-media/package-lock.json @@ -0,0 +1,3083 @@ +{ + "name": "lilo-release-media", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "lilo-release-media", + "dependencies": { + "@hyperframes/producer": "0.8.226", + "gsap": "3.15.0", + "hyperframes": "0.8.226", + "sharp": "0.35.5" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.11", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.11.tgz", + "integrity": "sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@chenglou/pretext": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@chenglou/pretext/-/pretext-0.0.5.tgz", + "integrity": "sha512-A8GZN10REdFGsyuiUgLV8jjPDDFMg5GmgxGWV0I3igxBOnzj+jgz2VMmVD7g+SFyoctfeqHFxbNatKSzVRWtRg==", + "license": "MIT" + }, + "node_modules/@emnapi/runtime": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", + "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@hono/node-server": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.6.tgz", + "integrity": "sha512-p/KH9MnfNcsm3sR6x4lNgm5j+QN4Et8srKredl9DZfXiyZ1UQ3aQ2YVpFLbqktYN5JI+DB+VZFKM2PqE5hLKjQ==", + "license": "MIT", + "engines": { + "node": ">=20" + }, + "peerDependencies": { + "hono": "^4 || ^5.0.0-0" + } + }, + "node_modules/@hyperframes/core": { + "version": "0.8.226", + "resolved": "https://registry.npmjs.org/@hyperframes/core/-/core-0.8.226.tgz", + "integrity": "sha512-2GKBi921jPoAYwZQIJ/xbGYq6MwrDLNmPm7CgkNHj2MpuYAqs4tDq3aRcDeUF/m6WRcG/QF+o/nRgRDMFP3MYg==", + "dependencies": { + "@chenglou/pretext": "^0.0.5", + "@hyperframes/lint": "0.8.226", + "@hyperframes/parsers": "0.8.226", + "@hyperframes/studio-server": "0.8.226", + "acorn": "^8.17.0", + "linkedom": "^0.18.12", + "postcss": "^8.5.8", + "wawoff2": "^2.0.1" + }, + "optionalDependencies": { + "esbuild": "^0.28.2" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/aix-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", + "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/android-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz", + "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/android-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", + "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/android-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz", + "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/darwin-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", + "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/darwin-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", + "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/freebsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", + "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/freebsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", + "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/linux-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", + "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/linux-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", + "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/linux-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", + "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/linux-loong64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", + "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/linux-mips64el": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", + "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==", + "cpu": [ + "mips64el" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/linux-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", + "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/linux-riscv64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", + "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/linux-s390x": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", + "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/linux-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", + "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/netbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", + "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/netbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", + "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/openbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", + "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/openbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", + "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/openharmony-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", + "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/sunos-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", + "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/win32-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", + "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/win32-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", + "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/@esbuild/win32-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", + "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hyperframes/core/node_modules/esbuild": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", + "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.28.2", + "@esbuild/android-arm": "0.28.2", + "@esbuild/android-arm64": "0.28.2", + "@esbuild/android-x64": "0.28.2", + "@esbuild/darwin-arm64": "0.28.2", + "@esbuild/darwin-x64": "0.28.2", + "@esbuild/freebsd-arm64": "0.28.2", + "@esbuild/freebsd-x64": "0.28.2", + "@esbuild/linux-arm": "0.28.2", + "@esbuild/linux-arm64": "0.28.2", + "@esbuild/linux-ia32": "0.28.2", + "@esbuild/linux-loong64": "0.28.2", + "@esbuild/linux-mips64el": "0.28.2", + "@esbuild/linux-ppc64": "0.28.2", + "@esbuild/linux-riscv64": "0.28.2", + "@esbuild/linux-s390x": "0.28.2", + "@esbuild/linux-x64": "0.28.2", + "@esbuild/netbsd-arm64": "0.28.2", + "@esbuild/netbsd-x64": "0.28.2", + "@esbuild/openbsd-arm64": "0.28.2", + "@esbuild/openbsd-x64": "0.28.2", + "@esbuild/openharmony-arm64": "0.28.2", + "@esbuild/sunos-x64": "0.28.2", + "@esbuild/win32-arm64": "0.28.2", + "@esbuild/win32-ia32": "0.28.2", + "@esbuild/win32-x64": "0.28.2" + } + }, + "node_modules/@hyperframes/engine": { + "version": "0.8.226", + "resolved": "https://registry.npmjs.org/@hyperframes/engine/-/engine-0.8.226.tgz", + "integrity": "sha512-d4+R18cbXnjFdf5Qmep/JJXHXP437C0UElJkVkCpSSHUtlogeNYldeciEREIH44heoOE+QzdMfjMEvdiEBO27g==", + "dependencies": { + "@hono/node-server": "^2.0.5", + "@hyperframes/core": "^0.8.226", + "@hyperframes/parsers": "^0.8.226", + "hono": "^4.6.0", + "linkedom": "^0.18.12", + "puppeteer": "~25.11.0", + "puppeteer-core": "^25.11.0", + "undici": "7.25.0" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/@hyperframes/lint": { + "version": "0.8.226", + "resolved": "https://registry.npmjs.org/@hyperframes/lint/-/lint-0.8.226.tgz", + "integrity": "sha512-AWpEtshA1Hyedq93shJnAgXOoW9HTsRVO4q95EZKXWPxDSELjdkrXxHyEDdj6/i9JF1HhTgappVaj/Dtobio5w==", + "dependencies": { + "@hyperframes/parsers": "0.8.226", + "acorn": "^8.17.0", + "acorn-walk": "^8.3.5", + "htmlparser2": "^10.1.0", + "linkedom": "^0.18.12", + "postcss": "^8.5.8", + "postcss-selector-parser": "^7.1.4" + } + }, + "node_modules/@hyperframes/parsers": { + "version": "0.8.226", + "resolved": "https://registry.npmjs.org/@hyperframes/parsers/-/parsers-0.8.226.tgz", + "integrity": "sha512-kCMSsVWY/FpJ8hyUVPThFZb+TLHyC2HAdeVLk+cU4GMdBmteCycdylwfCNczc1YgRxwC7sGigWlnFZ2gxBAVag==", + "dependencies": { + "@babel/parser": "^7.27.0", + "acorn": "^8.17.0", + "acorn-walk": "^8.3.5", + "entities": "^7.0.1", + "linkedom": "^0.18.12", + "magic-string": "^0.30.21", + "recast": "^0.23.11" + } + }, + "node_modules/@hyperframes/parsers/node_modules/@babel/parser": { + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.12.tgz", + "integrity": "sha512-WJ7JBp/Q4+z/ImydtI7jS6NVco5++632ExBemSX+Ysb+G1lCwQ5BVo3SY+jGGOcZXI4ZccbZSUSJLNBW6eEpJg==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.11" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@hyperframes/parsers/node_modules/@babel/types": { + "version": "7.29.11", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz", + "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.11", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@hyperframes/producer": { + "version": "0.8.226", + "resolved": "https://registry.npmjs.org/@hyperframes/producer/-/producer-0.8.226.tgz", + "integrity": "sha512-HSnzbovUMKDLcdZv0BFxhAMRF8pM760X1XW9/gUg4D3V/AQHPnV7dFHua9UeapeN8vBr+H0MTdr5bRx1vJ3ZZQ==", + "dependencies": { + "@hono/node-server": "^2.0.5", + "@hyperframes/core": "0.8.226", + "@hyperframes/engine": "0.8.226", + "@hyperframes/lint": "0.8.226", + "@hyperframes/parsers": "0.8.226", + "@hyperframes/studio-server": "0.8.226", + "hono": "^4.6.0", + "linkedom": "^0.18.12", + "postcss": "^8.4.0", + "puppeteer": "~25.11.0", + "puppeteer-core": "^25.11.0" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/@hyperframes/studio-server": { + "version": "0.8.226", + "resolved": "https://registry.npmjs.org/@hyperframes/studio-server/-/studio-server-0.8.226.tgz", + "integrity": "sha512-XHmWOTIEpqRkI16SkEiue1YhYo3N5LxbcQte3SH+K/uenTC4EUp3p5UNVRifD5ew/EKvrIavFJYUfhh21viUjg==", + "dependencies": { + "@hyperframes/core": "0.8.226", + "@hyperframes/parsers": "0.8.226", + "hono": "^4.0.0", + "linkedom": "^0.18.12", + "postcss": "^8.5.8", + "postcss-selector-parser": "^7.1.2" + }, + "optionalDependencies": { + "sharp": "^0.35.0" + } + }, + "node_modules/@img/colour": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", + "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@img/sharp-darwin-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz", + "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-darwin-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz", + "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-freebsd-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz", + "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==", + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "dependencies": { + "@img/sharp-wasm32": "0.35.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz", + "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz", + "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz", + "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==", + "cpu": [ + "arm" + ], + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz", + "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-ppc64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz", + "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==", + "cpu": [ + "ppc64" + ], + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-riscv64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz", + "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==", + "cpu": [ + "riscv64" + ], + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-s390x": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz", + "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==", + "cpu": [ + "s390x" + ], + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz", + "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz", + "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz", + "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-linux-arm": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz", + "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==", + "cpu": [ + "arm" + ], + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz", + "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-ppc64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz", + "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==", + "cpu": [ + "ppc64" + ], + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-ppc64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-riscv64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz", + "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==", + "cpu": [ + "riscv64" + ], + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-riscv64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-s390x": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz", + "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==", + "cpu": [ + "s390x" + ], + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-s390x": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz", + "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-linuxmusl-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz", + "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-linuxmusl-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz", + "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz", + "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==", + "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.11.3" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-webcontainers-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz", + "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==", + "cpu": [ + "wasm32" + ], + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@img/sharp-wasm32": "0.35.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz", + "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-ia32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz", + "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==", + "cpu": [ + "ia32" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz", + "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "license": "MIT" + }, + "node_modules/@puppeteer/browsers": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-3.2.6.tgz", + "integrity": "sha512-MJP29gVoHznmqmwhH1tlZqzfeQ3aylTpSSa6WKZXtkwYUH02i9imBmWGTyZrbnAou5paX78SE4jMAUqnEPf8ug==", + "license": "Apache-2.0", + "dependencies": { + "modern-tar": "^0.8.6", + "yargs": "^18.0.0" + }, + "bin": { + "browsers": "lib/main-cli.js" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "proxy-agent": ">=8.0.1", + "yauzl": "^2.10.0 || ^3.4.0" + }, + "peerDependenciesMeta": { + "proxy-agent": { + "optional": true + }, + "yauzl": { + "optional": true + } + } + }, + "node_modules/@swc/helpers": { + "version": "0.5.23", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz", + "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.8.0" + } + }, + "node_modules/acorn": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz", + "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.5", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.5.tgz", + "integrity": "sha512-HEHNfbars9v4pgpW6SO1KSPkfoS0xVOM/9UzkJltjlsHZmJasxg8aXkuZa7SMf8vKGIBhpUsPluQSqhJFCqebw==", + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/adm-zip": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.6.1.tgz", + "integrity": "sha512-Xwrja8nx9e5o2N1my4DsKCeKpdrnACyr1wtbPxBDgGzKzKyE9kRtBFA8mWldI+RVlD7CBZNWY/wQ2+ydwOR6kQ==", + "license": "MIT", + "engines": { + "node": ">=14.0" + } + }, + "node_modules/ansi-regex": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.5.0.tgz", + "integrity": "sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" + }, + "node_modules/ast-types": { + "version": "0.16.1", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.16.1.tgz", + "integrity": "sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/boolbase": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-2.0.0.tgz", + "integrity": "sha512-DkVaaQHymRhpYEYo9x1oo7Q7B0Y6KJUsjm3c9eTyFDby4MHLBTwZ6ZDWBel5zrYxj1WsZgC5oLpiz+93MluXeA==", + "license": "ISC", + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/brotli": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/brotli/-/brotli-1.3.3.tgz", + "integrity": "sha512-oTKjJdShmDuGW94SyyaoQvAjf30dZaHnjJ8uAF+u2/vGJkJbJPJAT1gDiOJP5v1Zb6f9KEyW/1HpuaWIXtGHPg==", + "license": "MIT", + "dependencies": { + "base64-js": "^1.1.2" + } + }, + "node_modules/bundle-name": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.1.tgz", + "integrity": "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==", + "license": "MIT", + "dependencies": { + "run-applescript": "^7.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/chromium-bidi": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-17.0.2.tgz", + "integrity": "sha512-5v9GQFhTktFvotn/OFNJBmKLKRAb6n9r0bVCwf7sHgWc3/JryK0bj1nn93L3pHFrfgcsu6Be6EWsDi+1XHTGDg==", + "license": "Apache-2.0", + "dependencies": { + "mitt": "^3.0.1", + "zod": "^3.24.1" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0" + }, + "peerDependencies": { + "devtools-protocol": "*" + } + }, + "node_modules/citty": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/citty/-/citty-0.2.2.tgz", + "integrity": "sha512-+6vJA3L98yv+IdfKGZHBNiGW5KHn22e/JwID0Strsz8h4S/csAu/OuICwxrg44k5MRiZHWIo8XXuJgQTriRP4w==", + "license": "MIT" + }, + "node_modules/cliui": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz", + "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==", + "license": "ISC", + "dependencies": { + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0", + "wrap-ansi": "^9.0.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/cliui/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/compare-versions": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.1.tgz", + "integrity": "sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==", + "license": "MIT" + }, + "node_modules/css-select": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-7.0.0.tgz", + "integrity": "sha512-snmjEVXy+1LnwXdxhYvTMj1d9tOh4HxkA1YmoayVBeeyR2C14Pum7fcxJIm4SswYspVy866eYNwlH6xC3/VH5g==", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^2.0.0", + "css-what": "^8.0.0", + "domhandler": "^6.0.1", + "domutils": "^4.0.2", + "nth-check": "^3.0.1" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-select/node_modules/dom-serializer": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-3.1.1.tgz", + "integrity": "sha512-4MEa38/QexBob6gFNwu+EGdWvhJ1OKuNwdYY3Y3NyeWDQfnGeDYQUDfIRzWu5B5gsv03so2Uxd28YC6zrsx3Lw==", + "license": "MIT", + "dependencies": { + "domelementtype": "^3.0.0", + "domhandler": "^6.0.0", + "entities": "^8.0.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/css-select/node_modules/domelementtype": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-3.0.0.tgz", + "integrity": "sha512-umCQid3jKbDmVjx8jGaW7uUykm4DEUeyV21hPxNMo2nV955DhUThwqyOIDtreepP31hl84X7G5U9ZfsWvIB3Pg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "BSD-2-Clause", + "engines": { + "node": ">=20.19.0" + } + }, + "node_modules/css-select/node_modules/domhandler": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-6.0.1.tgz", + "integrity": "sha512-gYzvtM72ZtxQO0T048kd6HWSbbGCNOUwcnfQ01cqIJ4X2IYKFFHZ5mKvrQETcFXxsRObZulDaKmy//R7TPtsBg==", + "license": "BSD-2-Clause", + "dependencies": { + "domelementtype": "^3.0.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/css-select/node_modules/domutils": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-4.0.2.tgz", + "integrity": "sha512-qI4JLRKnSzqFqr7hAlS5xQDusBCjKSEG4t4+7aNrIQMHBcsC2TGEhuyABJdYkgSewL57PNLYEiibY2iPKhKpaA==", + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "^3.0.0", + "domelementtype": "^3.0.0", + "domhandler": "^6.0.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/css-select/node_modules/entities": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz", + "integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/css-tree": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", + "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", + "license": "MIT", + "dependencies": { + "mdn-data": "2.27.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/css-what": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-8.0.0.tgz", + "integrity": "sha512-DH0Bqq3DNp5tdOReuNyAA+Ev4Y2GS5FMbZpeTLP6C4CDi0h5nL0BmUPChXw3o/qbHLDWHl49sbNqQVY7bMSDdw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssomnom": { + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/cssomnom/-/cssomnom-0.1.11.tgz", + "integrity": "sha512-P4RkO1Sq2Ual77xypEmAc4MkM5k2Ha4UwtBPCOpJmXculGCYPgzsU/xnOCy084esZaPePgGkkJg4Il/HE7GS5A==", + "license": "Apache-2.0", + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/default-browser": { + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.1.tgz", + "integrity": "sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==", + "license": "MIT", + "dependencies": { + "bundle-name": "^4.1.0", + "default-browser-id": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", + "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/devtools-protocol": { + "version": "0.0.1680125", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1680125.tgz", + "integrity": "sha512-rVARKAvOFJCFkvgX01VLvYqKIvt+cRCqvUxIhB2oAqVGPalxk3w3sb5TUGDagpow/EFblBpm/Zl/29QA2dd+jA==", + "license": "BSD-3-Clause" + }, + "node_modules/dfa": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/dfa/-/dfa-1.2.0.tgz", + "integrity": "sha512-ED3jP8saaweFTjeGX8HQPjeC1YYyZs98jGNZx6IiBvxW7JG5v492kamAQB3m2wop07CvU/RQmzcKr6bgcC5D/Q==", + "license": "MIT" + }, + "node_modules/dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "license": "MIT", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/dom-serializer/node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "BSD-2-Clause" + }, + "node_modules/domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "license": "BSD-2-Clause", + "dependencies": { + "domelementtype": "^2.3.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz", + "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==", + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", + "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", + "license": "MIT" + }, + "node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT" + }, + "node_modules/fontkit": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/fontkit/-/fontkit-2.0.4.tgz", + "integrity": "sha512-syetQadaUEDNdxdugga9CpEYVaQIxOwk7GlwZWWZ19//qW4zE5bknOKeMBDYAASwnpaSHKJITRLMF9m1fp3s6g==", + "license": "MIT", + "dependencies": { + "@swc/helpers": "^0.5.12", + "brotli": "^1.3.2", + "clone": "^2.1.2", + "dfa": "^1.2.0", + "fast-deep-equal": "^3.1.3", + "restructure": "^3.0.0", + "tiny-inflate": "^1.0.3", + "unicode-properties": "^1.4.0", + "unicode-trie": "^2.0.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-east-asian-width": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz", + "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/giget": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/giget/-/giget-3.3.1.tgz", + "integrity": "sha512-r+mvuDjrjMpsdw46Kmeydb8bdHm7wOKw8wNBtTndkjbPjgAp5oUJUxRE76wZFknxIPokfWvep2qSXK37aXE6zg==", + "license": "MIT", + "bin": { + "giget": "dist/cli.mjs" + } + }, + "node_modules/gsap": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/gsap/-/gsap-3.15.0.tgz", + "integrity": "sha512-dMW4CWBTUK1AEEDeZc1g4xpPGIrSf9fJF960qbTZmN/QwZIWY5wgliS6JWl9/25fpTGJrMRtSjGtOmPnfjZB+A==", + "license": "Standard 'no charge' license: https://gsap.com/standard-license." + }, + "node_modules/hono": { + "version": "4.13.16", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.16.tgz", + "integrity": "sha512-AOLOEhvrV+iH92xXCnFr/5+3KjPKcI3xP63XJtX5spAnkznPdHijlIsUTpi7/9EhWqrTCekw5c5zh1K+YsVw7A==", + "license": "MIT", + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/html-escaper": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz", + "integrity": "sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==", + "license": "MIT" + }, + "node_modules/htmlparser2": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.1.0.tgz", + "integrity": "sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==", + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "MIT", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.2.2", + "entities": "^7.0.1" + } + }, + "node_modules/hyperframes": { + "version": "0.8.226", + "resolved": "https://registry.npmjs.org/hyperframes/-/hyperframes-0.8.226.tgz", + "integrity": "sha512-eM/fMIjopbC9+//JIvfEmIeBdKI1YZ7Z7DwGTVu2gTUvANYANTJLNkjBEpQGcgVpo6fbDHZjvlLp6pE1grJBRw==", + "license": "Apache-2.0", + "dependencies": { + "@hono/node-server": "^2.0.5", + "@puppeteer/browsers": "^3.2.2", + "acorn": "^8.17.0", + "adm-zip": "^0.6.0", + "citty": "^0.2.1", + "compare-versions": "^6.1.1", + "css-tree": "^3.2.1", + "debug": "^4.4.0", + "esbuild": "^0.28.2", + "fontkit": "^2.0.4", + "giget": "^3.2.0", + "hono": "^4.0.0", + "ignore": "^5.3.2", + "open": "^10.0.0", + "postcss": "^8.5.8", + "puppeteer-core": "^25.10.0", + "undici": "7.25.0", + "yauzl": "^3.4.0" + }, + "bin": { + "hyperframes": "bin/hyperframes.mjs", + "hyperframes-localize-fonts": "bin/hyperframes-localize-fonts.mjs" + }, + "engines": { + "node": ">=22" + }, + "optionalDependencies": { + "sharp": "^0.35.0" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/aix-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", + "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/android-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz", + "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/android-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", + "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/android-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz", + "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/darwin-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", + "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/darwin-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", + "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/freebsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", + "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/freebsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", + "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/linux-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", + "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/linux-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", + "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/linux-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", + "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/linux-loong64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", + "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/linux-mips64el": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", + "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==", + "cpu": [ + "mips64el" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/linux-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", + "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/linux-riscv64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", + "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/linux-s390x": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", + "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/linux-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", + "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/netbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", + "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/netbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", + "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/openbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", + "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/openbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", + "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/openharmony-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", + "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/sunos-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", + "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/win32-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", + "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/win32-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", + "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/@esbuild/win32-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", + "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/hyperframes/node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/hyperframes/node_modules/esbuild": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", + "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.28.2", + "@esbuild/android-arm": "0.28.2", + "@esbuild/android-arm64": "0.28.2", + "@esbuild/android-x64": "0.28.2", + "@esbuild/darwin-arm64": "0.28.2", + "@esbuild/darwin-x64": "0.28.2", + "@esbuild/freebsd-arm64": "0.28.2", + "@esbuild/freebsd-x64": "0.28.2", + "@esbuild/linux-arm": "0.28.2", + "@esbuild/linux-arm64": "0.28.2", + "@esbuild/linux-ia32": "0.28.2", + "@esbuild/linux-loong64": "0.28.2", + "@esbuild/linux-mips64el": "0.28.2", + "@esbuild/linux-ppc64": "0.28.2", + "@esbuild/linux-riscv64": "0.28.2", + "@esbuild/linux-s390x": "0.28.2", + "@esbuild/linux-x64": "0.28.2", + "@esbuild/netbsd-arm64": "0.28.2", + "@esbuild/netbsd-x64": "0.28.2", + "@esbuild/openbsd-arm64": "0.28.2", + "@esbuild/openbsd-x64": "0.28.2", + "@esbuild/openharmony-arm64": "0.28.2", + "@esbuild/sunos-x64": "0.28.2", + "@esbuild/win32-arm64": "0.28.2", + "@esbuild/win32-ia32": "0.28.2", + "@esbuild/win32-x64": "0.28.2" + } + }, + "node_modules/hyperframes/node_modules/open": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/open/-/open-10.2.0.tgz", + "integrity": "sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==", + "license": "MIT", + "dependencies": { + "default-browser": "^5.2.1", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "wsl-utils": "^0.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "license": "MIT", + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-inside-container/node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lilconfig": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.4.tgz", + "integrity": "sha512-zJZyBmQhArDRefuWTypZxwDpFDIYmrj8ypSBvwGD5P13Y95s6DjzKgu4DVdGbeQa5PDEsAOCAPNk4X+QOR006w==", + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/linkedom": { + "version": "0.18.15", + "resolved": "https://registry.npmjs.org/linkedom/-/linkedom-0.18.15.tgz", + "integrity": "sha512-o0w7eD/SvoCao+pUi6dzocCLuMR11g4Tv/et0W2OUzwWmUcewntSzyl+Ua/K+0yKym0Y/Mav3nFAaI5Av5jvZg==", + "license": "ISC", + "dependencies": { + "css-select": "^7.0.0", + "cssomnom": "^0.1.11", + "html-escaper": "^3.0.3", + "htmlparser2": "^10.1.0", + "uhyphen": "^0.2.0" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "canvas": ">= 2" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/mdn-data": { + "version": "2.27.1", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", + "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", + "license": "CC0-1.0" + }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "license": "MIT" + }, + "node_modules/modern-tar": { + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/modern-tar/-/modern-tar-0.8.6.tgz", + "integrity": "sha512-LYSks0tNVqbtez/9OB0YFP6qLRSqkdAxJWOQpVaR67lNTbj2zNLyYpowkRMia5lXLCZKzxwoxkxH2MbbBR2aEg==", + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/nth-check": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-3.0.1.tgz", + "integrity": "sha512-GX0gsdbGVCgnRgbeGaubfjpBXyYRWOOCVeYh08bSQvDZqxz5ndXs1OTfAt/h36G1xvI94YIspsI0sVFqAV9+RQ==", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^2.0.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/pako": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", + "integrity": "sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==", + "license": "MIT" + }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/postcss": { + "version": "8.5.32", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz", + "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.7.tgz", + "integrity": "sha512-wWBro/7hJ40ye6TPiXkUQoXKCw23xSsjriUvqd7Uls9Sso3oLiON1flc18cCdnjgCRXw4fBVqUJJeOdDTh3P3g==", + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/puppeteer": { + "version": "25.11.0", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-25.11.0.tgz", + "integrity": "sha512-n+psxZFH/qlJ3gwTZMxTLUZoE98FAOEjT/BSxHXvPmNCGAfN/kq0UnIZ8m9RB4rAVvJr7zRHUnKKg98GLMUyyQ==", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@puppeteer/browsers": "3.2.2", + "chromium-bidi": "17.0.2", + "devtools-protocol": "0.0.1680125", + "lilconfig": "^3.1.3", + "puppeteer-core": "25.11.0", + "typed-query-selector": "^2.12.2" + }, + "bin": { + "puppeteer": "lib/puppeteer/node/cli.js" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/puppeteer-core": { + "version": "25.16.0", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.16.0.tgz", + "integrity": "sha512-VA5Pf54N8shfopNkZZXCdiiwfnnY8ZJYAMqFQRhlH5mGUhfwf53Ar770GPtdpTDLUqvQeYpIBtC9/G2Jij2IJw==", + "license": "Apache-2.0", + "dependencies": { + "@puppeteer/browsers": "3.2.6", + "chromium-bidi": "157.0.8090-0", + "devtools-protocol": "0.0.1704951", + "typed-query-selector": "^2.12.3", + "webdriver-bidi-protocol": "1.0.1", + "ws": "^8.22.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/puppeteer-core/node_modules/chromium-bidi": { + "version": "157.0.8090-0", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-157.0.8090-0.tgz", + "integrity": "sha512-KJw7IQgqXwxpJgJlEIPg5mr2ZoqA+jkTRtc5EABI7sUJ3bu3cpI7NuEBoj4Gn1AsF78CaT9So5WQWspK3/wYag==", + "license": "Apache-2.0", + "dependencies": { + "mitt": "^3.0.1", + "zod": "^4.6.5" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0" + }, + "peerDependencies": { + "devtools-protocol": "*" + } + }, + "node_modules/puppeteer-core/node_modules/devtools-protocol": { + "version": "0.0.1704951", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1704951.tgz", + "integrity": "sha512-GQhQOs9u/Mvm1zMtJIH872JS4AskuZdUSsPNPk4ChahtWAUqgz6atEtIsMt+nO7MqF1Ic4HxII/k8Cu36JivNg==", + "license": "BSD-3-Clause" + }, + "node_modules/puppeteer-core/node_modules/ws": { + "version": "8.22.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.1.tgz", + "integrity": "sha512-oyL6OPYme/CmiFvNuGzeoxCJ4nOrZE2O1FwM9MWM1AsGri6nLXB2pg+lNA8aLeXMSav0J6eIVS1j6vUPzUtK9g==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/puppeteer/node_modules/@puppeteer/browsers": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-3.2.2.tgz", + "integrity": "sha512-q2BU4YfO9h/Wt7IcWPcggpOOqLk2Tbs1hDwolvKZrweRjy751OJBKMN9zO5bfD0pzU7X/tvKw/exQds4pM/LOg==", + "license": "Apache-2.0", + "dependencies": { + "modern-tar": "^0.8.4", + "yargs": "^18.0.0" + }, + "bin": { + "browsers": "lib/main-cli.js" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "proxy-agent": ">=8.0.1", + "yauzl": "^2.10.0 || ^3.4.0" + }, + "peerDependenciesMeta": { + "proxy-agent": { + "optional": true + }, + "yauzl": { + "optional": true + } + } + }, + "node_modules/puppeteer/node_modules/puppeteer-core": { + "version": "25.11.0", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.11.0.tgz", + "integrity": "sha512-Ujym7JbxoAqanaxGcHgmTomfhC01HfDCSuGZ8Hs9boHrDjzbNVMnFRJo2KtbDT9LCRgeJoFnkn9JQZ41eEUrLw==", + "license": "Apache-2.0", + "dependencies": { + "@puppeteer/browsers": "3.2.2", + "chromium-bidi": "17.0.2", + "devtools-protocol": "0.0.1680125", + "typed-query-selector": "^2.12.2", + "webdriver-bidi-protocol": "0.4.3", + "ws": "^8.21.3" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/puppeteer/node_modules/webdriver-bidi-protocol": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.4.3.tgz", + "integrity": "sha512-uuN0goWfxP22B7J/uAgBpOYNPttC+XVseYE+rSY5+rQ+YBeVz/VORw8WbmLVcqW78zNg5A4qnjNXYUWR3il2ig==", + "license": "Apache-2.0" + }, + "node_modules/puppeteer/node_modules/ws": { + "version": "8.22.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.1.tgz", + "integrity": "sha512-oyL6OPYme/CmiFvNuGzeoxCJ4nOrZE2O1FwM9MWM1AsGri6nLXB2pg+lNA8aLeXMSav0J6eIVS1j6vUPzUtK9g==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/recast": { + "version": "0.23.21", + "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.21.tgz", + "integrity": "sha512-mFAyJq9vUbSTARLZUvAEf1z3YxlvAwswbmxMx2mPA/MSm4KmpwvwvhsH/NIrZhyOuwD60Lzyw2qh83uCbgTPYw==", + "license": "MIT", + "dependencies": { + "ast-types": "^0.16.1", + "esprima": "~4.0.0", + "source-map": "~0.6.1", + "tiny-invariant": "^1.3.3", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/recast/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/restructure": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/restructure/-/restructure-3.0.2.tgz", + "integrity": "sha512-gSfoiOEA0VPE6Tukkrr7I0RBdE0s7H1eFCDBk05l1KIQT1UIKNc5JZy6jdyW6eYH3aR3g5b3PuL77rq0hvwtAw==", + "license": "MIT" + }, + "node_modules/run-applescript": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", + "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/sharp": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz", + "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==", + "license": "Apache-2.0", + "dependencies": { + "@img/colour": "^1.1.0", + "detect-libc": "^2.1.2", + "semver": "^7.8.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-darwin-arm64": "0.35.5", + "@img/sharp-darwin-x64": "0.35.5", + "@img/sharp-freebsd-wasm32": "0.35.5", + "@img/sharp-libvips-darwin-arm64": "1.3.4", + "@img/sharp-libvips-darwin-x64": "1.3.4", + "@img/sharp-libvips-linux-arm": "1.3.4", + "@img/sharp-libvips-linux-arm64": "1.3.4", + "@img/sharp-libvips-linux-ppc64": "1.3.4", + "@img/sharp-libvips-linux-riscv64": "1.3.4", + "@img/sharp-libvips-linux-s390x": "1.3.4", + "@img/sharp-libvips-linux-x64": "1.3.4", + "@img/sharp-libvips-linuxmusl-arm64": "1.3.4", + "@img/sharp-libvips-linuxmusl-x64": "1.3.4", + "@img/sharp-linux-arm": "0.35.5", + "@img/sharp-linux-arm64": "0.35.5", + "@img/sharp-linux-ppc64": "0.35.5", + "@img/sharp-linux-riscv64": "0.35.5", + "@img/sharp-linux-s390x": "0.35.5", + "@img/sharp-linux-x64": "0.35.5", + "@img/sharp-linuxmusl-arm64": "0.35.5", + "@img/sharp-linuxmusl-x64": "0.35.5", + "@img/sharp-webcontainers-wasm32": "0.35.5", + "@img/sharp-win32-arm64": "0.35.5", + "@img/sharp-win32-ia32": "0.35.5", + "@img/sharp-win32-x64": "0.35.5" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/sharp/node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.3.0.tgz", + "integrity": "sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==", + "license": "MIT", + "dependencies": { + "get-east-asian-width": "^1.5.0", + "strip-ansi": "^7.1.2" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/tiny-inflate": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz", + "integrity": "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==", + "license": "MIT" + }, + "node_modules/tiny-invariant": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", + "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==", + "license": "MIT" + }, + "node_modules/tslib": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", + "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "license": "0BSD" + }, + "node_modules/typed-query-selector": { + "version": "2.12.3", + "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.3.tgz", + "integrity": "sha512-/dtuMZyutHLlrxWhhC1uib00ELUr2dZ8C9B8YzZYsJmeE3V56OxRblrSM2UaF142pcMtak7ehZ6+poWGeehNIg==", + "license": "MIT" + }, + "node_modules/uhyphen": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/uhyphen/-/uhyphen-0.2.0.tgz", + "integrity": "sha512-qz3o9CHXmJJPGBdqzab7qAYuW8kQGKNEuoHFYrBwV6hWIMcpAmxDLXojcHfFr9US1Pe6zUswEIJIbLI610fuqA==", + "license": "ISC" + }, + "node_modules/undici": { + "version": "7.30.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.1.tgz", + "integrity": "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==", + "license": "MIT", + "engines": { + "node": ">=20.18.1" + } + }, + "node_modules/unicode-properties": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/unicode-properties/-/unicode-properties-1.4.1.tgz", + "integrity": "sha512-CLjCCLQ6UuMxWnbIylkisbRj31qxHPAurvena/0iwSVbQ2G1VY5/HjV0IRabOEbDHlzZlRdCrD4NhB0JtU40Pg==", + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.0", + "unicode-trie": "^2.0.0" + } + }, + "node_modules/unicode-trie": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-trie/-/unicode-trie-2.0.0.tgz", + "integrity": "sha512-x7bc76x0bm4prf1VLg79uhAzKw8DVboClSN5VxJuQ+LKDOVEW9CdH+VY7SP+vX7xCYQqzzgQpFqz15zeLvAtZQ==", + "license": "MIT", + "dependencies": { + "pako": "^0.2.5", + "tiny-inflate": "^1.0.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/wawoff2": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wawoff2/-/wawoff2-2.0.1.tgz", + "integrity": "sha512-r0CEmvpH63r4T15ebFqeOjGqU4+EgTx4I510NtK35EMciSdcTxCw3Byy3JnBonz7iyIFZ0AbVo0bbFpEVuhCYA==", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "woff2_compress.js": "bin/woff2_compress.js", + "woff2_decompress.js": "bin/woff2_decompress.js" + } + }, + "node_modules/webdriver-bidi-protocol": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-1.0.1.tgz", + "integrity": "sha512-WXWs/aXF2a6Al1Z2/V/7Gp2oPZOAAmHjJOTmv4KCXRJ122IMj3tSSMc6a4q3K4QOmhQbse/Ahr+oTVJOU2dUiw==", + "license": "Apache-2.0" + }, + "node_modules/wrap-ansi": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", + "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/wsl-utils": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-0.1.0.tgz", + "integrity": "sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==", + "license": "MIT", + "dependencies": { + "is-wsl": "^3.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/wsl-utils/node_modules/is-wsl": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", + "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==", + "license": "MIT", + "dependencies": { + "is-inside-container": "^1.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.2.0.tgz", + "integrity": "sha512-9OpKOLeaoNFecEp7P6iYbzze/5CqWoH7N3SMs/6y1XF4nMvFMspEGZzJ6uFi9MmQwXhyzqYoSEKO3tvA3Z/o2w==", + "license": "MIT", + "dependencies": { + "cliui": "^9.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "string-width": "^8.2.1", + "y18n": "^5.0.5", + "yargs-parser": "^22.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, + "node_modules/yargs-parser": { + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", + "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", + "license": "ISC", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, + "node_modules/yauzl": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-3.4.0.tgz", + "integrity": "sha512-jIH9yLR9wqr0wOS0TpBvo/g/2UgZH5qePVbjgRliiF0BYvOZyaBknKsF+x9Iht0O6sqgnB93rCICdOZFecJuDw==", + "license": "MIT", + "dependencies": { + "pend": "~1.2.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/zod": { + "version": "4.6.7", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + } + } +} diff --git a/release-media/package.json b/release-media/package.json new file mode 100644 index 000000000..b2f677985 --- /dev/null +++ b/release-media/package.json @@ -0,0 +1,15 @@ +{ + "name": "lilo-release-media", + "private": true, + "type": "module", + "dependencies": { + "@hyperframes/producer": "0.8.226", + "gsap": "3.15.0", + "hyperframes": "0.8.226", + "sharp": "0.35.5" + }, + "overrides": { + "undici": "7.30.1", + "zod": "4.6.7" + } +} diff --git a/release-media/pipeline.mjs b/release-media/pipeline.mjs new file mode 100644 index 000000000..a3aebe8e9 --- /dev/null +++ b/release-media/pipeline.mjs @@ -0,0 +1,132 @@ +import { createHash } from "node:crypto"; +import { readFile, readdir } from "node:fs/promises"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { fixtures } from "./fixtures.mjs"; + +export const root = path.dirname(fileURLToPath(import.meta.url)); +export const sha = (data) => createHash("sha256").update(data).digest("hex"); +export const json = async (file) => JSON.parse(await readFile(file, "utf8")); +export const sharedTabShareScenes = ["find", "switch", "end"]; +export function releaseSections(markdown) { + return new Map( + [...markdown.matchAll(/^## \[([^\]]+)\][^\n]*\n([\s\S]*?)(?=^## \[|$(?![\s\S]))/gm)].map( + (match) => [match[1], match[0]], + ), + ); +} +export async function filesBelow(directory) { + const result = []; + for (const entry of await readdir(directory, { withFileTypes: true })) { + const file = path.join(directory, entry.name); + if (entry.isDirectory()) result.push(...(await filesBelow(file))); + else result.push(file); + } + return result.sort(); +} +export function resolveRecipe(entry) { + const fixture = fixtures[entry.feature]; + if (!fixture || (entry.variant && (entry.variant !== "share" || entry.feature !== "tab-share"))) + throw Error(`No genuine capture capability for ${entry.feature}`); + const directory = + fixture === "0.8.0" && entry.variant !== "share" ? fixture : `archive/${fixture}`; + return { + fixture, + directory: entry.kind === "video" ? `hyperframes/${directory}` : null, + variant: entry.variant ?? null, + }; +} +export async function recipeHashes(entry, recipe) { + const files = [ + "render.mjs", + "pipeline.mjs", + "png-cutouts.mjs", + "package-lock.json", + "hyperframes/assets/inter.woff2", + ].map((file) => path.join(root, file)); + if (entry.kind === "video") { + files.push( + ...[ + "public/audio/music.ogg", + "public/audio/music.license.json", + "public/audio/music.LICENSE.txt", + "public/audio/mouse-click.wav", + "public/audio/switch.wav", + "hyperframes/assets/logo.svg", + ].map((file) => path.join(root, file)), + ...(await filesBelow(path.join(root, recipe.directory))), + ); + if (recipe.fixture === "0.8.0" && recipe.variant === "share") + files.push( + ...sharedTabShareScenes.map((scene) => + path.join(root, "hyperframes/0.8.0/compositions", `${scene}.html`), + ), + ); + if (recipe.fixture !== "0.8.0") + files.push( + path.join(root, "hyperframes/archive/ending.html"), + path.join(root, "hyperframes/archive/shared.css"), + path.join(root, "hyperframes/archive/shared.js"), + ); + } + return Object.fromEntries( + await Promise.all( + files.map(async (file) => [path.relative(root, file), sha(await readFile(file))]), + ), + ); +} +export async function nativeSources( + version, + entry, + folder = path.join(root, "public/native", version), +) { + const receipts = []; + const assets = []; + for (const file of (await filesBelow(folder)).filter( + (file) => path.basename(file) === "capture.json", + )) { + const bytes = await readFile(file), + receipt = JSON.parse(bytes); + if ( + !receipt.appVersion || + !receipt.appBuild || + !receipt.productSourceCommit || + !receipt.assets?.length + ) + throw Error(`Incomplete native receipt: ${file}`); + if ( + file === path.join(folder, "capture.json") && + (receipt.release !== version || receipt.feature !== entry.feature) + ) + throw Error(`Incorrect native capture for ${version}`); + for (const asset of receipt.assets) { + if (!/^[a-z0-9-]+\.png$/.test(asset.file) || !(asset.width > 0) || !(asset.height > 0)) + throw Error(`Invalid native asset: ${version}/${asset.file}`); + const filename = path.join(path.dirname(file), asset.file); + if (sha(await readFile(filename)) !== asset.sha256) + throw Error(`Native pixels changed: ${filename}`); + assets.push({ ...asset, path: path.relative(root, filename) }); + } + receipts.push({ + path: path.relative(root, file), + sha256: sha(bytes), + appVersion: receipt.appVersion, + appBuild: receipt.appBuild, + productSourceCommit: receipt.productSourceCommit, + }); + } + if ( + !receipts.some( + (receipt) => receipt.path === path.relative(root, path.join(folder, "capture.json")), + ) + ) + throw Error(`Missing genuine native capture: ${version}`); + return { receipts, assets }; +} +export const same = (a, b) => JSON.stringify(a) === JSON.stringify(b); +export function selected(catalog) { + const version = process.env.LILO_RELEASE_MEDIA_VERSION; + if (version && !catalog.releases[version]) + throw Error(`Unknown release media version: ${version}`); + return Object.entries(catalog.releases).filter(([key]) => !version || key === version); +} diff --git a/release-media/png-cutouts.mjs b/release-media/png-cutouts.mjs new file mode 100644 index 000000000..c58284a45 --- /dev/null +++ b/release-media/png-cutouts.mjs @@ -0,0 +1,103 @@ +import sharp from "sharp"; +import { createHash } from "node:crypto"; +import { rename, rm, writeFile } from "node:fs/promises"; +import path from "node:path"; + +const sha = (bytes) => createHash("sha256").update(bytes).digest("hex"); + +function channelHashes(data) { + const pixels = data.length / 4; + const rgb = Buffer.allocUnsafe(pixels * 3); + const alpha = Buffer.allocUnsafe(pixels); + for (let pixel = 0; pixel < pixels; pixel++) { + const offset = pixel * 4; + rgb[pixel * 3] = data[offset]; + rgb[pixel * 3 + 1] = data[offset + 1]; + rgb[pixel * 3 + 2] = data[offset + 2]; + alpha[pixel] = data[offset + 3]; + } + return { rgb: sha(rgb), alpha: sha(alpha) }; +} + +export async function isolateNativePng(file, { rect, radius }) { + if ( + !Array.isArray(rect) || + rect.length !== 4 || + !rect.every(Number.isFinite) || + rect[2] <= 0 || + rect[3] <= 0 || + !Number.isFinite(radius) || + radius < 0 || + radius > Math.min(rect[2], rect[3]) / 2 + ) + throw Error("Expected finite native rectangle bounds and a valid corner radius."); + const metadata = await sharp(file).metadata(); + if (metadata.format !== "png") throw Error("Native cutouts require a PNG source."); + const { data, info } = await sharp(file) + .ensureAlpha() + .raw({ depth: "uchar" }) + .toBuffer({ resolveWithObject: true }); + if (info.channels !== 4 || data.length !== info.width * info.height * 4) + throw Error("Expected 8-bit RGBA native pixels."); + const before = channelHashes(data); + const [left, top, width, height] = rect; + const centerX = left + width / 2, + centerY = top + height / 2; + const straightX = width / 2 - radius, + straightY = height / 2 - radius; + + // Native bounds may extend past a crop; no synthetic corner is added at the crop edge. + for (let y = 0; y < info.height; y++) { + for (let x = 0; x < info.width; x++) { + const qx = Math.abs(x + 0.5 - centerX) - straightX; + const qy = Math.abs(y + 0.5 - centerY) - straightY; + const distance = + Math.hypot(Math.max(qx, 0), Math.max(qy, 0)) + Math.min(Math.max(qx, qy), 0) - radius; + const coverage = Math.max(0, Math.min(1, 0.5 - distance)); + const offset = (y * info.width + x) * 4 + 3; + data[offset] = Math.min(data[offset], Math.round(coverage * 255)); + } + } + + const encoded = await sharp(data, { + raw: { width: info.width, height: info.height, channels: 4 }, + }) + .png({ palette: false }) + .toBuffer(); + const decoded = await sharp(encoded) + .ensureAlpha() + .raw({ depth: "uchar" }) + .toBuffer({ resolveWithObject: true }); + if ( + decoded.info.width !== info.width || + decoded.info.height !== info.height || + decoded.info.channels !== 4 + ) + throw Error("PNG encoding changed native capture dimensions."); + const after = channelHashes(decoded.data); + if (before.rgb !== after.rgb) throw Error("Alpha isolation changed native RGB pixels."); + let transparentPixels = 0, + opaquePixels = 0; + for (let offset = 3; offset < decoded.data.length; offset += 4) { + const alpha = decoded.data[offset]; + if (alpha === 0) transparentPixels++; + else if (alpha === 255) opaquePixels++; + } + if (!transparentPixels || !opaquePixels) + throw Error("Native cutout must retain opaque UI and clear its exterior."); + + const temporary = `${file}.cutout.tmp`; + try { + await writeFile(temporary, encoded); + await rename(temporary, file); + } finally { + await rm(temporary, { force: true }); + } + return { + file: path.basename(file), + rgbSha256: after.rgb, + alphaSha256: after.alpha, + transparentPixels, + opaquePixels, + }; +} diff --git a/release-media/public/audio/README.md b/release-media/public/audio/README.md new file mode 100644 index 000000000..1eaef8450 --- /dev/null +++ b/release-media/public/audio/README.md @@ -0,0 +1,6 @@ +# Editorial sound effects + +These are editorial accents, not recorded or claimed Lilo product sounds. + +- `switch.wav`: Kenney, UI Audio — Switch 35, CC0. Source: . License evidence: . +- `mouse-click.wav`: Pixeliota, Mouse Click Sound, CC0. Source: . License evidence: . diff --git a/release-media/public/audio/mouse-click.wav b/release-media/public/audio/mouse-click.wav new file mode 100644 index 000000000..b500ed0a2 Binary files /dev/null and b/release-media/public/audio/mouse-click.wav differ diff --git a/release-media/public/audio/music.LICENSE.txt b/release-media/public/audio/music.LICENSE.txt new file mode 100644 index 000000000..9fd68a7b9 --- /dev/null +++ b/release-media/public/audio/music.LICENSE.txt @@ -0,0 +1,24 @@ +=============================== +Abstraction - Music Loop Bundle +=============================== + +This asset bundle is licensed as Public Domain (CC-0 - https://creativecommons.org/publicdomain/zero/1.0/) + +To the extent possible under law, Abstraction Music (https://abstractionmusic.com/) and Tallbeard Studios (https://www.abstractionmusic.com/tallbeard.htm) has waived all copyright and related or neighboring rights to the music contained in this asset pack. This work is published from the United States. + +All assets are available to use in any commercial or non-commercial project, and may be modified in any way the user chooses. + +Although permitted within the license terms, Abstraction and Tallbeard Studios do not endorse the use of these assets in any projects relating to NFTs, AI/Machine Learning, or direct resale of unmodified assets. + +----- + +Here are a few other places on the Internet where you can find me: + +Website: abstractionmusic.com +Bandcamp: abstractionmusic.bandcamp.com +BlueSky: @tallbeard.itch.io +Patreon: patreon.com/ben_burnes +YouTube: youtube.com/ben_burnes + +<3 +- Benjamin \ No newline at end of file diff --git a/release-media/public/audio/music.README.md b/release-media/public/audio/music.README.md new file mode 100644 index 000000000..a033a3493 --- /dev/null +++ b/release-media/public/audio/music.README.md @@ -0,0 +1,14 @@ +# Release announcement music + +`music.ogg` is **Week 37 – Schmoovin** by **Abstraction / Tallbeard Studios**, from the creator’s Music Loop Bundle, version 20261003-01 (2026 Q3). + +The creator dedicates the bundle to **CC0 1.0 Universal** and explicitly permits commercial use and modification. Attribution is optional, so no music-credit line is needed in the films. The bundled original notice remains in `music.LICENSE.txt`; `music.license.json` pins both files’ SHA-256 hashes and records the source. No endorsement by the musician is implied. + +- Creator’s source and license statement: +- CC0 deed: +- CC0 legal code: + +The committed OGG is the original creator-provided track. Render preparation trims it, changes its gain and adds fades; it does not synthesize a replacement. CI reads the committed source and needs no music service or network request. + + +License verified on 2026-11-02. Sound quality and pacing still require listening review in the final film. diff --git a/release-media/public/audio/music.license.json b/release-media/public/audio/music.license.json new file mode 100644 index 000000000..c2466897b --- /dev/null +++ b/release-media/public/audio/music.license.json @@ -0,0 +1,19 @@ +{ + "file": "music.ogg", + "title": "Week 37 - Schmoovin", + "artist": "Abstraction / Tallbeard Studios", + "license": "CC0-1.0", + "licenseUrl": "https://creativecommons.org/publicdomain/zero/1.0/", + "attributionRequired": false, + "commercialUse": true, + "modificationAllowed": true, + "sourceUrl": "https://tallbeard.itch.io/music-loop-bundle", + "sourceArchive": "music-loop-bundle-2026-q3.zip", + "archiveUploadId": 19538393, + "sourceTrack": "Week 37 - Schmoovin.ogg", + "sha256": "076d06a68ce9dc8f7d2401afa05e247ad3849ac4d425c3b28f995c15bfdab007", + "licenseFile": "music.LICENSE.txt", + "licenseSha256": "d02e059adb401d50167b2e04d12ef9236fbcef0b4e3b7157bd5ebfab8a82b8f4", + "verifiedAt": "2026-11-02", + "acquisition": "Creator-provided free download, without an account or payment. Only this track and the bundled license are retained." +} diff --git a/release-media/public/audio/music.ogg b/release-media/public/audio/music.ogg new file mode 100644 index 000000000..188dfefb9 Binary files /dev/null and b/release-media/public/audio/music.ogg differ diff --git a/release-media/public/audio/switch.wav b/release-media/public/audio/switch.wav new file mode 100644 index 000000000..ceb5a7c85 Binary files /dev/null and b/release-media/public/audio/switch.wav differ diff --git a/release-media/public/native/0.1.0/browser.png b/release-media/public/native/0.1.0/browser.png new file mode 100644 index 000000000..79b8acc82 Binary files /dev/null and b/release-media/public/native/0.1.0/browser.png differ diff --git a/release-media/public/native/0.1.0/capture.json b/release-media/public/native/0.1.0/capture.json new file mode 100644 index 000000000..c7224ad9e --- /dev/null +++ b/release-media/public/native/0.1.0/capture.json @@ -0,0 +1,30 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "browser.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "db5c87426d6d30e390131f033ba3f97d42924b5b1e524bb6e32e927df94e2df4", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + } + ], + "capturedAt" : "2026-11-02T13:15:29Z", + "checks" : { + "medium" : "screenshot", + "syntheticContent" : true + }, + "feature" : "browser", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.1.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.1.3/capture.json b/release-media/public/native/0.1.3/capture.json new file mode 100644 index 000000000..682902453 --- /dev/null +++ b/release-media/public/native/0.1.3/capture.json @@ -0,0 +1,143 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "pinned.png", + "height" : 264, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 0, + 128, + 264, + 33 + ], + "sha256" : "a4da88027918a738a456b496192a1273eab4e2b30cc7d03a958136441eb42738", + "tool" : "WKWebView.takeSnapshot", + "width" : 2112 + }, + { + "file" : "rename-0.png", + "height" : 264, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 0, + 128, + 264, + 33 + ], + "sha256" : "fc2eec56555f133ff3c478caa7fed3a4c0fcaca10bddd9eedebfad12e0a89cde", + "tool" : "WKWebView.takeSnapshot", + "width" : 2112 + }, + { + "file" : "rename-1.png", + "height" : 264, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 0, + 128, + 264, + 33 + ], + "sha256" : "58b1d1d3dfc8a3ed4bc54cff6c04c7bbc680cf11082857681b8de00bacbd3ea9", + "tool" : "WKWebView.takeSnapshot", + "width" : 2112 + }, + { + "file" : "rename-2.png", + "height" : 264, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 0, + 128, + 264, + 33 + ], + "sha256" : "c08b71d5d7a399ead7ef24efba8784b88979439319630993a30f6ff9417566ab", + "tool" : "WKWebView.takeSnapshot", + "width" : 2112 + }, + { + "file" : "rename-3.png", + "height" : 264, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 0, + 128, + 264, + 33 + ], + "sha256" : "a1fddefee7591bc6cf63d856145c37e1c566cd68d18e74aad99e570f61b28bda", + "tool" : "WKWebView.takeSnapshot", + "width" : 2112 + }, + { + "file" : "rename-4.png", + "height" : 264, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 0, + 128, + 264, + 33 + ], + "sha256" : "40417235de9301f3c8174540c2d650e81e9d1248de3c6bbc1d9787c93b82119e", + "tool" : "WKWebView.takeSnapshot", + "width" : 2112 + }, + { + "file" : "rename-5.png", + "height" : 264, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 0, + 128, + 264, + 33 + ], + "sha256" : "62e7db69fdee1bc09f58b8b5a2f24d44892a792643529f7f8c308ef69bea7564", + "tool" : "WKWebView.takeSnapshot", + "width" : 2112 + }, + { + "file" : "rename-6.png", + "height" : 264, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 0, + 128, + 264, + 33 + ], + "sha256" : "714be31f3e8f4a48ba7a83382e71c347ceff8b7825a5748e732af4bf37616943", + "tool" : "WKWebView.takeSnapshot", + "width" : 2112 + }, + { + "file" : "renamed.png", + "height" : 264, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 0, + 128, + 264, + 33 + ], + "sha256" : "fc37b80a5060c6711eb41e0c87ccf68caf27a9536ef9482c08a9181c270a048e", + "tool" : "WKWebView.takeSnapshot", + "width" : 2112 + } + ], + "capturedAt" : "2026-11-02T13:15:32Z", + "checks" : { + "customTitle" : "Studio", + "nativePinnedTab" : true, + "realRenameInput" : true + }, + "feature" : "pinned-tabs", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.1.3", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.1.3/pinned.png b/release-media/public/native/0.1.3/pinned.png new file mode 100644 index 000000000..27fb63c20 Binary files /dev/null and b/release-media/public/native/0.1.3/pinned.png differ diff --git a/release-media/public/native/0.1.3/rename-0.png b/release-media/public/native/0.1.3/rename-0.png new file mode 100644 index 000000000..98c55e3af Binary files /dev/null and b/release-media/public/native/0.1.3/rename-0.png differ diff --git a/release-media/public/native/0.1.3/rename-1.png b/release-media/public/native/0.1.3/rename-1.png new file mode 100644 index 000000000..05311b6cf Binary files /dev/null and b/release-media/public/native/0.1.3/rename-1.png differ diff --git a/release-media/public/native/0.1.3/rename-2.png b/release-media/public/native/0.1.3/rename-2.png new file mode 100644 index 000000000..9564f49de Binary files /dev/null and b/release-media/public/native/0.1.3/rename-2.png differ diff --git a/release-media/public/native/0.1.3/rename-3.png b/release-media/public/native/0.1.3/rename-3.png new file mode 100644 index 000000000..44f571548 Binary files /dev/null and b/release-media/public/native/0.1.3/rename-3.png differ diff --git a/release-media/public/native/0.1.3/rename-4.png b/release-media/public/native/0.1.3/rename-4.png new file mode 100644 index 000000000..82d48fd09 Binary files /dev/null and b/release-media/public/native/0.1.3/rename-4.png differ diff --git a/release-media/public/native/0.1.3/rename-5.png b/release-media/public/native/0.1.3/rename-5.png new file mode 100644 index 000000000..2b530db2d Binary files /dev/null and b/release-media/public/native/0.1.3/rename-5.png differ diff --git a/release-media/public/native/0.1.3/rename-6.png b/release-media/public/native/0.1.3/rename-6.png new file mode 100644 index 000000000..06ca6410a Binary files /dev/null and b/release-media/public/native/0.1.3/rename-6.png differ diff --git a/release-media/public/native/0.1.3/renamed.png b/release-media/public/native/0.1.3/renamed.png new file mode 100644 index 000000000..593fc15f4 Binary files /dev/null and b/release-media/public/native/0.1.3/renamed.png differ diff --git a/release-media/public/native/0.10.0/archive.png b/release-media/public/native/0.10.0/archive.png new file mode 100644 index 000000000..c5dd13d83 Binary files /dev/null and b/release-media/public/native/0.10.0/archive.png differ diff --git a/release-media/public/native/0.10.0/before.png b/release-media/public/native/0.10.0/before.png new file mode 100644 index 000000000..137035cf7 Binary files /dev/null and b/release-media/public/native/0.10.0/before.png differ diff --git a/release-media/public/native/0.10.0/capture.json b/release-media/public/native/0.10.0/capture.json new file mode 100644 index 000000000..805eea4ef --- /dev/null +++ b/release-media/public/native/0.10.0/capture.json @@ -0,0 +1,58 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "before.png", + "height" : 450, + "pixelsPerPoint" : 6, + "rectPoints" : [ + 2, + 123, + 264, + 75 + ], + "sha256" : "bffcc4984049f7457c695faf71c2fd0f637bd2afba5b9bf3c6c828b40f9af156", + "tool" : "WKWebView.takeSnapshot", + "width" : 1584 + }, + { + "file" : "archive.png", + "height" : 840, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 190, + 193, + 240, + 105 + ], + "sha256" : "001acabe1f41df5762ef0cdbcd7664d68b8be6750e72f857470a51d3d494b682", + "tool" : "WKWebView.takeSnapshot", + "width" : 1920 + }, + { + "file" : "restored.png", + "height" : 630, + "pixelsPerPoint" : 6, + "rectPoints" : [ + 2, + 123, + 264, + 105 + ], + "sha256" : "bbf86e86cfadf5fa0bf801d4ec873c1e078fc5287009d524fd4913df477cda7b", + "tool" : "WKWebView.takeSnapshot", + "width" : 1584 + } + ], + "capturedAt" : "2026-11-02T13:15:25Z", + "checks" : { + "insertionY" : 161.109375, + "restoredNativeArchiveEntry" : true + }, + "feature" : "archive", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.10.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.10.0/restored.png b/release-media/public/native/0.10.0/restored.png new file mode 100644 index 000000000..0362318a4 Binary files /dev/null and b/release-media/public/native/0.10.0/restored.png differ diff --git a/release-media/public/native/0.11.0/capture.json b/release-media/public/native/0.11.0/capture.json new file mode 100644 index 000000000..50a9429de --- /dev/null +++ b/release-media/public/native/0.11.0/capture.json @@ -0,0 +1,115 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "solid-window.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "15d83624d63e286a78e61cd91c4a8e6e030c78224faf598398b11e654e6d7a3b", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + }, + { + "file" : "solid-controls.png", + "height" : 240, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 601, + 312, + 194, + 30 + ], + "sha256" : "f7035efa7557a367a5e2865cf4a98bbab34112324499e19077946781b094d2e6", + "tool" : "WKWebView.takeSnapshot", + "width" : 1552 + }, + { + "file" : "glass-controls.png", + "height" : 240, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 601, + 312, + 194, + 30 + ], + "sha256" : "e4e649426409adb50b8fa2e14ef753cda1f553abe8f2f041c22bd572ee2b61d9", + "tool" : "WKWebView.takeSnapshot", + "width" : 1552 + }, + { + "file" : "glass-window.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "39642672b170be796e372a3de3b82bf7c6425719f3ae6b78dbb2e3b8518673ba", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + }, + { + "file" : "grain-controls.png", + "height" : 240, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 506, + 312, + 194, + 30 + ], + "sha256" : "fa2054544c3104c92935813eddf337abc791969c1d5358319804d8cdf20ce4ab", + "tool" : "WKWebView.takeSnapshot", + "width" : 1552 + }, + { + "file" : "grain-window.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "eef74bbd7b9ce7b05570b711b94d382d7320238a93bcea9c82dd3985176e5bde", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + }, + { + "file" : "glass-space.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "3ea5b2d564eec79463ac87d849962b9a27d4e98d4a977ac01a1d29649955999a", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + } + ], + "capturedAt" : "2026-11-02T13:15:36Z", + "checks" : { + "savedMaterial" : "grain", + "secondSpaceMaterial" : "glass", + "separateSpaceIds" : true + }, + "feature" : "spaces", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.11.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.11.0/glass-controls.png b/release-media/public/native/0.11.0/glass-controls.png new file mode 100644 index 000000000..1c4f2671c Binary files /dev/null and b/release-media/public/native/0.11.0/glass-controls.png differ diff --git a/release-media/public/native/0.11.0/glass-space.png b/release-media/public/native/0.11.0/glass-space.png new file mode 100644 index 000000000..81afd16ce Binary files /dev/null and b/release-media/public/native/0.11.0/glass-space.png differ diff --git a/release-media/public/native/0.11.0/glass-window.png b/release-media/public/native/0.11.0/glass-window.png new file mode 100644 index 000000000..96b8e7f65 Binary files /dev/null and b/release-media/public/native/0.11.0/glass-window.png differ diff --git a/release-media/public/native/0.11.0/grain-controls.png b/release-media/public/native/0.11.0/grain-controls.png new file mode 100644 index 000000000..6e213cbd8 Binary files /dev/null and b/release-media/public/native/0.11.0/grain-controls.png differ diff --git a/release-media/public/native/0.11.0/grain-window.png b/release-media/public/native/0.11.0/grain-window.png new file mode 100644 index 000000000..a690d8854 Binary files /dev/null and b/release-media/public/native/0.11.0/grain-window.png differ diff --git a/release-media/public/native/0.11.0/solid-controls.png b/release-media/public/native/0.11.0/solid-controls.png new file mode 100644 index 000000000..8b5861be4 Binary files /dev/null and b/release-media/public/native/0.11.0/solid-controls.png differ diff --git a/release-media/public/native/0.11.0/solid-window.png b/release-media/public/native/0.11.0/solid-window.png new file mode 100644 index 000000000..ce9fd31f7 Binary files /dev/null and b/release-media/public/native/0.11.0/solid-window.png differ diff --git a/release-media/public/native/0.12.0/capture.json b/release-media/public/native/0.12.0/capture.json new file mode 100644 index 000000000..3a87378c1 --- /dev/null +++ b/release-media/public/native/0.12.0/capture.json @@ -0,0 +1,31 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "site-colors.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "062cec358441c8a703fe9bd77fd8397117e7b7f410f8e8aba6ed331e6e013639", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + } + ], + "capturedAt" : "2026-11-02T13:15:33Z", + "checks" : { + "addressPlacement" : "page", + "medium" : "screenshot", + "ownedSiteThemeColor" : "#553f69" + }, + "feature" : "site-colors", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.12.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.12.0/site-colors.png b/release-media/public/native/0.12.0/site-colors.png new file mode 100644 index 000000000..cd1db012b Binary files /dev/null and b/release-media/public/native/0.12.0/site-colors.png differ diff --git a/release-media/public/native/0.13.0/capture.json b/release-media/public/native/0.13.0/capture.json new file mode 100644 index 000000000..6142be1d1 --- /dev/null +++ b/release-media/public/native/0.13.0/capture.json @@ -0,0 +1,59 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "halloween.png", + "height" : 1024, + "pixelsPerPoint" : 1, + "rectPoints" : [ + 0, + 0, + 1024, + 1024 + ], + "sha256" : "a43a11744946960e68d1c3ce204c28f37f9defc1002ab45237642a75efd191e3", + "tool" : "actual compiled native bundle AppIcons\/halloween\/classic.png", + "width" : 1024 + }, + { + "file" : "christmas.png", + "height" : 1024, + "pixelsPerPoint" : 1, + "rectPoints" : [ + 0, + 0, + 1024, + 1024 + ], + "sha256" : "c83fe5fe95292990f6668586299956bae0ed616b5f30dbacc83a699469163807", + "tool" : "actual compiled native bundle AppIcons\/christmas\/classic.png", + "width" : 1024 + }, + { + "file" : "easter.png", + "height" : 1024, + "pixelsPerPoint" : 1, + "rectPoints" : [ + 0, + 0, + 1024, + 1024 + ], + "sha256" : "c8b58789b59209186c44eade92b53d07414d80fd32674c7bb0a7e30a10d4804e", + "tool" : "actual compiled native bundle AppIcons\/easter\/classic.png", + "width" : 1024 + } + ], + "capturedAt" : "2026-11-02T13:15:31Z", + "checks" : { + "animationNeeded" : false, + "medium" : "screenshot", + "nativeSeasonalArtworkCount" : 3 + }, + "feature" : "seasons", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.13.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.13.0/christmas.png b/release-media/public/native/0.13.0/christmas.png new file mode 100644 index 000000000..6985d8a9e Binary files /dev/null and b/release-media/public/native/0.13.0/christmas.png differ diff --git a/release-media/public/native/0.13.0/easter.png b/release-media/public/native/0.13.0/easter.png new file mode 100644 index 000000000..f9f99eaff Binary files /dev/null and b/release-media/public/native/0.13.0/easter.png differ diff --git a/release-media/public/native/0.13.0/halloween.png b/release-media/public/native/0.13.0/halloween.png new file mode 100644 index 000000000..3f4003bd7 Binary files /dev/null and b/release-media/public/native/0.13.0/halloween.png differ diff --git a/release-media/public/native/0.14.0/before.png b/release-media/public/native/0.14.0/before.png new file mode 100644 index 000000000..c82b9544e Binary files /dev/null and b/release-media/public/native/0.14.0/before.png differ diff --git a/release-media/public/native/0.14.0/capture.json b/release-media/public/native/0.14.0/capture.json new file mode 100644 index 000000000..1ba94bcfc --- /dev/null +++ b/release-media/public/native/0.14.0/capture.json @@ -0,0 +1,78 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "link.png", + "height" : 304, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 92, + 526, + 91, + 38 + ], + "sha256" : "07d9d83c4d0d7a884290645b23645191dd5e1c6b168a3ce48cff9661d6095ea6", + "tool" : "WKWebView.takeSnapshot", + "width" : 728 + }, + { + "file" : "before.png", + "height" : 630, + "pixelsPerPoint" : 6, + "rectPoints" : [ + 2, + 123, + 264, + 105 + ], + "sha256" : "7fefc2199aec8305b9c526727b6b21bccf61f089ef65919725f465637d8e3a74", + "tool" : "WKWebView.takeSnapshot", + "width" : 1584 + }, + { + "file" : "target.png", + "height" : 630, + "pixelsPerPoint" : 6, + "rectPoints" : [ + 2, + 123, + 264, + 105 + ], + "sha256" : "c7ed77f0320e97a0392ac0fb932b71435166fb4b8bf43590bdc8ffac43d17fbd", + "tool" : "WKWebView.takeSnapshot", + "width" : 1584 + }, + { + "file" : "dropped.png", + "height" : 810, + "pixelsPerPoint" : 6, + "rectPoints" : [ + 2, + 123, + 264, + 135 + ], + "sha256" : "878f119759e615c04a839d56a715461dce7a505e7ceee87156504a1fcf85fcf6", + "tool" : "WKWebView.takeSnapshot", + "width" : 1584 + } + ], + "capturedAt" : "2026-11-02T13:15:28Z", + "checks" : { + "actualBrowserCommandOpenedLink" : true, + "actualNativeDropIndicator" : true, + "insertionPoint" : { + "x" : 134, + "y" : 162.109375 + }, + "insertionY" : 161.109375, + "syntheticExternalDragPayload" : true + }, + "feature" : "drop", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.14.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.14.0/dropped.png b/release-media/public/native/0.14.0/dropped.png new file mode 100644 index 000000000..6a7b62454 Binary files /dev/null and b/release-media/public/native/0.14.0/dropped.png differ diff --git a/release-media/public/native/0.14.0/link.png b/release-media/public/native/0.14.0/link.png new file mode 100644 index 000000000..73cf779ae Binary files /dev/null and b/release-media/public/native/0.14.0/link.png differ diff --git a/release-media/public/native/0.14.0/target.png b/release-media/public/native/0.14.0/target.png new file mode 100644 index 000000000..f7c148609 Binary files /dev/null and b/release-media/public/native/0.14.0/target.png differ diff --git a/release-media/public/native/0.2.0/bottom.png b/release-media/public/native/0.2.0/bottom.png new file mode 100644 index 000000000..768a89887 Binary files /dev/null and b/release-media/public/native/0.2.0/bottom.png differ diff --git a/release-media/public/native/0.2.0/capture.json b/release-media/public/native/0.2.0/capture.json new file mode 100644 index 000000000..aa7699b69 --- /dev/null +++ b/release-media/public/native/0.2.0/capture.json @@ -0,0 +1,77 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "left.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "dfe6c9caf58112a399a2ffe5fe3828e882adb1e76e6b84326df97b4b3e4cf88e", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + }, + { + "file" : "right.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "ea360b0d948bc72444c785870c6325c0c777ac690fd24776dd76148db17a3989", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + }, + { + "file" : "top.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "d46d3db6b3135038e7a788cc48881c61497847e239ed017d05c065febf87960b", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + }, + { + "file" : "bottom.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "2c80aca2a8f50569b3dd078ce2c0f1a13b861693117bd4ef253c2552d976bfd0", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + } + ], + "capturedAt" : "2026-11-02T13:15:39Z", + "checks" : { + "nativeTabPositions" : [ + "left", + "right", + "top", + "bottom" + ], + "renderedLayoutsVerified" : true + }, + "feature" : "tab-edges", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.2.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.2.0/left.png b/release-media/public/native/0.2.0/left.png new file mode 100644 index 000000000..1cab16bed Binary files /dev/null and b/release-media/public/native/0.2.0/left.png differ diff --git a/release-media/public/native/0.2.0/right.png b/release-media/public/native/0.2.0/right.png new file mode 100644 index 000000000..abe86c56b Binary files /dev/null and b/release-media/public/native/0.2.0/right.png differ diff --git a/release-media/public/native/0.2.0/top.png b/release-media/public/native/0.2.0/top.png new file mode 100644 index 000000000..680b56794 Binary files /dev/null and b/release-media/public/native/0.2.0/top.png differ diff --git a/release-media/public/native/0.3.0/capture.json b/release-media/public/native/0.3.0/capture.json new file mode 100644 index 000000000..435e3fbff --- /dev/null +++ b/release-media/public/native/0.3.0/capture.json @@ -0,0 +1,30 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "settings-window.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "01fc4076bf869b0b5c9f77286a3411e6bc17bcec36c2b03bc1584958a50d942e", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + } + ], + "capturedAt" : "2026-11-02T13:15:32Z", + "checks" : { + "medium" : "screenshot", + "nativeSettingsCommand" : true + }, + "feature" : "settings", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.3.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.3.0/settings-window.png b/release-media/public/native/0.3.0/settings-window.png new file mode 100644 index 000000000..832466e4d Binary files /dev/null and b/release-media/public/native/0.3.0/settings-window.png differ diff --git a/release-media/public/native/0.4.0/capture.json b/release-media/public/native/0.4.0/capture.json new file mode 100644 index 000000000..b740c5a32 --- /dev/null +++ b/release-media/public/native/0.4.0/capture.json @@ -0,0 +1,30 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "updates.png", + "height" : 520, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 0, + 677, + 268, + 65 + ], + "sha256" : "09c01044ebd268ce60beb2d724ac9da6bda1976b0e4e6807b91b7a6eab9d744d", + "tool" : "WKWebView.takeSnapshot", + "width" : 2144 + } + ], + "capturedAt" : "2026-11-02T13:15:44Z", + "checks" : { + "fixtureInput" : "Synthetic updateReady event; no real update downloaded or installed", + "medium" : "screenshot" + }, + "feature" : "updates", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.4.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.4.0/updates.png b/release-media/public/native/0.4.0/updates.png new file mode 100644 index 000000000..5035df55a Binary files /dev/null and b/release-media/public/native/0.4.0/updates.png differ diff --git a/release-media/public/native/0.6.0/capture.json b/release-media/public/native/0.6.0/capture.json new file mode 100644 index 000000000..be1c121fb --- /dev/null +++ b/release-media/public/native/0.6.0/capture.json @@ -0,0 +1,30 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "unread.png", + "height" : 810, + "pixelsPerPoint" : 6, + "rectPoints" : [ + 2, + 123, + 264, + 135 + ], + "sha256" : "af34190ec86425afd3b5bd061fa2ab0004efcfadc4346545304e7dc1ea60a2a9", + "tool" : "WKWebView.takeSnapshot", + "width" : 1584 + } + ], + "capturedAt" : "2026-11-02T13:15:42Z", + "checks" : { + "medium" : "screenshot", + "unreadSource" : "Actual generic title unread detection on owned fixture pages" + }, + "feature" : "unread", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.6.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.6.0/unread.png b/release-media/public/native/0.6.0/unread.png new file mode 100644 index 000000000..b67fda909 Binary files /dev/null and b/release-media/public/native/0.6.0/unread.png differ diff --git a/release-media/public/native/0.7.0/browsing.png b/release-media/public/native/0.7.0/browsing.png new file mode 100644 index 000000000..d072a7eb1 Binary files /dev/null and b/release-media/public/native/0.7.0/browsing.png differ diff --git a/release-media/public/native/0.7.0/camera-off.png b/release-media/public/native/0.7.0/camera-off.png new file mode 100644 index 000000000..e51b524aa Binary files /dev/null and b/release-media/public/native/0.7.0/camera-off.png differ diff --git a/release-media/public/native/0.7.0/capture.json b/release-media/public/native/0.7.0/capture.json new file mode 100644 index 000000000..fa5ccd0da --- /dev/null +++ b/release-media/public/native/0.7.0/capture.json @@ -0,0 +1,73 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "connected.png", + "height" : 272, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 10, + 700, + 248, + 34 + ], + "sha256" : "7a1d42a16773286726f62a25d505e7ebdb15994fb8315f7f62c5a06486b421a6", + "tool" : "WKWebView.takeSnapshot", + "width" : 1984 + }, + { + "file" : "browsing.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "ea6c4c0a029bfd2da544a41cec6f6f045d6b51f8b67a91090f59505399cae8f7", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + }, + { + "file" : "muted.png", + "height" : 272, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 10, + 700, + 248, + 34 + ], + "sha256" : "d178b65bc082f21de613634be0923bd8fc930dac18624db08808739dffa762b6", + "tool" : "WKWebView.takeSnapshot", + "width" : 1984 + }, + { + "file" : "camera-off.png", + "height" : 272, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 10, + 700, + 248, + 34 + ], + "sha256" : "f0ec18dcbf22c21b8116bb294869fccc239ccbde370d50e3ca802335a647976e", + "tool" : "WKWebView.takeSnapshot", + "width" : 1984 + } + ], + "capturedAt" : "2026-11-02T13:15:26Z", + "checks" : { + "hardwareOrRemoteCallUsed" : false, + "realMediaSessionHandlers" : true, + "syntheticDeviceUsage" : true + }, + "feature" : "calls", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.7.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.7.0/connected.png b/release-media/public/native/0.7.0/connected.png new file mode 100644 index 000000000..195726bc9 Binary files /dev/null and b/release-media/public/native/0.7.0/connected.png differ diff --git a/release-media/public/native/0.7.0/muted.png b/release-media/public/native/0.7.0/muted.png new file mode 100644 index 000000000..d3599fbc1 Binary files /dev/null and b/release-media/public/native/0.7.0/muted.png differ diff --git a/release-media/public/native/0.8.0/address-bar/address-hidden.png b/release-media/public/native/0.8.0/address-bar/address-hidden.png new file mode 100644 index 000000000..d6912cc74 Binary files /dev/null and b/release-media/public/native/0.8.0/address-bar/address-hidden.png differ diff --git a/release-media/public/native/0.8.0/address-bar/address-visible.png b/release-media/public/native/0.8.0/address-bar/address-visible.png new file mode 100644 index 000000000..c35efe817 Binary files /dev/null and b/release-media/public/native/0.8.0/address-bar/address-visible.png differ diff --git a/release-media/public/native/0.8.0/address-bar/capture.json b/release-media/public/native/0.8.0/address-bar/capture.json new file mode 100644 index 000000000..5d13ce16d --- /dev/null +++ b/release-media/public/native/0.8.0/address-bar/capture.json @@ -0,0 +1,77 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "address-visible.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "cce303573718abded225161c3a383b6f109f0ce29ef4dd46b4469c98097c9c33", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + }, + { + "file" : "setting-visible.png", + "height" : 600, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 292, + 693, + 920, + 75 + ], + "sha256" : "79972982c56060056ccb1dfb029eb963579bc74c8961500b67aee5844156846f", + "tool" : "WKWebView.takeSnapshot", + "width" : 7360 + }, + { + "file" : "setting-hidden.png", + "height" : 600, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 292, + 657, + 920, + 75 + ], + "sha256" : "029faf545696018e4fb13357b0e5dc32cf3004228a90d6dc9bb30d88f7c6be40", + "tool" : "WKWebView.takeSnapshot", + "width" : 7360 + }, + { + "file" : "address-hidden.png", + "height" : 1600, + "pixelsPerPoint" : 2, + "rectPoints" : [ + 116, + 108, + 1280, + 800 + ], + "sha256" : "39d8bdecbca779d10ee41e5c0fea8a29fea0ca8fad080ab65948581f003c778e", + "tool" : "ScreenCaptureKit desktop-independent native window", + "width" : 2560 + } + ], + "capturedAt" : "2026-11-02T13:42:13Z", + "checks" : { + "actualSettingsBridge" : true, + "addressPlacementAfter" : "hidden", + "addressPlacementBefore" : "page", + "commandBarWithAddressHidden" : true, + "pageHeightAfter" : 784, + "pageHeightBefore" : 748, + "pageTitle" : "Field guide" + }, + "feature" : "address-bar", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "5153405324fb2b0dc59c3d8313873b3ef2c30c97", + "release" : "0.8.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.8.0/address-bar/setting-hidden.png b/release-media/public/native/0.8.0/address-bar/setting-hidden.png new file mode 100644 index 000000000..bfecd3eb9 Binary files /dev/null and b/release-media/public/native/0.8.0/address-bar/setting-hidden.png differ diff --git a/release-media/public/native/0.8.0/address-bar/setting-visible.png b/release-media/public/native/0.8.0/address-bar/setting-visible.png new file mode 100644 index 000000000..6f39632ce Binary files /dev/null and b/release-media/public/native/0.8.0/address-bar/setting-visible.png differ diff --git a/release-media/public/native/0.8.0/capture.json b/release-media/public/native/0.8.0/capture.json new file mode 100644 index 000000000..2d57669a1 --- /dev/null +++ b/release-media/public/native/0.8.0/capture.json @@ -0,0 +1,173 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "picker.png", + "height" : 2520, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 430, + 56, + 680, + 315 + ], + "sha256" : "3e305f44902782e6c111498b76578e05369b291832fdba65a2654237f7df574b", + "tool" : "WKWebView.takeSnapshot", + "width" : 5440 + }, + { + "file" : "search-0.png", + "height" : 232, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 449, + 120, + 642, + 29 + ], + "sha256" : "79f16e032a805fb6e4f2447b44b3e229a9e7548fe20ddf13fb74609302da637e", + "tool" : "WKWebView.takeSnapshot", + "width" : 5136 + }, + { + "file" : "search-1.png", + "height" : 232, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 449, + 120, + 642, + 29 + ], + "sha256" : "6a67fe489704057fa4489c4237f90a34afb83407fb7551c031dc03033b173d63", + "tool" : "WKWebView.takeSnapshot", + "width" : 5136 + }, + { + "file" : "search-2.png", + "height" : 232, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 449, + 120, + 642, + 29 + ], + "sha256" : "cac7078b95e763db3011b891890659f571186f25a9ef65f68e5ec399e7d72582", + "tool" : "WKWebView.takeSnapshot", + "width" : 5136 + }, + { + "file" : "search-3.png", + "height" : 232, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 449, + 120, + 642, + 29 + ], + "sha256" : "bc91c01e1845c1088406f8fc815564a8a126776c9ceaafba534f308c0dc09c58", + "tool" : "WKWebView.takeSnapshot", + "width" : 5136 + }, + { + "file" : "search-4.png", + "height" : 232, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 449, + 120, + 642, + 29 + ], + "sha256" : "21c01c5f250a03e5d71caeebb030eb0d50f571cc1f4478ae363fdf5a549e4f00", + "tool" : "WKWebView.takeSnapshot", + "width" : 5136 + }, + { + "file" : "search-5.png", + "height" : 232, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 449, + 120, + 642, + 29 + ], + "sha256" : "1d3db55c8bafd186bd31ce90883b40b0627eb8704ba62a450b1cd7890e9c2eb5", + "tool" : "WKWebView.takeSnapshot", + "width" : 5136 + }, + { + "file" : "filtered.png", + "height" : 2336, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 430, + 56, + 680, + 292 + ], + "sha256" : "e1e417d977d6f0c906dab27fe8a7b90b886f3aee2f202e74f003ee62a57d55cd", + "tool" : "WKWebView.takeSnapshot", + "width" : 5440 + }, + { + "file" : "match.png", + "height" : 984, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 449, + 162, + 155, + 123 + ], + "sha256" : "9315b8adc00c88aa91ef189bdde46cf3c88f2ca08b364cfc6bfbe41c6a18ca20", + "tool" : "WKWebView.takeSnapshot", + "width" : 1240 + }, + { + "file" : "sharing.png", + "height" : 520, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 10, + 669, + 248, + 65 + ], + "sha256" : "fb0b6a2a12d958c53d3ccc21f41f34bc02ae8ddd54690a5888452d1607172920", + "tool" : "WKWebView.takeSnapshot", + "width" : 1984 + }, + { + "file" : "switched.png", + "height" : 520, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 10, + 669, + 248, + 65 + ], + "sha256" : "1c009abf8767ce100efeae895222a0839d99bac827928f02fe786d86e79ffae8", + "tool" : "WKWebView.takeSnapshot", + "width" : 1984 + } + ], + "capturedAt" : "2026-11-02T13:42:16Z", + "checks" : { + "nativeShareSourceChanged" : true, + "pickerSearch" : "Field", + "realMediaSessionHandlers" : true, + "shareTokenPreserved" : true, + "syntheticDeviceUsage" : true + }, + "feature" : "tab-share", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "5153405324fb2b0dc59c3d8313873b3ef2c30c97", + "release" : "0.8.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.8.0/filtered.png b/release-media/public/native/0.8.0/filtered.png new file mode 100644 index 000000000..ae47b8fee Binary files /dev/null and b/release-media/public/native/0.8.0/filtered.png differ diff --git a/release-media/public/native/0.8.0/match.png b/release-media/public/native/0.8.0/match.png new file mode 100644 index 000000000..2df9abc61 Binary files /dev/null and b/release-media/public/native/0.8.0/match.png differ diff --git a/release-media/public/native/0.8.0/picker.png b/release-media/public/native/0.8.0/picker.png new file mode 100644 index 000000000..0b26fe18b Binary files /dev/null and b/release-media/public/native/0.8.0/picker.png differ diff --git a/release-media/public/native/0.8.0/search-0.png b/release-media/public/native/0.8.0/search-0.png new file mode 100644 index 000000000..a09298693 Binary files /dev/null and b/release-media/public/native/0.8.0/search-0.png differ diff --git a/release-media/public/native/0.8.0/search-1.png b/release-media/public/native/0.8.0/search-1.png new file mode 100644 index 000000000..0d3038c05 Binary files /dev/null and b/release-media/public/native/0.8.0/search-1.png differ diff --git a/release-media/public/native/0.8.0/search-2.png b/release-media/public/native/0.8.0/search-2.png new file mode 100644 index 000000000..38bdc6edb Binary files /dev/null and b/release-media/public/native/0.8.0/search-2.png differ diff --git a/release-media/public/native/0.8.0/search-3.png b/release-media/public/native/0.8.0/search-3.png new file mode 100644 index 000000000..3c8933bc7 Binary files /dev/null and b/release-media/public/native/0.8.0/search-3.png differ diff --git a/release-media/public/native/0.8.0/search-4.png b/release-media/public/native/0.8.0/search-4.png new file mode 100644 index 000000000..b02d0c8d1 Binary files /dev/null and b/release-media/public/native/0.8.0/search-4.png differ diff --git a/release-media/public/native/0.8.0/search-5.png b/release-media/public/native/0.8.0/search-5.png new file mode 100644 index 000000000..9d388ce27 Binary files /dev/null and b/release-media/public/native/0.8.0/search-5.png differ diff --git a/release-media/public/native/0.8.0/sharing.png b/release-media/public/native/0.8.0/sharing.png new file mode 100644 index 000000000..8ef337d4c Binary files /dev/null and b/release-media/public/native/0.8.0/sharing.png differ diff --git a/release-media/public/native/0.8.0/switched.png b/release-media/public/native/0.8.0/switched.png new file mode 100644 index 000000000..ea12394a9 Binary files /dev/null and b/release-media/public/native/0.8.0/switched.png differ diff --git a/release-media/public/native/0.9.0/capture.json b/release-media/public/native/0.9.0/capture.json new file mode 100644 index 000000000..dda343913 --- /dev/null +++ b/release-media/public/native/0.9.0/capture.json @@ -0,0 +1,157 @@ +{ + "appBuild" : "31", + "appVersion" : "0.14.1", + "assets" : [ + { + "file" : "rows.png", + "height" : 960, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 342, + 176, + 300, + 120 + ], + "sha256" : "6ff48564ab2cb242b2e898b28d576d496a902ea86628056fa13283845c241ee7", + "tool" : "WKWebView.takeSnapshot", + "width" : 2400 + }, + { + "file" : "search-0.png", + "height" : 256, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 36, + 76, + 192, + 32 + ], + "sha256" : "7f71da97b55c13e4da9f654bc3659e37ccca7f9fb23f66ae5b920d7cc741a1d7", + "tool" : "WKWebView.takeSnapshot", + "width" : 1536 + }, + { + "file" : "search-1.png", + "height" : 256, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 36, + 76, + 192, + 32 + ], + "sha256" : "6f475a9f4040e89ff0839d52b7d3fb5028e19053bbc7bcfc184ed18cdf8dce40", + "tool" : "WKWebView.takeSnapshot", + "width" : 1536 + }, + { + "file" : "search-2.png", + "height" : 256, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 36, + 76, + 192, + 32 + ], + "sha256" : "b074cbe3945b97dcc21a8f4d5559d5cba54d5833e5a2de14f269f311a3a1ae09", + "tool" : "WKWebView.takeSnapshot", + "width" : 1536 + }, + { + "file" : "search-3.png", + "height" : 256, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 36, + 76, + 192, + 32 + ], + "sha256" : "b4ae3db4b944516acf0742329521f44331e7f87cd75a198d1fe81568976e3785", + "tool" : "WKWebView.takeSnapshot", + "width" : 1536 + }, + { + "file" : "search-4.png", + "height" : 256, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 36, + 76, + 192, + 32 + ], + "sha256" : "f3d8afd6a2201ef67c23509921c57d441a6c9f3806c58563135b902550cc3eeb", + "tool" : "WKWebView.takeSnapshot", + "width" : 1536 + }, + { + "file" : "search-5.png", + "height" : 256, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 36, + 76, + 192, + 32 + ], + "sha256" : "3c43c0a8a14e0d6d6a055f4905ea1262984420b91be7328a43cd65a3f59c8034", + "tool" : "WKWebView.takeSnapshot", + "width" : 1536 + }, + { + "file" : "search-6.png", + "height" : 256, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 36, + 76, + 192, + 32 + ], + "sha256" : "6ce76399218209b4cd962962556317953d85a365709f45baefdf6d17c32cf9ca", + "tool" : "WKWebView.takeSnapshot", + "width" : 1536 + }, + { + "file" : "filtered.png", + "height" : 2352, + "pixelsPerPoint" : 3, + "rectPoints" : [ + 268, + 8, + 1004, + 784 + ], + "sha256" : "fbe933edaa0a9242b860dc3dde11046da059031103d267401a93e5e9fcede225", + "tool" : "WKWebView.takeSnapshot", + "width" : 3012 + }, + { + "file" : "filtered-rows.png", + "height" : 672, + "pixelsPerPoint" : 8, + "rectPoints" : [ + 302, + 134, + 300, + 84 + ], + "sha256" : "9fe7ae837481ff60d7035c339f80b3648a4e82038c2d3efe96b0a1ca397900c2", + "tool" : "WKWebView.takeSnapshot", + "width" : 2400 + } + ], + "capturedAt" : "2026-11-02T13:15:30Z", + "checks" : { + "filteredOut" : "Field guide", + "nativeHistoryStoreVisits" : 4, + "query" : "Studio" + }, + "feature" : "history", + "fixture" : "Disposable profile, synthetic example.com content and owned gradient backdrop; no personal data", + "productSourceCommit" : "6905252c253e7803410b690b2095fbdb8691a28f", + "release" : "0.9.0", + "schemaVersion" : 1 +} \ No newline at end of file diff --git a/release-media/public/native/0.9.0/filtered-rows.png b/release-media/public/native/0.9.0/filtered-rows.png new file mode 100644 index 000000000..77ee20e18 Binary files /dev/null and b/release-media/public/native/0.9.0/filtered-rows.png differ diff --git a/release-media/public/native/0.9.0/filtered.png b/release-media/public/native/0.9.0/filtered.png new file mode 100644 index 000000000..ff3d7f138 Binary files /dev/null and b/release-media/public/native/0.9.0/filtered.png differ diff --git a/release-media/public/native/0.9.0/rows.png b/release-media/public/native/0.9.0/rows.png new file mode 100644 index 000000000..2382c71b9 Binary files /dev/null and b/release-media/public/native/0.9.0/rows.png differ diff --git a/release-media/public/native/0.9.0/search-0.png b/release-media/public/native/0.9.0/search-0.png new file mode 100644 index 000000000..3261f2d6a Binary files /dev/null and b/release-media/public/native/0.9.0/search-0.png differ diff --git a/release-media/public/native/0.9.0/search-1.png b/release-media/public/native/0.9.0/search-1.png new file mode 100644 index 000000000..7f2a16129 Binary files /dev/null and b/release-media/public/native/0.9.0/search-1.png differ diff --git a/release-media/public/native/0.9.0/search-2.png b/release-media/public/native/0.9.0/search-2.png new file mode 100644 index 000000000..3396edb10 Binary files /dev/null and b/release-media/public/native/0.9.0/search-2.png differ diff --git a/release-media/public/native/0.9.0/search-3.png b/release-media/public/native/0.9.0/search-3.png new file mode 100644 index 000000000..1f22084d7 Binary files /dev/null and b/release-media/public/native/0.9.0/search-3.png differ diff --git a/release-media/public/native/0.9.0/search-4.png b/release-media/public/native/0.9.0/search-4.png new file mode 100644 index 000000000..163b79a9c Binary files /dev/null and b/release-media/public/native/0.9.0/search-4.png differ diff --git a/release-media/public/native/0.9.0/search-5.png b/release-media/public/native/0.9.0/search-5.png new file mode 100644 index 000000000..8036425a4 Binary files /dev/null and b/release-media/public/native/0.9.0/search-5.png differ diff --git a/release-media/public/native/0.9.0/search-6.png b/release-media/public/native/0.9.0/search-6.png new file mode 100644 index 000000000..d57d5c0d4 Binary files /dev/null and b/release-media/public/native/0.9.0/search-6.png differ diff --git a/release-media/render.mjs b/release-media/render.mjs new file mode 100644 index 000000000..0dddf4e0b --- /dev/null +++ b/release-media/render.mjs @@ -0,0 +1,360 @@ +import { createRenderJob, executeRenderJob, resolveConfig } from "@hyperframes/producer"; +import { execFile } from "node:child_process"; +import { cp, copyFile, mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises"; +import path from "node:path"; +import { promisify } from "node:util"; +import { isolateNativePng } from "./png-cutouts.mjs"; +import { + root, + sha, + json, + selected, + nativeSources, + resolveRecipe, + recipeHashes, + same, + filesBelow, + sharedTabShareScenes, +} from "./pipeline.mjs"; + +const run = promisify(execFile); +const catalog = await json(path.join(root, "backlog.json")); +const entries = selected(catalog); +const cli = path.join(root, "node_modules/hyperframes/bin/hyperframes.mjs"); +const env = { ...process.env, DO_NOT_TRACK: "1", PRODUCER_BROWSER_GPU_MODE: "software" }; +await run(process.execPath, [cli, "browser", "ensure"], { env }); +const browserPath = (await run(process.execPath, [cli, "browser", "path"], { env })).stdout.trim(); +env.HYPERFRAMES_BROWSER_PATH = browserPath; +if (entries.some(([, entry]) => entry.kind === "video")) { + const musicLicense = await json(path.join(root, "public/audio/music.license.json")); + if ( + musicLicense.license !== "CC0-1.0" || + musicLicense.attributionRequired !== false || + sha(await readFile(path.join(root, "public/audio/music.ogg"))) !== musicLicense.sha256 || + sha(await readFile(path.join(root, "public/audio/music.LICENSE.txt"))) !== + musicLicense.licenseSha256 + ) + throw Error("A verified CC0 soundtrack without an attribution requirement is required"); +} + +async function cliRun(args, project, log) { + try { + const { stdout, stderr } = await run(process.execPath, [cli, ...args], { + cwd: project, + env, + maxBuffer: 32 * 1024 * 1024, + }); + if (log) await writeFile(log, stdout); + if (stderr) await writeFile(`${log}.log`, stderr); + return stdout; + } catch (error) { + if (log) await writeFile(log, error.stdout ?? ""); + if (log) await writeFile(`${log}.log`, error.stderr ?? error.message); + throw Error(`HyperFrames ${args[0]} failed: ${log}`); + } +} + +function stillHtml(feature) { + const data = { + browser: ["A place to begin.", "browser", 1664], + settings: ["Settings, in one place.", "settings-window", 1664], + updates: ["Ready when you are.", "updates", 1560], + unread: ["Unread, at a glance.", "unread", 1460], + "site-colors": ["A little more colour.", "site-colors", 1664], + seasons: ["Dressed for the occasion.", "halloween", 480], + }[feature]; + if (!data) throw Error(`Missing screenshot composition: ${feature}`); + const [title, file, width] = data; + const pictures = feature === "seasons" ? ["halloween", "christmas", "easter"] : [file]; + return `

${title}

${pictures.map((name) => `Native Lilo ${feature}`).join("")}
`; +} + +for (const [version, entry] of entries) { + if (entry.kind === "none") continue; + const native = await nativeSources(version, entry); + const recipe = resolveRecipe(entry); + const recipes = await recipeHashes(entry, recipe); + const folder = path.join(root, "assets", version); + const project = path.join(root, "../build/release-media/projects", version); + const staged = await json(path.join(project, "check.json")).catch(() => null); + const previous = await json(path.join(folder, "render.json")).catch(() => null); + if ( + previous?.schemaVersion === 3 && + previous.engine === "hyperframes" && + staged?.ok === true && + staged.strict === true && + same(previous.recipe, recipe) && + same(previous.recipeHashes, recipes) && + same(previous.nativeReceipts, native.receipts) + ) { + const valid = await Promise.all( + Object.entries(previous.hashes).map( + async ([file, hash]) => sha(await readFile(path.join(folder, file))) === hash, + ), + ).catch(() => [false]); + if (valid.every(Boolean)) { + console.log(`Reused unchanged HyperFrames media: ${version}`); + continue; + } + } + await mkdir(folder, { recursive: true }); + await rm(path.join(folder, "quality.json"), { force: true }); + await rm(path.join(folder, "render.json"), { force: true }); + await rm(project, { recursive: true, force: true }); + await mkdir(project, { recursive: true }); + const metadata = + entry.kind === "video" + ? await json(path.join(root, recipe.directory, "metadata.json")) + : { duration: 1, posterFrame: 0 }; + const duration = metadata.duration; + if (!(duration > 0 && duration <= 40)) throw Error(`Invalid storyboard duration: ${version}`); + if (entry.kind === "video") { + await cp(path.join(root, recipe.directory), project, { recursive: true }); + if (recipe.fixture === "0.8.0" && recipe.variant === "share") + for (const scene of sharedTabShareScenes) + await copyFile( + path.join(root, "hyperframes/0.8.0/compositions", `${scene}.html`), + path.join(project, "compositions", `${scene}.html`), + ); + if (recipe.fixture !== "0.8.0") { + for (const file of ["shared.css", "shared.js"]) + await copyFile(path.join(root, "hyperframes/archive", file), path.join(project, file)); + const index = await readFile(path.join(project, "index.html"), "utf8"); + const endingDuration = index.match(/id="ending"[^>]*data-duration="([^"]+)"/)?.[1]; + if (!endingDuration || !metadata.caption) throw Error(`Missing ending: ${version}`); + const ending = (await readFile(path.join(root, "hyperframes/archive/ending.html"), "utf8")) + .replaceAll("{{VERSION}}", version) + .replaceAll( + "{{CAPTION}}", + metadata.caption.replaceAll("&", "&").replaceAll("<", "<"), + ) + .replaceAll("{{DURATION}}", endingDuration); + await writeFile(path.join(project, "compositions/ending.html"), ending); + } + if (recipe.fixture !== version) + for (const file of (await filesBelow(project)).filter((file) => file.endsWith(".html"))) + await writeFile(file, (await readFile(file, "utf8")).replaceAll(recipe.fixture, version)); + } else await writeFile(path.join(project, "index.html"), stillHtml(entry.feature)); + await cp(path.join(root, "public/native", version), path.join(project, "assets/native"), { + recursive: true, + }); + for (const dir of ["fonts", ...(entry.kind === "video" ? ["audio", "vendor"] : [])]) + await mkdir(path.join(project, "assets", dir), { recursive: true }); + await copyFile( + path.join(root, "hyperframes/assets/inter.woff2"), + path.join(project, "assets/fonts/inter.woff2"), + ); + if (entry.kind === "video") { + await copyFile( + path.join(root, "hyperframes/assets/logo.svg"), + path.join(project, "assets/logo.svg"), + ); + await copyFile( + path.join(root, "node_modules/gsap/dist/gsap.min.js"), + path.join(project, "assets/vendor/gsap.min.js"), + ); + for (const file of ["mouse-click.wav", "switch.wav"]) + await copyFile( + path.join(root, "public/audio", file), + path.join(project, "assets/audio", file), + ); + } + const cuts = []; + async function crop(file, rect, target) { + await run("ffmpeg", [ + "-v", + "error", + "-y", + "-i", + path.join(root, file), + "-vf", + `crop=${rect[2]}:${rect[3]}:${rect[0]}:${rect[1]}`, + "-frames:v", + "1", + path.join(project, "assets/native", target), + ]); + cuts.push({ source: file, crop: rect, target }); + } + if (entry.feature === "tab-share") { + for (let i = 0; i <= 5; i++) + await crop(`public/native/${version}/search-${i}.png`, [0, 0, 2016, 232], `search-${i}.png`); + await crop(`public/native/${version}/filtered.png`, [4800, 1992, 592, 296], "share-button.png"); + for (const [from, to] of [ + ["address-visible", "room-before"], + ["address-hidden", "room-after"], + ]) + await copyFile( + path.join(root, `public/native/${version}/address-bar/${from}.png`), + path.join(project, `assets/native/${to}.png`), + ); + for (const [from, to] of [ + ["setting-visible", "setting-before"], + ["setting-hidden", "setting-after"], + ]) + await crop( + `public/native/${version}/address-bar/${from}.png`, + [4880, 100, 2448, 320], + `${to}.png`, + ); + } + const shapes = []; + const add = (file, rect, radius) => shapes.push([`${file}.png`, rect, radius]); + if (entry.feature === "tab-share") { + add("picker", [0, 0, 5440, 2520], 128); + add("match", [0, 0, 1240, 984], 80); + for (const file of ["sharing", "switched"]) add(file, [0, 0, 1984, 520], 48); + for (let i = 0; i <= 5; i++) add(`search-${i}`, [0, 0, 5136, 232], 48); + add("share-button", [60, 40, 476, 216], 48); + for (const file of ["setting-before", "setting-after"]) add(file, [100, 88, 2300, 224], 80); + } + if (entry.feature === "pinned-tabs") + for (const asset of native.assets) + add(path.basename(asset.path, ".png"), [80, 32, 1984, 232], 96); + if (entry.feature === "calls") + for (const file of ["connected", "muted", "camera-off"]) add(file, [0, 0, 1984, 272], 48); + if (entry.feature === "history") { + for (let i = 0; i <= 6; i++) add(`search-${i}`, [48, 48, 1440, 160], 48); + add("filtered-rows", [0, 0, 2400, 672], 112); + } + if (entry.feature === "archive") add("archive", [0, 0, 1920, 840], 128); + if (entry.feature === "updates") add("updates", [80, 84, 1984, 356], 80); + if (entry.feature === "spaces") + for (const name of ["solid", "glass", "grain"]) add(`${name}-controls`, [0, 0, 1552, 240], 120); + const cutouts = []; + for (const [file, rect, radius] of shapes) { + const cut = cuts.find((item) => item.target === file); + cutouts.push({ + ...(await isolateNativePng(path.join(project, "assets/native", file), { rect, radius })), + source: cut?.source ?? `public/native/${version}/${file}`, + ...(cut ? { crop: cut.crop } : {}), + }); + } + if (entry.kind === "video") { + await run("ffmpeg", [ + "-v", + "error", + "-y", + "-stream_loop", + "-1", + "-i", + path.join(root, "public/audio/music.ogg"), + "-t", + String(duration), + "-af", + `loudnorm=I=-20:TP=-4:LRA=7,afade=t=in:d=0.15,afade=t=out:st=${duration - 1.5}:d=1.5`, + "-ar", + "48000", + "-ac", + "2", + path.join(project, "assets/audio/score.wav"), + ]); + let html = await readFile(path.join(project, "index.html"), "utf8"); + html = html.replaceAll(recipe.fixture, version); + if (!html.includes("assets/audio/score.wav")) + html = html.replace( + "", + ``, + ); + await writeFile(path.join(project, "index.html"), html); + } + await cliRun(["check", project, "--json", "--strict"], project, path.join(project, "check.json")); + if (entry.kind === "video") { + const job = createRenderJob({ + fps: 60, + quality: "high", + format: "mp4", + crf: 16, + strictness: "strict", + pageMotionBlur: "off", + hdrMode: "force-sdr", + videoFrameFormat: "png", + workers: 1, + useGpu: false, + producerConfig: resolveConfig({ + fps: { num: 60, den: 1 }, + format: "png", + concurrency: 1, + chromePath: browserPath, + useDrawElement: false, + enableBrowserPool: false, + renderReadyTimeout: 45000, + }), + }); + const raw = path.join(project, "render.mp4"); + await executeRenderJob(job, project, raw); + if (job.status !== "complete") throw Error(job.error ?? `Render failed: ${version}`); + await run("ffmpeg", [ + "-v", + "error", + "-y", + "-i", + raw, + "-map", + "0:v:0", + "-map", + "0:a:0", + "-c:v", + "copy", + "-af", + "loudnorm=I=-16:TP=-1.8:LRA=8", + "-c:a", + "aac", + "-b:a", + "192k", + "-ar", + "48000", + "-ac", + "2", + "-movflags", + "+faststart", + "-t", + String(duration), + path.join(folder, `${entry.feature}.mp4`), + ]); + } + const posterFrame = metadata.posterFrame; + const time = posterFrame / 60; + await cliRun( + [ + "snapshot", + project, + "--at", + String(time), + "--keep", + "--no-end", + "--json", + "--output", + path.join(project, "poster"), + ], + project, + path.join(project, "snapshot.json"), + ); + await copyFile( + path.join(project, "poster", `at-${time}s.png`), + path.join(folder, `${entry.feature}.png`), + ); + const hashes = {}; + for (const ext of ["png", ...(entry.kind === "video" ? ["mp4"] : [])]) + hashes[`${entry.feature}.${ext}`] = sha( + await readFile(path.join(folder, `${entry.feature}.${ext}`)), + ); + const render = { + schemaVersion: 3, + engine: "hyperframes", + release: version, + kind: entry.kind, + feature: entry.feature, + recipe, + width: 1920, + height: 1080, + fps: 60, + frames: entry.kind === "video" ? Math.round(duration * 60) : 1, + posterFrame, + hashes, + recipeHashes: recipes, + nativeReceipts: native.receipts, + cutouts, + }; + await writeFile(path.join(folder, "render.json"), JSON.stringify(render, null, 2) + "\n"); + console.log(`Rendered HyperFrames ${version}: ${entry.kind} ${entry.feature}`); +} diff --git a/release-media/stage-native.mjs b/release-media/stage-native.mjs new file mode 100644 index 000000000..8a68352a3 --- /dev/null +++ b/release-media/stage-native.mjs @@ -0,0 +1,28 @@ +import { cp, mkdir, readFile, readdir, rm } from "node:fs/promises"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; + +const root = path.dirname(fileURLToPath(import.meta.url)); +const catalog = JSON.parse(await readFile(path.join(root, "backlog.json"), "utf8")); +const pkg = JSON.parse(await readFile(path.join(root, "../lilo-ui/package.json"), "utf8")); +const version = process.env.LILO_RELEASE_MEDIA_PREVIEW_VERSION || pkg.version; +const entry = catalog.releases[version]; +const capturing = process.env.LILO_RELEASE_MEDIA_CAPTURE_ONLY === "1"; +const target = path.join(root, "../lilo-ui/public/release-media"); +await mkdir(target, { recursive: true }); +for (const name of await readdir(target)) + if (name !== ".gitkeep") await rm(path.join(target, name), { recursive: true, force: true }); +if (!capturing && entry && entry.kind !== "none") { + await mkdir(path.join(target, version), { recursive: true }); + for (const ext of ["png", ...(entry.kind === "video" ? ["mp4"] : [])]) { + const file = `${entry.feature}.${ext}`; + await cp(path.join(root, "assets", version, file), path.join(target, version, file), { + errorOnExist: true, + }); + } +} +console.log( + capturing + ? "Native release media: omitted from capture host" + : `Native release media: ${version} ${entry?.kind ?? "none"}`, +); diff --git a/release-media/stage-native.test.mjs b/release-media/stage-native.test.mjs new file mode 100644 index 000000000..4a341d3e9 --- /dev/null +++ b/release-media/stage-native.test.mjs @@ -0,0 +1,58 @@ +import assert from "node:assert/strict"; +import { spawnSync } from "node:child_process"; +import { cp, mkdir, mkdtemp, readFile, readdir, rm, writeFile } from "node:fs/promises"; +import { tmpdir } from "node:os"; +import path from "node:path"; +import { test } from "node:test"; +import { fileURLToPath } from "node:url"; + +test("capture hosts omit media that does not exist yet; normal builds require and stage it", async (t) => { + const root = await mkdtemp(path.join(tmpdir(), "lilo-native-staging-")); + t.after(() => rm(root, { recursive: true, force: true })); + const media = path.join(root, "release-media"); + const ui = path.join(root, "lilo-ui"); + const target = path.join(ui, "public/release-media"); + const version = "0.15.0"; + await mkdir(media); + await mkdir(target, { recursive: true }); + await cp( + fileURLToPath(new URL("./stage-native.mjs", import.meta.url)), + path.join(media, "stage-native.mjs"), + ); + await writeFile(path.join(ui, "package.json"), JSON.stringify({ version })); + await writeFile( + path.join(media, "backlog.json"), + JSON.stringify({ releases: { [version]: { kind: "video", feature: "tab-share" } } }), + ); + await writeFile(path.join(target, ".gitkeep"), ""); + await writeFile(path.join(target, "stale.mp4"), "old release"); + const run = (capturing = false) => + spawnSync(process.execPath, [path.join(media, "stage-native.mjs")], { + encoding: "utf8", + env: { + ...process.env, + LILO_RELEASE_MEDIA_CAPTURE_ONLY: capturing ? "1" : "", + LILO_RELEASE_MEDIA_PREVIEW_VERSION: "", + }, + }); + const capture = run(true); + assert.equal(capture.status, 0, capture.stderr); + assert.deepEqual(await readdir(target), [".gitkeep"]); + const missing = run(); + assert.notEqual(missing.status, 0); + assert.match(missing.stderr, /ENOENT/); + const source = path.join(media, "assets", version); + await mkdir(source, { recursive: true }); + await writeFile(path.join(source, "tab-share.png"), "verified poster"); + await writeFile(path.join(source, "tab-share.mp4"), "verified film"); + const normal = run(); + assert.equal(normal.status, 0, normal.stderr); + assert.equal( + await readFile(path.join(target, version, "tab-share.png"), "utf8"), + "verified poster", + ); + assert.equal( + await readFile(path.join(target, version, "tab-share.mp4"), "utf8"), + "verified film", + ); +}); diff --git a/scripts/release.py b/scripts/release.py index df3f6b886..8c419989b 100644 --- a/scripts/release.py +++ b/scripts/release.py @@ -49,15 +49,39 @@ def check_highlights(version): raise ValueError(f"Release {version} adds features: write {' and '.join(missing)} first (docs/RELEASING.md)") +def check_tag(tag): + """A tag may build only the prepared version whose notes it names.""" + if not re.fullmatch(r"v\d+\.\d+\.\d+", tag): + raise ValueError(f"Invalid release tag: {tag}") + version = tag.removeprefix("v") + notes = Path(f".changes/{tag}.md") + if not re.search(rf"^## \[{re.escape(version)}\](?:\s|$)", notes.read_text(), re.MULTILINE): + raise ValueError(f"{notes} does not contain release {version}; run make release-version before tagging") + if version_updates(version, released=False): + raise ValueError(f"App and package versions do not match {tag}; run make release-version before tagging") + check_highlights(version) + + def main(): parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument("command", choices=["status", "version"]) + parser.add_argument("command", choices=["status", "version", "tag"]) parser.add_argument("--changie", required=True) + parser.add_argument("--tag", default="") args = parser.parse_args() def changie(*arguments): return subprocess.check_output([args.changie, *arguments], text=True) + if args.command == "tag": + check_tag(args.tag) + latest = changie("latest", "--remove-prefix").strip() + if args.tag != f"v{latest}": + raise ValueError(f"Release tag {args.tag} is not Changie's prepared latest release v{latest}") + if Path("CHANGELOG.md").read_text() != changie("merge", "--dry-run"): + raise ValueError("CHANGELOG.md is out of sync with Changie; run make release-version") + print(f"Prepared release {args.tag} is ready for native media validation.") + return + pending = list(Path(".changes/unreleased").glob("*.yaml")) if args.command == "version": # Every file is read and checked before the batch consumes the fragments. diff --git a/scripts/release_test.py b/scripts/release_test.py index 9b7acdeb9..63e500935 100644 --- a/scripts/release_test.py +++ b/scripts/release_test.py @@ -54,9 +54,12 @@ def read(self, file): def snapshot(self): return {str(p.relative_to(self.root)): p.read_bytes() for p in self.root.rglob("*") if p.is_file()} - def run_release(self, command, success=True): + def run_release(self, command, success=True, tag=None): + arguments = [sys.executable, str(ROOT / "scripts/release.py"), command, "--changie", CHANGIE] + if tag is not None: + arguments.extend(["--tag", tag]) result = subprocess.run( - [sys.executable, str(ROOT / "scripts/release.py"), command, "--changie", CHANGIE], + arguments, cwd=self.root, capture_output=True, text=True, check=False, ) if success: @@ -213,6 +216,49 @@ def test_status_checks_the_generated_changelog(self): self.run_release("status") self.assertEqual(self.read("CHANGELOG.md"), "# Changelog\n\n" + HISTORY) + def test_a_prepared_tag_is_read_only(self): + before = self.snapshot() + self.run_release("tag", tag="v0.1.4") + self.assertEqual(self.snapshot(), before) + + def test_a_tag_requires_its_own_prepared_notes(self): + before = self.snapshot() + refused = self.run_release("tag", success=False, tag="v0.1.5") + self.assertIn(".changes/v0.1.5.md", refused.stderr) + self.assertEqual(self.snapshot(), before) + self.write(".changes/v0.1.4.md", "## [0.1.3]\n\n- Wrong notes.\n") + refused = self.run_release("tag", success=False, tag="v0.1.4") + self.assertIn("does not contain release 0.1.4", refused.stderr) + + def test_a_tag_refuses_stale_app_or_package_versions(self): + for file in [CONFIG, DIRECTORIES[0] / "package.json", DIRECTORIES[1] / "package-lock.json"]: + with self.subTest(file=file): + original = self.read(file) + self.write(file, original.replace("0.1.4", "0.1.3")) + before = self.snapshot() + refused = self.run_release("tag", success=False, tag="v0.1.4") + self.assertIn("versions do not match", refused.stderr) + self.assertEqual(self.snapshot(), before) + self.write(file, original) + + def test_a_tag_refuses_a_stale_generated_changelog(self): + self.write("CHANGELOG.md", "Out of date.\n") + refused = self.run_release("tag", success=False, tag="v0.1.4") + self.assertIn("CHANGELOG.md is out of sync", refused.stderr) + + def test_a_tag_cannot_select_an_older_prepared_release(self): + self.write(".changes/v0.1.5.md", "## [0.1.5]\n\n- New release.\n") + refused = self.run_release("tag", success=False, tag="v0.1.4") + self.assertIn("not Changie's prepared latest release", refused.stderr) + + def test_a_tag_rejects_non_version_paths(self): + for tag in ["", "main", "0.1.4", "v../0.1.4", "v0.1.4/../0.1.5"]: + with self.subTest(tag=tag): + before = self.snapshot() + refused = self.run_release("tag", success=False, tag=tag) + self.assertIn("Invalid release tag", refused.stderr) + self.assertEqual(self.snapshot(), before) + if __name__ == "__main__": unittest.main() diff --git a/site/README.md b/site/README.md index 79d07e5b2..86812ac61 100644 --- a/site/README.md +++ b/site/README.md @@ -1,6 +1,6 @@ # getlilo.app -Lilo's website uses Astro to build static pages for Cloudflare Workers. It needs Node 22.23.4 or later and Python 3. All commands run from the repository root through Make. +Lilo's website uses Astro to build static pages for Cloudflare Workers. It needs Node 22.23.4 or later and Python 3. All commands run from the repository root through Make. Release media and its publication gate are documented in [release-media](../release-media/README.md). Coding agents must also follow the website's [Astro project rules](AGENTS.md). @@ -15,7 +15,6 @@ make site-check # Check lint, formatting, Astro templates and TypeScript make site-fix # Fix lint and formatting with Ultracite make site-test # Build, then test release notes, routes, links and metadata make site-e2e # Test the interactive demo in Chromium with production headers -make site-release-capture RELEASE=0.7.0 # Capture missing release screenshots from the demo make site-e2e SITE_E2E_ARGS='--browser=webkit tests/demo/links.spec.ts' # Check link actions in WebKit make site-deploy-check # Check Cloudflare deployment without publishing ``` @@ -43,33 +42,11 @@ The Undici override patches the HTTP clients used by Miniflare and guarded-fetch The build runs `generate.py` after Astro to derive a Markdown copy of each page, `llms-full.txt`, and FAQ structured data matching the visible questions and answers. These outputs live in `dist/` and are not committed. Both `/llms.txt` and `/llms-full.txt` are included in the deployed site. Edit the Astro sources, then rebuild. -## Release stories and recordings +## Release stories and media The changelog reads the generated root `CHANGELOG.md`. Optional stories in `src/content/releases/.json` add a translated introduction and up to three highlights. Each highlight lists the exact English release notes it describes; the build rejects missing translations, unknown versions and notes from another release. Use the existing story as an example, and edit the copy with Humanizer. -A story without `capture` shows its highlights with no recording. Stories with one choose a capture `source`: `demo` (the default) or `native`. A demo capture records opening, closing and reopening a link in the website demo and checks that the source tab stays selected. It uses local sample pages, isolated language/appearance contexts and blocked external requests: - -```sh -make site-release-capture RELEASE=x.y.z -``` - -For `source: "demo"`, the command saves four PNG posters, four animated WebP recordings and `capture.json` under `src/assets/releases//`. Its record includes the duration, source revision and UI/demo source digest. Run it from a checkout whose app version matches the story. - -The 0.7.0 pilot uses `source: "native"`: actual installed Lilo 0.7.0, build 20, opening MDN's public CSS and StyleSheet pages in Peek. Public pages were inspected with Lilo MCP; the native window was captured with computer use in a separate private recording space. MCP-controlled tabs deliberately disable native Peek, and MCP screenshots capture only page contents. Keep personal tabs, history suggestions and account details out of recorded frames. - -Native capture keeps the browser's actual language and appearance in one shared recording. Its manifest lists `appVersion`, `appBuild`, `capturedAt`, canonical public `pages`, a `poster` filename, and `frames` containing each image's `file` and `delay` in milliseconds. Use simple filenames beside the manifest. Review the frames, then encode them: - -```sh -make site-release-import RELEASE=0.7.0 FRAMES=/tmp/lilo-capture/manifest.json RECAPTURE=1 -``` - -The importer normalizes the frame canvas and writes `peek-native.png`, `peek-native.webp` and `capture.json`. It verifies the app version, filenames, frame timing and archive replacement flag before writing. Provenance records the installed app version/build, capture tool, public URLs and source-frame digest. It does not attribute an installed browser to the current worktree. Review and commit these outputs with the story. Astro optimizes posters and serves recordings unchanged; Sharp is a pinned direct development dependency. - -The recording plays once when half the player is visible. One small icon over the image provides play, stop and replay, with translated accessible labels. Reduce Motion shows the poster until explicit playback. Scrolling away, hiding the page or changing appearance restores the poster. Reading highlights and full notes works without JavaScript. - -Each highlight can define an optional `action` with translated `label` and `href` fields. It appears with the feature text, outside the recording. Highlights for installed features can omit it; no demo action is added automatically. - -Existing archives stay unchanged on later builds and releases; incomplete archives require explicit replacement. For a demo story, `make site-release-capture RELEASE=x.y.z RECAPTURE=1` replaces its media using an owned server on port 8791 and Playwright's Chromium browser. For a native story, use `site-release-import` with reviewed window frames. Missing native media stops release preparation with that instruction. `make release-version` prepares missing media before the website build; normal builds and `make validate` never record or replace media. +Current changelog media comes exclusively from the shared [native media catalog](../release-media/README.md), which chooses a film, screenshot or no media independently of story copy. ## Demo playground @@ -101,9 +78,9 @@ The imported history in `.changes/v0.1.5.md` contains several earlier versions. ## Deployment -Cloudflare Workers Builds uses `site` as its root directory and `npm run deploy` as its deploy command. Astro builds the website and Svelte demo together, then deploys `dist/`; no Worker script or Astro server adapter is needed. The full repository must be available for the shared UI sources, but only the website's dependencies are needed to build it. `wrangler.toml` keeps the existing custom domain, headers, redirects and 404 behavior. +The tag-triggered GitHub release workflow builds the Astro website from verified native release media, then hands `site/dist/` to its deployment job as a same-run artifact. After media validation and the signed draft succeed, `make site-deploy-verified` repeats the publication gate and deploys that exact output without rebuilding. A small Worker serves byte ranges for release MP4s, while pages and other files remain static. No Astro server adapter is used. `wrangler.toml` keeps the custom domain, headers, redirects and 404 behavior. -Set the build watch paths to `site/**`, `lilo-ui/**`, `Lilo/Resources/AppIcons/**`, `Lilo/App/KeyboardShortcuts.swift`, `Lilo/App/MainMenu.swift`, `Lilo/Terminal/TerminalTheme.swift`, `Makefile`, `CHANGELOG.md`, and `Xcode/Configs/Base.xcconfig` so shared interface, icon, shortcut, theme and release changes also rebuild the website. The site's `.nvmrc` selects Node 22.23.4. Workers Builds settings live in the Cloudflare dashboard. +Alexays must add `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID` to the GitHub `release` environment before deployment can succeed. See [Cloudflare setup](../docs/RELEASING.md#cloudflare-deployment-once) for token scope and secret configuration. When enabling this release deployment, disable the previous Cloudflare Workers Builds production branch deploy so an independent Git build cannot replace the verified artifact. Missing credentials or a failed media gate leave the release workflow failed and the GitHub release as a draft. The site's `.nvmrc` selects Node 22.23.4. For a manual deployment, authenticate with Cloudflare first, then run: diff --git a/site/captures/import-native.ts b/site/captures/import-native.ts deleted file mode 100644 index c329f8814..000000000 --- a/site/captures/import-native.ts +++ /dev/null @@ -1,182 +0,0 @@ -import { createHash } from "node:crypto"; -import { mkdirSync, readFileSync, writeFileSync } from "node:fs"; -import path from "node:path"; -import { fileURLToPath, pathToFileURL } from "node:url"; - -import sharp from "sharp"; -import { z } from "zod"; - -import { parseReleaseStories } from "../src/lib/release-stories.ts"; -import { encodeRecording } from "./recording.ts"; -import { captureArchiveState } from "./release-capture.ts"; - -const frameName = z.string().regex(/^[a-z0-9-]+\.png$/u); - -const manifestSchema = z.strictObject({ - appBuild: z.string().min(1), - appVersion: z.string().min(1), - capturedAt: z.iso.datetime(), - frames: z - .array( - z.strictObject({ - delay: z.number().int().positive().max(10_000), - file: frameName, - }) - ) - .min(2) - .max(64), - pages: z - .array( - z.url().refine((value) => { - const url = new URL(value); - - return ( - url.protocol === "https:" && - !url.username && - !url.password && - !url.search && - !url.hash - ); - }, "Use canonical public HTTPS URLs without credentials or query strings") - ) - .min(1), - poster: frameName, -}); - -export const importNativeCapture = async ( - root: string, - version: string, - manifestPath: string, - replace = false -) => { - const story = parseReleaseStories( - readFileSync(path.join(root, "CHANGELOG.md"), "utf-8"), - [ - JSON.parse( - readFileSync( - path.join(root, "site/src/content/releases", `${version}.json`), - "utf-8" - ) - ), - ] - ).get(version); - - if (story?.capture?.source !== "native") { - throw new Error("The release story must select a native capture"); - } - - const directory = path.join(root, "site/src/assets/releases", version); - - if (captureArchiveState(directory, "native") !== "missing" && !replace) { - throw new Error("Archived captures exist; use RECAPTURE=1 to replace them"); - } - - const manifest = manifestSchema.parse( - JSON.parse(readFileSync(manifestPath, "utf-8")) - ); - - const durationMs = manifest.frames.reduce( - (sum, frame) => sum + frame.delay, - 0 - ); - - if ( - manifest.appVersion !== version || - durationMs > 30_000 || - !manifest.frames.some((frame) => frame.file === manifest.poster) - ) { - throw new Error( - "Use this release's native frames, a matching poster, and at most 30 seconds" - ); - } - - const hash = createHash("sha256"); - - const posterSize = await sharp( - path.join(path.dirname(manifestPath), manifest.poster) - ).metadata(); - - if (!posterSize.width || !posterSize.height) { - throw new Error("The native poster has no image dimensions"); - } - - const width = Math.min(1440, posterSize.width); - const height = Math.round((width * posterSize.height) / posterSize.width); - - const frames = await Promise.all( - manifest.frames.map(async (frame) => { - const image = readFileSync( - path.join(path.dirname(manifestPath), frame.file) - ); - - hash.update(frame.file).update("\0").update(image); - - const scaled = await sharp(image) - .resize({ background: "#1a1925", fit: "contain", height, width }) - .png() - .toBuffer({ resolveWithObject: true }); - - return { - ...frame, - height: scaled.info.height, - image: scaled.data, - width: scaled.info.width, - }; - }) - ); - - const [first] = frames; - - if ( - !frames.every( - (frame) => frame.width === first.width && frame.height === first.height - ) - ) { - throw new Error("Native frames must have matching dimensions"); - } - - const poster = frames.find((frame) => frame.file === manifest.poster); - const recording = await encodeRecording(frames); - - const metadata = { - appBuild: manifest.appBuild, - appVersion: manifest.appVersion, - captureTool: "cua_repl", - capturedAt: manifest.capturedAt, - contextTool: "lilo-mcp", - durationMs, - files: ["peek-native.png", "peek-native.webp"], - height: first.height, - release: version, - scenario: "peek", - source: "native", - sourceDigest: hash.digest("hex"), - sourcePages: manifest.pages, - width: first.width, - }; - - mkdirSync(directory, { recursive: true }); - writeFileSync( - path.join(directory, "peek-native.png"), - poster?.image ?? first.image - ); - writeFileSync(path.join(directory, "peek-native.webp"), recording); - writeFileSync( - path.join(directory, "capture.json"), - `${JSON.stringify(metadata, null, 2)}\n` - ); - - return metadata; -}; - -if ( - process.argv[1] && - import.meta.url === pathToFileURL(process.argv[1]).href -) { - await importNativeCapture( - fileURLToPath(new URL("../../", import.meta.url)), - process.env.LILO_CAPTURE_VERSION ?? "", - process.env.LILO_CAPTURE_FRAMES ?? "", - process.env.LILO_CAPTURE_REPLACE === "1" - ); -} diff --git a/site/captures/peek.spec.ts b/site/captures/peek.spec.ts deleted file mode 100644 index dd71e0d6b..000000000 --- a/site/captures/peek.spec.ts +++ /dev/null @@ -1,180 +0,0 @@ -import { execFileSync } from "node:child_process"; -import { mkdirSync, readFileSync, writeFileSync } from "node:fs"; -import { setTimeout } from "node:timers/promises"; -import { fileURLToPath } from "node:url"; - -import { expect, test } from "@playwright/test"; - -import { parseReleaseStories } from "../src/lib/release-stories"; -import { encodeRecording } from "./recording.ts"; -import type { RecordingFrame } from "./recording.ts"; -import { captureArchiveState, captureSourceDigest } from "./release-capture.ts"; - -const root = fileURLToPath(new URL("../../", import.meta.url)); -const version = process.env.LILO_CAPTURE_VERSION ?? ""; - -if (!/^\d+\.\d+\.\d+$/u.test(version)) { - throw new Error("Use make site-release-capture RELEASE=x.y.z"); -} - -const story = parseReleaseStories( - readFileSync(`${root}/CHANGELOG.md`, "utf-8"), - [ - JSON.parse( - readFileSync(`${root}/site/src/content/releases/${version}.json`, "utf-8") - ), - ] -).get(version); - -if (story?.capture?.scenario !== "peek") { - throw new Error(`No Peek capture scenario for release ${version}`); -} - -const directory = `${root}/site/src/assets/releases/${version}`; - -test("capture Peek without leaving the source tab", async ({ browser }) => { - const sourceDigest = captureSourceDigest(root); - - const files: { name: string; pixels: Buffer }[] = []; - const external: string[] = []; - - for (const lang of ["en", "fr"] as const) { - for (const colorScheme of ["light", "dark"] as const) { - // oxlint-disable-next-line no-await-in-loop -- Each capture gets a fresh, isolated demo session. - const context = await browser.newContext({ - colorScheme, - deviceScaleFactor: 2, - locale: lang, - reducedMotion: "no-preference", - viewport: { height: 720, width: 1120 }, - }); - - try { - // oxlint-disable no-await-in-loop -- Capture the same ordered scenario in each locale and appearance. - const page = await context.newPage(); - await page.route("**/*", (route) => { - const url = route.request().url(); - - if (new URL(url).origin === "http://127.0.0.1:8791") { - return route.continue(); - } - - external.push(url); - - return route.abort(); - }); - await page.goto(`/demo/?lang=${lang}`); - await expect(page.locator("#app")).toHaveAttribute( - "data-version", - version - ); - await expect(page.locator(".repo-top")).toBeVisible(); - await page.locator(".new-tab-row:visible").click(); - const command = page.locator(".command-bar-input"); - await command.fill("https://guide.example.com/links"); - await command.press("Enter"); - - const notes = page.locator( - '.quick-links a[href="https://notes.example.com"]' - ); - - // Astro's development toolbar is not part of the shipped demo. - await page.evaluate(() => - document.querySelector("astro-dev-toolbar")?.remove() - ); - await page.evaluate(() => document.fonts.ready); - await notes.hover(); - const frames: RecordingFrame[] = []; - - const frame = async (delay: number) => { - frames.push({ - delay, - image: await page.screenshot({ caret: "hide", scale: "css" }), - }); - }; - - const transition = async () => { - for (let index = 0; index < 8; index += 1) { - await frame(50); - await setTimeout(50); - } - }; - - await frame(800); - await notes.click({ modifiers: ["Shift"] }); - await transition(); - const peek = page.getByRole("dialog", { exact: true, name: "Peek" }); - await expect( - peek.getByRole("textbox", { - exact: true, - name: lang === "fr" ? "Vos notes" : "Your notes", - }) - ).toBeVisible(); - await expect( - page.getByRole("treeitem", { exact: true, name: "guide.example.com" }) - ).toHaveAttribute("aria-selected", "true"); - await frame(1600); - await peek.getByRole("button").first().click(); - await transition(); - await expect(peek).toHaveCount(0); - await frame(800); - await notes.click({ modifiers: ["Shift"] }); - await transition(); - await expect(peek).toBeVisible(); - await frame(1600); - files.push( - { - name: `peek-${lang}-${colorScheme}.png`, - pixels: await page.screenshot({ - animations: "disabled", - caret: "hide", - }), - }, - { - name: `peek-${lang}-${colorScheme}.webp`, - pixels: await encodeRecording(frames), - } - ); - } finally { - await context.close(); - // oxlint-enable no-await-in-loop - } - } - } - - expect(external).toEqual([]); - - if ( - captureArchiveState(directory) !== "missing" && - process.env.LILO_CAPTURE_REPLACE !== "1" - ) { - throw new Error("Archived captures exist; use RECAPTURE=1 to replace them"); - } - - mkdirSync(directory, { recursive: true }); - - for (const file of files) { - writeFileSync(`${directory}/${file.name}`, file.pixels); - } - - writeFileSync( - `${directory}/capture.json`, - `${JSON.stringify( - { - durationMs: 6000, - files: files.map((file) => file.name), - height: 720, - release: version, - scenario: "peek", - sourceDigest, - sourceRevision: execFileSync("git", ["rev-parse", "HEAD"], { - cwd: root, - encoding: "utf-8", - }).trim(), - width: 1120, - }, - null, - 2 - )}\n` - ); -}); diff --git a/site/captures/recording.ts b/site/captures/recording.ts deleted file mode 100644 index 8c8e7bf5d..000000000 --- a/site/captures/recording.ts +++ /dev/null @@ -1,28 +0,0 @@ -import sharp from "sharp"; - -export interface RecordingFrame { - delay: number; - image: Buffer; -} - -export const encodeRecording = (frames: RecordingFrame[]) => { - if ( - frames.length < 2 || - frames.length > 64 || - frames.some((frame) => !Number.isFinite(frame.delay) || frame.delay <= 0) - ) { - throw new Error("A recording needs 2 to 64 frames with positive delays"); - } - - return sharp( - frames.map((frame) => frame.image), - { join: { animated: true } } - ) - .webp({ - delay: frames.map((frame) => frame.delay), - effort: 3, - loop: 1, - quality: 82, - }) - .toBuffer(); -}; diff --git a/site/captures/release-capture.ts b/site/captures/release-capture.ts deleted file mode 100644 index 8e2f09d0f..000000000 --- a/site/captures/release-capture.ts +++ /dev/null @@ -1,150 +0,0 @@ -import { execFileSync, spawnSync } from "node:child_process"; -import { createHash } from "node:crypto"; -import { existsSync, readFileSync } from "node:fs"; -import { createRequire } from "node:module"; -import { fileURLToPath, pathToFileURL } from "node:url"; - -import { parseReleaseStories } from "../src/lib/release-stories.ts"; - -export const captureArchiveState = ( - directory: string, - source: "demo" | "native" = "demo" -) => { - const media = - source === "native" - ? ["peek-native.png", "peek-native.webp"] - : [ - "peek-en-light.png", - "peek-en-dark.png", - "peek-fr-light.png", - "peek-fr-dark.png", - "peek-en-light.webp", - "peek-en-dark.webp", - "peek-fr-light.webp", - "peek-fr-dark.webp", - ]; - - const present = ["capture.json", ...media].map((name) => - existsSync(`${directory}/${name}`) - ); - - if (present.every(Boolean)) { - return "complete"; - } - - return present.some(Boolean) ? "incomplete" : "missing"; -}; - -export const captureSourceDigest = (root: string) => { - const paths = execFileSync( - "git", - [ - "ls-files", - "-z", - "--cached", - "--others", - "--exclude-standard", - "--", - "lilo-ui/src", - "site/src/demo", - "site/src/assets/demo", - "site/src/lib/i18n.ts", - "site/src/lib/demo-assets.ts", - "site/src/lib/native-demo-data.ts", - "site/src/pages/demo.astro", - "site/package-lock.json", - ], - { cwd: root, encoding: "utf-8" } - ) - .split("\0") - .filter((path) => path && existsSync(`${root}/${path}`)) - .toSorted(); - - const hash = createHash("sha256"); - - for (const path of paths) { - hash - .update(path) - .update("\0") - .update(readFileSync(`${root}/${path}`)); - } - - return hash.digest("hex"); -}; - -const main = () => { - const version = process.env.LILO_CAPTURE_VERSION ?? ""; - - if (!/^\d+\.\d+\.\d+$/u.test(version)) { - throw new Error("Use make site-release-capture RELEASE=x.y.z"); - } - - const site = fileURLToPath(new URL("../", import.meta.url)); - - const story = parseReleaseStories( - readFileSync(`${site}/../CHANGELOG.md`, "utf-8"), - [ - JSON.parse( - readFileSync(`${site}/src/content/releases/${version}.json`, "utf-8") - ), - ] - ).get(version); - - if (story && !story.capture) { - process.stdout.write(`No recording for ${version}\n`); - - return; - } - - const source = story?.capture?.source ?? "demo"; - - const state = captureArchiveState( - `${site}/src/assets/releases/${version}`, - source - ); - - if (process.env.LILO_CAPTURE_REPLACE !== "1") { - if (state === "complete") { - process.stdout.write(`Keeping archived captures for ${version}\n`); - - return; - } - - if (state === "incomplete") { - throw new Error( - `Incomplete archived captures for ${version}; use RECAPTURE=1 to replace them` - ); - } - } - - const require = createRequire(import.meta.url); - - if (source === "native") { - throw new Error( - "Native recordings need reviewed window frames; use make site-release-import RELEASE=x.y.z FRAMES=/path/to/manifest.json RECAPTURE=1" - ); - } - - const result = spawnSync( - process.execPath, - [ - require.resolve("@playwright/test/cli"), - "test", - "--config=playwright.capture.config.ts", - ], - { cwd: site, stdio: "inherit" } - ); - - if (result.error) { - throw result.error; - } - - process.exitCode = result.status ?? 1; -}; - -if ( - process.argv[1] && - import.meta.url === pathToFileURL(process.argv[1]).href -) { - main(); -} diff --git a/site/generate.py b/site/generate.py index 79cbd6bf1..83c453d05 100644 --- a/site/generate.py +++ b/site/generate.py @@ -10,7 +10,7 @@ DIST = Path(__file__).resolve().parent / "dist" VOID = {"meta", "link", "br", "img", "input", "hr", "source"} -BLOCK = {"main", "section", "article", "header", "div", "p", "h1", "h2", "h3", "h4", "details", "summary", "table", "footer", "ul", "ol", "li", "time"} +BLOCK = {"main", "section", "article", "header", "div", "p", "h1", "h2", "h3", "h4", "details", "summary", "table", "footer", "ul", "ol", "li", "time", "figure", "figcaption"} # Interactive mockups and decoration: their text is illustration, not page content. SKIP_TAGS = {"script", "style", "svg", "button", "head", "nav"} SKIP_CLASSES = {"window", "store", "termcard", "tag", "mark", "nav", "skip-link"} diff --git a/site/package.json b/site/package.json index df326134f..e5a7ab682 100644 --- a/site/package.json +++ b/site/package.json @@ -3,14 +3,12 @@ "private": true, "type": "module", "scripts": { - "capture:release": "node captures/release-capture.ts", - "capture:import": "node captures/import-native.ts", "dev": "astro dev --host 127.0.0.1", "preview": "wrangler dev --ip 127.0.0.1", "build": "astro build && python3 generate.py", "check": "ultracite check && NODE_PATH=./node_modules astro check && svelte-check --tsconfig ./tsconfig.json", "test": "node --test tests/*.test.ts tests/demo/*.test.ts && python3 -B -m unittest discover -s tests", - "deploy": "npm run build && wrangler deploy", + "deploy": "node ../release-media/check.mjs --publish && npm run build && wrangler deploy", "deploy:check": "wrangler deploy --dry-run", "fix": "ultracite fix", "test:e2e": "playwright test" diff --git a/site/playwright.capture.config.ts b/site/playwright.capture.config.ts deleted file mode 100644 index fb72bfc07..000000000 --- a/site/playwright.capture.config.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { fileURLToPath } from "node:url"; - -import { defineConfig } from "@playwright/test"; - -export default defineConfig({ - forbidOnly: true, - retries: 0, - testDir: "./captures", - testMatch: "*.spec.ts", - timeout: 60_000, - use: { - baseURL: "http://127.0.0.1:8791", - reducedMotion: "reduce", - }, - webServer: { - command: "make site-capture-server", - cwd: fileURLToPath(new URL("..", import.meta.url)), - reuseExistingServer: false, - url: "http://127.0.0.1:8791/demo/", - }, - workers: 1, -}); diff --git a/site/public/_headers b/site/public/_headers index d5708a71c..1651584da 100644 --- a/site/public/_headers +++ b/site/public/_headers @@ -1,5 +1,5 @@ /* - Content-Security-Policy: default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self'; font-src 'self'; frame-src 'self'; base-uri 'none'; form-action 'none'; frame-ancestors 'none' + Content-Security-Policy: default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self'; media-src 'self'; font-src 'self'; frame-src 'self'; base-uri 'none'; form-action 'none'; frame-ancestors 'none' X-Content-Type-Options: nosniff Referrer-Policy: strict-origin-when-cross-origin Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=(), usb=() @@ -8,7 +8,7 @@ # Only the interactive app can be embedded by the website. /demo/* ! Content-Security-Policy - Content-Security-Policy: default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:; connect-src 'self'; base-uri 'none'; form-action 'none'; frame-ancestors 'self' + Content-Security-Policy: default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; media-src 'self'; font-src 'self' data:; connect-src 'self'; base-uri 'none'; form-action 'none'; frame-ancestors 'self' # Cached for a year: a changed font must ship under a new file name /fonts/* diff --git a/site/public/release-media b/site/public/release-media new file mode 120000 index 000000000..241abbb28 --- /dev/null +++ b/site/public/release-media @@ -0,0 +1 @@ +../../release-media/assets \ No newline at end of file diff --git a/site/src/assets/releases/0.7.0/capture.json b/site/src/assets/releases/0.7.0/capture.json deleted file mode 100644 index 83a790d2c..000000000 --- a/site/src/assets/releases/0.7.0/capture.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "appBuild": "20", - "appVersion": "0.7.0", - "captureTool": "cua_repl", - "capturedAt": "2026-10-28T13:41:25.400476Z", - "contextTool": "lilo-mcp", - "durationMs": 6000, - "files": ["peek-native.png", "peek-native.webp"], - "height": 904, - "release": "0.7.0", - "scenario": "peek", - "source": "native", - "sourceDigest": "3dc5a1f05df5fb3e477675eaf5982743aade8143713cb54798ecd26d72fade48", - "sourcePages": [ - "https://developer.mozilla.org/en-US/docs/Web/CSS", - "https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet" - ], - "width": 1440 -} diff --git a/site/src/assets/releases/0.7.0/peek-native.png b/site/src/assets/releases/0.7.0/peek-native.png deleted file mode 100644 index 01086e287..000000000 Binary files a/site/src/assets/releases/0.7.0/peek-native.png and /dev/null differ diff --git a/site/src/assets/releases/0.7.0/peek-native.webp b/site/src/assets/releases/0.7.0/peek-native.webp deleted file mode 100644 index 5212f74e4..000000000 Binary files a/site/src/assets/releases/0.7.0/peek-native.webp and /dev/null differ diff --git a/site/src/components/Changelog.astro b/site/src/components/Changelog.astro index 48d52677e..e9a05258f 100644 --- a/site/src/components/Changelog.astro +++ b/site/src/components/Changelog.astro @@ -1,11 +1,13 @@ --- import changelog from "../../../CHANGELOG.md?raw"; +import { mediaForRelease } from "../../../release-media/catalog"; import Layout from "../layouts/Layout.astro"; import { parseChangelog } from "../lib/changelog.ts"; import { copy } from "../lib/i18n"; import type { Locale } from "../lib/i18n"; import { parseReleaseStories } from "../lib/release-stories"; import PageSection from "./PageSection.astro"; +import ReleaseMedia from "./ReleaseMedia.astro"; import ReleaseStory from "./ReleaseStory.astro"; interface Props { @@ -16,6 +18,10 @@ const { lang } = Astro.props; const text = copy[lang]; const releases = parseChangelog(changelog); +const media = new Map( + releases.map((release) => [release.version, mediaForRelease(release.version)]) +); + const stories = parseReleaseStories( changelog, Object.values( @@ -75,14 +81,17 @@ const dateFormat = new Intl.DateTimeFormat(lang, {
+ {media.get(release.version) && ( + + )} {stories.has(release.version) ? ( - <> - -
- {text.releaseAllChanges} -
-
- + + ) : null} + {stories.has(release.version) || media.get(release.version) ? ( +
+ {text.releaseAllChanges} +
+
) : (
)} diff --git a/site/src/components/ReleaseMedia.astro b/site/src/components/ReleaseMedia.astro new file mode 100644 index 000000000..764aba69e --- /dev/null +++ b/site/src/components/ReleaseMedia.astro @@ -0,0 +1,111 @@ +--- +import type { ReleaseMedia } from "../../../release-media/catalog"; +import type { Locale } from "../lib/i18n"; +import { copy } from "../lib/i18n"; + +interface Props { + media: ReleaseMedia; + lang: Locale; +} + +const { media, lang } = Astro.props; +const captionId = `release-media-caption-${media.poster}`; +--- + +
+ {media.kind === "video" ? ( + + ) : ( + {media.alt.en} + )} +
+ {media.alt[lang]}{" "} + {copy[lang].releaseMediaLanguage} +
+
+ + + + diff --git a/site/src/components/ReleaseRecording.astro b/site/src/components/ReleaseRecording.astro deleted file mode 100644 index 87297eb38..000000000 --- a/site/src/components/ReleaseRecording.astro +++ /dev/null @@ -1,348 +0,0 @@ ---- -import type { ImageMetadata } from "astro"; -import { Image } from "astro:assets"; -import { z } from "zod"; - -import { copy } from "../lib/i18n"; -import type { Locale } from "../lib/i18n"; -import type { ReleaseStory } from "../lib/release-stories"; - -interface Props { - capture: NonNullable; - lang: Locale; - story: ReleaseStory; -} - -const { capture, lang, story } = Astro.props; -const text = copy[lang]; - -const posters = import.meta.glob<{ default: ImageMetadata }>( - "../assets/releases/*/*.png", - { eager: true } -); - -const recordings = import.meta.glob("../assets/releases/*/*.webp", { - eager: true, - import: "default", - query: "?url", -}); - -const records = import.meta.glob("../assets/releases/*/capture.json", { - eager: true, - import: "default", -}); - -const prefix = `../assets/releases/${story.version}`; - -const metadata = z - .object({ durationMs: z.number().int().positive().max(30_000) }) - .safeParse(records[`${prefix}/capture.json`]); - -if (!metadata.success) { - throw new Error(`Missing recording duration for release ${story.version}`); -} - -const duration = metadata.data.durationMs; - -const media = (appearance: "light" | "dark") => { - const variant = - capture.source === "native" ? "native" : `${lang}-${appearance}`; - - const path = `${prefix}/${capture.scenario}-${variant}`; - const poster = posters[`${path}.png`]?.default; - const recording = recordings[`${path}.webp`]; - - if (!poster || !recording) { - throw new Error( - `Missing ${path}; run make site-release-capture RELEASE=${story.version}` - ); - } - - return { poster, recording }; -}; - -const light = media("light"); -const dark = media("dark"); ---- - -
- {text.releasePeekImage} - {text.releasePeekImage} - -
- - - - diff --git a/site/src/components/ReleaseStory.astro b/site/src/components/ReleaseStory.astro index 99635f979..fde6c5b62 100644 --- a/site/src/components/ReleaseStory.astro +++ b/site/src/components/ReleaseStory.astro @@ -1,7 +1,6 @@ --- import type { Locale } from "../lib/i18n"; import type { ReleaseStory } from "../lib/release-stories"; -import ReleaseRecording from "./ReleaseRecording.astro"; interface Props { lang: Locale; @@ -17,10 +16,7 @@ const { lang, story } = Astro.props;
{story.highlights.map((highlight) => (
)} - {story.capture && highlight.id === story.capture.highlight && ( - - )}
))}
@@ -81,9 +74,6 @@ const { lang, story } = Astro.props; .release-highlight { min-width: 0; } - .lead { - grid-column: 1 / -1; - } h4 { margin: 0; font-size: 20px; diff --git a/site/src/content/releases/0.10.0.json b/site/src/content/releases/0.10.0.json index a6bc30bc3..12db984af 100644 --- a/site/src/content/releases/0.10.0.json +++ b/site/src/content/releases/0.10.0.json @@ -10,31 +10,31 @@ }, "highlights": [ { - "id": "fresh-start", + "id": "archived-tabs", "title": { - "en": "Come back to a clean window.", - "fr": "Retrouvez une fenêtre au propre." + "en": "Archived tabs, one click away.", + "fr": "Les onglets archivés, à un clic." }, "body": { - "en": "After a long enough absence, Lilo opens with no tab selected, and your pinned and bookmarked tabs back on their home page. The tabs it archived meanwhile come back with Undo. Turn on Open to an empty window to start this way at every launch.", - "fr": "Après une absence assez longue, Lilo s'ouvre sans onglet sélectionné, vos onglets épinglés et favoris revenus à leur page d'accueil. Les onglets archivés entre-temps reviennent avec Annuler. Activez Ouvrir une fenêtre vide pour partir ainsi à chaque lancement." + "en": "The tabs Lilo archived in the last day wait next to New Tab, or in the tab bar, ready to come back in one click.", + "fr": "Les onglets que Lilo a archivés dans la journée attendent à côté de Nouvel onglet, ou dans la barre d'onglets, prêts à revenir en un clic." }, "notes": [ - "After a long enough absence, Lilo opens on a clean window: no tab selected, pinned and bookmarked tabs back on their home page, and the tabs it archived meanwhile offered back with Undo. The new Open to an empty window setting does this on every launch." + "The tabs Lilo archived in the last day wait next to New Tab, or in the tab bar, ready to come back in one click." ] }, { - "id": "archived-tabs", + "id": "fresh-start", "title": { - "en": "Archived tabs, one click away.", - "fr": "Les onglets archivés, à un clic." + "en": "Come back to a clean window.", + "fr": "Retrouvez une fenêtre au propre." }, "body": { - "en": "The tabs Lilo archived in the last day wait next to New Tab, or in the tab bar, ready to come back in one click.", - "fr": "Les onglets que Lilo a archivés dans la journée attendent à côté de Nouvel onglet, ou dans la barre d'onglets, prêts à revenir en un clic." + "en": "After a long enough absence, Lilo opens with no tab selected, and your pinned and bookmarked tabs back on their home page. The tabs it archived meanwhile come back with Undo. Turn on Open to an empty window to start this way at every launch.", + "fr": "Après une absence assez longue, Lilo s'ouvre sans onglet sélectionné, vos onglets épinglés et favoris revenus à leur page d'accueil. Les onglets archivés entre-temps reviennent avec Annuler. Activez Ouvrir une fenêtre vide pour partir ainsi à chaque lancement." }, "notes": [ - "The tabs Lilo archived in the last day wait next to New Tab, or in the tab bar, ready to come back in one click." + "After a long enough absence, Lilo opens on a clean window: no tab selected, pinned and bookmarked tabs back on their home page, and the tabs it archived meanwhile offered back with Undo. The new Open to an empty window setting does this on every launch." ] } ] diff --git a/site/src/content/releases/0.11.0.json b/site/src/content/releases/0.11.0.json index 3173d8909..a84dcc4d8 100644 --- a/site/src/content/releases/0.11.0.json +++ b/site/src/content/releases/0.11.0.json @@ -5,8 +5,8 @@ "fr": "À chaque Space son style." }, "introduction": { - "en": "Glass, grain, and colors that follow your sites, your wallpaper or the time of day.", - "fr": "Du verre, du grain, et des couleurs qui suivent vos sites, votre fond d'écran ou l'heure." + "en": "Pick glass, grain or solid for each Space.", + "fr": "Choisissez du verre, du grain ou de l’uni pour chaque Space." }, "highlights": [ { @@ -22,20 +22,6 @@ "notes": [ "Each Space can be made of glass, with Liquid Glass tinted by its color, or of grain, its color under a fine film grain: pick it on the window preview under Appearance, in the Space editor or during setup." ] - }, - { - "id": "colors", - "title": { - "en": "Colors that follow you.", - "fr": "Des couleurs qui vous suivent." - }, - "body": { - "en": "Take the color of the site you're on or of your wallpaper, or let your color warm up in the evening.", - "fr": "Prenez la couleur du site ouvert ou de votre fond d'écran, ou laissez votre couleur se réchauffer le soir." - }, - "notes": [ - "Each Space can be made of glass, with Liquid Glass tinted by its color, or of grain, its color under a fine film grain: pick it on the window preview under Appearance, in the Space editor or during setup." - ] } ] } diff --git a/site/src/content/releases/0.7.0.json b/site/src/content/releases/0.7.0.json index c831db617..e98563169 100644 --- a/site/src/content/releases/0.7.0.json +++ b/site/src/content/releases/0.7.0.json @@ -8,12 +8,21 @@ "en": "Keep a link or a call close while you carry on browsing. Lilo also speaks four more languages.", "fr": "Gardez un lien ou un appel à portée de main pendant que vous naviguez. Lilo parle aussi quatre langues de plus." }, - "capture": { - "scenario": "peek", - "source": "native", - "highlight": "peek" - }, "highlights": [ + { + "id": "calls", + "title": { + "en": "Your call stays close.", + "fr": "Votre appel reste à portée de main." + }, + "body": { + "en": "For supported calls, mute your microphone, turn off your camera or leave from the sidebar. You can keep reading in another tab. During a call, ⇧⌘M mutes your microphone.", + "fr": "Pour les appels compatibles, coupez le micro, éteignez la caméra ou quittez l'appel depuis la barre latérale, tout en lisant un autre onglet. Pendant un appel, ⇧⌘M coupe le micro." + }, + "notes": [ + "A call card in the sidebar mutes the microphone, turns the camera off and leaves the call of a Meet-like tab from anywhere, and ⇧⌘M mutes the call's microphone during a call." + ] + }, { "id": "peek", "action": { @@ -38,20 +47,6 @@ "Try Peek, background tabs, Split View and Little windows from links in the website demo's local example pages." ] }, - { - "id": "calls", - "title": { - "en": "Your call stays close.", - "fr": "Votre appel reste à portée de main." - }, - "body": { - "en": "For supported calls, mute your microphone, turn off your camera or leave from the sidebar. You can keep reading in another tab. During a call, ⇧⌘M mutes your microphone.", - "fr": "Pour les appels compatibles, coupez le micro, éteignez la caméra ou quittez l'appel depuis la barre latérale, tout en lisant un autre onglet. Pendant un appel, ⇧⌘M coupe le micro." - }, - "notes": [ - "A call card in the sidebar mutes the microphone, turns the camera off and leaves the call of a Meet-like tab from anywhere, and ⇧⌘M mutes the call's microphone during a call." - ] - }, { "id": "languages", "title": { diff --git a/site/src/lib/i18n.ts b/site/src/lib/i18n.ts index 8c1b66863..113e36532 100644 --- a/site/src/lib/i18n.ts +++ b/site/src/lib/i18n.ts @@ -125,11 +125,7 @@ export const copy = { reactDevtoolsDescription: "Inspect components", releaseAllChanges: "All changes in this release", releaseLink: "View on GitHub", - releasePeekImage: - "Lilo with a linked page open in Peek above the original page. The source tab stays selected in the sidebar.", - releasePlayRecording: "Play walkthrough", - releaseReplayRecording: "Replay", - releaseStopRecording: "Stop", + releaseMediaLanguage: "English-language illustration", releases: "Release notes", reportBug: "Report a bug", resources: "Resources", @@ -267,11 +263,7 @@ export const copy = { reactDevtoolsDescription: "Inspecter les composants", releaseAllChanges: "Tous les changements de cette version", releaseLink: "Voir sur GitHub", - releasePeekImage: - "Lilo avec un lien ouvert dans un aperçu au-dessus de la page d'origine. L'onglet de départ reste sélectionné dans la barre latérale.", - releasePlayRecording: "Lire l'animation", - releaseReplayRecording: "Revoir", - releaseStopRecording: "Arrêter", + releaseMediaLanguage: "Illustration en anglais", releases: "Notes de version", reportBug: "Signaler un bug", resources: "Ressources", diff --git a/site/src/lib/release-stories.ts b/site/src/lib/release-stories.ts index eb9eb7ac8..2bc551a17 100644 --- a/site/src/lib/release-stories.ts +++ b/site/src/lib/release-stories.ts @@ -8,13 +8,6 @@ const translatedText = z.strictObject({ }); const storySchema = z.strictObject({ - capture: z - .strictObject({ - highlight: z.string().min(1), - scenario: z.literal("peek"), - source: z.enum(["demo", "native"]).default("demo"), - }) - .optional(), highlights: z .array( z.strictObject({ @@ -62,10 +55,7 @@ export const parseReleaseStories = (markdown: string, entries: unknown[]) => { const ids = new Set(story.highlights.map((highlight) => highlight.id)); - if ( - ids.size !== story.highlights.length || - (story.capture && !ids.has(story.capture.highlight)) - ) { + if (ids.size !== story.highlights.length) { throw new Error(`Invalid highlight IDs in story ${story.version}`); } diff --git a/site/src/media-worker.ts b/site/src/media-worker.ts new file mode 100644 index 000000000..02ae349d5 --- /dev/null +++ b/site/src/media-worker.ts @@ -0,0 +1,94 @@ +interface Env { + ASSETS: { fetch: (request: Request) => Promise }; +} + +const byteRange = (header: string, length: number): [number, number] | null => { + const match = /^bytes=(?\d*)-(?\d*)$/u.exec(header); + + if (!match?.groups || length < 1) { + return null; + } + + const { start: rawStart, end: rawEnd } = match.groups; + + if (!rawStart) { + const suffix = Number(rawEnd); + + return Number.isSafeInteger(suffix) && suffix > 0 + ? [Math.max(0, length - suffix), length] + : null; + } + + const start = Number(rawStart); + const end = rawEnd ? Number(rawEnd) : length - 1; + + if ( + !Number.isSafeInteger(start) || + !Number.isSafeInteger(end) || + start >= length || + end < start + ) { + return null; + } + + return [start, Math.min(end, length - 1) + 1]; +}; + +export default { + async fetch(request: Request, env: Env): Promise { + const path = new URL(request.url).pathname; + + if ( + !/^\/release-media\/\d+\.\d+\.\d+\/[a-z0-9-]+\.mp4$/u.test(path) || + !["GET", "HEAD"].includes(request.method) + ) { + return env.ASSETS.fetch(request); + } + + const sourceHeaders = new Headers(request.headers); + sourceHeaders.delete("Range"); + + const source = await env.ASSETS.fetch( + new Request(request, { headers: sourceHeaders }) + ); + + if (source.status !== 200) { + return source; + } + + const headers = new Headers(source.headers); + headers.set("Accept-Ranges", "bytes"); + const requested = request.headers.get("Range"); + const ifRange = request.headers.get("If-Range"); + + if ( + !requested || + request.method === "HEAD" || + (ifRange && + ifRange !== headers.get("ETag") && + ifRange !== headers.get("Last-Modified")) + ) { + return new Response(source.body, { headers, status: 200 }); + } + + // Static assets ignore Range. These small release films need real partial responses for native seeking. + const body = await source.arrayBuffer(); + const range = byteRange(requested, body.byteLength); + + if (!range) { + headers.set("Content-Range", `bytes */${body.byteLength}`); + headers.set("Content-Length", "0"); + + return new Response(null, { headers, status: 416 }); + } + + const [start, end] = range; + headers.set( + "Content-Range", + `bytes ${start}-${end - 1}/${body.byteLength}` + ); + headers.set("Content-Length", String(end - start)); + + return new Response(body.slice(start, end), { headers, status: 206 }); + }, +}; diff --git a/site/tests/changelog.spec.ts b/site/tests/changelog.spec.ts index eca363217..41ff7913c 100644 --- a/site/tests/changelog.spec.ts +++ b/site/tests/changelog.spec.ts @@ -1,38 +1,6 @@ -import { createHash } from "node:crypto"; - import { expect, test } from "@playwright/test"; -test("recordings finish and restart their frames on cached replay", async ({ - page, -}) => { - await page.goto("/changelog/#v0.7.0"); - const player = page.locator(".release-recording"); - const button = player.locator(".recording-toggle"); - const image = player.locator("img:visible"); - await player.scrollIntoViewIfNeeded(); - const poster = await image.getAttribute("src"); - - const pixels = async () => - createHash("sha256") - .update(await image.screenshot()) - .digest("hex"); - - await button.click(); - await expect(image).toHaveJSProperty("complete", true); - const firstFrame = await pixels(); - await expect.poll(pixels, { timeout: 3000 }).not.toBe(firstFrame); - await expect(button).toHaveAttribute("aria-pressed", "false", { - timeout: 8000, - }); - await expect(image).toHaveJSProperty( - "src", - new URL(poster ?? "", page.url()).href - ); - await button.click(); - await expect.poll(pixels, { timeout: 700 }).toBe(firstFrame); - await expect.poll(pixels, { timeout: 3000 }).not.toBe(firstFrame); - await button.click(); -}); +test.use({ channel: "chrome" }); for (const language of ["en", "fr"] as const) { const path = language === "fr" ? "/fr/changelog/" : "/changelog/"; @@ -41,7 +9,7 @@ for (const language of ["en", "fr"] as const) { page, }) => { await page.goto(`${path}#v0.7.0`); - const release = page.locator("#v0\\.7\\.0"); + const release = page.locator('[id="v0.7.0"]'); await expect(release.locator(".release-highlight")).toHaveCount(3); const summary = release.locator("summary"); await summary.focus(); @@ -50,7 +18,7 @@ for (const language of ["en", "fr"] as const) { await expect(release.locator(".release-body")).toContainText("chrome.mdns"); await page.keyboard.press("Space"); await expect(release.locator(".release-body")).toBeHidden(); - await expect(page.locator("#v0\\.6\\.0 .release-body")).toBeVisible(); + await expect(page.locator('[id="v0.14.1"] .release-body')).toBeVisible(); const demo = release.locator(".recording-action"); await demo.focus(); await page.keyboard.press("Enter"); @@ -60,26 +28,31 @@ for (const language of ["en", "fr"] as const) { await expect(page.locator("#browser-demo")).toBeVisible(); }); - test(`release captures follow the chosen appearance (${language})`, async ({ + test(`changing appearance preserves the native media and keeps it paused (${language})`, async ({ page, }) => { await page.emulateMedia({ colorScheme: "dark" }); await page.goto(`${path}#v0.7.0`); - const capture = page.locator(".capture"); - await capture.scrollIntoViewIfNeeded(); - await expect(capture.locator(".capture-dark")).toBeVisible(); - await expect(capture.locator(".capture-light")).toBeHidden(); + const video = page.locator('[id="v0.7.0"] video'); + await video.scrollIntoViewIfNeeded(); + const poster = await video.getAttribute("poster"); + const source = await video.locator("source").getAttribute("src"); + expect(poster).toBeTruthy(); + expect(source).toBeTruthy(); await page .getByRole("button", { exact: true, name: language === "fr" ? "Mode sombre" : "Dark mode", }) .click(); - await expect(capture.locator(".capture-light")).toBeVisible(); - await expect(capture.locator(".capture-dark")).toBeHidden(); + await expect(page.locator("html")).toHaveAttribute("data-theme", "light"); + await expect(video).toHaveAttribute("poster", poster ?? ""); + await expect(video.locator("source")).toHaveAttribute("src", source ?? ""); + await expect(video).toHaveJSProperty("paused", true); + await expect(video).toHaveJSProperty("currentTime", 0); }); - test(`release highlights fit mobile and work without JavaScript (${language})`, async ({ + test(`release highlights, MP4 controls and stills fit mobile without JavaScript (${language})`, async ({ browser, }) => { const context = await browser.newContext({ @@ -91,18 +64,18 @@ for (const language of ["en", "fr"] as const) { try { const page = await context.newPage(); await page.goto(`${path}#v0.7.0`); - const release = page.locator("#v0\\.7\\.0"); + const release = page.locator('[id="v0.7.0"]'); await expect(release.locator(".release-highlight")).toHaveCount(3); - await expect(release.locator(".recording-toggle")).toBeHidden(); - const image = release.locator(".capture-dark"); + const video = release.locator("video[controls]"); + await video.scrollIntoViewIfNeeded(); + await expect(video).toBeVisible(); + await expect(video).toHaveAttribute("preload", "none"); + await expect(video).toHaveAttribute("poster", /\.png$/u); + const image = page.locator('[id="v0.6.0"] .release-media img'); await image.scrollIntoViewIfNeeded(); await expect(image).toBeVisible(); await expect(image).toHaveJSProperty("complete", true); - expect( - await image.evaluate((element) => - element instanceof HTMLImageElement ? element.naturalWidth : 0 - ) - ).toBeGreaterThan(0); + await expect(image).toHaveJSProperty("naturalWidth", 1920); const bounds = await release.evaluate((element) => ({ pageWidth: document.documentElement.scrollWidth, @@ -114,7 +87,7 @@ for (const language of ["en", "fr"] as const) { expect(bounds.pageWidth).toBe(bounds.width); await release.locator("summary").click(); await expect(release.locator(".release-body")).toBeVisible(); - await expect(page.locator("#v0\\.6\\.0 .release-body")).toBeVisible(); + await expect(page.locator('[id="v0.14.1"] .release-body')).toBeVisible(); await expect(release.locator(".recording-action")).toHaveAttribute( "href", `${language === "fr" ? "/fr/" : "/"}#browser-demo` @@ -124,76 +97,38 @@ for (const language of ["en", "fr"] as const) { } }); - test(`recordings respect Reduce Motion and stop outside the viewport (${language})`, async ({ + test(`MP4 playback is keyboard controlled under Reduce Motion and stops offscreen (${language})`, async ({ page, }) => { const requests: string[] = []; page.on("request", (request) => requests.push(request.url())); await page.goto(`${path}#v0.7.0`); - const player = page.locator(".release-recording"); - await player.scrollIntoViewIfNeeded(); - const button = player.locator(".recording-toggle"); - const image = player.locator("img:visible"); - const animation = await image.getAttribute("data-recording"); - const poster = await image.getAttribute("src"); - expect(animation).toBeTruthy(); - expect(poster).toBeTruthy(); - await expect(button).toHaveAttribute("aria-pressed", "false"); - await expect(button).toHaveAccessibleName( - language === "fr" ? "Lire l'animation" : "Play walkthrough" - ); - expect(requests).not.toContain(new URL(animation ?? "", page.url()).href); - await button.focus(); - await page.keyboard.press("Enter"); - await expect(button).toHaveAttribute("aria-pressed", "true"); - await expect(button).toHaveAccessibleName( - language === "fr" ? "Arrêter" : "Stop" - ); - await expect(image).toHaveAttribute("src", animation ?? ""); - await button.click(); - await expect(button).toHaveAttribute("aria-pressed", "false"); - await expect(image).toHaveJSProperty( - "src", - new URL(poster ?? "", page.url()).href - ); - await button.click(); - await expect(button).toHaveAttribute("aria-pressed", "true"); - await page.evaluate(() => scrollTo(0, document.body.scrollHeight)); - await expect(button).toHaveAttribute("aria-pressed", "false"); - await expect(image).toHaveJSProperty( - "src", - new URL(poster ?? "", page.url()).href - ); + const video = page.locator('[id="v0.7.0"] video'); + await video.scrollIntoViewIfNeeded(); + const source = await video.locator("source").getAttribute("src"); + expect(source).toBeTruthy(); + expect(requests).not.toContain(new URL(source ?? "", page.url()).href); + await expect(video).toHaveJSProperty("paused", true); + await expect(video).toHaveJSProperty("autoplay", false); + await video.focus(); + await page.keyboard.press("Space"); + await expect + .poll(() => video.evaluate((v: HTMLVideoElement) => v.currentTime)) + .toBeGreaterThan(0.2); + await expect(video).toHaveJSProperty("muted", false); + await page.locator("footer").scrollIntoViewIfNeeded(); + await expect(video).toHaveJSProperty("paused", true); }); - test(`recordings play once in view and stop when the appearance changes (${language})`, async ({ + test(`films stay still until requested with motion allowed (${language})`, async ({ page, }) => { - await page.emulateMedia({ - colorScheme: "dark", - reducedMotion: "no-preference", - }); + await page.emulateMedia({ reducedMotion: "no-preference" }); await page.goto(`${path}#v0.7.0`); - const player = page.locator(".release-recording"); - const button = player.locator(".recording-toggle"); - await player.scrollIntoViewIfNeeded(); - await expect(button).toHaveAttribute("aria-pressed", "true"); - await page - .getByRole("button", { - exact: true, - name: language === "fr" ? "Mode sombre" : "Dark mode", - }) - .click(); - await expect(button).toHaveAttribute("aria-pressed", "false"); - await expect(player.locator(".capture-light")).toBeVisible(); - await player.scrollIntoViewIfNeeded(); - await page.evaluate(async () => { - const settled = Promise.withResolvers(); - requestAnimationFrame(() => { - requestAnimationFrame(() => settled.resolve(undefined)); - }); - await settled.promise; - }); - await expect(button).toHaveAttribute("aria-pressed", "false"); + const video = page.locator('[id="v0.7.0"] video'); + await video.scrollIntoViewIfNeeded(); + await expect(video).toHaveJSProperty("autoplay", false); + await expect(video).toHaveJSProperty("paused", true); + await expect(video).toHaveJSProperty("currentTime", 0); }); } diff --git a/site/tests/changelog.test.ts b/site/tests/changelog.test.ts index 30f47fdea..6a47f4691 100644 --- a/site/tests/changelog.test.ts +++ b/site/tests/changelog.test.ts @@ -76,7 +76,6 @@ const storyHistory = `# Changelog `; const exampleStory = () => ({ - capture: { highlight: "peek", scenario: "peek" }, highlights: [ { body: { @@ -96,30 +95,6 @@ const exampleStory = () => ({ version: "0.9.0", }); -test("release stories can use a recording from installed Lilo", () => { - const story = exampleStory(); - - const native = { - ...story, - capture: { ...story.capture, source: "native" }, - }; - - assert.equal( - parseReleaseStories(storyHistory, [native]).get(native.version)?.capture - ?.source, - "native" - ); -}); - -test("release stories can omit the recording", () => { - const { capture: _capture, ...story } = exampleStory(); - - assert.equal( - parseReleaseStories(storyHistory, [story]).get(story.version)?.capture, - undefined - ); -}); - test("joins a story to its release while leaving ordinary releases available", () => { const stories = parseReleaseStories(storyHistory, [exampleStory()]); @@ -181,7 +156,7 @@ test("rejects a story sourced from another release or an unpublished version", ( ); }); -test("rejects missing translations, duplicate releases and invalid capture references", () => { +test("rejects missing translations, duplicate releases and duplicate highlight IDs", () => { assert.throws(() => parseReleaseStories(storyHistory, [ { ...exampleStory(), title: { en: "Peek" } }, @@ -191,16 +166,6 @@ test("rejects missing translations, duplicate releases and invalid capture refer () => parseReleaseStories(storyHistory, [exampleStory(), exampleStory()]), /duplicate release/u ); - assert.throws( - () => - parseReleaseStories(storyHistory, [ - { - ...exampleStory(), - capture: { highlight: "missing", scenario: "peek" }, - }, - ]), - /Invalid highlight IDs/u - ); const duplicate = exampleStory(); duplicate.highlights.push(duplicate.highlights[0]); assert.throws( diff --git a/site/tests/release-capture.test.ts b/site/tests/release-capture.test.ts deleted file mode 100644 index 091bf0e65..000000000 --- a/site/tests/release-capture.test.ts +++ /dev/null @@ -1,226 +0,0 @@ -import assert from "node:assert/strict"; -import { execFileSync } from "node:child_process"; -import { - mkdirSync, - mkdtempSync, - readFileSync, - rmSync, - unlinkSync, - writeFileSync, -} from "node:fs"; -import { tmpdir } from "node:os"; -import path from "node:path"; -import test from "node:test"; - -import sharp from "sharp"; - -import { importNativeCapture } from "../captures/import-native.ts"; -import { encodeRecording } from "../captures/recording.ts"; -import { - captureArchiveState, - captureSourceDigest, -} from "../captures/release-capture.ts"; - -test("recordings preserve multiple frames, their timing and a single playback", async () => { - const images = await Promise.all( - ["red", "blue"].map((background) => - sharp({ create: { background, channels: 3, height: 4, width: 4 } }) - .png() - .toBuffer() - ) - ); - - const recording = await encodeRecording([ - { delay: 120, image: images[0] }, - { delay: 340, image: images[1] }, - ]); - - const metadata = await sharp(recording, { animated: true }).metadata(); - assert.equal(metadata.format, "webp"); - assert.equal(metadata.pages, 2); - assert.equal(metadata.pageHeight, 4); - assert.equal(metadata.loop, 1); - assert.deepEqual(metadata.delay, [120, 340]); - assert.throws(() => encodeRecording([]), /2 to 64 frames/u); - assert.throws( - () => - encodeRecording([ - { delay: 0, image: images[0] }, - { delay: 50, image: images[1] }, - ]), - /positive delays/u - ); -}); - -test("recognizes incomplete capture archives without treating them as new", () => { - const directory = mkdtempSync(path.join(tmpdir(), "lilo-capture-")); - - try { - assert.equal(captureArchiveState(directory), "missing"); - writeFileSync(path.join(directory, "peek-en-light.png"), "older image"); - assert.equal(captureArchiveState(directory), "incomplete"); - writeFileSync(path.join(directory, "capture.json"), "{}"); - assert.equal(captureArchiveState(directory), "incomplete"); - - for (const name of [ - "peek-en-dark.png", - "peek-fr-light.png", - "peek-fr-dark.png", - "peek-en-light.webp", - "peek-en-dark.webp", - "peek-fr-light.webp", - "peek-fr-dark.webp", - ]) { - writeFileSync(path.join(directory, name), "image"); - } - - assert.equal(captureArchiveState(directory), "complete"); - unlinkSync(path.join(directory, "peek-en-light.png")); - assert.equal(captureArchiveState(directory), "incomplete"); - } finally { - rmSync(directory, { force: true, recursive: true }); - } -}); - -test("recognizes a native archive without requiring simulated locale variants", () => { - const directory = mkdtempSync(path.join(tmpdir(), "lilo-native-capture-")); - - try { - writeFileSync(path.join(directory, "capture.json"), "{}"); - writeFileSync(path.join(directory, "peek-native.png"), "poster"); - assert.equal(captureArchiveState(directory, "native"), "incomplete"); - writeFileSync(path.join(directory, "peek-native.webp"), "recording"); - assert.equal(captureArchiveState(directory, "native"), "complete"); - } finally { - rmSync(directory, { force: true, recursive: true }); - } -}); - -test("imports native frames with real provenance and protects the reviewed archive", async () => { - const root = mkdtempSync(path.join(tmpdir(), "lilo-native-import-")); - const content = path.join(root, "site/src/content/releases"); - const directory = path.join(root, "site/src/assets/releases/0.9.0"); - const manifestPath = path.join(root, "manifest.json"); - const text = { en: "Preview a link.", fr: "Ouvrez un lien en aperçu." }; - - const manifest = { - appBuild: "42", - appVersion: "0.9.0", - capturedAt: "2026-10-28T12:00:00Z", - frames: [ - { delay: 100, file: "closed.png" }, - { delay: 200, file: "open.png" }, - ], - pages: ["https://example.com/guide"], - poster: "open.png", - }; - - try { - mkdirSync(content, { recursive: true }); - writeFileSync( - path.join(root, "CHANGELOG.md"), - "# Changelog\n\n## [0.9.0] - 2026-10-28\n\n### Added\n\n- Preview a link.\n" - ); - writeFileSync( - path.join(content, "0.9.0.json"), - JSON.stringify({ - capture: { highlight: "peek", scenario: "peek", source: "native" }, - highlights: [ - { body: text, id: "peek", notes: ["Preview a link."], title: text }, - ], - introduction: text, - title: text, - version: "0.9.0", - }) - ); - await Promise.all( - ["closed", "open"].map(async (name, index) => { - await sharp({ - create: { - background: index === 0 ? "red" : "blue", - channels: 3, - height: index === 0 ? 2 : 4, - width: index === 0 ? 2 : 4, - }, - }) - .png() - .toFile(path.join(root, `${name}.png`)); - }) - ); - writeFileSync( - manifestPath, - JSON.stringify({ ...manifest, appVersion: "0.8.0" }) - ); - await assert.rejects( - importNativeCapture(root, "0.9.0", manifestPath), - /this release's native frames/u - ); - assert.equal(captureArchiveState(directory, "native"), "missing"); - - writeFileSync(manifestPath, JSON.stringify(manifest)); - const metadata = await importNativeCapture(root, "0.9.0", manifestPath); - assert.equal(metadata.appBuild, "42"); - assert.equal(metadata.source, "native"); - assert.equal(metadata.durationMs, 300); - assert.equal(metadata.width, 4); - assert.equal(metadata.height, 4); - - const image = await sharp(path.join(directory, "peek-native.webp"), { - animated: true, - }).metadata(); - - assert.equal(image.pages, 2); - assert.deepEqual(image.delay, [100, 200]); - assert.equal(image.loop, 1); - assert.equal(captureArchiveState(directory, "native"), "complete"); - await assert.rejects( - importNativeCapture(root, "0.9.0", manifestPath), - /RECAPTURE=1/u - ); - - const archive = readFileSync(path.join(directory, "capture.json"), "utf-8"); - writeFileSync( - manifestPath, - JSON.stringify({ - ...manifest, - frames: [{ delay: 100, file: "../closed.png" }, manifest.frames[1]], - }) - ); - await assert.rejects( - importNativeCapture(root, "0.9.0", manifestPath, true) - ); - assert.equal( - readFileSync(path.join(directory, "capture.json"), "utf-8"), - archive - ); - } finally { - rmSync(root, { force: true, recursive: true }); - } -}); - -test("capture provenance includes new sources and tolerates source deletion", () => { - const root = mkdtempSync(path.join(tmpdir(), "lilo-capture-source-")); - const source = path.join(root, "lilo-ui/src"); - const git = (...args: string[]) => execFileSync("git", args, { cwd: root }); - - try { - git("init", "--quiet"); - mkdirSync(source, { recursive: true }); - writeFileSync(path.join(source, "existing.ts"), "export const value = 1;"); - git("add", "lilo-ui/src/existing.ts"); - const original = captureSourceDigest(root); - writeFileSync(path.join(source, "new.ts"), "export const added = 2;"); - const withNewFile = captureSourceDigest(root); - assert.notEqual(withNewFile, original); - git("add", "lilo-ui/src/new.ts"); - assert.equal(captureSourceDigest(root), withNewFile); - unlinkSync(path.join(source, "existing.ts")); - const afterDeletion = captureSourceDigest(root); - assert.notEqual(afterDeletion, withNewFile); - writeFileSync(path.join(root, ".gitignore"), "lilo-ui/src/ignored.ts\n"); - writeFileSync(path.join(source, "ignored.ts"), "ignored"); - assert.equal(captureSourceDigest(root), afterDeletion); - } finally { - rmSync(root, { force: true, recursive: true }); - } -}); diff --git a/site/tests/release-media.spec.ts b/site/tests/release-media.spec.ts new file mode 100644 index 000000000..aca5660c5 --- /dev/null +++ b/site/tests/release-media.spec.ts @@ -0,0 +1,187 @@ +import { expect, test } from "@playwright/test"; + +// Continuous trace screenshots distort the video frame budget on software decoders. +test.use({ + channel: "chrome", + trace: { mode: "retain-on-failure", screenshots: false }, +}); + +test("the deployed media route supports bounded byte ranges and invalid ranges", async ({ + request, +}) => { + const url = "/release-media/0.11.0/spaces.mp4"; + const partial = await request.get(url, { headers: { Range: "bytes=0-1" } }); + expect(partial.status()).toBe(206); + expect(partial.headers()["content-range"]).toMatch(/^bytes 0-1\/\d+$/u); + const partialBody = await partial.body(); + expect(partialBody.length).toBe(2); + const suffix = await request.get(url, { headers: { Range: "bytes=-16" } }); + expect(suffix.status()).toBe(206); + const suffixBody = await suffix.body(); + expect(suffixBody.length).toBe(16); + + const invalid = await request.get(url, { + headers: { Range: "bytes=999999999-" }, + }); + + expect(invalid.status()).toBe(416); +}); + +for (const lang of ["en", "fr"]) { + for (const width of [1280, 390]) { + test(`${lang} release media plays with sound at ${width}px and stays still until requested`, async ({ + page, + }, testInfo) => { + await page.setViewportSize({ height: 900, width }); + await page.emulateMedia({ + colorScheme: width === 390 ? "dark" : "light", + }); + await page.goto(`${lang === "fr" ? "/fr" : ""}/changelog/#v0.11.0`); + const release = page.locator('[id="v0.11.0"]'); + const video = release.locator("video"); + await expect(video).toBeVisible(); + await expect(video).toHaveAttribute("lang", "en"); + const caption = release.locator("figcaption"); + await expect(caption).toBeVisible(); + await expect(caption).toHaveAttribute("lang", lang); + + const description = + lang === "fr" + ? "Choisissez du verre, du grain ou de l’uni pour chaque Space." + : "Choose glass, grain or solid for each Space."; + + const languageLabel = + lang === "fr" + ? "Illustration en anglais" + : "English-language illustration"; + + await expect(caption).toContainText(description); + await expect(caption).toContainText(languageLabel); + await expect(video).toHaveAccessibleName( + `${description} ${languageLabel}` + ); + expect( + await video.evaluate((v: HTMLVideoElement) => ({ + controls: v.controls, + muted: v.muted, + paused: v.paused, + time: v.currentTime, + })) + ).toEqual({ controls: true, muted: false, paused: true, time: 0 }); + await video.evaluate((v: HTMLVideoElement) => v.play()); + await expect + .poll(() => video.evaluate((v: HTMLVideoElement) => v.currentTime)) + .toBeGreaterThan(0.2); + await video.evaluate((v: HTMLVideoElement) => { + v.pause(); + v.currentTime = 5; + }); + await expect + .poll(() => + video.evaluate( + (v: HTMLVideoElement) => + !v.seeking && Math.abs(v.currentTime - 5) < 0.05 + ) + ) + .toBe(true); + await page.screenshot({ path: testInfo.outputPath("spaces.png") }); + await video.evaluate((v: HTMLVideoElement) => { + v.currentTime = v.duration - 0.1; + + return v.play(); + }); + await expect + .poll(() => video.evaluate((v: HTMLVideoElement) => v.ended)) + .toBe(true); + await video.evaluate((v: HTMLVideoElement) => v.play()); + await expect + .poll(() => + video.evaluate( + (v: HTMLVideoElement) => !v.paused && v.currentTime < 3 + ) + ) + .toBe(true); + await page.locator('[id="v0.13.0"]').scrollIntoViewIfNeeded(); + await expect + .poll(() => video.evaluate((v: HTMLVideoElement) => v.paused)) + .toBe(true); + const holiday = page.locator('[id="v0.13.0"] .release-media'); + await expect(holiday.locator("video")).toHaveCount(0); + await expect(holiday.locator("img")).toBeVisible(); + await expect(holiday.locator("img")).toHaveAttribute("lang", "en"); + await expect(holiday.locator("figcaption")).toBeVisible(); + expect( + await holiday + .locator("img") + .evaluate((i: HTMLImageElement) => i.naturalWidth) + ).toBe(1920); + await page.screenshot({ path: testInfo.outputPath("holiday-icons.png") }); + await expect(page.locator('[id="v0.14.1"] .release-media')).toHaveCount( + 0 + ); + expect( + await page.evaluate( + () => document.documentElement.scrollWidth <= innerWidth + ) + ).toBe(true); + }); + } +} + +for (const version of [ + "0.14.0", + "0.11.0", + "0.10.0", + "0.9.0", + "0.8.0", + "0.7.0", + "0.2.0", + "0.1.3", +]) { + test(`the ${version} film decodes its actual native footage`, async ({ + page, + }, testInfo) => { + await page.goto(`/changelog/#v${version}`); + const video = page.locator(`[id="v${version}"] video`); + await video.scrollIntoViewIfNeeded(); + await video.evaluate((v: HTMLVideoElement) => v.play()); + await expect + .poll(() => video.evaluate((v: HTMLVideoElement) => v.currentTime)) + .toBeGreaterThan(0.1); + expect( + await video.evaluate((v: HTMLVideoElement) => [ + v.videoWidth, + v.videoHeight, + v.error?.code ?? 0, + ]) + ).toEqual([1920, 1080, 0]); + + const before = await video.evaluate((v: HTMLVideoElement) => ({ + dropped: v.getVideoPlaybackQuality().droppedVideoFrames, + frames: v.getVideoPlaybackQuality().totalVideoFrames, + time: v.currentTime, + })); + + const started = Date.now(); + await expect + .poll(() => video.evaluate((v: HTMLVideoElement) => v.currentTime)) + .toBeGreaterThanOrEqual(before.time + 1.5); + + const after = await video.evaluate((v: HTMLVideoElement) => ({ + dropped: v.getVideoPlaybackQuality().droppedVideoFrames, + frames: v.getVideoPlaybackQuality().totalVideoFrames, + })); + + const playback = { + dropped: after.dropped - before.dropped, + elapsed: (Date.now() - started) / 1000, + frames: after.frames - before.frames, + }; + + expect(playback.frames).toBeGreaterThanOrEqual(80); + expect(playback.dropped / playback.frames).toBeLessThan(0.03); + expect(playback.elapsed).toBeLessThan(2.5); + await video.evaluate((v: HTMLVideoElement) => v.pause()); + await page.screenshot({ path: testInfo.outputPath("film.png") }); + }); +} diff --git a/site/tests/test_site.py b/site/tests/test_site.py index f22b132eb..71e12fb99 100644 --- a/site/tests/test_site.py +++ b/site/tests/test_site.py @@ -175,38 +175,55 @@ def test_release_story_keeps_translated_highlights_and_complete_notes_in_static_ highlights = [node for node in nodes(release) if "release-highlight" in node.classes] self.assertEqual(len(highlights), 3) self.assertTrue(all(node.attrs.get("lang") == language for node in highlights)) - capture = next(node for node in nodes(highlights[0]) if "capture" in node.classes) - images = [node for node in nodes(capture) if node.tag == "img"] - self.assertEqual(len(images), 2) - for image in images: - self.assertTrue(image.attrs.get("alt")) - self.assertGreater(int(image.attrs["width"]), 0) - self.assertGreater(int(image.attrs["height"]), 0) - self.assertEqual(image.attrs.get("loading"), "lazy") + capture = next(node for node in nodes(release) if "release-media" in node.classes) + player = next(node for node in nodes(capture) if node.tag == "video") + caption = next(node for node in nodes(capture) if node.tag == "figcaption") + self.assertEqual(player.attrs.get("aria-labelledby"), caption.attrs["id"]) + self.assertEqual(player.attrs.get("lang"), "en") + self.assertEqual(caption.attrs.get("lang"), language) + self.assertTrue(inline_text(caption).strip()) + caption_text = " ".join(inline_text(caption).split()) + markdown = (DIST / page).with_suffix(".md").read_text() + self.assertIn("\n\n" + caption_text + "\n", markdown) + self.assertEqual(player.attrs.get("preload"), "none") disclosure = next(node for node in nodes(release) if node.tag == "details") self.assertNotIn("open", disclosure.attrs) self.assertIn("A call card in the sidebar", inline_text(disclosure)) self.assertIn("chrome.mdns", (DIST / page).with_suffix(".md").read_text()) - demo_link = next(node for node in nodes(highlights[0]) if node.tag == "a") + peek = next(node for node in highlights if node.attrs.get("id") == "v0.7.0-peek") + demo_link = next(node for node in nodes(peek) if node.tag == "a") self.assertEqual(demo_link.attrs["href"], ("/fr/" if language == "fr" else "/") + "#browser-demo") - def test_release_recording_has_local_animation_controls_and_a_contextual_action(self): + def test_backlog_has_exactly_the_selected_media_and_real_mp4_controls(self): + catalog = json.loads((Path(__file__).resolve().parents[2] / "release-media/backlog.json").read_text()) for page in ["changelog/index.html", "fr/changelog/index.html"]: with self.subTest(page=page): parsed = tree(DIST / page) - recording = [node for node in parsed if "release-recording" in node.classes] - self.assertEqual(len(recording), 1) - player = recording[0] - button = next(node for node in nodes(player) if node.tag == "button") - self.assertEqual(button.attrs.get("aria-pressed"), "false") - self.assertTrue(button.attrs.get("aria-label")) - self.assertTrue(any(node.tag == "svg" for node in nodes(button))) - self.assertFalse(any(node.tag in ["time", "figcaption", "a"] for node in nodes(player))) - for image in (node for node in nodes(player) if node.tag == "img"): - animation = image.attrs.get("data-recording", "") - self.assertTrue(animation.endswith(".webp")) - self.assertTrue((DIST / animation.lstrip("/")).is_file()) - self.assertNotEqual(image.attrs["src"], animation) + self.assertFalse(any("release-recording" in node.classes for node in parsed)) + for version, decision in catalog["releases"].items(): + release = next(node for node in parsed if node.attrs.get("id") == "v" + version) + media = [node for node in nodes(release) if "release-media" in node.classes] + self.assertEqual(len(media), 0 if decision["kind"] == "none" else 1, version) + if not media: + continue + disclosure = next(node for node in nodes(release) if node.tag == "details") + self.assertNotIn("open", disclosure.attrs) + content = list(nodes(media[0])) + if decision["kind"] == "video": + video = next(node for node in content if node.tag == "video") + self.assertIn("controls", video.attrs) + self.assertIn("playsinline", video.attrs) + self.assertNotIn("autoplay", video.attrs) + self.assertNotIn("muted", video.attrs) + self.assertEqual(video.attrs["preload"], "none") + source = next(node for node in content if node.tag == "source") + self.assertEqual(source.attrs["type"], "video/mp4") + self.assertTrue((DIST / source.attrs["src"].lstrip("/")).is_file()) + else: + image = next(node for node in content if node.tag == "img") + self.assertTrue(image.attrs.get("alt")) + self.assertTrue(image.attrs["src"].endswith(".png")) + self.assertTrue((DIST / image.attrs["src"].lstrip("/")).is_file()) highlight = next(node for node in parsed if node.attrs.get("id") == "v0.7.0-peek") action = next(node for node in nodes(highlight) if "recording-action" in node.classes) self.assertEqual(action.parent, highlight) diff --git a/site/wrangler.toml b/site/wrangler.toml index b4954247b..eb6594389 100644 --- a/site/wrangler.toml +++ b/site/wrangler.toml @@ -1,4 +1,5 @@ name = "lilo-site" +main = "src/media-worker.ts" compatibility_date = "2026-10-01" routes = [{ pattern = "getlilo.app", custom_domain = true }] # The site lives on getlilo.app only: a workers.dev copy would be duplicate content @@ -7,4 +8,6 @@ preview_urls = false [assets] directory = "./dist" +binding = "ASSETS" +run_worker_first = ["/release-media/*.mp4"] not_found_handling = "404-page"