Skip to content

v1.0.1 — update-check on launcher startup

Choose a tag to compare

@itayinbarr itayinbarr released this 28 Apr 15:00
· 97 commits to main since this release

Adds a best-effort npm registry check at launcher startup. When a newer little-coder is published, the launcher tells you and (in interactive mode) offers to install it on the spot — same pattern as Claude Code and other agent CLIs.

Behavior

  • Interactive TTY: prompts Update now? [Y/n] — Enter or y runs npm install -g little-coder@latest and asks you to re-run; n skips for this session.
  • Non-TTY (CI, scripts, pipes, --print pipelines): prints a one-line stderr notice with the install command, never prompts.
  • Auto-skipped for --help, --version, --list-models, --export, --mode rpc, --mode json, when CI=true, and via the new --no-update-check flag / LITTLE_CODER_NO_UPDATE_CHECK=1 env opt-out.
  • Cached at ${XDG_CACHE_HOME:-~/.cache}/little-coder/version-check.json with a 12 h TTL — at most one network call per day.
  • Best-effort: 2 s fetch timeout. All errors swallowed silently — the update check never blocks the agent if the registry is slow or unreachable.

21 new unit tests cover semver compare, cache TTL, skip-conditions, and malformed-cache handling. Verified end-to-end with a primed cache (TTY prompt path, non-TTY notice path) and a cold-cache live-fetch.

Update

npm install -g little-coder@1.0.1

(Or wait for the in-launcher prompt next time you run it.)