Documentation
¶
Index ¶
- Variables
- func Add(d Deps, parts []string) error
- func AddProjectRule(d Deps, parts []string) error
- func AddRule(d Deps, parts []string) error
- func Build(d Deps) error
- func CleanSessionCache(d Deps) error
- func Clear(d Deps) error
- func CompactSummaryBody(sep, summaryLLM, retainedBlock string) string
- func ConfigBackup(d Deps) error
- func Connect(d Deps) error
- func DispatchBuiltinSlash(d Deps, parts []string, name string) (matched bool, err error)
- func ExitMessage(d Deps)
- func Instructions(d Deps) error
- func Language(d Deps, parts []string) error
- func LegacyTools(d Deps, parts []string) error
- func MaxResponse(d Deps, parts []string) error
- func Name(d Deps, parts []string) error
- func NewChat(d Deps) error
- func Onboard(d Deps) error
- func Plan(d Deps) error
- func PrintSystem(out io.Writer, msg string)
- func PrintSystemValue(out io.Writer, v any)
- func PrintSystemf(out io.Writer, format string, args ...any)
- func PromptIO(d Deps) config.PromptIO
- func Reasoning(d Deps, parts []string) error
- func Registry() [][]string
- func Remove(d Deps, parts []string) error
- func RemoveProjectRule(d Deps, parts []string) error
- func RemoveRule(d Deps, parts []string) error
- func RenderCompactSummaryBody(body string) string
- func Resume(d Deps, args []string) error
- func Rules(d Deps) error
- func RunSkillSlash(d Deps, e skills.SkillEntry) error
- func Skills(d Deps) error
- func SlashCheckpointAck(d Deps)
- func SlashGoto(d Deps, parts []string) error
- func SlashLog(d Deps, parts []string) error
- func SlashMCP(d Deps) error
- func SlashModels(d Deps) error
- func Stats(d Deps) error
- func Summarize(d Deps) error
- func SummarizeBody(d Deps) (string, error)
- func SummarizeProgressLine(dots int) string
- func TempChat(d Deps) error
- func Terminal(d Deps, parts []string) error
- func TestWeb(d Deps) error
- func Thinking(d Deps, parts []string) error
- func Threshold(d Deps, parts []string) error
- func Timeout(d Deps, parts []string) error
- func Version(d Deps) error
- func VersionString() string
- func WriteHelp(w io.Writer, projHex, projRoot string)
- func WriteLabeledTranscript(out io.Writer, msgs []chatstore.Message, model string)
- func WriteVersion(w io.Writer)
- type Deps
- type ListedModel
- type SummarizeProgress
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBuiltinExitChat = errors.New("exit chat")
Functions ¶
func AddProjectRule ¶ added in v0.20260522.1
func CleanSessionCache ¶
func CompactSummaryBody ¶
func ConfigBackup ¶
func DispatchBuiltinSlash ¶
func ExitMessage ¶
func ExitMessage(d Deps)
func Instructions ¶ added in v0.20260522.1
func LegacyTools ¶
func MaxResponse ¶
func PrintSystem ¶ added in v0.20260522.2
func PrintSystemValue ¶ added in v0.20260522.2
func PrintSystemf ¶ added in v0.20260522.2
func RemoveProjectRule ¶ added in v0.20260522.1
func RemoveRule ¶ added in v0.20260522.1
func RenderCompactSummaryBody ¶
RenderCompactSummaryBody applies terminal color to a plain-text summary body for display only. The returned string must never be persisted.
func RunSkillSlash ¶
func RunSkillSlash(d Deps, e skills.SkillEntry) error
func SlashCheckpointAck ¶
func SlashCheckpointAck(d Deps)
func SlashModels ¶
func SummarizeBody ¶
func SummarizeProgressLine ¶
SummarizeProgressLine returns the progress line text for a given number of dots.
func VersionString ¶
func VersionString() string
func WriteLabeledTranscript ¶
func WriteVersion ¶
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
Backend llm.CompletionBackend
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 SummarizeProgress ¶
type SummarizeProgress struct {
// contains filtered or unexported fields
}
func NewSummarizeProgress ¶
func NewSummarizeProgress(out io.Writer) *SummarizeProgress
func (*SummarizeProgress) Stop ¶
func (s *SummarizeProgress) Stop()
Source Files
¶
- add.go
- build.go
- builtin_slash.go
- checkpoint_cmds.go
- cleansessioncache.go
- clear.go
- configbackup.go
- connect.go
- connect_menu.go
- connect_pick.go
- deps.go
- exit.go
- help.go
- instructions.go
- language.go
- log.go
- max_response.go
- mcp_slash.go
- models.go
- name.go
- onboard.go
- plan.go
- reasoning.go
- remove.go
- resume.go
- rules.go
- skills.go
- stats.go
- summarize.go
- testweb.go
- thinking.go
- timeout.go
- transcript.go
- version.go
Click to show internal directories.
Click to hide internal directories.