Skip to content

fix(lockfile): stamp the current capa version when pins change - #313

Merged
Minitour merged 1 commit into
developfrom
fix/lockfile-generator-310
Oct 15, 2026
Merged

Minitour merged 1 commit into
developfrom
fix/lockfile-generator-310

Conversation

@Minitour

Copy link
Copy Markdown
Member

Summary

Adding a skill after upgrading capa updated capabilities.lock but left generator at the old version (e.g. capa@2.2.0 written by 2.3.0). Closes #310.

What changed

  • LockfileBuilder.build() restamps generator with the current version together with generatedAt whenever the pins change.
  • A no-op install still leaves the lockfile untouched, so upgrading capa alone doesn't create a lockfile diff in every project.
  • Every lockfile write (CLI install, clean, server sync) goes through the builder, so the CLI and the web UI are both covered.

Test plan

  • New test: an unchanged rebuild keeps capa@2.2.0; adding a skill stamps the current version.
  • bun test src/shared/__tests__/lockfile.test.ts
  • bunx tsc --noEmit

Checklist

  • Tests added or updated
  • bunx tsc --noEmit passes
  • Docs updated (if user-facing): not needed

🤖 Generated with Claude Code

The builder kept the generator from the existing lockfile, so adding a
skill after upgrading capa left an old version in capabilities.lock.
Restamp generator together with generatedAt when the pins change; a
no-op install still leaves the file untouched.

Closes #310
@Minitour
Minitour merged commit 7203297 into develop Oct 15, 2026
8 checks passed
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.

1 participant