#!/usr/bin/env node /** * cli-shim.cts — Node-version PREFLIGHT for the flair-bench CLI. * * THIS IS THE BIN ENTRY (`package.json` "bin": { "flair-bench": "dist/cli-shim.cjs" }). * * Same pattern as the root package's src/cli-shim.cts and * packages/flair-mcp/src/mcp-shim.cts — see either for the full rationale. * Short version: the real CLI (dist/cli.js) is an ES module, and ESM hoists * + links + evaluates the whole import graph before the first statement in * the file body runs — so a Node-version check inside cli.ts itself would * never execute on a too-old Node (node-llama-cpp requires a modern engine * and fails to load first). This file is CommonJS, which evaluates * top-to-bottom, so the version check below is guaranteed to run and print * before anything tries to load the ESM CLI or node-llama-cpp. * * Deliberately ancient-safe syntax only — `var`, plain functions, string * `.split`/`parseInt`, `console.error`, `process.exit`. No top-level await, * no optional chaining reaching modern-only APIs. */ export {};