cc-safe-setup 28.3.3 → 28.3.4
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 -2
- package/index.mjs +1 -1
- package/package.json +1 -1
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 45 Commands
|
|
68
68
|
|
|
69
69
|
| Command | What It Does |
|
|
70
70
|
|---------|-------------|
|
|
@@ -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 316 examples |
|
|
91
91
|
| `--examples [filter]` | Browse examples by keyword |
|
|
92
92
|
| `--full` | All-in-one setup |
|
|
93
93
|
| `--status` | Check installed hooks |
|
|
@@ -107,6 +107,11 @@ Each hook exists because a real incident happened without it.
|
|
|
107
107
|
| `--why <hook>` | Show real incident behind hook |
|
|
108
108
|
| `--migrate-from <tool>` | Migrate from other hook tools |
|
|
109
109
|
| `--diff-hooks [path]` | Compare hook configurations |
|
|
110
|
+
| `--init-project` | Full project setup (hooks + CLAUDE.md + CI) |
|
|
111
|
+
| `--score` | CI-friendly safety score (exit 1 if below threshold) |
|
|
112
|
+
| `--test-hook <name>` | Test a specific hook with sample input |
|
|
113
|
+
| `--changelog` | Show what changed in each version |
|
|
114
|
+
| `--report` | Generate safety report |
|
|
110
115
|
| `--help` | Show help |
|
|
111
116
|
|
|
112
117
|
## Quick Start by Scenario
|
package/index.mjs
CHANGED
|
@@ -2391,7 +2391,7 @@ async function shield() {
|
|
|
2391
2391
|
if (existsSync(join(cwd, '.env'))) extras.push('env-source-guard');
|
|
2392
2392
|
|
|
2393
2393
|
// Always include these for maximum safety
|
|
2394
|
-
extras.push('scope-guard', 'no-sudo-guard', 'protect-claudemd');
|
|
2394
|
+
extras.push('scope-guard', 'no-sudo-guard', 'protect-claudemd', 'memory-write-guard', 'skill-gate', 'auto-approve-test', 'auto-approve-readonly');
|
|
2395
2395
|
|
|
2396
2396
|
for (const ex of extras) {
|
|
2397
2397
|
const exPath = join(__dirname, 'examples', `${ex}.sh`);
|
package/package.json
CHANGED