'use strict';

const require$$4$1 = require('assert');
const index = require('./cli.cebce5ac.cjs');
const kit_bb49e233 = require('./cli.de27c2e0.cjs');
require('events');
require('fs');
require('path');
require('util');
require('stream');
require('os');
require('node:fs');
require('node:module');
require('node:url');
require('node:fs/promises');
require('node:os');
require('crypto');
require('module');
require('perf_hooks');
require('vm');
require('url');
require('buffer');
require('tty');
require('node:path');
require('constants');
require('net');
require('child_process');

const version = "0.0.1";
const engines = {
	node: "^14.16.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
};

var assert = require$$4$1;

var clear = function clear(opts) {
    if (typeof (opts) === 'boolean') {
        opts = {
            fullClear: opts
        };
    }

    opts = opts || {};
    assert(typeof (opts) === 'object', 'opts must be an object');

    opts.fullClear = opts.hasOwnProperty('fullClear') ?
        opts.fullClear : true;

    assert(typeof (opts.fullClear) === 'boolean',
        'opts.fullClear must be a boolean');

    if (opts.fullClear === true) {
        process.stdout.write('\x1b[2J');
    }

    process.stdout.write('\x1b[0f');
};

function showBanner(_clear) {
  if (_clear) {
    clear();
  }
  console.log(index.gray(`RemixKit ${index.bold(version)}`));
}
function showVersions(cwd) {
  const getPkgVersion = (pkg) => {
    return kit_bb49e233.tryRequireModule(`${pkg}/package.json`, cwd)?.version || "";
  };
  const remixVersion = getPkgVersion("@remix-run/server-runtime") || getPkgVersion("remix");
  console.log(
    index.gray(
      index.green(`Remix ${index.bold(remixVersion)}`)
    )
  );
}

exports.engines = engines;
exports.showBanner = showBanner;
exports.showVersions = showVersions;
