UNPKG

@vibe-validate/history

Version:

Validation history tracking via git notes for vibe-validate

35 lines 1.23 kB
/** * Git notes reader */ import type { HistoryNote } from './types.js'; /** * Read validation history note for a tree hash * * @param treeHash - Git tree hash * @param notesRef - Git notes ref (default: vibe-validate/validate) * @returns History note or null if not found */ export declare function readHistoryNote(treeHash: string, notesRef?: string): Promise<HistoryNote | null>; /** * List all tree hashes with validation history * * @param notesRef - Git notes ref (default: vibe-validate/validate) * @returns Array of tree hashes with notes */ export declare function listHistoryTreeHashes(notesRef?: string): Promise<string[]>; /** * Get all validation history notes * * @param notesRef - Git notes ref (default: vibe-validate/validate) * @returns Array of all history notes */ export declare function getAllHistoryNotes(notesRef?: string): Promise<HistoryNote[]>; /** * Check if validation history exists for a tree hash * * @param treeHash - Git tree hash * @param notesRef - Git notes ref (default: vibe-validate/validate) * @returns True if history exists */ export declare function hasHistoryForTree(treeHash: string, notesRef?: string): Promise<boolean>; //# sourceMappingURL=reader.d.ts.map