Repository navigation
halfcaf 0.4.0
Historical entry. Built from source via the Homebrew tap formula at the time. Binaries were not packaged until v1.0.0.
Added
- Menu bar app (
HalfcafBar.app): SwiftUIMenuBarExtraagent
that wraps thehalfcafCLI as a subprocess. One-click engage and
disengage, persisted toggle states (Dim, Mute, Toggle Focus),
Launch at Login viaSMAppService, and status reflection from the
sharedstate.json. - Global hotkey ⌘⇧⎋ for blind-disengage when the screen is dark,
registered via CarbonRegisterEventHotKey. - Engaged-state visual change: menu bar icon swaps from
moonto
moon.zzz.fillwhen a session is active. - Failure surfacing: stderr from the spawned
halfcafis
captured and shown as anNSAlertif the process exits non-zero
for any reason other than user interrupt. .appbundle assembly (scripts/build-app.sh): generates
Info.plist(LSUIElement, NSAppleEventsUsageDescription),
programmaticAppIcon.icnsfromscripts/make-icon.swift, and
bundles the CLI insideContents/MacOS/so a single Cask install
provides both the GUI and the binary on PATH.- Release pipeline:
scripts/release.shorchestrates build,
codesign, notarize, package CLI tarball, package DMG, optional R2
upload. Mirrors the Pier project's structure;
scripts/lib/notarize-common.shandscripts/upload-to-r2.share
reused verbatim from Pier. - CLI entitlements:
automation.apple-eventsforosascriptand
shortcuts run. GUI gets a no-op entitlements file for hardened
runtime. - Homebrew Cask draft:
Casks/halfcaf.rbforbrew install --cask halfcafonce the tap is published; includes abinary
stanza so the bundled CLI is symlinked onto PATH. - 3 new tests:
RestoreCLITestscovers--statusand--restore
CLI paths.
Changed
- Toggle Focus defaults to OFF in the menu bar. macOS Focus
syncs across iCloud-connected devices by default; defaulting on
surprised users by also engaging DND on iPhone/iPad. CLI behavior
unchanged:--no-focusis still the explicit opt-out. - README rewritten to cover both the CLI and the bar app, with a
dedicated section on Focus / DND iOS sync trade-offs.