Documentation
¶
Index ¶
- func NewSessionScreen(s ssh.Session) (tcell.Screen, error)
- 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 TUIAgent
- func (t *TUIAgent) DisposingState(e *am.Event)
- func (t *TUIAgent) Init(screen tcell.Screen, name string, stories *Stories, clock *Clock, chat *Chat) error
- func (t *TUIAgent) InitComponents()
- func (t *TUIAgent) Logger() *slog.Logger
- func (t *TUIAgent) Redraw()
- func (t *TUIAgent) Start(dispose func() error) error
- func (t *TUIAgent) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
TODO merge into TUIAgent
func (*Chat) InputBlockedEnd ¶
func (*Chat) InputBlockedState ¶
func (*Chat) InterruptedEnd ¶
func (*Chat) InterruptedState ¶
func (*Chat) PromptState ¶
func (*Chat) RequestingEnd ¶
func (*Chat) RequestingState ¶
RequestingState with progress indicator
func (*Chat) UIButtonInterState ¶
func (*Chat) UIButtonSendState ¶
func (*Chat) UICleanOutputState ¶
func (*Chat) UIMsgState ¶
type Clock ¶
type Clock struct {
// contains filtered or unexported fields
}
TODO merge into TUIAgent TODO bind mem to the clock
func (*Clock) UIRenderClockState ¶
type ClockService ¶
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 ¶
func (c *ClockService) Data() [][]int
func (*ClockService) UIUpdateClockEnter ¶
func (c *ClockService) UIUpdateClockEnter(e *am.Event) bool
func (*ClockService) UIUpdateClockState ¶
func (c *ClockService) UIUpdateClockState(e *am.Event)
type Stories ¶
type Stories struct {
// contains filtered or unexported fields
}
TODO merge into TUIAgent
func NewStories ¶
func NewStories(tui *TUIAgent, actions []shared.ActionInfo, stories []shared.StoryInfo, cfg *shared.Config) *Stories
NewStories returns a new TUIAgent dedicated to showing stories and their progress (as buttons).
func (*Stories) UICleanOutputState ¶
func (*Stories) UIRenderStoriesState ¶
type StoriesHandlers ¶
type StoriesHandlers struct {
// contains filtered or unexported fields
}
StoriesHandlers are handlers for the agent's machine from the Stories TUIAgent.
type TUIAgent ¶
type TUIAgent struct {
*ssam.DisposedHandlers
// MachTUI is a mach dedicated to this UI instance (fork)
MachTUI *am.Machine
ClientAddr string
Id string
// contains filtered or unexported fields
}
func (*TUIAgent) DisposingState ¶
func (*TUIAgent) InitComponents ¶
func (t *TUIAgent) InitComponents()
Click to show internal directories.
Click to hide internal directories.