It would be cleaner to avoid wrapping the sdk.
Furthermore, an idea would be to call final collections = sdk.collections; to get the collections in the instance. This would allow the package to generate the collection files without requiring user input!