0.4.2 — bump plugin.json + add version-drift build guard#3
Merged
Conversation
Release-process hotfix. plugin/.claude-plugin/plugin.json was never bumped past 0.3.9 in either 0.4.0 or 0.4.1 commits. Claude Code's plugin loader reads that file to decide the cache label, so every 0.4.x release was loading correctly on disk but reporting itself as 0.3.9 in diagnostics — functionally invisible. Also caught a missed MCP banner literal in src/mcp/codex-client.ts (still 0.4.0). Adds a build-time guard in scripts/build.mjs that fails hard when any of the five duplicated version literals disagree with package.json. Prevents recurrence. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Release-process hotfix. The previous two releases (0.4.0 and 0.4.1) shipped working code but forgot to bump
plugin/.claude-plugin/plugin.json— which is the file Claude Code's plugin loader actually reads to label the cache directory. Result: the new behavior (default sandbox switch, silent-failure detection, etc.) was loading and running correctly, but every diagnostic that read the plugin label reported0.3.9. Functionally invisible upgrades.Fixed
plugin/.claude-plugin/plugin.jsonbumped 0.3.9 → 0.4.2. This is the authoritative version Claude Code uses.src/mcp/codex-client.tsMCP banner was also missed in the 0.4.1 commit (still0.4.0).Added
scripts/build.mjs). The build now fails hard when any of the five duplicated version literals disagree withpackage.json's authoritative version. Catches this class of bug at release time instead of weeks later when a user notices their cache label hasn't moved.Test plan
npm run typecheck— cleannpm test— 108 tests passingnpm run build— drift guard validates all 5 literals matchpackage.json(0.4.2)0.4.2🤖 Generated with Claude Code