#!/usr/bin/env node
import { defineCommand, runMain } from "citty";
import { existsSync, rmSync } from "node:fs";
import { join } from "node:path";
//#region src/cli.ts
const main = defineCommand({
	meta: {
		name: "plannar",
		version: "0.0.1",
		description: "MDX plan editor CLI — init, preview, and export plans"
	},
	subCommands: {
		init: () => import("./init-CK5HMoQf.mjs").then((m) => m.default),
		editor: () => import("./editor-Bv5RTgcT.mjs").then((m) => m.default),
		export: () => import("./export-BPZixWW4.mjs").then((m) => m.default),
		status: () => import("./status-gCBxoymh.mjs").then((m) => m.default)
	}
});
const junkCss = join(process.cwd(), ".plannar", "node_modules", ".plannar-junk.css");
if (existsSync(junkCss)) rmSync(junkCss);
runMain(main);
//#endregion
export {};
