Versions in this module Expand all Collapse all v0 v0.1.0 Mar 30, 2026 Changes in this version + type InvalidTransitionError struct + From State + To State + func (e *InvalidTransitionError) Error() string + type Loop struct + func New(cfg *config.Config, r *run.Run, primary, secondary agent.Agent) *Loop + func (l *Loop) MCPServerAddr() string + func (l *Loop) Resume(ctx context.Context) error + func (l *Loop) Run(ctx context.Context) error + func (l *Loop) Status() *Status + type Machine struct + func NewMachine() *Machine + func (m *Machine) Current() State + func (m *Machine) History() []State + func (m *Machine) IsTerminal() bool + func (m *Machine) Transition(newState State) error + type SingleLoop struct + func NewSingle(cfg *config.Config, r *run.Run, a agent.Agent) *SingleLoop + func (l *SingleLoop) MCPServerAddr() string + func (l *SingleLoop) Resume(ctx context.Context) error + func (l *SingleLoop) Run(ctx context.Context) error + func (l *SingleLoop) Status() *Status + type State string + const StateComplete + const StateFailed + const StateInit + const StateReviewing + const StateWorking + func FromRunState(rs run.State) State + func (s State) ToRunState() run.State + type Status struct + BridgeStatus *bridge.Status + Elapsed time.Duration + Iteration int + MaxIterations int + RunID int + State State