1pub mod cli;
25pub mod client;
26pub mod input;
27
28pub mod config;
30pub mod profile;
31
32pub mod discovery;
34pub mod ignore;
35
36pub mod parser;
38
39pub mod context;
41pub mod cve_db;
42pub mod deobfuscation;
43pub mod engine;
44pub mod malware_db;
45pub mod rules;
46pub mod suppression;
47
48pub mod aggregator;
50pub mod baseline;
51pub mod scoring;
52
53pub mod output;
55pub mod reporter;
56
57pub mod error;
62pub mod external;
63pub mod runtime;
64pub mod types;
65
66pub mod feedback;
68pub mod fix;
69pub mod hooks;
70pub mod mcp_server;
71pub mod pinning;
72pub mod proxy;
73pub mod remote;
74pub mod sbom;
75pub mod trusted_domains;
76pub mod watch;
77
78pub mod handlers;
80pub mod hook_mode;
81pub mod run;
82pub mod scanner;
83
84#[cfg(test)]
85pub mod test_utils;
86
87pub use cli::{
93 BadgeFormat, CheckArgs, Cli, Commands, HookAction, OutputFormat, ProxyArgs, ScanType,
94};
95pub use client::{
96 ClientType, DetectedClient, detect_client, detect_installed_clients, list_installed_clients,
97};
98
99pub use config::{Config, ConfigError, ConfigLoadResult, TextFilesConfig, WatchConfig};
101pub use profile::{Profile, profile_from_check_args};
102
103pub use discovery::{DirectoryWalker, WalkConfig};
105pub use ignore::IgnoreFilter;
106
107pub use parser::{
109 ContentParser, ContentType, DockerfileParser, FrontmatterParser, JsonParser, MarkdownParser,
110 ParsedContent, ParserRegistry, TomlParser, YamlParser,
111};
112
113pub use context::{ContentContext, ContextDetector};
115pub use cve_db::{CveDatabase, CveDbError, CveEntry};
116pub use deobfuscation::{DecodedContent, Deobfuscator};
117pub use engine::traits::{AnalysisMetadata, AnalysisResult, DetectionEngine, EngineConfig};
118pub use engine::{
119 CommandScanner, ContentScanner, DependencyScanner, DockerScanner, HookScanner, McpScanner,
120 PluginScanner, RulesDirScanner, ScanError, Scanner, ScannerConfig, SkillScanner,
121 SubagentScanner,
122};
123pub use malware_db::{MalwareDatabase, MalwareDbError};
124pub use rules::{
125 Confidence, CustomRuleError, CustomRuleLoader, DynamicRule, Finding, RuleEngine, RuleSeverity,
126 ScanResult, Severity, Summary,
127};
128
129pub use aggregator::{FindingCollector, SummaryBuilder};
131pub use baseline::{Baseline, DriftEntry, DriftReport};
132pub use scoring::{CategoryScore, RiskLevel, RiskScore, SeverityBreakdown};
133
134pub use output::OutputFormatter;
136pub use reporter::{
137 Reporter, html::HtmlReporter, json::JsonReporter, markdown::MarkdownReporter,
138 sarif::SarifReporter, terminal::TerminalReporter,
139};
140
141pub use run::{
143 ScanMode, WatchModeResult, format_result_check_args, format_result_with_config, is_text_file,
144 is_text_file_with_config, run_scan_with_check_args, run_scan_with_check_args_config,
145 scan_path_with_cve_db, scan_path_with_malware_db, setup_watch_mode, watch_iteration,
146};
147pub use runtime::{HookRunner, Pipeline, PipelineStage, ScanContext, ScanExecutor};
148
149pub use error::{AuditError, Result};
151pub use feedback::{FalsePositiveReport, ReportSubmitter, SubmitResult, SubmitTarget};
152pub use fix::{AutoFixer, Fix, FixResult};
153pub use hooks::{HookError, HookInstaller};
154pub use mcp_server::McpServer;
155pub use pinning::{PinMismatch, PinVerifyResult, PinnedTool, ToolPins};
156pub use proxy::{InterceptAction, MessageInterceptor, ProxyConfig, ProxyLogger, ProxyServer};
157pub use remote::{ClonedRepo, GitCloner, RemoteError, parse_github_url};
158pub use sbom::{
159 Component, ComponentType, CycloneDxBom, DependencyExtractor, SbomBuilder, SbomFormat,
160};
161pub use trusted_domains::{TrustedDomain, TrustedDomainMatcher};
162pub use types::{AuthToken, FileHash, GitRef, PathValidationError, RuleId, ScanTarget};
163pub use watch::FileWatcher;