Updates tab (apt list/refresh/upgrade/changelog, reboot flag) on a new background tasks package with live WS streaming; header power button with hostname confirmation

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Mitchell-Johnson
2026-09-17 17:40:29 -07:00
co-authored by Claude Fable 5.1
parent 41c2f05535
commit acb11193b9
11 changed files with 975 additions and 6 deletions
+5 -1
View File
@@ -25,7 +25,9 @@ import (
"hamlab/internal/metrics"
"hamlab/internal/services"
"hamlab/internal/store"
"hamlab/internal/tasks"
hterm "hamlab/internal/term"
"hamlab/internal/updates"
"hamlab/internal/web"
)
@@ -145,7 +147,9 @@ func serve(cfg *config.Config) error {
svc := services.New()
cr := cron.New(svc.Sudo(), svc.JournalSudo())
srv := api.New(cfg, sessions, mgr, col, st, svc, cr, web.FS(), version)
tm := tasks.New()
up := updates.New(svc.Sudo(), tm)
srv := api.New(cfg, sessions, mgr, col, st, svc, cr, tm, up, web.FS(), version)
hs := &http.Server{
Addr: cfg.Listen,
Handler: srv.Handler(),