Complete while typing with prompt_toolkit

Replace readline with a prompt_toolkit session: the completion menu opens
as you type, history suggestions show in gray (accept with Right), and
history lives in .cache/history. Enter on a highlighted candidate accepts
it instead of submitting the line. Ctrl+C now exits cleanly.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
guofangandClaude Sonnet 5.5 committed 2026-11-10 22:16:50 +08:00
1 parent b0a961056f
commit 822b55f26f
2 files changed
+50 -36

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
torch
transformers
huggingface_hub
prompt_toolkit