v2.3.2
Summary
The update command now uses gh api (authenticated, 5000 req/hr) when available, falling back to unauthenticated HTTP (60 req/hr) if gh is not installed.
Why
Updating a fleet of 6+ machines would exhaust the unauthenticated GitHub API rate limit (60 req/hr) after a few updates. With gh authenticated, the limit is 5000/hr — enough for any fleet size.
How it works
latestReleaseInfo() now tries two paths:
gh api repos/javimosch/remotecmd-cli/releases/latest(ifghis in PATH)- Unauthenticated HTTP to
api.github.com(fallback)
This also fixes the passive nudge (maybeNudge) which uses the same function.
Test plan
- Unit tests pass
- CI passes (tests + coverage gate)
- Local:
update --checkworks while unauthenticated API is rate-limited (gh fallback) - rbm21: self-updated via gh-authenticated path
- dk1: updated via SSH (no gh installed, used HTTP fallback)
Generated with Devin