opencode

package
v1.61.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

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

func New(notifyInbox string) *Coder

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

func (p *Coder) AssistantRunner() assistant.Runner

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) ID

func (p *Coder) ID() string

func (*Coder) RequiredTools

func (p *Coder) RequiredTools() []string

func (*Coder) SessionActivity

func (p *Coder) SessionActivity(sessionID string, entries, budget int) (coder.Activity, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL