@vibe-validate/history
Version:
Validation history tracking via git notes for vibe-validate
39 lines • 1.39 kB
TypeScript
/**
* History pruning utilities
*/
import type { PruneResult, HistoryConfig } from './types.js';
/**
* Prune validation history older than specified days
*
* @param olderThanDays - Remove notes older than this many days
* @param config - History configuration
* @param dryRun - If true, don't actually delete (default: false)
* @returns Prune result
*/
export declare function pruneHistoryByAge(olderThanDays: number, config?: HistoryConfig, dryRun?: boolean): Promise<PruneResult>;
/**
* Prune all validation history
*
* @param config - History configuration
* @param dryRun - If true, don't actually delete (default: false)
* @returns Prune result
*/
export declare function pruneAllHistory(config?: HistoryConfig, dryRun?: boolean): Promise<PruneResult>;
/**
* Clean up legacy git notes from pre-0.15.0 versions
*
* Removes notes from the old `refs/notes/vibe-validate/runs` namespace.
* Safe to call - only removes if legacy notes exist.
*
* @param dryRun - If true, don't actually delete (default: false)
* @returns Prune result
*/
export declare function pruneLegacyNotes(dryRun?: boolean): Promise<PruneResult>;
/**
* Prune all run cache entries
*
* @param dryRun - If true, don't actually delete (default: false)
* @returns Prune result
*/
export declare function pruneAllRunCache(dryRun?: boolean): Promise<PruneResult>;
//# sourceMappingURL=pruner.d.ts.map