Export promise to global scope
Add capnp package