Formula for krz/ambient-companions, pinned to v0.6.1.
Builds signald and terminal-garden with cargo and macos-collector with swift; installs the launchd template and the zsh hook under share/; a service block gives brew services the daemon with the collector as its child.
swift build needs --disable-sandbox — SwiftPM sandboxes its own manifest compile, and that sandbox_apply fails inside Homebrew's build sandbox. Homebrew's sandbox still wraps the whole build.
Verified locally: brew audit --strict clean, brew install --build-from-source succeeds, brew test passes. The generated launchd plist has RunAtLoad, KeepAlive and both log paths.
Closes krz/ambient-companions#5