charm-tui
Installation
SKILL.md
The Charm v2 stack is a different library from v1 behind the same names. Three biases decide most calls:
- The module source outranks a remembered API shape. Training data is saturated with v1, and a v1 idiom either fails
to compile against v2 or misbehaves silently. Read
go.mod, then the module itself, before reaching for a signature. - The View declares the terminal. Every terminal feature is a field set on every render, never a program option and never a command.
Updateis the only place state changes. A command does its work on another goroutine and returns a message;Updateapplies it.
Modules
charm.land/<name>/v2— bubbletea, bubbles, lipgloss, huh, glamour, fang, log, wish.github.com/charmbracelet/...— ultraviolet, colorprofile, and everyx/...package (x/ansi,x/term,x/editor,x/exp/golden,x/exp/teatest/v2,x/exp/charmtone).github.com/charmbracelet/bubbleteaand its siblings resolve to v1 — never import them.charm.land/x/ansiandcharm.land/ultravioletdo not resolve at all.- The build error
module declares its path as charm.land/... but was required as github.com/charmbracelet/...names a stale import. Fix the import, then rungo mod tidy.