#!/usr/bin/env node
import { runPreflight } from "./src/dev-gate-preflight.mjs";

const issue = "pikasTech/HWLAB#34";

try {
  await runPreflight(process.argv.slice(2));
} catch (error) {
  console.error(JSON.stringify({
    issue,
    conclusion: "blocked",
    error: error instanceof Error ? error.message : String(error)
  }, null, 2));
  process.exitCode = 1;
}
