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

Method add_files_touched

atomic-agent/src/turn/session.rs:336–342  ·  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

334
335 /// Add files to the accumulated files_touched list (deduplicating).
336 pub fn add_files_touched(&mut self, files: &[String]) {
337 for file in files {
338 if !self.files_touched.contains(file) {
339 self.files_touched.push(file.clone());
340 }
341 }
342 }
343
344 /// Returns the number of unique files touched across the session.
345 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