pub fn generate_shim(resolve: &Resolve, world_id: WorldId) -> String
Generate a JS shim from WIT metadata that sets up stream/future factories.