claude

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: 18 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 claude coder. notifyInbox is the directory the injected Stop/Notification hooks drop their event files into; empty disables the hook injection.

func (*Coder) ActivityProfile added in v1.59.0

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

ActivityProfile: the transcript is a readable record, so it is watched. Interrupt keys count because an abort during plain streaming may write nothing at all, while the same keys inside a tool call are left to the record, which an abort there provably writes. The cap is the backstop for an abort that happened past the cockpit's hands.

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 claude 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 transcript.

func (*Coder) SessionActivityStamp added in v1.59.0

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

SessionActivityStamp answers when a session's transcript last moved, so the record watcher only re-reads a transcript 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