v0.2.0 — lid-closed mode, the Preferences window, and a hardened privileged path
Lid-closed mode, a Preferences window, and a hardened privileged path. The disk image now carries coffee-bar-probe, so the feature it unlocks is reachable without building from source.
Added
- Lid-closed mode.
sudo coffee-bar-probe armholds the Mac awake with the lid shut, governed by a launchd watchdog with a revert ladder and a hard eight-hour cap. - A Preferences window, split out of the panel, carrying the battery floor. It ships at 15%.
- A process governor, wired into the app.
- Codex and Cursor adapters, plus the
coffeebar-hookshim. - An app icon, and an app palette aligned with the site.
coffee-bar-probeinside the bundle, and so inside the disk image. 0.1.1 shippedcoffee-baralone, which left lid-closed mode reachable only by building from source.scripts/release-dmg.sh, which builds this disk image. 0.1.1's image left no trace in the repository of how it was made.
Fixed
- The watchdog's
uninstallbooted the service out before removing its plist, leaving a root LaunchDaemon that came back at every boot. - The revert and refusal notifications sat after a self-terminating bootout, so neither ever fired on the daemon path.
- The TTL rung measured elapsed time on the wall clock, so a backward step extended a privileged hold past its eight-hour cap. It now uses
mach_continuous_time(), which keeps counting across sleep.
Upgrading
Installing this version ends an arm that is already running. A hold armed by an older build wrote a version 1 journal. The first watchdog rung reads it, answers .unknownSchema, and reverts. That is the fail-safe working as designed, but it is invisible unless you know the schema moved. Re-arm after installing.
Homebrew installs 0.2.0 as well: the tap now pins this tag. It builds on your machine, so that copy is signed only ad hoc and is not notarised. The disk image is the signed, notarised and stapled artifact.
The disk image
| Fact | Value |
|---|---|
| File | coffee-bar-0.2.0.dmg |
| Size | 844641 bytes |
| SHA-256 | 5c16bfd3636adfc568e14dbf26e8a3c62ecd9e2fb2606136a08e6342c965cd15 |
| Architecture | Apple silicon (arm64) only |
| Minimum macOS | 14.0 |
| Signature | Developer ID Application, team 85FN4Z37V8 |
| Notarisation | spctl accepts it, source Notarized Developer ID |
| Staple | xcrun stapler validate passes |
Verify the download before you open it:
shasum -a 256 coffee-bar-0.2.0.dmg
spctl -a -t open --context context:primary-signature -vv coffee-bar-0.2.0.dmg