render

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 1 Imported by: 0

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

Constants

This section is empty.

Variables

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

func Echo(name, msg string) string

func EchoHeader

func EchoHeader(name string) string

func Lifecycle

func Lifecycle(s string) string

func LifecycleWarn

func LifecycleWarn(s string) string

func Prompt

func Prompt() string

func ResultErr

func ResultErr() string

func ResultOk

func ResultOk() string

func Thinking

func Thinking(s string) string

func ThoughtMarker

func ThoughtMarker(s string) string

func ToolHeader

func ToolHeader(prefix, name string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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