omp

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package omp reads Oh My Pi sessions through the Pi-compatible JSONL store.

Index

Constants

View Source
const EnvAgentDir = "PI_CODING_AGENT_DIR"

EnvAgentDir is Oh My Pi's override for its agent root.

View Source
const EnvConfigDir = "PI_CONFIG_DIR"

EnvConfigDir changes the config root directory under the user's home. Oh My Pi derives its agent root from this value when EnvAgentDir is unset.

Variables

This section is empty.

Functions

func ResolveSessionsDir

func ResolveSessionsDir() (string, error)

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func Open

func Open() (*Store, error)

func OpenAt

func OpenAt(sessionsDir string) *Store

func (*Store) FindByID

func (s *Store) FindByID(id string) (*session.Session, error)

func (*Store) FindByLocator

func (s *Store) FindByLocator(id, path string) (*session.Session, error)

func (*Store) GrepKeys

func (s *Store) GrepKeys(query string, regex bool) (map[string]struct{}, error)

func (*Store) MessagesForSession

func (s *Store) MessagesForSession(sess *session.Session, limit int) ([]session.Message, time.Time, int, error)

func (*Store) Scan

func (s *Store) Scan() ([]*session.Session, error)

func (*Store) ScanFiltered

func (s *Store) ScanFiltered(allow map[string]struct{}) ([]*session.Session, error)

Jump to

Keyboard shortcuts

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