- Reset master to upstream/main (16,697 commits) - Overlay 2,271 local-only files (skills, tools, workspace, configs, apps) - Restore IDENTITY.md and USER.md templates - Build verified, gateway running, Discord working Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
63 lines
2.8 KiB
Bash
63 lines
2.8 KiB
Bash
#!/usr/bin/env bash
|
|
# JARVIS - Main Control Interface
|
|
|
|
BLUE='\033[0;34m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
CYAN='\033[0;36m'
|
|
NC='\033[0m'
|
|
|
|
echo -e "${BLUE}╔═══════════════════════════════════════════════════════════════╗${NC}"
|
|
echo -e "${BLUE}║${NC} ${GREEN}JARVIS SYSTEM${NC} ${BLUE}║${NC}"
|
|
echo -e "${BLUE}╚═══════════════════════════════════════════════════════════════╝${NC}"
|
|
echo ""
|
|
|
|
echo -e "${CYAN}🏥 SYSTEM HEALTH${NC}"
|
|
bash /home/alex/clawd/tools/jarvis-health-check.sh 2>&1 | tail -10
|
|
echo ""
|
|
|
|
echo -e "${CYAN}🔄 AUTO-HEALING${NC}"
|
|
if [ -f /home/alex/clawd/logs/jarvis-auto-heal.log ]; then
|
|
echo " Last run: $(tail -1 /home/alex/clawd/logs/jarvis-auto-heal.log 2>/dev/null || echo 'Never')"
|
|
alerts=$(grep -c "ALERT" /home/alex/clawd/logs/jarvis-alerts.log 2>/dev/null || echo "0")
|
|
echo " Critical alerts: $alerts"
|
|
else
|
|
echo " No healing log yet"
|
|
fi
|
|
echo ""
|
|
|
|
echo -e "${CYAN}📊 PREDICTIVE ANALYSIS${NC}"
|
|
if [ -f /home/alex/clawd/logs/jarvis-predict.log ]; then
|
|
echo " Latest predictions:"
|
|
grep "PREDICTION\|📊" /home/alex/clawd/logs/jarvis-predict.log 2>/dev/null | tail -5 | sed 's/^/ /'
|
|
else
|
|
echo " No predictions yet"
|
|
fi
|
|
echo ""
|
|
|
|
echo -e "${CYAN}🧠 CONTEXT MEMORY${NC}"
|
|
if [ -f /home/alex/clawd/data/context/memory.json ]; then
|
|
echo " $(jq -r '"Active projects: " + (.projects.kanban_active | length | tostring)' /home/alex/clawd/data/context/memory.json 2>/dev/null || echo 'Initializing...')"
|
|
echo " $(jq -r '"Preferred agent: " + (.preferences.preferred_agent // "learning...")' /home/alex/clawd/data/context/memory.json 2>/dev/null || echo '')"
|
|
else
|
|
echo " Learning..."
|
|
fi
|
|
echo ""
|
|
|
|
echo -e "${CYAN}🤖 AUTO-DELEGATION${NC}"
|
|
delegatable=$(curl -sf http://192.168.1.220:5003/api/tasks?status=queue 2>/dev/null | jq '[.[] | select(.tags | contains("agent:"))] | length' 2>/dev/null || echo "0")
|
|
echo " Agent-ready tasks: $delegatable"
|
|
echo ""
|
|
|
|
echo -e "${CYAN}⏰ AUTOMATION STATUS${NC}"
|
|
jarvis_jobs=$(openclaw cron list 2>/dev/null | jq -r '.jobs[] | select(.name | contains("Jarvis")) | " \(.name): \(if .enabled then "✓" else "✗" end)"' 2>/dev/null)
|
|
if [ -n "$jarvis_jobs" ]; then
|
|
echo "$jarvis_jobs"
|
|
else
|
|
echo " No Jarvis automation running"
|
|
fi
|
|
echo ""
|
|
|
|
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
|
echo -e "${GREEN}\"All systems operational and learning, sir.\" 🦾${NC}"
|