Skip to main content

parse_session_file

Function parse_session_file 

Source
pub fn parse_session_file(
    path: &Path,
) -> Result<Vec<SessionCommand>, RippyError>
Expand description

Parse a single JSONL session file for Bash tool commands.

Extracts tool_use entries with name == "Bash" and correlates them with tool_result entries to determine if the user allowed or denied each command.

§Errors

Returns RippyError::Parse if the file cannot be read.