fix(setup): install hooks before toolchain checks
Changelog
- Fixed setup so clone-local formatting hooks install before toolchain and submodule checks.
Previously a first setup failure (missing Xcode, Metal, Rust, or Ghostty prerequisites) exited before installing hooks, leaving every worktree in the clone without the formatter guard. Hook installation is now the first setup action, so failures cannot leave an unguarded checkout.
Validation: git diff --check; shell flow reviewed.
Need help on this PR? Tag @codesmith-bot with what you need.
Summary by cubic
Fixes setup so clone-local formatting hooks install before toolchain and submodule checks.
Previously, a failed first setup (missing Xcode, Metal, Rust, or Ghostty prerequisites) exited before hook installation, leaving every worktree in the clone without the formatter guard. Hook installation now runs first, so a setup failure can't leave an unguarded checkout.