commands

package
v0.20260520.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBuiltinExitChat = errors.New("exit chat")

Functions

func Add

func Add(d Deps, parts []string) error

func Build

func Build(d Deps) error

func CleanSessionCache

func CleanSessionCache(d Deps) error

func Clear

func Clear(d Deps) error

func CompactSummaryBody

func CompactSummaryBody(sep, summaryLLM, retainedBlock string) string

func ConfigBackup

func ConfigBackup(d Deps) error

func Connect

func Connect(d Deps) error

func DispatchBuiltinSlash

func DispatchBuiltinSlash(d Deps, parts []string, name string) (matched bool, err error)

func ExitMessage

func ExitMessage(d Deps)

func Language

func Language(d Deps, parts []string) error

func LegacyTools

func LegacyTools(d Deps, parts []string) error

func MaxResponse

func MaxResponse(d Deps, parts []string) error

func Name

func Name(d Deps, parts []string) error

func NewChat

func NewChat(d Deps) error

func Onboard

func Onboard(d Deps) error

func Plan

func Plan(d Deps) error

func Reasoning

func Reasoning(d Deps, parts []string) error

func Registry

func Registry() [][]string

func Remove

func Remove(d Deps, parts []string) error

func RenderCompactSummaryBody

func RenderCompactSummaryBody(body string) string

RenderCompactSummaryBody applies terminal color to a plain-text summary body for display only. The returned string must never be persisted.

func Resume

func Resume(d Deps, args []string) error

func RunSkillSlash

func RunSkillSlash(d Deps, e skills.SkillEntry) error

func Skills

func Skills(d Deps) error

func SlashCheckpointAck

func SlashCheckpointAck(d Deps)

func SlashGoto

func SlashGoto(d Deps, parts []string) error

func SlashLog

func SlashLog(d Deps, parts []string) error

func SlashMCP

func SlashMCP(d Deps) error

func SlashModels

func SlashModels(d Deps) error

func Stats

func Stats(d Deps) error

func Summarize

func Summarize(d Deps) error

func SummarizeBody

func SummarizeBody(d Deps) (string, error)

func SummarizeProgressLine

func SummarizeProgressLine(dots int) string

SummarizeProgressLine returns the progress line text for a given number of dots.

func TempChat

func TempChat(d Deps) error

func Terminal

func Terminal(d Deps, parts []string) error

func TestWeb

func TestWeb(d Deps) error

func Thinking

func Thinking(d Deps, parts []string) error

func Threshold

func Threshold(d Deps, parts []string) error

func Timeout

func Timeout(d Deps, parts []string) error

func Version

func Version(d Deps) error

func VersionString

func VersionString() string

func WriteHelp

func WriteHelp(w io.Writer, projHex, projRoot string)

func WriteLabeledTranscript

func WriteLabeledTranscript(out io.Writer, msgs []chatstore.Message, model string)

func WriteVersion

func WriteVersion(w io.Writer)

Types

type Deps

type Deps struct {
	Ctx context.Context

	Out      io.Writer
	Stdin    io.Reader
	ReadLine func(prompt string) (string, error)

	Cfg     *config.Root
	SaveCfg func() error

	ProjHex  string
	ProjRoot string

	Session    func() *chatstore.Session
	SetSession func(*chatstore.Session)

	SetMode func(string)
	GetMode func() string

	ApplyCurrentModel            func(providerName, modelID string) error
	Model                        func() string
	Provider                     func() *config.Provider
	CompactionThresholdTokens    func() int64
	SetCompactionThresholdTokens func(int64)

	Client openai.Client

	ResetReadlineHistory  func()
	AppendReadlineHistory func(line string) error

	PrefillInput      func(string)
	SubmitUserMessage func(string) error

	PrintWelcomeBanner func()

	CheckpointGoto func(*checkpoint.FullCheckpointID) error

	PersistSession func() error
	MutateSession  func(fn func(*chatstore.Session))

	GetReplShellFirst func() bool
	SetReplShellFirst func(bool)

	GetEphemeralSession func() bool
	SetEphemeralSession func(bool)
}

type ListedModel

type ListedModel struct {
	Prov  string
	Model string
}

type SummarizeProgress

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

func NewSummarizeProgress

func NewSummarizeProgress(out io.Writer) *SummarizeProgress

func (*SummarizeProgress) Stop

func (s *SummarizeProgress) Stop()

Jump to

Keyboard shortcuts

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