#!/usr/bin/env python3 """Check Hermes tools availability and list available functions.""" import sys import subprocess import json # Check if hermes_tools is available try: result = subprocess.run( ["python3", "-c", "import hermes_tools; print('hermes_tools OK')"], capture_output=True, text=True ) hermes_available = result.returncode == 0 hermes_stdout = result.stdout.strip() hermes_stderr = result.stderr.strip() except Exception as e: hermes_available = False hermes_stdout = "" hermes_stderr = str(e) # Check wizard-outputs directory import os wizard_outputs = "/root/.hermes/wizard-outputs/spark" wizard_outputs_exists = os.path.isdir(wizard_outputs) # Check troupe-standup troupe_standup = "/root/troupe-standup" troupe_exists = os.path.isdir(troupe_standup) result = { "hermes_tools_available": hermes_available, "hermes_tools_stdout": hermes_stdout, "hermes_tools_stderr": hermes_stderr, "wizard_outputs_exists": wizard_outputs_exists, "troupe_standup_exists": troupe_exists, "python_version": sys.version.split()[0], "cwd": os.getcwd() } print(json.dumps(result, indent=2))