"""Install and load proprietary tool add-ons owned by the Hub.

The lifecycle itself is host-free (`_core.manager_core`); this binds it to
Blender and keeps the module-level call shape the operators and panel use.
"""

from __future__ import annotations

from . import host
from ._core.manager_core import AddonManager

_manager = AddonManager(host)

addons_root = _manager.addons_root
state_path = _manager.state_path
installed = _manager.installed
installed_version = _manager.installed_version
prepare_archive = _manager.prepare_archive
discard_staged = _manager.discard_staged
activate = _manager.activate
remove = _manager.remove
cleanup_staging = _manager.cleanup_staging
register_installed = _manager.register_installed
unregister_all = _manager.unregister_all
