cc-safe-setup 28.4.2 → 28.4.3
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 +7 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ Claude Code ships with no safety hooks by default. This tool fixes that.
|
|
|
64
64
|
|
|
65
65
|
Each hook exists because a real incident happened without it.
|
|
66
66
|
|
|
67
|
-
## All
|
|
67
|
+
## All 49 Commands
|
|
68
68
|
|
|
69
69
|
| Command | What It Does |
|
|
70
70
|
|---------|-------------|
|
|
@@ -112,6 +112,9 @@ Each hook exists because a real incident happened without it.
|
|
|
112
112
|
| `--test-hook <name>` | Test a specific hook with sample input |
|
|
113
113
|
| `--simulate "cmd"` | Preview how all hooks react to a command |
|
|
114
114
|
| `--protect <path>` | Block edits to a file or directory |
|
|
115
|
+
| `--rules [file]` | Compile YAML rules into hooks |
|
|
116
|
+
| `--validate` | Validate all hook scripts (syntax + structure) |
|
|
117
|
+
| `--safe-mode` | Maximum protection: all safety hooks + strict config |
|
|
115
118
|
| `--changelog` | Show what changed in each version |
|
|
116
119
|
| `--report` | Generate safety report |
|
|
117
120
|
| `--help` | Show help |
|
|
@@ -134,6 +137,9 @@ Each hook exists because a real incident happened without it.
|
|
|
134
137
|
| Diagnose why hooks aren't working | `npx cc-safe-setup --doctor` |
|
|
135
138
|
| Preview how hooks react to a command | `npx cc-safe-setup --simulate "git push origin main"` |
|
|
136
139
|
| Protect a specific file from edits | `npx cc-safe-setup --protect .env` |
|
|
140
|
+
| Define rules in YAML, compile to hooks | `npx cc-safe-setup --rules rules.yaml` |
|
|
141
|
+
| Validate all hook scripts are correct | `npx cc-safe-setup --validate` |
|
|
142
|
+
| Maximum protection mode | `npx cc-safe-setup --safe-mode` |
|
|
137
143
|
| Migrate from Cursor/Windsurf | [Migration Guide](https://yurukusa.github.io/cc-safe-setup/migration-guide.html) |
|
|
138
144
|
|
|
139
145
|
## How It Works
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-safe-setup",
|
|
3
|
-
"version": "28.4.
|
|
4
|
-
"description": "One command to make Claude Code safe. 336 hooks (8 built-in + 328 examples). 49 CLI commands.
|
|
3
|
+
"version": "28.4.3",
|
|
4
|
+
"description": "One command to make Claude Code safe. 336 hooks (8 built-in + 328 examples). 49 CLI commands. 980 tests. 5 languages.",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"bin": {
|
|
7
7
|
"cc-safe-setup": "index.mjs"
|