Versions in this module Expand all Collapse all v0 v0.1.20 Nov 11, 2026 v0.1.19 Nov 10, 2026 v0.1.18 Nov 5, 2026 v0.1.17 Nov 5, 2026 v0.1.16 Nov 5, 2026 v0.1.15 Nov 5, 2026 v0.1.14 Nov 5, 2026 v0.1.13 Nov 5, 2026 v0.1.12 Nov 4, 2026 v0.1.11 Nov 4, 2026 Changes in this version + var ErrTimeout = errors.New("timed out") + func Copy(e Event) string + func Human(seconds int) string + type ActionAdapter struct + API Doer + Code string + TaskID int64 + func (a *ActionAdapter) Kind() string + func (a *ActionAdapter) Poll(ctx context.Context) (Observation, error) + type Adapter interface + Kind func() string + Poll func(ctx context.Context) (Observation, error) + type Counts struct + Checked int + Issues int + type Doer interface + Do func(ctx context.Context, req client.Request) (*client.Envelope, error) + type Event struct + At time.Time + Counts *Counts + ETA *int + Evidence Evidence + Kind string + Label string + Observed map[string]any + Reason string + Say string + Seq int + State State + Step int + Task string + Total int + func (e Event) Terminal() bool + type Evidence string + const EvidenceNone + const EvidenceStatus + const EvidenceStep + const EvidenceStructured + type Observation struct + Counts *Counts + Label string + Observed map[string]any + Reason string + State State + Step int + Total int + type PhoneAdapter struct + API Doer + OperateType string + PhoneID int64 + func (a *PhoneAdapter) Kind() string + func (a *PhoneAdapter) Poll(ctx context.Context) (Observation, error) + type RPAAdapter struct + API Doer + TaskID int64 + func (a *RPAAdapter) Kind() string + func (a *RPAAdapter) Poll(ctx context.Context) (Observation, error) + type Runner struct + Adapter Adapter + Emit func(Event) error + Heartbeat time.Duration + Interval time.Duration + Now func() time.Time + Observe time.Duration + Once bool + Sleep func(context.Context, time.Duration) bool + Timeout time.Duration + func (r *Runner) Run(ctx context.Context) (Event, error) + type State string + const StateDone + const StateFailed + const StateNeedsYou + const StateRunning + func (s State) Terminal() bool