fix(plugins): hooks.json schema — replace bare [] with {"hooks": {}}#88
Open
carlos-ecodigital wants to merge 1 commit intoanthropics:mainfrom
Open
fix(plugins): hooks.json schema — replace bare [] with {"hooks": {}}#88carlos-ecodigital wants to merge 1 commit intoanthropics:mainfrom
carlos-ecodigital wants to merge 1 commit intoanthropics:mainfrom
Conversation
Four plugins ship hooks/hooks.json containing a bare empty array `[]`,
which Claude Code's plugin loader rejects with:
Hook load failed: [{"expected":"object","code":"invalid_type","path":[],
"message":"Invalid input: expected object, received array"}]
This causes the affected plugins to install but fail to load. Replacing
with `{"hooks": {}}` matches the schema already shipping in
investment-banking@0.2.0 and unblocks all four.
Affected:
- plugins/vertical-plugins/financial-analysis/hooks/hooks.json
- plugins/vertical-plugins/private-equity/hooks/hooks.json
- plugins/vertical-plugins/equity-research/hooks/hooks.json
- plugins/vertical-plugins/wealth-management/hooks/hooks.json
Closes anthropics#86
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.
Fixes #86.
Four plugins ship
hooks/hooks.jsoncontaining a bare empty array[]. Claude Code's plugin loader rejects this with a schema validation error, so the plugins install but fail to load:Replacing with
{"hooks": {}}matches the schema already shipping ininvestment-banking@0.2.0and unblocks all four.Files changed
plugins/vertical-plugins/financial-analysis/hooks/hooks.jsonplugins/vertical-plugins/private-equity/hooks/hooks.jsonplugins/vertical-plugins/equity-research/hooks/hooks.jsonplugins/vertical-plugins/wealth-management/hooks/hooks.jsonDiff per file is one character:
[]→{"hooks": {}}.Verification
Alternative considered
Deleting the empty
hooks/directories (suggested by @MkhIr in the issue thread) would also work and is arguably cleaner. Going with{"hooks": {}}here for consistency withinvestment-banking@0.2.0— happy to switch to the directory-removal approach if maintainers prefer.