agentic_codebase/types/
mod.rs1pub mod code_unit;
8pub mod edge;
9pub mod error;
10pub mod header;
11pub mod language;
12pub mod span;
13
14pub use code_unit::{CodeUnit, CodeUnitBuilder, CodeUnitType, Visibility};
15pub use edge::{Edge, EdgeType};
16pub use error::{AcbError, AcbResult};
17pub use header::FileHeader;
18pub use language::Language;
19pub use span::Span;
20
21pub const ACB_MAGIC: [u8; 4] = [0x41, 0x43, 0x44, 0x42];
23
24pub const FORMAT_VERSION: u32 = 1;
26
27pub const DEFAULT_DIMENSION: usize = 256;
29
30pub const MAX_SYMBOL_NAME: usize = 1024;
32
33pub const MAX_QUALIFIED_NAME: usize = 4096;
35
36pub const MAX_PATH_LENGTH: usize = 4096;
38
39pub const MAX_EDGES_PER_UNIT: u32 = 16384;
41
42pub const MAX_SIGNATURE_LENGTH: usize = 2048;
44
45pub const MAX_DOC_LENGTH: usize = 512;
47
48pub fn now_micros() -> u64 {
50 chrono::Utc::now().timestamp_micros() as u64
51}