Skip to content

0.17.7

Choose a tag to compare

@cliftonc cliftonc released this 06 Oct 10:23
· 41 commits to main since this release
0.17.7
c45ccdc

What changed

pnpm plugin checks a plugin's minKit against .rocketflare.json kit.version in a copy, not the root package.json version the rename restarts at 0.1.0, so pnpm plugin add in a freshly renamed copy no longer refuses every plugin with exit 6.

  • scripts/lib/manifest.mjs: new hostKitVersion(read, packageJsonVersion) — the root package.json version when isKit, else kit.version, throwing (naming .rocketflare.json) when a copy has none; typed in manifest.d.mts.
  • scripts/plugin.mjs: loadHost() reads the kit version through hostKitVersion, so add, upgrade and check compare minKit with the kit version, and a copy with no kit.version stops with exit 1 naming the file.
  • apps/web/tests/config/plugin-skills.test.ts and manifest-lib.test.ts: a renamed-copy host (package.json 0.1.0, kit.version 0.17.6) installs a minKit 0.13.0 plugin; a copy below the floor is refused naming its kit version; the kit itself still reads package.json.

How to apply

  1. Take scripts/lib/manifest.mjs and scripts/lib/manifest.d.mts from the kit diff (the new hostKitVersion export).
  2. Take scripts/plugin.mjs from the kit diff (the hostKitVersion import and the kitVersion lines in loadHost()).
  3. Take apps/web/tests/config/manifest-lib.test.ts and apps/web/tests/config/plugin-skills.test.ts from the kit diff.
  4. Confirm .rocketflare.json has a kit.version equal to the kit release this app was made from or last upgraded to; pnpm kit:upgrade writes it, so only a hand-edited manifest lacks it.

Conflicts to expect

None.

Verify

  1. node -p "require('./.rocketflare.json').kit.version" prints a kit release, not the app's own version.
  2. pnpm plugin check exits 0.
  3. pnpm --filter @<slug>/web exec vitest run --project config tests/config/manifest-lib.test.ts tests/config/plugin-skills.test.ts passes.