Repository navigation
feat(#788): harden plugin-staleness check — scan marketplaces, semver compare, coverage - #789
Merged
admarble merged 1 commit intoJul 19, 2026
Conversation
… compare, coverage Closes the three non-blocking gaps flagged during #784's QA: - Locate the marketplace clone by scanning plugins/marketplaces/*/ for the clone that declares the sequant plugin, instead of hardcoding a "sequant" directory name Claude Code may not use. - Compare versions semver-aware (pure awk, no sort -V): warn only when the install is strictly behind the marketplace, so an ahead cache or a lexicographic mismatch (1.20.3 vs 1.9.0) no longer mis-warns. - Add regression guards: the staleness block invokes no network command (all three mirrors), and the generated marketplace README keeps the no-auto-update note from #787. #784 behavior preserved: warn-once/day via stamp, exit code untouched, repo-local dev copies silent, three hook mirrors byte-identical. Fixes #788
admarble
deleted the
feature/788-feat-hooks-harden-plugin-staleness-check-scan-
branch
July 19, 2026 01:57
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
Follow-up to #784 (merged in #787) closing the four gaps flagged during that PR's QA. Hooks changed across all three byte-identical mirrors.
plugins/marketplaces/*/.claude-plugin/marketplace.jsonand picks the clone whose JSON declares thesequantplugin, instead of assuming the directory is namedsequant. If Claude Code names it after the source slug, the check still finds it. No-op when no matching clone exists.sort -VGNU-ism). The warning fires only when the install is strictly behind the marketplace. An ahead cache stays silent, and a lexicographic trap like1.20.3vs1.9.0(20 > 9 → ahead) no longer mis-warns.curl/wget/gh/git/npm/…) across all three mirrors.prepare-marketplace.tstemplate keeps the no-auto-update note +claude plugin updatecommand from feat(#784): warn when the installed plugin cache is stale #787.All #784 behavior preserved: warn-once/day via stamp, exit code untouched, repo-local dev copies never warn, three hook mirrors byte-identical.
AC Verification
for _stale_mkt in …/marketplaces/*/…; tests for non-sequantdir + ignore-non-sequant clonesort -V)cmp; tests: ahead=silent, patch-behind=warn,1.20.3vs1.9.0=silent,2.8==2.8.0describe.each(HOOK_COPIES)network-command guardprepare-marketplace.tstemplate contains note + commandTest plan
vitest run __tests__/plugin-staleness-warning.integration.test.ts— 44/44 (21 original + 23 new)vitest run __tests__/pre-tool-hook.integration.test.ts— 183/183 (no regression)npm run build/npm run lint— cleansequantmarketplace dir warns; ahead/equal/trailing-zero/double-digit all silent; behind warns; repo-local silentCloses #788
🤖 Generated with Claude Code