mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
edae6d1edc
Extract alert config types, normalization, and identity helpers into internal/alerts/config while preserving the existing alerts package API through aliases and wrappers. Move Manager callback lifecycle state into a same-package callbackBus, keeping public Set/Subscribe methods unchanged. Harden metrics SQLite artifacts to owner-only permissions and cover permissive umask behavior. Proof: go test -json ./internal/api -count=1; go test ./internal/alerts/... ./internal/monitoring ./internal/ai/... ./internal/websocket ./internal/config ./pkg/metrics; go test ./internal/alerts/... ./pkg/metrics