Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
611 commits
Select commit Hold shift + click to select a range
1ef69da
fix: drop the duplicate brand from the Tauri page title
ipfizz Sep 28, 2026
541508a
fix: noindex the 404 page
ipfizz Sep 28, 2026
f217f13
fix: remove inserted CSS from its own parent
ipfizz Sep 28, 2026
74b8f26
fix: escape < in JSON-LD so a string cannot close the script
ipfizz Sep 28, 2026
c4f2d36
fix: send framework warnings and errors to stderr by default
ipfizz Sep 28, 2026
466cfa3
fix: compile macOS and Linux apps with the running Bun, not PATH's
ipfizz Sep 28, 2026
af97916
fix: request a secure timestamp when signing with a real identity
ipfizz Sep 28, 2026
594712f
fix: refuse zips past ZIP32 limits instead of writing corrupt ones
ipfizz Sep 28, 2026
4b268a8
fix: credit docs to the home Organization and dedupe breadcrumb URLs
ipfizz Sep 28, 2026
8d5e887
fix: reject unknown config keys and malformed engine.webkit pins
ipfizz Sep 28, 2026
373c69f
fix: never mistake a compiled app named bun-* for the Bun CLI
ipfizz Sep 28, 2026
bf8d564
refactor: drop the unreachable Linux embedEngine option
ipfizz Sep 28, 2026
8ad7b81
refactor: stop exporting the preload bootstrap from bunmaska/renderer
ipfizz Sep 28, 2026
fb810ee
fix: escape roadmap items before injecting them as HTML
ipfizz Sep 28, 2026
6a2fb13
fix: classify dev edits by renderer.copy and the entry's imports
ipfizz Sep 28, 2026
7e351b3
test: check zip CRCs and ar member padding
ipfizz Sep 28, 2026
4ed0de3
test: drop transcription and duplicate argv tests from the CLI suites
ipfizz Sep 28, 2026
d62567b
test: delete cannot-fail cases in the renderer and common suites
ipfizz Sep 28, 2026
a4e2406
refactor: split dev change classification into dev-classify.ts
ipfizz Sep 28, 2026
9ad111a
fix: style every lead from one global rule, /about included
ipfizz Sep 28, 2026
051eca5
chore: drop the unused MDX integration and Callout component
ipfizz Sep 28, 2026
2090452
chore: trim renderer comments to the comment rules
ipfizz Sep 28, 2026
02806ea
fix: stream the budget run, parse bun's last summary, ratchet budgets
ipfizz Sep 28, 2026
79f2728
chore: drop the docs order field that nav.ts supersedes
ipfizz Sep 28, 2026
6397bd0
fix: emit doc frontmatter keywords in the TechArticle graph
ipfizz Sep 28, 2026
cc4ffff
ci: run the test budget gate on the Windows leg
ipfizz Sep 28, 2026
20e48d7
build: pin @types/bun to 1.4.2 with the runtime
ipfizz Sep 28, 2026
4257fb4
chore: trim common comments to the comment rules
ipfizz Sep 28, 2026
e45829d
chore: trim CLI build comments to the comment rules
ipfizz Sep 28, 2026
5918eb2
fix: keep pre-commit from staging a partly staged file's other edits
ipfizz Sep 28, 2026
b07615a
refactor: inline the one-call zip concat alias
ipfizz Sep 28, 2026
2075a1b
ci: check the site on pull requests and deploy pushes in order
ipfizz Sep 28, 2026
a6cd13b
ci: pin deploy-web's actions and wrangler to exact versions
ipfizz Sep 28, 2026
d604593
fix: show copy buttons on touch and keep them put in wide code
ipfizz Sep 28, 2026
2da590b
ci: run validate when scripts, hooks or .gitattributes change
ipfizz Sep 28, 2026
03dee8e
fix: run validate:linux on CI's Bun version and WebKit env
ipfizz Sep 28, 2026
4a101c3
chore: trim CLI build test headers to the comment rules
ipfizz Sep 28, 2026
54bee2b
merge: review/mac-ffi
ipfizz Sep 28, 2026
aa91c47
merge: review/mac-core
ipfizz Sep 28, 2026
cf86d22
merge: review/mac-web
ipfizz Sep 28, 2026
e85f360
merge: review/mac-features
ipfizz Sep 28, 2026
eec0d59
merge: review/linux-ffi
ipfizz Sep 28, 2026
d873f9c
merge: review/linux-core
ipfizz Sep 28, 2026
3b73af5
merge: review/win-core
ipfizz Sep 28, 2026
f8f6a18
merge: review/win-webkit
ipfizz Sep 28, 2026
54be5f4
merge: review/win-features
ipfizz Sep 28, 2026
3726ee1
merge: review/security
ipfizz Sep 28, 2026
6caee03
merge: review/api-app
ipfizz Sep 28, 2026
8ae9c54
fix: label the Windows update artifact x64 on any build host
ipfizz Sep 28, 2026
24ce340
fix: build the dmg after notarizing so it ships the stapled app
ipfizz Sep 28, 2026
02f689c
fix: report CLI command failures as one line instead of a stack
ipfizz Sep 28, 2026
0c4c234
fix: forward SIGINT and SIGTERM from bunmaska run to the app
ipfizz Sep 28, 2026
a3be295
fix: forward --help after a run entry to the app
ipfizz Sep 28, 2026
e25c29d
fix: reject flags and extra arguments commands do not take
ipfizz Sep 28, 2026
92ee36c
fix: scaffold a tsconfig and @types/bun so new projects type-check
ipfizz Sep 28, 2026
1e6f116
fix: reopen the scaffold window on macOS Dock activate
ipfizz Sep 28, 2026
58b7826
fix: embed the pinned engine on Windows when engine.embed is set
ipfizz Sep 28, 2026
dfb078e
fix: resolve the dev renderer root and treat its output as reloads
ipfizz Sep 28, 2026
c77c5ef
fix: reject update flags without --update and non-private keys early
ipfizz Sep 28, 2026
b19a18b
fix: honour updates.channel from the config in build --update
ipfizz Sep 28, 2026
9bf8ca0
fix: warn on a bare engine version under dev and run too
ipfizz Sep 28, 2026
b1b809b
fix: refuse --notarize without --sign before building
ipfizz Sep 28, 2026
78c9fc8
fix: keep a failed build tool's stdout in the thrown error
ipfizz Sep 28, 2026
59f3062
fix: build scaffolded apps into the ignored dist/ directory
ipfizz Sep 28, 2026
5fd5b93
fix: HTML-escape the app name in the scaffolded index.html
ipfizz Sep 28, 2026
e3dd33a
refactor: drop the unreachable '.' check in deriveProjectName
ipfizz Sep 28, 2026
0700273
fix: tell the developer to restart dev after a config edit
ipfizz Sep 28, 2026
71a0e31
refactor: drop config.ts re-exports that only tests used
ipfizz Sep 28, 2026
d752d67
refactor: table-drive build boolean flags and --target
ipfizz Sep 28, 2026
b5fc3a8
fix: align the doctor usage row and name url in the install error
ipfizz Sep 28, 2026
b80507b
test: table-test the build guards and cover dispatch init
ipfizz Sep 28, 2026
77a2d2e
test: table-drive the build flag parsing tests
ipfizz Sep 28, 2026
e575203
test: drop init template tests that restate the template
ipfizz Sep 28, 2026
8e8012d
chore: trim CLI core comments to the comment rules
ipfizz Sep 28, 2026
1fed096
chore: drop em dashes and explainers from CLI output and templates
ipfizz Sep 28, 2026
b4e9f82
refactor: take the init name before the scaffold deps
ipfizz Sep 28, 2026
a6229ca
refactor: check the macOS-only build flags in one loop
ipfizz Sep 28, 2026
a66bf88
refactor: build the tiny-png fixture's CRCs with Bun.hash.crc32
ipfizz Sep 28, 2026
6ba5d27
merge: review/linux-desktop
ipfizz Sep 28, 2026
a81ea22
fix: make the install picker toggle buttons, not half a tablist
ipfizz Sep 28, 2026
2d4d8a1
chore: drop biome excludes that .gitignore already covers
ipfizz Sep 28, 2026
86aa82e
fix: label the two mobile nav landmarks distinctly
ipfizz Sep 28, 2026
619194a
merge: review/linux-features
ipfizz Sep 28, 2026
ea5dfe8
fix: restore XCloseDisplay so an opened X display can be closed
ipfizz Sep 28, 2026
d785778
chore: drop the always-overridden backdrop-blur from the header
ipfizz Sep 28, 2026
e31092b
fix: label the native-module sample as macOS and Linux only
ipfizz Sep 28, 2026
24d853e
merge: review/engine
ipfizz Sep 28, 2026
e6b947d
chore: trim dev CLI comments to the comment rules
ipfizz Sep 28, 2026
3eea23d
merge: review/api-window
ipfizz Sep 28, 2026
8a7286f
merge: review/api-features
ipfizz Sep 28, 2026
80e5f95
test: reset protocol schemes through the public API in the Windows we…
ipfizz Sep 28, 2026
0b895c1
chore: trim app-side dev comments to the comment rules
ipfizz Sep 28, 2026
76149d4
chore: fit dev and budget comments on one line each
ipfizz Sep 28, 2026
27065cc
fix: expose the home comparison grid as a table to screen readers
ipfizz Sep 28, 2026
b30032f
fix: let the focus ring follow each element's own radius
ipfizz Sep 28, 2026
1960fa5
chore: trim example comments to the comment rules
ipfizz Sep 28, 2026
d6460d4
chore: trim config and test-helper comments to the comment rules
ipfizz Sep 28, 2026
54958d2
chore: drop a deploy-web comment that restates its steps
ipfizz Sep 28, 2026
d420183
fix: give the quickstart section its own H2 instead of the hero's
ipfizz Sep 28, 2026
39984df
build: pin the website dependencies to their locked versions
ipfizz Sep 28, 2026
16a8e34
refactor: drop unused roadmap statuses and type the status colours
ipfizz Sep 28, 2026
b46e623
refactor: fold the breadcrumb styles into one block without duplicates
ipfizz Sep 28, 2026
ab4ee3e
chore: delete the unused --width-prose token
ipfizz Sep 28, 2026
db11bcc
docs: bring the site README up to date and drop its em dashes
ipfizz Sep 28, 2026
b647ac6
test: align the merged macOS tests with API-level scheme rejection an…
ipfizz Sep 28, 2026
aa4cd1d
merge: review/renderer-common
ipfizz Sep 28, 2026
d406bdd
merge: review/cli-core
ipfizz Sep 28, 2026
a453b36
merge: review/cli-build
ipfizz Sep 28, 2026
38d7029
merge: review/cli-dev-infra
ipfizz Sep 28, 2026
30be101
fix: route bunmaska dev through the project classifier from dev-classify
ipfizz Sep 28, 2026
8d6ae64
chore: trim website comments to the comment rules
ipfizz Sep 28, 2026
ac15cf8
test: ratchet the macOS test budget to the merged suite and widen Lin…
ipfizz Sep 28, 2026
f3426e7
merge: review/website-code
ipfizz Sep 28, 2026
0c94283
fix: run Electron's quit sequence for app.quit, Cmd+Q and the quit role
ipfizz Sep 28, 2026
760ff31
fix: keep the Windows quit role click and ratchet the Linux and Windo…
ipfizz Sep 28, 2026
e4b712b
refactor: delete the unused CGWindowList bounds reader
ipfizz Sep 28, 2026
b8f5f03
test: reset the app singleton before the OS quit-request test
ipfizz Sep 28, 2026
4d01289
test: reset the bootstrap guard before the OS quit-request test
ipfizz Sep 28, 2026
f213163
refactor: delete the uncalled cancelOneShotBlock and its racy test
ipfizz Sep 28, 2026
2043319
refactor: declare block object params as u64, as makeOneShotBlock req…
ipfizz Sep 28, 2026
f2f9c72
fix: ignore a null executeJavaScript result posted by the page
ipfizz Sep 28, 2026
d93d571
fix: drop script messages posted from sub-frames on macOS
ipfizz Sep 28, 2026
e6d2e82
perf: mirror --app-region only in frameless macOS windows
ipfizz Sep 28, 2026
90f1090
refactor: read the Dock reopen flag through the bool arg kind
ipfizz Sep 28, 2026
2d0b3a8
docs: cite D022b and D021 instead of the superseded D022
ipfizz Sep 28, 2026
99b54fa
refactor: share one CoreGraphics path between screen and nativeImage
ipfizz Sep 28, 2026
44a53fe
fix: map keypad and Insert accelerators to macOS global shortcuts
ipfizz Sep 28, 2026
88bbb4d
fix: split a save dialog defaultPath into directory and name on macOS
ipfizz Sep 28, 2026
fdaf8b4
refactor: leave scheme syntax to protocol.handle and keep the WebKit …
ipfizz Sep 28, 2026
571c104
fix: drop a null exec result instead of throwing on Linux
ipfizz Sep 28, 2026
f3a72b2
fix: give Windows executeJavaScript unguessable exec ids
ipfizz Sep 28, 2026
0cf1709
fix: release each WebKitGTK user script after adding it
ipfizz Sep 28, 2026
9b1cfd1
test: report the Windows powerMonitor suite as skipped off Windows
ipfizz Sep 28, 2026
5df6649
fix: center and fullscreen on the window's own monitor on Windows
ipfizz Sep 28, 2026
7cec6e5
fix: run window role menu items on Windows
ipfizz Sep 28, 2026
8d61316
fix: return false when X11 refuses a global shortcut grab
ipfizz Sep 28, 2026
8a8e4b7
refactor: declare g_variant_new_boolean once, in glib-ffi
ipfizz Sep 28, 2026
cb11436
refactor: build the GTK alert dialog with gobject-ffi's g_object_new
ipfizz Sep 28, 2026
ea3632f
fix: honour openDirectory, multiSelections and defaultPath on Linux
ipfizz Sep 28, 2026
fafec16
fix: wire role items in Linux context menus to their window
ipfizz Sep 28, 2026
d0b3454
fix: swap the menu bar of open Linux windows on setApplicationMenu
ipfizz Sep 28, 2026
5e51357
fix: link a pinned Windows engine in the store before loading it
ipfizz Sep 28, 2026
deb98cb
fix: re-add the Windows tray icon after explorer restarts
ipfizz Sep 28, 2026
93deaa1
test: fail Linux e2e suites without a display instead of returning
ipfizz Sep 28, 2026
2e29ee5
fix: copy the Linux tray icon bytes into its D-Bus pixmap
ipfizz Sep 28, 2026
045d4fa
docs: document the quit sequence and new app path rules
ipfizz Sep 28, 2026
e0f2bc4
docs: update BrowserWindow for destroyed windows and the new statics
ipfizz Sep 28, 2026
c5ce623
docs: correct webContents IPC, load errors and destroyed calls
ipfizz Sep 28, 2026
9f9f1da
docs: scope the IPC pages to the preload and the JSON wire
ipfizz Sep 28, 2026
41cf1f1
docs: document protocol scheme validation and drop removed methods
ipfizz Sep 28, 2026
a803471
docs: document the signed update.json and installer refusals
ipfizz Sep 28, 2026
355bc53
docs: cover the asset allowlist and macOS 13 floor in building
ipfizz Sep 28, 2026
b500b4c
docs: describe the dev classifier, run signals and four-file feed
ipfizz Sep 28, 2026
af08819
docs: correct the engine pages on ids, embedding and fallback
ipfizz Sep 28, 2026
c053314
docs: bring Menu and MenuItem in line with click args and roles
ipfizz Sep 28, 2026
e9fa2c5
docs: update dialog, shell, clipboard, notification and image pages
ipfizz Sep 28, 2026
06a6615
docs: list clipboard, nativeImage and shell as main-process modules
ipfizz Sep 28, 2026
d6c4a2b
docs: document real macOS display origins, work areas and cursor
ipfizz Sep 28, 2026
b6513f5
docs: note cookie scoping, shared safeStorage and power caveats
ipfizz Sep 28, 2026
6b682f2
docs: state the platform floors and Windows isolation gap honestly
ipfizz Sep 28, 2026
8fa82ea
docs: say which throws are not BunmaskaError on the errors page
ipfizz Sep 28, 2026
5081fa1
docs: refresh the parity matrix and list deviations from Electron
ipfizz Sep 28, 2026
0628f23
docs: stop promising context isolation everywhere in the README
ipfizz Sep 28, 2026
fee0289
docs: add an Unreleased changelog entry for the beta review
ipfizz Sep 28, 2026
72cceac
docs: note that a macro role keeps an explicit submenu and label
ipfizz Sep 28, 2026
20f9a69
docs: explain where Bunmaska's warnings go
ipfizz Sep 28, 2026
0bc9748
merge: wave2/mac
ipfizz Sep 28, 2026
36ac08b
merge: wave2/linwin
ipfizz Sep 28, 2026
4f4163b
merge: wave2/docs
ipfizz Sep 28, 2026
eabc017
fix: emit window-all-closed even when a closed listener throws
ipfizz Sep 28, 2026
0b5cf88
fix: pass the focused BrowserWindow to menu item clicks
ipfizz Sep 28, 2026
1ddb979
fix: export the IPC event and menu click types from the barrel
ipfizz Sep 28, 2026
3594d8e
fix: reject clearStorageData filters and start the pump before clearing
ipfizz Sep 28, 2026
47c06af
docs: correct the protocol decline and exec-wrapper rationale comments
ipfizz Sep 28, 2026
7a4063c
fix: turn a synchronous clipboard read throw into a rejection
ipfizz Sep 28, 2026
a4d5794
fix: refuse global shortcuts where the backend cannot grab keys
ipfizz Sep 28, 2026
dfb62f7
fix: split a save dialog defaultPath into folder and file name
ipfizz Sep 28, 2026
68301de
fix: release a NativeImage's native handle once it is collected
ipfizz Sep 28, 2026
e6a8af7
docs: note that toJPEG honours quality on Linux too
ipfizz Sep 28, 2026
0cd00e7
refactor: move observer start hooks off the public singletons
ipfizz Sep 28, 2026
2ebf9c4
fix: install Electron's default application menu on macOS
ipfizz Sep 28, 2026
b222a81
fix: bundle a TypeScript preload even when it has no imports
ipfizz Sep 28, 2026
2305fe8
fix: print the update.json signature path after a signed build
ipfizz Sep 28, 2026
cdaaed3
fix: stamp macOS and Windows builds with the app's own version
ipfizz Sep 28, 2026
058b9c6
fix: ship the app name and version beside every built executable
ipfizz Sep 28, 2026
3f6c3fb
fix: install each Linux app under usr/lib/<slug> with a usr/bin link
ipfizz Sep 28, 2026
81bf46c
test: probe the config import error with a relative module, not npm
ipfizz Sep 28, 2026
fc45feb
refactor: import signing from common/signature, not a cli re-export
ipfizz Sep 28, 2026
5fc1d52
refactor: drop the unreachable engine public key env fallback
ipfizz Sep 28, 2026
c83e541
fix: refuse an engine feed that serves another id than the one asked
ipfizz Sep 28, 2026
903cc01
refactor: move the capped feed fetch into a common module
ipfizz Sep 28, 2026
d934c91
fix: cap engine feed downloads and fetch the signed files first
ipfizz Sep 28, 2026
873281d
fix: share the Bun CLI check so bun-named apps get their own identity
ipfizz Sep 28, 2026
8002db9
fix: bake an engine pin only when it matches the build target
ipfizz Sep 28, 2026
e3aaaf4
fix: run the app with the running Bun, not the bun on PATH
ipfizz Sep 28, 2026
6a8b28a
refactor: ignore the dev state file by its shared constant in init
ipfizz Sep 28, 2026
8b0efaa
ci: install libxtst6 so the XTest shortcut test runs on Linux
ipfizz Sep 28, 2026
3652f0d
refactor: pass the app name to the notification, tray and blocker bac…
ipfizz Sep 28, 2026
8426686
refactor: let the macOS builder order notarization before the dmg
ipfizz Sep 28, 2026
95246fd
fix: refuse --notarize with an ad-hoc signature
ipfizz Sep 28, 2026
8fdcdb7
fix: skip a config icon the build target cannot use instead of failing
ipfizz Sep 28, 2026
264c48b
fix: take the .deb Maintainer from the package.json author
ipfizz Sep 28, 2026
cb50cb8
refactor: move .deb packaging out of build-linux into deb.ts
ipfizz Sep 28, 2026
14e7ffb
fix: quit a dev app once the bunmaska dev supervisor is gone
ipfizz Sep 28, 2026
b1b1ef5
fix: ignore saved dev window bounds that no display shows
ipfizz Sep 28, 2026
8770c6b
fix: report uncaught main-process exceptions as Electron does, not exit
ipfizz Sep 28, 2026
5bd5313
fix: surface a throw inside a pump drain as an uncaught exception
ipfizz Sep 28, 2026
74afafd
fix: reject Map, Set and binary IPC payloads instead of garbling them
ipfizz Sep 28, 2026
60f1b44
merge: wave2/core
ipfizz Sep 28, 2026
6ddc0ca
fix: pass the save dialog defaultPath whole so each OS splits it nati…
ipfizz Sep 28, 2026
2f58b3e
fix: expand the Linux webview to fill its window box
ipfizz Sep 28, 2026
8d1415b
fix: restore the real menu window resolver after a test fake
ipfizz Sep 28, 2026
85eab78
chore: ratchet the Linux test budget to the measured run
ipfizz Sep 28, 2026
c6cd6de
fix: mirror --app-region only in frameless Linux and Windows windows
ipfizz Sep 28, 2026
de5a1b7
fix: drop dom-ready messages posted from Linux sub-frames
ipfizz Sep 28, 2026
dca8867
docs: say preload scripts reach the main frame only on every backend
ipfizz Sep 28, 2026
38dc56c
refactor: drop the unused Linux save dialog defaultDirectory
ipfizz Sep 28, 2026
1a31180
docs: fix the stale dialog defaultPath and window resolver comments
ipfizz Sep 28, 2026
f13cb67
docs: say Windows menu roles run their window actions
ipfizz Sep 28, 2026
6f43019
refactor: drop the unused env parameter from prepareEngineForLoad
ipfizz Sep 28, 2026
4612836
fix: free native images on every backend once collected
ipfizz Sep 28, 2026
dd31666
fix: name Linux notifications, trays and inhibitors after the app
ipfizz Sep 28, 2026
b0da628
fix: surface throws from Windows and D-Bus callbacks as uncaught
ipfizz Sep 28, 2026
a40d8cf
refactor: rethrow native callback errors through reportCallbackError
ipfizz Sep 28, 2026
b1f64c2
fix: map keypad and Insert keys to Linux and Windows shortcuts
ipfizz Sep 28, 2026
b62de49
fix: pin the GTK and WebKitGTK floors in the .deb Depends
ipfizz Sep 28, 2026
4260793
docs: correct the build help for update signing, notarize and icons
ipfizz Sep 28, 2026
8f11ce5
docs: say Linux dialogs honour openDirectory and multiSelections
ipfizz Sep 28, 2026
743d960
docs: cover the Linux layout, .deb floors, notarize and icon rules
ipfizz Sep 28, 2026
4881d7e
docs: list both update signatures in the home CLI block
ipfizz Sep 28, 2026
8abfcc3
docs: document uncaught exceptions and clearStorageData filters
ipfizz Sep 28, 2026
d6a652b
docs: refresh menu, dialog and shortcut pages for the review fixes
ipfizz Sep 28, 2026
2882391
docs: add the latest review fixes to the Unreleased changelog
ipfizz Sep 28, 2026
433b058
test: gate the Windows integration suites with describe.skipIf
ipfizz Sep 28, 2026
1f483a7
fix: give a built app the name its project gives it in dev
ipfizz Sep 28, 2026
91a6719
chore: mark the stale Linux and Windows menu bar check marks
ipfizz Sep 28, 2026
e19a50f
docs: say a build ships the project's name and version beside the app
ipfizz Sep 28, 2026
0ffc6cb
docs: say only frameless windows get the title-bar script
ipfizz Sep 28, 2026
03ba2ac
refactor: move backend contracts into platform/services.ts
ipfizz Sep 28, 2026
155f718
refactor: select OS backends through one service table
ipfizz Sep 28, 2026
7ebc0de
refactor: move accelerator and cookie-util to src/common
ipfizz Sep 28, 2026
5c7349e
refactor: hand protocol schemes to backends through window options
ipfizz Sep 28, 2026
613547a
refactor: give tray backends a realizable menu, not the api Menu
ipfizz Sep 28, 2026
a203aed
refactor: move ExecResultChannel out of the Linux backend
ipfizz Sep 28, 2026
0d7dc27
build: lint-enforce the api/platform seam with noRestrictedImports
ipfizz Sep 28, 2026
bb6be8a
refactor: build every backend's injected scripts in platform/web-scripts
ipfizz Sep 28, 2026
b26c471
refactor: move the engine store to src/common so runtime skips the CLI
ipfizz Sep 28, 2026
9e2e312
refactor: replace the CLI bundleIdSlug copy with common slugifyName
ipfizz Sep 28, 2026
90efffe
chore: ratchet the test budgets to the measured CI counts
ipfizz Sep 28, 2026
bfb6a8a
release: 0.1.0-alpha.9
ipfizz Sep 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 2 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Normalise line endings to LF in the working tree on every platform. The repo's
# Biome config enforces `lineEnding: lf`, so a Windows checkout (where Git would
# otherwise apply core.autocrlf and produce CRLF) must keep LF — both for the
# Windows CI `biome format` check and to silence the "LF will be replaced by CRLF"
# warnings. Binary files are auto-detected by `text=auto` and left untouched.
# LF everywhere: Biome enforces `lineEnding: lf`, so a CRLF Windows checkout fails
# `biome format` on the Windows CI leg. `text=auto` leaves binaries untouched.
* text=auto eol=lf
22 changes: 13 additions & 9 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/sh
# Auto-format staged files with Biome before they are committed, so no un-run
# formatting ever lands in a commit. Covers the core package and website/src
# (both are in the root biome.json). `--staged` limits Biome to staged files;
# `--write` applies formatting. Linting/type-check/tests stay in `validate` —
# this hook only formats, and never blocks a commit on lint findings.
# Format staged files with Biome before they are committed; lint, type-check and
# tests stay in `validate`, so this hook never blocks a commit.
#
# Enable once per clone: git config core.hooksPath .githooks
# (or run `bun run setup:hooks`). See .admin/CONTRIBUTING.md.
Expand All @@ -13,14 +10,21 @@ if ! command -v bun >/dev/null 2>&1; then
exit 0
fi

# Format the staged, Biome-supported files in place.
# Re-adding a file that also has unstaged edits would commit those edits.
partial=$(git diff --name-only)

bunx biome format --write --staged >/dev/null 2>&1 || true

# Re-stage anything Biome reformatted (only files that were already staged).
git diff --cached --name-only --diff-filter=ACM | while IFS= read -r file; do
git diff --cached --name-only --diff-filter=ACMR | while IFS= read -r file; do
case "$file" in
*.ts | *.tsx | *.js | *.jsx | *.mjs | *.json | *.css) git add "$file" ;;
*.ts | *.tsx | *.js | *.jsx | *.mjs | *.json | *.css) ;;
*) continue ;;
esac
if printf '%s\n' "$partial" | grep -qxF -- "$file"; then
echo "pre-commit: $file is partly staged; formatted in the working tree only" >&2
else
git add -- "$file"
fi
done

exit 0
92 changes: 69 additions & 23 deletions .github/workflows/build-engine-windows.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
name: build-engine-windows

# Builds OUR OWN WinCairo WebKit engine FROM SOURCE on a Windows runner, relocates
# it into the Bunmaska engine-store layout, and proves it loads from the store —
# it into the Bunmaska engine-store layout, and proves it loads from the store -
# the Windows peer of `build-engine.yml` (which relocates apt's WebKitGTK on Linux).
# Windows has no system WebKit and we never ship Playwright's build, so the engine
# is our own from-source binary.
#
# This recipe mirrors the one proven locally end-to-end (a real BrowserWindow loaded
# the from-source engine from the store: STORE_ENGINE_OK). Notes baked in from that:
# * WinCairo dropped MSVC — it builds with clang-cl, so we install LLVM 20.
# * WinCairo dropped MSVC - it builds with clang-cl, so we install LLVM 20.
# * WebKit's code-gen needs gperf on PATH.
# * A short WEBKIT_OUTPUTDIR avoids Windows' 250-char object-path limit in vcpkg.
# * patch-webkit-wincairo.py routes ~300 serializer inputs through a response file
# (otherwise the inline command line overflows cmd.exe's ~8191-char limit).
# * `ninja -k 0` finishes past a broken dev-tooling target (compile_commands.json)
# that no product DLL depends on; success = WebKit2.dll exists.
#
# The release signing key (D042) never enters `build`: hours of third-party inputs
# (choco, LLVM, vcpkg, WebKit's scripts) run there and could exfiltrate it. `publish`
# signs the uploaded artifact from a fresh checkout, behind the engine-release environment.
#
# Heavy (~hours, GBs): runs on demand / on the engine branch only.
on:
workflow_dispatch:
Expand All @@ -24,13 +28,20 @@ on:
description: 'WebKit git tag to build (STABLE train only - even minor, e.g. wpewebkit-2.52.5)'
required: true
default: 'wpewebkit-2.52.5'
rev:
description: 'Build revision; bump it to rebuild a tag (a published engine id never changes)'
required: false
default: 'bunmaska1'
llvm:
description: 'LLVM version for clang-cl (older WebKit trains may need an older clang)'
required: false
default: '20.1.8'
push:
branches: [feat/windows-engine]

permissions:
contents: read

jobs:
build:
name: build WinCairo from source (windows)
Expand All @@ -39,28 +50,40 @@ jobs:
# whole pipeline was proven end-to-end on (2026-07).
runs-on: windows-2022
timeout-minutes: 350
outputs:
engine_id: ${{ steps.id.outputs.engine_id }}
env:
# Hosted engines track the STABLE WPE train only (even minor; WSAs land
# there). Development tags (odd minor) are for local experiments, never
# the feed.
WEBKIT_TAG: ${{ github.event.inputs.webkit_tag || 'wpewebkit-2.52.5' }}
ENGINE_REV: ${{ github.event.inputs.rev || 'bunmaska1' }}
# Short build-output root (WebKit honours WEBKIT_OUTPUTDIR): vcpkg's ICU build
# generates pathologically deep try-compile object paths that blow past
# Windows' 250-char limit when nested under the workspace.
WEBKIT_OUTPUTDIR: C:\wkb
LLVM_VER: ${{ github.event.inputs.llvm || '20.1.8' }}
LLVM_DIR: C:\llvm\clang+llvm-${{ github.event.inputs.llvm || '20.1.8' }}-x86_64-pc-windows-msvc
# Publish steps are gated on these so forks / unconfigured runs still build
# + prove the engine, skipping pack/sign/upload when the secrets are absent.
HAVE_KEY: ${{ secrets.ENGINE_SIGNING_KEY != '' }}
# R2_PUBLISH_TOKEN is R2-only, separate from the Pages-scoped
# CLOUDFLARE_API_TOKEN deploy-web.yml uses (which has no R2 perms).
HAVE_R2: ${{ secrets.R2_PUBLISH_TOKEN != '' && secrets.CLOUDFLARE_ACCOUNT_ID != '' }}
steps:
- name: Checkout bunmaska
uses: actions/checkout@v4
with:
path: bunmaska
persist-credentials: false

# Fail in seconds, not after the multi-hour build.
- name: Compute and validate the engine id
id: id
run: |
$ver = "$env:WEBKIT_TAG" -replace '^(wpe|webkit)webkit-?|^webkitgtk-', ''
if ($ver -notmatch '^\d+\.(\d+)\.\d+$' -or [int]$Matches[1] % 2 -ne 0) {
Write-Error "$env:WEBKIT_TAG is not a stable (even-minor) x.y.z WebKit release"; exit 1
}
if ($env:ENGINE_REV -notmatch '^bunmaska\d+$') {
Write-Error "rev must look like bunmaska<n>, got $env:ENGINE_REV"; exit 1
}
"engine_id=webkit-2-$ver-$env:ENGINE_REV-windows-x64" >> $env:GITHUB_OUTPUT
shell: pwsh

# Clone WebKit to a SHORT path (C:\WebKit) at the pinned tag; shallow (history
# is enormous, the build only needs the tree at that revision).
Expand Down Expand Up @@ -134,13 +157,6 @@ jobs:
}
shell: pwsh

- name: Compute the engine id from the tag
id: id
run: |
$ver = "$env:WEBKIT_TAG" -replace '^(wpe|webkit)webkit-?|^webkitgtk-', ''
"engine_id=webkit-2-$ver-bunmaska1-windows-x64" >> $env:GITHUB_OUTPUT
shell: pwsh

# Relocate the from-source closure (Release/bin) into the store, mark installed.
- name: Relocate into the engine store
run: |
Expand Down Expand Up @@ -180,9 +196,42 @@ jobs:
path: ${{ runner.temp }}\store\${{ steps.id.outputs.engine_id }}
retention-days: 7

# Pack + sign the engine into the 3-file feed layout, then publish to R2.
# Gated on the signing key being present, so forks / unconfigured runs still
# build + prove the engine without needing the release secret.
publish:
name: pack, sign and publish the engine
needs: build
runs-on: windows-2022
timeout-minutes: 30
# Configure required reviewers on this environment: it gates every use of the key.
environment: engine-release
# A publish read-modify-writes index.json; two at once would drop an engine.
concurrency:
group: engine-publish
cancel-in-progress: false
env:
ENGINE_ID: ${{ needs.build.outputs.engine_id }}
# Forks / unconfigured runs skip pack/sign/upload when the secrets are absent.
HAVE_KEY: ${{ secrets.ENGINE_SIGNING_KEY != '' }}
# R2_PUBLISH_TOKEN is R2-only, separate from the Pages-scoped
# CLOUDFLARE_API_TOKEN deploy-web.yml uses (which has no R2 perms).
HAVE_R2: ${{ secrets.R2_PUBLISH_TOKEN != '' && secrets.CLOUDFLARE_ACCOUNT_ID != '' }}
# Pinned by SHA and no `bun install`: nothing mutable runs beside the key.
steps:
- name: Checkout bunmaska
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
path: bunmaska
persist-credentials: false

- name: Download the engine artifact
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: ${{ env.ENGINE_ID }}
path: ${{ runner.temp }}\store\${{ env.ENGINE_ID }}

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version-file: bunmaska/.bun-version

- name: Pack + sign the engine for the feed
if: ${{ env.HAVE_KEY == 'true' }}
working-directory: bunmaska
Expand All @@ -191,9 +240,7 @@ jobs:
run: |
$key = "$env:RUNNER_TEMP\engine-signing-key.pem"
Set-Content -Path $key -Value $env:ENGINE_SIGNING_KEY -NoNewline
bun tools/engine/pack-engine.ts `
"$env:RUNNER_TEMP\store\${{ steps.id.outputs.engine_id }}" `
"$env:RUNNER_TEMP\feed" $key
bun tools/engine/pack-engine.ts "$env:RUNNER_TEMP\store\$env:ENGINE_ID" "$env:RUNNER_TEMP\feed" $key
Remove-Item $key -Force
shell: pwsh

Expand All @@ -204,6 +251,5 @@ jobs:
CLOUDFLARE_API_TOKEN: ${{ secrets.R2_PUBLISH_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: |
bun tools/engine/publish-engine-r2.ts `
"$env:RUNNER_TEMP\feed" "${{ steps.id.outputs.engine_id }}" --bucket bunmaska-engines
bun tools/engine/publish-engine-r2.ts "$env:RUNNER_TEMP\feed" "$env:ENGINE_ID" --bucket bunmaska-engines
shell: pwsh
17 changes: 12 additions & 5 deletions .github/workflows/build-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ name: build-engine
# Builds a relocatable WebKitGTK engine from the runner's apt WebKitGTK and
# proves it loads from the store with its dependency closure resolved via the
# engine's own $ORIGIN rpaths. This is the start of the hosted-engine pipeline;
# it runs on demand and on the engine branch, not on every push.
# it runs on demand, not on every push.
on:
workflow_dispatch:
push:
branches: [feat/relocatable-engine]

jobs:
build:
Expand All @@ -23,15 +21,24 @@ jobs:

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
bun-version-file: .bun-version

- run: bun install --frozen-lockfile

- name: Build the relocatable engine
run: |
chmod +x tools/engine/build-webkitgtk-linux.sh
WK_VER=$(dpkg-query -W -f='${Version}' libwebkitgtk-6.0-4 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
ENGINE_ID="webkitgtk-6.0-${WK_VER:-0.0.0}-built1-linux-x64"
if [ -z "$WK_VER" ]; then
echo "could not read the libwebkitgtk-6.0-4 version"
exit 1
fi
case "$(uname -m)" in
x86_64) ARCH=x64 ;;
aarch64) ARCH=arm64 ;;
*) echo "unsupported arch $(uname -m)"; exit 1 ;;
esac
ENGINE_ID="webkitgtk-6.0-${WK_VER}-built1-linux-${ARCH}"
echo "ENGINE_ID=$ENGINE_ID" >> "$GITHUB_ENV"
echo "Building engine id: $ENGINE_ID"
mkdir -p "$RUNNER_TEMP/store"
Expand Down
38 changes: 21 additions & 17 deletions .github/workflows/deploy-web.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
name: deploy-web

# Builds website/ and deploys it to Cloudflare Pages (project "bunmaska",
# which serves bunmaska.org) on pushes that touch the site. Repo secrets:
# CLOUDFLARE_API_TOKEN — scoped token (Pages Edit + DNS Edit + Zone Read)
# CLOUDFLARE_ACCOUNT_ID — 33b4bb12637807398ca2edac6c77fe8c
# Checks website/ on pull requests; on main also deploys it to Cloudflare Pages
# (project "bunmaska") and pings IndexNow. Secrets: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID.
on:
push:
branches: [main]
paths: ['website/**', '.github/workflows/deploy-web.yml']
# package.json carries the version the site shows.
paths: ['website/**', 'package.json', '.github/workflows/deploy-web.yml']
pull_request:
branches: [main]
paths: ['website/**', 'package.json', '.github/workflows/deploy-web.yml']
workflow_dispatch:

# Queue instead of racing, so two quick pushes deploy in push order.
concurrency:
group: deploy-web-${{ github.ref }}
cancel-in-progress: false

permissions:
contents: read

Expand All @@ -20,21 +27,19 @@ jobs:
run:
working-directory: website
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
# The IndexNow step diffs against the previous push; a shallow clone
# would silently see no changes on a multi-commit push.
fetch-depth: 0

- uses: oven-sh/setup-bun@v2
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version-file: .bun-version

- name: Install
run: bun install --frozen-lockfile

# The site is held to the same bar as the framework: biome (ts/tsx) +
# `astro check` (strict tsconfig over every .astro/.ts) gate the deploy.
- name: Install framework dev tools (biome)
run: bun install --frozen-lockfile
working-directory: .
Expand All @@ -52,20 +57,19 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
run: bun run build

# Run wrangler via bunx (the wrangler-action's npm install is flaky on Bun).
# wrangler reads the token + account id from the env below.
# Run wrangler via bunx (the wrangler-action's npm install is flaky on Bun),
# pinned exactly because the deploy token is in its env.
- name: Deploy to Cloudflare Pages
if: github.event_name != 'pull_request'
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: bunx wrangler@4 pages deploy dist --project-name=bunmaska --branch=main
run: bunx wrangler@4.143.0 pages deploy dist --project-name=bunmaska --branch=main

# IndexNow: tell Bing (and Yandex, Naver, Seznam, Amazon, and the AI
# surfaces riding Bing's index) which pages changed. Google does not
# participate; the sitemap covers it. Only URLs whose source changed are
# sent; pushing the whole sitemap on every deploy is the protocol's
# documented anti-pattern. Key file lives in public/.
# Only URLs whose source changed: pinging the whole sitemap on every deploy
# is IndexNow's documented anti-pattern. The key file lives in public/.
- name: Ping IndexNow with the URLs whose source changed
if: github.event_name != 'pull_request'
env:
BEFORE: ${{ github.event.before }}
run: |
Expand Down
20 changes: 8 additions & 12 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: validate
on:
push:
branches: [main]
paths: ['src/**', 'tests/**', 'tools/**', 'examples/**', 'biome.json', 'bunfig.toml', 'tsconfig.json', 'tsconfig.base.json', 'package.json', 'bun.lock', '.bun-version', '.github/workflows/validate.yml']
paths: ['src/**', 'tests/**', 'tools/**', 'examples/**', 'scripts/**', '.githooks/**', '.gitattributes', 'biome.json', 'bunfig.toml', 'tsconfig.json', 'tsconfig.base.json', 'package.json', 'bun.lock', '.bun-version', '.github/workflows/validate.yml']
pull_request:
branches: [main]
paths: ['src/**', 'tests/**', 'tools/**', 'examples/**', 'biome.json', 'bunfig.toml', 'tsconfig.json', 'tsconfig.base.json', 'package.json', 'bun.lock', '.bun-version', '.github/workflows/validate.yml']
paths: ['src/**', 'tests/**', 'tools/**', 'examples/**', 'scripts/**', '.githooks/**', '.gitattributes', 'biome.json', 'bunfig.toml', 'tsconfig.json', 'tsconfig.base.json', 'package.json', 'bun.lock', '.bun-version', '.github/workflows/validate.yml']

concurrency:
group: validate-${{ github.ref }}
Expand All @@ -26,11 +26,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Linux native deps (GTK 4 + WebKitGTK 6.0 + libnotify + libsecret + Xvfb)
- name: Install Linux native deps (GTK 4 + WebKitGTK 6.0 + libnotify + libsecret + XTest + Xvfb)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-4-1 libwebkitgtk-6.0-4 libnotify4 libsecret-1-0 xvfb
sudo apt-get install -y libgtk-4-1 libwebkitgtk-6.0-4 libnotify4 libsecret-1-0 libxtst6 xvfb

- uses: oven-sh/setup-bun@v2
with:
Expand All @@ -41,7 +41,7 @@ jobs:

# WebKitGTK's bubblewrap sandbox and GPU acceleration are unavailable on
# the headless runner; disable them so the GTK/WebKitGTK tests can run.
- name: Validate (Linux — under Xvfb for GTK tests)
- name: Validate (Linux - under Xvfb for GTK tests)
if: runner.os == 'Linux'
env:
WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS: "1"
Expand All @@ -54,12 +54,8 @@ jobs:
if: runner.os == 'macOS'
run: bun run validate

# Windows runs a SCOPED validation: format + lint + type-check (all
# platform-agnostic) plus the Windows backend tests, which pass on a real
# windows-latest runner (engine-gated WebKit tests skip without
# BUNMASKA_WEBKIT_PATH). The full cross-platform suite is not yet
# POSIX/Windows path-portable; running it on Windows is a separate
# test-hardening follow-up (see .admin/WINDOWS.md).
- name: Validate (Windows — backend tests + lint + type-check)
# Scoped to the Windows tests under their own budget leg: the full suite is
# not path-portable to Windows. No engine is provisioned, so engine-gated tests skip.
- name: Validate (Windows - backend tests + lint + type-check)
if: runner.os == 'Windows'
run: bun run validate:windows
Loading
Loading