fix(cli): add timeouts and atomic writes to the refs CLI
Network calls now time out. Credentials and git tokens are written through a temporary file and a rename, so a crash cannot leave a half-written file.
2 files changed · +173 −49
apps/cli/refs.mjs+126 −49
apps/cli/test/update.test.ts+47 −0