Run blocks forever polling Dirs (defaults: KB_WATCH_DIRS or /corpus) every
Interval (default 30s) and re-indexing when files change. KB_ROOT names the
repo root used to locate bin/kb/index.
type Options struct {
Dirs []string Interval time.Duration// IndexCmd is the kb/index command template. %s is replaced by the repo// root (from KB_ROOT). Defaults to `python3 <root>/bin/kb/index`.
IndexCmd string
}
Options controls the polling loop. Zero value uses defaults.