v0.2.0
Drift detection — the job battlestation is best at is now automatable.
Added
diff --exit-codeexits 1 when the live system no longer matches your TOML file, the same waygit diff --exit-codedoes, in both text and--jsonmodes. Previouslydiffalways exited 0, sobattlestation diff || notifycould never fire.battlestation scheduleinstalls a launchd agent that runs that checkhourly,daily, orweeklyand posts a macOS notification when something has moved.--uninstallremoves it.
The agent only ever notifies — it never applies anything, because a background job that silently changed system settings would be a trap rather than a feature. Its stderr goes to ~/Library/Logs/battlestation-drift-check.log, so a broken agent is diagnosable instead of silent.
battlestation diff --exit-code || echo "settings drifted"
battlestation schedule --interval weekly --file ~/dotfiles/battlestation.tomlPass an absolute --file path when scheduling: the agent runs outside your shell, with a different working directory.
Install
npx battlestation@0.2.0 captureStandalone macOS executables are attached below.