history

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutcomeAccepted = "accepted"
	OutcomeRejected = "rejected"
	OutcomeCopied   = "copied"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	ID        int64
	RepoID    int64
	CwdRel    string
	Intent    string
	Command   string
	Outcome   string
	CreatedAt time.Time
}

type Store

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

func Open

func Open(dbPath string) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) EnsureRepo

func (s *Store) EnsureRepo(rootPath string) (int64, error)

func (*Store) ProjectHistory

func (s *Store) ProjectHistory(repoID int64, cwdRel string, limit int) ([]Entry, error)

func (*Store) RecentGlobal

func (s *Store) RecentGlobal(limit int) ([]Entry, error)

func (*Store) Record

func (s *Store) Record(repoID int64, cwdRel, intent, command, outcome string) error

Jump to

Keyboard shortcuts

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