#!/usr/bin/env node
import { runCheckRunner } from "./src/check-runner-lib.mjs";

try {
  const result = await runCheckRunner(process.argv.slice(2));
  process.exit(result.exitCode);
} catch (error) {
  const message = error instanceof Error ? error.message : String(error);
  process.stderr.write(JSON.stringify({ ok: false, command: "check-runner", error: message }, null, 2) + "\n");
  process.exit(1);
}
