Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changes/unreleased/Added-20261106-143924.657595.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Added
body: The changelog and What's New can show a film, a loop or an image for each highlight, starting with the tab sharing film
time: 2026-11-06T14:39:24.657595+02:00
3 changes: 3 additions & 0 deletions .changes/unreleased/Added-20261106-144237.521907.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Preserve the creator's original license bytes and checksum.
release-media/public/audio/music.LICENSE.txt -text whitespace=cr-at-eol
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
node-version-file: 'site/.nvmrc'
cache: 'npm'
cache-dependency-path: site/package-lock.json
- run: make release-status release-test perf-summary-test site-check site-test site-deploy-check
- run: make release-status release-test release-media-test perf-summary-test site-check site-test site-deploy-check

ui:
name: UI (lint, test, build)
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
path: |
Lilo/Generated/ChromeUIAssets.swift
Lilo/Generated/NativeStrings.swift
key: ui-${{ hashFiles('lilo-ui/package-lock.json', 'lilo-ui/package.json', 'lilo-ui/src/**', 'lilo-ui/public/**', 'lilo-ui/index.html', 'lilo-ui/releaseNotesPlugin.ts', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', '.changes/v*.md', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }}
key: ui-${{ hashFiles('lilo-ui/package-lock.json', 'lilo-ui/package.json', 'lilo-ui/src/**', 'lilo-ui/public/**', 'lilo-ui/index.html', 'lilo-ui/releaseNotesPlugin.ts', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', 'release-media/catalog.ts', '.changes/v*.md', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }}
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
if: steps.ui-cache.outputs.cache-hit != 'true'
with:
Expand Down Expand Up @@ -262,9 +262,8 @@ jobs:
path: |
Lilo/Generated/ChromeUIAssets.swift
Lilo/Generated/NativeStrings.swift
key: ui-${{ hashFiles('lilo-ui/package-lock.json', 'lilo-ui/package.json', 'lilo-ui/src/**', 'lilo-ui/public/**', 'lilo-ui/index.html', 'lilo-ui/releaseNotesPlugin.ts', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', '.changes/v*.md', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }}
key: ui-${{ hashFiles('lilo-ui/package-lock.json', 'lilo-ui/package.json', 'lilo-ui/src/**', 'lilo-ui/public/**', 'lilo-ui/index.html', 'lilo-ui/releaseNotesPlugin.ts', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', 'release-media/catalog.ts', '.changes/v*.md', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }}
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
if: steps.ui-cache.outputs.cache-hit != 'true'
with:
node-version-file: '.nvmrc'
cache: 'npm'
Expand Down
106 changes: 106 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/extensions-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
path: |
Lilo/Generated/ChromeUIAssets.swift
Lilo/Generated/NativeStrings.swift
key: ui-${{ hashFiles('lilo-ui/package-lock.json', 'lilo-ui/package.json', 'lilo-ui/src/**', 'lilo-ui/public/**', 'lilo-ui/index.html', 'lilo-ui/releaseNotesPlugin.ts', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', '.changes/v*.md', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }}
key: ui-${{ hashFiles('lilo-ui/package-lock.json', 'lilo-ui/package.json', 'lilo-ui/src/**', 'lilo-ui/public/**', 'lilo-ui/index.html', 'lilo-ui/releaseNotesPlugin.ts', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', 'release-media/catalog.ts', '.changes/v*.md', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }}
- name: Build the UI
if: steps.ui-cache.outputs.cache-hit != 'true'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/extensions-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
path: |
Lilo/Generated/ChromeUIAssets.swift
Lilo/Generated/NativeStrings.swift
key: ui-${{ hashFiles('lilo-ui/package-lock.json', 'lilo-ui/package.json', 'lilo-ui/src/**', 'lilo-ui/public/**', 'lilo-ui/index.html', 'lilo-ui/releaseNotesPlugin.ts', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', '.changes/v*.md', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }}
key: ui-${{ hashFiles('lilo-ui/package-lock.json', 'lilo-ui/package.json', 'lilo-ui/src/**', 'lilo-ui/public/**', 'lilo-ui/index.html', 'lilo-ui/releaseNotesPlugin.ts', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', 'release-media/catalog.ts', '.changes/v*.md', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }}
- name: Build the UI
if: steps.ui-cache.outputs.cache-hit != 'true'
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ jobs:
path: |
Lilo/Generated/ChromeUIAssets.swift
Lilo/Generated/NativeStrings.swift
key: ui-${{ hashFiles('lilo-ui/package-lock.json', 'lilo-ui/package.json', 'lilo-ui/src/**', 'lilo-ui/public/**', 'lilo-ui/index.html', 'lilo-ui/releaseNotesPlugin.ts', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', '.changes/v*.md', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }}
key: ui-${{ hashFiles('lilo-ui/package-lock.json', 'lilo-ui/package.json', 'lilo-ui/src/**', 'lilo-ui/public/**', 'lilo-ui/index.html', 'lilo-ui/releaseNotesPlugin.ts', 'lilo-ui/svelte.config.js', 'lilo-ui/tsconfig.json', 'lilo-ui/vite.config.ts', 'release-media/catalog.ts', '.changes/v*.md', 'scripts/embed_chrome_ui.py', 'scripts/generate_native_strings.py') }}
- name: Setup Node
if: steps.ui-cache.outputs.cache-hit != 'true'
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: '.nvmrc'
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ docs/superpowers/

# Local MCP server config
.mcp.json
lilo-ui/public/release-media/*
!lilo-ui/public/release-media/.gitkeep
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Kind> -b <text>`. 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 <Kind> -b <text>`. 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** - every `*.gen.*` file, the `Chrome*.js` bundles and `ChromeAPIGapModules.json` in `Lilo/Extensions/`, `Lilo/Extensions/public-suffix-list.dat`, plus the git-ignored `Lilo/Generated/NativeStrings.swift` and `Lilo/Generated/ChromeUIAssets.swift` are build outputs - never hand-edit them. Regenerate them with `make ext-bridge-build` (extension bundles), `make bridge-gen` (`*.gen.swift`, `tabProtocol.gen.ts`), `make ui-build` (`NativeStrings.swift`, `ChromeUIAssets.swift`), `make emoji-data` (`emojiData*.gen.ts`), `make public-suffix-list` (`public-suffix-list.dat`, `topLevelDomains.gen.ts`) or `make chrome-surface` (`chrome-constants.gen.ts`).

Expand Down
Loading
Loading