#!/usr/bin/env node
import {
  add
} from "./chunk-ACCTMJVS.mjs";
import {
  scan
} from "./chunk-PL2BQ6GK.mjs";
import "./chunk-LSUI3VI4.mjs";
import "./chunk-LB3L25FS.mjs";
import "./chunk-UJM3S22V.mjs";
import "./chunk-NGEKE4DQ.mjs";
import "./chunk-EOKQCSHI.mjs";
import "./chunk-EH2SEQZP.mjs";

// src/cli.ts
import { Command } from "commander";
var program = new Command();
program.name("stackscan").description("Auto-detect tech stacks and generate tech.json or markdown.").version("0.1.0");
program.command("scan", { isDefault: true }).description("Scan stacks from multiple projects in public/stackscan/").option("--color <mode>", "Color mode (brand, white, black, or hex)", "brand").option("--no-readme", "Do not update the root README.md").action(async (options) => {
  await scan(options);
});
program.command("add <path>").description("Add a project (folder or package.json) to the public/stackscan workspace").action(async (path) => {
  await add(path);
});
program.parse();
