Add the TUI.

A table with one row per URL, a level-colored log pane and a status bar.
New alerts flash their row and ring the bell. Keys pause, force checks,
open the product page or cart link, and reload the config, which is
validated first and applied in place, keeping each URL's timing.
Headless mode and the TUI now share one watcher.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
OverlordandClaude Bot committed 2026-10-14 12:25:26 +02:00
1 parent 8f0eda5d4d
commit a19e6fa711
14 files changed
+1359 -105

No files matched your search

+9 -3
View File
@@ -55,11 +55,17 @@ type Error struct {
}
func (e Error) Error() string {
if e.Line > 0 { return e.File + ":" + e.Brief() }
return e.File + ": " + e.Brief()
}
// Brief is the error without the file name, such as "12:3: item[0].shop:
// missing required key".
func (e Error) Brief() string {
var b strings.Builder
b.WriteString(e.File)
if e.Line > 0 { _, _ = fmt.Fprintf(&b, ":%d:%d", e.Line, e.Col) }
if e.Line > 0 { _, _ = fmt.Fprintf(&b, "%d:%d: ", e.Line, e.Col) }
b.WriteString(": ")
if e.Key != "" {
b.WriteString(e.Key)
b.WriteString(": ")