50 lines
1.2 KiB
Bash
50 lines
1.2 KiB
Bash
#!/bin/bash
|
|
# Quick Hermes profile validation script
|
|
# Usage: ./validate-hermes.sh [profile_name]
|
|
|
|
set -e
|
|
|
|
PROFILE="${1:-spark}"
|
|
HOME_DIR="/root/.hermes/profiles/$PROFILE"
|
|
|
|
echo "=== Hermes Profile Validator ==="
|
|
echo "Profile: $PROFILE"
|
|
echo "Home: $HOME_DIR"
|
|
echo ""
|
|
|
|
# Check if profile exists
|
|
if [ -d "$HOME_DIR" ]; then
|
|
echo "[OK] Profile directory exists"
|
|
else
|
|
echo "[WARN] Profile directory does not exist"
|
|
fi
|
|
|
|
# Check for skills directory
|
|
if [ -d "$HOME_DIR/skills" ]; then
|
|
SKILL_COUNT=$(find "$HOME_DIR/skills" -name "SKILL.md" 2>/dev/null | wc -l)
|
|
echo "[OK] Skills directory exists ($SKILL_COUNT skills)"
|
|
else
|
|
echo "[WARN] No skills directory"
|
|
fi
|
|
|
|
# Check for active model in config
|
|
if [ -f "$HOME_DIR/config.yaml" ]; then
|
|
MODEL=$(grep -E "^model:" "$HOME_DIR/config.yaml" | head -1 || echo "not set")
|
|
echo "[OK] Config found - $MODEL"
|
|
else
|
|
echo "[WARN] No config.yaml found"
|
|
fi
|
|
|
|
# Check Python version
|
|
PYTHON=$(python3 --version 2>&1 || echo "not found")
|
|
echo "[OK] $PYTHON"
|
|
|
|
# Check hermes-tools availability
|
|
if python3 -c "from hermes_tools import web_search" 2>/dev/null; then
|
|
echo "[OK] hermes_tools available"
|
|
else
|
|
echo "[WARN] hermes_tools not importable"
|
|
fi
|
|
|
|
echo ""
|
|
echo "=== Validation Complete ===" |