/** File-type whitelists & size caps for project folder indexing. */

export const TEXT_EXTS = new Set([
  '.md', '.txt', '.rst', '.adoc',
  '.json', '.yaml', '.yml', '.toml', '.ini', '.csv', '.tsv',
  '.html', '.htm', '.xml',
  '.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs',
  '.py', '.rb', '.go', '.rs', '.java', '.kt', '.swift',
  '.c', '.h', '.cpp', '.hpp', '.cs', '.php', '.sh', '.ps1',
  '.css', '.scss', '.sass',
  '.sql',
]);

export const IMAGE_EXTS = new Set(['.png', '.jpg', '.jpeg', '.webp']);

export const PDF_EXTS = new Set(['.pdf']);
export const DOCX_EXTS = new Set(['.docx']);

export const MAX_TEXT_FILE_BYTES = 1 * 1024 * 1024;   // 1 MB
export const MAX_IMAGE_FILE_BYTES = 5 * 1024 * 1024;  // 5 MB
export const INDEX_BATCH_SIZE = 5;
