import { config } from '../src/config.js'; import { Store } from '../src/store.js'; import { TargetedBackfill } from '../src/backfill.js'; const actorIndex = process.argv.indexOf('--actor'); const actor = process.argv[actorIndex + 1]; if (!actor) { console.error('Usage: npm run backfill -- --actor callie.on-her.computer'); process.exit(2); } const store = new Store(config.databasePath); try { console.log(await new TargetedBackfill(store, config).run(actor)); } finally { store.close(); }