Expand description
JSONL parsing + session assembly for Pi session files.
Structs§
- PiSession
- In-memory representation of a Pi session file (plus optional parent).
- Session
Meta - Lightweight summary of a session on disk.
Constants§
- DEFAULT_
MAX_ PARENT_ DEPTH - Default maximum depth when following
parentSessionchains.
Functions§
- count_
entries - Count the number of non-header entries in a session file (by counting non-empty lines and subtracting 1 for the header).
- list_
session_ files - List all
*.jsonlsession files in a project’s directory, sorted by modification time descending (newest first). - peek_
header - Public: read only the header of a session file. Used by
io.rsto buildSessionMetawithout parsing every entry. - read_
session - Read a session by ID from within a project.
- read_
session_ from_ file - Read and parse a session JSONL file. Does NOT follow
parentSession. - read_
session_ with_ parent - Read a session and, if it has a
parentSession, recursively attach the parent.