diff --git a/agent-node/VERSION b/agent-node/VERSION index 7ee7020..59e9e60 100644 --- a/agent-node/VERSION +++ b/agent-node/VERSION @@ -1 +1 @@ -1.0.10 +1.0.11 diff --git a/agent-node/src/agent_node/core/updater.py b/agent-node/src/agent_node/core/updater.py index e4a26a5..c625559 100644 --- a/agent-node/src/agent_node/core/updater.py +++ b/agent-node/src/agent_node/core/updater.py @@ -19,6 +19,7 @@ import threading import subprocess import urllib.request +from typing import Optional, Union, Dict, List logger = logging.getLogger(__name__) @@ -40,7 +41,8 @@ return "0.0.0" -def _fetch_remote_version() -> str | None: + +def _fetch_remote_version() -> Optional[str]: url = f"{_HUB_HTTP_URL}/api/v1/agent/version" try: req = urllib.request.Request(url, headers={"X-Agent-Token": _AUTH_TOKEN})