Enables interactive book selection via --select #49

Merged
AlexKucera merged 7 commits from feature/chooseBooks into develop 2026-06-06 18:09:51 +02:00
7 Commits
Author SHA1 Message Date
AlexKucera b9d90b7618 fix(sync_run): show limit-bypass notice regardless of verbose
The --limit-superseded message was only printed when verbose=True,
so users running --select --limit 5 without -v got no indication
their flag was silently ignored. Make the notice unconditional.
2026-06-06 17:33:31 +02:00
AlexKucera 4e25fb27df fix(sync_run): check stdin not stdout for TTY guard
The --select TTY guard used sys.stdout.isatty(), but interactive
prompts read from stdin. This caused two failure modes:

- Redirecting stdout (e.g. | tee log.txt) blocked --select even
  though the keyboard was available
- With stdin piped in CI, stdout could still be a TTY, allowing
  the prompt to proceed and block forever on absent input
2026-06-06 17:30:48 +02:00
AlexKucera 77712951d0 docs(orchestrator): fix raw_books type annotation and changelog prose
The raw_books parameter accepts list[dict | Book] since the
selector wiring (issue #48), but the annotation still said
list[dict]. Also restore the missing opening sentence of the
selector changelog entry that was truncated.
2026-06-06 17:28:44 +02:00
AlexKucera fa1543e3d7 feat(sync_run): wire --select into download pipeline
Replace select_mode stub with real selection pipeline:
- TTY guard: non-interactive terminals get fatal_error exit
- Convert filtered dicts to Books via from_library_row()
- Call select_books(), pass selected Books to orchestrator
- Orchestrator accepts pre-converted Book objects (isinstance check)
- --limit bypassed when --select is active, with verbose note
- Remove "[not implemented]" from --select help text

Closes #48
2026-06-06 12:13:56 +02:00
AlexKucera 0d555e4628 Merge remote-tracking branch 'origin/feature/chooseBooks' into feature/chooseBooks 2026-06-06 11:55:16 +02:00
AlexKucera 37f10f9b49 feat(selector): add interactive book selection module
New selector.py with select_books() and _format_row().
Questionary checkbox prompt, all unchecked by default,
confirmation summary + y/N, original order preservation,
Ctrl+C propagation via unsafe_ask(). 9 tests.

Closes #47
2026-06-06 11:55:08 +02:00
AlexKucera 922e7fe6bb feat(selector): add interactive book selection module
New selector.py with select_books() and _format_row().
Questionary checkbox prompt, all unchecked by default,
confirmation summary + y/N, original order preservation,
Ctrl+C propagation via unsafe_ask(). 9 tests.

Closes #47
2026-06-06 11:53:03 +02:00