mirror of
https://github.com/block/buzz.git
synced 2026-10-30 05:51:46 +00:00
Backend (Rust): - file_watcher.rs: notify crate watches per-channel project dirs - Debounced 500ms, ignores .git/node_modules/binaries/large files - similar crate computes unified diffs against snapshots - Tauri event emission (file-diff) to frontend - Per-channel project dir config persisted to project-dirs.json - Commands: get/set_project_dir, start/stop_file_watcher, resnapshot Frontend (React): - useLocalFileDiffs hook listens for Tauri file-diff events - Synthetic TimelineMessage (kind:40008) merges into timeline - Renders through existing DiffMessage -> DiffViewer pipeline - Project directory UI in channel management sheet - Auto-starts watcher when opening channel with configured dir Local-only for v1 — no relay events emitted.