Skip to content

Add version update checker for worker CLI #501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

lgingerich
Copy link
Contributor

Context

This PR addresses #413

Implementation

  • Add automatic version checking that runs once per day on first CLI usage (checks every 24 hours)
  • Check GitHub API for latest releases and compare with current version
  • Display user-friendly update notifications with installation command
  • Cache check results to prevent duplicate notifications and API calls
  • Store cache in user home directory (~/.prime_worker_version_check)

Example

Below is the message shown to users when a new update is available:

╔════════════════════════════════════════════════════════════════════════════════╗
║                              📦 UPDATE AVAILABLE                               ║
╚════════════════════════════════════════════════════════════════════════════════╝
⚠ A newer version of Prime Worker is available!
Current Version: 0.2.10
Latest Version: 0.2.11
Update Command: curl -sSL https://raw.githubusercontent.com/PrimeIntellect-ai/protocol/main/crates/worker/scripts/install.sh | bash
Release Notes: https://github.com/PrimeIntellect-ai/protocol/releases/tag/v0.2.11

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