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

Method add_files_touched

atomic-agent/src/turn/session.rs:308–314  ·  view source on GitHub ↗

Add files to the accumulated files_touched list (deduplicating).

(&mut self, files: &[String])

Source from the content-addressed store, hash-verified

306
307 /// Add files to the accumulated files_touched list (deduplicating).
308 pub fn add_files_touched(&mut self, files: &[String]) {
309 for file in files {
310 if !self.files_touched.contains(file) {
311 self.files_touched.push(file.clone());
312 }
313 }
314 }
315
316 /// Returns the number of unique files touched across the session.
317 pub fn files_touched_count(&self) -> u32 {

Callers 7

make_sessionFunction · 0.80
test_add_files_touchedFunction · 0.80
test_serde_roundtripFunction · 0.80
test_full_lifecycleFunction · 0.80
handle_turn_endMethod · 0.80

Calls 3

containsMethod · 0.45
pushMethod · 0.45
cloneMethod · 0.45

Tested by 6

make_sessionFunction · 0.64
test_add_files_touchedFunction · 0.64
test_serde_roundtripFunction · 0.64
test_full_lifecycleFunction · 0.64