MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / has_capture

Function has_capture

atomic-agent/src/turn/capture.rs:144–148  ·  view source on GitHub ↗

Whether any capture evidence exists for one turn of one session.

(sessions_dir: &Path, session_id: &str, turn: u32)

Source from the content-addressed store, hash-verified

142
143/// Whether any capture evidence exists for one turn of one session.
144pub fn has_capture(sessions_dir: &Path, session_id: &str, turn: u32) -> bool {
145 capture_files(sessions_dir, session_id, turn)
146 .map(|files| !files.is_empty())
147 .unwrap_or(false)
148}
149
150impl ManagedCommitCapture {
151 /// The canonical MAC input: the capture's JSON with `mac` cleared.

Callers 1

classify_git_transitionFunction · 0.85

Calls 2

capture_filesFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected