Skip to content

Replace home-rolled upgrade/version-check tooling with upgradr - #97

Merged
evantahler merged 1 commit into
mainfrom
replace-upgrade-with-upgradr
Jul 4, 2026
Merged

Replace home-rolled upgrade/version-check tooling with upgradr#97
evantahler merged 1 commit into
mainfrom
replace-upgrade-with-upgradr

Conversation

@evantahler

Copy link
Copy Markdown
Collaborator

Replaces mcpx's bespoke self-update code (src/update/{checker,cache,background}.ts) with the upgradr package, driving version checks, the startup notice, and the upgrade command through a single createUpdater() instance in src/update/updater.ts. The check-update and upgrade commands and the background notice now call the shared updater, and the CLI adopts upgradr's native UpdateInfo/UpgradeResult JSON shapes (unit tests and the e2e script updated accordingly). binaryName, cliName, and repo are derived from package.json, and the cache stays at ~/.mcpx/update.json so existing caches remain valid. Net -355 lines; version bumped to 0.22.3.

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>
@evantahler
evantahler enabled auto-merge (squash) July 4, 2026 18:05
@evantahler
evantahler merged commit 55882a0 into main Jul 4, 2026
3 checks passed
@evantahler
evantahler deleted the replace-upgrade-with-upgradr branch July 4, 2026 18:06
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.

1 participant