Documentation
¶
Overview ¶
The report of this install a person reads in System and /system: what every feature says of itself, from a line or two of each to the whole of it and the checks that reach out, its secrets never let out whole, and the setup summary a person pastes when asking for help. What there is to say is brought by the features themselves, each registering what it reports of itself
Index ¶
Constants ¶
const ( // The program: its version, build, where it is installed, updates Icebath = "icebath" // This computer: its system, machine, memory, disk, container Computer = "computer" // The icebath folder, the profile in use and the others Profiles = "profiles" // The server, what serves where, the windows on it, the HTTP API, editors, peers Server = "server" // The model in use, providers, keys and sign-ins, helper models Models = "models" // The agent's tools, the terminal and where commands run, browsers, web search, computer use Tools = "tools" // Chat apps and their connections, who may write, the bot roster Chats = "chats" // Scheduled jobs, runs, webhooks, deliveries, loops, boards Automation = "automation" // Sessions, their stores, what runs now, worktrees, projects Sessions = "sessions" // MCP servers, skills, extensions, hooks, memory services Extensions = "extensions" // Approvals, secret stores, the vault, egress, backups, audits Safety = "safety" // Voices, recognizers, wake words Voice = "voice" // Images and video Media = "media" // Settings changed from their defaults Settings = "settings" // Log files Logs = "logs" )
Sections every install has, by name: a registrant reports into the one its facts belong to, so what several features say of one thing is read together
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Depth ¶
type Depth int
How much of the install a report says
const ( // One screen: the line or two a person reads first of each feature, such as the model in use and the chat apps connected Brief Depth = iota // Every section, each feature whole, read from this computer alone Full // Every section and the checks that reach out to see how things answer, such as whether a provider takes its key Deep )
type Log ¶
type Log struct {
// What a person calls it, such as Chat apps
Title string
Path string
// Lines of its end the debug report carries, the report's own count when zero
Lines int
// Shared whole, as much of its end as one paste holds, beside the report
Whole bool
}
A log file of a feature
type Logger ¶
type Logger interface {
// Log files the feature keeps for the profile of the settings
Logs(cfg *config.Config) []Log
}
Registrant whose feature keeps log files, which the debug report carries the end of
type Registrant ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) Host ¶
Host the registry is nested in, through which plugins read the report of the install
func (*Registry) Logs ¶
Every log file the registrants keep for the profile of the settings, in the order they were registered, a path named twice listed once
func (*Registry) Register ¶
func (r *Registry) Register(registrant Registrant)
type Report ¶
type Report struct {
Depth Depth
Sections []Section
// Parts that did not answer within the time they have, and parts that broke, each left out
Late, Broken int
// When it was read
Read time.Time
}
A report as a person reads it
type Row ¶
type Row struct {
// What it is of, sentence case, such as Model or Scheduled jobs
Label string
// What it is, in words, no trailing period
Value string
Mark Mark
// A secret the row tells of, such as an API key, which the host never lets out whole: shown by its ends where the person reads the
// report on their own computer, only as set where it is pasted or read in a chat. In front of Value, or Value itself when that is
// empty
Secret string
// Whole sentences under it, such as why it does not work and what to do
Notes []string
// Rows under it, such as the accounts of a provider
Rows []Row
}
One thing a report says
type Section ¶
type Section struct {
// One of the names above, or a lower case name of its own, which a person asking for one section types
Name string
// What a person calls it, and its place among the sections, lower first: the host's for a name above
Title string
Order int
Rows []Row
}
One part of a report. Sections of one name are one, their rows in the order the registrants were registered
type Status ¶
type Status struct {
Registry
// contains filtered or unexported fields
}
The report of this install: what each feature says of itself, asked of every registrant at once, and what the host says of the program and the computer it runs on
func (*Status) Dump ¶
The setup summary a person pastes when asking for help: every section of the full report of the profile as plain text, each secret only as set, or by its first and last four characters when keys are asked for, then the whole text with every other secret in it masked, those the profile keeps by their values wherever they stand
func (*Status) Register ¶
func (s *Status) Register(registrant Registrant)
Adds a registrant; a registry nested in the host reaches it through Host
func (*Status) Report ¶
func (s *Status) Report(ctx context.Context, cfg *config.Config, depth Depth, form Form, section string) Report
The report of the profile of the settings at the depth, every secret shown in the form: of the section the name names, every section for none. Every registrant is asked at once, each within the time a part has; one that breaks or answers late is left out and counted