fix: remove redundant hooks declaration from plugin.json - #5
Merged
Merged
Conversation
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
.claude-plugin/plugin.jsondeclares"hooks": "./hooks/hooks.json", whichthe plugin runtime already loads by convention (the standard
hooks/hooks.jsonpath). Declaring it explicitly causes plugin installationto fail with:
Confirmed via a clean, isolated install from this repo's current
main(
45bbf22816d2f1e98e44d2c0a0e34f9799ed7539): the plugin installs but fails toload.
Background
This exact fix was already made and merged into a local working copy of this
repository during an earlier hardening pass, but never reached this
repository — so the fix effectively regressed the moment anyone did a fresh
install rather than reusing that already-patched local checkout. This PR
publishes that fix for real.
Change
One line removed, nothing else:
"author": { "name": "Nextbridge" }, - "hooks": "./hooks/hooks.json", "license": "MIT",Verification
.claude-plugin/plugin.jsonstill parses as valid JSON.git diff --checkclean (no whitespace errors).git diff --statconfirms exactly one file, one deleted line — no versionbump, no lockfile change, no other file touched (version bumping is left to
release-please, per this repo's existing convention).