Agentfs Diff
Watching
DiffWatcher::new accepts the two filesystem objects and WatchOptions.
Workflow and current contract
DiffWatcher::new accepts the two filesystem objects and WatchOptions. Take its receiver once, call start().await, consume differences, and call stop() when finished. The receiver is optional because it can be taken only once.
This watcher schedules comparisons between source and target. It is separate from raw OS event watching and does not apply a mirror or resolve conflicts. Use the options' interval/debounce/initial-scan behavior with a consumer that handles closure.
Source reference
watcherdeclarations —local/agentfs-diff/src/watcher.rs.