codex

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindSessions

func FindSessions(sessionsDir string, roots []string) ([]model.Session, model.ScanReport, error)

FindSessions scans the dated rollout store and returns repository-scoped root sessions with every child and fork source needed to decode each tree.

func ScanStore

func ScanStore(codexHome string) ([]Entry, ScanReport, error)

ScanStore builds the first-line metadata index used by FIND. Rollout bodies are not read here.

func SessionWorkingDir

func SessionWorkingDir(path string) (string, bool, error)

SessionWorkingDir returns the root session working directory from a rollout's first-line metadata. Child and internal rollouts are excluded.

Types

type Entry

type Entry struct {
	Path  string
	Meta  *codextranscript.SessionMeta
	Class codextranscript.ThreadClass
}

type Files

type Files = model.Files

func Find

func Find(index []Entry, rootEntry Entry) (Files, error)

Find returns the file list for rootEntry using only the first-line index.

func RootFile

func RootFile(path string) Files

RootFile is the root-only file list used when a damaged store index cannot resolve the rest of a tree.

type ScanReport

type ScanReport struct {
	SkippedFiles int      `json:"skipped_files"`
	SkippedPaths []string `json:"skipped_paths,omitempty"`
}

Jump to

Keyboard shortcuts

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