const allowedServices = new Set(["ai", "resend", "amap"]);

function argument(name) {
  const index = process.argv.indexOf(name);
  return index >= 0 ? process.argv[index + 1] : undefined;
}

const service = argument("--service");
const runId = argument("--run-id");

if (!allowedServices.has(service) || !runId) {
  console.error("Usage: pnpm validate:external -- --service <ai|resend|amap> --run-id <id>");
  process.exit(2);
}

console.log(
  JSON.stringify({
    mode: "mock",
    run_id: runId,
    service,
    status: "not_applicable_for_TASK-WP0-01",
  }),
);
