max update checks whether a newer version of the heymax npm package is available and, if so, installs it with npm install -g heymax@latest.
How it works
Query the npm registry
Runs
npm view heymax version with a 10-second timeout to fetch the latest published version.Compare versions
Compares the two semver strings. If the registry version is higher, an update is available.
Possible outcomes
Already up to date
Update available
Update failed
1. Check npm permissions and try the manual update below.
Network unavailable
1.
Manual update
Ifmax update fails, install directly:
Background update notifications
Whenmax start boots, it also performs a non-blocking update check. If a newer version is available, a notice is printed to the daemon’s terminal output — but the daemon keeps running and no update is installed automatically: