Skip to main content

parse_cc_line

Function parse_cc_line 

Source
pub fn parse_cc_line(line: &str) -> Option<ParsedEvent>
Expand description

Parse one Claude Code JSONL line.

Returns None for:

  • blank or whitespace-only lines
  • lines that are not valid JSON objects
  • lines that lack a top-level uuid field
  • lines that lack a top-level sessionId field

The returned raw and text fields have secrets masked.