Agentfs Diff
Comparison
Provide source and target Arc<dyn FileSystem> implementations, then call DiffEngine::compare(source, target, options).await.
Workflow and current contract
Provide source and target Arc<dyn FileSystem> implementations, then call DiffEngine::compare(source, target, options).await. The comparison trait describes filesystem entries and operations; AgentFSWrapper is an adapter type, not a function named my_fs_source.
Choose the real comparison mode and content/metadata flags from DiffOptions, then inspect each returned Diff and its details. Comparisons report changes; they do not apply writes. An implementation must supply the actual filesystem trait methods before this becomes an executable integration.
Source reference
comparisondeclarations —local/agentfs-diff/src/comparison.rs.enginedeclarations —local/agentfs-diff/src/engine.rs.diffdeclarations —local/agentfs-diff/src/diff.rs.