pub mod agent;
pub mod attachment;
pub mod auto_selector;
pub mod builder;
pub mod capability;
pub mod config;
pub mod factory;
pub mod file_util;
pub mod json_validation;
pub mod mcp;
pub mod output;
pub mod preflight;
pub mod process;
pub mod process_store;
pub mod progress;
pub mod providers;
pub mod sandbox;
pub mod search;
pub mod session;
pub mod session_log;
pub mod skills;
pub mod streaming;
pub mod worktree;
pub(crate) fn truncate_str(s: &str, max_bytes: usize) -> &str {
if max_bytes >= s.len() {
return s;
}
let mut end = max_bytes;
while end > 0 && !s.is_char_boundary(end) {
end -= 1;
}
&s[..end]
}
#[cfg(test)]
#[path = "mock_integration_tests.rs"]
mod mock_integration_tests;