Versions in this module Expand all Collapse all v1 v1.108.0 Aug 31, 2026 Changes in this version + const TrailerKey + func FindRawSessionFile(rawDir, sessionID string) (string, error) + func NonGitDir(dir string) (string, error) + func NowTimestamp() string + func ParseSessionIDsFromTrailer(message string) []string + func RawSessionPath(rawDir, sessionID string) string + func RawSubagentDir(rawDir, sessionID string) string + func SanitizeID(id string) string + func ValidSessionID(id string) bool + type AILineAttribution struct + Files map[string][]aicodingsession.LineRange + SessionID string + type CommitRecord struct + Message string + SHA string + SessionIDs []string + Timestamp string + Tracked bool + type SessionRecord struct + Active bool + AgentVersion string + Model string + Provider string + SessionID string + StartedAt string + type Store struct + func Locate() (store *Store, root string, err error) + func NewGitStore(gitDir string) *Store + func NewOutOfTreeStore(dir string) *Store + func (s *Store) AttestationStatePath() string + func (s *Store) ClearTraceRunActive() error + func (s *Store) CopyRawSessionFile(sessionID, srcPath string) error + func (s *Store) CopySessionJSONL(sessionID, sourceDir string) error + func (s *Store) DeleteFileSnapshot(sessionID, filePath string) + func (s *Store) DeleteShellPreSignature(sessionID string) + func (s *Store) Dir() string + func (s *Store) GCOrphans(liveSHAs map[string]bool) error + func (s *Store) GitDir() string + func (s *Store) InitTraceDir() error + func (s *Store) IsGit() bool + func (s *Store) IsTraceInitialized() bool + func (s *Store) IsTraceRunActive() bool + func (s *Store) LoadAILineAttribution(sessionID string) *AILineAttribution + func (s *Store) LoadAllAILineAttributions() ([]*AILineAttribution, error) + func (s *Store) LoadAllCommitRecords() ([]*CommitRecord, error) + func (s *Store) LoadAllSessionRecords() (map[string]*SessionRecord, error) + func (s *Store) LoadFileSnapshot(sessionID, filePath string) ([]byte, error) + func (s *Store) LoadSessionRecord(sessionID string) (*SessionRecord, error) + func (s *Store) LoadShellPreSignature(sessionID string) (map[string]string, error) + func (s *Store) LogFilePath() string + func (s *Store) MarkTraceInitialized() error + func (s *Store) MarkTraceRunActive() error + func (s *Store) RawSessionDir() string + func (s *Store) RecordLineRanges(sessionID, filePath string, ranges []aicodingsession.LineRange) error + func (s *Store) RemoveTraceDir() error + func (s *Store) RemoveTraceInitialized() error + func (s *Store) SaveCommitRecord(rec *CommitRecord) error + func (s *Store) SaveFileSnapshot(sessionID, filePath string, content []byte) error + func (s *Store) SaveSessionRecord(rec *SessionRecord) error + func (s *Store) SaveShellPreSignature(sessionID string, sig map[string]string) error + func (s *Store) SessionRecordExists(sessionID string) bool + func (s *Store) WipeTraceDir() error