fix: pin SDK version and auto-build dist on install - #52
Open
lsimpsonsfdc wants to merge 1 commit into
Open
Conversation
Installing from npm or a local path failed because "latest" for @paperclipai/plugin-sdk is unpinned (breaks reproducible installs) and there was no prepare script, so dist/ was never built for consumers installing from a git ref or local path.
4 tasks
Owner
|
This one needs a rebase: Dependabot #48 just bumped the lockfiles to 2026.722.0 on main, so bun.lock and package-lock.json conflict now. The parts that still matter after that merge are the package.json pin itself (main still says "latest") and the prepare script for git/local installs. Both are worth keeping. If you rebase down to those, happy to re-review. |
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
Installing this plugin from a git ref or local path (
isLocalPath: true) currently fails or produces a broken install, for two related reasons:@paperclipai/plugin-sdkis pinned tolatestinpackage.json/lockfiles. This makes installs non-reproducible — two installs on different days can silently resolve different SDK versions, and a breaking SDK release can brick existing installs with no way to pin back. Pinned to the current release,2026.722.0.preparescript, sodist/is never built when installing from a git ref or local path (onlynpm publishtriggersprepublishOnly). Consumers installing via{ "packageName": "/path/to/paperclip-plugin-agent-usage", "isLocalPath: true }"(documented in this repo's own README) get a plugin with nodist/manifest.js/dist/worker.js, which fails to load in Paperclip.Both were found while debugging repeated install failures against a self-hosted Paperclip instance.
How to test
Checklist
npm run typecheckpassesnpm run buildproducesdist/manifest.js+dist/worker.js