Documentation
¶
Index ¶
- Variables
- func NewSessionScreen(s ssh.Session) (tcell.Screen, error)
- type A
- type Chat
- func (c *Chat) Init() error
- func (c *Chat) InputBlockedEnd(e *am.Event)
- func (c *Chat) InputBlockedState(e *am.Event)
- func (c *Chat) InterruptedEnd(e *am.Event)
- func (c *Chat) InterruptedState(e *am.Event)
- func (c *Chat) PromptState(e *am.Event)
- func (c *Chat) RequestingEnd(e *am.Event)
- func (c *Chat) RequestingState(e *am.Event)
- func (c *Chat) UIButtonInterState(e *am.Event)
- func (c *Chat) UIButtonSendState(e *am.Event)
- func (c *Chat) UICleanOutputState(e *am.Event)
- func (c *Chat) UIMsgEnter(e *am.Event) bool
- func (c *Chat) UIMsgState(e *am.Event)
- type Clock
- type ClockService
- type S
- type Stories
- type StoriesHandlers
- type TUI
- func (t *TUI) DisposingState(e *am.Event)
- func (t *TUI) Init(screen tcell.Screen, name string, stories *Stories, clock *Clock, chat *Chat) error
- func (t *TUI) InitComponents()
- func (t *TUI) Logger() *slog.Logger
- func (t *TUI) Redraw()
- func (t *TUI) Start(dispose func() error) error
- func (t *TUI) Stop() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ParseArgs = shared.ParseArgs
View Source
var Pass = shared.Pass
View Source
var PassRPC = shared.PassRPC
Functions ¶
Types ¶
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
TODO merge into TUI
func (*Chat) InputBlockedEnd ¶ added in v0.2.0
func (*Chat) InputBlockedState ¶ added in v0.2.0
func (*Chat) InterruptedEnd ¶ added in v0.2.0
func (*Chat) InterruptedState ¶ added in v0.2.0
func (*Chat) PromptState ¶
func (*Chat) RequestingEnd ¶
func (*Chat) RequestingState ¶
RequestingState with progress indicator
func (*Chat) UIButtonInterState ¶ added in v0.5.0
func (*Chat) UIButtonSendState ¶ added in v0.2.0
func (*Chat) UICleanOutputState ¶ added in v0.2.0
func (*Chat) UIMsgState ¶ added in v0.5.0
type Clock ¶ added in v0.2.0
type Clock struct {
// contains filtered or unexported fields
}
TODO merge into TUI TODO bind mem to the clock
func (*Clock) UIRenderClockEnter ¶ added in v0.5.0
func (*Clock) UIRenderClockState ¶ added in v0.5.0
type ClockService ¶ added in v0.5.0
type ClockService struct {
Agent *am.Machine
Cfg *shared.Config
// agent's history
Hist func() (amhist.MemoryApi, error)
SeriesLen int
Height int
// contains filtered or unexported fields
}
func (*ClockService) Data ¶ added in v0.5.0
func (c *ClockService) Data() [][]int
func (*ClockService) UIUpdateClockEnter ¶ added in v0.5.0
func (c *ClockService) UIUpdateClockEnter(e *am.Event) bool
func (*ClockService) UIUpdateClockState ¶ added in v0.5.0
func (c *ClockService) UIUpdateClockState(e *am.Event)
type Stories ¶ added in v0.2.0
type Stories struct {
// contains filtered or unexported fields
}
TODO merge into TUI
func NewStories ¶ added in v0.2.0
func NewStories(tui *TUI, actions []shared.ActionInfo, stories []shared.StoryInfo, cfg *shared.Config) *Stories
NewStories returns a new TUI dedicated to showing stories and their progress (as buttons).
func (*Stories) UICleanOutputState ¶ added in v0.5.0
func (*Stories) UIRenderStoriesState ¶ added in v0.5.0
type StoriesHandlers ¶ added in v0.2.0
type StoriesHandlers struct {
// contains filtered or unexported fields
}
StoriesHandlers are handlers for the agent's machine from the Stories TUI.
type TUI ¶ added in v0.5.0
type TUI struct {
*ssam.DisposedHandlers
MachTUI *am.Machine
ClientAddr string
// contains filtered or unexported fields
}
func (*TUI) DisposingState ¶ added in v0.5.0
func (*TUI) InitComponents ¶ added in v0.5.0
func (t *TUI) InitComponents()
Click to show internal directories.
Click to hide internal directories.