Skip to content

macup v5.0.0

Choose a tag to compare

@HMarzban HMarzban released this 28 Nov 10:47
· 44 commits to main since this release

macup v5.0.0 — Smart Speed, Safety, Automation & Deep Hygiene

Smart Speed Fast-Paths & Critical-Path-First DAG

  • Zero-bash Node/npm fast-path: Resolves $NVM_DIR/alias/default + local npm directly in Go and checks nodejs.org + registry.npmjs.org via HTTP ETag (~1s no-op vs ~10s previously).
  • Direct Go module proxy fast-path: Queries proxy.golang.org/@latest concurrently (honoring GOPRIVATE) and skips go install when $GOBIN binaries are already current (<1s no-op).
  • Zero-Ruby Homebrew 7 local catalog reader: Parses Homebrew's local packages.*.jws.json.payload (+ .index) once per process to inspect auto_updates, cask .app bundles, sudo requirements, and deprecations in ~25ms.
  • Critical-Path-First (LPT) DAG scheduling + automatic transient error retry (auto_retry_transient = true).

Smart Safety & Risk Controls

  • Running-App Cask Guard (defer_running_apps = true): Pre-fetches outdated GUI casks into Homebrew's cache and safely defers installing currently open apps; upgrade anytime from Tab 3 (Attention) with one keypress ([u] quit, upgrade from cache & reopen).
  • Semver MAJOR Bump Badges across Bento cards, Markdown exports, and Tab 2 (Changes).
  • One-Key Pinning: macup pin / macup unpin CLI + [p] key in Tab 2 (Changes) for both Homebrew formulae and casks.

Autonomous launchd Scheduler & <10ms Shell Status

  • macup schedule [install|status|pause|resume|uninstall|run-now] managing dev.macup.agent with prefetch (cache pre-warm) and safe-apply (non-sudo, non-GUI, non-major CLI auto-apply) modes.
  • macOS Environment Guards: Automatically skips background runs on low battery (<40%), Low Power Mode, offline networks, metered Personal Hotspots, or active video calls.
  • macup status [--prompt]: Reads ~/.local/share/macup/pending.json in <10ms for Zsh/Starship/tmux badges (↑4, ↑4!).
  • Lifecycle [hooks]: pre_run, post_run, on_failure shell hooks + JSON webhook_url.

Deep Hygiene Audit & Snapshot Drift

  • macup audit --deep: Deprecated/disabled Homebrew packages, pure-Go debug/macho Rosetta x86_64-only app detection, orphaned Homebrew leaves, and stale nvm versions.
  • macup snapshot diff [1] [2] & list: Timestamped snapshot archive for out-of-band machine drift tracking.
  • Expanded macup doctor (10 checks) & updated Zsh tab completions.

Notable Fixes

  • Fixed Node (nvm) PATH shadowing where /opt/homebrew/bin/npm blocked nvm install-latest-npm from updating nvm's own npm.
  • Fixed Homebrew 7 future-dated deprecation filtering (no false positives on future-EOL formulae like openssl@3 or python@3.15).
  • Fixed macup snapshot cask capture falling back to Caskroom when an unavailable tap cask makes brew list --cask --versions fail.
  • Fixed 7-bit ASCII purity in --plain output mode.