#!/usr/bin/env node
(()=>{const a=process.argv.slice(2);if(a.length===1&&(a[0]==="--version"||a[0]==="-V")){console.log("3.0.1");process.exit(0);}})();
"use strict";

// src/load-env.ts
var import_fs = require("fs");
var import_path = require("path");
try {
  const envPath = (0, import_path.resolve)(process.cwd(), ".env");
  if ((0, import_fs.existsSync)(envPath)) {
    const content = (0, import_fs.readFileSync)(envPath, "utf-8");
    for (const line of content.split("\n")) {
      const trimmed = line.trim();
      if (trimmed && !trimmed.startsWith("#")) {
        const eq = trimmed.indexOf("=");
        if (eq > 0) {
          const key = trimmed.slice(0, eq).trim();
          const value = trimmed.slice(eq + 1).trim().replace(/^["']|["']$/g, "");
          if (key && process.env[key] === void 0)
            process.env[key] = value;
        }
      }
    }
  }
} catch {
}

// src/launcher-entry.ts
var import_node_path = require("node:path");
require((0, import_node_path.join)(__dirname, "cli-main.cjs"));
