Documentation
¶
Index ¶
- type Attempt
- type ConflictRecord
- type LongTerm
- type RepoProfile
- type Session
- type Store
- func (s *Store) PersistSession(repoRoot string, session *Session)
- func (s *Store) RecordConflict(rec ConflictRecord)
- func (s *Store) RepoContext(repoRoot string) string
- func (s *Store) RepoProfile(repoRoot string) RepoProfile
- func (s *Store) UpdateRepoProfile(repoRoot string, fn func(*RepoProfile))
- func (s *Store) UpdateUserStyle(fn func(*UserPreferences))
- func (s *Store) UserStyle() UserPreferences
- type UserPreferences
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConflictRecord ¶
type LongTerm ¶
type LongTerm struct {
RepoPatterns map[string]RepoProfile `json:"repo_patterns"`
UserStyle UserPreferences `json:"user_style"`
ConflictHistory []ConflictRecord `json:"conflict_history"`
}
type RepoProfile ¶
type Session ¶
type Session struct {
Task string
Attempts []Attempt
LastOutput string
RepoRoot string
StartTime time.Time
// contains filtered or unexported fields
}
func NewSession ¶
func (*Session) RepoContext ¶
func (*Session) SetRepoContext ¶
func (*Session) UpdateScore ¶
func (*Session) UpdateUserAction ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) PersistSession ¶
func (*Store) RecordConflict ¶
func (s *Store) RecordConflict(rec ConflictRecord)
func (*Store) RepoContext ¶
func (*Store) RepoProfile ¶
func (s *Store) RepoProfile(repoRoot string) RepoProfile
func (*Store) UpdateRepoProfile ¶
func (s *Store) UpdateRepoProfile(repoRoot string, fn func(*RepoProfile))
func (*Store) UpdateUserStyle ¶
func (s *Store) UpdateUserStyle(fn func(*UserPreferences))
func (*Store) UserStyle ¶
func (s *Store) UserStyle() UserPreferences
type UserPreferences ¶
Click to show internal directories.
Click to hide internal directories.