copilot

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureBeepSetting

func EnsureBeepSetting() error

EnsureBeepSetting turns on the CLI's global beep option, which rings BEL in the pane when a session needs attention (and when a turn finishes). The bell is the only in-band signal the CLI offers for approval dialogs, so the bell watcher depends on it. Settings are global per user; every other key in settings.json is preserved and an already enabled beep is left alone.

Types

type Coder

type Coder struct {
	// contains filtered or unexported fields
}

func New

func New() *Coder

func (*Coder) ActivityProfile added in v1.59.0

func (p *Coder) ActivityProfile() coder.ActivityProfile

ActivityProfile: the event log is a readable record, so it is watched. Interrupt keys stay off: copilot writes its log densely enough that an abort speaks for itself, and the bell closes finished turns besides. The cap is the backstop for a lost bell or log entry.

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 copilot 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 event log.

func (*Coder) SessionActivityStamp added in v1.59.0

func (p *Coder) SessionActivityStamp(sessionID string) (time.Time, error)

SessionActivityStamp answers when a session's event log last moved, so the record watcher only re-reads a log that did.

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