feat(plugin): add opencli-plugin.json manifest and monorepo plugin support#475
Merged
jackwener merged 2 commits intojackwener:mainfrom Mar 26, 2026
Merged
Conversation
…pport - New : types, read/validate, semver compatibility - Monorepo install: clone → symlink sub-plugins → postInstall per sub-plugin - Monorepo uninstall: symlink cleanup with ref counting - Monorepo update: git pull on repo root, refresh all sub-plugins - supports syntax - reads manifest metadata, groups monorepo plugins - install/list handlers updated for monorepo output - 60 unit tests (25 manifest + 35 plugin including 11 new monorepo tests) - Docs updated (EN + ZH) with monorepo section
47e42b5 to
d8c858f
Compare
Merged
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
Adds
opencli-plugin.jsonmanifest support and monorepo plugin capability, enabling a single repository to host multiple plugins.New Features
opencli-plugin.jsonmanifest — declare plugin name, version, description, and opencli compatibility rangepluginsfield~/.opencli/monorepos/, sub-plugins appear as symlinks in~/.opencli/plugins/>=,^,~, compound ranges)github:user/repo/subpluginsyntax — install specific sub-plugins from a monorepoChanges
src/plugin-manifest.tssrc/plugin-manifest.test.tssrc/plugin.tssrc/plugin.test.tssrc/cli.tsdocs/guide/plugins.mddocs/zh/guide/plugins.mdBackward Compatibility
opencli-plugin.jsoncontinue to work exactly as beforeLockEntryadds an optionalmonorepofield (forward-compatible)discovery.tsis unchanged — symlinks are transparent to flat scanTest Results