| 123456789101112131415161718192021222324252627282930313233 |
- /**
- * Sync Module
- *
- * Provides synchronization functionality for keeping the code graph
- * up-to-date with file system changes.
- *
- * Components:
- * - FileWatcher: Debounced fs.watch that auto-triggers sync on file changes
- * - Watch policy: decides when the watcher must be disabled (e.g. WSL2 /mnt)
- * - Git sync hooks: opt-in commit/merge/checkout hooks when watching is off
- * - Git worktree awareness: detect when a query borrows another tree's index
- * - Content hashing for change detection (in extraction module)
- * - Incremental reindexing (in extraction module)
- */
- export { FileWatcher, WatchOptions, PendingFile, LockUnavailableError } from './watcher';
- export { watchDisabledReason, detectWsl } from './watch-policy';
- export {
- installGitSyncHook,
- removeGitSyncHook,
- isSyncHookInstalled,
- isGitRepo,
- DEFAULT_SYNC_HOOKS,
- type GitHookName,
- type GitHookResult,
- } from './git-hooks';
- export {
- gitWorktreeRoot,
- detectWorktreeIndexMismatch,
- worktreeMismatchWarning,
- worktreeMismatchNotice,
- type WorktreeIndexMismatch,
- } from './worktree';
|