Documentation
¶
Index ¶
- type App
- func (a *App) Confirm(ctx context.Context, message string) (bool, error)
- func (a *App) Elicit(ctx context.Context, req tool.ElicitRequest) (tool.ElicitResult, error)
- func (a *App) Run() error
- func (a *App) SetBackgroundStatus(message string, warning bool)
- func (a *App) WithTerminal(t *inline.Terminal)
- type AppPhase
- type Editor
- func (e *Editor) AddHistory(entry string)
- func (e *Editor) HandleKey(ev inline.KeyEvent) bool
- func (e *Editor) HistoryNext() bool
- func (e *Editor) HistoryPrev() bool
- func (e *Editor) Insert(text string)
- func (e *Editor) InsertPaste(text string)
- func (e *Editor) Render(width, maxRows int, chrome EditorChrome) ([]string, inline.Pos)
- func (e *Editor) ReplaceRange(from, to int, text string)
- func (e *Editor) ResetHistoryCursor()
- func (e *Editor) SetPlaceholder(p string)
- func (e *Editor) SetRuleColor(c ansi.Color)
- func (e *Editor) SetText(text string)
- func (e *Editor) Text() string
- type EditorChrome
- type Overlay
- type Popup
- type PopupItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) Elicit ¶ added in v0.10.1
func (a *App) Elicit(ctx context.Context, req tool.ElicitRequest) (tool.ElicitResult, error)
func (*App) SetBackgroundStatus ¶ added in v0.15.0
SetBackgroundStatus reports optional workspace setup without interrupting input or adding infrastructure messages to the conversation transcript.
func (*App) WithTerminal ¶ added in v0.11.0
WithTerminal replaces the terminal, used by tests.
type Editor ¶ added in v0.11.0
type Editor struct {
// contains filtered or unexported fields
}
Editor is a multiline input bounded by horizontal rules. The rule color is a status channel (mode, activity) set by the app.
func (*Editor) AddHistory ¶ added in v0.11.0
func (*Editor) HandleKey ¶ added in v0.11.0
HandleKey processes an input event. It reports whether the event was consumed; unconsumed navigation (history recall) is handled by the caller.
func (*Editor) HistoryNext ¶ added in v0.11.0
func (*Editor) HistoryPrev ¶ added in v0.11.0
func (*Editor) InsertPaste ¶ added in v0.16.10
func (*Editor) Render ¶ added in v0.11.0
Render returns the editor lines (rules included) and the cursor position relative to the returned block.
func (*Editor) ReplaceRange ¶ added in v0.11.7
ReplaceRange substitutes the rune range [from, to) with text and leaves the cursor after the inserted text.
func (*Editor) ResetHistoryCursor ¶ added in v0.11.0
func (e *Editor) ResetHistoryCursor()
func (*Editor) SetPlaceholder ¶ added in v0.11.0
func (*Editor) SetRuleColor ¶ added in v0.11.0
type EditorChrome ¶ added in v0.12.1
type Overlay ¶ added in v0.11.0
Overlay is a full-screen view replacing the chat frame. HandleKey returns true when the overlay should close.
type Popup ¶ added in v0.11.0
type Popup struct {
// contains filtered or unexported fields
}
Popup is the single list component behind slash-command completion, file mentions and the model/effort pickers. It renders below the composer. Standalone pickers (popupList) capture all input; the other kinds filter as the user types in the editor.
func (*Popup) HandleKey ¶ added in v0.11.0
HandleKey processes navigation. Returns (consumed, closed).
func (*Popup) SetSelected ¶ added in v0.11.0
Source Files
¶
- agent_features.go
- app.go
- cells.go
- command_center.go
- commands.go
- contextview.go
- copy_export.go
- diffpanel.go
- diffview.go
- drafts.go
- editor.go
- editor_paste.go
- elicit.go
- file.go
- motion.go
- operations.go
- overlay.go
- paste.go
- popup.go
- popup_commands.go
- problemsview.go
- session_picker.go
- skill_refresh.go
- state.go
- status.go
- stream.go
- style.go
- transcript.go
- turn_queue.go
- twopane.go
- view.go