Hook to run scripts before and after refresh

These hooks already exist today. They are called pre-refresh and post-refresh, as documented.

Apologies for the delayed response.