From 2a9a78dd1caec0811ed2640b28375890ee96e4cc Mon Sep 17 00:00:00 2001 From: historia Date: Thu, 27 Aug 2026 17:46:02 -0400 Subject: feat: help menu in tui --- app/backends/__init__.py | 4 +- app/backends/audiocpp/build.py | 6 +- app/backends/audiocpp/wizard.py | 8 +-- app/backends/faster.py | 2 +- app/backends/qwen.py | 6 +- app/converter/clients/languages.py | 2 +- app/converter/config.py | 4 +- app/docs/backend-audiocpp.md | 8 +-- app/docs/backend-faster.md | 2 +- app/docs/backend-qwen.md | 4 +- app/tests/test_backends.py | 4 +- app/tests/test_hub.py | 109 +++++++++++++++++++++++++------------ app/tests/test_tui.py | 106 ++++++++++++++++++++++++++++++++---- app/ui/hub.py | 95 ++++++++++++++++++++++++-------- app/ui/tui.py | 51 +++++++++++++++-- 15 files changed, 311 insertions(+), 100 deletions(-) (limited to 'app') diff --git a/app/backends/__init__.py b/app/backends/__init__.py index 8c9f045..89d95e2 100644 --- a/app/backends/__init__.py +++ b/app/backends/__init__.py @@ -6,7 +6,7 @@ command it prints once configured. This package aggregates them into a single registry so ``audiobook.py``'s TUI hub and future tools can iterate backends without hardcoding their names: ``backends.detect_all()`` reports which are set up (and whether their server is currently running), and the registry -drives the hub's "Configure backends" menu. +drives the hub's "Configure Backends" menu. The registry is built lazily on the first call to ``get``/``detect_all``/ ``detect`` (not at package import time), because the backend modules pull @@ -163,7 +163,7 @@ class BackendInfo: UPDATE refreshes the installed backend to the latest upstream version (pip -U / git fetch+reset, rebuilding where a binary must match the sources); same calling convention as UNINSTALL. Without UPDATE a - backend is skipped by the hub's "Update backends" action. + backend is skipped by the hub's "Update Backends" action. CONFIGURE_SCREEN, when given, is what the hub's "Configure