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

    Function assertTokenizeMode

    • Validate an untrusted FTS tokenizer value without silently selecting a fallback. This is intentionally synchronous so callers can reject invalid CLI, config, or programmatic input before preparing any index path.

      Parameters

      • value: unknown

        Candidate tokenizer value.

      • label: string = "tokenize mode"

        Safe, caller-facing name for the input surface.

      Returns TokenizeMode

      The exact supported tokenizer mode.

      If value is not exactly unicode61 or trigram.

      const tokenize = assertTokenizeMode(rawTokenize, "--tokenize");