enquire-mcp API reference - v4.0.0-rc.7
    Preparing search index...

    Function defaultIndexFile

    • Default location for the FTS5 index file — ~/.cache/enquire/<hash>.fts5.db (or $XDG_CACHE_HOME/enquire/<hash>.fts5.db when that env value is an absolute path). The hash is the first 12 chars of sha1(vaultRoot), retained as a legacy routing key. Non-colliding roots get distinct default paths; the truncated key is not collision-proof vault identity. Collision handling and a root-bound migration are deferred to AH-9e.

      A relative or empty XDG_CACHE_HOME is ignored so the result does not depend on this process's CWD. doctor and serve then share the same default FTS/embed file even when they are launched from different directories. Parse-cache, feedback, and tessdata resolvers are separate formulas and are not this function.

      Parameters

      • vaultRoot: string

        Absolute path to the vault root.

      Returns string

      Absolute path to the index file.