argus_core/lib.rs
1//! Core types, configuration, and error handling for the Argus platform.
2//!
3//! This crate provides the shared foundation used by all other Argus crates:
4//! - [`ArgusError`] — unified error type using `thiserror`
5//! - [`ArgusConfig`] — configuration loaded from `.argus.toml`
6//! - Shared types: [`FileNode`], [`DiffHunk`], [`RiskScore`], [`Severity`],
7//! [`ReviewComment`], [`SearchResult`], [`OutputFormat`]
8
9mod config;
10mod error;
11mod types;
12
13pub use config::{ArgusConfig, EmbeddingConfig, LlmConfig, PathConfig, ReviewConfig, Rule};
14pub use error::ArgusError;
15pub use types::{
16 ChangeType, DiffHunk, FileNode, OutputFormat, ReviewComment, RiskScore, SearchResult, Severity,
17};
18
19/// A convenience `Result` type for Argus operations.
20pub type Result<T> = std::result::Result<T, ArgusError>;