Documentation
¶
Index ¶
- func Actions() []string
- func HunkKey(h model.Hunk) string
- type Callbacks
- type Data
- type Model
- func (m *Model) Init() tea.Cmd
- func (m *Model) Reload(d *Data)
- func (m *Model) Selection() (unit, hunk int, focus int, view int)
- func (m *Model) SetKeymap(overrides map[string]string) error
- func (m *Model) SetLightTheme()
- func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *Model) View() string
- type TimelineStep
- type Unit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Callbacks ¶
type Callbacks struct {
SetUnitStatus func(unitID, status string) error
SetHunkStatus func(hunkKey, status string) error
// Ask is nil when no LLM is configured.
Ask func(question string) (string, error)
// Refresh returns new data when the sessions changed, or nil. Nil
// Refresh turns off the reload.
Refresh func() (*Data, error)
}
type Data ¶
type Data struct {
Title string
Agent string
Fidelity string
Status string
Steps int
Files int
Units []Unit
Flags []model.Flag
Sessions map[string]*store.SessionData
Provenance map[string][]model.HunkProvenance
Rationales map[string]model.Rationale
StepSession map[string]string
ActorKind map[string]string
Intent []model.IntentItem
Timeline []TimelineStep
LLMOn bool
RepoTop string
// LineSteps maps a file and a line of the new file to the step that wrote it.
LineSteps map[string]map[int]string
// HunkStatus maps a HunkKey to understood or questioned.
HunkStatus map[string]string
}
type Model ¶
type Model struct {
Editor func(file string, line int) *exec.Cmd
// contains filtered or unexported fields
}
func (*Model) Reload ¶ added in v0.2.0
Reload swaps in new data and keeps the selected hunk and prompt.
func (*Model) SetKeymap ¶
SetKeymap maps extra keys to actions, for example {"quit": "ctrl+q"}. The default keys keep working.
func (*Model) SetLightTheme ¶
func (m *Model) SetLightTheme()
SetLightTheme uses a syntax style for light terminals.
type TimelineStep ¶
Click to show internal directories.
Click to hide internal directories.