import sys
import os
sys.path.append(os.getcwd())

# Mock missing psutil by ensuring it's not in sys.modules
# (This is tricky if it's already installed, but for the user it's NOT installed)
# We just want to check if the import works *at all*.

print("Attempting to import slack_bot.tools.registry...")
try:
    from slack_bot.tools import registry
    print("✅ Successfully imported registry.")
except Exception as e:
    print(f"❌ Failed to import registry: {e}")
    sys.exit(1)

print("Attempting to import slack_bot.tools.system_ops...")
try:
    from slack_bot.tools import system_ops
    print("✅ Successfully imported system_ops.")
    # Check if we can safely call functions even without psutil
    res = system_ops.get_system_status()
    print(f"get_system_status() returned: {res[:50]}...")
except Exception as e:
    print(f"❌ Failed to import system_ops: {e}")
    sys.exit(1)
