pub fn encode_hook_dispatch_plan(plan: &HookDispatchPlan) -> StringExpand description
What:
Spell a plan as JSON.stringify writes it, without the trailing newline.
Why:
The incumbent writes JSON.stringify(plan) followed by one newline,
and both dispatchers and the lease validator read the same bytes.
In TS you’d write (pseudocode):
JSON.stringify(plan)