#!/bin/bash
# ==============================================================================
# Synthetic Digital Organism (SDO) - Clean Process Termination Script
# ==============================================================================
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
touch "$SCRIPT_DIR/.stop_sdo"
echo "Stopping Synthetic Digital Organism processes..."
pkill -f "brain_server" || true
pkill -f "av_driver.py" || true
pkill -f "vision_driver.py" || true
pkill -f "motor_driver.py" || true
pkill -f "vocal_driver.py" || true
pkill -f "kernel_input.py" || true
pkill -f "probe_hardware.py" || true
pkill -f "anki_vector_driver.py" || true
echo "✅ All SDO processes cleanly stopped."
