Skip to content

fix: use object format in hooks.json for 4 plugins#59

Open
nanookclaw wants to merge 1 commit intoanthropics:mainfrom
nanookclaw:fix/hooks-json-format
Open

fix: use object format in hooks.json for 4 plugins#59
nanookclaw wants to merge 1 commit intoanthropics:mainfrom
nanookclaw:fix/hooks-json-format

Conversation

@nanookclaw
Copy link
Copy Markdown

Fixes #58.

Problem

Four plugins fail to load with Hook load failed error because their hooks/hooks.json contains [] (empty array), but Claude Code expects {"hooks": {}}.

Fix

Changed hooks/hooks.json from [] to {"hooks": {}} in:

  • financial-analysis
  • equity-research
  • private-equity
  • wealth-management

This matches the working format already used by investment-banking/hooks/hooks.json.

Testing

Verified all 5 plugins now have consistent hooks.json format.

Fixes anthropics#58. The financial-analysis, equity-research, private-equity, and
wealth-management plugins use an empty array [] in hooks/hooks.json,
but Claude Code expects an object format {"hooks": {}}. This causes
"Hook load failed" errors when loading these plugins.

Changes the 4 affected hooks.json files from [] to {"hooks": {}},
matching the working format used by investment-banking.
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.

Bug: hooks.json uses empty array [] instead of object, causing plugin load failure

1 participant