spawn/packages/cli/src/shared
A 9f57e2b506
fix: replace non-null assertions with proper null guards in fly.ts and oauth.ts (#1946)
Replace 6 non-null assertion operators (!) with safe alternatives:
- fly.ts: 4x getCmd()! -> null guard with clear error message
- fly.ts: 1x .pop()! -> fallback with || ""
- oauth.ts: 1x .get("code")! -> hoist value from outer if-check

Agent: code-health

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-26 05:49:48 -05:00
..
agent-setup.ts fix: use user-local npm prefix for openclaw install (#1941) 2026-02-26 00:57:09 -05:00
agents.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
cloud-init.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
oauth.ts fix: replace non-null assertions with proper null guards in fly.ts and oauth.ts (#1946) 2026-02-26 05:49:48 -05:00
orchestrate.ts perf: replace child_process.spawn with Bun.spawn for interactive sessions (#1888) 2026-02-24 15:17:53 -05:00
ssh-keys.ts fix: replace @clack/prompts multiselect with /dev/tty picker for SSH keys (#1907) 2026-02-24 23:54:54 -08:00
ssh.ts fix: eliminate keystroke loss during interactive agent sessions (#1939) 2026-02-26 00:08:38 -05:00
ui.ts fix: eliminate keystroke loss during interactive agent sessions (#1939) 2026-02-26 00:08:38 -05:00