#!/usr/bin/env bun
import { sourcePath, listJson, writeJson, now } from './lib/intel-utils'

const rawFiles = listJson(sourcePath('trustpilot'))
writeJson(sourcePath('trustpilot-status.json'), {
  generatedAt: now(),
  sourceType: 'trustpilot_import_status',
  status: rawFiles.length ? 'available' : 'missing',
  files: rawFiles,
  note: rawFiles.length ? 'Trustpilot source drops detected.' : 'Place Trustpilot exports in data/sources/trustpilot/. No synthetic Trustpilot evidence generated.'
})
console.log(`Trustpilot source files: ${rawFiles.length}`)
