UNPKG

create-ai-chat-context-experimental

Version:

Phase 2: TypeScript rewrite - AI Chat Context & Memory System with conversation extraction and AICF format support (powered by aicf-core v2.1.0).

51 lines 1.32 kB
/** * This file is part of create-ai-chat-context-experimental. * Licensed under the GNU Affero General Public License v3.0 or later (AGPL-or-later). * See LICENSE file for details. */ import type { Result } from '../types/result.js'; export interface CacheWriteStats { totalConversations: number; newChunksWritten: number; chunksSkipped: number; cacheDirectory: string; timestamp: string; } /** * Writes Augment LevelDB data to cache as chunk files */ export declare class AugmentCacheWriter { private reader; private cacheDir; private lastChunkNumber; constructor(cwd?: string); /** * Write all Augment conversations to cache */ write(): Promise<Result<CacheWriteStats>>; /** * Ensure cache directory exists */ private ensureCacheDirectory; /** * Get the highest chunk number in cache */ private getHighestChunkNumber; /** * Format Augment conversation as cache chunk */ private formatAsChunk; /** * Simple content hash for deduplication */ private hashContent; /** * Check if chunk with same content already exists */ private chunkExists; /** * Get cache directory path */ getCacheDir(): string; } //# sourceMappingURL=AugmentCacheWriter.d.ts.map