Repository navigation
Add a plugin marketplace manifest and put the plugin version in release lockstep - #720
Merged
Merged
Conversation
…t in release lockstep Adds .claude-plugin/marketplace.json at the repo root so `/plugin marketplace add Metabuilder-Labs/tokenjam` resolves and offers the tokenjam plugin via a relative-path source pointing at plugin/. Verified locally: `claude plugin validate . --strict` and `claude plugin validate ./plugin --strict` both pass, and a local marketplace add -> install -> details -> uninstall -> remove round trip resolves the plugin with its five commands and zero hooks/MCP servers, as intended. No collision with the repo's own CLAUDE.md — that only affected a plugin.json at repo root, which this repo no longer has. Also extends scripts/release.sh to bump plugin/.claude-plugin/plugin.json alongside pyproject.toml, sdk-ts/package.json, and npm-wrapper/package.json, and adds a matching version-lockstep job step in CI so a build fails if the plugin manifest's version drifts from pyproject.toml. Adds the marketplace-add line to the root README beside the existing plugin install instructions. Co-Authored-By: Claude <[email protected]>
Contributor
|
| Filename | Overview |
|---|---|
| .claude-plugin/marketplace.json | Defines a valid self-hosted marketplace entry whose relative source matches the existing plugin layout. |
| .github/workflows/ci.yml | Adds a CI assertion that the plugin manifest and Python package versions remain synchronized. |
| README.md | Documents registering the repository marketplace before installing the plugin. |
| scripts/release.sh | Adds the plugin manifest to the existing version-bump loop and staging instructions. |
Reviews (1): Last reviewed commit: "Make the repo its own plugin marketplace..." | Re-trigger Greptile
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.
What
Make the repo its own plugin marketplace. Adds
.claude-plugin/marketplace.jsonat the repo root, per the plugin marketplace docs, with a relative-path plugin entry pointing atplugin/. This makes/plugin marketplace add Metabuilder-Labs/tokenjamresolve and offer thetokenjamplugin.Put the plugin manifest in the release lockstep.
scripts/release.shnow bumpsplugin/.claude-plugin/plugin.jsonalongsidepyproject.toml,sdk-ts/package.json, andnpm-wrapper/package.json. CI'sversion-lockstepjob gets a second check comparing the plugin manifest's version againstpyproject.toml, so a drifted plugin version fails the build instead of shipping silently stale.README. Adds the
/plugin marketplace add Metabuilder-Labs/tokenjamline ahead of the existing/plugin install tokenjamline.Why the root
.claude-plugin/doesn't collide withCLAUDE.mdthis timeAn earlier commit moved
plugin.jsonout of the repo root intoplugin/.claude-plugin/plugin.jsonbecauseclaude plugin validate --stricttreated the repo root as the plugin's root and flagged the repo's ownCLAUDE.mdas unrecognized plugin content. A marketplace manifest is a different validation path (claude plugin validate <path>auto-detects manifest vs. marketplace) that doesn't scan the rest of the directory as plugin content, so adding.claude-plugin/marketplace.jsonat the root does not reproduce that collision — confirmed below.Verification
Marketplace + plugin manifests both validate clean:
Local marketplace round trip (add -> list -> install -> details -> uninstall -> remove), confirming CLAUDE.md is not flagged and the plugin resolves with its 5 commands and 0 hooks/MCP servers:
Confirmed no leftover state:
claude plugin marketplace listandclaude plugin listno longer showtokenjamafterward.scripts/release.shnow touches all four files (dry run for a throwaway version, then reverted, no version bump committed here):Then
git checkout -- pyproject.toml sdk-ts/package.json npm-wrapper/package.json plugin/.claude-plugin/plugin.jsonto revert the version churn (a real release is a separate, human-run step).New CI lockstep assertion actually fails on a mismatch (ran the exact step body against a deliberately skewed plugin manifest, then restored it):
Not run: the repo's pytest suite has no tests covering
scripts/release.sh, the marketplace manifest, or the CI workflow YAML (grep forrelease.sh/marketplace/plugin manifest acrosstests/came back empty), so there was nothing applicable to run there — the shell/CLI verification above is the coverage for this change.