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::{BadgeFormat, Cli, OutputFormat, ScanType};
93pub use client::{
94 ClientType, DetectedClient, detect_client, detect_installed_clients, list_installed_clients,
95};
96
97pub use config::{Config, ConfigError, TextFilesConfig, WatchConfig};
99pub use profile::{Profile, profile_from_cli};
100
101pub use discovery::{DirectoryWalker, WalkConfig};
103pub use ignore::IgnoreFilter;
104
105pub use parser::{
107 ContentParser, ContentType, DockerfileParser, FrontmatterParser, JsonParser, MarkdownParser,
108 ParsedContent, ParserRegistry, TomlParser, YamlParser,
109};
110
111pub use context::{ContentContext, ContextDetector};
113pub use cve_db::{CveDatabase, CveDbError, CveEntry};
114pub use deobfuscation::{DecodedContent, Deobfuscator};
115pub use engine::traits::{AnalysisMetadata, AnalysisResult, DetectionEngine, EngineConfig};
116pub use engine::{
117 CommandScanner, ContentScanner, DependencyScanner, DockerScanner, HookScanner, McpScanner,
118 PluginScanner, RulesDirScanner, ScanError, Scanner, ScannerConfig, SkillScanner,
119 SubagentScanner,
120};
121pub use malware_db::{MalwareDatabase, MalwareDbError};
122pub use rules::{
123 Confidence, CustomRuleError, CustomRuleLoader, DynamicRule, Finding, RuleEngine, RuleSeverity,
124 ScanResult, Severity, Summary,
125};
126
127pub use aggregator::{FindingCollector, SummaryBuilder};
129pub use baseline::{Baseline, DriftEntry, DriftReport};
130pub use scoring::{CategoryScore, RiskLevel, RiskScore, SeverityBreakdown};
131
132pub use output::OutputFormatter;
134pub use reporter::{
135 Reporter, html::HtmlReporter, json::JsonReporter, markdown::MarkdownReporter,
136 sarif::SarifReporter, terminal::TerminalReporter,
137};
138
139pub use run::{
141 ScanMode, WatchModeResult, format_result, is_text_file, is_text_file_with_config, run_scan,
142 scan_path_with_cve_db, scan_path_with_malware_db, setup_watch_mode, watch_iteration,
143};
144pub use runtime::{HookRunner, Pipeline, PipelineStage, ScanContext, ScanExecutor};
145
146pub use error::{AuditError, Result};
148pub use feedback::{FalsePositiveReport, ReportSubmitter, SubmitResult, SubmitTarget};
149pub use fix::{AutoFixer, Fix, FixResult};
150pub use hooks::{HookError, HookInstaller};
151pub use mcp_server::McpServer;
152pub use pinning::{PinMismatch, PinVerifyResult, PinnedTool, ToolPins};
153pub use proxy::{InterceptAction, MessageInterceptor, ProxyConfig, ProxyLogger, ProxyServer};
154pub use remote::{ClonedRepo, GitCloner, RemoteError, parse_github_url};
155pub use sbom::{
156 Component, ComponentType, CycloneDxBom, DependencyExtractor, SbomBuilder, SbomFormat,
157};
158pub use trusted_domains::{TrustedDomain, TrustedDomainMatcher};
159pub use types::{AuthToken, FileHash, GitRef, PathValidationError, RuleId, ScanTarget};
160pub use watch::FileWatcher;