botserver/src/package_manager/mod.rs
Rodrigo Rodriguez (Pragmatismo) 7f1e6dc91c feat: refactor auth and models, update LLM fallback strategy
- Simplified auth module by removing unused imports and code
- Cleaned up shared models by removing unused structs (Organization, User, Bot, etc.)
- Updated add-req.sh to comment out unused directories
- Modified LLM fallback strategy in README with additional notes about model behaviors

The changes focus on removing unused code and improving documentation while maintaining existing functionality. The auth module was significantly reduced by removing redundant code, and similar cleanup was applied to shared models. The build script was adjusted to reflect currently used directories.
2025-11-04 23:11:33 -03:00

46 lines
897 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",
},
]
}