1mod auth;
6mod bounded;
7mod checks;
8mod confirm;
9mod host_memory;
10mod logger;
11mod ndjson;
12mod net;
13mod open;
14mod private_tmp;
15mod proc;
16mod redact;
17mod retry;
18pub mod serde_base64;
19mod sse;
20mod text;
21mod timestamp;
22
23pub use auth::{resolve_api_key, resolve_api_key_with_fallback};
25pub use bounded::{CappedLine, read_capped, read_file_capped, read_line_capped};
26pub use checks::{CheckResult, check_ollama_available, check_ollama_model};
27pub use confirm::{confirm_or_refuse, is_affirmative, should_refuse_noninteractive};
28pub use host_memory::{gpu_vram_bytes, system_ram_bytes};
29pub use logger::{init_logger, log_debug, log_error, log_info, log_progress, log_warn};
30pub use ndjson::drain_complete_lines;
31pub use net::{HostClass, classify_host};
32pub use open::open_file;
33pub use private_tmp::private_temp_dir;
34pub use proc::{
35 Grace, output_with_timeout, terminate_tree, terminate_tree_blocking, write_stdin_with_timeout,
36};
37pub use redact::{redact_json, redact_secrets};
38pub(crate) use retry::jitter;
39pub use retry::{RetryConfig, retry_async, retry_async_if};
40pub use sse::drain_sse_events;
41pub use text::{format_duration, truncate_content, truncate_web_content};
42pub use timestamp::format_relative_timestamp;