nexus/scripts
Dotta f4a5b00116 fix: bundle skills directory into npm packages for runtime discovery
The claude-local, codex-local adapters and the server all resolve a
skills/ directory using __dirname-relative paths that only work inside
the monorepo.  When installed from npm the paths point outside the
package and cause ENOENT on readdir/readFile.

- Update both adapter execute.ts files to try a published-path
  candidate (../../skills from dist/) before falling back to the
  monorepo dev path (../../../../../skills from src/).
- Update server readSkillMarkdown() to try the published path first.
- Add "skills" to the files array in server, claude-local, and
  codex-local package.json so npm includes them.
- Update release.sh to copy the repo-root skills/ into each package
  before publish, and clean up after.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 16:06:12 -06:00
..
backup-db.sh fix: correct pnpm filter name in db:backup script 2026-03-03 13:01:00 -06:00
build-npm.sh fix: copy repo README to CLI for npm publishing 2026-03-03 15:05:41 -06:00
check-forbidden-tokens.mjs feat: add npm build process, version bump, and forbidden token enforcement 2026-03-03 09:25:10 -06:00
clean-onboard-git.sh scripts 2026-03-03 14:00:10 -06:00
clean-onboard-npm.sh scripts 2026-03-03 14:00:10 -06:00
dev-runner.mjs refactor: rename packages to @paperclipai and CLI binary to paperclipai 2026-03-03 08:45:26 -06:00
generate-npm-package-json.mjs feat: integrate Changesets for multi-package npm publishing 2026-03-03 14:46:16 -06:00
migrate-inline-env-secrets.ts refactor: rename packages to @paperclipai and CLI binary to paperclipai 2026-03-03 08:45:26 -06:00
release.sh fix: bundle skills directory into npm packages for runtime discovery 2026-03-03 16:06:12 -06:00