feat(doctor): report optional UI extras
Your AI's guard dog to stop it from going rogue.
Brought to you by:
doberman
Originally created by: slegarraga
Closes [#440]
dash and tui extras.importlib.util.find_spec so diagnosis never imports either UI dependency..venv/bin/pytest tests/unit/test_cli_doctor.py — 20 passed..venv/bin/ruff check src/doberman/cli/doctor.py tests/unit/test_cli_doctor.py — passed..venv/bin/ruff format --check src/doberman/cli/doctor.py tests/unit/test_cli_doctor.py — passed.
Ticket changed by: fu351
Ticket changed by: fu351
Ticket changed by: fu351
Originally posted by: fu351
Merged, thanks @slegarraga! Checking
find_specinstead of importing keeps doctor cheap and side-effect free, and the shared_check_optional_extrahelper makes a third extra a one-line addition.