#!/usr/bin/env node
import { runDevEdgeHealthSmoke } from "./src/dev-edge-health-smoke-lib.mjs";

try {
  const { report, exitCode } = await runDevEdgeHealthSmoke(process.argv.slice(2));
  process.stdout.write(`${JSON.stringify(report, null, 2)}\n`);
  process.exitCode = exitCode;
} catch (error) {
  process.stderr.write(`[dev-edge-health-smoke] ${error instanceof Error ? error.stack : String(error)}\n`);
  process.exitCode = 1;
}
