/** * Core Type Definitions * * Minimal type definitions for the claude-mem system. * Only includes types that are actively imported and used. */ // ============================================================================= // ERROR CLASSES // ============================================================================= /** * Custom error class for compression failures */ export class CompressionError extends Error { constructor( message: string, public transcriptPath: string, public stage: 'reading' | 'analyzing' | 'compressing' | 'writing' ) { super(message); this.name = 'CompressionError'; } } // ============================================================================= // CONFIGURATION TYPES // ============================================================================= /** * Main settings interface for claude-mem configuration */ export interface Settings { autoCompress?: boolean; projectName?: string; installed?: boolean; backend?: string; embedded?: boolean; saveMemoriesOnClear?: boolean; claudePath?: string; rollingCaptureEnabled?: boolean; rollingSummaryEnabled?: boolean; rollingSessionStartEnabled?: boolean; rollingChunkTokens?: number; rollingChunkOverlapTokens?: number; rollingSummaryTurnLimit?: number; [key: string]: unknown; // Allow additional properties }