Repository navigation
feat(ui): share npm Pi packages from the Plugins share dialog - #947
Merged
Merged
Conversation
Share listed only the plugins added from an HTTPS Git source, so a Pi setup made of npm packages could not be passed on from the dashboard. Pi downloads an npm package itself, and `plugin add npm:<package>` needs a Pi target. The dialog now lists the npm Pi packages after the plugins, each under its own heading, and copies `skillshare plugin add npm:<package> --target pi -g --no-tui` for them. The built-in target is named because the sharer's own may be an account only they have. With the ask option ticked, the command leaves the target to the prompt. Packages Pi has from Git or a local path are not listed. Plugins stay first in the copied line, so a machine without Pi still adds every plugin before the first Pi package stops the list. Release-As: 0.30.11
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Linked Issue
None. Requested by the maintainer.
What changed
Share on the Plugins page listed only plugins added from an HTTPS Git source. It now also lists the Pi packages that Pi installed from npm.
skillshare plugin add npm:<package> --target pi -g --no-tui. Pi downloads the package, so the add needs a target; the built-inpiis named because the sharer's own target may be an account only they have.--nameis added when the local name is not the one the package would get by itself.--target piand--no-tui, so the add asks which Pi targets to use.npm:...) and one added through Skillshare (source: npm:...) are listed. Packages Pi has from Git or a local path are not.plugins.shareHelpandplugins.shareAskare updated in all 11 locales;sharing-plugins.mdandui.mddescribe the Pi packages.Checks
make checkin a task container: passed.pnpm run lint(0 errors),pnpm run build.python3 scripts/ai-context.py check: ok.piCLI: the copied line for one plugin and three npm packages (one scoped) ran and installed all four.Not run: website build (two English Markdown paragraphs changed, no links added).
Not covered
website/i18nhave no plugin Share section yet, so there was nothing to update there.Checklist
make check) — for code changesRelease-As: 0.30.11