fix(hooks): use object schema in hooks.json instead of empty array#77
Open
Halxan-dev wants to merge 1 commit intoanthropics:mainfrom
Open
fix(hooks): use object schema in hooks.json instead of empty array#77Halxan-dev wants to merge 1 commit intoanthropics:mainfrom
Halxan-dev wants to merge 1 commit intoanthropics:mainfrom
Conversation
Four plugins ship hooks.json as `[]` (array), causing Claude Code to
reject loading with "expected object, received array". The schema
requires an object — use the same `{"hooks": {}}` form already used
by investment-banking, which loads correctly.
Plugins affected: financial-analysis, equity-research, private-equity,
wealth-management.
Fixes anthropics#70
Closes anthropics#69, anthropics#58, anthropics#5
Re-opens regression from anthropics#41
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Tomahawk1986
approved these changes
May 4, 2026
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
[]with{"hooks": {}}inhooks.jsonfor the four plugins that currently fail to load on Claude Code (Hook load failed: expected object, received array).investment-banking/hooks/hooks.json, the only plugin in the marketplace that loads cleanly today.Reproduction (pre-fix)
claude plugin install <plugin>@financial-services-pluginsclaude plugin listreportsfailed to loadfor the four plugins, with:Verification (post-fix)
cat <plugin>/hooks/hooks.jsonreturns the multi-line{"hooks": {}}form, identical toinvestment-banking.enabledinclaude plugin list(only the four touched by this PR were broken).Linked issues
[]vs{"hooks": {}}) — fails to load #70 — most recent and complete reprofinancial-analysis, butmainstill contains[])Files changed
financial-analysis/hooks/hooks.jsonequity-research/hooks/hooks.jsonprivate-equity/hooks/hooks.jsonwealth-management/hooks/hooks.json🤖 Generated with Claude Code