"""Skua - Snap and share Jupyter notebook outputs via shareable links."""

from skua.client import get_auth_status, login, set_token
from skua.config import configure, init
from skua.exceptions import ConfigurationError, SkuaError, UploadError
from skua.record import snap
from skua.result import SnapResult

from importlib.metadata import version, PackageNotFoundError
try:
    __version__ = version("getskua")
except PackageNotFoundError:
    __version__ = "unknown"

__all__ = [
    "snap",
    "SnapResult",
    "configure",
    "auth",
    "login",
    "status",
    "SkuaError",
    "UploadError",
    "ConfigurationError",
]

# Primary aliases
auth = set_token        # skua.auth("sk_...")
status = get_auth_status

# Backward compatibility aliases (not in __all__)
record = snap
RecordResult = SnapResult
token = set_token
