report

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const Repo = "https://github.com/Amitgb14/conch"

Repo is where conch's issues live.

Variables

View Source
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

func (f Facts) Body() string

Body is the issue's body: what the person says first, then the facts in a fenced block so GitHub leaves them alone.

func (Facts) IssueURL

func (f Facts) IssueURL(title string) string

IssueURL opens a new issue with the title and body already in it. The person sees every word before anything is sent — the browser is where this ends, not a request from conch.

func (Facts) Text

func (f Facts) Text() string

Text is the block a report carries: one fact per line, nothing that could hold what somebody typed or what an agent said.

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.

type Terminal

type Terminal struct {
	Program string // $TERM_PROGRAM, e.g. iTerm.app
	Term    string // $TERM
	Cols    int
	Rows    int
	Icons   string // the [ui] icons setting: text, nerd or off
	Tmux    bool
	SSH     bool
}

Terminal is what the TUI is drawing on.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL