Documentation
¶
Overview ¶
Package caps is the one list of what each atc feature needs. Settings, `atc doctor` and first run all read it. A check really probes the thing, with a short timeout, and says in plain words how it stands.
Index ¶
Constants ¶
const ( Core = "Core" Assistant = "Assistant" Calls = "Calls" Phone = "Phone" Agents = "Agents" Machines = "Machines" Browser = "Browser" Models = "Other models" Summaries = "Summaries" WhatsApp = "WhatsApp" )
const MinClaude = "2.1.139"
MinClaude is the first Claude Code with background sessions and `claude agents` (its changelog, "Added agent view"); atc is built on them. There is no upper bound.
const Timeout = 8 * time.Second
Timeout bounds one check, so the list never waits longer than this for anything.
Variables ¶
var Groups = []string{Core, Assistant, Agents, Calls, Phone, Machines, Browser, Models, Summaries, WhatsApp}
Groups is the order they are shown in.
Functions ¶
Types ¶
type AgentFolder ¶
type Cap ¶
type Cap struct {
ID, Title, Group, Why string
Optional bool
Needs []string
Fields []Field
Fix Fix
Cost string
Check func(context.Context, Env) Result
}
Cap is one row. Without a Check it stands exactly as well as what it Needs.
type Env ¶
type Env struct {
Get func(key string) string
Source func(key string) string
Bin string
Self string
Devices []string
Peers []Peer
Engines []Engine
Agents []AgentFolder
}
Env is what a check looks at, the same whether the server or a lone `atc doctor` runs it.
type Field ¶
type Field struct {
Key string `json:"key"`
Label string `json:"label"`
Hint string `json:"hint,omitempty"`
Secret bool `json:"secret,omitempty"`
URL bool `json:"url,omitempty"`
Hub bool `json:"-"`
// Options makes it a choice, by value; the first is what empty means.
Options []string `json:"options,omitempty"`
}
Field is a setting a feature reads, which the user can fill in from Settings. Hub says the hub process reads it too.
type FieldState ¶
type Fix ¶
type Fix struct {
Command string `json:"command,omitempty"`
Text string `json:"text,omitempty"`
Guide string `json:"-"`
GuideURL string `json:"guideUrl,omitempty"`
GuideName string `json:"guideName,omitempty"`
}
Fix is how to get a feature working: a command to copy, plain words, and the docs page with the rest. GuideURL and GuideName are filled in for clients.
type Row ¶
type Row struct {
ID string `json:"id"`
Title string `json:"title"`
Group string `json:"group"`
Why string `json:"why,omitempty"`
Optional bool `json:"optional,omitempty"`
Status Status `json:"status"`
Detail string `json:"detail"`
Warn bool `json:"warn,omitempty"`
Needs []Need `json:"needs,omitempty"`
Fields []FieldState `json:"fields,omitempty"`
Fix Fix `json:"fix"`
Cost string `json:"cost,omitempty"`
Setup string `json:"setup,omitempty"`
}
Row is a Cap with how it stands now. Warn is what deserves attention: something required that is not ok, or something set up that stopped working. Optional and never set up is quiet.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner runs checks concurrently and keeps their results briefly; the zero value is ready.
func (*Runner) Forget ¶
func (rn *Runner) Forget()
Forget drops the cached results, after a setting changed.