"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
update cli-anything-hub pypi pkg
yuhao09fd682f9113
diff --git a/cli-hub/cli_hub/__init__.py b/cli-hub/cli_hub/__init__.pyindex 7f360542e..825d10f0f 100644--- a/cli-hub/cli_hub/__init__.py+++ b/cli-hub/cli_hub/__init__.py@@ -1,3 +1,3 @@"""cli-hub — Download, manage, and browse CLI-Anything harnesses."""-__version__ = "0.1.0"+__version__ = "0.1.1"diff --git a/cli-hub/cli_hub/analytics.py b/cli-hub/cli_hub/analytics.pyindex 379f0bd1d..c3a962edb 100644--- a/cli-hub/cli_hub/analytics.py+++ b/cli-hub/cli_hub/analytics.py@@ -1,5 +1,6 @@"""Lightweight, opt-out-able download event tracking via Umami."""+import atexitimport osimport platformimport threading@@ -13,6 +14,20 @@ WEBSITE_ID = "a076c661-bed1-405c-a522-813794e688b4"HOSTNAME = "clianything.cc"USER_AGENT = f"Mozilla/5.0 (compatible; cli-anything-hub/{__version__})"+_pending_threads = []+_lock = threading.Lock()+++def _flush_pending():+ """Wait for in-flight analytics requests before process exit."""+ with _lock:+ threads = list(_pending_threads)+ for t in threads:+ t.join(timeout=3)+++atexit.register(_flush_pending)+def _is_enabled():return os.environ.get("CLI_HUB_NO_ANALYTICS", "").strip() not in ("1", "true", "yes")@@ -45,7 +60,10 @@ def track_event(event_name, url="/cli-anything-hub", data=None):},}- threading.Thread(target=_send_event, args=(payload,), daemon=True).start()+ t = threading.Thread(target=_send_event, args=(payload,), daemon=True)+ with _lock:+ _pending_threads.append(t)+ t.start()def track_install(cli_name, version):diff --git a/cli-hub/setup.py b/cli-hub/setup.pyindex 6a816b66d..ad2c5b44b 100644--- a/cli-hub/setup.py+++ b/cli-hub/setup.py@@ -4,7 +4,7 @@ from setuptools import setup, find_packagessetup(name="cli-anything-hub",- version="0.1.0",+ version="0.1.1",description="Package manager for CLI-Anything — browse, install, and manage 40+ agent-native CLI interfaces for GUI applications",long_description=open("README.md").read(),long_description_content_type="text/markdown",