mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
summariseSupply is rendered by the medication detail client surfaces, so the v1.18.11 underflow wide-event it called pulled node:async_hooks into the client chunk and failed the production build. Split the observability out: the helper stays a pure clamp, a new pure detectSupplyUnderflow reports a would-be negative pool, and the low-stock job emits the medication.inventory.underflow event at its request-scoped seam where annotate can actually fire.