const fs = require('fs');
const path = require('path');
const scratchDir = path.join('C:', 'Users', 'BS', '.gemini', 'antigravity', 'brain', '393257b2-e812-421c-92f7-099f2362049e', 'scratch');

let files = fs.readdirSync(scratchDir);
for (let file of files) {
  if (file.endsWith('.js') || file.endsWith('.txt')) {
    let content = fs.readFileSync(path.join(scratchDir, file), 'utf8');
    if (content.includes('stat-card') && content.includes('امين مخزن') || content.includes('أمناء المخازن') || content.includes('storekeeper')) {
      console.log('Match in ' + file);
      let lines = content.split('\n');
      for (let i = 0; i < lines.length; i++) {
         if (lines[i].includes('stat-card') || lines[i].includes('امين') || lines[i].includes('storekeeper')) {
            console.log(i + ': ' + lines[i]);
         }
      }
    }
  }
}
