bundle: expose a `main` function that takes explicit argv