mirror of
https://github.com/thedotmack/claude-mem
synced 2026-04-25 17:15:04 +02:00
49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
/**
|
|
* 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
|
|
}
|