fix: add git hook setup and stable config hash sorting

This commit is contained in:
Peter Steinberger
2026-01-19 02:02:09 +00:00
parent dd1b08b3e8
commit a9fc2ca0ef
8 changed files with 363 additions and 4 deletions

View File

@@ -15,6 +15,11 @@ Use these when a task is clearly tied to a script; otherwise prefer the CLI.
- Prefer CLI surfaces when they exist (example: auth monitoring uses `clawdbot models status --check`).
- Assume scripts are hostspecific; read them before running on a new machine.
## Git hooks
- `scripts/setup-git-hooks.js`: best-effort setup for `core.hooksPath` when inside a git repo.
- `scripts/format-staged.js`: pre-commit formatter for staged `src/` and `test/` files.
## Auth monitoring scripts
Auth monitoring scripts are documented here: