#!/bin/bash
# Cairnquire - Quick status check

STATUS_FILE="/Users/tim/developer/cairnquire/docs/STATUS.md"
PID_FILE="/Users/tim/developer/cairnquire/.monitor.pid"

echo ""
if [[ -f "$PID_FILE" ]]; then
    PID=$(cat "$PID_FILE")
    if kill -0 "$PID" 2>/dev/null; then
        echo "Monitor: RUNNING (PID: $PID)"
    else
        echo "Monitor: STOPPED (stale PID file)"
    fi
else
    echo "Monitor: NOT RUNNING"
fi

echo ""

if [[ -f "$STATUS_FILE" ]]; then
    cat "$STATUS_FILE"
else
    echo "No status file found. Run ./scripts/install-monitor.sh to start monitoring."
fi
