Documentation
¶
Index ¶
- type Coder
- func (p *Coder) ActivityProfile() coder.ActivityProfile
- func (p *Coder) AgentRepository() coder.AgentRepository
- func (p *Coder) AssistantRunner() assistant.Runner
- func (p *Coder) ControlMapper() terminal.ControlMapper
- func (p *Coder) GlobalInstructions() coder.GlobalInstructions
- func (p *Coder) ID() string
- func (p *Coder) RequiredTools() []string
- func (p *Coder) SessionActivity(sessionID string, entries, budget int) (coder.Activity, error)
- func (p *Coder) SessionRepository() coder.SessionRepository
- func (p *Coder) SessionRuntime() coder.SessionRuntime
- func (p *Coder) SkillRepository() coder.SkillRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coder ¶
type Coder struct {
// contains filtered or unexported fields
}
func New ¶
New builds the opencode coder. notifyInbox is the directory the injected notification plugin drops its event files into, claude's constructor shape; empty disables the injection.
func (*Coder) ActivityProfile ¶ added in v1.59.0
func (p *Coder) ActivityProfile() coder.ActivityProfile
ActivityProfile: the record lives behind opencode's CLI, so there is nothing to watch; the injected plugin reports the turns instead (busy and idle events through the inbox). Interrupt keys stay off deliberately: an Escape here does not reliably mean abort, and with no readable record there is nothing to withdraw a wrong hint. The cap is the backstop for a lost plugin event.
func (*Coder) AgentRepository ¶
func (p *Coder) AgentRepository() coder.AgentRepository
func (*Coder) AssistantRunner ¶
AssistantRunner returns the conversation capability, or nil when the installed opencode cannot do what a turn needs. A pass holds for the process, a miss is probed again after a pause, see coder.CapabilityProbe.
func (*Coder) ControlMapper ¶
func (p *Coder) ControlMapper() terminal.ControlMapper
func (*Coder) GlobalInstructions ¶
func (p *Coder) GlobalInstructions() coder.GlobalInstructions
func (*Coder) RequiredTools ¶
func (*Coder) SessionActivity ¶
SessionActivity reports what a session last did and whether its turn is over, read from that session's rows.
func (*Coder) SessionRepository ¶
func (p *Coder) SessionRepository() coder.SessionRepository
func (*Coder) SessionRuntime ¶
func (p *Coder) SessionRuntime() coder.SessionRuntime
func (*Coder) SkillRepository ¶
func (p *Coder) SkillRepository() coder.SkillRepository