Documentation
¶
Overview ¶
Package pi reads sessions from the pi coding agent's on-disk JSONL store.
Index ¶
- Constants
- func ResolveSessionsDir() (string, error)
- type Store
- func (s *Store) FindByID(id string) (*session.Session, error)
- func (s *Store) FindByLocator(id, path string) (*session.Session, error)
- func (s *Store) GrepKeys(query string, regex bool) (map[string]struct{}, error)
- func (s *Store) Messages(sessionID string, limit int) ([]session.Message, time.Time, int, error)
- func (s *Store) MessagesForSession(sess *session.Session, limit int) ([]session.Message, time.Time, int, error)
- func (s *Store) Scan() ([]*session.Session, error)
- func (s *Store) ScanFiltered(allow map[string]struct{}) ([]*session.Session, error)
Constants ¶
View Source
const EnvSessionsDir = "PI_CODING_AGENT_SESSION_DIR"
EnvSessionsDir is pi's own override for its sessions directory, honored so ccsession and pi always agree on where sessions live.
Variables ¶
This section is empty.
Functions ¶
func ResolveSessionsDir ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) FindByLocator ¶
func (*Store) MessagesForSession ¶
Click to show internal directories.
Click to hide internal directories.