Skip to content

feat(plugin): add plugins.lock.json for version tracking#362

Merged
jackwener merged 1 commit intomainfrom
feat/plugin-version-lock
Mar 24, 2026
Merged

feat(plugin): add plugins.lock.json for version tracking#362
jackwener merged 1 commit intomainfrom
feat/plugin-version-lock

Conversation

@ByteYue
Copy link
Copy Markdown
Collaborator

@ByteYue ByteYue commented Mar 24, 2026

Description

Introduce a plugins.lock.json file to track installed plugin versions (git commit hashes).

  • Adds plugins.lock.json read/write management via LockEntry
  • Records source, commit hash, and timestamps on install/update
  • Cleanly uninstalls lock entries alongside plugins
  • opencli plugin list now displays the installed commit hash and handles multiple sources more easily
  • Includes full unit test coverage for lock file behaviors and getCommitHash()

Resolves one of the primary robustness items for the plugin architecture.

@jackwener jackwener force-pushed the feat/plugin-version-lock branch from 6533262 to 02980e8 Compare March 24, 2026 14:21
Copy link
Copy Markdown
Owner

@jackwener jackwener left a comment

Choose a reason for hiding this comment

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

Deep review completed. I stripped the branch back to the actual plugin lock feature, removed the unrelated skill/example payload from the effective patch, kept the implementation focused on plugin version tracking, added targeted lock-file tests, and synced the plugin docs.

@jackwener jackwener merged commit e7e4367 into main Mar 24, 2026
@jackwener jackwener deleted the feat/plugin-version-lock branch March 24, 2026 14:21
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.

2 participants