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

    Class IssuesManager

    Manages a persistent issues.json file tracking processing failures per file.

    Hierarchy

    Index

    Constructors

    Properties

    cache:
        | Partial<
            Record<
                string,
                {
                    message: string;
                    property?: string;
                    rule?: string;
                    rules?: string[];
                    timestamp: string
                    | number;
                    type: "type_collision" | "interpolation_error";
                    types?: string[];
                }[],
            >,
        >
        | 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

    • Clear an issue for a file path (called on successful processing).

      Parameters

      • filePath: string

      Returns void

    • Load from disk into cache if not already loaded.

      Returns T

    • Record or update an issue for a file path.

      Parameters

      • filePath: string
      • type: "type_collision" | "interpolation_error"
      • message: string
      • Optionaloptions: { property?: string; rules?: string[]; types?: string[] }

      Returns void