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

Function has_capture

atomic-agent/src/turn/capture.rs:142–146  ·  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

140
141/// Whether any capture evidence exists for one turn of one session.
142pub fn has_capture(sessions_dir: &Path, session_id: &str, turn: u32) -> bool {
143 capture_files(sessions_dir, session_id, turn)
144 .map(|files| !files.is_empty())
145 .unwrap_or(false)
146}
147
148impl ManagedCommitCapture {
149 /// 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