Refine is a paid package. To purchase, head to hammerstone.dev.
Sidecar fires a few events related to deployment that you can hook into:
Each of these events has a public
functions property that holds all the functions that are being deployed or activated.
You can use these events to build packages, install dependencies, or clean up after they are deployed.