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).
30 lines • 1.06 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.
*/
/**
* Claude CLI Parser
* Extracts conversation data from Claude Code (CLI) JSONL format
* Phase 5.5a: October 2025
*
* Parses JSONL files from ~/.claude/projects/{project}/{session-id}.jsonl
* Each line is a JSON object representing a message or event
*/
import type { Message } from '../types/index.js';
import type { Result } from '../types/index.js';
/**
* Parse Claude CLI JSONL format
* Converts JSONL messages to standard Message format
*/
export declare class ClaudeCliParser {
/**
* Parse JSONL content from Claude Code session file
*
* @param jsonlContent - Raw JSONL content (one JSON per line)
* @param sessionId - Session ID for conversation grouping
* @returns Result with Message[] or error
*/
parse(jsonlContent: string, sessionId: string): Result<Message[]>;
}
//# sourceMappingURL=ClaudeCliParser.d.ts.map