/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
const require_defaultTokensConfig = require("../defaultTokensConfig.cjs");
const require_styles_variants = require("../styles/variants.cjs");
const require_cli = require("./dist/cli.cjs");
const require_css = require("../css/dist/commands/css.cjs");
const require_cli$1 = require("../tailwind-v4/dist/cli.cjs");
const require_package = require("../uds/package.cjs");
const require_cli_commands_purge = require("./commands/purge.cjs");
const require_cli_commands_sync = require("./commands/sync.cjs");
const require_cli_commands_version = require("./commands/version.cjs");
let node_path = require("node:path");
node_path = require_runtime.__toESM(node_path, 1);
let node_url = require("node:url");
//#region src/cli/runner.ts
const loadComponentData = async () => {
	const { default: componentData } = await import("../../generated/componentData.json", { with: { type: "json" } });
	return componentData;
};
const getPurgeContext = async () => {
	const componentData = await loadComponentData();
	return {
		variants: require_styles_variants.variants,
		packageJson: require_package.default,
		generatedPurgeCssData: await Promise.resolve().then(() => require("../uds/generated/tailwindPurge.cjs")),
		autoVariants: (await Promise.resolve().then(() => require("../automated-config/dist/generated/autoVariants.cjs"))).autoVariants,
		componentData
	};
};
const purgeCommand = {
	name: "purge",
	description: "Purge unused CSS",
	run: async (props) => {
		await require_cli_commands_purge.makePurgeCommand(getPurgeContext).run(props);
	}
};
const cssCommand = require_css.makeCSSCommand(async () => {
	const componentData = await loadComponentData();
	return {
		variants: require_styles_variants.variants,
		autoVariants: (await Promise.resolve().then(() => require("../automated-config/dist/generated/autoVariants.cjs"))).autoVariants,
		componentData
	};
});
const getTailwindV4Config = async () => {
	for (const candidatePath of ["uds.config.ts", "uds.config.js"]) try {
		const loaded = await import((0, node_url.pathToFileURL)(node_path.default.resolve(process.cwd(), candidatePath)).href);
		if (loaded.config) return loaded.config;
	} catch {}
	return require_defaultTokensConfig.defaultTokensConfig;
};
require_cli.run([
	require_cli_commands_version.versionCommand,
	purgeCommand,
	cssCommand,
	require_cli$1.makeTailwindV4ThemeCommand({ getConfig: getTailwindV4Config }),
	require_cli_commands_sync.syncCommand
]);
//#endregion
