// The asus-zephyrus-g14 module's Go bundle (novox/hq ADR 0188, ADR 0193, ADR 0198): one process the // node's runtime launches, serving the module's tools over MCP on stdio and running its long-running // code — the platform-profile switcher — beside them. package main import ( "context" "fmt" "os" stdio "git.novox.be/novox/mesh-sdk/go" ) func main() { m := Here() sw := NewSwitcher(m, func(eventType string, body any) error { return stdio.Emit(eventType, body) }) ctx, cancel := context.WithCancel(context.Background()) defer cancel() go sw.Run(ctx) // An empty name serves as the module the runtime names (MESH_SERVED_MODULE). if err := stdio.Serve("", Tools(m, sw)); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } }