cc-hook-registry 1.2.0 → 2.0.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.
Files changed (2) hide show
  1. package/index.mjs +21 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -60,6 +60,27 @@ const REGISTRY = [
60
60
  { id: 'read-before-edit', name: 'Read Before Edit Warning', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn when editing files not recently read', tags: ['read', 'edit', 'mismatch', 'old_string'], install: 'npx cc-safe-setup --install-example read-before-edit' },
61
61
  { id: 'commit-quality-gate', name: 'Commit Message Quality', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn on vague commit messages and long subjects', tags: ['commit', 'message', 'quality', 'conventional'], install: 'npx cc-safe-setup --install-example commit-quality-gate' },
62
62
 
63
+ // cc-safe-setup — additional examples
64
+ { id: 'allowlist', name: 'Allowlist (Inverse Permission)', category: 'safety', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Block everything not explicitly approved', tags: ['allowlist', 'whitelist', 'inverse'], install: 'npx cc-safe-setup --install-example allowlist' },
65
+ { id: 'auto-approve-build', name: 'Auto-Approve Build/Test', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve npm/cargo/go build, test, lint commands', tags: ['build', 'test', 'lint', 'npm', 'cargo'], install: 'npx cc-safe-setup --install-example auto-approve-build' },
66
+ { id: 'auto-approve-docker', name: 'Auto-Approve Docker', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve docker build, compose, ps, logs', tags: ['docker', 'compose', 'container'], install: 'npx cc-safe-setup --install-example auto-approve-docker' },
67
+ { id: 'auto-approve-git-read', name: 'Auto-Approve Git Read', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve git status/log/diff even with -C flags', tags: ['git', 'read', 'status', 'log'], install: 'npx cc-safe-setup --install-example auto-approve-git-read' },
68
+ { id: 'auto-approve-python', name: 'Auto-Approve Python', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve pytest, mypy, ruff, black, isort', tags: ['python', 'pytest', 'lint', 'format'], install: 'npx cc-safe-setup --install-example auto-approve-python' },
69
+ { id: 'auto-approve-ssh', name: 'Auto-Approve SSH', category: 'approve', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Auto-approve safe SSH commands (uptime, whoami)', tags: ['ssh', 'remote', 'server'], install: 'npx cc-safe-setup --install-example auto-approve-ssh' },
70
+ { id: 'auto-checkpoint', name: 'Auto-Checkpoint', category: 'recovery', source: 'cc-safe-setup', trigger: 'PostToolUse', desc: 'Auto-commit after edits for rollback protection', tags: ['checkpoint', 'commit', 'rollback', 'recovery'], install: 'npx cc-safe-setup --install-example auto-checkpoint' },
71
+ { id: 'auto-snapshot', name: 'Auto-Snapshot', category: 'recovery', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Save file copies before edits', tags: ['snapshot', 'backup', 'rollback'], install: 'npx cc-safe-setup --install-example auto-snapshot' },
72
+ { id: 'session-checkpoint', name: 'Session Checkpoint', category: 'recovery', source: 'cc-safe-setup', trigger: 'PreCompact', desc: 'Save session state before context compaction', tags: ['session', 'compact', 'state'], install: 'npx cc-safe-setup --install-example session-checkpoint' },
73
+ { id: 'branch-name-check', name: 'Branch Name Check', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn on non-conventional branch names', tags: ['branch', 'naming', 'convention'], install: 'npx cc-safe-setup --install-example branch-name-check' },
74
+ { id: 'commit-message-check', name: 'Commit Message Check', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn on non-conventional commit messages', tags: ['commit', 'message', 'conventional'], install: 'npx cc-safe-setup --install-example commit-message-check' },
75
+ { id: 'edit-guard', name: 'Edit Guard', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Block Edit/Write to protected files', tags: ['edit', 'write', 'protected'], install: 'npx cc-safe-setup --install-example edit-guard' },
76
+ { id: 'enforce-tests', name: 'Enforce Tests', category: 'quality', source: 'cc-safe-setup', trigger: 'PostToolUse', desc: 'Warn when source files change without test files', tags: ['tests', 'enforce', 'quality'], install: 'npx cc-safe-setup --install-example enforce-tests' },
77
+ { id: 'large-file-guard', name: 'Large File Guard', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn when Write creates files over 500KB', tags: ['large', 'file', 'size'], install: 'npx cc-safe-setup --install-example large-file-guard' },
78
+ { id: 'todo-check', name: 'TODO Check', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn when committing files with TODO/FIXME markers', tags: ['todo', 'fixme', 'hack'], install: 'npx cc-safe-setup --install-example todo-check' },
79
+ { id: 'verify-before-commit', name: 'Verify Before Commit', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Block commit unless tests passed recently', tags: ['verify', 'test', 'commit'], install: 'npx cc-safe-setup --install-example verify-before-commit' },
80
+ { id: 'symlink-guard', name: 'Symlink Traversal Guard', category: 'safety', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Detect symlink/junction traversal in rm targets', tags: ['symlink', 'junction', 'ntfs', 'traversal'], install: 'npx cc-safe-setup --install-example symlink-guard', issue: '#36339' },
81
+ { id: 'binary-file-guard', name: 'Binary File Guard', category: 'quality', source: 'cc-safe-setup', trigger: 'PreToolUse', desc: 'Warn when Write targets binary file types', tags: ['binary', 'image', 'archive'], install: 'npx cc-safe-setup --install-example binary-file-guard' },
82
+ { id: 'stale-branch-guard', name: 'Stale Branch Guard', category: 'quality', source: 'cc-safe-setup', trigger: 'PostToolUse', desc: 'Warn when branch is far behind default', tags: ['branch', 'stale', 'behind', 'rebase'], install: 'npx cc-safe-setup --install-example stale-branch-guard' },
83
+
63
84
  // External projects
64
85
  { 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 },
65
86
  { id: 'hooks-mastery', name: 'Hooks Mastery (Python)', category: 'framework', source: 'disler/claude-code-hooks-mastery', trigger: 'All', desc: 'Python hooks covering all hook events + LLM integration', tags: ['python', 'mastery', 'all-events', 'llm'], install: 'git clone + copy', stars: 3386 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-hook-registry",
3
- "version": "1.2.0",
3
+ "version": "2.0.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": {