Skip to content

fix(release): bump plugin manifests in set-version#1051

Merged
miguel-heygen merged 3 commits into
heygen-com:mainfrom
Konadu-Akwasi-Akuoko:fix/set-version-plugin-manifests
May 23, 2026
Merged

fix(release): bump plugin manifests in set-version#1051
miguel-heygen merged 3 commits into
heygen-com:mainfrom
Konadu-Akwasi-Akuoko:fix/set-version-plugin-manifests

Conversation

@Konadu-Akwasi-Akuoko
Copy link
Copy Markdown
Contributor

Summary

scripts/set-version.ts only bumped the npm package.json files, so the Claude Code / Codex / Cursor plugin manifests (.claude-plugin/, .codex-plugin/, .cursor-plugin/plugin.json) stayed frozen at 0.1.0 across every release. Claude Code gates /plugin update on plugin.json's version, so users never received accumulated changes.

Closes #1048.

Changes

  • scripts/set-version.ts: add a PLUGINS list and a parallel loop (mirroring the existing package.json loop) that rewrites each manifest's version, plus include the manifests in the clean-tree guard and the staged file set.
    • The plugin loop replaces only the version string rather than round-tripping through JSON.parse/JSON.stringify, to preserve each file's exact formatting: oxfmt keeps these manifests' short arrays (e.g. "capabilities": ["Read", "Write"]) inline, while JSON.stringify expands them — which would fail the pre-commit oxfmt --check on the release commit this script itself creates.
  • Manifests: catch .claude-plugin / .codex-plugin / .cursor-plugin up to the current release version 0.6.39, so /plugin update unfreezes on merge rather than waiting for the next release.

Verification

  • Re-running bun run set-version 0.6.39 --no-tag from a clean baseline produces a version-only diff (one line per manifest), 0.1.0 → 0.6.39.
  • oxfmt --check passes on all three manifests (also confirmed by the pre-commit hook on the catch-up commit).
  • All three manifests remain valid JSON; both commits passed lint, format, typecheck, and commitlint.

scripts/set-version.ts only bumped the npm package.json files, so the
Claude Code / Codex / Cursor plugin manifests stayed at 0.1.0 across every
release. Claude Code gates /plugin update on plugin.json's version, so users
never received accumulated changes (closes heygen-com#1048).

Add a PLUGINS list and a parallel loop that rewrites each manifest's version,
and include the manifests in the clean-tree guard and the staged file set.
The loop replaces only the version string (not a JSON round-trip) to preserve
each file's exact formatting, since oxfmt keeps their short arrays inline and
JSON.stringify would expand them and fail the pre-commit format check.
Catch the three plugin manifests up to the current release version so
/plugin update is unfrozen immediately, rather than waiting for the next
release to sync them via the fixed-versioning script.
@miguel-heygen miguel-heygen self-requested a review May 23, 2026 19:09
Copy link
Copy Markdown
Collaborator

@miguel-heygen miguel-heygen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manifests should catch up to 0.6.40 (just released), not 0.6.39. One-line fix per manifest.

@Konadu-Akwasi-Akuoko
Copy link
Copy Markdown
Contributor Author

Manifests should catch up to 0.6.40 (just released), not 0.6.39. One-line fix per manifest.

Ok, doing that

Comment thread scripts/set-version.ts
stdio: "inherit",
},
);
execSync(`git commit -m "chore: release v${version}"`, {
@Konadu-Akwasi-Akuoko
Copy link
Copy Markdown
Contributor Author

Done — bumped all three plugin manifests (.claude-plugin, .codex-plugin, .cursor-plugin) to 0.6.40 in de6aac6. One-line change per manifest, version field only.

@miguel-heygen miguel-heygen merged commit 66c40da into heygen-com:main May 23, 2026
30 checks passed
@Konadu-Akwasi-Akuoko Konadu-Akwasi-Akuoko deleted the fix/set-version-plugin-manifests branch May 23, 2026 21:25
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.

Release tooling never bumps the plugin manifests — Claude Code plugin frozen at 0.1.0

3 participants