Skip to main content

Module cursor

Module cursor 

Source
Expand description

Parse Cursor agent-transcript .jsonl files into Events. Pure parser — no notify dependency, no IO beyond file reads.

Functions§

parse_cursor_line
Parse one .jsonl line. Returns Some(Event) for action-bearing lines; None for text-only or non-action lines.
scan_session_dir
Walk all .jsonl files directly under dir; return inferred SessionRecord + events.
scan_session_dir_all
Main session plus one session per subagents/*.jsonl (Cursor subagent transcripts).