dheraingoud's picture
feat: synchronize proxy with upstream commits up to 5305bd7 and integrate NIM key rotator
0a54372
Raw
History Blame Contribute Delete
484 Bytes
"""Canonical installed Free Claude Code package version."""
from importlib.metadata import PackageNotFoundError
from importlib.metadata import version as distribution_version
_DISTRIBUTION_NAME = "free-claude-code"
_UNKNOWN_VERSION = "0+unknown"
def package_version() -> str:
"""Return installed metadata, or an explicit source-only fallback."""
try:
return distribution_version(_DISTRIBUTION_NAME)
except PackageNotFoundError:
return _UNKNOWN_VERSION