Documentation
¶
Overview ¶
Package render holds testagent's intent-named styling tokens, inspired by Catppuccin Mocha.
testagent's deployed canvas today is a dark terminal (the demo tapes run `Set Theme "Catppuccin Mocha"`), so foreground colors are picked from the Mocha palette. The tokens are organized by intent — what the styled bytes mean — not by hue:
- Warm hues (peach, maroon, flamingo, yellow, red) → things the agent produced or that need attention: session identity, agent reply, settled thoughts, hook warnings, errors.
- Cool hues (sapphire, sky, blue, green) → machine state and chrome: banner border/meta, prompt cue, tool calls, success marks.
- Neutrals (overlay/subtext) → ambient wiring: spinner, lifecycle notes, panel border, help usage.
Borders carry semantics too: double = session chrome (banner only), rounded = data container (panel).
Verbose hook traces (internal/hooks) are intentionally plain text per AGENTS.md and do not import this package.
Index ¶
- Variables
- func Echo(name, msg string) string
- func EchoHeader(name string) string
- func Lifecycle(s string) string
- func LifecycleWarn(s string) string
- func Prompt() string
- func ResultErr() string
- func ResultOk() string
- func Thinking(s string) string
- func ThoughtMarker(s string) string
- func ToolHeader(prefix, name string) string
Constants ¶
This section is empty.
Variables ¶
var ( SessionStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(mochaPeach)).Bold(true) BannerMetaStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(mochaSky)) ToolStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(mochaBlue)).Bold(true) ErrorStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(mochaRed)).Bold(true) MuteStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(mochaOverlay1)) MuteSoftStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(mochaSubtext0)) // ThinkingStyle marks the in-flight "Thinking…" label — warm flamingo // italic, suggesting active mental work. ThinkingStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(mochaFlamingo)).Italic(true) // ThoughtMarkerStyle marks the settled "Thought for Ns" line — muted // italic, since it's a past artifact in scrollback. Same italic family // as ThinkingStyle but cooler so completed turns recede visually. ThoughtMarkerStyle = MuteStyle.Italic(true) PanelStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color(mochaOverlay0)). Padding(0, 1) BannerStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.DoubleBorder()). BorderForeground(lipgloss.Color(mochaSapphire)). Padding(0, 2) )
Intent tokens. Foreground/decoration only — no backgrounds. Exported as vars so external callers can chain (.Faint(true).Render(...)) and assign to spinner styles; the value-style helpers below cover the common cases.
Functions ¶
func EchoHeader ¶
func LifecycleWarn ¶
func ThoughtMarker ¶
func ToolHeader ¶
Types ¶
This section is empty.