#!/usr/bin/env node
import { createRequire as __kanban_createRequire } from "node:module";
const require = __kanban_createRequire(import.meta.url);

// src/core/node-version.ts
var MINIMUM_SUPPORTED_NODE_MAJOR = 20;
function parseNodeMajorVersion(version) {
  const [majorSegment] = version.split(".", 1);
  if (!majorSegment) {
    return null;
  }
  const major = Number.parseInt(majorSegment, 10);
  return Number.isFinite(major) ? major : null;
}
function isSupportedNodeVersion(version) {
  const major = parseNodeMajorVersion(version);
  return major !== null && major >= MINIMUM_SUPPORTED_NODE_MAJOR;
}
function formatUnsupportedNodeVersionMessage(version) {
  return [
    `fabric-kanban requires Node.js ${MINIMUM_SUPPORTED_NODE_MAJOR} or newer.`,
    `Detected Node.js ${version}.`,
    "Upgrade Node.js and try again."
  ].join("\n");
}

// src/cli-bootstrap.ts
var currentNodeVersion = process.versions.node;
if (!isSupportedNodeVersion(currentNodeVersion)) {
  process.stderr.write(`${formatUnsupportedNodeVersionMessage(currentNodeVersion)}
`);
  process.exit(1);
}
var cliMainUrl = new URL("./cli-main.js", import.meta.url);
await import(cliMainUrl.href);
//# sourceMappingURL=cli.js.map
