Skip to content

Commit 19677c5

Browse files
iohubclaude
andcommitted
Replace println-based setup wizard with dialoguer TUI prompts
Add dialoguer, indicatif, and console dependencies to replace the hand-drawn box prompts with proper interactive TUI components: - Use dialoguer::Confirm for yes/no prompts (embedding, reranker) - Use dialoguer::Input for text inputs with default values - Use dialoguer::Select for reranker model selection - Use indicatif spinner for directory creation and binary install - Use console::style for colored status messages Simplify the wizard flow by removing provider selection and dimensions input, using sensible defaults (SiliconFlow + Qwen3-Embedding-4B). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 14405ba commit 19677c5

4 files changed

Lines changed: 367 additions & 173 deletions

File tree

rust-core/Cargo.lock

Lines changed: 83 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-core/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ openssl-sys = { version = "0.9", features = ["vendored"] }
6161
# 文件系统监控 (MCP server 自动索引)
6262
notify = "7"
6363

64+
# TUI interactive prompts
65+
dialoguer = "0.11"
66+
indicatif = "0.17"
67+
console = "0.15"
68+
6469
# Unix daemon support (fork, setsid)
6570
[target.'cfg(unix)'.dependencies]
6671
libc = "0.2"

0 commit comments

Comments
 (0)