Streamd v0.2.0: rename, modules panel, stable/beta channels
All checks were successful
release / build-and-upload (push) Successful in 7m5s

- Rename product/host binary to streamd (drm compat copy still shipped)
- Go module path streamd; STREAMD_* env aliases; agent UA streamd-agent
- Panel Modules store + agent pull sync (modstore / modsync)
- Rolling stable + beta download tags; README/docs channel curl blocks
- Release notes in docs/releases/v0.2.0.md attached by Forgejo Actions
This commit is contained in:
404errordeveloper 2026-10-10 15:58:26 +02:00
parent 066e018749
commit da8e1123ec
140 changed files with 2949 additions and 851 deletions

View file

@ -10,8 +10,8 @@ import (
"github.com/gorilla/websocket"
"drmdecryption/apps/streamd/internal/auth"
"drmdecryption/apps/streamd/internal/db"
"streamd/apps/streamd/internal/auth"
"streamd/apps/streamd/internal/db"
)
const (
@ -444,6 +444,22 @@ func (h *Hub) NotifyStreamChanged(name, reason string) {
}
}
// NotifyModulesChanged tells agents to pull module updates and the dashboard
// to refresh the Modules view.
func (h *Hub) NotifyModulesChanged(name, reason string) {
h.broadcastUI(outbound{Type: "modules_changed", StreamName: name, Reason: reason})
h.mu.Lock()
conns := make([]*agentConn, 0, len(h.agents))
for _, a := range h.agents {
conns = append(conns, a)
}
h.mu.Unlock()
for _, ac := range conns {
h.queue(ac, outbound{Type: "modules_changed", StreamName: name, Reason: reason})
}
h.Log.Info("ws: modules changed", "module", name, "reason", reason, "agents", len(conns))
}
// NotifyRuntime pushes a live health delta to the dashboard, so it does not
// have to poll the whole stream list on a timer.
func (h *Hub) NotifyRuntime(name, health string) {