- 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.
12 lines
299 B
Rust
12 lines
299 B
Rust
use crate::package_manager::OsType;
|
|
pub fn detect_os() -> OsType {
|
|
if cfg!(target_os = "linux") {
|
|
OsType::Linux
|
|
} else if cfg!(target_os = "macos") {
|
|
OsType::MacOS
|
|
} else if cfg!(target_os = "windows") {
|
|
OsType::Windows
|
|
} else {
|
|
OsType::Linux
|
|
}
|
|
}
|