hookstack-cli 0.1.33 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
## Quick start
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx hookstack-cli@latest install --hooks=secret-detection,
|
|
12
|
+
npx hookstack-cli@latest install --hooks=pre-bash-secret-detection,pre-bash-block-destructive
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
That's it. The CLI fetches the hooks, shows you what will be installed, and patches your `.claude/settings.json`.
|
|
@@ -47,10 +47,10 @@ Skips all prompts — useful in CI or dotfile bootstrap scripts.
|
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
49
|
# CI bootstrap
|
|
50
|
-
npx hookstack-cli@latest install --hooks=secret-detection,git-push-
|
|
50
|
+
npx hookstack-cli@latest install --hooks=pre-bash-secret-detection,pre-bash-guard-git-push-main --yes --scope=project
|
|
51
51
|
|
|
52
52
|
# CI bootstrap with unit tests (avoids SonarQube gating on new files without tests)
|
|
53
|
-
npx hookstack-cli@latest install --hooks=secret-detection,git-push-
|
|
53
|
+
npx hookstack-cli@latest install --hooks=pre-bash-secret-detection,pre-bash-guard-git-push-main --yes --with-tests
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
---
|
|
@@ -79,13 +79,13 @@ Browse and filter the full catalogue at **[hookstack.vercel.app](https://hooksta
|
|
|
79
79
|
|
|
80
80
|
| Slug | Event | What it does |
|
|
81
81
|
|---|---|---|
|
|
82
|
-
| `secret-detection` | `PreToolUse / Bash` | Blocks commands that would leak API keys |
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
85
|
-
| `git-push-
|
|
86
|
-
| `git-context
|
|
87
|
-
| `
|
|
88
|
-
| `slack
|
|
82
|
+
| `pre-bash-secret-detection` | `PreToolUse / Bash` | Blocks commands that would leak API keys |
|
|
83
|
+
| `pre-bash-block-destructive` | `PreToolUse / Bash` | Stops `rm -rf /`, `DROP TABLE`, and similar |
|
|
84
|
+
| `pre-edit-protect-paths` | `PreToolUse / Write\|Edit` | Keeps `.env` and key files untouched |
|
|
85
|
+
| `pre-bash-guard-git-push-main` | `PreToolUse / Bash` | No accidental push straight to `main` |
|
|
86
|
+
| `session-start-load-git-context` | `SessionStart` | Every session opens with branch + status |
|
|
87
|
+
| `post-write-autoformat` | `PostToolUse / Write\|Edit` | Prettier runs after every file write |
|
|
88
|
+
| `notification-slack` | `Notification` | Pings you when the agent needs you |
|
|
89
89
|
|
|
90
90
|
---
|
|
91
91
|
|