cc-safe-setup 1.5.0 → 1.5.1

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/index.mjs +1 -0
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -36,9 +36,9 @@ Installs 8 production-tested safety hooks in ~10 seconds. Zero dependencies. No
36
36
  ● cd+git Auto-Approver
37
37
  ● Secret Leak Prevention
38
38
 
39
- Install all 7 safety hooks? [Y/n] Y
39
+ Install all 8 safety hooks? [Y/n] Y
40
40
 
41
- ✓ Done. 7 safety hooks installed.
41
+ ✓ Done. 8 safety hooks installed.
42
42
  ```
43
43
 
44
44
  ## Why This Exists
package/index.mjs CHANGED
@@ -202,6 +202,7 @@ async function verify() {
202
202
  { hook: 'destructive-guard', input: '{"tool_input":{"command":"git checkout --force main"}}', expect: 2, desc: 'blocks git checkout --force' },
203
203
  { hook: 'secret-guard', input: '{"tool_input":{"command":"git add .env"}}', expect: 2, desc: 'blocks git add .env' },
204
204
  { hook: 'secret-guard', input: '{"tool_input":{"command":"git add src/app.js"}}', expect: 0, desc: 'allows git add safe files' },
205
+ { hook: 'api-error-alert', input: '{"stop_reason":"user"}', expect: 0, desc: 'ignores normal stops' },
205
206
  ];
206
207
 
207
208
  let pass = 0, fail = 0;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cc-safe-setup",
3
- "version": "1.5.0",
4
- "description": "One command to make Claude Code safe for autonomous operation. 7 hooks: destructive blocker, branch guard, force-push protection, secret leak prevention, syntax checks, and more.",
3
+ "version": "1.5.1",
4
+ "description": "One command to make Claude Code safe for autonomous operation. 8 hooks: destructive blocker, branch guard, force-push protection, secret leak prevention, syntax checks, and more.",
5
5
  "main": "index.mjs",
6
6
  "bin": {
7
7
  "cc-safe-setup": "index.mjs"