Versions in this module Expand all Collapse all v0 v0.8.0 Mar 29, 2026 Changes in this version + type BrainCrossProjectTracker interface + DetectAndStoreBrain func(ctx context.Context, filePath string, localStore *store.Store) + type ChangeEvent struct + EdgesAdded int + File string + NodesAdded int + NodesRemoved int + Timestamp time.Time + type ConfigChangeHandler func(newCfg *config.Config) + type CrossProjectTracker interface + DetectAndStore func(ctx context.Context, filePath string, localStore *store.Store) + type NameMatcherRunner interface + RunAsync func(ctx context.Context, g *graph.Graph, st *store.Store, changedFiles []string) + type PacketCacheInvalidator interface + InvalidatePacketCache func() + InvalidatePacketCacheForFile func(changedFile string) + type Watcher struct + func New(g *graph.Graph, w *parser.Walker, st *store.Store) (*Watcher, error) + func (w *Watcher) IsAlive() bool + func (w *Watcher) RecentChanges(windowMinutes int) []ChangeEvent + func (w *Watcher) SetAfterRebuildHook(fn func()) + func (w *Watcher) SetBrainClient(bc *brain.Client) + func (w *Watcher) SetBrainCrossProjectTracker(tracker BrainCrossProjectTracker) + func (w *Watcher) SetConfig(cfg *config.Config) + func (w *Watcher) SetConfigChangeHandler(fn ConfigChangeHandler) + func (w *Watcher) SetCrossProjectTracker(tracker CrossProjectTracker) + func (w *Watcher) SetNameMatcher(nm NameMatcherRunner) + func (w *Watcher) SetNodeEmbedder(e embed.Embedder) + func (w *Watcher) SetPacketInvalidator(pi PacketCacheInvalidator) + func (w *Watcher) SetProjectID(id string) + func (w *Watcher) SetPulseClient(pc *pulse.Client) + func (w *Watcher) Start(root string) error + func (w *Watcher) Stop()