@karmaniverous/jeeves-watcher
    Preparing search index...

    Class ValuesManager

    Manages a persistent values.json file tracking distinct metadata values per rule.

    Hierarchy

    Index

    Constructors

    Properties

    cache: ValuesIndex | null = null

    In-memory cache of the parsed file contents, or null if not yet loaded.

    filePath: string

    Path to the JSON file on disk.

    logger: Logger

    Logger instance for warnings and diagnostics.

    Methods

    • Load from disk into cache if not already loaded.

      Returns T

    • Update distinct values for a rule from metadata.

      Parameters

      • ruleName: string
      • metadata: Record<string, unknown>

      Returns void