Documentation
¶
Overview ¶
Package rage collects what a lich bug report needs into one archive: the facts that decide whether a report is actionable (version, platform, window, provider and plugin state), the environment lich was launched with, and the log generations — with the loopback token masked wherever it appeared.
It exists for the failure lich cannot report on itself: no window means no Settings › Help, so this runs from the command line and needs no running instance. Nothing is uploaded and nothing is filed — the archive stays on disk until the user attaches it to an issue they wrote themselves.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBase ¶
DefaultBase is the bundle's name without an extension: the archive file is this plus ".tar.gz", and the directory inside it is this exactly.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector gathers a Report. The six probes are fields because each one reaches the machine (PATH, the provider CLIs, a confined spawn, the network, the running instance), and a test must answer for all of them.
type Entry ¶
Entry is one item in the lich config directory, reported by name and size so a missing database or an empty theme folder is visible without shipping any of their contents.
type Report ¶
type Report struct {
Version string
GoVersion string
// Revision is the VCS stamp Go embeds when a build comes from a checkout,
// suffixed "-dirty" for a modified tree. It is what identifies a build the
// reporter compiled themselves, where Version says only "dev".
Revision string
Platform string
Instance string
ConfigDir string
LogPath string
Window string
// Sandbox is what a confined session would actually get on this machine,
// proved rather than looked up: a backend installed and refused by the
// kernel is a whole class of report where the session never opened and the
// log holds only the launcher's error.
Sandbox string
Providers []providers.Detected
Plugin []agentplugin.Status
Entries []Entry
}
Report is what report.md renders: every fact gathered about this machine, and none that identify the loopback session. The token is deliberately absent — the file outlives the instance it would name.