Versions in this module Expand all Collapse all v0 v0.2.0 May 15, 2026 v0.1.0 May 12, 2026 Changes in this version + type CommandCount struct + Command string + Count int + type DirCount struct + Count int + Dir string + type Entry struct + CWD string + Command string + CreatedAt time.Time + Duration time.Duration + ExitCode int + GitBranch string + ID string + SessionID string + type HistoryStats struct + SuccessRate float64 + TopCommands []CommandCount + TopDirectories []DirCount + TotalCommands int + UniqueCommands int + type SearchOpts struct + CWD string + ExitCode *int + Limit int + SessionID string + Since time.Time + type Store struct + func New(dbPath string) (*Store, error) + func (s *Store) Close() error + func (s *Store) Recent(n int) ([]Entry, error) + func (s *Store) Record(entry Entry) error + func (s *Store) Search(query string, opts SearchOpts) ([]Entry, error) + func (s *Store) SearchByDir(dir string, limit int) ([]Entry, error) + func (s *Store) Stats() (*HistoryStats, error)