Documentation
¶
Overview ¶
Package plainscan holds the scans the plain-UI guards share (the operator rule: muster is for people who are not engineers, so its own chrome shows no address, flag, variable, command or jargon in its top layer).
One definition per scan, so a guard in internal/api (rendered pages) and one in cmd/muster-server (the feature catalog's own words) cannot drift into two ideas of what "plain" means. The tests that use them run their own positive and negative controls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Address = regexp.MustCompile(`\btmux |\s@\s|[^\s\d]:[0-9]`)
Address is a tmux target's "tmux ", a place's " @ " and a window index — ":<digit>" after a name, not after a digit (a clock time, "01:10 UTC", is not one).
var Counts = regexp.MustCompile(`\(s\)|(^|[^\d.,])0 (live links?|links?|responses?|repl(y|ies)|waiting|versions?)\b`)
Counts is a count that does not read as words: a "(s)" plural ("live link(s)", "response(s)"), which a screen that knows the number never needs, and a zero said out loud about the Pages screens' things ("0 live link", "0 responses", "0 waiting", "0 replies"), where nothing should be drawn at all. An INVARIANT GUARD: it keeps the Pages screens from saying either again; on its own it is no regression test ("(s)" was already gone at #823).
var Host = regexp.MustCompile("(^|[\\s(`\"'“‘])--?[a-z][a-z-]*\\b|\\bmirror: |muster-mirror|\\(host \"|\\bctx\\b|\\btool calls?\\b|\\bdetails have more\\b")
Host is a command-line flag ("-interactive", "-opencode-send": a dash starting a word, bare or inside backticks or quotes — "`-interactive`", "\"-s\""), the hub's raw "mirror:" prefix, the host binary's name, a quoted id the hub appends ("(host "atlas", …)"), a token counter ("~+140 ctx", "+3.3k ctx"), and the tool-call count's own words ("2 tool calls").
var Setup = regexp.MustCompile(`\b[A-Z][A-Z0-9]*_[A-Z0-9_]+\b|=|<[a-z][^>]*>|\.env\b|\bdocs/|\.md\b|` +
`(?i:\bdocker\b|\bcompose\b|\bkubernetes\b|\bpods?\b|\bAPI\b|\bURLs?\b|\bMCP\b|\btokens?\b|\bJWT\b|\bVAPID\b|\bGoTrue\b|\bS3\b|\bwebhooks?\b|\bmisconfigured\b)`)
Setup is how a feature is SET UP, which belongs behind an admin's ⓘ: an environment variable's shape (MUSTER_STT_TOKEN, COMPOSE_PROFILES, S3_STORE_SECRET_KEY), an assignment, a placeholder ("<value>"), Docker Compose and its .env file, a docs path, and the deployment and protocol words a non-engineer does not use (Kubernetes, pod, API, URL, MCP, a token, a JWT, VAPID, GoTrue, S3, a webhook, "misconfigured").
Functions ¶
func TopLayerTexts ¶
TopLayerTexts is what a person reads on markup without opening anything: every text node and every tooltip, aria-label and placeholder — but not the ⓘ details sheets ([data-info-sheet], the one place the address belongs), nor scripts, styles and templates, nor data-* attributes (never drawn).
Types ¶
This section is empty.