forked from colbymchenry/codegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
33 lines (32 loc) · 1.05 KB
/
Copy pathindex.ts
File metadata and controls
33 lines (32 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* 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';