import { runBulkFlow } from "./lib/auto-token.js";
import fs from "fs";

async function main() {
  console.log("Starting bulk flow for single account registration...");
  const email = `tektest_${Math.floor(100 + Math.random() * 900)}@tekno-mail.my.id`;
  console.log("Registering email:", email);
  
  const res = await runBulkFlow([{ email }], (logMsg) => {
    console.log(logMsg.msg);
  });
  console.log("Result:", JSON.stringify(res, null, 2));
  process.exit(0);
}

main().catch(console.error);
