Static webhook-wiring check for the host app's endpoint.
Reads endpoint.ex off disk (via File.read!) and checks whether the
Mailglass CachingBodyReader body reader is wired. No app boot, no runtime
reflection — the scan runs inside the install-fixture harness in CI.
Exit-code mapping (three-state)
summary.cannot_diagnose > 0— endpoint.ex missing / app not detectable → exit 2summary.fail > 0— CachingBodyReader absent → exit 1- else — wired correctly → exit 0
Usage
Mailglass.Installer.Doctor.run([])
# => %{summary: %{pass: 1, warn: 0, fail: 0, cannot_diagnose: 0}, findings: [...]}
Summary
Functions
Runs the static endpoint-wiring scan and returns a result map.