diff options
| author | Dickson Tsai <dickson@anthropic.com> | 2026-03-26 22:02:14 -0700 |
|---|---|---|
| committer | Dickson Tsai <dickson@anthropic.com> | 2026-03-26 22:02:14 -0700 |
| commit | f227eeb90cb79fa3a639980e30939528c0d29522 (patch) | |
| tree | e38615a6d2a3e630a279087364e53c666c90fecf /plugins/playground | |
| parent | 72b975468071669f5503fd49c37ab657d9212fbd (diff) | |
Add version field to 27 local-sourced pluginsdickson/add-plugin-versions
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.
Diffstat (limited to 'plugins/playground')
| -rw-r--r-- | plugins/playground/.claude-plugin/plugin.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/playground/.claude-plugin/plugin.json b/plugins/playground/.claude-plugin/plugin.json index 12a6ef30..4a5e5c64 100644 --- a/plugins/playground/.claude-plugin/plugin.json +++ b/plugins/playground/.claude-plugin/plugin.json @@ -1,6 +1,7 @@ { "name": "playground", - "description": "Creates interactive HTML playgrounds — self-contained single-file explorers with visual controls, live preview, and prompt output with copy button", + "version": "1.0.0", + "description": "Creates interactive HTML playgrounds \u2014 self-contained single-file explorers with visual controls, live preview, and prompt output with copy button", "author": { "name": "Anthropic", "email": "support@anthropic.com" |
