cc-hook-registry 5.1.0 → 5.3.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/docs/index.html +10 -1
- package/index.mjs +6 -0
- package/package.json +1 -1
- package/test.sh +1 -1
package/docs/index.html
CHANGED
|
@@ -42,10 +42,19 @@ a{color:#58a6ff;text-decoration:none}
|
|
|
42
42
|
<div class="count" id="count"></div>
|
|
43
43
|
<div id="list"></div>
|
|
44
44
|
|
|
45
|
+
<div style="max-width:800px;margin:1.5rem auto;padding:0 1.5rem">
|
|
46
|
+
<div style="background:#161b22;border:1px solid #30363d;border-radius:6px;padding:1rem;text-align:center">
|
|
47
|
+
<div style="color:#f0f6fc;font-weight:600;margin-bottom:.5rem">Quick Setup</div>
|
|
48
|
+
<code style="background:#0d1117;padding:.4rem .8rem;border-radius:4px;font-size:.85rem;color:#58a6ff;cursor:pointer" onclick="navigator.clipboard.writeText('npx cc-hook-registry init');this.textContent='Copied!';setTimeout(()=>this.textContent='npx cc-hook-registry init',1500)">npx cc-hook-registry init</code>
|
|
49
|
+
<div style="color:#8b949e;font-size:.75rem;margin-top:.4rem">Detects your tech stack and installs recommended hooks automatically</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
45
53
|
<div class="footer">
|
|
46
54
|
<a href="https://github.com/yurukusa/cc-hook-registry">GitHub</a> ·
|
|
47
55
|
<a href="https://www.npmjs.com/package/cc-hook-registry">npm</a> ·
|
|
48
|
-
<
|
|
56
|
+
<a href="https://yurukusa.github.io/cc-safe-setup/">Safety Audit</a> ·
|
|
57
|
+
<a href="https://yurukusa.github.io/claude-code-hooks/">Cookbook</a>
|
|
49
58
|
</div>
|
|
50
59
|
</div>
|
|
51
60
|
|
package/index.mjs
CHANGED
|
@@ -85,6 +85,12 @@ const REGISTRY = [
|
|
|
85
85
|
{ id: 'no-install-global', name: 'No Global Install', category: 'safety', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Block npm -g and system-wide pip', tags: ['npm', 'pip', 'global', 'system'], install: 'npx cc-safe-setup --install-example no-install-global' },
|
|
86
86
|
{ id: 'git-tag-guard', name: 'Git Tag Guard', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Block pushing all tags at once', tags: ['git', 'tag', 'version', 'release'], install: 'npx cc-safe-setup --install-example git-tag-guard' },
|
|
87
87
|
{ id: 'npm-publish-guard', name: 'NPM Publish Guard', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Version check before npm publish', tags: ['npm', 'publish', 'version'], install: 'npx cc-safe-setup --install-example npm-publish-guard' },
|
|
88
|
+
{ id: 'protect-claudemd', name: 'Protect CLAUDE.md', category: 'safety', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Block edits to CLAUDE.md and settings files', tags: ['claudemd', 'config', 'protect'], install: 'npx cc-safe-setup --install-example protect-claudemd' },
|
|
89
|
+
{ id: 'no-curl-upload', name: 'No Curl Upload', category: 'safety', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn on curl POST/upload', tags: ['curl', 'upload', 'exfiltration'], install: 'npx cc-safe-setup --install-example no-curl-upload' },
|
|
90
|
+
{ id: 'max-file-count-guard', name: 'Max File Count', category: 'quality', source: 'cc-safe-setup', trigger: 'PostToolUse', desc: 'Warn when 20+ new files per session', tags: ['files', 'count'], install: 'npx cc-safe-setup --install-example max-file-count-guard' },
|
|
91
|
+
{ id: 'auto-approve-make', name: 'Auto-Approve Make', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve make build/test/lint', tags: ['make', 'makefile'], install: 'npx cc-safe-setup --install-example auto-approve-make' },
|
|
92
|
+
{ id: 'auto-approve-go', name: 'Auto-Approve Go', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve go build/test/vet', tags: ['go', 'golang'], install: 'npx cc-safe-setup --install-example auto-approve-go' },
|
|
93
|
+
{ id: 'auto-approve-cargo', name: 'Auto-Approve Cargo', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve cargo build/test/clippy', tags: ['rust', 'cargo'], install: 'npx cc-safe-setup --install-example auto-approve-cargo' },
|
|
88
94
|
|
|
89
95
|
// External projects
|
|
90
96
|
{ id: 'safety-net', name: 'Safety Net (Full Suite)', category: 'safety', source: 'kenryu42/claude-code-safety-net', trigger: 'PreToolUse', desc: 'TypeScript safety hooks with configurable severity levels', tags: ['typescript', 'safety', 'configurable'], install: 'npx @anthropic-ai/claude-code-safety-net', stars: 1185 },
|
package/package.json
CHANGED
package/test.sh
CHANGED
|
@@ -26,7 +26,7 @@ test_cmd "browse safety" "node $CLI browse safety" "Safety"
|
|
|
26
26
|
test_cmd "info destructive-guard" "node $CLI info destructive-guard" "Destructive"
|
|
27
27
|
test_cmd "info nonexistent" "node $CLI info notreal" "not found"
|
|
28
28
|
test_cmd "stats" "node $CLI stats" "Total hooks"
|
|
29
|
-
test_cmd "stats count" "node $CLI stats" "
|
|
29
|
+
test_cmd "stats count" "node $CLI stats" "59"
|
|
30
30
|
|
|
31
31
|
echo ""
|
|
32
32
|
echo "Results: $PASS/$((PASS+FAIL)) passed"
|