plainscan

package
v0.284.0 Latest Latest
Warning

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

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

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

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

View Source
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").

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

func Jargon(s string) string

Jargon is the first jargon any scan finds in s, or "" when s is plain.

func TopLayerTexts

func TopLayerTexts(markup string) ([]string, error)

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.

Jump to

Keyboard shortcuts

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