Documentation
¶
Index ¶
- Variables
- func Activate(d Deps, parts []string) error
- func Add(d Deps, parts []string) error
- func AddProjectRule(d Deps, parts []string) error
- func AddRule(d Deps, parts []string) error
- func AddSubagent(d Deps) error
- func Agent(d Deps) error
- func Agents(d Deps) error
- func AnonymizePrompt(d Deps, parts []string) error
- func AutoUpdate(d Deps, parts []string) error
- func BeginStartupConnectivityCheck(ctx context.Context, cfg *config.Root)
- func Btw(d Deps, parts []string) error
- func BuildCommit() string
- func BuildCommitTime() time.Time
- func BuildSourceTree() string
- func Changes(d Deps) error
- func Chat(d Deps) error
- func CleanSessionCache(d Deps) error
- func Clear(d Deps) error
- func ClearStartupOfflineForTest()
- func CompactSummaryBody(sep, summaryLLM, retainedBlock string) string
- func ConfigBackup(d Deps) error
- func Connect(d Deps) error
- func CursorTools(d Deps, parts []string) error
- func Deactivate(d Deps, parts []string) error
- func Disconnect(d Deps, parts []string) error
- func DispatchBuiltinSlash(d Deps, parts []string, name string) (matched bool, err error)
- func DrainReplStartupInterrupt()
- func ExitMessage(d Deps)
- func Export(d Deps, parts []string) error
- func ExportChatBasenameForTest(sess *chatstore.Session) string
- func Fast(d Deps, parts []string) error
- func FormatChatTranscript(msgs []chatstore.Message) string
- func FormatInterfaceList(rows []networkpolicy.Interface) string
- func FormatOfflineNotice(cfg *config.Root) string
- func FormatProviderCatalogError(providerName string, err error) string
- func FormatRetainedMessages(msgs []chatstore.Message) string
- func GUISlashAvailable(name string) bool
- func Instructions(d Deps) error
- func Interface(d Deps, parts []string) error
- func InternetReachable(ctx context.Context, cfg *config.Root) bool
- func InvalidateAndPrefetchSlashModelCatalog(ctx context.Context, cfg *config.Root, out io.Writer)
- func InvalidateSlashModelCatalogCache()
- func Language(d Deps, parts []string) error
- func LegacyTools(d Deps, parts []string) error
- func LocalVersionString() string
- func MarkdownExportMetaForTest(title, projectRoot, model string) markdownExportMeta
- 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 PlanExportPathForTest(rootDir string, day time.Time, base string, rejectIfExists bool) (exportPathPlan, error)
- func PrefetchSlashModelCatalog(ctx context.Context, cfg *config.Root, out io.Writer)
- func PrepareReplStartupNotice(out io.Writer)
- func PrintAgent(d Deps, node AgentNode, folder string, depth int)
- func PrintProviderCatalogErrors(out io.Writer, errs []ProviderCatalogError)
- func PrintSystem(out io.Writer, msg string)
- func PrintSystemErr(out io.Writer, err error)
- 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(cfg *config.Root) [][]string
- func RemoteMCPServerNames() []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 ReplStartupInterrupt() <-chan struct{}
- func Research(d Deps, parts []string) error
- func ResetInternetProbeURLsForTest()
- func Resume(d Deps, args []string) error
- func Rules(d Deps) error
- func RunDocsSlash(d Deps, line string) error
- func RunForcedSkillSlash(d Deps, line string) error
- func RunSkillSlash(d Deps, e skills.SkillEntry, line string) error
- func SetEffectiveReleaseVersion(tag string, matchesReleaseSource bool)
- func SetInternetProbeURLsForTest(urls []string)
- func SetStartupOfflineForTest(offline bool)
- func SetVersionProvider(provider func() string)
- func Skills(d Deps) error
- func SlashBuiltinDescriptions(cfg *config.Root) map[string]string
- func SlashBuiltinNames(cfg *config.Root) []string
- func SlashCheckpointAck(d Deps)
- func SlashGoto(d Deps, parts []string) error
- func SlashIntegrations(d Deps) error
- func SlashLog(d Deps, parts []string) error
- func SlashMCP(d Deps) error
- func SlashModels(d Deps) error
- func SlashRewind(d Deps, parts []string) error
- func StartupWasOffline() bool
- func Stats(d Deps) error
- func Subagent(d Deps, parts []string) error
- func Summarize(d Deps) error
- func SummarizeBody(d Deps) (string, error)
- func SummarizeProgressLine(dots int) string
- func TakeReplStartupNotice(out io.Writer) bool
- 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 Update(d Deps) error
- func Upgrade(d Deps) error
- func Version(d Deps) error
- func VersionString() string
- func WriteHelp(w io.Writer, projHex, projRoot string, cfg *config.Root)
- func WriteLabeledTranscript(out io.Writer, msgs []chatstore.Message, model string, showUsage bool)
- func WriteMarkdownExportForTest(w io.Writer, meta markdownExportMeta, sess *chatstore.Session, showUsage bool) error
- func WriteVersion(w io.Writer)
- type AgentNode
- type Deps
- type ListedModel
- type ProviderCatalogError
- type SummarizeProgress
Constants ¶
This section is empty.
Variables ¶
var ErrBuiltinExitChat = errors.New("exit chat")
var ErrRestartSolomon = errors.New("restart solomon")
Functions ¶
func AddProjectRule ¶
func AddSubagent ¶ added in v2026.716.0
func AnonymizePrompt ¶ added in v2026.617.1
func AutoUpdate ¶ added in v2026.603.0
func BeginStartupConnectivityCheck ¶ added in v2026.609.3
func BuildCommit ¶ added in v2026.924.0
func BuildCommit() string
BuildCommit returns the full source revision embedded in the build.
func BuildCommitTime ¶ added in v2026.924.0
BuildCommitTime returns the commit timestamp embedded in the build.
func BuildSourceTree ¶ added in v2026.1001.1
func BuildSourceTree() string
BuildSourceTree returns the source inputs captured before compilation.
func CleanSessionCache ¶
func ClearStartupOfflineForTest ¶ added in v2026.609.3
func ClearStartupOfflineForTest()
func CompactSummaryBody ¶
func ConfigBackup ¶
func CursorTools ¶ added in v2026.608.0
func Deactivate ¶ added in v2026.1023.1
func Disconnect ¶ added in v2026.1030.0
func DispatchBuiltinSlash ¶
func DrainReplStartupInterrupt ¶ added in v2026.609.3
func DrainReplStartupInterrupt()
func ExitMessage ¶
func ExitMessage(d Deps)
func ExportChatBasenameForTest ¶ added in v2026.701.0
func FormatChatTranscript ¶
func FormatInterfaceList ¶ added in v2026.1030.0
func FormatInterfaceList(rows []networkpolicy.Interface) string
func FormatOfflineNotice ¶ added in v2026.609.3
func FormatProviderCatalogError ¶ added in v2026.609.3
func FormatRetainedMessages ¶
func GUISlashAvailable ¶ added in v2026.1010.0
GUISlashAvailable excludes commands whose lifecycle belongs to the terminal. Interactive arguments are rejected by the GUI's noninteractive input adapter.
func Instructions ¶
func InternetReachable ¶ added in v2026.609.3
func InvalidateSlashModelCatalogCache ¶
func InvalidateSlashModelCatalogCache()
func LegacyTools ¶
func LocalVersionString ¶ added in v2026.1009.0
func LocalVersionString() string
func MarkdownExportMetaForTest ¶ added in v2026.701.0
func MarkdownExportMetaForTest(title, projectRoot, model string) markdownExportMeta
func MaxResponse ¶
func PlanExportPathForTest ¶ added in v2026.701.0
func PrepareReplStartupNotice ¶ added in v2026.609.3
func PrintAgent ¶ added in v2026.1023.0
func PrintProviderCatalogErrors ¶ added in v2026.609.3
func PrintProviderCatalogErrors(out io.Writer, errs []ProviderCatalogError)
func PrintSystem ¶
func PrintSystemErr ¶
func PrintSystemValue ¶
func RemoteMCPServerNames ¶ added in v2026.609.3
func RemoteMCPServerNames() []string
func RemoveProjectRule ¶
func RemoveRule ¶
func RenderCompactSummaryBody ¶
RenderCompactSummaryBody applies terminal color to a plain-text summary body for display only. The returned string must never be persisted.
func ReplStartupInterrupt ¶ added in v2026.609.3
func ReplStartupInterrupt() <-chan struct{}
func ResetInternetProbeURLsForTest ¶ added in v2026.624.0
func ResetInternetProbeURLsForTest()
func RunDocsSlash ¶ added in v2026.608.0
func RunForcedSkillSlash ¶
func RunSkillSlash ¶
func RunSkillSlash(d Deps, e skills.SkillEntry, line string) error
RunSkillSlash runs "/<skill> [request]"; a request typed after the command is sent with the skill.
func SetEffectiveReleaseVersion ¶ added in v2026.924.0
SetEffectiveReleaseVersion records the latest published version used as the base for a development build's display version. Only a verified match of both the current commit and its pre-compilation source tree displays the release tag.
func SetInternetProbeURLsForTest ¶ added in v2026.624.0
func SetInternetProbeURLsForTest(urls []string)
func SetStartupOfflineForTest ¶ added in v2026.609.3
func SetStartupOfflineForTest(offline bool)
func SetVersionProvider ¶ added in v2026.1009.0
func SetVersionProvider(provider func() string)
SetVersionProvider lets clients display the authoritative daemon version. The daemon itself and binary diagnostics use LocalVersionString.
func SlashBuiltinDescriptions ¶ added in v2026.1010.0
func SlashBuiltinNames ¶
func SlashCheckpointAck ¶
func SlashCheckpointAck(d Deps)
func SlashIntegrations ¶
func SlashModels ¶
func SlashRewind ¶ added in v2026.621.0
func StartupWasOffline ¶ added in v2026.609.3
func StartupWasOffline() bool
func SummarizeBody ¶
func SummarizeProgressLine ¶
func TakeReplStartupNotice ¶ added in v2026.609.3
func VersionString ¶
func VersionString() string
func WriteLabeledTranscript ¶
func WriteMarkdownExportForTest ¶ added in v2026.701.0
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)
AcquireSessionFileLock func() error
ReleaseSessionFileLock func()
SetMode func(string)
GetMode func() string
ControlSubagent func(id, action string) error
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
WebSearch search.Engine
ResetReadlineHistory func()
AppendReadlineHistory func(line string) error
PrefillInput func(string)
Regenerate func() error
SubmitUserMessage func(string) error
SubmitVisibleUserMessage func(visible, api string) error
AtIncludeNotifier func() *atmention.Notifier
PrintWelcomeBanner func()
CheckForUpdate func(force bool) (*updater.Notice, error)
CheckForUpgrade func() (*updater.Notice, error)
InstallUpdate func(tag string) error
CheckpointGoto func(*checkpoint.FullCheckpointID) error
CheckpointRewind func(*checkpoint.RewindPlan) error
PersistSession func() error
MutateSession func(fn func(*chatstore.Session))
GetReplShellFirst func() bool
SetReplShellFirst func(bool)
GetEphemeralSession func() bool
SetEphemeralSession func(bool)
Research interface {
StartResearchJob(query, category string) (research.JobRecord, error)
ListResearch() ([]research.JobRecord, error)
ResearchStatus(target string) (research.JobRecord, error)
CancelResearch(target string) error
DeleteResearch(target string) error
ResumeResearch(target string) (research.JobRecord, error)
}
}
type ListedModel ¶
func PickListedModel ¶ added in v2026.716.0
func PickListedModel(d Deps, includeCurrent bool) (ListedModel, error)
type ProviderCatalogError ¶ added in v2026.609.3
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
¶
- activation.go
- add.go
- agent.go
- agents.go
- btw.go
- builtin_slash.go
- checkpoint_cmds.go
- cleansessioncache.go
- clear.go
- configbackup.go
- connect.go
- deps.go
- disconnect.go
- docs.go
- exit.go
- export.go
- export_path.go
- export_testexport.go
- export_transcript.go
- help.go
- instructions.go
- integrations_slash.go
- interface.go
- language.go
- log.go
- max_response.go
- mcp_slash.go
- models.go
- models_catalog_cache.go
- models_picker.go
- name.go
- onboard.go
- reasoning.go
- remove.go
- research.go
- resume.go
- roles.go
- rules.go
- skills.go
- slash_names.go
- stats.go
- subagent.go
- summarize.go
- testweb.go
- thinking.go
- timeout.go
- transcript.go
- update.go
- version.go