The plugin v2.10 fails to load in Claude Code due to invalid hook event name and missing hooks array in hooks/hooks.json.
Claude Code v2.1.92 with the latest v2.10 version throws an error:
`Settings Error
/workspace/.claude/settings.json
└ hooks
├ PostToolUse
│ └ 0
│ └ hooks: Expected array, but received undefined
├ PreCommit: Invalid key in record
└ SessionStart
└ 0
└ hooks: Expected array, but received undefined
Hooks use a matcher + hooks array. The matcher is a string: a tool name ("Bash"), pipe-separated list
("Edit|Write"), or empty to match all. Example: {"PostToolUse": [{"matcher": "Edit|Write", "hooks": [{"type":
"command", "command": "echo Done"}]}]}
Learn more: https://code.claude.com/docs/en/hooks
Files with errors are skipped entirely, not just the invalid settings.
`
The plugin v2.10 fails to load in Claude Code due to invalid hook event name and missing hooks array in hooks/hooks.json.
Claude Code v2.1.92 with the latest v2.10 version throws an error:
`Settings Error
/workspace/.claude/settings.json
└ hooks
├ PostToolUse
│ └ 0
│ └ hooks: Expected array, but received undefined
├ PreCommit: Invalid key in record
└ SessionStart
└ 0
└ hooks: Expected array, but received undefined
Hooks use a matcher + hooks array. The matcher is a string: a tool name ("Bash"), pipe-separated list
("Edit|Write"), or empty to match all. Example: {"PostToolUse": [{"matcher": "Edit|Write", "hooks": [{"type":
"command", "command": "echo Done"}]}]}
Learn more: https://code.claude.com/docs/en/hooks
Files with errors are skipped entirely, not just the invalid settings.
`