#!/bin/bash
# ============================================
# Docker Hard Reset Script
# Triggers complete Docker rebuild and file sync
# ============================================

PROJECT_ROOT="/Users/Asim/Desktop/mawidi_codex"
HOOK_SCRIPT="$PROJECT_ROOT/.claude/hooks/file-watcher-hook.sh"

echo "🚀 Triggering Docker Hard Reset..."
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"

# Call the hook with task_complete event to trigger hard reset
if [[ -x "$HOOK_SCRIPT" ]]; then
    "$HOOK_SCRIPT" "task_complete" "MANUAL_TRIGGER"
else
    echo "❌ Error: Hook script not found or not executable"
    echo "Please ensure $HOOK_SCRIPT exists and is executable"
    exit 1
fi

echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "✅ Docker hard reset triggered successfully!"