diff --git a/.changes/unreleased/Added-20261106-144237.521907.yaml b/.changes/unreleased/Added-20261106-144237.521907.yaml new file mode 100644 index 000000000..839eaa558 --- /dev/null +++ b/.changes/unreleased/Added-20261106-144237.521907.yaml @@ -0,0 +1,3 @@ +kind: Added +body: Every release has its own page on getlilo.app, and the changelog has an RSS feed in English and French +time: 2026-11-06T14:42:37.521907+02:00 diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 000000000..fb112a9ed --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,106 @@ +# Opens a draft pull request with a release's changelog entry. Nothing here gates the release: +# the app ships without it, and merging the pull request publishes the entry. + +name: Changelog draft + +on: + push: + tags: ['v*'] + workflow_dispatch: + inputs: + release: + description: Published version, such as 0.17.0 + required: true + +permissions: + contents: write + pull-requests: write + +concurrency: + group: changelog-${{ github.ref }}-${{ inputs.release }} + cancel-in-progress: false + +jobs: + draft: + outputs: + branch: ${{ steps.open.outputs.branch }} + version: ${{ steps.open.outputs.version }} + if: github.repository == 'Alexays/Lilo' + runs-on: ubuntu-latest + timeout-minutes: 15 + env: + RELEASE: ${{ inputs.release || github.ref_name }} + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + GH_TOKEN: ${{ github.token }} + steps: + - name: Skip without Claude credentials + id: key + run: | + if [ -n "$ANTHROPIC_API_KEY" ]; then echo "ready=true" >> "$GITHUB_OUTPUT" + else echo "::notice::Add the ANTHROPIC_API_KEY secret to draft changelog entries."; fi + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + if: steps.key.outputs.ready + with: + ref: main + fetch-depth: 0 + fetch-tags: true + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + if: steps.key.outputs.ready + with: + node-version-file: '.nvmrc' + - name: Draft the entry + if: steps.key.outputs.ready + run: make changelog-draft RELEASE="${RELEASE#v}" + - name: Open the pull request + id: open + if: steps.key.outputs.ready + run: | + [ -n "$(git status --porcelain)" ] || exit 0 + version="${RELEASE#v}" + git config user.name 'github-actions[bot]' + git config user.email '41898282+github-actions[bot]@users.noreply.github.com' + git switch -c "changelog/$version" + git add site/src/content/releases lilo-ui/src release-media/plans + git commit -m "docs(changelog): draft the $version entry" + git push --force-with-lease origin "changelog/$version" + gh pr create --draft --base main --title "docs(changelog): draft the $version entry" \ + --body "Drafted from the $version notes. Check the story, then close and reopen this pull request to run its checks." + echo "branch=changelog/$version" >> "$GITHUB_OUTPUT" + echo "version=$version" >> "$GITHUB_OUTPUT" + + # The app is built here to film it. A highlight this cannot film stays text-only in the pull request. + media: + needs: draft + if: needs.draft.outputs.branch + runs-on: xcode-27 + timeout-minutes: 60 + continue-on-error: true + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ needs.draft.outputs.branch }} + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version-file: '.nvmrc' + - name: Install the tools + run: | + xcodebuild -downloadComponent MetalToolchain + brew install ffmpeg + npm --prefix lilo-ui ci --ignore-scripts + - name: Film the highlights + env: + VERSION: ${{ needs.draft.outputs.version }} + run: | + [ -d "release-media/plans/$VERSION" ] || exit 0 + make vt-build ui-build + make changelog-media RELEASE="$VERSION" + - name: Add them to the pull request + env: + VERSION: ${{ needs.draft.outputs.version }} + run: | + git add release-media/assets site/src/content/releases lilo-ui/src/components/whatsnew/releaseHighlights.json + git diff --cached --quiet && exit 0 + git config user.name 'github-actions[bot]' + git config user.email '41898282+github-actions[bot]@users.noreply.github.com' + git commit -m "docs(changelog): film the $VERSION highlights" + git push diff --git a/AGENTS.md b/AGENTS.md index 564a2cd1b..be96eaf19 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -30,7 +30,7 @@ Rules for coding agents (and humans) working in Lilo. Bias toward small, KISS ch - **Extension Gap APIs** - add one only when WebKit lacks the Chrome API *and* a real extension flow needs it. A Swift handler must be paired with JS augmentation, and [COMPATIBILITY.md](COMPATIBILITY.md) must be updated: it describes only what still differs from Chrome. See [CONTRIBUTING.md](CONTRIBUTING.md#add-a-chrome-gap-api). - **Page-world APIs** - anything a web page can see goes through `PageWorld` (handlers in its bridge world, modules patching WebKit's prototypes): a global, a page-world handler or a function printing its source flags Lilo as a bot. `PageWorldTests` fails on any such trace. See [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md#page-world-apis). - **Private WebKit API** - guard every private selector with `responds(to:)` and degrade gracefully when it is missing; register new private delegate hooks in `PrivateDelegateSelectorTests`. See [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md#private-webkit-api). -- **Release notes** - a change people using Lilo will notice gets a note from `make change`, committed with the code under `.changes/unreleased/`; without a prompt, run the Makefile's `$(CHANGIE)` as `new --interactive=false -k -b `. Never edit `CHANGELOG.md`: `make release-version` generates it from the notes. A feature release (`x.y.0`) also needs its What's New highlights and its website story, or `make release-version` refuses it. See [docs/RELEASING.md](docs/RELEASING.md). +- **Release notes** - a change people using Lilo will notice gets a note from `make change`, committed with the code under `.changes/unreleased/`; without a prompt, run the Makefile's `$(CHANGIE)` as `new --interactive=false -k -b `. Never edit `CHANGELOG.md`: `make release-version` generates it from the notes. A release's website story and What's New highlights come from `make changelog-draft`, reviewed like code; they never hold a release back. See [docs/RELEASING.md](docs/RELEASING.md). - **CSS `:has()`** is fine, but not always the best tool: a broad one makes WebKit recheck its whole container on each change inside. When Svelte state already knows the condition, a class is simpler and cheaper. - **Generated files** (`ChromeAPIAugmentation.js`, `ChromeAPIBackgroundPrelude.js`, `ChromeAPIGapModules.json`, `ChromeWebStoreShim.js`, `ChromeContentCompat.js`, `ChromeStaticRules.js`, `*.gen.swift`, `tabProtocol.gen.ts`, plus the git-ignored `Lilo/Generated/NativeStrings.swift` and `Lilo/Generated/ChromeUIAssets.swift`) are build outputs - never hand-edit them; regenerate via `make ext-bridge-build` / `make bridge-gen` / `make ui-build`. diff --git a/Lilo.xcodeproj/project.pbxproj b/Lilo.xcodeproj/project.pbxproj index 03e64f775..0a28c08f9 100644 --- a/Lilo.xcodeproj/project.pbxproj +++ b/Lilo.xcodeproj/project.pbxproj @@ -467,6 +467,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 */; }; @@ -607,6 +608,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 */; }; @@ -1011,6 +1013,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 = ""; }; @@ -1306,6 +1309,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 = ""; }; @@ -2279,6 +2283,7 @@ 758C964D56746BC82A42145F /* BrowserStateFixtureSupport.swift */, 01838BCE08BCAEA786362E06 /* ExtensionRegistryFixture.swift */, 22AD4BA8211AEC8D9AB6672F /* GapCallSupport.swift */, + 57E906D33DFB1DB3BDF44E90 /* ReleaseMediaCapture.swift */, 5135E1934C469BB54C50A03D /* SidebarState.swift */, 431ABDDD13D3442436E79EA8 /* TemporaryBrowserContext.swift */, 2BF2A6D8AA9663C63227724B /* TemporaryProfileDatabase.swift */, @@ -2758,6 +2763,7 @@ 7C5A63DD73D3B6D7E5BB7E77 /* PermissionRequestQueueTests.swift */, D127FE22E412BD3725926CC1 /* ProfileSwitchTests.swift */, 1957E0C36D17C64137430863 /* QRCodeTests.swift */, + BC423BCE8DBDE092FDE06546 /* ReleaseMediaCaptureTests.swift */, 42E6A2F13825700070354B2E /* SharedSpaceRuntimeTests.swift */, 095C1DCC47901E0E37EE95BB /* TabContextMenuActionsTests.swift */, 4B523A389F7E8333256B9883 /* TabLayoutTests.swift */, @@ -3545,6 +3551,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..733f3d069 --- /dev/null +++ b/LiloTests/Support/ReleaseMediaCapture.swift @@ -0,0 +1,254 @@ +import AppKit +import ScreenCaptureKit +import WebKit +import XCTest +@testable import Lilo + +/// One step of a release media plan, the JSON `make changelog-draft` writes under `release-media/plans/`. +struct ReleaseMediaStep: Decodable { + let `do`: String + var selector: String? + var text: String? + var value: String? + var name: String? +} + +struct ReleaseMediaPlan: Decodable { + let steps: [ReleaseMediaStep] +} + +/// Drives the compiled app with a disposable profile and owned example.com pages, and saves what it shows. +@MainActor +final class ReleaseMediaCapture { + private struct Failure: LocalizedError { + let errorDescription: String? + } + + private struct Shot { + let file: String + let width: Int + let height: Int + let rect: CGRect + var click: [Double]? + } + + private let fixture: TemporaryBrowserContext + private let controller: MainWindowController + private let output: URL + private let backdrop: NSWindow + private let cachedLayout = (position: UserDefaults.lilo.string(forKey: "cachedTabPosition"), + address: UserDefaults.lilo.string(forKey: "cachedAddressPlacement")) + private var shots: [Shot] = [] + private var context: BrowserContext { fixture.context } + private var chrome: WKWebView { controller.chromeWebView } + + init(output: URL) async throws { + self.output = output + try FileManager.default.createDirectory(at: output, withIntermediateDirectories: true) + 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") + let 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("the chrome to be ready", timeout: 30) { self.controller.didChromeVisualReady } + } catch { + close() + throw error + } + } + + func close() { + fixture.tearDown() + backdrop.close() + UserDefaults.lilo.set(cachedLayout.position, forKey: "cachedTabPosition") + UserDefaults.lilo.set(cachedLayout.address, forKey: "cachedAddressPlacement") + } + + func run(_ step: ReleaseMediaStep) async throws { + let selector = step.selector ?? "" + switch step.do { + case "page": try await page(title: step.text ?? "Field notes") + case "call": try await call() + case "action": try perform(step.name ?? "") + case "click": try await click(selector, text: step.text) + case "input": try await input(selector, value: step.value ?? "") + case "wait": try await wait(selector) { await self.exists(selector) } + case "shot": + if let selector = step.selector { try await region(selector) } else { try await window() } + default: throw Failure(errorDescription: "Unknown step: \(step.do)") + } + } + + /// The manifest the renderer reads: each shot, and where its next click lands as a fraction of it. + func finish() throws { + let manifest = shots.map { shot -> [String: Any] in + var entry: [String: Any] = ["file": shot.file, "width": shot.width, "height": shot.height] + entry["click"] = shot.click + return entry + } + try JSONSerialization.data(withJSONObject: manifest, options: [.prettyPrinted, .sortedKeys]) + .write(to: output.appendingPathComponent("shots.json"), options: .atomic) + } + + private func perform(_ action: String) throws { + switch action { + case "openSettings": controller.openSettings(nil) + case "openHistory": controller.openHistory(nil) + case "editCurrentSpace": controller.editCurrentSpace(nil) + case "pinCurrentTab": controller.pinCurrentTab(nil) + case "newTab": controller.newTab(nil) + case "toggleSidebar": controller.toggleSidebar() + default: throw Failure(errorDescription: "Unknown action: \(action)") + } + } + + @discardableResult + private func page(title: String) async throws -> Tab { + let color = "#38334f" + let tab = try XCTUnwrap(controller.createTabStateFirst(url: URL(string: "about:blank"))) + 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.

A clear starting point

Notes, references and a place to begin.

+ """, baseURL: URL(string: "https://example.com/notes/")) + try await wait("the page title") { self.controller.tabManager.tab(for: tab.id)?.title == title } + return tab + } + + private func call() async throws { + let tab = try await page(title: "Studio call") + let engine = try XCTUnwrap(controller.tabManager.engineTab(for: tab.id)) + _ = try await engine.wkWebView.callAsyncJavaScript(""" + navigator.mediaSession.setActionHandler('togglemicrophone',()=>{}); + navigator.mediaSession.setActionHandler('togglecamera',()=>{}); + navigator.mediaSession.setActionHandler('hangup',()=>{}); + await navigator.mediaSession.setMicrophoneActive(true);await navigator.mediaSession.setCameraActive(true); + return true; + """, arguments: [:], in: nil, contentWorld: .page) + context.browserState.updateTab(id: tab.id) { $0.isMicrophoneActive = true; $0.isCameraActive = true } + context.mediaActivityChanged() + try await wait("a call") { self.context.callTabIds.contains(tab.id) } + } + + private func wait(_ what: String, timeout: TimeInterval = 12, _ condition: @MainActor () async -> Bool) async throws { + guard await pollUntil(timeout: timeout, condition) else { throw Failure(errorDescription: "Timed out waiting for \(what)") } + } + + private func exists(_ selector: String) async -> Bool { + (try? await chrome.callAsyncJavaScript("return !!document.querySelector(selector)", arguments: ["selector": selector], in: nil, contentWorld: .page)) as? Bool == true + } + + private func click(_ selector: String, text: String?) async throws { + let center = try await chrome.callAsyncJavaScript(""" + const el = [...document.querySelectorAll(selector)].find(e => text === null || e.textContent.trim() === text); + if (!el || el.disabled) return null; + const r = el.getBoundingClientRect(); el.click(); + return [r.x + r.width / 2, r.y + r.height / 2]; + """, arguments: ["selector": selector, "text": text as Any? ?? NSNull()], in: nil, contentWorld: .page) as? [Double] + guard let center else { throw Failure(errorDescription: "No control to click: \(selector) \(text ?? "")") } + if let rect = shots.last?.rect, rect.contains(CGPoint(x: center[0], y: center[1])) { + shots[shots.count - 1].click = [(center[0] - rect.minX) / rect.width, (center[1] - rect.minY) / rect.height] + } + } + + private func input(_ selector: String, value: String) async throws { + _ = try await chrome.callAsyncJavaScript(""" + const input = document.querySelector(selector); + if (!input) throw Error('No field: ' + 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) + } + + private func settled() async throws { + _ = try await 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) + } + + /// A close-up rendered at four pixels per point, sharp at any size the film shows it. + private func region(_ selector: String) async throws { + try await settled() + let raw = try await chrome.callAsyncJavaScript(""" + const rects = [...document.querySelectorAll(selector)].map(e => e.getBoundingClientRect()).filter(r => r.width && r.height); + if (!rects.length) return null; + const x = Math.min(...rects.map(r => r.x)), y = Math.min(...rects.map(r => r.y)); + return [x, y, Math.max(...rects.map(r => r.right)) - x, Math.max(...rects.map(r => r.bottom)) - y]; + """, arguments: ["selector": selector], in: nil, contentWorld: .page) as? [Double] + guard let raw else { throw Failure(errorDescription: "Nothing visible to capture: \(selector)") } + let scale: CGFloat = 4 + let rect = CGRect(x: raw[0], y: raw[1], width: raw[2], height: raw[3]).intersection(chrome.bounds).integral + let config = WKSnapshotConfiguration() + config.rect = rect + config.snapshotWidth = NSNumber(value: rect.width * scale / (chrome.window?.backingScaleFactor ?? 1)) + let image = try await chrome.takeSnapshot(configuration: config) + try save(XCTUnwrap(image.tiffRepresentation.flatMap(NSBitmapImageRep.init(data:))), rect: rect) + } + + private func window() async throws { + try await settled() + 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) + try save(NSBitmapImageRep(cgImage: image), rect: chrome.bounds) + } + + private func save(_ bitmap: NSBitmapImageRep, rect: CGRect) throws { + let file = "shot-\(shots.count).png" + try XCTUnwrap(bitmap.representation(using: .png, properties: [:])).write(to: output.appendingPathComponent(file), options: .atomic) + shots.append(Shot(file: file, width: bitmap.pixelsWide, height: bitmap.pixelsHigh, rect: rect)) + } +} + +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) + } +} diff --git a/LiloTests/Support/TestRunCleanup.swift b/LiloTests/Support/TestRunCleanup.swift index cda3d5ccf..1eeb1d194 100644 --- a/LiloTests/Support/TestRunCleanup.swift +++ b/LiloTests/Support/TestRunCleanup.swift @@ -27,11 +27,14 @@ final class TestRunCleanup: NSObject, XCTestObservation { 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]) + // A release media capture is the exception: it needs its window on screen. + if ProcessInfo.processInfo.environment["LILO_RELEASE_MEDIA_PLANS"] == 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..eeb341d5a --- /dev/null +++ b/LiloTests/Window/ReleaseMediaCaptureTests.swift @@ -0,0 +1,28 @@ +import XCTest +@testable import Lilo + +/// Opt-in: `make changelog-media` runs it for a release. A plan that fails leaves its highlight without +/// media and records why; the others still run. +@MainActor +final class ReleaseMediaCaptureTests: XCTestCase { + func testPlans() async throws { + let environment = ProcessInfo.processInfo.environment + guard let plans = environment["LILO_RELEASE_MEDIA_PLANS"], let shots = environment["LILO_RELEASE_MEDIA_SHOTS"] else { + throw XCTSkip("Opt-in release media capture") + } + let files = try FileManager.default.contentsOfDirectory(at: URL(fileURLWithPath: plans), includingPropertiesForKeys: nil) + for file in files where file.pathExtension == "json" { + let output = URL(fileURLWithPath: shots).appendingPathComponent(file.deletingPathExtension().lastPathComponent) + do { + let plan = try JSONDecoder().decode(ReleaseMediaPlan.self, from: Data(contentsOf: file)) + let capture = try await ReleaseMediaCapture(output: output) + defer { capture.close() } + for step in plan.steps { try await capture.run(step) } + try capture.finish() + } catch { + try FileManager.default.createDirectory(at: output, withIntermediateDirectories: true) + try error.localizedDescription.write(to: output.appendingPathComponent("failure.txt"), atomically: true, encoding: .utf8) + } + } + } +} diff --git a/Makefile b/Makefile index 9ae8fc99d..098adae0f 100644 --- a/Makefile +++ b/Makefile @@ -87,7 +87,7 @@ TEST_WORKERS = $(shell sysctl -n hw.perflevel0.physicalcpu 2>/dev/null || sysctl run-ui-dev release release-notarize release-archive dmg dmg-background bridge-gen vt-build vt-build-source vt-zip webkit-fork bootstrap ui-preview check-commits startup-bench ext-bench energy-sample energy-compare energy-browsers perf-summary perf-compare perf-summary-test agent-call \ logs logs-stream site-dev site-dev-stop site-preview site-native-preview site-generate site-check site-fix site-test site-e2e site-release-capture site-capture-server site-capture-deps site-lock site-audit site-add-svelte site-playground-deps site-demo-icons site-deploy site-deploy-check emoji-data password-manager-icons \ hooks-install hooks-test lint-commit-message lint-commits \ - changie change release-status release-version release-discord release-test release-media-stage release-media-test + changie change release-status release-version release-discord release-test release-media-stage release-media-test changelog-draft changelog-media ## List the targets help: @@ -226,10 +226,25 @@ ui-build: $(UI_DEPS) release-media-stage release-media-stage: @node release-media/stage-native.mjs +release-media/node_modules/.installed: release-media/package.json release-media/package-lock.json + @npm --prefix release-media ci --ignore-scripts --cache '$(CURDIR)/build/npm-release-media' + @touch $@ + ## Test the release media tooling -release-media-test: +release-media-test: release-media/node_modules/.installed @node --test release-media/*.test.mjs +## Capture and render a drafted entry's media (RELEASE=x.y.z; needs ffmpeg). A plan that fails leaves its highlight text-only +changelog-media: release-media/node_modules/.installed + @test -n '$(RELEASE)' || { echo 'RELEASE=x.y.z is required' >&2; exit 2; } + -@TEST_RUNNER_LILO_RELEASE_MEDIA_PLANS='$(CURDIR)/release-media/plans/$(RELEASE)' TEST_RUNNER_LILO_RELEASE_MEDIA_SHOTS='$(CURDIR)/build/release-media/shots/$(RELEASE)' \ + $(MAKE) --no-print-directory swift-test SWIFT_TEST_FILTER=LiloTests/ReleaseMediaCaptureTests TEST_WORKERS=1 + @LILO_RELEASE='$(RELEASE)' node release-media/media.mjs + +## Draft the changelog entry and What's New copy (RELEASE=x.y.z; pending notes by default; needs Claude credentials) +changelog-draft: release-media/node_modules/.installed $(CHANGIE) + @CHANGIE='$(CHANGIE)' LILO_RELEASE='$(RELEASE)' node release-media/draft.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/docs/RELEASING.md b/docs/RELEASING.md index 152b44c38..0ab5667ea 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -24,11 +24,27 @@ make validate writing files. `Fixed` and `Changed` notes select a patch bump, `Added` selects minor, and `Breaking` selects major. When notes request different bumps, the largest wins. -A feature release (`x.y.0`) ships with its highlights: an entry in -`lilo-ui/src/components/whatsnew/releaseHighlights.json` and a story in -`site/src/content/releases/.json`, both described below. `make release-version` refuses to -cut one without them and leaves the notes in place; `make release-status` warns early. Patch -releases need neither. +### Changelog entries + +A release's changelog entry is drafted, reviewed and merged like code. `make changelog-draft` turns +the pending notes into a website story in `site/src/content/releases/.json`, What's New +highlights in `lilo-ui/src/components/whatsnew/releaseHighlights.json`, and their copy in every +language catalog. Merge it before `make release-version` so the app ships with its highlights: the +website keeps the entry out of sight until its release is published. Review it for what only a +person can judge. The tool checks that every note has a place and quotes it exactly, not that the +story is the right one. + +An entry never holds a release back. Without one, `make release-version` warns and What's New shows +the complete notes. Pushing a tag then runs the **Changelog draft** workflow, which opens a draft +pull request with the missing entry; merging it publishes the entry on the website, through the usual +deployment of `main`. It needs an `ANTHROPIC_API_KEY` repository secret, and skips with a notice +without one, and **Allow GitHub Actions to create and approve pull requests** in the repository's +Actions settings. Checks do not run on a pull request an action opens: close and reopen it to run them. +A release of fixes alone has no entry. + +The same workflow films the entry's highlights on macOS and adds them to the pull request. Locally, run +`make changelog-media RELEASE=x.y.z` after the draft. A highlight it cannot film stays text-only, and +the [release media guide](../release-media/README.md) explains how to fix or write its plan. `make release-version` collects the pending notes into a release file, consumes the fragments, and regenerates `CHANGELOG.md`. It updates `MARKETING_VERSION` in `Xcode/Configs/Base.xcconfig`, the UI and diff --git a/release-media/README.md b/release-media/README.md index a71135aa9..5bb40ea7a 100644 --- a/release-media/README.md +++ b/release-media/README.md @@ -8,4 +8,14 @@ The website and native What's New show the same media for a release highlight. A `make ui-build` stages only the installed release's files in `lilo-ui/public/release-media/`, so the app never carries the archive. +## Making media + +`make changelog-draft` writes a plan per highlight under `plans//`: a template and the steps that show the change in the real app. `make changelog-media RELEASE=x.y.z` runs them, renders the result with HyperFrames and GSAP, and names the media in the story and What's New. + +- The capture is one test, `ReleaseMediaCaptureTests`, which drives the compiled app with a disposable profile and example.com pages. A close-up needs no screen recording permission; a whole window does. +- `templates.mjs` has four templates: `image`, `hero`, `compare` and `flow`. A film has no sound and no words, so it needs no translation and loops without a cut. +- Films ship at 1080p and 30 fps. An image renders at 3840 by 2160. + +A plan that fails leaves its highlight text-only and says why, and a person fixes the plan or leaves it. Looking at the result is the review: the checks only prove a film plays. + `assets/0.8.0/tab-share.mp4` shows native Lilo 0.14.1, build 31, illustrating the 0.8.0 tab-sharing feature. It is not footage of a 0.8.0 binary, and its titles stay in English. Its soundtrack is **Week 37 - Schmoovin** by **Abstraction / Tallbeard Studios**, released under CC0 1.0 Universal. See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). diff --git a/release-media/assets/0.16.0/stacks.mp4 b/release-media/assets/0.16.0/stacks.mp4 new file mode 100644 index 000000000..d60d3367c Binary files /dev/null and b/release-media/assets/0.16.0/stacks.mp4 differ diff --git a/release-media/assets/0.16.0/stacks.png b/release-media/assets/0.16.0/stacks.png new file mode 100644 index 000000000..65c8f69a8 Binary files /dev/null and b/release-media/assets/0.16.0/stacks.png differ diff --git a/release-media/draft-prompt.md b/release-media/draft-prompt.md new file mode 100644 index 000000000..7e1b0f288 --- /dev/null +++ b/release-media/draft-prompt.md @@ -0,0 +1,43 @@ +You write the changelog of Lilo, a native macOS web browser built on WebKit. Readers are people who use Lilo every day, not developers of it. + +Write an entry from the release notes you are given, using the commits only to understand what a note means. Every claim must come from a note: never invent a behavior, a number, a shortcut or a benefit. Commits can explain a note, but they never add a claim of their own. + +## Shape + +- `title`: a short headline in the voice of the example entries, three to six words, ending with a period. It names the release's theme, not a list of features. +- `introduction`: one sentence on what the reader gets, in plain words. +- `highlights`: one to three features worth a section, the ones a reader would tell a friend about. An `id` is a short kebab-case word. `title` is three to six words and ends with a period. `body` is one or two sentences, 45 words at most: open with what the reader can now do, then say how, naming the actual control or shortcut. +- `groups`: every note that is not a highlight, gathered under short area names such as "Sidebar", "Calls", "Agents" or "Performance". A group's title has no period. Use three to seven groups, ordered by how much a reader cares. A note goes in exactly one group. Fixes go with their area, not in a group of their own. + +Each note has a number. Refer to notes by number in `notes`. A highlight lists the notes it tells; those notes then stay out of `groups`. + +## Media + +A highlight gets a `plan` when a picture says more than its words: it drives the real app and films the change. Leave `plan` null for anything the interface does not show. + +Pick the `template` that fits: + +- `image`: one finished state. One shot. +- `hero`: one state worth a slow look. One shot. +- `compare`: a before and an after. Two shots. +- `flow`: an interaction, step by step. Two or more shots, with a `click` between them; a pointer travels to each click. + +`steps` run in order in a fresh window with one Space, a sidebar on the left and no tabs. Unused fields are null. + +- `page`: open a sample example.com page, with `text` as its title. Open at least one first. +- `call`: open a sample call, which shows the sidebar's call card. +- `action`: run the native command `name`: `openSettings`, `openHistory`, `editCurrentSpace`, `pinCurrentTab`, `newTab` or `toggleSidebar`. +- `click`: click the `selector`, narrowed to the element whose text is `text` when set. +- `input`: type `value` in the field at `selector`. +- `wait`: wait for `selector` to appear. Use it after anything that opens. +- `shot`: capture `selector`, as tight as the change allows. Close-ups read well and whole windows do not: leave `selector` null only when the whole window is the point. + +Use only class names that appear in ``, and only reach for what you can see there. The steps cannot drag, hover or use a keyboard shortcut: when a change needs one, leave `plan` null. Sample content is generic and invented, never a real site or person. + +## Voice + +Calm, plain and concrete, like a first-party Apple release note. Prefer "you" and the present tense. Show the benefit before the mechanism. Name interface items exactly as the notes do. No hype, no exclamation marks, no "we", no "now you can finally", no rhetorical questions, and no em dashes. + +Use Lilo's own terms as the glossary spells them: Space, Private Space, Agents Space, pinned tab, favorite, folder, archive, Peek, Little window, Split View, command bar. + +French is written, not translated: natural French with the same meaning, using "vous", with French typography (a non-breaking space before `:` `?` `!`). Keep the product terms Lilo's French interface uses in the example entries. diff --git a/release-media/draft.mjs b/release-media/draft.mjs new file mode 100644 index 000000000..eff20efa0 --- /dev/null +++ b/release-media/draft.mjs @@ -0,0 +1,300 @@ +import { execFileSync } from "node:child_process"; +import { mkdir, readFile, readdir, writeFile } from "node:fs/promises"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import Anthropic from "@anthropic-ai/sdk"; +import { betaZodOutputFormat } from "@anthropic-ai/sdk/helpers/beta/zod"; +import { z } from "zod"; +import { templates } from "./templates.mjs"; + +const root = path.dirname(fileURLToPath(import.meta.url)); +const repo = path.resolve(root, ".."); +const stories = path.join(repo, "site/src/content/releases"); +const registry = path.join(repo, "lilo-ui/src/components/whatsnew/releaseHighlights.json"); +const locales = path.join(repo, "lilo-ui/src/lib/i18n/locales"); + +const translated = z.object({ en: z.string(), fr: z.string() }); +const Step = z.object({ + do: z.enum(["page", "call", "action", "click", "input", "wait", "shot"]), + selector: z.string().nullable(), + text: z.string().nullable(), + value: z.string().nullable(), + name: z.string().nullable(), +}); +const Plan = z.object({ template: z.enum(templates), steps: z.array(Step) }); +export const Draft = z.object({ + title: translated, + introduction: translated, + highlights: z.array( + z.object({ + id: z.string(), + title: translated, + body: translated, + notes: z.array(z.number()), + plan: Plan.nullable(), + }), + ), + groups: z.array(z.object({ title: translated, notes: z.array(z.number()) })), +}); +const Copy = z.object({ + headline: z.string(), + description: z.string(), + highlights: z.array(z.object({ title: z.string(), description: z.string() })), +}); + +export function parseNotes(markdown) { + const notes = []; + let kind = ""; + for (const line of markdown.split("\n")) { + const heading = /^### (\w+)/.exec(line); + if (heading) kind = heading[1]; + else if (kind && line.startsWith("- ")) notes.push({ kind, text: line.slice(2) }); + } + return notes; +} + +/** Fixes alone tell no story: their notes already say everything. */ +export const worthAnEntry = (notes) => notes.some((note) => note.kind !== "Fixed"); + +/** The website story for `draft`, or an error a retry can show the model. */ +export function storyFrom(version, draft, notes) { + const text = (index) => { + if (!notes[index]) throw Error(`Note ${index} does not exist`); + return notes[index].text; + }; + if (!draft.highlights.length || draft.highlights.length > 3) + throw Error("Write one to three highlights"); + const ids = draft.highlights.map((highlight) => highlight.id); + if (ids.some((id) => !/^[a-z][a-z0-9-]*$/.test(id)) || new Set(ids).size !== ids.length) + throw Error("Highlight ids must be unique kebab-case words"); + const told = draft.highlights.flatMap((highlight) => highlight.notes); + if (draft.highlights.some((highlight) => !highlight.notes.length)) + throw Error("Every highlight must list the notes it tells"); + const grouped = draft.groups.flatMap((group) => group.notes); + if (new Set(grouped).size !== grouped.length) throw Error("A note belongs to a single group"); + const covered = new Set([...told, ...grouped]); + const missing = notes.map((_, index) => index).filter((index) => !covered.has(index)); + if (missing.length) throw Error(`Notes without a place: ${missing.join(", ")}`); + return { + version, + title: draft.title, + introduction: draft.introduction, + highlights: draft.highlights.map(({ id, title, body, notes: indexes }) => ({ + id, + title, + body, + notes: indexes.map(text), + })), + groups: draft.groups + .filter((group) => group.notes.length) + .map(({ title, notes: indexes }) => ({ title, notes: indexes.map(text) })), + }; +} + +const SHOTS = { hero: 1, compare: 2, image: 1 }; + +/** The capture plans of a draft by highlight id, refusing one that cannot run. */ +export function plansFrom(draft, known) { + const plans = {}; + for (const { id, plan } of draft.highlights) { + if (!plan) continue; + const shots = plan.steps.filter((step) => step.do === "shot").length; + if (SHOTS[plan.template] ? shots !== SHOTS[plan.template] : shots < 2) + throw Error(`The ${id} plan takes ${shots} shot(s), which ${plan.template} cannot show`); + for (const { selector } of plan.steps) + for (const [name] of selector?.matchAll(/[.#][a-zA-Z][\w-]*/g) ?? []) + if (!known(name.slice(1))) throw Error(`The ${id} plan names ${name}, which no source has`); + plans[id] = plan; + } + return plans; +} + +const camel = (id) => id.replace(/-(\w)/g, (_, letter) => letter.toUpperCase()); + +/** The What's New registry entry and the copy every locale catalog gains under `key`. */ +export function whatsNewFrom(version, story) { + const key = `v${version.replaceAll(".", "")}`; + const path = `whatsNew.releases.${key}`; + return { + key, + entry: { + headlineKey: `${path}.headline`, + descriptionKey: `${path}.description`, + highlights: story.highlights.map(({ id }) => ({ + id, + titleKey: `${path}.${camel(id)}Title`, + descriptionKey: `${path}.${camel(id)}Description`, + })), + }, + copy: (copy) => ({ + headline: copy.headline, + description: copy.description, + ...Object.fromEntries( + story.highlights.flatMap(({ id }, index) => [ + [`${camel(id)}Title`, copy.highlights[index].title], + [`${camel(id)}Description`, copy.highlights[index].description], + ]), + ), + }), + }; +} + +/** Catalogs carry hand-kept formatting, so the release goes in as text rather than a rewrite. */ +export function withReleaseCopy(catalog, key, copy) { + const anchor = /^(\t+)"releases": \{\n/m.exec(catalog); + if (!anchor) throw Error("The catalog has no whatsNew.releases"); + const indent = `${anchor[1]}\t`; + const lines = Object.entries(copy).map( + ([name, value]) => `${indent}\t${JSON.stringify(name)}: ${JSON.stringify(value)}`, + ); + const block = `${indent}"${key}": {\n${lines.join(",\n")}\n${indent}},\n`; + const at = anchor.index + anchor[0].length; + return catalog.slice(0, at) + block + catalog.slice(at); +} + +const run = (command, ...args) => + execFileSync(command, args, { cwd: repo, encoding: "utf8", maxBuffer: 1 << 28 }); + +/** A published release's notes, or with no version, the pending ones. */ +async function release(requested) { + if (requested) { + const notes = await readFile(path.join(repo, `.changes/v${requested}.md`), "utf8"); + return { + version: requested, + markdown: notes, + ref: `v${requested}`, + since: run("git", "describe", "--tags", "--abbrev=0", `v${requested}^`).trim(), + }; + } + const changie = process.env.CHANGIE; + return { + version: run(changie, "next", "auto").trim().replace(/^v/, ""), + markdown: run(changie, "batch", "auto", "--dry-run", "--allow-no-changes=false"), + ref: "HEAD", + since: run(changie, "latest").trim(), + }; +} + +async function examples() { + const files = (await readdir(stories)).sort((a, b) => + b.localeCompare(a, "en", { numeric: true }), + ); + return Promise.all(files.slice(0, 3).map((file) => readFile(path.join(stories, file), "utf8"))); +} + +export async function prompts({ version, markdown, ref, since }, notes) { + return { + system: await readFile(path.join(root, "draft-prompt.md"), "utf8"), + user: [ + `\n${(await examples()).join("\n")}\n`, + `\n${run("git", "log", "--no-merges", "--format=%s%n%b", `${since}..${ref}`)}\n`, + `\n${run("git", "diff", `${since}..${ref}`, "--", "lilo-ui/src/**/*.svelte")}\n`, + `\n${notes.map((note, index) => `${index}. [${note.kind}] ${note.text}`).join("\n")}\n`, + ].join("\n\n"), + }; +} + +async function ask(client, system, content, schema) { + const response = await client.beta.messages.parse({ + model: "claude-opus-5-5", + max_tokens: 16000, + betas: ["server-side-fallback-2026-07-01"], + fallbacks: "default", + output_config: { effort: "high", format: betaZodOutputFormat(schema) }, + system, + messages: [{ role: "user", content }], + }); + if (response.stop_reason === "refusal" || !response.parsed_output) + throw Error(`No draft: the model stopped with ${response.stop_reason}`); + return response.parsed_output; +} + +async function main() { + const source = await release(process.env.LILO_RELEASE); + const notes = parseNotes(source.markdown); + const target = path.join(stories, `${source.version}.json`); + if (await readFile(target).catch(() => null)) { + console.log(`Release ${source.version} already has an entry`); + return; + } + if (!worthAnEntry(notes)) { + console.log(`Release ${source.version} has only fixes: no entry to draft`); + return; + } + const client = new Anthropic(); + const { system, user } = await prompts(source, notes); + const known = (name) => { + try { + run("git", "grep", "-qF", "--", name, "lilo-ui/src"); + return true; + } catch { + return false; + } + }; + let draft = await ask(client, system, user, Draft); + let story; + let plans; + try { + story = storyFrom(source.version, draft, notes); + plans = plansFrom(draft, known); + } catch (error) { + draft = await ask( + client, + system, + `${user}\n\nYour previous draft was refused: ${error.message}. Previous draft:\n${JSON.stringify(draft)}`, + Draft, + ); + story = storyFrom(source.version, draft, notes); + plans = plansFrom(draft, known); + } + + const english = { + headline: story.title.en, + description: story.introduction.en, + highlights: story.highlights.map(({ title, body }) => ({ + title: title.en, + description: body.en, + })), + }; + const french = { + headline: story.title.fr, + description: story.introduction.fr, + highlights: story.highlights.map(({ title, body }) => ({ + title: title.fr, + description: body.fr, + })), + }; + const codes = (await readdir(locales)) + .map((file) => path.basename(file, ".json")) + .filter((code) => code !== "en" && code !== "fr"); + const translations = await ask( + client, + "Translate this Lilo browser release copy into each locale: natural, calm first-party product language, keeping the same meaning, order and product terms.", + JSON.stringify(english), + z.object(Object.fromEntries(codes.map((code) => [code, Copy]))), + ); + + const whatsNew = whatsNewFrom(source.version, story); + for (const [code, copy] of Object.entries({ ...translations, en: english, fr: french })) { + if (copy.highlights.length !== story.highlights.length) + throw Error(`The ${code} copy lost a highlight`); + const file = path.join(locales, `${code}.json`); + await writeFile( + file, + withReleaseCopy(await readFile(file, "utf8"), whatsNew.key, whatsNew.copy(copy)), + ); + } + const highlights = JSON.parse(await readFile(registry, "utf8")); + await writeFile( + registry, + `${JSON.stringify({ [source.version]: whatsNew.entry, ...highlights }, null, "\t")}\n`, + ); + await writeFile(target, `${JSON.stringify(story, null, 2)}\n`); + const folder = path.join(root, "plans", source.version); + await mkdir(folder, { recursive: true }); + for (const [id, plan] of Object.entries(plans)) + await writeFile(path.join(folder, `${id}.json`), `${JSON.stringify(plan, null, 2)}\n`); + console.log(`Drafted the ${source.version} entry: ${story.title.en}`); +} + +if (process.argv[1] === fileURLToPath(import.meta.url)) await main(); diff --git a/release-media/draft.test.mjs b/release-media/draft.test.mjs new file mode 100644 index 000000000..c92d072a9 --- /dev/null +++ b/release-media/draft.test.mjs @@ -0,0 +1,76 @@ +import assert from "node:assert/strict"; +import { test } from "node:test"; +import { parseNotes, storyFrom, whatsNewFrom, withReleaseCopy, worthAnEntry } from "./draft.mjs"; + +const notes = parseNotes(`## [1.2.0] - 2026-01-02 + +### Added + +- Tabs gather into stacks. +- The sidebar folds to icons. + +### Fixed + +- A dropped link opens where you left it. +`); +const copy = { en: "Copy.", fr: "Texte." }; +const draft = { + title: copy, + introduction: copy, + highlights: [{ id: "tab-stacks", title: copy, body: copy, notes: [0] }], + groups: [{ title: copy, notes: [1, 2] }], +}; + +test("reads each note with its kind", () => { + assert.deepEqual(notes[2], { kind: "Fixed", text: "A dropped link opens where you left it." }); +}); + +test("a release of fixes alone gets no entry", () => { + assert.equal(worthAnEntry(notes), true); + assert.equal(worthAnEntry(notes.slice(2)), false); +}); + +test("a story quotes its notes exactly", () => { + const story = storyFrom("1.2.0", draft, notes); + assert.deepEqual(story.highlights[0].notes, ["Tabs gather into stacks."]); + assert.deepEqual(story.groups[0].notes, [ + "The sidebar folds to icons.", + "A dropped link opens where you left it.", + ]); +}); + +for (const [name, change, message] of [ + ["leaves a note out", { groups: [{ title: copy, notes: [1] }] }, /without a place: 2/], + ["repeats a grouped note", { groups: [{ title: copy, notes: [1, 1, 2] }] }, /single group/], + ["cites a note that does not exist", { groups: [{ title: copy, notes: [1, 2, 9] }] }, /Note 9/], + ["has no highlight", { highlights: [] }, /one to three/], + ["has an id the site refuses", { highlights: [{ ...draft.highlights[0], id: "Tab" }] }, /kebab/], +]) { + test(`a draft that ${name} is refused`, () => { + assert.throws(() => storyFrom("1.2.0", { ...draft, ...change }, notes), message); + }); +} + +test("What's New keys follow the highlight ids", () => { + const whatsNew = whatsNewFrom("1.2.0", storyFrom("1.2.0", draft, notes)); + assert.equal(whatsNew.key, "v120"); + assert.equal(whatsNew.entry.highlights[0].titleKey, "whatsNew.releases.v120.tabStacksTitle"); + assert.deepEqual( + whatsNew.copy({ + headline: "H", + description: "D", + highlights: [{ title: "T", description: "B" }], + }), + { headline: "H", description: "D", tabStacksTitle: "T", tabStacksDescription: "B" }, + ); +}); + +test("release copy goes in as text and leaves the rest of the catalog untouched", () => { + const catalog = `{\n\t"whatsNew": {\n\t\t"releases": {\n\t\t\t"v110": { "headline": "Old" }\n\t\t}\n\t}\n}\n`; + const updated = withReleaseCopy(catalog, "v120", { headline: 'A "new" one' }); + assert.equal( + updated, + `{\n\t"whatsNew": {\n\t\t"releases": {\n\t\t\t"v120": {\n\t\t\t\t"headline": "A \\"new\\" one"\n\t\t\t},\n\t\t\t"v110": { "headline": "Old" }\n\t\t}\n\t}\n}\n`, + ); + assert.equal(JSON.parse(updated).whatsNew.releases.v120.headline, 'A "new" one'); +}); diff --git a/release-media/media.mjs b/release-media/media.mjs new file mode 100644 index 000000000..a96f4b455 --- /dev/null +++ b/release-media/media.mjs @@ -0,0 +1,52 @@ +import { readFile, readdir, writeFile } from "node:fs/promises"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { prepare, renderHighlight } from "./render.mjs"; + +const root = path.dirname(fileURLToPath(import.meta.url)); +const repo = path.resolve(root, ".."); + +const readJson = async (file) => JSON.parse(await readFile(file, "utf8")); + +/** Names the media of each rendered highlight, leaving the others as they are. */ +export function withMedia(highlights, rendered) { + return highlights.map((highlight) => + rendered[highlight.id] ? { ...highlight, media: rendered[highlight.id] } : highlight, + ); +} + +async function main() { + const version = process.env.LILO_RELEASE; + const plans = path.join(root, "plans", version); + const ids = (await readdir(plans)).map((file) => path.basename(file, ".json")); + await prepare(); + + const rendered = {}; + for (const id of ids) { + const directory = path.join(repo, "build/release-media/shots", version, id); + try { + const failure = await readFile(path.join(directory, "failure.txt"), "utf8").catch(() => null); + if (failure) throw Error(failure); + const { template } = await readJson(path.join(plans, `${id}.json`)); + const shots = await readJson(path.join(directory, "shots.json")); + rendered[id] = await renderHighlight({ version, id, template, directory, shots }); + console.log(`${id}: ${rendered[id]}`); + } catch (error) { + console.log(`${id}: stays text-only. ${error.message}`); + } + } + + const storyFile = path.join(repo, "site/src/content/releases", `${version}.json`); + const story = await readJson(storyFile); + story.highlights = withMedia(story.highlights, rendered); + await writeFile(storyFile, `${JSON.stringify(story, null, 2)}\n`); + + const registryFile = path.join(repo, "lilo-ui/src/components/whatsnew/releaseHighlights.json"); + const registry = await readJson(registryFile); + if (registry[version]) { + registry[version].highlights = withMedia(registry[version].highlights, rendered); + await writeFile(registryFile, `${JSON.stringify(registry, null, "\t")}\n`); + } +} + +if (process.argv[1] === fileURLToPath(import.meta.url)) await main(); diff --git a/release-media/media.test.mjs b/release-media/media.test.mjs new file mode 100644 index 000000000..c7fb88903 --- /dev/null +++ b/release-media/media.test.mjs @@ -0,0 +1,61 @@ +import assert from "node:assert/strict"; +import { test } from "node:test"; +import { plansFrom } from "./draft.mjs"; +import { withMedia } from "./media.mjs"; +import { composition } from "./templates.mjs"; + +const shot = (file, click) => ({ file, width: 1200, height: 800, ...(click ? { click } : {}) }); +const step = (fields) => ({ selector: null, text: null, value: null, name: null, ...fields }); + +test("each template plays over the shots it was given and loops back to its start", () => { + for (const [template, shots] of [ + ["hero", [shot("a.png")]], + ["compare", [shot("a.png"), shot("b.png")]], + ["flow", [shot("a.png", [0.5, 0.5]), shot("b.png", [0.2, 0.2]), shot("c.png")]], + ["image", [shot("a.png")]], + ]) { + const { html, duration, poster } = composition({ template, shots }); + for (const { file } of shots) assert.match(html, new RegExp(`assets/shots/${file}`)); + assert.ok(poster < duration, template); + } +}); + +test("a template refuses a number of shots it cannot show", () => { + assert.throws(() => composition({ template: "compare", shots: [shot("a.png")] }), /cannot show/); + assert.throws(() => composition({ template: "flow", shots: [shot("a.png")] }), /cannot show/); + assert.throws(() => composition({ template: "reel", shots: [] }), /Unknown template/); +}); + +test("a shot is never enlarged past its own pixels", () => { + const { html } = composition({ template: "image", shots: [{ file: "a.png", width: 400, height: 200 }] }); + assert.match(html, /width:400px;height:200px/); +}); + +test("a flow's pointer lands where the shot was clicked", () => { + const { html } = composition({ + template: "flow", + shots: [shot("a.png", [0.5, 0.5]), shot("b.png")], + }); + assert.match(html, /\{ x: 960, y: 540, opacity: 1,/); +}); + +const plan = (template, steps) => ({ highlights: [{ id: "tabs", plan: { template, steps } }] }); + +test("a plan keeps to its template's shots and to classes the interface has", () => { + const shots = [step({ do: "shot", selector: ".sidebar-layout" })]; + const known = (name) => name === "sidebar-layout"; + assert.deepEqual(Object.keys(plansFrom(plan("hero", shots), known)), ["tabs"]); + assert.throws(() => plansFrom(plan("compare", shots), known), /cannot show/); + assert.throws(() => plansFrom(plan("hero", shots), () => false), /no source has/); +}); + +test("a highlight without a plan needs nothing", () => { + assert.deepEqual(plansFrom({ highlights: [{ id: "tabs", plan: null }] }, () => false), {}); +}); + +test("only rendered highlights gain media", () => { + assert.deepEqual(withMedia([{ id: "tabs" }, { id: "calm" }], { tabs: "loop" }), [ + { id: "tabs", media: "loop" }, + { id: "calm" }, + ]); +}); diff --git a/release-media/package-lock.json b/release-media/package-lock.json new file mode 100644 index 000000000..2d1bddd31 --- /dev/null +++ b/release-media/package-lock.json @@ -0,0 +1,2011 @@ +{ + "name": "lilo-release-media", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "lilo-release-media", + "dependencies": { + "@anthropic-ai/sdk": "1.6.0", + "gsap": "3.15.0", + "hyperframes": "0.8.226", + "zod": "4.6.7" + } + }, + "node_modules/@anthropic-ai/sdk": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.6.0.tgz", + "integrity": "sha512-XqiO/46n8S6So8jQ/6/uNCkHntyW6QHHs1gZ+hlwTx1fWDr929g4VmwIXfdMVk7SuBWNdQvAlwyi1G3t6SEIuQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api": "^1.4.1", + "json-schema-to-ts": "^3.1.1", + "standardwebhooks": "^1.0.0" + }, + "bin": { + "anthropic-ai-sdk": "bin/cli" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + }, + "peerDependenciesMeta": { + "zod": { + "optional": true + } + } + }, + "node_modules/@babel/runtime": { + "version": "7.29.13", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.13.tgz", + "integrity": "sha512-v+oN26xP4YIlQsbQ/CbTH1WG5m/l/DjKKZNy/Kp3f/AFvbgt7Em/D0FeMM3O2hX0YzeN2M16W8lOpyhIkfCBcQ==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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/@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", + "optional": true, + "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/@opentelemetry/api": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.10.0.tgz", + "integrity": "sha512-lMkyes8iHrG+mk6WH7X70MdCLI2RS0FwNBY1PyQ8UemaijE2m5mv5A0Niy3HtbYTFrgkUEQjFMXmSAk2hQDuPQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=8.0.0" + } + }, + "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/@stablelib/base64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/base64/-/base64-1.0.1.tgz", + "integrity": "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==", + "license": "MIT" + }, + "node_modules/@swc/helpers": { + "version": "0.5.24", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.24.tgz", + "integrity": "sha512-6tcXo4kA8HgGO7AVmawB57RYi/piBPYVHVcO6dXjX+SZw8GoHmi262sp4v2Ha2kNP9Cx84qei27yT+fjS1lxgg==", + "license": "Apache-2.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/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/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/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": "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/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-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/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/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/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", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "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/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/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/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/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/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/fast-sha256": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz", + "integrity": "sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==", + "license": "Unlicense" + }, + "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/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/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-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/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-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/json-schema-to-ts": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/json-schema-to-ts/-/json-schema-to-ts-3.1.1.tgz", + "integrity": "sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.3", + "ts-algebra": "^2.0.0" + }, + "engines": { + "node": ">=16" + } + }, + "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/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/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/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/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/semver": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", + "license": "ISC", + "optional": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "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", + "optional": true, + "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/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/standardwebhooks": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.1.1.tgz", + "integrity": "sha512-bCbX9ZEyFkWPsRz7Bl3NuQUJohmwGSev/yhr7vhaGPlc4AfIrspIRa6cPTBuI1ItmrTDJ4d/S2hCsfe4+vQGnQ==", + "license": "MIT", + "dependencies": { + "@stablelib/base64": "^1.0.0", + "fast-sha256": "^1.3.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/ts-algebra": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ts-algebra/-/ts-algebra-2.0.0.tgz", + "integrity": "sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==", + "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", + "optional": true + }, + "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/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/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/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/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/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..6a25355e0 --- /dev/null +++ b/release-media/package.json @@ -0,0 +1,15 @@ +{ + "name": "lilo-release-media", + "private": true, + "type": "module", + "dependencies": { + "@anthropic-ai/sdk": "1.6.0", + "gsap": "3.15.0", + "hyperframes": "0.8.226", + "zod": "4.6.7" + }, + "overrides": { + "undici": "7.30.1", + "zod": "4.6.7" + } +} diff --git a/release-media/plans/0.16.0/stacks.json b/release-media/plans/0.16.0/stacks.json new file mode 100644 index 000000000..4611e5292 --- /dev/null +++ b/release-media/plans/0.16.0/stacks.json @@ -0,0 +1,61 @@ +{ + "template": "flow", + "steps": [ + { + "do": "page", + "selector": null, + "text": "Getting started", + "value": null, + "name": null + }, + { + "do": "page", + "selector": null, + "text": "Pricing", + "value": null, + "name": null + }, + { + "do": "page", + "selector": null, + "text": "Documentation", + "value": null, + "name": null + }, + { + "do": "wait", + "selector": ".stack-row", + "text": null, + "value": null, + "name": null + }, + { + "do": "shot", + "selector": ".tab-list", + "text": null, + "value": null, + "name": null + }, + { + "do": "click", + "selector": ".stack-row", + "text": null, + "value": null, + "name": null + }, + { + "do": "wait", + "selector": ".stack-row.open", + "text": null, + "value": null, + "name": null + }, + { + "do": "shot", + "selector": ".tab-list", + "text": null, + "value": null, + "name": null + } + ] +} \ No newline at end of file diff --git a/release-media/render.mjs b/release-media/render.mjs new file mode 100644 index 000000000..55b4071ae --- /dev/null +++ b/release-media/render.mjs @@ -0,0 +1,68 @@ +import { execFile } from "node:child_process"; +import { copyFile, mkdir, rm, stat, writeFile } from "node:fs/promises"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { promisify } from "node:util"; +import { composition } from "./templates.mjs"; + +const run = promisify(execFile); +const root = path.dirname(fileURLToPath(import.meta.url)); +const cli = path.join(root, "node_modules/hyperframes/bin/hyperframes.mjs"); +const env = { ...process.env, DO_NOT_TRACK: "1" }; +const MAX_FILM_BYTES = 12 * 1024 * 1024; + +const hyperframes = (...args) => + run(process.execPath, [cli, ...args], { env, maxBuffer: 1 << 26 }).catch(() => { + throw Error(`hyperframes ${args[0]} failed. Run it on ${args[1]} to see why.`); + }); + +/** Plays the encoded film to its end: a file that merely exists is not a film. */ +async function verifyFilm(file) { + const { stdout } = await run("ffprobe", [ + ...["-v", "error", "-show_streams", "-of", "json", file], + ]); + const { streams } = JSON.parse(stdout); + const video = streams.find((stream) => stream.codec_type === "video"); + if (video?.codec_name !== "h264" || video.width !== 1920 || video.height !== 1080) + throw Error(`Not a 1080p H.264 film: ${file}`); + if (video.pix_fmt !== "yuv420p") throw Error(`A browser cannot play ${video.pix_fmt}: ${file}`); + if ((await stat(file)).size > MAX_FILM_BYTES) throw Error(`Too heavy for the changelog: ${file}`); + await run("ffmpeg", ["-v", "error", "-xerror", "-i", file, "-f", "null", "-"]); +} + +/** Renders one highlight's shots to `assets//.{mp4,png}` and returns its media kind. */ +export async function renderHighlight({ version, id, template, directory, shots }) { + const { html, poster } = composition({ template, shots }); + const project = path.join(root, "../build/release-media/projects", version, id); + await rm(project, { recursive: true, force: true }); + await mkdir(path.join(project, "assets/shots"), { recursive: true }); + await writeFile(path.join(project, "index.html"), html); + await copyFile( + path.join(root, "node_modules/gsap/dist/gsap.min.js"), + path.join(project, "assets/gsap.min.js"), + ); + for (const { file } of shots) + await copyFile(path.join(directory, file), path.join(project, "assets/shots", file)); + await hyperframes("check", project, "--strict"); + + const output = path.join(root, "assets", version); + await mkdir(output, { recursive: true }); + const stills = path.join(project, "stills"); + await hyperframes( + "snapshot", project, "--at", String(poster), "--no-end", "--output", stills, + "--zoom", "0,0,1920,1080", "--zoom-scale", template === "image" ? "2" : "1", + ); + await copyFile(path.join(stills, `frame-00-at-${poster}s.png`), path.join(output, `${id}.png`)); + if (template === "image") return "image"; + + const film = path.join(output, `${id}.mp4`); + await hyperframes( + "render", project, "--output", film, "--fps", "30", "--crf", "20", "--strict", + "--page-motion-blur", "off", + ); + await verifyFilm(film); + return "loop"; +} + +/** Downloads the pinned browser the first render needs. */ +export const prepare = () => hyperframes("browser", "ensure"); diff --git a/release-media/templates.mjs b/release-media/templates.mjs new file mode 100644 index 000000000..5c5ad2dfc --- /dev/null +++ b/release-media/templates.mjs @@ -0,0 +1,126 @@ +const WIDTH = 1920; +const HEIGHT = 1080; +const MARGIN = { x: 140, y: 80 }; +const STEP = 2.6; + +/** Never above the capture's own pixels: an enlarged screenshot reads as blurry. */ +function fit({ width, height }) { + const scale = Math.min( + (WIDTH - MARGIN.x * 2) / width, + (HEIGHT - MARGIN.y * 2) / height, + 1, + ); + const size = { width: Math.round(width * scale), height: Math.round(height * scale) }; + return { ...size, left: (WIDTH - size.width) / 2, top: (HEIGHT - size.height) / 2 }; +} + +/** A flow's shots share their top edge, so a row keeps its place when a shot grows. */ +function frames(template, shots) { + const fitted = shots.map(fit); + const top = Math.min(...fitted.map((frame) => frame.top)); + return template === "flow" ? fitted.map((frame) => ({ ...frame, top })) : fitted; +} + +const seconds = (value) => Number(value.toFixed(2)); + +/** The timeline each template plays. Every film ends as it starts, so it loops without a cut. */ +const timelines = { + hero: () => ({ + duration: 6, + poster: 3, + steps: [ + `tl.fromTo("#shot-0", { scale: 1 }, { scale: 1.035, duration: 3, ease: "sine.inOut" }, 0);`, + `tl.to("#shot-0", { scale: 1, duration: 3, ease: "sine.inOut" }, 3);`, + ], + }), + compare: () => ({ + duration: 7, + poster: 4.5, + steps: [ + `tl.to("#shot-1", { opacity: 1, duration: 0.7, ease: "sine.inOut" }, 2.4);`, + `tl.to("#shot-1", { opacity: 0, duration: 0.7, ease: "sine.inOut" }, 5.9);`, + ], + }), + flow: (shots) => { + const last = shots.length - 1; + const steps = []; + let pointed = false; + const placed = frames("flow", shots); + shots.slice(0, last).forEach((shot, index) => { + const start = index * STEP; + if (shot.click) { + const frame = placed[index]; + const x = frame.left + shot.click[0] * frame.width; + const y = frame.top + shot.click[1] * frame.height; + const move = `{ x: ${seconds(x)}, y: ${seconds(y)}, opacity: 1, duration: 1, ease: "power2.inOut" }, ${seconds(start + 0.4)}`; + steps.push( + pointed + ? `tl.to("#pointer", ${move});` + : `tl.fromTo("#pointer", { x: ${WIDTH + 80}, y: ${HEIGHT - 120}, opacity: 1 }, ${move});`, + `tl.to("#pointer", { scale: 0.86, duration: 0.08, ease: "power2.out" }, ${seconds(start + 1.5)});`, + `tl.to("#pointer", { scale: 1, duration: 0.16, ease: "power2.out" }, ${seconds(start + 1.58)});`, + ); + pointed = true; + } + steps.push( + `tl.to("#shot-${index + 1}", { opacity: 1, duration: 0.35, ease: "sine.inOut" }, ${seconds(start + 1.7)});`, + ); + }); + const end = last * STEP + 2; + steps.push(`tl.to("#pointer", { opacity: 0, duration: 0.3 }, ${seconds(end - 0.6)});`); + for (let index = 1; index <= last; index += 1) + steps.push(`tl.to("#shot-${index}", { opacity: 0, duration: 0.5, ease: "sine.inOut" }, ${seconds(end)});`); + return { duration: seconds(end + 0.5), poster: seconds(last * STEP + 1), steps }; + }, + image: () => ({ duration: 1, poster: 0, steps: [] }), +}; + +export const templates = Object.keys(timelines); + +const pointer = (duration) => + ``; + +/** A literal HyperFrames project page: the shots over Lilo's backdrop, on one paused GSAP timeline. */ +export function composition({ template, shots }) { + const timeline = timelines[template]?.(shots); + if (!timeline) throw Error(`Unknown template: ${template}`); + const wanted = { hero: 1, compare: 2, image: 1 }[template]; + if (wanted ? shots.length !== wanted : shots.length < 2) + throw Error(`The ${template} template cannot show ${shots.length} shot(s)`); + const placed = frames(template, shots); + const pictures = shots.map((shot, index) => { + const { left, top, width, height } = placed[index]; + return ``; + }); + return { + duration: timeline.duration, + poster: timeline.poster, + html: ` + + + + + Lilo release media + + + + +
+ ${[...pictures, template === "flow" ? pointer(timeline.duration) : ""].join("\n ")} +
+ + + +`, + }; +} diff --git a/scripts/release.py b/scripts/release.py index df3f6b886..7a5a408a0 100644 --- a/scripts/release.py +++ b/scripts/release.py @@ -35,7 +35,8 @@ def version_updates(version, released): def check_highlights(version): - """A feature release ships with its What's New highlights and its website story; a patch release needs neither.""" + """Warns when a feature release has no What's New highlights or website story. Neither holds the app back: + What's New falls back to the complete notes, and the Changelog draft workflow writes the website story after the tag.""" if not version.endswith(".0"): return highlights_path = Path("lilo-ui/src/components/whatsnew/releaseHighlights.json") @@ -46,7 +47,7 @@ def check_highlights(version): if not story_path.exists(): missing.append(str(story_path)) if missing: - raise ValueError(f"Release {version} adds features: write {' and '.join(missing)} first (docs/RELEASING.md)") + print(f"Warning: release {version} adds features without {' or '.join(missing)}: make changelog-draft writes them (docs/RELEASING.md)") def main(): @@ -79,11 +80,7 @@ def changie(*arguments): raise ValueError("CHANGELOG.md is out of sync with Changie; run make release-version") if pending: print(changie("batch", "auto", "--dry-run", "--allow-no-changes=false"), end="") - # A warning only: CI runs status on every push, long before the release is cut. - try: - check_highlights(changie("next", "auto").strip().removeprefix("v")) - except ValueError as error: - print(f"\nWarning: {error}") + check_highlights(changie("next", "auto").strip().removeprefix("v")) else: print("No pending release notes.") diff --git a/scripts/release_test.py b/scripts/release_test.py index 9b7acdeb9..2a9a37c04 100644 --- a/scripts/release_test.py +++ b/scripts/release_test.py @@ -123,19 +123,12 @@ def check_release(self, kind, version): self.run_release("status") self.assertEqual(self.snapshot(), released) - def test_a_feature_release_waits_for_its_highlights_and_story(self): + def test_a_feature_release_without_highlights_warns_and_ships(self): self.note("Added") status = self.run_release("status") self.assertIn("lilo-ui/src/components/whatsnew/releaseHighlights.json", status.stdout) - before = self.snapshot() - refused = self.run_release("version", success=False) - self.assertIn("site/src/content/releases/0.2.0.json", refused.stderr) - self.assertEqual(self.snapshot(), before) - self.write(HIGHLIGHTS, json.dumps({"0.2.0": {}}) + "\n") - self.run_release("version", success=False) - self.assertEqual(len(list((self.root / ".changes/unreleased").glob("*.yaml"))), 1, "a missing story keeps the notes") - self.highlight("0.2.0") - self.run_release("version") + released = self.run_release("version") + self.assertIn("site/src/content/releases/0.2.0.json", released.stdout) self.assert_versions("0.2.0") def test_a_patch_release_needs_no_highlights(self): diff --git a/site/README.md b/site/README.md index f905e4a9a..207c8f6b3 100644 --- a/site/README.md +++ b/site/README.md @@ -71,6 +71,10 @@ Each highlight can define an optional `action` with translated `label` and `href Existing archives stay unchanged on later builds and releases; incomplete archives require explicit replacement. For a demo story, `make site-release-capture RELEASE=x.y.z RECAPTURE=1` replaces its media using an owned server on port 8791 and Playwright's Chromium browser. For a native story, use `site-release-import` with reviewed window frames. Missing native media stops release preparation with that instruction. `make release-version` prepares missing media before the website build; normal builds and `make validate` never record or replace media. +## Release pages and feeds + +Every release has its own page at `/changelog//`, with its first illustrated highlight as its social image. `/changelog/rss.xml` and `/fr/changelog/rss.xml`, built with `@astrojs/rss`, carry the last 30 releases with their complete notes. A story's `groups` list the notes that are not highlights by product area, in place of the complete notes. + ## Highlight media A highlight names its `media` kind and the changelog shows `/release-media//.{mp4,png}`, a link to `../release-media/assets/`. Native What's New shows the same files. See [release-media/README.md](../release-media/README.md). The files are plain static assets: `_headers` advertises byte ranges so Chromium can seek a film. diff --git a/site/generate.py b/site/generate.py index 83c453d05..e5f48fef0 100644 --- a/site/generate.py +++ b/site/generate.py @@ -10,6 +10,8 @@ DIST = Path(__file__).resolve().parent / "dist" VOID = {"meta", "link", "br", "img", "input", "hr", "source"} +# A release page repeats its changelog entry: the Markdown mirrors keep the full changelog only. +RELEASE_PAGE = re.compile(r"changelog/\d+\.\d+\.\d+/index\.html$") BLOCK = {"main", "section", "article", "header", "div", "p", "h1", "h2", "h3", "h4", "details", "summary", "table", "footer", "ul", "ol", "li", "time", "figure", "figcaption"} # Interactive mockups and decoration: their text is illustration, not page content. SKIP_TAGS = {"script", "style", "svg", "button", "head", "nav"} @@ -191,7 +193,8 @@ def sync_json_ld(path): def main(): pages = sorted(path.relative_to(DIST).as_posix() for path in DIST.rglob("index.html") - if not path.is_relative_to(DIST / "demo")) + if not path.is_relative_to(DIST / "demo") + and not RELEASE_PAGE.search(path.as_posix())) full = [] for path in sorted(pages, key=lambda path: (path != "index.html", path)): sync_json_ld(path) diff --git a/site/package-lock.json b/site/package-lock.json index 05746a1ea..0225829ab 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -6,6 +6,7 @@ "": { "name": "lilo-site", "dependencies": { + "@astrojs/rss": "4.0.19", "@astrojs/sitemap": "3.7.4", "@astrojs/svelte": "9.1.1", "@modelcontextprotocol/client": "2.4.0", @@ -377,6 +378,17 @@ "node": ">=22.23.4" } }, + "node_modules/@astrojs/rss": { + "version": "4.0.19", + "resolved": "https://registry.npmjs.org/@astrojs/rss/-/rss-4.0.19.tgz", + "integrity": "sha512-e+z5wYeYtffQdHQO8c2tkSd2JEBdAuRXJV4ZEU5IxkYeE6e39woDd7nw1PH1Kk2tEYNCYuKdylnnbhGmt61awA==", + "license": "MIT", + "dependencies": { + "fast-xml-parser": "^5.5.7", + "piccolore": "^0.1.3", + "zod": "^4.3.6" + } + }, "node_modules/@astrojs/sitemap": { "version": "3.7.4", "resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.7.4.tgz", diff --git a/site/package.json b/site/package.json index 12ce8fed9..961e1fa1c 100644 --- a/site/package.json +++ b/site/package.json @@ -16,6 +16,7 @@ "test:e2e": "playwright test" }, "dependencies": { + "@astrojs/rss": "4.0.19", "@astrojs/sitemap": "3.7.4", "@astrojs/svelte": "9.1.1", "@modelcontextprotocol/client": "2.4.0", diff --git a/site/src/components/Changelog.astro b/site/src/components/Changelog.astro index 48d52677e..4e8d32674 100644 --- a/site/src/components/Changelog.astro +++ b/site/src/components/Changelog.astro @@ -1,12 +1,10 @@ --- -import changelog from "../../../CHANGELOG.md?raw"; import Layout from "../layouts/Layout.astro"; -import { parseChangelog } from "../lib/changelog.ts"; import { copy } from "../lib/i18n"; import type { Locale } from "../lib/i18n"; -import { parseReleaseStories } from "../lib/release-stories"; +import { releases, stories } from "../lib/release-entries"; import PageSection from "./PageSection.astro"; -import ReleaseStory from "./ReleaseStory.astro"; +import ReleaseEntry from "./ReleaseEntry.astro"; interface Props { lang: Locale; @@ -14,26 +12,6 @@ interface Props { const { lang } = Astro.props; const text = copy[lang]; -const releases = parseChangelog(changelog); - -const stories = parseReleaseStories( - changelog, - Object.values( - import.meta.glob("../content/releases/*.json", { - eager: true, - import: "default", - }) - ) -); - -if (releases.length === 0) { - throw new Error("No published Changie releases found in CHANGELOG.md"); -} - -const dateFormat = new Intl.DateTimeFormat(lang, { - dateStyle: "long", - timeZone: "UTC", -}); --- {releases.map((release, index) => ( -
-
- {index === 0 && {text.latest}} -

- - {release.version} - -

- - - {text.releaseLink} - -
-
- {stories.has(release.version) ? ( - <> - -
- {text.releaseAllChanges} -
-
- - ) : ( -
- )} -
-
+ ))}
- - diff --git a/site/src/components/ReleaseEntry.astro b/site/src/components/ReleaseEntry.astro new file mode 100644 index 000000000..90309048d --- /dev/null +++ b/site/src/components/ReleaseEntry.astro @@ -0,0 +1,198 @@ +--- +import { marked } from "marked"; + +import type { Release } from "../lib/changelog.ts"; +import { copy, localizedPath } from "../lib/i18n"; +import type { Locale } from "../lib/i18n"; +import type { ReleaseStory as Story } from "../lib/release-stories"; +import ReleaseStory from "./ReleaseStory.astro"; + +interface Props { + lang: Locale; + latest: boolean; + release: Release; + story?: Story; +} + +const { lang, latest, release, story } = Astro.props; +const text = copy[lang]; + +const dateFormat = new Intl.DateTimeFormat(lang, { + dateStyle: "long", + timeZone: "UTC", +}); +--- + +
+
+ {latest && {text.latest}} +

+ + {release.version} + +

+ + + {text.releaseLink} + +
+
+ {story ? : null} + {story?.groups ? ( +
+ {story.groups.map((group) => ( +
+

{group.title[lang]}

+
    + {group.notes.map((note) => ( +
  • + ))} +
+
+ ))} +
+ ) : story ? ( +
+ {text.releaseAllChanges} +
+
+ ) : ( +
+ )} +
+
+ + diff --git a/site/src/components/ReleasePage.astro b/site/src/components/ReleasePage.astro new file mode 100644 index 000000000..88c94a5df --- /dev/null +++ b/site/src/components/ReleasePage.astro @@ -0,0 +1,52 @@ +--- +import { releaseMedia } from "../../../release-media/catalog"; +import Layout from "../layouts/Layout.astro"; +import { copy } from "../lib/i18n"; +import type { Locale } from "../lib/i18n"; +import { releases, stories } from "../lib/release-entries"; +import PageSection from "./PageSection.astro"; +import ReleaseEntry from "./ReleaseEntry.astro"; + +interface Props { + lang: Locale; + version: string; +} + +const { lang, version } = Astro.props; +const text = copy[lang]; +const release = releases.find((item) => item.version === version); + +if (!release) { + throw new Error(`Unknown release ${version}`); +} + +const story = stories.get(version); +const heading = story?.title[lang] ?? `Lilo ${version}`; +const illustrated = story?.highlights.find((highlight) => highlight.media); + +const image = + illustrated?.media && + releaseMedia(version, illustrated.id, illustrated.media).poster; +--- + + + + + + diff --git a/site/src/content/releases/0.16.0.json b/site/src/content/releases/0.16.0.json index be233a392..832b873ec 100644 --- a/site/src/content/releases/0.16.0.json +++ b/site/src/content/releases/0.16.0.json @@ -36,7 +36,8 @@ "notes": [ "Three or more tabs from one site gather into a stack in the sidebar, named after what their titles share; it opens like a folder and closes all its pages at once. Group by Type puts agents and terminals in their own trays above the web pages, each foldable while still showing what needs you. Both, and a one-off sort by site or title, sit behind a new button on the divider above the open tabs.", "Stacks and trays open and fold like folders, their tabs rising in as one block, and a stack closed down to a single tab turns back into a plain tab." - ] + ], + "media": "loop" }, { "id": "calm", diff --git a/site/src/layouts/Layout.astro b/site/src/layouts/Layout.astro index a00bbc8da..505d60e0e 100644 --- a/site/src/layouts/Layout.astro +++ b/site/src/layouts/Layout.astro @@ -6,7 +6,7 @@ import Footer from "../components/Footer.astro"; import Header from "../components/Header.astro"; import PageEnd from "../components/PageEnd.astro"; import PageHero from "../components/PageHero.astro"; -import { copy } from "../lib/i18n"; +import { copy, localizedPath } from "../lib/i18n"; import type { Locale } from "../lib/i18n"; import "../styles/global.css"; @@ -27,6 +27,7 @@ interface Props { closing?: Omit, "lang">; schema?: Schema[]; noindex?: boolean; + image?: string; } const { @@ -40,6 +41,7 @@ const { }, schema = [], noindex = false, + image = "/og.png", } = Astro.props; const path = Astro.url.pathname; @@ -85,6 +87,12 @@ const jsonLD = JSON.stringify({ + )} - + @@ -117,7 +125,7 @@ const jsonLD = JSON.stringify({ - + diff --git a/site/src/lib/changelog.ts b/site/src/lib/changelog.ts index 1fa42aa74..4e0b7f75a 100644 --- a/site/src/lib/changelog.ts +++ b/site/src/lib/changelog.ts @@ -26,3 +26,5 @@ export const parseChangelog = (markdown: string) => { b.version.localeCompare(a.version, "en", { numeric: true }) ); }; + +export type Release = ReturnType[number]; diff --git a/site/src/lib/release-entries.ts b/site/src/lib/release-entries.ts new file mode 100644 index 000000000..9cc113716 --- /dev/null +++ b/site/src/lib/release-entries.ts @@ -0,0 +1,19 @@ +import changelog from "../../../CHANGELOG.md?raw"; +import { parseChangelog } from "./changelog.ts"; +import { parseReleaseStories } from "./release-stories"; + +export const releases = parseChangelog(changelog); + +export const stories = parseReleaseStories( + changelog, + Object.values( + import.meta.glob("../content/releases/*.json", { + eager: true, + import: "default", + }) + ) +); + +if (releases.length === 0) { + throw new Error("No published Changie releases found in CHANGELOG.md"); +} diff --git a/site/src/lib/release-feed.ts b/site/src/lib/release-feed.ts new file mode 100644 index 000000000..3a93bd039 --- /dev/null +++ b/site/src/lib/release-feed.ts @@ -0,0 +1,24 @@ +import rss from "@astrojs/rss"; + +import { copy, localizedPath } from "./i18n"; +import type { Locale } from "./i18n"; +import { releases, stories } from "./release-entries"; + +export const releaseFeed = (lang: Locale, site: URL | undefined) => + rss({ + customData: `${lang}`, + description: copy[lang].changelogDescription, + items: releases.slice(0, 30).map((release) => { + const story = stories.get(release.version); + + return { + content: release.html, + description: story?.introduction[lang], + link: localizedPath(lang, `changelog/${release.version}/`), + pubDate: new Date(`${release.date}T00:00:00Z`), + title: story?.title[lang] ?? `Lilo ${release.version}`, + }; + }), + site: site ?? "https://getlilo.app", + title: copy[lang].changelogTitle, + }); diff --git a/site/src/lib/release-stories.ts b/site/src/lib/release-stories.ts index 4aee73ae1..0d8efb59f 100644 --- a/site/src/lib/release-stories.ts +++ b/site/src/lib/release-stories.ts @@ -15,6 +15,14 @@ const storySchema = z.strictObject({ source: z.enum(["demo", "native"]).default("demo"), }) .optional(), + groups: z + .array( + z.strictObject({ + notes: z.array(z.string().min(1)).min(1), + title: translatedText, + }) + ) + .optional(), highlights: z .array( z.strictObject({ @@ -48,6 +56,17 @@ export const parseReleaseStories = (markdown: string, entries: unknown[]) => { const story = storySchema.parse(entry); const release = releases.find((item) => item.version === story.version); + // A drafted entry waits for its release, which may be cut after it merges. + if ( + !release && + releases.every( + ({ version }) => + version.localeCompare(story.version, "en", { numeric: true }) < 0 + ) + ) { + continue; + } + if (!release || stories.has(story.version)) { throw new Error( `Missing or duplicate release for story ${story.version}` @@ -78,6 +97,12 @@ export const parseReleaseStories = (markdown: string, entries: unknown[]) => { } } + if ( + story.groups?.some((group) => !group.notes.every((n) => notes.has(n))) + ) { + throw new Error(`Groups are not sourced from release ${story.version}`); + } + stories.set(story.version, story); } diff --git a/site/src/pages/changelog/[version].astro b/site/src/pages/changelog/[version].astro new file mode 100644 index 000000000..da683a384 --- /dev/null +++ b/site/src/pages/changelog/[version].astro @@ -0,0 +1,11 @@ +--- +import ReleasePage from "../../components/ReleasePage.astro"; +import { releases } from "../../lib/release-entries"; + +export const getStaticPaths = () => + releases.map(({ version }) => ({ params: { version } })); + +const { version } = Astro.params; +--- + + diff --git a/site/src/pages/changelog/rss.xml.ts b/site/src/pages/changelog/rss.xml.ts new file mode 100644 index 000000000..6ab7abc25 --- /dev/null +++ b/site/src/pages/changelog/rss.xml.ts @@ -0,0 +1,5 @@ +import type { APIContext } from "astro"; + +import { releaseFeed } from "../../lib/release-feed"; + +export const GET = ({ site }: APIContext) => releaseFeed("en", site); diff --git a/site/src/pages/fr/changelog/[version].astro b/site/src/pages/fr/changelog/[version].astro new file mode 100644 index 000000000..f35518d6e --- /dev/null +++ b/site/src/pages/fr/changelog/[version].astro @@ -0,0 +1,11 @@ +--- +import ReleasePage from "../../../components/ReleasePage.astro"; +import { releases } from "../../../lib/release-entries"; + +export const getStaticPaths = () => + releases.map(({ version }) => ({ params: { version } })); + +const { version } = Astro.params; +--- + + diff --git a/site/src/pages/fr/changelog/rss.xml.ts b/site/src/pages/fr/changelog/rss.xml.ts new file mode 100644 index 000000000..8d98d2f87 --- /dev/null +++ b/site/src/pages/fr/changelog/rss.xml.ts @@ -0,0 +1,5 @@ +import type { APIContext } from "astro"; + +import { releaseFeed } from "../../../lib/release-feed"; + +export const GET = ({ site }: APIContext) => releaseFeed("fr", site); diff --git a/site/tests/changelog.test.ts b/site/tests/changelog.test.ts index 30f47fdea..34dc8b43f 100644 --- a/site/tests/changelog.test.ts +++ b/site/tests/changelog.test.ts @@ -165,7 +165,29 @@ test("a highlight action is optional and requires both translated labels and des ); }); -test("rejects a story sourced from another release or an unpublished version", () => { +test("a drafted story waits for its release", () => { + const drafted = { ...exampleStory(), version: "0.10.0" }; + assert.equal(parseReleaseStories(storyHistory, [drafted]).size, 0); +}); + +test("groups quote the notes of their release", () => { + const group = { title: { en: "Tabs", fr: "Onglets" } }; + const [{ notes }] = exampleStory().highlights; + const grouped = { ...exampleStory(), groups: [{ ...group, notes }] }; + assert.equal( + parseReleaseStories(storyHistory, [grouped]).get("0.9.0")?.groups?.length, + 1 + ); + assert.throws( + () => + parseReleaseStories(storyHistory, [ + { ...grouped, groups: [{ ...group, notes: ["Another note."] }] }, + ]), + /Groups are not sourced/u + ); +}); + +test("rejects a story sourced from another release or an unknown past version", () => { const otherRelease = exampleStory(); otherRelease.highlights[0].notes = ["Keep the source tab selected."]; assert.throws( @@ -175,7 +197,7 @@ test("rejects a story sourced from another release or an unpublished version", ( assert.throws( () => parseReleaseStories(storyHistory, [ - { ...exampleStory(), version: "0.10.0" }, + { ...exampleStory(), version: "0.0.1" }, ]), /Missing or duplicate release/u ); diff --git a/site/tests/test_site.py b/site/tests/test_site.py index f64abad0c..5ca8b853c 100644 --- a/site/tests/test_site.py +++ b/site/tests/test_site.py @@ -195,6 +195,22 @@ def test_release_story_keeps_translated_highlights_and_complete_notes_in_static_ demo_link = next(node for node in nodes(highlights[0]) if node.tag == "a") self.assertEqual(demo_link.attrs["href"], ("/fr/" if language == "fr" else "/") + "#browser-demo") + def test_each_release_has_a_page_in_the_sitemap_and_the_feed(self): + for prefix in ["", "fr/"]: + with self.subTest(prefix=prefix): + self.assertTrue((DIST / f"{prefix}changelog/0.16.0/index.html").is_file()) + self.assertFalse((DIST / f"{prefix}changelog/0.16.0/index.md").exists()) + self.assertIn(f"https://getlilo.app/{prefix}changelog/0.16.0/", (DIST / "sitemap-0.xml").read_text()) + feed = ET.parse(DIST / f"{prefix}changelog/rss.xml").getroot() + item = next(item for item in feed.iter("item") if item.findtext("link") == f"https://getlilo.app/{prefix}changelog/0.16.0/") + self.assertTrue(item.findtext("description")) + self.assertIn("

Added

", item.findtext("{http://purl.org/rss/1.0/modules/content/}encoded")) + self.assertEqual(feed.findtext("channel/language"), "fr" if prefix else "en") + + def test_a_release_page_shares_its_illustration(self): + page = (DIST / "changelog/0.8.0/index.html").read_text() + self.assertIn('property="og:image" content="https://getlilo.app/release-media/0.8.0/tab-share.png"', page) + def test_highlight_media_plays_on_request_and_ships_its_files(self): for language, page in [("en", "changelog/index.html"), ("fr", "fr/changelog/index.html")]: with self.subTest(language=language):