UNPKG

organ-ai-zer

Version:

AI-powered file organizer CLI tool

27 lines 966 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SuggestionCache = void 0; const base_cache_1 = require("./base-cache"); class SuggestionCache extends base_cache_1.BaseCache { constructor() { super({ subDirectory: 'suggestions', ttlMs: 10 * 60 * 1000, // 10 minutes (matches documentation) useConfigHash: true }); } static getInstance() { if (!SuggestionCache.instance) { SuggestionCache.instance = new SuggestionCache(); } return SuggestionCache.instance; } async getCachedSuggestions(directory, files, configHash) { return this.getCached(directory, files, configHash); } async cacheSuggestions(directory, files, suggestions, configHash) { return this.cache(directory, files, suggestions, configHash); } } exports.SuggestionCache = SuggestionCache; //# sourceMappingURL=suggestion-cache.js.map