UNPKG

perf-lens

Version:

AI-powered frontend performance optimizer

17 lines 706 B
import type { Finding } from './schema.js'; /** Bump whenever prompts change in a way that should invalidate cached analyses. */ export declare const PROMPT_VERSION = 2; /** * Result cache: content hash of a batch -> findings. Unchanged files cost * nothing on re-scan. Persisted as one JSON file in the project root (gitignored). */ export declare class AnalysisCache { private readonly enabled; private entries; private readonly file; constructor(baseDir: string, enabled?: boolean); key(model: string, fileContents: Record<string, string>): string; get(key: string): Finding[] | undefined; set(key: string, findings: Finding[]): void; } //# sourceMappingURL=cache.d.ts.map