feat: resolve shopq from local pi bin — no global install needed#29
Merged
feat: resolve shopq from local pi bin — no global install needed#29
Conversation
- Add extensions/shopq-path.ts that uses a bash spawn hook to prepend .pi/npm/node_modules/.bin to PATH, so shopq resolves without a global install - Register extensions dir in pi manifest and files array - Remove global install instruction from SKILL.md - Add @mariozechner/pi-coding-agent as peer dependency - Bump version to 0.4.0
Prevents npm warning when installing shopq globally as a standalone CLI without pi present.
…ensions from pi manifest - SKILL.md now instructs the agent to suggest global install if shopq is not on PATH (supports non-pi CLIs) - Remove extensions from pi manifest since pi auto-discovers from the extensions/ convention directory
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
Adds a pi extension that uses a bash spawn hook to prepend
.pi/npm/node_modules/.binto PATH. This meansshopqresolves automatically when installed as a pi package — nobun install -g shopqrequired.Changes
extensions/shopq-path.ts— bash spawn hook that adds the local bin dir to PATHpackage.json— registersextensions/in the pi manifest, adds it tofiles, adds@mariozechner/pi-coding-agentas a peer dep, bumps to 0.4.0skills/shopq/SKILL.md— removes the global install instructionHow it works
When a user runs
pi install npm:shopq, pi installs the package to.pi/npm/node_modules/shopq/. The binary lands at.pi/npm/node_modules/.bin/shopq. The extension overrides the bash tool to prepend that directory to PATH before every command, so the agent can just runshopq products listdirectly.Each project gets its own isolated
.pi/npm/tree, so different projects can pin different versions without conflict.