- Renamed `execute_compact_prompt` to `compact_prompt_for_bots` and simplified logic - Removed redundant comments and empty lines in test files - Consolidated prompt compaction threshold handling - Cleaned up UI logging implementation by removing unnecessary whitespace - Improved code organization in ui_tree module The changes focus on code quality improvements, removing clutter, and making the prompt compaction logic more straightforward. Test files were cleaned up to be more concise.
41 lines
892 B
Rust
41 lines
892 B
Rust
pub mod component;
|
|
pub mod installer;
|
|
pub mod os;
|
|
pub use installer::PackageManager;
|
|
pub mod cli;
|
|
pub mod facade;
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
pub enum InstallMode {
|
|
Local,
|
|
Container,
|
|
}
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
pub enum OsType {
|
|
Linux,
|
|
MacOS,
|
|
Windows,
|
|
}
|
|
pub struct ComponentInfo {
|
|
pub name: &'static str,
|
|
pub termination_command: &'static str,
|
|
}
|
|
pub fn get_all_components() -> Vec<ComponentInfo> {
|
|
vec![
|
|
ComponentInfo {
|
|
name: "tables",
|
|
termination_command: "postgres",
|
|
},
|
|
ComponentInfo {
|
|
name: "cache",
|
|
termination_command: "redis-server",
|
|
},
|
|
ComponentInfo {
|
|
name: "drive",
|
|
termination_command: "minio",
|
|
},
|
|
ComponentInfo {
|
|
name: "llm",
|
|
termination_command: "llama-server",
|
|
},
|
|
]
|
|
}
|