Repository navigation
feat(cli): BE_CLI_PLUGINS installs beplus CLI plugins at exact versions (BE-281) - #35
Merged
Merged
Conversation
…BE-281) A plugin the CLI does not bundle is installed after it: BE_PLUGINS takes <package>@<exact version> specs, checks every one before anything is installed (a range, a tag, a path or no version fails the run: CI does not float), runs `beplus plugin install` for each, and fails unless `beplus plugin list` then loads that namespace at that version. desktop-release.yml installs @beplus/cli-plugin-electron this way, instead of carrying Node scripts here. Co-Authored-By: Igor Lamos <igor@be.plus>
…alls a pinned plugin (BE-281) Co-Authored-By: Igor Lamos <igor@be.plus>
… (Igor, A-1490) Co-Authored-By: Igor Lamos <igor@be.plus>
Co-Authored-By: Igor Lamos <igor@be.plus>
igorlamos
marked this pull request as ready for review
November 23, 2026 20:04
igorlamos
approved these changes
Nov 23, 2026
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.
The
cliaction gets aBE_CLI_PLUGINSinput: it installs beplus CLI plugins that the CLI doesn't bundle, each pinned to an exact version. This is the step before #34, whosedesktop-release.ymlwill install@beplus/cli-plugin-electronthis way instead of carrying Node scripts here (BE-281, I-34; the plugin is beplus/desktop#26).What it does
<package>@<exact version>, and every spec is checked before anything is installed. A range, a tag, a path or a missing version fails the run, for the same reason the CLI is pinned: a run must not change without a commit.beplus plugin install. It refuses a plugin whose@beplus/cli-sdkpeer range this CLI isn't in, and a namespace that a bundled plugin or a core command already owns.beplus plugin list --jsonmust show that namespace loaded at that version. Otherwise the run fails, naming what is loaded instead.Tested
@^0.1.0,@latest, no version,./x.tgz,@0.1) are each refused, and nothing is installed;✓ @beplus/cli-plugin-electron 0.0.0 → beplus electron;test-cli.ymlgets apluginsjob:@beplus/cli-plugin-electron@0.1.0-next.1from npm.beplus.cloud and runsbeplus electron icons --dry-run.BE_NPM_TOKEN(prod's token) and the variableBE_NPM_TARGET=beplus.cloud. Without the secret, the leg fails and says why.The
test-cli.ymlcommits are Igor's to push, because the bot can't push.github/workflows:4d55251is pushed, and the rename toBE_CLI_PLUGINS(b5af43a) is local.