Skip to main content

Module version_check

Module version_check 

Source

Functions§

check_background
Spawn a background thread to fetch latest version from leanctx.com/version.txt and write the result to ~/.lean-ctx/latest-version.json. Non-blocking, fire-and-forget. Skips if cache is fresh (<24h).
get_update_banner
Returns a formatted yellow update banner if a newer version is available. Reads only the local cache file — zero network calls, zero delay.
version_info_json
Returns version info as JSON for the dashboard /api/version endpoint.