status

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 23 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

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

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

func Chosen

func Chosen(cfg *config.Config, key string) string

What a setting of the profile holds as its row in the settings shows it: the title of the option it holds, else the value itself

func Secrets

func Secrets(cfg *config.Config) []string

Values the profile of the settings keeps that are secrets wherever they turn up in text: every setting kept secret, and every variable of its environment whose name says it holds one and whose value reads as one

Types

type Ask

type Ask struct {
	// Settings of the profile the report is of
	Config *config.Config
	Depth  Depth
}

What a report is asked for

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 Form

type Form int

How a report shows the secrets its rows tell of

const (
	// Read by the person on their own computer: each secret by its first and last four characters
	Ends Form = iota
	// Pasted or read in a chat: each secret only as set
	Set
)

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 Mark

type Mark int

How a row stands

const (
	// A fact, no mark: a version, a path, a count
	Plain Mark = iota
	// Set up and working
	Good
	// Not set up or turned off, which is fine
	Off
	// Works, and something needs a look
	Warn
	// Does not work
	Bad
)

func (Mark) Glyph

func (m Mark) Glyph() string

Sign of the mark in text, empty for a plain fact

type Registrant

type Registrant interface {
	// Sections of the profile of the ask at its depth, none at a depth the registrant has nothing to say at. What could not be read is a
	// row that says so; the context ends as the part's time is up
	Sections(ctx context.Context, ask Ask) []Section
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func (*Registry) Host

func (r *Registry) Host() *Status

Host the registry is nested in, through which plugins read the report of the install

func (*Registry) Logs

func (r *Registry) Logs(cfg *config.Config) []Log

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)

func (*Registry) Sections

func (r *Registry) Sections(ctx context.Context, ask Ask) []Section

Every section the registrants report, in the order they were registered

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

func (Report) Left

func (r Report) Left() string

What the report left out, in sentences; empty when it left out nothing

func (Report) Markdown

func (r Report) Markdown() string

The report as Markdown a chat shows: the brief one as one list, every other one with the title of each section over its rows, then what was left out

func (Report) Text

func (r Report) Text() string

The report as plain text a person pastes: the title of each section, then its rows two spaces in a level, each with its mark as a word and the sentences under it, then what was left out

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

func Named

func Named() []Section

The sections every install has, in the order a report lists them, each of which a person may ask for alone by its name

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 New

func New(cfg *config.Config) *Status

func (*Status) Dump

func (s *Status) Dump(ctx context.Context, cfg *config.Config, keys bool) string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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