UNPKG

memq-ai-memory

Version:

Memory SDK with Vercel AI SDK integration

100 lines 2.46 kB
import { MemoryClient } from '../core/MemoryClient'; import { ExtensionConfig, PlatformConfig } from '../types'; export declare class ExtensionManager { private client; private config; private platforms; private duplicateCache; private isInitialized; constructor(client: MemoryClient, config?: Partial<ExtensionConfig>); /** * Initialize the extension manager */ initialize(): Promise<void>; /** * Detect the current platform */ detectPlatform(): PlatformConfig | null; /** * Extract conversation data from the current page */ extractConversation(): Promise<{ prompt: string; response?: string; source: string; platform: PlatformConfig; } | null>; /** * Save conversation to memory */ saveConversation(): Promise<boolean>; /** * Search for relevant memories */ searchMemories(query: string, limit?: number): Promise<any[]>; /** * Get recent memories for the current user */ getRecentMemories(limit?: number): Promise<any[]>; /** * Check for duplicate conversations */ private checkForDuplicates; /** * Calculate similarity between two texts */ private calculateSimilarity; /** * Add prompt to duplicate cache */ private addToDuplicateCache; /** * Start duplicate prevention system */ private startDuplicatePrevention; /** * Clean duplicate cache */ private cleanDuplicateCache; /** * Initialize supported platforms */ private initializePlatforms; /** * Extract conversation from ChatGPT */ private extractFromChatGPT; /** * Extract conversation from Claude */ private extractFromClaude; /** * Extract conversation from Gemini */ private extractFromGemini; /** * Extract conversation from Perplexity */ private extractFromPerplexity; /** * Extract conversation from Grok */ private extractFromGrok; /** * Extract conversation from DeepSeek */ private extractFromDeepSeek; /** * Log messages if logging is enabled */ private log; /** * Get current configuration */ getConfig(): ExtensionConfig; /** * Update configuration */ updateConfig(updates: Partial<ExtensionConfig>): void; } //# sourceMappingURL=ExtensionManager.d.ts.map