Skip to main content

agentshield/analysis/
mod.rs

1pub(crate) mod composite_flow;
2pub mod cross_file;
3pub mod interprocedural;
4pub(crate) mod runtime_install;
5pub(crate) mod sensitivity;
6
7use crate::ir::ScanTarget;
8
9use self::composite_flow::CompositeFlowCandidate;
10
11/// Internal analysis bundle emitted by adapter pipeline and consumed by
12/// contextual detectors.
13///
14/// This remains crate-private and is never serialized.
15#[derive(Debug)]
16pub(crate) struct AnalysisBundle {
17    pub target: ScanTarget,
18    pub composite_flows: Vec<CompositeFlowCandidate>,
19}
20
21/// Input passed to contextual detectors.
22#[derive(Debug)]
23pub(crate) struct DetectionInput<'a> {
24    pub target: &'a ScanTarget,
25    pub composite_flows: &'a [CompositeFlowCandidate],
26}