Skip to content

Add CLI stale-version warnings#37

Open
krandder wants to merge 1 commit into
mainfrom
feat/cli-update-check
Open

Add CLI stale-version warnings#37
krandder wants to merge 1 commit into
mainfrom
feat/cli-update-check

Conversation

@krandder

Copy link
Copy Markdown
Contributor

Summary

  • publish a public CLI version manifest from the API at /v1/cli/version
  • add a cached CLI startup check that warns when the installed CLI is stale
  • make the installer output mention futarchy update

Why

Users can already upgrade with futarchy update, but today the CLI does not tell them when they are behind. That means people only discover they are stale after hitting compatibility bugs.

Behavior

  • the API now reports the latest CLI version and update command
  • the CLI checks that endpoint at most once per day and caches the result locally
  • interactive CLI runs print a warning to stderr when the installed version is older than the latest published version
  • --json runs stay quiet to avoid polluting machine-readable output

Validation

  • python3 -m py_compile core/api.py core/api_models.py core/test_api.py core/test_cli_update_check.py cli/futarchy_cli/api.py cli/futarchy_cli/main.py cli/futarchy_cli/update_check.py
  • pytest -q core/test_api.py core/test_cli_update_check.py
  • bash -n static/install.sh
  • python3 -m futarchy_cli.main update --help

@netlify

netlify Bot commented Mar 17, 2026

Copy link
Copy Markdown

Deploy Preview for futarchy-ai ready!

Name Link
🔨 Latest commit 2343ea9
🔍 Latest deploy log https://app.netlify.com/projects/futarchy-ai/deploys/69b9cf613b53bb00079e69c8
😎 Deploy Preview https://deploy-preview-37--futarchy-ai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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