1pub mod core;
5pub mod git_program;
6pub mod memory;
7pub mod pricing;
8
9pub use core::stream_types::{
13 next_turn_correlation_id, AgentEvent, BudgetDimension, LlmEvent, SessionEvent, SharedMessage,
14 StreamEvent, TurnError, TurnOutcome,
15};
16
17pub use core::auth;
20pub use core::chain;
21pub use core::compaction;
22pub use core::config;
23pub use core::disclosure;
24pub use core::error;
25pub use core::logging;
26pub use core::models;
27pub use core::private_fs;
28pub use core::reasoning;
29pub use core::retention;
30pub use core::session;
31pub use core::session_catalog;
32pub use core::session_journal;
33pub use core::session_lock;
34
35pub const REMOVED_IN: &str = "0.12.0";
39
40pub const AXEL_BACKEND_REMOVED_IN: &str = "0.12.0";
44
45pub const SIDECAR_REMOVED_IN: &str = "0.12.0";
48
49#[inline]
51pub fn epoch_millis() -> u64 {
52 std::time::SystemTime::now()
53 .duration_since(std::time::UNIX_EPOCH)
54 .expect("system clock before Unix epoch")
55 .as_millis() as u64
56}
57
58pub use error::{Result, RuntimeError};
61
62#[inline]
64pub fn truncate_str(s: &str, max: usize) -> &str {
65 if s.len() <= max {
66 return s;
67 }
68 let mut end = max;
69 while end > 0 && !s.is_char_boundary(end) {
70 end -= 1;
71 }
72 &s[..end]
73}
74
75pub mod orchestration;
76pub mod prompt;
77pub mod text;
78
79pub use text::BoundedText;
80
81#[path = "core/context_archive.rs"]
82pub mod context_archive;