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).
44 lines • 1.39 kB
TypeScript
/**
* This file is part of create-ai-chat-context-experimental.
* Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
* See LICENSE file for details.
*/
import type { Message } from '../types/index.js';
import type { Result } from '../types/index.js';
/**
* Parse Claude Desktop SQLite database
* Converts SQLite messages to standard Message format
*/
export declare class ClaudeDesktopParser {
/**
* Parse Claude Desktop database
*
* @param dbPath - Path to Claude Desktop database file
* @returns Result with Message[] or error
*/
parse(dbPath: string): Result<Message[]>;
/**
* Get all conversations from database
*
* @param db - SQLite database connection
* @returns Result with Conversation[] or error
*/
private getConversations;
/**
* Get messages for a specific conversation
*
* @param db - SQLite database connection
* @param conversationId - Conversation ID
* @returns Result with Message[] or error
*/
private getConversationMessages;
/**
* Extract content from Claude Desktop message
* Handles string and structured content
*
* @param content - Message content (string or JSON)
* @returns Extracted text content
*/
private extractContent;
}
//# sourceMappingURL=ClaudeDesktopParser.d.ts.map