diff --git a/.agents/skills/lilo-release-media/SKILL.md b/.agents/skills/lilo-release-media/SKILL.md new file mode 100644 index 000000000..1f420e22f --- /dev/null +++ b/.agents/skills/lilo-release-media/SKILL.md @@ -0,0 +1,27 @@ +--- +name: lilo-release-media +description: Author and quality-check the 0.8.0 tab-sharing announcement from genuine native Lilo captures. +--- + +# Lilo release media + +This optional workflow supports the approved 0.8.0 announcement. Playback consumes its committed MP4 and PNG without media-production tools. Ordinary builds, releases, signing, and deployment remain independent from this workflow. + +Use the exact release notes and preserve the catalog's editorial decision. The native capture cases cover tab sharing, the address setting, and bundled playback review. Add genuine native capture and composition coverage before supporting another product feature. Do not recreate browser controls or use the website demo as evidence. + +Capture the compiled native app with a disposable profile, synthetic example.com pages and call handlers, and an owned backdrop. Keep the actual app version, build, and source commit in every receipt. Keep these fields separate from the illustrated release. + +Author literal editable HTML scenes under `release-media/hyperframes/`. Use local assets and deterministic paused GSAP timelines. Native cutouts preserve RGB bytes and canvas dimensions. Change only alpha outside the interface. Keep complete windows and real page content. Do not apply CSS blur or 3D tilt to native pixels. + +Use these explicit Make targets. + +1. Run `make release-media-author RELEASE=0.8.0`. +2. Run `make release-media-capture RELEASE=0.8.0`. +3. Run `make release-media-import release-media-render RELEASE=0.8.0`. +4. Run `make release-media-check release-media-inspect RELEASE=0.8.0`. +5. Review the encoded compact frames and both localized players. Run `make release-media-review RELEASE=0.8.0` for actual bundled playback, then restore `make ui-build`. +6. Run `make release-media-test release-media-publish-check RELEASE=0.8.0` and `make validate`. + +Keep the committed CC0 soundtrack and licensed editorial sounds. Preserve their rights files and hashes. Preserve the catalog publication kill switch. Never rewrite passing receipts to hide changed inputs. Regenerate render and quality receipts through the actual tools. + +See `release-media/README.md` for requirements and the encoded quality contract. diff --git a/Lilo.xcodeproj/project.pbxproj b/Lilo.xcodeproj/project.pbxproj index 77dd7dad6..54beba599 100644 --- a/Lilo.xcodeproj/project.pbxproj +++ b/Lilo.xcodeproj/project.pbxproj @@ -461,6 +461,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 */; }; @@ -596,6 +597,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 */; }; @@ -997,6 +999,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 = ""; }; @@ -1286,6 +1289,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 = ""; }; @@ -2238,6 +2242,7 @@ 758C964D56746BC82A42145F /* BrowserStateFixtureSupport.swift */, 01838BCE08BCAEA786362E06 /* ExtensionRegistryFixture.swift */, 22AD4BA8211AEC8D9AB6672F /* GapCallSupport.swift */, + 57E906D33DFB1DB3BDF44E90 /* ReleaseMediaCapture.swift */, 5135E1934C469BB54C50A03D /* SidebarState.swift */, 431ABDDD13D3442436E79EA8 /* TemporaryBrowserContext.swift */, 2BF2A6D8AA9663C63227724B /* TemporaryProfileDatabase.swift */, @@ -2706,6 +2711,7 @@ 7C5A63DD73D3B6D7E5BB7E77 /* PermissionRequestQueueTests.swift */, D127FE22E412BD3725926CC1 /* ProfileSwitchTests.swift */, 1957E0C36D17C64137430863 /* QRCodeTests.swift */, + BC423BCE8DBDE092FDE06546 /* ReleaseMediaCaptureTests.swift */, 42E6A2F13825700070354B2E /* SharedSpaceRuntimeTests.swift */, 095C1DCC47901E0E37EE95BB /* TabContextMenuActionsTests.swift */, 4B523A389F7E8333256B9883 /* TabLayoutTests.swift */, @@ -3482,6 +3488,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/LiloTests/Support/ReleaseMediaCapture.swift b/LiloTests/Support/ReleaseMediaCapture.swift new file mode 100644 index 000000000..b7221e113 --- /dev/null +++ b/LiloTests/Support/ReleaseMediaCapture.swift @@ -0,0 +1,265 @@ +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 + let settingsStore = try XCTUnwrap(context.settingsStore) + settingsStore.set("onboardingCompleted", value: "true") + settingsStore.set("theme", value: "dark") + settingsStore.set("tabPosition", value: "left") + settingsStore.set("addressPlacement", value: "tabs") + settingsStore.didPromptDefaultBrowser = true + let profile = try XCTUnwrap(context.profileManager).createProfile(name: "Studio") + space = try XCTUnwrap(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(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 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..2d4920a93 --- /dev/null +++ b/LiloTests/Window/ReleaseMediaCaptureTests.swift @@ -0,0 +1,123 @@ +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 testAddressBarAnnouncement() async throws { + let capture = try await ReleaseMediaCapture(version: "0.8.0-announcement", feature: "address-bar") + defer { capture.close() } + let settingsStore = try XCTUnwrap(capture.context.settingsStore) + 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") { + 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 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]) + } +} diff --git a/Makefile b/Makefile index d91ecd6a7..157df5683 100644 --- a/Makefile +++ b/Makefile @@ -232,6 +232,69 @@ release-media-stage: release-media-test: @node --test release-media/*.test.mjs +.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-fix release-media-inspect release-media-hyperframes release-media-audit release-media-author + +## Capture genuine native sources for the 0.8.0 announcement (RELEASE=0.8.0) +# The capture and review UI builds differ from the app's: dropping the stamp makes the next build replace them. +# Every capture scenario skips for a release without one, so a missing receipt is the failure. +release-media-capture: + @$(if $(RELEASE),rm -f '$(CURDIR)/build/release-media/native/$(RELEASE)/capture.json') + @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; \ + status=$$?; rm -f '$(UI_STAMP)'; exit $$status + @$(if $(RELEASE),test -f '$(CURDIR)/build/release-media/native/$(RELEASE)/capture.json' || { echo 'No native capture scenario for $(RELEASE)' >&2; exit 1; }) + +## Import verified native release sources (RELEASE=0.8.0) +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/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 the 0.8.0 native announcement +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 + +## 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 + +## 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; \ + status=$$?; rm -f '$(UI_STAMP)'; exit $$status + +## 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 + # 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): diff --git a/release-media/README.md b/release-media/README.md index f36080e67..b7514e882 100644 --- a/release-media/README.md +++ b/release-media/README.md @@ -1,18 +1,34 @@ -# Release media playback +# Author the 0.8.0 announcement -`assets/0.8.0/tab-share.mp4` and its PNG poster are the approved 0.8.0 release illustration. The shared `catalog.ts` gives the website and native What's New sheet stable media URLs. Releases absent from `backlog.json` keep their existing text, stories and illustrations. +The approved 0.8.0 film and PNG play from committed assets. Native builds, release preparation, signing, and website deployment do not run the authoring tools. -The film shows native Lilo 0.14.1, build 31, illustrating the 0.8.0 tab-sharing feature. It is not footage of a historical 0.8.0 binary. Both players keep its English imagery labeled with a localized caption and language notice. Playback has sound, standard controls and no autoplay. +This optional workflow supports the 0.8.0 tab-sharing announcement. Other catalog versions have explicit deferred-backfill decisions. Their existing website illustrations keep their legacy paths. The fixture registry contains only tab sharing. The native tests capture its search and switch workflow, the announcement's address-bar change, and bundled What's New playback. -The approved files have these SHA-256 digests. +## Capture and render -| File | SHA-256 | -| --- | --- | -| `tab-share.mp4` | `aa16aba87dba2611a438190372217cac3ae9e18488dbf31b2c22c77913f176ed` | -| `tab-share.png` | `3e36ede8fd9dd50a1cb6a4b177decc719bfe9e95d0aed489c45b4ac30f36d329` | +Use a Retina macOS desktop with screen-recording access, Node, and FFmpeg. The render target installs the pinned HyperFrames dependencies. Captures use a disposable profile, synthetic example.com pages and call handlers, and an owned backdrop. Native receipts identify the actual app version, build, source commit, geometry, and PNG hashes. The illustrated release does not imply a historical binary. -`make ui-build` stages only the installed release's assets in `lilo-ui/public/release-media/`. For a local media preview, run `LILO_RELEASE_MEDIA_PREVIEW_VERSION=0.8.0 make ui-build`. `make release-media-test` verifies staging. No renderer or authoring dependency is needed to build or play these committed files. +1. Run `make release-media-author RELEASE=0.8.0` to check the exact source notes and catalog decision. +2. Run `make release-media-capture RELEASE=0.8.0` to capture tab sharing and the address setting. +3. Run `make release-media-import RELEASE=0.8.0` to verify and import every source receipt before replacing the previous import. +4. Run `make release-media-render RELEASE=0.8.0` to stage the literal HTML compositions and encode the film and poster. +5. Run `make release-media-check release-media-inspect RELEASE=0.8.0` to measure the encoded result and extract compact review sheets. +6. Run `make release-media-test release-media-publish-check RELEASE=0.8.0` to exercise refusal checks and verify the exact committed bytes. +7. Run `make release-media-review RELEASE=0.8.0` to review bundled native playback. Run `make ui-build` afterwards to restore the installed release's bundle. +8. Run `make validate` before submitting code changes. -The soundtrack is **Week 37 - Schmoovin** by **Abstraction / Tallbeard Studios**, from the creator's Music Loop Bundle, version 20261003-01 (2026 Q3). The creator released it under CC0 1.0 Universal. The original notice and provenance metadata are in `public/audio/music.LICENSE.txt` and `public/audio/music.license.json`. Those metadata describe the original track used in the film. The source track and render recipes are separate authoring inputs. +The 26-second full announcement lives in `hyperframes/0.8.0`. The share-only variant reuses its search, switch, and ending scenes. Every composition uses local fonts, native captures, and deterministic paused GSAP timelines. -See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) for the motion references and license. Native imagery, pointer paths and film timeline are Lilo-specific. +## Verify the result + +Native cutouts preserve captured RGB bytes and canvas dimensions. Only alpha changes outside the interface. Complete windows retain their actual page content. Strict HyperFrames checks cover structure, runtime, layout, contrast, motion, and audio. + +Films render at 1920 by 1080 pixels and 60 fps, then ship at 1280 by 720 and 30 fps as H.264 CRF 28 with stereo AAC at 48 kHz and 128 kbps, small enough for the website to serve whole. Encoded checks verify frame count, full decode, source and recipe hashes, cutout pixels, loudness, true peak, bounded frame changes, and poster SSIM of at least 0.98. Reading holds may last up to three seconds. Compact visual review remains necessary. + +Each `quality.json` binds to the exact `render.json`, source receipts, recipes, and output hashes. Changing a selected composition or the shared renderer invalidates the receipt. An unrelated fixture does not. A fresh checkout needs fresh staging inputs before encoded quality generation. Publication verification uses Node alone and remains an explicit target. No ordinary release or deployment command invokes it. + +Automatic authoring retains fail-closed checks for unsupported visual changes and preserves a catalog publication kill switch. This extraction includes only the tab-sharing capability. Extend capture and composition coverage before authoring another feature. + +## Sound and rights + +The committed soundtrack is Week 37-Schmoovin by Abstraction/Tallbeard Studios under CC0. Its creator waiver, source URL, and checksums live under `public/audio/music.*`. Attribution is optional. Editorial click and transition sounds retain their CC0 provenance in `public/audio/README.md`. They do not represent sounds made by Lilo. Dependency, font, logo, and motion references remain in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). 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..2fa4f15bc --- /dev/null +++ b/release-media/assets/0.8.0/quality.json @@ -0,0 +1,91 @@ +{ + "release": "0.8.0", + "kind": "video", + "passed": true, + "renderSha256": "18678cded0e27ea7a0347461f54ecef05e5a316bb8be62f1eb35171fd84956ff", + "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": 30, + "frames": 780, + "audio": { + "integratedLoudnessLUFS": -16.1, + "truePeakDbFS": -2.5 + }, + "motion": { + "measuredFrames": 779, + "movingFrameRatio": 0.40436456996148906, + "longestStillSeconds": 2.8333333333333335, + "largestLumaChange": 69.6738 + }, + "posterSSIM": 0.997211 +} 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..a25743f9e --- /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": 1280, + "height": 720, + "fps": 30, + "frames": 780, + "posterFrame": 720, + "hashes": { + "tab-share.png": "3e36ede8fd9dd50a1cb6a4b177decc719bfe9e95d0aed489c45b4ac30f36d329", + "tab-share.mp4": "a5774ce39debffa77be7898142acdaee51c432f6bee839088030f1f050cc2ad0" + }, + "recipeHashes": { + "render.mjs": "d396547e192be557cd11563fdc8a5a4b891e689c6ddda2bcbf352637732088e4", + "pipeline.mjs": "3934aa082e12d01b73888f26bea0c7650833143ee6ecebfda44d255c49d4c087", + "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 index cb4973178..af0a1de26 100644 Binary files a/release-media/assets/0.8.0/tab-share.mp4 and b/release-media/assets/0.8.0/tab-share.mp4 differ diff --git a/release-media/author.mjs b/release-media/author.mjs new file mode 100644 index 000000000..52ea6e1aa --- /dev/null +++ b/release-media/author.mjs @@ -0,0 +1,177 @@ +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, + ], +]; + +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: "The release adds an interaction covered by a genuine native capture and motion 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..40732f397 --- /dev/null +++ b/release-media/author.test.mjs @@ -0,0 +1,259 @@ +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." }, + }, + + }, +}; + +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("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- The agent API accepts longer messages.\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 index a5f968524..1a13810a9 100644 --- a/release-media/backlog.json +++ b/release-media/backlog.json @@ -1,6 +1,55 @@ { "schemaVersion": 1, + "publication": "quality-gated", "releases": { + "0.14.3": { + "kind": "none", + "reason": "Page-loading performance and existing layout fixes add no new visual interaction to demonstrate." + }, + "0.14.2": { + "kind": "none", + "reason": "Sidebar drag placement and profile call reliability fixes add no new visual interaction to demonstrate." + }, + "0.14.1": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.14.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.13.1": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.13.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.12.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.11.1": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.11.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.10.1": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.10.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.9.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, "0.8.0": { "kind": "video", "feature": "tab-share", @@ -13,6 +62,86 @@ "en": "Find a tab and switch what you share.", "fr": "Trouvez un onglet et changez celui que vous partagez." } + }, + "0.7.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.6.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.5.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.4.1": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.4.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.3.3": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.3.2": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.3.1": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.3.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.2.4": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.2.3": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.2.2": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.2.1": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.2.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.1.5": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.1.4": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.1.3": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.1.2": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.1.1": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." + }, + "0.1.0": { + "kind": "none", + "reason": "Historical release media backfill is deferred. Existing website illustrations remain available through their legacy paths." } } } diff --git a/release-media/check.mjs b/release-media/check.mjs new file mode 100644 index 000000000..7c6fa5aaa --- /dev/null +++ b/release-media/check.mjs @@ -0,0 +1,342 @@ +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."); +// The flash limit is per 60 fps frame: a slower film shows the same change across fewer frames. +const passesMotion = (m, frames, fps) => + 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 * 60) / fps; +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, render.fps) && + 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 !== (entry.kind === "video" ? 1280 : 1920) || + render.height !== (entry.kind === "video" ? 720 : 1080) || + render.fps !== (entry.kind === "video" ? 30 : 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; + } + 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")).catch(() => { + throw Error(`Render ${version} first: make release-media-render RELEASE=${version}`); + }); + 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 !== 1280 || + video.height !== 720 || + video.pix_fmt !== "yuv420p" || + video.avg_frame_rate !== "30/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 / 30) > 0.05 + ) + throw Error(`Incorrect 720p30 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 / 30, + largestLumaChange: Math.max(...deltas), + }; + if (!passesMotion(motion, render.frames, render.fps)) + 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", + "[1]scale=1280:720:flags=lanczos[poster];[0][poster]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: 30, + 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..fe032ac1b --- /dev/null +++ b/release-media/check.test.mjs @@ -0,0 +1,335 @@ +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 } 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.8.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"), { 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", version), + path.join(folder, "hyperframes", version), + { + recursive: true, + }, + ); + await cp(path.join(root, "public/audio"), path.join(folder, "public/audio"), { recursive: true }); + 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", + ]) + 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\.8\.0: video tab-share/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\.8\.0: video tab-share/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\.8\.0: video tab-share/u), + ), + ); + await t.test("a changed selected fixture refuses the measured film", () => + withChangedFile( + path.join(folder, "fixtures.mjs"), + (bytes) => bytes.toString().replace('"tab-share": "0.8.0"', '"tab-share": "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", 91], + ]) + 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["tab-share.png"]; + }, + ], + [ + "an omitted film digest", + (value) => { + delete value.hashes["tab-share.mp4"]; + }, + ], + [ + "an empty digest map", + (value) => { + value.hashes = {}; + }, + ], + [ + "an invalid digest", + (value) => { + value.hashes["tab-share.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, "tab-share.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", 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", version, "compositions/find.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/99.0.0"); + await mkdir(unrelated); + await writeFile(path.join(unrelated, "index.html"), "Unrelated composition"); + assert.match(run(), /Quality-gated 0\.8\.0: video tab-share/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 ending invalidates the selected film", () => + withChangedFile( + path.join(folder, "hyperframes", version, "compositions/end.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("unselected publication retains verified captures", () => { + assert.match( + run({ GITHUB_REF_TYPE: "tag", GITHUB_SHA: "new-release-commit" }), + /Quality-gated 0\.8\.0/u, + ); + }); + await t.test("restoring the verified inputs makes publication pass again", () => { + assert.match(run(), /Quality-gated 0\.8\.0: video tab-share/u); + }); +}); diff --git a/release-media/fixtures.mjs b/release-media/fixtures.mjs new file mode 100644 index 000000000..78c9555fd --- /dev/null +++ b/release-media/fixtures.mjs @@ -0,0 +1 @@ +export const fixtures = { "tab-share": "0.8.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.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/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..fe1fcefaa --- /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: "video", feature: "tab-share" } } }), + ); + 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: "tab-share", + 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..19a1e7333 --- /dev/null +++ b/release-media/pipeline.mjs @@ -0,0 +1,126 @@ +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 (entry.kind !== "video" || !fixture || (entry.variant && entry.variant !== "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: `hyperframes/${directory}`, + 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`), + ), + ); + } + 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..9d2db50b4 --- /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.README.md b/release-media/public/audio/music.README.md new file mode 100644 index 000000000..44caaea1b --- /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.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.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/render.mjs b/release-media/render.mjs new file mode 100644 index 000000000..9ffa91b74 --- /dev/null +++ b/release-media/render.mjs @@ -0,0 +1,317 @@ +import { createRenderJob, executeRenderJob, resolveConfig } from "@hyperframes/producer"; +import { execFile } from "node:child_process"; +import { cp, copyFile, mkdir, readFile, 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, + 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}`); + } +} + +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 = await json(path.join(root, recipe.directory, "metadata.json")); + const duration = metadata.duration; + if (!(duration > 0 && duration <= 40)) throw Error(`Invalid storyboard duration: ${version}`); + await cp(path.join(root, recipe.directory), project, { recursive: true }); + if (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`), + ); + 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); + } + 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", + // The compact players never show more than 720p: the film stays small enough to serve whole. + "-vf", + "scale=1280:720:flags=lanczos,fps=30", + "-c:v", + "libx264", + "-preset", + "veryslow", + "-crf", + "28", + "-pix_fmt", + "yuv420p", + "-af", + "loudnorm=I=-16:TP=-1.8:LRA=8", + "-c:a", + "aac", + "-b:a", + "128k", + "-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: entry.kind === "video" ? 1280 : 1920, + height: entry.kind === "video" ? 720 : 1080, + fps: entry.kind === "video" ? 30 : 60, + frames: entry.kind === "video" ? Math.round(duration * 30) : 1, + posterFrame: entry.kind === "video" ? posterFrame / 2 : 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 index 9b10153d5..8a68352a3 100644 --- a/release-media/stage-native.mjs +++ b/release-media/stage-native.mjs @@ -7,11 +7,12 @@ 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 (entry && entry.kind !== "none") { +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}`; @@ -20,4 +21,8 @@ if (entry && entry.kind !== "none") { }); } } -console.log(`Native release media: ${version} ${entry?.kind ?? "none"}`); +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 index f34e90a24..4a341d3e9 100644 --- a/release-media/stage-native.test.mjs +++ b/release-media/stage-native.test.mjs @@ -6,72 +6,53 @@ import path from "node:path"; import { test } from "node:test"; import { fileURLToPath } from "node:url"; -async function staging(t, releases) { +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: "0.14.1" })); - await writeFile(path.join(media, "backlog.json"), JSON.stringify({ releases })); + 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 = (version = "") => + const run = (capturing = false) => spawnSync(process.execPath, [path.join(media, "stage-native.mjs")], { encoding: "utf8", - env: { ...process.env, LILO_RELEASE_MEDIA_PREVIEW_VERSION: version }, + env: { + ...process.env, + LILO_RELEASE_MEDIA_CAPTURE_ONLY: capturing ? "1" : "", + LILO_RELEASE_MEDIA_PREVIEW_VERSION: "", + }, }); - return { media, target, run }; -} - -test("a release without media clears stale assets and keeps its placeholder", async (t) => { - for (const releases of [{}, { "0.14.1": { kind: "none" } }]) { - const { target, run } = await staging(t, releases); - const result = run(); - assert.equal(result.status, 0, result.stderr); - assert.deepEqual(await readdir(target), [".gitkeep"]); - } -}); - -test("previewing a film requires both assets and stages only that release", async (t) => { - const version = "0.8.0"; - const { media, target, run } = await staging(t, { - [version]: { kind: "video", feature: "tab-share" }, - }); - const missing = run(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"), "approved poster"); - await writeFile(path.join(source, "tab-share.mp4"), "approved film"); - await writeFile(path.join(source, "render.json"), "authoring metadata"); - const result = run(version); - assert.equal(result.status, 0, result.stderr); - assert.deepEqual((await readdir(target)).sort(), [".gitkeep", version]); - assert.deepEqual((await readdir(path.join(target, version))).sort(), ["tab-share.mp4", "tab-share.png"]); - assert.equal(await readFile(path.join(target, version, "tab-share.png"), "utf8"), "approved poster"); - assert.equal(await readFile(path.join(target, version, "tab-share.mp4"), "utf8"), "approved film"); - assert.equal(run(version).status, 0); - assert.equal(run().status, 0); - assert.deepEqual(await readdir(target), [".gitkeep"]); -}); - -test("a screenshot stages its poster without requiring a film", async (t) => { - const version = "0.15.0"; - const { media, target, run } = await staging(t, { - [version]: { kind: "screenshot", feature: "browser" }, - }); - const source = path.join(media, "assets", version); - await mkdir(source, { recursive: true }); - await writeFile(path.join(source, "browser.png"), "approved still"); - const result = run(version); - assert.equal(result.status, 0, result.stderr); - assert.deepEqual(await readdir(path.join(target, version)), ["browser.png"]); + 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/site/tests/release-media.spec.ts b/site/tests/release-media.spec.ts index a246ced7e..cb2d5ef40 100644 --- a/site/tests/release-media.spec.ts +++ b/site/tests/release-media.spec.ts @@ -53,7 +53,7 @@ for (const lang of ["en", "fr"]) { v.videoHeight, v.error?.code ?? 0, ]) - ).toEqual([1920, 1080, 0]); + ).toEqual([1280, 720, 0]); await video.evaluate((v: HTMLVideoElement) => { v.pause(); v.currentTime = 5;