From f227eeb90cb79fa3a639980e30939528c0d29522 Mon Sep 17 00:00:00 2001 From: Dickson Tsai Date: Thu, 26 Mar 2026 22:02:14 -0700 Subject: Add version field to 27 local-sourced plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Local-path plugins (source is a string like "./plugins/foo" in marketplace.json) without a manifest version cache at ~/.claude/plugins/cache/{marketplace}/{plugin}/unknown/ forever. The cache check in claude-cli's copyPluginToVersionedCache sees pathExists(.../unknown/) → true → skips re-extraction, even after the marketplace content updates. Users are stuck with stale plugin files until they manually delete the cache. Adding "version": "1.0.0" fixes this because calculatePluginVersion reads the manifest from the freshly-synced marketplace tree (not the stale cache), and manifest.version is priority #1 in version resolution. New version → new cache path → cache miss → re-extract. This is preferable to the GCS-SHA fallback approach (anthropics/claude-cli-internal#24773) because: - Per-plugin granularity: only bumped plugins re-extract, not all 27 on every marketplace push - No disk accumulation from unrelated marketplace churn - Fixes both the runtime loader path AND the migration path (manifest.version is priority #1 in both) - No claude-cli code change needed Remote-sourced plugins (github/git/url) already get a git SHA as their version and are unaffected. --- external_plugins/github/.claude-plugin/plugin.json | 1 + 1 file changed, 1 insertion(+) (limited to 'external_plugins/github') diff --git a/external_plugins/github/.claude-plugin/plugin.json b/external_plugins/github/.claude-plugin/plugin.json index 4024e231..c3d9e97d 100644 --- a/external_plugins/github/.claude-plugin/plugin.json +++ b/external_plugins/github/.claude-plugin/plugin.json @@ -1,5 +1,6 @@ { "name": "github", + "version": "1.0.0", "description": "Official GitHub MCP server for repository management. Create issues, manage pull requests, review code, search repositories, and interact with GitHub's full API directly from Claude Code.", "author": { "name": "GitHub" -- cgit