All 5 new message types (event, alert, ble_scan, trigger_state, system_health) were already implemented in hub.go with broadcast methods, called from main.go/ingestion/volume_triggers/events, and handled in app.js. Also includes security mode persistence from anomaly DB and OpenAPI docs for triggers endpoints. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
324 B
Go
20 lines
324 B
Go
//go:build ignore
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"go/parser"
|
|
"go/token"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
fset := token.NewFileSet()
|
|
_, err := parser.ParseFile(fset, "cmd/mothership/main.go", nil, parser.AllErrors|parser.ParseComments)
|
|
if err != nil {
|
|
fmt.Println("Parse error:", err)
|
|
os.Exit(1)
|
|
}
|
|
fmt.Println("Parse OK")
|
|
}
|