<?php
function scan_brain_for_scripts($dir) {
    if (!is_dir($dir)) return;
    $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir));
    foreach ($it as $file) {
        if ($file->isFile()) {
            $name = $file->getFilename();
            if (stripos($name, 'restore') !== false || stripos($name, 'stripe') !== false) {
                if (stripos($name, '.php') !== false || stripos($name, '.txt') !== false || stripos($name, '.sql') !== false) {
                    echo "Found script: " . $file->getPathname() . " (" . $file->getSize() . " bytes)\n";
                }
            }
        }
    }
}

$brainDir = 'C:/Users/HP/.gemini/antigravity-ide/brain';
scan_brain_for_scripts($brainDir);
