Repository navigation
v1.0.1 — update-check on launcher startup
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 oryrunsnpm install -g little-coder@latestand asks you to re-run;nskips for this session. - Non-TTY (CI, scripts, pipes,
--printpipelines): prints a one-line stderr notice with the install command, never prompts. - Auto-skipped for
--help,--version,--list-models,--export,--mode rpc,--mode json, whenCI=true, and via the new--no-update-checkflag /LITTLE_CODER_NO_UPDATE_CHECK=1env opt-out. - Cached at
${XDG_CACHE_HOME:-~/.cache}/little-coder/version-check.jsonwith 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.)