spawn/cli/src
A d574d5541e
test: Add CLI entry point edge case tests (46 tests) (#326)
Covers untested paths in index.ts and commands.ts:
- Error output formatting for injection attacks (semicolons, $, backticks)
- Flag ordering edge cases (--prompt before/between/after positional args)
- Unknown flags with subcommands (--json, --format, --dry-run)
- --prompt interaction with subcommands (list, agents, clouds)
- Version flag variants (-v, -V, --version, version)
- Non-TTY behavior (help output when stdin is not TTY)
- Command aliases (ls -> list)
- --prompt-file error handling with real filesystem
- Agent/cloud display name resolution in cmdRun
- Subcommand output format verification
- Fuzzy matching edge cases in showInfoOrError
- SPAWN_NO_UNICODE and SPAWN_NO_UPDATE_CHECK env vars

Agent: test-engineer

Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-02-10 19:04:23 -08:00
..
__tests__ test: Add CLI entry point edge case tests (46 tests) (#326) 2026-02-10 19:04:23 -08:00
commands-logic.ts test: Add command logic tests and refactor for testability (#56) 2026-02-08 12:02:43 -08:00
commands.ts fix: Improve error messages and spinner feedback in CLI (#324) 2026-02-10 19:00:56 -08:00
index.ts fix: Resolve display names and case-insensitive input in CLI (#306) 2026-02-10 17:37:51 -08:00
manifest.ts refactor: Automated improvements from cycle 1 2026-02-08 06:02:07 +00:00
security.ts fix: Remove curl|bash script validation that blocks spawn scripts 2026-02-10 09:40:16 +00: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: UX improvements for spawn update, --prompt validation, and update banner (#166) 2026-02-10 01:35:46 -08:00