pi

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 9 Imported by: 0

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

func ParsePiJSONL(path string) (*model.Session, int64, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL