Skip to content

fix(sync): link skills through the project's node_modules - #68

Merged
dreyfus92 merged 2 commits into
mainfrom
fix/sync-stable-links
Sep 24, 2026
Merged

dreyfus92 merged 2 commits into
mainfrom
fix/sync-stable-links

Conversation

@natemoo-re

Copy link
Copy Markdown
Member

bsh sync created skill symlinks into pnpm's content-addressed store:

skills/build -> ../node_modules/.pnpm/@bomb.sh+tools@0.6.1_@emnapi+core@1.10.0_…_52252ed…/node_modules/@bomb.sh/tools/skills/build

import.meta.url resolves to the real path, and the .pnpm/<hash>/ segment changes whenever the version or peer set changes. Links dangle after a reinstall until bsh sync runs again.

  • resolveSkillsSource prefers <project>/node_modules/@bomb.sh/tools/skills/ when it exists and falls back to the import.meta.url path otherwise.
  • pruneStaleLinks now also matches links that target the real path, so links left by older syncs are still cleaned up.

Verified against clink:

build -> ../node_modules/@bomb.sh/tools/skills/build

Independent of #67.

@changeset-bot

changeset-bot Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2c1c476

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bomb.sh/tools Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@bomb.sh/tools@68

commit: 2c1c476

import.meta.url resolves to the real path, which under pnpm is a hashed
node_modules/.pnpm/<hash>/ directory. Links into it dangle once a
reinstall changes the hash.
@dreyfus92
dreyfus92 force-pushed the fix/sync-stable-links branch from 83f3f67 to 2c1c476 Compare September 24, 2026 02:17
@dreyfus92
dreyfus92 merged commit ee9dcfd into main Sep 24, 2026
6 checks passed
@dreyfus92
dreyfus92 deleted the fix/sync-stable-links branch September 24, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants