|
|
@@ -2207,14 +2207,12 @@ def hermes_validate_config(config: PlatformConfig) -> bool:
|
|
|
|
|
|
|
|
|
def hermes_check_fn() -> bool:
|
|
|
- """Check if Chatto is configured and dependencies are available.
|
|
|
-
|
|
|
- Add real logic?! Or just .. there are no dependencies.. always return true. Really. Docs suck.
|
|
|
- """
|
|
|
+ """Report whether the vendored chattolib dependency can be imported."""
|
|
|
try:
|
|
|
- from .vendor.common.chattolib import (
|
|
|
+ from chattolib import (
|
|
|
client, # noqa: F401 — vendored dependency probe
|
|
|
)
|
|
|
+
|
|
|
return True
|
|
|
except ImportError:
|
|
|
return False
|
|
|
@@ -2224,6 +2222,7 @@ def hermes_check_fn() -> bool:
|
|
|
# is_connected probe
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
+
|
|
|
def hermes_is_connected(config: PlatformConfig) -> bool:
|
|
|
"""Check whether Chatto Plugin is connected. But where to: the Hermes Agent or the Chatto server.
|
|
|
|