refactor(cli): use Questionary for onboarding selection (#6251)

* fix(cli): require compatible terminal prompt dependencies

Require prompt-toolkit 3.0.52 for Windows VT100 input flushing and Questionary 2.1.1 for compatibility with its prompt layout. Keep the existing major-version bounds and Python minimum.

* refactor(cli): use Questionary for onboarding selection

Delegate menu navigation, selection and scrolling to questionary.select. Retain the existing back/cancel contract, palette and position feedback through a thin adapter and exercise real prompt keyboard behavior instead of viewport arithmetic.
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-16 15:34:49 +08:00
1 parent 67248790c7
commit f101a24571
3 files changed
+104 -121

No files matched your search

+2 -2
View File
@@ -42,9 +42,9 @@ dependencies = [
"qrcode[pil]>=8.0",
"pillow>=11.0,<13.0",
"croniter>=6.0.0,<7.0.0",
"prompt-toolkit>=3.0.50,<4.0.0",
"prompt-toolkit>=3.0.52,<4.0.0",
"setproctitle>=1.3.7,<2.0.0; sys_platform != 'win32'",
"questionary>=2.0.0,<3.0.0",
"questionary>=2.1.1,<3.0.0",
"mcp>=1.26.0,<2.0.0",
"json-repair>=0.57.0,<1.0.0",
"chardet>=3.0.2,<6.0.0",