Skip to content

chore: activate lefthook hooks and add fmt-all, mobile-fmt recipes#751

Merged
wpfleger96 merged 3 commits into
mainfrom
fix/activate-lefthook
May 26, 2026
Merged

chore: activate lefthook hooks and add fmt-all, mobile-fmt recipes#751
wpfleger96 merged 3 commits into
mainfrom
fix/activate-lefthook

Conversation

@wpfleger96
Copy link
Copy Markdown
Collaborator

@wpfleger96 wpfleger96 commented May 26, 2026

Summary

  • Activate lefthook pre-commit and pre-push hooks that have existed in lefthook.yml since the initial desktop app but were never wired up.
  • Add just hooks recipe: sets core.hooksPath = .hooks and runs lefthook install --force to generate hook scripts.
  • Wire hook installation into scripts/dev-setup.sh so hooks activate automatically on just setup.
  • Enable parallel: true for pre-commit hooks (pre-push already had it) — all 5 format/lint checks run simultaneously.
  • Add just mobile-fmt recipe (dart format .) and just fmt-all recipe (Rust root + Tauri Rust + Dart) as one-shot formatters.
  • .hooks/ is gitignored since lefthook generates machine-specific scripts.
  • Update AGENTS.md: document pre-commit/pre-push hooks in Quality Gates, add just fmt-all and just hooks usage, upgrade worktree fmt gotcha from CI note to commit blocker, add just mobile-fmt to mobile commands; also backfill CLI-first updates (SPROUT_AUTH_TAG, complete exit codes, --format compact flag position, two new gotchas).

All hook commands delegate to just recipes as the single source of truth.

@wpfleger96 wpfleger96 requested a review from a team as a code owner May 26, 2026 19:53
@wpfleger96 wpfleger96 force-pushed the fix/activate-lefthook branch 2 times, most recently from b6c036d to b27b212 Compare May 26, 2026 20:30
lefthook.yml has existed since the initial desktop app but was never
wired up. Add just hooks recipe that sets core.hooksPath and runs
lefthook install, add mobile-fmt and fmt-all recipes, enable parallel
pre-commit execution, and wire hook installation into dev-setup.sh.
@wpfleger96 wpfleger96 force-pushed the fix/activate-lefthook branch from b27b212 to 35bffbc Compare May 26, 2026 21:11
CLI-first changes:
- Redirect sprout-mcp Key Patterns section to sprout-cli (MCP being phased out)
- Add SPROUT_AUTH_TAG to auto-injected auth env vars
- Complete exit code table (2=network, 4=other, 5=conflict were missing)
- Document --format compact as a global flag (must precede subcommand)
- Add gotcha: messages search requires --kinds to avoid 403 p-gate
- Add gotcha: desktop crate excluded from root workspace cargo test
- Update See Also: MCP tools → CLI subcommands

Lefthook hook changes:
- Document pre-commit/pre-push hooks in Quality Gates (installed by just setup)
- Add just fmt-all as one-shot formatter before committing
- Add just hooks as repair command
- Upgrade worktree fmt gotcha from CI note to commit blocker
- Add just mobile-fmt auto-fix alongside existing mobile check commands
@wpfleger96 wpfleger96 force-pushed the fix/activate-lefthook branch from 61ed091 to 47d9097 Compare May 26, 2026 21:55
@wpfleger96 wpfleger96 changed the title chore: add mobile-fmt recipe and activate lefthook pre-commit hooks chore: activate lefthook hooks and add fmt-all, mobile-fmt recipes May 26, 2026
@wpfleger96 wpfleger96 enabled auto-merge (squash) May 26, 2026 21:57
@wpfleger96 wpfleger96 disabled auto-merge May 26, 2026 21:57
@wpfleger96 wpfleger96 enabled auto-merge (squash) May 26, 2026 21:57
@wpfleger96 wpfleger96 merged commit 11905d1 into main May 26, 2026
16 checks passed
@wpfleger96 wpfleger96 deleted the fix/activate-lefthook branch May 26, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants