Skip to content

fix: use correct hooks.json format with event names as object keys#8

Merged
matanryngler merged 1 commit intomainfrom
fix/hooks-json-format
Feb 12, 2026
Merged

fix: use correct hooks.json format with event names as object keys#8
matanryngler merged 1 commit intomainfrom
fix/hooks-json-format

Conversation

@matanryngler
Copy link
Owner

Summary

  • Fixes hooks.json to use the correct plugin hooks format (event names as object keys) instead of the array-with-event-field format
  • The previous format caused hooks to silently not register, meaning DeployShield's PreToolUse guard and SessionStart context were never triggered

Test plan

  • Verified validate-cloud-command.py correctly blocks kubectl apply when invoked directly
  • Restarted Claude Code session and confirmed kubectl apply is now blocked by the hook

The previous array-with-event-field format was not recognized by the
Claude Code plugin system, causing hooks to silently not register.
@matanryngler matanryngler merged commit 3eb2045 into main Feb 12, 2026
8 checks passed
@matanryngler matanryngler deleted the fix/hooks-json-format branch February 12, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant