PRD 0051: Launch selector #186

Merged
didericis merged 2 commits from prd-0051-launch-selector into main 2026-06-03 22:04:16 -04:00
Collaborator

Closes #185.

PRD 0051

Summary

Adds a curses-based filter-select TUI that fires when ./cli.py start is invoked without an agent name or without an explicit backend. The operator sees an interactive picker in each case; explicit arguments bypass the picker entirely.

Closes #185. [PRD 0051](https://gitea.dideric.is/didericis/bot-bottle/src/branch/prd-0051-launch-selector/docs/prds/0051-launch-selector.md) ## Summary Adds a curses-based filter-select TUI that fires when `./cli.py start` is invoked without an agent name or without an explicit backend. The operator sees an interactive picker in each case; explicit arguments bypass the picker entirely.
didericis-claude added 1 commit 2026-06-03 21:52:49 -04:00
docs(prd): draft PRD 0051 — launch selector TUI
test / unit (pull_request) Successful in 34s
test / integration (pull_request) Successful in 40s
832808ff9a
didericis added 1 commit 2026-06-03 21:55:01 -04:00
feat(cli): add launch selector TUI for start command (PRD 0051)
test / unit (pull_request) Successful in 36s
test / integration (pull_request) Successful in 41s
test / unit (push) Successful in 35s
test / integration (push) Successful in 42s
605a70408e
- Add bot_bottle/cli/tui.py: curses filter-select picker that opens
  /dev/tty directly so it works with redirected stdout/stdin
- Make `name` positional optional (nargs="?") in cmd_start; show agent
  picker when absent
- Show backend picker when no --backend flag and BOT_BOTTLE_BACKEND is
  unset; skip when either is explicit or the env var is present
- Add tests/unit/test_cli_tui.py covering _filter_items logic and
  short-circuit paths (empty list, unavailable tty)
- Add tests/unit/test_cli_start_selector.py covering all four dispatch
  combinations (both explicit, agent-absent, backend-absent, both-absent)
  and cancel semantics
- Activate PRD 0051
didericis approved these changes 2026-06-03 22:04:06 -04:00
didericis merged commit 605a70408e into main 2026-06-03 22:04:16 -04:00
didericis deleted branch prd-0051-launch-selector 2026-06-03 22:04:16 -04:00
Sign in to join this conversation.