Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverSessions ¶
func DiscoverSessions(cache *model.SessionCache) ([]*model.Session, error)
DiscoverSessions scans ~/.pi/agent/sessions for JSONL session files.
func ParsePiJSONL ¶
ParsePiJSONL reads a pi session JSONL file and returns a populated Session and the byte offset consumed (for incremental parsing on the next call).
func ParsePiJSONLIncremental ¶
func ParsePiJSONLIncremental(path string, offset int64, base *model.Session) (*model.Session, int64, error)
ParsePiJSONLIncremental reads only the tail of a pi JSONL file starting at the given byte offset, merging new entries into the provided base session.
func PiSessionsDir ¶
func PiSessionsDir() string
PiSessionsDir returns the path to ~/.pi/agent/sessions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.