Documentation
¶
Overview ¶
Package changes implements the REPL's Changes panel: a live view of the working tree's git changes shown beside, or instead of, the conversation.
Index ¶
- func PadBlock(block string, width, height int) string
- type Panel
- func (p *Panel) Blur()
- func (p *Panel) Click(x, y int) Result
- func (p *Panel) Contains(x, y int) bool
- func (p *Panel) Cycle() Result
- func (p *Panel) Enabled() bool
- func (p *Panel) Focus()
- func (p *Panel) Focused() bool
- func (p *Panel) FullVisible() bool
- func (p *Panel) HandleKey(msg tea.KeyPressMsg) Result
- func (p *Panel) Indicator() string
- func (p *Panel) ObserveActivity(activity agentcore.ToolActivity)
- func (p *Panel) ObserveToolCall(toolCall *agentcore.ToolCall)
- func (p *Panel) OpenCmd() tea.Cmd
- func (p *Panel) OutputWidth() int
- func (p *Panel) RequestFullScan()
- func (p *Panel) Separator() string
- func (p *Panel) SetSize(width, height int) bool
- func (p *Panel) SetSuspended(suspended bool)
- func (p *Panel) SetTurnActive(active bool)
- func (p *Panel) SplitVisible() bool
- func (p *Panel) Tick() (tea.Cmd, bool)
- func (p *Panel) Update(msg tea.Msg) bool
- func (p *Panel) View() string
- func (p *Panel) Visible() bool
- func (p *Panel) Wheel(x, y, delta int)
- func (p *Panel) X() int
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Panel ¶
type Panel struct {
// contains filtered or unexported fields
}
The zero value is a disabled Panel; use New.
func (*Panel) FullVisible ¶
func (*Panel) HandleKey ¶
func (p *Panel) HandleKey(msg tea.KeyPressMsg) Result
HandleKey lets the host handle unrecognized keys.
func (*Panel) ObserveActivity ¶
func (p *Panel) ObserveActivity(activity agentcore.ToolActivity)
ObserveActivity remembers edit paths from tool-start events because subagent tool-end events omit tool input.
func (*Panel) ObserveToolCall ¶
ObserveToolCall treats tool inputs only as refresh hints; git provides the data.
func (*Panel) OutputWidth ¶
func (*Panel) RequestFullScan ¶
func (p *Panel) RequestFullScan()
func (*Panel) SetSuspended ¶
Full-screen mode must not cover a prompt in the conversation area.
func (*Panel) SetTurnActive ¶
SetTurnActive schedules a full scan after turns that ran bash or MCP tools.