agent-context: bump Kiro manifest version automatically on sync - #7472
Merged
Merged
Conversation
The README required a manual pluginManifest.version bump for every Kiro-affecting change, but it stayed at 1.0.0 through about 15 skill updates. The sync now compares generated content with the target repo and bumps the patch version when it differs. A higher version in targets/kiro.json still wins for minor and major releases. Set 1.0.1 so existing installs pick up the content merged since 1.0.0. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Kiro power manifest has stayed at
1.0.0since #6916, even though about 15 skill updates changed its content. The README asked for a manual bump on every Kiro-affecting change, and nothing enforced it.Changes
scripts/lib.mjs: during sync, compare the generated skill, MCP config, and manifest (ignoringversion) against the target repo. If they differ, bump the target's patch version. A higher version intargets/kiro.jsonwins, for deliberate minor or major releases.targets/kiro.json: set1.0.1so existing installs pick up everything merged since1.0.0.README.md: describe the automatic bump. Also corrects "no package dependencies" (the project usesajv).Why sync time, not a CI check
A CI check would fail every docs-bot skill PR that forgot to bump, and open PRs would conflict on the version line. The sync workflow always rebuilds its branch from the target's
main, so it bumps exactly once per merged sync PR.Validation
npm test(6/6),npm run checkpass.sync-target.mjs kiroagainst a fresh clone ofkiro-power(current as of today's sync merge): no content diff, version unchanged, as expected.Unverified
I haven't confirmed how Kiro itself uses the manifest version for updates. This relies on the README's existing claim that it does.
🤖 Generated with Claude Code
Note
Medium Risk
Changes how Kiro release versions are computed during sync, which affects update detection for installs; logic is covered by tests but depends on Kiro honoring manifest version as documented.
Overview
Kiro’s
plugin.jsonversion no longer has to be bumped by hand on every skill or MCP change. Sync now decides the manifest version when writing into the target repo instead of copying the built artifact verbatim.On sync, the tool compares a snapshot of the generated skill tree, MCP config, and manifest fields (excluding
version) against what’s already in the destination. If nothing changed, the version stays put; if released content differs, it increments the patch from the destination’s current version. A higherpluginManifest.versionintargets/kiro.jsonstill wins for intentional minor or major releases. The written manifest is validated withajvbefore save.targets/kiro.jsonis set to 1.0.1 so the next sync signals updates for everything since 1.0.0. The README now documents this behavior and notes theajvdependency (replacing the incorrect “no package dependencies” line). A new test covers first sync, idempotent re-sync, patch bump after content drift, and stability after that.Reviewed by Cursor Bugbot for commit ca9f9a9. Bugbot is set up for automated code reviews on this repo. Configure here.