fix(plugins): correct empty hooks.json schema in 3 vertical plugins#162
Closed
dongjia1982 wants to merge 1 commit into
Closed
fix(plugins): correct empty hooks.json schema in 3 vertical plugins#162dongjia1982 wants to merge 1 commit into
dongjia1982 wants to merge 1 commit into
Conversation
The hooks.json files in equity-research, private-equity, and wealth-management contained an empty array `[]`, which fails to load in current Claude Code versions that expect an object with a `hooks` key. This matches the format already used by investment-banking and financial-analysis.
4 tasks
Collaborator
|
Thanks for catching this and taking the time to send a fix! 🙏 This was reported by many contributors — the underlying bug is now resolved in #232, which repairs all four broken |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three vertical plugins ship a
hooks/hooks.jsoncontaining an empty JSON array ([]), which fails to load in current Claude Code versions. The expected schema is an object with ahookskey — matching whatinvestment-bankingandfinancial-analysisalready use.Affected files:
plugins/vertical-plugins/equity-research/hooks/hooks.jsonplugins/vertical-plugins/private-equity/hooks/hooks.jsonplugins/vertical-plugins/wealth-management/hooks/hooks.jsonEach is changed from
[]to:{ "hooks": {} }Repro
With one of the affected plugins enabled, Claude Code fails to load the plugin's commands (e.g.
/comps,/dcf) because the marketplace loader rejects the malformedhooks.json.Test plan
cat plugins/vertical-plugins/{equity-research,private-equity,wealth-management}/hooks/hooks.jsonreturns valid JSON matching theinvestment-bankingformat🤖 Generated with Claude Code