Skip to main content

agent_atlas/
lib.rs

1//! atlas library
2//!
3//! Core types and functionality for knowledge base indexing.
4
5pub mod aggregate;
6pub mod analyze;
7pub mod cache;
8pub mod cli;
9pub mod config;
10pub mod extract;
11pub mod render;
12pub mod scan;
13pub mod types;
14
15pub use aggregate::*;
16pub use analyze::*;
17pub use cache::*;
18pub use config::Config;
19pub use extract::*;
20pub use render::*;
21pub use scan::*;
22pub use types::*;
23
24#[derive(Debug, Clone, Copy, PartialEq, Eq)]
25pub enum LogLevel {
26    Quiet,
27    Normal,
28    Verbose,
29    Debug,
30}
31
32impl LogLevel {
33    pub fn should_print(&self, level: LogLevel) -> bool {
34        (*self as u8) >= (level as u8)
35    }
36}