Documentation
¶
Overview ¶
Package report builds what somebody hitting a problem can hand over in one keystroke: the facts about their conch, written out for a GitHub issue, and the link that opens one with it already filled in.
The rule the whole package is built on is **facts, not contents**: versions, counts, sizes, capability names and the last error's words. Never a screen, a prompt, a path, a project, a branch or a pane's title. That is what makes it safe to put behind one key — nothing has to be read through before it is sent, and nobody has to trust a redactor.
Nothing here sends anything. It renders text and a URL; the browser opens with that text visible, and the person presses submit.
Index ¶
Constants ¶
const Repo = "https://github.com/Amitgb14/conch"
Repo is where conch's issues live.
Variables ¶
var Now = time.Now
Now is the clock, for tests.
Functions ¶
This section is empty.
Types ¶
type Facts ¶
type Facts struct {
// Version and Build are this binary's; Platform is its GOOS/GOARCH.
Version string
Build string
Platform string
// Server is the server this conch is talking to, if any.
Server Server
// Terminal is what conch is drawing on, for a TUI report.
Terminal Terminal
// Agents counts the agents running, by name: claude×2, codex. The
// names are conch's own words for them, not anything a person typed.
Agents map[string]int
// Machines is how many machines are in the catalog and how many of
// them answered.
Machines, MachinesOnline int
// LastError is the last thing conch said went wrong — its own message,
// which is written for people and names no file.
LastError string
// What the person was doing, when they have said.
What string
}
Facts is one conch, as a report describes it.
func (Facts) Body ¶
Body is the issue's body: what the person says first, then the facts in a fenced block so GitHub leaves them alone.
type Server ¶
type Server struct {
Version string
Build string
Platform string
PID int
Started time.Time
LoadedAt time.Time
Panes int
// Missing are capabilities this build expects and the server lacks,
// which is the first thing to look at in a report from a stale server.
Missing []string
}
Server is the conch server a report is about.