use std::thread;
use std::time::Duration;
/// Deterministic tick loop for CI/tests.
pub fn watch_loop_ticks(iterations: usize) {
for i in 0..iterations {
eprintln!("[naorix_watch] tick {}", i);
thread::sleep(Duration::from_millis(50));
}
}
/// Back-compat API expected by `src/bin/naorix_watch.rs`.
/// We don't actually use `vault_dir` or `key` here; just simulate activity.
pub fn watch_loop(_vault_dir: &str, _key: &str) {
// simulate a short, observable watch cycle
watch_loop_ticks(5);
}