Skip to content

0.4.2 — bump plugin.json + add version-drift build guard#3

Merged
wenqingyu merged 1 commit into
mainfrom
release/0.4.2
Apr 27, 2026
Merged

0.4.2 — bump plugin.json + add version-drift build guard#3
wenqingyu merged 1 commit into
mainfrom
release/0.4.2

Conversation

@wenqingyu
Copy link
Copy Markdown
Owner

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 reported 0.3.9. Functionally invisible upgrades.

Fixed

  • plugin/.claude-plugin/plugin.json bumped 0.3.9 → 0.4.2. This is the authoritative version Claude Code uses.
  • src/mcp/codex-client.ts MCP banner was also missed in the 0.4.1 commit (still 0.4.0).

Added

  • Build-time version-drift guard (scripts/build.mjs). The build now fails hard when any of the five duplicated version literals disagree with package.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 — clean
  • npm test — 108 tests passing
  • npm run build — drift guard validates all 5 literals match package.json (0.4.2)
  • After merge: confirm Claude Code's plugin reload labels the cache dir 0.4.2

🤖 Generated with Claude Code

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>
@wenqingyu wenqingyu merged commit 02a8ad0 into main Apr 27, 2026
2 checks passed
@wenqingyu wenqingyu deleted the release/0.4.2 branch April 27, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants