Skip to main content

Module parse

Module parse 

Source
Expand description

JSONL line parsers for Claude Code and Codex CLI session transcripts.

Every function here is deterministic and side-effect-free so the unit tests can run without any runtime or DB setup.

Structs§

ParsedEvent
A single parsed event, source-agnostic.

Functions§

parse_cc_line
Parse one Claude Code JSONL line.
parse_chatgpt_export
Parse a ChatGPT data-export conversations.json file: parses the whole file at once (unlike the line-at-a-time parse_cc_line/parse_codex_line) and returns every message-bearing event across every conversation, in deterministic DFS preorder per conversation.
parse_codex_line
Parse one Codex CLI JSONL line.