cc-safe-setup 29.3.0 → 29.4.0
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 +4 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -87,7 +87,7 @@ Each hook exists because a real incident happened without it.
|
|
|
87
87
|
| `--scan [--apply]` | Tech stack detection |
|
|
88
88
|
| `--export / --import` | Team config sharing |
|
|
89
89
|
| `--verify` | Test each hook |
|
|
90
|
-
| `--install-example <name>` | Install from
|
|
90
|
+
| `--install-example <name>` | Install from 338 examples |
|
|
91
91
|
| `--examples [filter]` | Browse examples by keyword |
|
|
92
92
|
| `--full` | All-in-one setup |
|
|
93
93
|
| `--status` | Check installed hooks |
|
|
@@ -137,6 +137,9 @@ Each hook exists because a real incident happened without it.
|
|
|
137
137
|
| Diagnose why hooks aren't working | `npx cc-safe-setup --doctor` |
|
|
138
138
|
| Preview how hooks react to a command | `npx cc-safe-setup --simulate "git push origin main"` |
|
|
139
139
|
| Protect a specific file from edits | `npx cc-safe-setup --protect .env` |
|
|
140
|
+
| Stop .git/ write prompts | `npx cc-safe-setup --install-example allow-git-hooks-dir` |
|
|
141
|
+
| Auto-approve compound git commands | `npx cc-safe-setup --install-example auto-approve-compound-git` |
|
|
142
|
+
| Detect prompt injection patterns | `npx cc-safe-setup --install-example prompt-injection-detector` |
|
|
140
143
|
| Define rules in YAML, compile to hooks | `npx cc-safe-setup --rules rules.yaml` |
|
|
141
144
|
| Validate all hook scripts are correct | `npx cc-safe-setup --validate` |
|
|
142
145
|
| Maximum protection mode | `npx cc-safe-setup --safe-mode` |
|
package/index.mjs
CHANGED
|
@@ -4952,7 +4952,7 @@ async function doctor() {
|
|
|
4952
4952
|
pass('"hooks" section exists in settings.json');
|
|
4953
4953
|
|
|
4954
4954
|
// 5. Check each hook trigger type
|
|
4955
|
-
for (const trigger of ['PreToolUse', 'PostToolUse', 'Stop']) {
|
|
4955
|
+
for (const trigger of ['PreToolUse', 'PostToolUse', 'Stop', 'Notification', 'SessionStart', 'SessionEnd', 'PreCompact', 'PermissionRequest', 'UserPromptSubmit']) {
|
|
4956
4956
|
const entries = hooks[trigger] || [];
|
|
4957
4957
|
if (entries.length > 0) {
|
|
4958
4958
|
pass(trigger + ': ' + entries.length + ' hook(s) registered');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-safe-setup",
|
|
3
|
-
"version": "29.
|
|
4
|
-
"description": "One command to make Claude Code safe. 346 hooks (8 built-in + 338 examples). 49 CLI commands.
|
|
3
|
+
"version": "29.4.0",
|
|
4
|
+
"description": "One command to make Claude Code safe. 346 hooks (8 built-in + 338 examples). 49 CLI commands. 1062 tests. 5 languages.",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"bin": {
|
|
7
7
|
"cc-safe-setup": "index.mjs"
|