Replace home-rolled upgrade/version-check tooling with upgradr - #97
Merged
Conversation
Delete src/update/{checker,cache,background}.ts and drive all self-update
logic through a single upgradr createUpdater() instance in
src/update/updater.ts. The check-update and upgrade commands and the
startup background notice now call the shared updater; the CLI adopts
upgradr's native UpgradeResult/UpdateInfo JSON shapes. binaryName, cliName,
and repo are derived from package.json. Bump version to 0.22.3.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Replaces mcpx's bespoke self-update code (
src/update/{checker,cache,background}.ts) with theupgradrpackage, driving version checks, the startup notice, and theupgradecommand through a singlecreateUpdater()instance insrc/update/updater.ts. Thecheck-updateandupgradecommands and the background notice now call the shared updater, and the CLI adopts upgradr's nativeUpdateInfo/UpgradeResultJSON shapes (unit tests and the e2e script updated accordingly).binaryName,cliName, andrepoare derived frompackage.json, and the cache stays at~/.mcpx/update.jsonso existing caches remain valid. Net -355 lines; version bumped to 0.22.3.