cc-hook-registry 5.2.0 → 5.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/docs/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Claude Code Hook Registry</title>
7
- <meta name="description" content="Search 48 hooks from 7 projects. Find and install Claude Code safety hooks.">
7
+ <meta name="description" content="Search 59 hooks from 7 projects. Find and install Claude Code safety hooks.">
8
8
  <style>
9
9
  *{box-sizing:border-box;margin:0;padding:0}
10
10
  body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#0d1117;color:#c9d1d9;min-height:100vh;padding:1.5rem}
@@ -34,7 +34,7 @@ a{color:#58a6ff;text-decoration:none}
34
34
  <body>
35
35
  <div class="c">
36
36
  <h1>Claude Code Hook Registry</h1>
37
- <p class="sub">48 hooks from 7 projects. Search, browse, install.</p>
37
+ <p class="sub">59 hooks from 7 projects. Search, browse, install.</p>
38
38
 
39
39
  <input id="q" placeholder="Search hooks... (database, git, deploy, secret, docker)" oninput="render()">
40
40
 
@@ -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
- <code>npx cc-hook-registry search &lt;keyword&gt;</code>
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
@@ -88,6 +88,11 @@ const REGISTRY = [
88
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
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
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' },
94
+ { id: 'auto-approve-gradle', name: 'Auto-Approve Gradle', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve gradle/gradlew build/test', tags: ['java', 'kotlin', 'gradle'], install: 'npx cc-safe-setup --install-example auto-approve-gradle' },
95
+ { id: 'auto-approve-maven', name: 'Auto-Approve Maven', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve mvn compile/test/verify', tags: ['java', 'maven', 'mvn'], install: 'npx cc-safe-setup --install-example auto-approve-maven' },
91
96
 
92
97
  // External projects
93
98
  { 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-hook-registry",
3
- "version": "5.2.0",
3
+ "version": "5.4.0",
4
4
  "description": "Search, browse, and install Claude Code hooks from the community. GitHub-based registry, no server needed.",
5
5
  "main": "index.mjs",
6
6
  "bin": {
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" "48"
29
+ test_cmd "stats count" "node $CLI stats" "61"
30
30
 
31
31
  echo ""
32
32
  echo "Results: $PASS/$((PASS+FAIL)) passed"