Feat/daemon and index replace

Draft
PL
9d ago
+1098-66
  • vera daemon starts a daemon server that allows vera search to act as light clients (no repeated index loading)
  • vera index now requires --replace to discard an existing index because LLM sometimes tried to remove my index (expensive to build)

Summary by cubic

Adds an optional vera daemon that keeps search models and open index stores resident so repeated vera search commands reuse them, and makes vera index refuse to overwrite existing index data unless --replace is passed.

  • Daemon
    • vera daemon runs a foreground Unix-socket server; vera search connects to it automatically and falls back to the one-shot local path when no daemon is running.
    • Stop the daemon with Ctrl-C; the socket is removed on clean shutdown. Daemon mode is Unix-only.
  • Index replace
    • vera index now errors if index data already exists and --replace is not given, preventing accidental rebuilds.
    • --dry-run still works without replacing; vera update is unchanged.