UNPKG

@vibe-validate/history

Version:

Validation history tracking via git notes for vibe-validate

50 lines 1.59 kB
/** * Run cache reader - Read run cache entries from git notes * * Run cache is stored at: refs/notes/vibe-validate/run/{treeHash}/{cacheKey} * where cacheKey = encodeURIComponent(workdir ? `${workdir}:${command}` : command) */ import type { RunCacheNote } from './types.js'; /** * Entry metadata from git notes list */ export interface RunCacheEntryMeta { treeHash: string; cacheKey: string; refPath: string; } /** * List all run cache entries for a tree hash * * @param treeHash - Git tree hash * @returns Array of run cache entry metadata */ export declare function listRunCacheEntries(treeHash: string): Promise<RunCacheEntryMeta[]>; /** * Get a specific run cache entry * * @param treeHash - Git tree hash * @param cacheKey - URL-encoded cache key * @returns Run cache note or null if not found */ export declare function getRunCacheEntry(treeHash: string, cacheKey: string): Promise<RunCacheNote | null>; /** * Get all run cache entries for a tree hash * * @param treeHash - Git tree hash * @returns Array of all run cache notes for this tree hash */ export declare function getAllRunCacheForTree(treeHash: string): Promise<RunCacheNote[]>; /** * List all tree hashes that have run cache entries * * @returns Array of tree hashes with run cache */ export declare function listRunCacheTreeHashes(): Promise<string[]>; /** * Get all run cache entries across all tree hashes * * @returns Array of all run cache notes */ export declare function getAllRunCacheEntries(): Promise<RunCacheNote[]>; //# sourceMappingURL=run-cache-reader.d.ts.map