codex

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package codex reads sessions from Codex CLI's on-disk JSONL store.

Index

Constants

View Source
const EnvHome = "CODEX_HOME"

Variables

This section is empty.

Functions

func ResolveHome

func ResolveHome() (string, error)

Types

type Store

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

func Open

func Open() (*Store, error)

func OpenAt

func OpenAt(home string) *Store

func (*Store) FindByID

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

func (*Store) GrepKeys

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

func (*Store) Messages

func (s *Store) Messages(sessionID string, 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