feat: add Go/Bubble Tea TUI rewrite (apps/tui-go)

Reimplement the TUI in Go using Bubble Tea, replacing the Kotlin/Tamboui
app. Same WebSocket protocol, soft-rounded layout with blue accent theme.
This commit is contained in:
2026-05-30 00:00:35 +04:00
parent 1f6680f774
commit f922b855eb
14 changed files with 2878 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
// Command preview prints a single static TUI frame for screenshotting.
// Usage: preview <kind> [cols] [rows]
package main
import (
"fmt"
"os"
"strconv"
"github.com/charmbracelet/lipgloss"
"github.com/correx/tui-go/internal/app"
"github.com/muesli/termenv"
)
func main() {
lipgloss.SetColorProfile(termenv.TrueColor)
kind := "idle"
if len(os.Args) > 1 {
kind = os.Args[1]
}
cols, rows := 140, 36
if len(os.Args) > 2 {
cols, _ = strconv.Atoi(os.Args[2])
}
if len(os.Args) > 3 {
rows, _ = strconv.Atoi(os.Args[3])
}
fmt.Print(app.PreviewFrame(kind, cols, rows))
}