spawn/cli/src
A 42b4dfc42e
refactor: reduce complexity in command functions (#1085)
Extract large switch statement in getScriptFailureGuidance() into lookup tables
and helpers for better maintainability. Break down renderCompactList() into
separate helper functions for header, separator, and row rendering.

This reduces cognitive complexity and makes the functions easier to test and modify.

Agent: complexity-hunter

Co-authored-by: Spawn Refactor Service <refactor@spawn.service>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-14 04:02:53 -05:00
..
__tests__ test: add 178 tests for credential display, auth parsing, and internal helpers (#1063) 2026-02-14 01:49:41 -05:00
commands.ts refactor: reduce complexity in command functions (#1085) 2026-02-14 04:02:53 -05:00
history.ts fix: add defense-in-depth for SPAWN_HOME path validation and manifest JSON sanitization (#984) 2026-02-13 11:37:10 -08:00
index.ts refactor: extract helpers to reduce function complexity (#1055) 2026-02-14 00:41:39 -05:00
manifest.ts fix: add defense-in-depth for SPAWN_HOME path validation and manifest JSON sanitization (#984) 2026-02-13 11:37:10 -08:00
security.ts fix: prevent sensitive file exfiltration via --prompt-file flag (#1024) 2026-02-13 18:30:05 -05:00
unicode-detect.ts fix: Switch build target from node to bun to fix UTF-8 mojibake 2026-02-10 09:36:28 +00:00
update-check.ts fix: prevent command injection in update-check reExecWithArgs (#951) 2026-02-13 08:34:04 -08:00