Versions in this module Expand all Collapse all v0 v0.3.32 Sep 17, 2026 v0.3.31 Sep 17, 2026 Changes in this version + var ErrBusy = errors.New("agent busy") + var ErrNoPane = errors.New("no live agent pane") + func TaggedPane(runner Runner, taskID int64, role string) (string, error) + type BusyError struct + Status string + TaskID int64 + func (e *BusyError) Error() string + func (e *BusyError) Is(target error) bool + type NoPaneError struct + TaskID int64 + func (e *NoPaneError) Error() string + func (e *NoPaneError) Is(target error) bool + type Prompt struct + Force bool + Submit bool + TaskID int64 + Text string + type Runner interface + Output func(name string, args ...string) ([]byte, error) + Run func(name string, args ...string) error + type Sender struct + func New(runner Runner, store Store) *Sender + func NewForHost(runner Runner, store Store, host string) *Sender + func (s *Sender) AgentPane(taskID int64) (string, error) + func (s *Sender) Send(p Prompt) error + func (s *Sender) SendAndWait(ctx context.Context, p Prompt, timeout time.Duration) (db.AgentTurn, error) + func (s *Sender) SendKeys(taskID int64, keys ...string) error + func (s *Sender) SendKeysToPane(pane string, keys ...string) error + func (s *Sender) SendToPane(pane string, p Prompt) error + func (s *Sender) SendToPaneAndWait(ctx context.Context, pane string, p Prompt, timeout time.Duration) (db.AgentTurn, error) + type Store interface + AgentTurnState func(taskID int64) (db.AgentTurn, error) + GetTask func(id int64) (*db.Task, error) + WaitForAgentReply func(ctx context.Context, taskID int64, since db.AgentTurn, timeout time.Duration) (db.AgentTurn, error)