Skip to main content

rust_memex/tui/
mod.rs

1//! TUI Configuration Wizard for rust_memex
2//!
3//! Interactive terminal UI for configuring MCP server and host integrations.
4//!
5//! ## Wizard Flow
6//! 1. Welcome - Brief introduction
7//! 2. EmbedderSetup - Auto-detect Ollama/MLX + configure providers
8//! 3. MemexSettings - Database path, cache size, etc.
9//! 4. HostSelection - Detect and select MCP hosts
10//! 5. SnippetPreview - Preview config snippets
11//! 6. HealthCheck - Verify embedder connectivity + dimension
12//! 7. DataSetup - Optional directory indexing
13//! 8. Summary - Write config and finish
14//!
15//! This module is only available when the `cli` feature is enabled.
16
17mod app;
18mod detection;
19mod health;
20mod host_detection;
21mod indexer;
22mod monitor;
23mod ui;
24
25pub use crate::common::{HostFormat, HostKind};
26pub use app::{WizardConfig, run_wizard};
27pub use detection::{
28    DetectedProvider, ProviderKind, ProviderStatus, check_custom_endpoint, detect_providers,
29};
30pub use health::{CheckStatus, HealthCheckItem, HealthCheckResult, HealthChecker};
31pub use host_detection::{HostDetection, detect_hosts, write_mux_service_config};
32pub use indexer::{
33    DataSetupOption, DataSetupState, DataSetupSubStep, FanOut, ImportMode, IndexControl,
34    IndexEvent, IndexEventSink, IndexTelemetrySnapshot, IndexingJob, SharedIndexTelemetry,
35    TracingSink, TuiTelemetrySink, collect_indexable_files, import_lancedb, start_indexing,
36    validate_path,
37};
38pub use monitor::{GpuStatus, MonitorSnapshot, spawn_monitor};