Documentation
¶
Overview ¶
Package watcher watches ~/.claude/projects/ for JSONL changes via fsnotify and emits reload signals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher watches ~/.claude/projects/ for JSONL changes and emits batches of changed file paths through C(). It uses fsnotify as the primary mechanism with an idle-triggered stat poll: if no fsnotify event arrives within 5s of startup or the last valid event, a full directory scan is performed. Events are rate-limited to at most one emission per second.
func New ¶
New creates and starts a Watcher for baseDir (typically ~/.claude/projects). If fsnotify is unavailable the watcher falls back to polling only.
Click to show internal directories.
Click to hide internal directories.