@shortwind/cli 0.1.0-beta.11 → 0.1.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bin.js","names":["runPreset"],"sources":["../src/cli.ts","../src/bin.ts"],"sourcesContent":["import * as p from \"@clack/prompts\";\nimport pc from \"picocolors\";\nimport { cac } from \"cac\";\nimport { add } from \"./commands/add.js\";\nimport { build, BuildError } from \"./commands/build.js\";\nimport { dev } from \"./commands/dev.js\";\nimport { remove } from \"./commands/remove.js\";\nimport { preset as runPreset } from \"./commands/preset.js\";\nimport { ls, formatLsText } from \"./commands/ls.js\";\nimport {\n upgrade,\n UpgradeError,\n type TouchedContext,\n type UpgradeChoice,\n} from \"./commands/upgrade.js\";\nimport { verify } from \"./commands/verify.js\";\nimport { lint, formatFindingsText, ALL_RULES, type Rule } from \"./commands/lint.js\";\nimport { init, cliVersion, type InitOptions, DEFAULT_REGISTRY } from \"./init.js\";\nimport { bench, formatBenchTable } from \"./commands/bench.js\";\nimport { newFamily, NewFamilyError } from \"./commands/new.js\";\nimport { reseal } from \"./commands/reseal.js\";\n\nconst KNOWN_PRESETS = [\"starter\", \"app\", \"content\", \"all\", \"none\"];\nexport const DEFAULT_PRESET = \"starter\";\n\n// Decide the init preset without forcing a TTY: an explicit --preset wins,\n// --yes/-y takes the default, and only the bare interactive call prompts —\n// agents and CI run `init --yes` unattended (#68).\nexport async function resolveInitPreset(\n opts: { preset?: string; yes?: boolean },\n prompt: () => Promise<string>,\n): Promise<string> {\n if (opts.preset !== undefined) return opts.preset;\n if (opts.yes) return DEFAULT_PRESET;\n return prompt();\n}\n\nexport async function run(argv: string[] = process.argv): Promise<void> {\n const cli = cac(\"shortwind\");\n\n cli\n .command(\"init\", \"Bootstrap Shortwind in this project\")\n .option(\"--preset <name>\", \"Preset to install (starter|app|content|all|none)\")\n .option(\"-y, --yes\", `Skip prompts and use the default preset (${DEFAULT_PRESET})`)\n .option(\"--registry <url>\", \"Registry origin\", { default: DEFAULT_REGISTRY })\n .option(\"--cwd <dir>\", \"Working directory\", { default: process.cwd() })\n .action(async (opts: { preset?: string; yes?: boolean; registry?: string; cwd?: string }) => {\n const preset = await resolveInitPreset(opts, promptForPreset);\n const options: InitOptions = {\n cwd: opts.cwd ?? process.cwd(),\n preset,\n };\n if (opts.registry !== undefined) options.registry = opts.registry;\n const result = await init(options);\n printInitSummary(result);\n });\n\n cli\n .command(\"add <...families>\", \"Install one or more families\")\n .option(\"--as <name>\", \"Rename the family on install (requires a single family)\")\n .option(\"--all\", \"Install every family in the registry\")\n .option(\"--force\", \"Overwrite existing files\")\n .option(\"--registry <url>\", \"Registry origin\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(\n async (\n families: string[],\n opts: { as?: string; all?: boolean; force?: boolean; registry?: string; cwd?: string },\n ) => {\n const addOptions: Parameters<typeof add>[0] = {\n cwd: opts.cwd ?? process.cwd(),\n families,\n };\n if (opts.as !== undefined) addOptions.as = opts.as;\n if (opts.all) addOptions.all = true;\n if (opts.force) addOptions.force = true;\n if (opts.registry !== undefined) addOptions.registry = opts.registry;\n const result = await add(addOptions);\n for (const fam of result.added) p.log.success(`added ${fam}`);\n for (const fam of result.overwritten) p.log.success(`overwrote ${fam}`);\n for (const fam of result.skipped) p.log.warn(`${fam} already exists (use --force)`);\n for (const missing of result.missingDependencies) {\n p.log.warn(\n `${missing.family} references unknown recipes: ${missing.references.join(\", \")}`,\n );\n }\n },\n );\n\n cli\n .command(\"new <family>\", \"Scaffold a new custom recipe family file\")\n .option(\"--force\", \"Overwrite an existing family file\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (family: string, opts: { force?: boolean; cwd?: string }) => {\n try {\n const result = await newFamily({\n cwd: opts.cwd ?? process.cwd(),\n family,\n ...(opts.force ? { force: true } : {}),\n });\n p.log.success(`created ${result.familyPath}`);\n p.log.info(`regenerated ${result.skillPath} — edit the recipes, then \\`shortwind build\\` to refresh.`);\n } catch (err) {\n if (err instanceof NewFamilyError) {\n process.stderr.write(err.message + \"\\n\");\n process.exit(1);\n }\n throw err;\n }\n });\n\n cli\n .command(\"remove <...families>\", \"Remove installed families\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (families: string[], opts: { cwd?: string }) => {\n const result = await remove({ cwd: opts.cwd ?? process.cwd(), families });\n for (const fam of result.removed) p.log.success(`removed ${fam}`);\n for (const fam of result.notFound) p.log.warn(`${fam} is not installed`);\n for (const broken of result.brokenDependents) {\n p.log.warn(\n `${broken.dependent} references removed recipes: ${broken.references.join(\", \")}`,\n );\n }\n });\n\n cli\n .command(\"preset <name>\", \"Install every family in the named preset (additive)\")\n .option(\"--registry <url>\", \"Registry origin\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (name: string, opts: { registry?: string; cwd?: string }) => {\n const presetOptions: Parameters<typeof runPreset>[0] = {\n cwd: opts.cwd ?? process.cwd(),\n name,\n };\n if (opts.registry !== undefined) presetOptions.registry = opts.registry;\n const result = await runPreset(presetOptions);\n p.log.info(`preset ${name}: ${result.added.length} added, ${result.skipped.length} already present`);\n });\n\n cli\n .command(\"ls\", \"List installed and available families\")\n .option(\"--installed\", \"Only installed\")\n .option(\"--available\", \"Only available\")\n .option(\"--json\", \"Emit JSON\")\n .option(\"--registry <url>\", \"Registry origin\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(\n async (opts: {\n installed?: boolean;\n available?: boolean;\n json?: boolean;\n registry?: string;\n cwd?: string;\n }) => {\n const lsOptions: Parameters<typeof ls>[0] = {\n cwd: opts.cwd ?? process.cwd(),\n };\n if (opts.installed) lsOptions.installedOnly = true;\n if (opts.available) lsOptions.availableOnly = true;\n if (opts.registry !== undefined) lsOptions.registry = opts.registry;\n const result = await ls(lsOptions);\n if (opts.json) {\n process.stdout.write(JSON.stringify(result, null, 2) + \"\\n\");\n } else {\n process.stdout.write(formatLsText(result) + \"\\n\");\n }\n },\n );\n\n cli\n .command(\"build\", \"Regenerate SKILL.md from ./recipes/\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (opts: { cwd?: string }) => {\n try {\n const result = await build({ cwd: opts.cwd ?? process.cwd() });\n if (result.changed) p.log.success(`regenerated ${result.families.length} families`);\n else p.log.info(`up to date (${result.families.length} families)`);\n } catch (err) {\n if (err instanceof BuildError) {\n process.stderr.write(err.message + \"\\n\");\n process.exit(1);\n }\n throw err;\n }\n });\n\n cli\n .command(\"dev\", \"Watch ./recipes/ and regenerate SKILL.md on change\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .option(\"--once\", \"Run build once and exit\")\n .action(async (opts: { cwd?: string; once?: boolean }) => {\n if (opts.once) {\n try {\n await build({ cwd: opts.cwd ?? process.cwd() });\n } catch (err) {\n if (err instanceof BuildError) {\n process.stderr.write(err.message + \"\\n\");\n process.exit(1);\n }\n throw err;\n }\n return;\n }\n const controller = new AbortController();\n const onSigint = (): void => controller.abort();\n process.on(\"SIGINT\", onSigint);\n try {\n const { stop } = await dev({\n cwd: opts.cwd ?? process.cwd(),\n signal: controller.signal,\n onStatus: (status) => {\n if (status.kind === \"rebuilt\") {\n const msg = `✓ regenerated ${status.families.length} families${status.changed ? \"\" : \" (no changes)\"}`;\n process.stdout.write(msg + \"\\n\");\n } else if (status.kind === \"ready\") {\n process.stdout.write(`watching ${status.recipesDir}\\n`);\n } else {\n process.stderr.write(status.message + \"\\n\");\n }\n },\n });\n // Block until SIGINT (or otherwise aborted), then close the watcher\n // and exit cleanly — without this the listener stays attached and\n // controller.abort() never returns control to the CLI.\n await new Promise<void>((resolve) => {\n if (controller.signal.aborted) resolve();\n else controller.signal.addEventListener(\"abort\", () => resolve(), { once: true });\n });\n await stop();\n } finally {\n process.off(\"SIGINT\", onSigint);\n }\n process.exit(0);\n });\n\n cli\n .command(\"upgrade [...families]\", \"Pull registry updates into ./recipes\")\n .option(\"--check\", \"Read-only — print drift summary and exit nonzero on updates\")\n .option(\"--force\", \"Skip touched-detection; overwrite local edits\")\n .option(\"--registry <url>\", \"Registry origin\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(\n async (\n families: string[],\n opts: { check?: boolean; force?: boolean; registry?: string; cwd?: string },\n ) => {\n try {\n const upgradeOptions: Parameters<typeof upgrade>[0] = {\n cwd: opts.cwd ?? process.cwd(),\n families,\n };\n if (opts.check) upgradeOptions.check = true;\n if (opts.force) upgradeOptions.force = true;\n if (opts.registry !== undefined) upgradeOptions.registry = opts.registry;\n if (!opts.check && !opts.force) {\n upgradeOptions.resolver = makeInteractiveResolver();\n }\n const result = await upgrade(upgradeOptions);\n printUpgradeSummary(result.outcomes);\n if (opts.check) {\n if (result.hasUpdates || result.hasTouched) process.exit(1);\n }\n } catch (err) {\n if (err instanceof UpgradeError) {\n process.stderr.write(err.message + \"\\n\");\n process.exit(2);\n }\n throw err;\n }\n },\n );\n\n cli\n .command(\"reseal [...families]\", \"Re-sign recipes after intentional edits (updates header sha + lockfile)\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (families: string[], opts: { cwd?: string }) => {\n const result = await reseal({ cwd: opts.cwd ?? process.cwd(), families });\n for (const f of result.resealed) p.log.success(`resealed ${f}`);\n for (const f of result.unchanged) p.log.info(`${f} already sealed`);\n for (const f of result.notFound) p.log.warn(`${f} is not installed`);\n for (const f of result.noHeader) p.log.warn(`${f} has no fingerprint header`);\n if (result.resealed.length === 0 && result.unchanged.length > 0 && result.notFound.length === 0) {\n p.log.success(\"all recipes already sealed\");\n }\n });\n\n cli\n .command(\"verify\", \"Check installed recipes against fingerprint headers and lockfile\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (opts: { cwd?: string }) => {\n const result = await verify({ cwd: opts.cwd ?? process.cwd() });\n if (result.ok) {\n p.log.success(`verified ${result.checked.length} families`);\n return;\n }\n for (const issue of result.issues) {\n const desc = describeVerifyIssue(issue);\n process.stderr.write(`${issue.family}: ${desc}\\n`);\n }\n process.exit(1);\n });\n\n cli\n .command(\"lint\", \"Static analysis over source files and recipes\")\n .option(\"--fix\", \"Apply auto-fixes where supported\")\n .option(\"--rule <rule>\", \"Only run the named rule (repeatable)\")\n .option(\"--json\", \"Emit machine-readable JSON\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(\n async (opts: { fix?: boolean; rule?: string | string[]; json?: boolean; cwd?: string }) => {\n const requested = opts.rule === undefined ? [] : Array.isArray(opts.rule) ? opts.rule : [opts.rule];\n for (const r of requested) {\n if (!ALL_RULES.includes(r as Rule)) {\n process.stderr.write(`unknown rule: ${r}\\n`);\n process.stderr.write(`available: ${ALL_RULES.join(\", \")}\\n`);\n process.exit(2);\n }\n }\n const lintOptions: Parameters<typeof lint>[0] = { cwd: opts.cwd ?? process.cwd() };\n if (opts.fix) lintOptions.fix = true;\n if (requested.length > 0) lintOptions.rules = requested as Rule[];\n const result = await lint(lintOptions);\n if (opts.json) {\n process.stdout.write(JSON.stringify(result, null, 2) + \"\\n\");\n } else {\n const text = formatFindingsText(result.findings);\n if (text) process.stdout.write(text + \"\\n\");\n for (const f of result.filesFixed) p.log.success(`fixed ${f}`);\n if (result.findings.length === 0) p.log.success(\"no findings\");\n }\n if (!result.ok) process.exit(1);\n },\n );\n\n cli\n .command(\"bench [path]\", \"Benchmark token savings in a corpus or target directory\")\n .option(\"--corpus\", \"Run benchmark on the built-in corpus\")\n .option(\"--json\", \"Emit machine-readable JSON\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (pathArg: string | undefined, opts: { corpus?: boolean; json?: boolean; cwd?: string }) => {\n const benchOptions: Parameters<typeof bench>[0] = { cwd: opts.cwd ?? process.cwd() };\n if (opts.corpus) benchOptions.corpus = true;\n if (pathArg !== undefined) benchOptions.path = pathArg;\n const result = await bench(benchOptions);\n if (opts.json) {\n process.stdout.write(JSON.stringify(result, null, 2) + \"\\n\");\n } else {\n const text = formatBenchTable(result);\n process.stdout.write(text + \"\\n\");\n }\n });\n\n cli.help();\n cli.version(cliVersion() ?? \"0.0.0\");\n // cac's parse() invokes the matched command's async action but does NOT await\n // it, so a rejection inside any async command (network failure in `add`, a\n // rethrow in `build`/`upgrade`, …) escapes bin.ts's `run().catch` and prints\n // a raw unhandled-rejection dump. Parse without running, then await the\n // command so its promise flows back to the caller's catch.\n cli.parse(argv, { run: false });\n await cli.runMatchedCommand();\n}\n\nfunction makeInteractiveResolver() {\n return async (ctx: TouchedContext): Promise<UpgradeChoice> => {\n process.stdout.write(\n pc.yellow(`\\n${ctx.family}: locally modified — incoming ${ctx.incoming.version}\\n`),\n );\n const choice = await p.select({\n message: `Resolve ${ctx.family}`,\n options: [\n { value: \"accept\", label: \"Accept new (discard local edits)\" },\n { value: \"keep\", label: \"Keep yours\" },\n { value: \"skip\", label: \"Skip for now\" },\n ],\n });\n if (p.isCancel(choice)) return \"skip\";\n return choice as UpgradeChoice;\n };\n}\n\nfunction printUpgradeSummary(outcomes: Awaited<ReturnType<typeof upgrade>>[\"outcomes\"]): void {\n for (const o of outcomes) {\n if (o.action === \"updated\") {\n process.stdout.write(pc.green(`✓ ${o.family} ${o.from} → ${o.to}\\n`));\n } else if (o.action === \"would-update\") {\n process.stdout.write(pc.cyan(`→ ${o.family} ${o.from} → ${o.to} (available)\\n`));\n } else if (o.action === \"would-review\") {\n process.stdout.write(pc.yellow(`! ${o.family} ${o.from} → ${o.to} (touched; needs review)\\n`));\n } else if (o.action === \"kept\" && o.reason === \"user-chose-keep\") {\n process.stdout.write(pc.dim(` ${o.family} kept local\\n`));\n } else if (o.action === \"skipped\") {\n process.stdout.write(pc.dim(` ${o.family} skipped (${o.reason})\\n`));\n }\n }\n}\n\nfunction describeVerifyIssue(issue: import(\"./commands/verify.js\").VerifyIssue): string {\n switch (issue.kind) {\n case \"missing-header\":\n return \"no fingerprint header — recipe was hand-stripped\";\n case \"header-tampered\":\n return `header sha ${issue.recorded} but body hashes to ${issue.actual}`;\n case \"legacy-fingerprint\":\n return `sealed with an older fingerprint format (${issue.recorded}) — run \\`shortwind reseal\\` to upgrade it (the recipe body is unchanged)`;\n case \"lockfile-mismatch\":\n return `lockfile expects ${issue.locked} but body hashes to ${issue.actual}`;\n case \"missing-lock-entry\":\n return \"installed but not recorded in lockfile\";\n case \"missing-file\":\n return \"in lockfile but file is missing\";\n }\n}\n\nasync function promptForPreset(): Promise<string> {\n const choice = await p.select({\n message: \"Pick a preset\",\n options: KNOWN_PRESETS.map((name) => ({ value: name, label: name })),\n });\n if (p.isCancel(choice)) {\n p.cancel(\"Cancelled.\");\n process.exit(0);\n }\n return choice;\n}\n\nfunction installCmd(pm: Awaited<ReturnType<typeof init>>[\"packageManager\"]): string {\n switch (pm) {\n case \"bun\":\n return \"bun add -d\";\n case \"npm\":\n return \"npm install -D\";\n default:\n return `${pm} add -D`;\n }\n}\n\nfunction printInitSummary(result: Awaited<ReturnType<typeof init>>): void {\n p.note(\n [\n `preset: ${result.preset}`,\n `registry: ${result.registry}`,\n `package manager: ${result.packageManager}`,\n `families copied: ${result.installedFamilies.length}`,\n `families skipped: ${result.skippedFamilies.length}`,\n `adapters: ${result.installOk ? result.installedPackages.join(\", \") || \"none\" : \"install failed — see below\"}`,\n ``,\n `config: ${result.configPath}`,\n `vscode settings: ${result.vscodePath}`,\n `pre-commit: ${result.huskyPath}`,\n `SKILL.md: ${result.skillPath}`,\n `theme: ${describeTheme(result)}`,\n `bundler config: ${describeBundlerConfig(result)}`,\n `agent guide: ${describeAgentsFile(result)}`,\n ].join(\"\\n\"),\n \"shortwind init\",\n );\n if (!result.installOk) {\n const v = cliVersion();\n const specs = result.installedPackages.map((p) => (v ? `${p}@${v}` : p)).join(\" \");\n p.log.warn(\n `Couldn't auto-install adapters (your recipes and config were still scaffolded).\\n` +\n `Finish by installing them yourself:\\n\\n` +\n ` ${installCmd(result.packageManager)} ${specs}\\n\\n` +\n `(${result.installError ?? \"unknown error\"})`,\n );\n }\n if (result.bundlerConfigAction === \"manual\" && result.bundlerConfigSnippet) {\n p.log.warn(`Add the plugin to your bundler config:\\n\\n${result.bundlerConfigSnippet}`);\n }\n if (result.missingThemeTokens.length > 0) {\n p.log.warn(\n `Your existing theme (${result.themePath}) does not define ${result.missingThemeTokens.length} design token${result.missingThemeTokens.length === 1 ? \"\" : \"s\"} the installed recipes use:\\n\\n` +\n ` ${result.missingThemeTokens.join(\", \")}\\n\\n` +\n `Recipes referencing them will render colorless until you add the tokens to your @theme.\\n` +\n `The default token block is documented at https://shortwind.dev/docs/install#theme-tokens`,\n );\n }\n p.outro(`Next: run \\`${result.packageManager} dev\\` to start watching.`);\n}\n\nfunction describeAgentsFile(result: Awaited<ReturnType<typeof init>>): string {\n switch (result.agentsFileAction) {\n case \"created\":\n return `wrote ${result.agentsFilePath}`;\n case \"appended\":\n return `added recipe pointer to ${result.agentsFilePath}`;\n case \"skipped\":\n return `pointer already in ${result.agentsFilePath}`;\n }\n}\n\nfunction describeBundlerConfig(result: Awaited<ReturnType<typeof init>>): string {\n switch (result.bundlerConfigAction) {\n case \"patched\":\n return `plugin added to ${result.bundlerConfigPath}`;\n case \"manual\":\n return \"needs a manual edit (see below)\";\n case \"skipped\":\n return result.bundlerConfigPath\n ? `already wired in ${result.bundlerConfigPath}`\n : \"skipped (no supported bundler)\";\n }\n}\n\nfunction describeTheme(result: Awaited<ReturnType<typeof init>>): string {\n switch (result.themeAction) {\n case \"injected\":\n return `tokens added to ${result.themePath}`;\n case \"created\":\n return `wrote ${result.themePath}`;\n case \"skipped\":\n return result.themePath\n ? `left existing theme in ${result.themePath} untouched`\n : \"skipped (no Tailwind v4 CSS entry — define color tokens yourself)\";\n }\n}\n","#!/usr/bin/env node\nimport { run } from \"./cli.js\";\n\nrun().catch((err) => {\n console.error(err instanceof Error ? err.stack ?? err.message : err);\n process.exit(1);\n});\n"],"mappings":";;;;;;AAsBA,MAAM,gBAAgB;CAAC;CAAW;CAAO;CAAW;CAAO;CAAO;AAClE,MAAa,iBAAiB;AAK9B,eAAsB,kBACpB,MACA,QACiB;CACjB,IAAI,KAAK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H,OAAO,2BAA2B,OAAO;EAC3C,KAAK,WACH,OAAO,sBAAsB,OAAO;;;AAI1C,SAAS,sBAAsB,QAAkD;CAC/E,QAAQ,OAAO,qBAAf;EACE,KAAK,WACH,OAAO,mBAAmB,OAAO;EACnC,KAAK,UACH,OAAO;EACT,KAAK,WACH,OAAO,OAAO,oBACV,oBAAoB,OAAO,sBAC3B;;;AAIV,SAAS,cAAc,QAAkD;CACvE,QAAQ,OAAO,aAAf;EACE,KAAK,YACH,OAAO,mBAAmB,OAAO;EACnC,KAAK,WACH,OAAO,SAAS,OAAO;EACzB,KAAK,WACH,OAAO,OAAO,YACV,0BAA0B,OAAO,UAAU,cAC3C;;;;;AC/fV,KAAK,CAAC,OAAO,QAAQ;CACnB,QAAQ,MAAM,eAAe,QAAQ,IAAI,SAAS,IAAI,UAAU,IAAI;CACpE,QAAQ,KAAK,EAAE;EACf"}
1
+ {"version":3,"file":"bin.js","names":["runPreset"],"sources":["../src/cli.ts","../src/bin.ts"],"sourcesContent":["import * as p from \"@clack/prompts\";\nimport pc from \"picocolors\";\nimport { cac } from \"cac\";\nimport { add } from \"./commands/add.js\";\nimport { build, BuildError } from \"./commands/build.js\";\nimport { dev } from \"./commands/dev.js\";\nimport { remove } from \"./commands/remove.js\";\nimport { preset as runPreset } from \"./commands/preset.js\";\nimport { ls, formatLsText } from \"./commands/ls.js\";\nimport {\n upgrade,\n UpgradeError,\n type TouchedContext,\n type UpgradeChoice,\n} from \"./commands/upgrade.js\";\nimport { verify } from \"./commands/verify.js\";\nimport { lint, formatFindingsText, ALL_RULES, type Rule } from \"./commands/lint.js\";\nimport { init, cliVersion, type InitOptions, DEFAULT_REGISTRY } from \"./init.js\";\nimport { bench, formatBenchTable } from \"./commands/bench.js\";\nimport { newFamily, NewFamilyError } from \"./commands/new.js\";\nimport { reseal } from \"./commands/reseal.js\";\n\nconst KNOWN_PRESETS = [\"starter\", \"app\", \"content\", \"all\", \"none\"];\nexport const DEFAULT_PRESET = \"starter\";\n\n// Decide the init preset without forcing a TTY: an explicit --preset wins,\n// --yes/-y takes the default, and only the bare interactive call prompts —\n// agents and CI run `init --yes` unattended (#68).\nexport async function resolveInitPreset(\n opts: { preset?: string; yes?: boolean },\n prompt: () => Promise<string>,\n): Promise<string> {\n if (opts.preset !== undefined) return opts.preset;\n if (opts.yes) return DEFAULT_PRESET;\n return prompt();\n}\n\nexport async function run(argv: string[] = process.argv): Promise<void> {\n const cli = cac(\"shortwind\");\n\n cli\n .command(\"init\", \"Bootstrap Shortwind in this project\")\n .option(\"--preset <name>\", \"Preset to install (starter|app|content|all|none)\")\n .option(\"-y, --yes\", `Skip prompts and use the default preset (${DEFAULT_PRESET})`)\n .option(\"--registry <url>\", \"Registry origin\", { default: DEFAULT_REGISTRY })\n .option(\"--cwd <dir>\", \"Working directory\", { default: process.cwd() })\n .action(async (opts: { preset?: string; yes?: boolean; registry?: string; cwd?: string }) => {\n const preset = await resolveInitPreset(opts, promptForPreset);\n const options: InitOptions = {\n cwd: opts.cwd ?? process.cwd(),\n preset,\n };\n if (opts.registry !== undefined) options.registry = opts.registry;\n const result = await init(options);\n printInitSummary(result);\n });\n\n cli\n .command(\"add <...families>\", \"Install one or more families\")\n .option(\"--as <name>\", \"Rename the family on install (requires a single family)\")\n .option(\"--all\", \"Install every family in the registry\")\n .option(\"--force\", \"Overwrite existing files\")\n .option(\"--registry <url>\", \"Registry origin\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(\n async (\n families: string[],\n opts: { as?: string; all?: boolean; force?: boolean; registry?: string; cwd?: string },\n ) => {\n const addOptions: Parameters<typeof add>[0] = {\n cwd: opts.cwd ?? process.cwd(),\n families,\n };\n if (opts.as !== undefined) addOptions.as = opts.as;\n if (opts.all) addOptions.all = true;\n if (opts.force) addOptions.force = true;\n if (opts.registry !== undefined) addOptions.registry = opts.registry;\n const result = await add(addOptions);\n for (const fam of result.added) p.log.success(`added ${fam}`);\n for (const fam of result.overwritten) p.log.success(`overwrote ${fam}`);\n for (const fam of result.skipped) p.log.warn(`${fam} already exists (use --force)`);\n for (const missing of result.missingDependencies) {\n p.log.warn(\n `${missing.family} references unknown recipes: ${missing.references.join(\", \")}`,\n );\n }\n },\n );\n\n cli\n .command(\"new <family>\", \"Scaffold a new custom recipe family file\")\n .option(\"--force\", \"Overwrite an existing family file\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (family: string, opts: { force?: boolean; cwd?: string }) => {\n try {\n const result = await newFamily({\n cwd: opts.cwd ?? process.cwd(),\n family,\n ...(opts.force ? { force: true } : {}),\n });\n p.log.success(`created ${result.familyPath}`);\n p.log.info(`regenerated ${result.skillPath} — edit the recipes, then \\`shortwind build\\` to refresh.`);\n } catch (err) {\n if (err instanceof NewFamilyError) {\n process.stderr.write(err.message + \"\\n\");\n process.exit(1);\n }\n throw err;\n }\n });\n\n cli\n .command(\"remove <...families>\", \"Remove installed families\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (families: string[], opts: { cwd?: string }) => {\n const result = await remove({ cwd: opts.cwd ?? process.cwd(), families });\n for (const fam of result.removed) p.log.success(`removed ${fam}`);\n for (const fam of result.notFound) p.log.warn(`${fam} is not installed`);\n for (const broken of result.brokenDependents) {\n p.log.warn(\n `${broken.dependent} references removed recipes: ${broken.references.join(\", \")}`,\n );\n }\n });\n\n cli\n .command(\"preset <name>\", \"Install every family in the named preset (additive)\")\n .option(\"--registry <url>\", \"Registry origin\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (name: string, opts: { registry?: string; cwd?: string }) => {\n const presetOptions: Parameters<typeof runPreset>[0] = {\n cwd: opts.cwd ?? process.cwd(),\n name,\n };\n if (opts.registry !== undefined) presetOptions.registry = opts.registry;\n const result = await runPreset(presetOptions);\n p.log.info(`preset ${name}: ${result.added.length} added, ${result.skipped.length} already present`);\n });\n\n cli\n .command(\"ls\", \"List installed and available families\")\n .option(\"--installed\", \"Only installed\")\n .option(\"--available\", \"Only available\")\n .option(\"--json\", \"Emit JSON\")\n .option(\"--registry <url>\", \"Registry origin\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(\n async (opts: {\n installed?: boolean;\n available?: boolean;\n json?: boolean;\n registry?: string;\n cwd?: string;\n }) => {\n const lsOptions: Parameters<typeof ls>[0] = {\n cwd: opts.cwd ?? process.cwd(),\n };\n if (opts.installed) lsOptions.installedOnly = true;\n if (opts.available) lsOptions.availableOnly = true;\n if (opts.registry !== undefined) lsOptions.registry = opts.registry;\n const result = await ls(lsOptions);\n if (opts.json) {\n process.stdout.write(JSON.stringify(result, null, 2) + \"\\n\");\n } else {\n process.stdout.write(formatLsText(result) + \"\\n\");\n }\n },\n );\n\n cli\n .command(\"build\", \"Regenerate SKILL.md from ./recipes/\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (opts: { cwd?: string }) => {\n try {\n const result = await build({ cwd: opts.cwd ?? process.cwd() });\n if (result.changed) p.log.success(`regenerated ${result.families.length} families`);\n else p.log.info(`up to date (${result.families.length} families)`);\n } catch (err) {\n if (err instanceof BuildError) {\n process.stderr.write(err.message + \"\\n\");\n process.exit(1);\n }\n throw err;\n }\n });\n\n cli\n .command(\"dev\", \"Watch ./recipes/ and regenerate SKILL.md on change\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .option(\"--once\", \"Run build once and exit\")\n .action(async (opts: { cwd?: string; once?: boolean }) => {\n if (opts.once) {\n try {\n await build({ cwd: opts.cwd ?? process.cwd() });\n } catch (err) {\n if (err instanceof BuildError) {\n process.stderr.write(err.message + \"\\n\");\n process.exit(1);\n }\n throw err;\n }\n return;\n }\n const controller = new AbortController();\n const onSigint = (): void => controller.abort();\n process.on(\"SIGINT\", onSigint);\n try {\n const { stop } = await dev({\n cwd: opts.cwd ?? process.cwd(),\n signal: controller.signal,\n onStatus: (status) => {\n if (status.kind === \"rebuilt\") {\n const msg = `✓ regenerated ${status.families.length} families${status.changed ? \"\" : \" (no changes)\"}`;\n process.stdout.write(msg + \"\\n\");\n } else if (status.kind === \"ready\") {\n process.stdout.write(`watching ${status.recipesDir}\\n`);\n } else {\n process.stderr.write(status.message + \"\\n\");\n }\n },\n });\n // Block until SIGINT (or otherwise aborted), then close the watcher\n // and exit cleanly — without this the listener stays attached and\n // controller.abort() never returns control to the CLI.\n await new Promise<void>((resolve) => {\n if (controller.signal.aborted) resolve();\n else controller.signal.addEventListener(\"abort\", () => resolve(), { once: true });\n });\n await stop();\n } finally {\n process.off(\"SIGINT\", onSigint);\n }\n process.exit(0);\n });\n\n cli\n .command(\"upgrade [...families]\", \"Pull registry updates into ./recipes\")\n .option(\"--check\", \"Read-only — print drift summary and exit nonzero on updates\")\n .option(\"--force\", \"Skip touched-detection; overwrite local edits\")\n .option(\"--registry <url>\", \"Registry origin\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(\n async (\n families: string[],\n opts: { check?: boolean; force?: boolean; registry?: string; cwd?: string },\n ) => {\n try {\n const upgradeOptions: Parameters<typeof upgrade>[0] = {\n cwd: opts.cwd ?? process.cwd(),\n families,\n };\n if (opts.check) upgradeOptions.check = true;\n if (opts.force) upgradeOptions.force = true;\n if (opts.registry !== undefined) upgradeOptions.registry = opts.registry;\n if (!opts.check && !opts.force) {\n upgradeOptions.resolver = makeInteractiveResolver();\n }\n const result = await upgrade(upgradeOptions);\n printUpgradeSummary(result.outcomes);\n if (opts.check) {\n if (result.hasUpdates || result.hasTouched) process.exit(1);\n }\n } catch (err) {\n if (err instanceof UpgradeError) {\n process.stderr.write(err.message + \"\\n\");\n process.exit(2);\n }\n throw err;\n }\n },\n );\n\n cli\n .command(\"reseal [...families]\", \"Re-sign recipes after intentional edits (updates header sha + lockfile)\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (families: string[], opts: { cwd?: string }) => {\n const result = await reseal({ cwd: opts.cwd ?? process.cwd(), families });\n for (const f of result.resealed) p.log.success(`resealed ${f}`);\n for (const f of result.unchanged) p.log.info(`${f} already sealed`);\n for (const f of result.notFound) p.log.warn(`${f} is not installed`);\n for (const f of result.noHeader) p.log.warn(`${f} has no fingerprint header`);\n if (result.resealed.length === 0 && result.unchanged.length > 0 && result.notFound.length === 0) {\n p.log.success(\"all recipes already sealed\");\n }\n });\n\n cli\n .command(\"verify\", \"Check installed recipes against fingerprint headers and lockfile\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (opts: { cwd?: string }) => {\n const result = await verify({ cwd: opts.cwd ?? process.cwd() });\n if (result.ok) {\n p.log.success(`verified ${result.checked.length} families`);\n return;\n }\n for (const issue of result.issues) {\n const desc = describeVerifyIssue(issue);\n process.stderr.write(`${issue.family}: ${desc}\\n`);\n }\n process.exit(1);\n });\n\n cli\n .command(\"lint\", \"Static analysis over source files and recipes\")\n .option(\"--fix\", \"Apply auto-fixes where supported\")\n .option(\"--rule <rule>\", \"Only run the named rule (repeatable)\")\n .option(\"--json\", \"Emit machine-readable JSON\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(\n async (opts: { fix?: boolean; rule?: string | string[]; json?: boolean; cwd?: string }) => {\n const requested = opts.rule === undefined ? [] : Array.isArray(opts.rule) ? opts.rule : [opts.rule];\n for (const r of requested) {\n if (!ALL_RULES.includes(r as Rule)) {\n process.stderr.write(`unknown rule: ${r}\\n`);\n process.stderr.write(`available: ${ALL_RULES.join(\", \")}\\n`);\n process.exit(2);\n }\n }\n const lintOptions: Parameters<typeof lint>[0] = { cwd: opts.cwd ?? process.cwd() };\n if (opts.fix) lintOptions.fix = true;\n if (requested.length > 0) lintOptions.rules = requested as Rule[];\n const result = await lint(lintOptions);\n if (opts.json) {\n process.stdout.write(JSON.stringify(result, null, 2) + \"\\n\");\n } else {\n const text = formatFindingsText(result.findings);\n if (text) process.stdout.write(text + \"\\n\");\n for (const f of result.filesFixed) p.log.success(`fixed ${f}`);\n if (result.findings.length === 0) p.log.success(\"no findings\");\n }\n if (!result.ok) process.exit(1);\n },\n );\n\n cli\n .command(\"bench [path]\", \"Benchmark token savings in a corpus or target directory\")\n .option(\"--corpus\", \"Run benchmark on the built-in corpus\")\n .option(\"--json\", \"Emit machine-readable JSON\")\n .option(\"--cwd <dir>\", \"Working directory\")\n .action(async (pathArg: string | undefined, opts: { corpus?: boolean; json?: boolean; cwd?: string }) => {\n const benchOptions: Parameters<typeof bench>[0] = { cwd: opts.cwd ?? process.cwd() };\n if (opts.corpus) benchOptions.corpus = true;\n if (pathArg !== undefined) benchOptions.path = pathArg;\n const result = await bench(benchOptions);\n if (opts.json) {\n process.stdout.write(JSON.stringify(result, null, 2) + \"\\n\");\n } else {\n const text = formatBenchTable(result);\n process.stdout.write(text + \"\\n\");\n }\n });\n\n cli.help();\n cli.version(cliVersion() ?? \"0.0.0\");\n // cac's parse() invokes the matched command's async action but does NOT await\n // it, so a rejection inside any async command (network failure in `add`, a\n // rethrow in `build`/`upgrade`, …) escapes bin.ts's `run().catch` and prints\n // a raw unhandled-rejection dump. Parse without running, then await the\n // command so its promise flows back to the caller's catch.\n cli.parse(argv, { run: false });\n await cli.runMatchedCommand();\n}\n\nfunction makeInteractiveResolver() {\n return async (ctx: TouchedContext): Promise<UpgradeChoice> => {\n process.stdout.write(\n pc.yellow(`\\n${ctx.family}: locally modified — incoming ${ctx.incoming.version}\\n`),\n );\n const choice = await p.select({\n message: `Resolve ${ctx.family}`,\n options: [\n { value: \"accept\", label: \"Accept new (discard local edits)\" },\n { value: \"keep\", label: \"Keep yours\" },\n { value: \"skip\", label: \"Skip for now\" },\n ],\n });\n if (p.isCancel(choice)) return \"skip\";\n return choice as UpgradeChoice;\n };\n}\n\nfunction printUpgradeSummary(outcomes: Awaited<ReturnType<typeof upgrade>>[\"outcomes\"]): void {\n for (const o of outcomes) {\n if (o.action === \"updated\") {\n process.stdout.write(pc.green(`✓ ${o.family} ${o.from} → ${o.to}\\n`));\n } else if (o.action === \"would-update\") {\n process.stdout.write(pc.cyan(`→ ${o.family} ${o.from} → ${o.to} (available)\\n`));\n } else if (o.action === \"would-review\") {\n process.stdout.write(pc.yellow(`! ${o.family} ${o.from} → ${o.to} (touched; needs review)\\n`));\n } else if (o.action === \"kept\" && o.reason === \"user-chose-keep\") {\n process.stdout.write(pc.dim(` ${o.family} kept local\\n`));\n } else if (o.action === \"skipped\") {\n process.stdout.write(pc.dim(` ${o.family} skipped (${o.reason})\\n`));\n }\n }\n}\n\nfunction describeVerifyIssue(issue: import(\"./commands/verify.js\").VerifyIssue): string {\n switch (issue.kind) {\n case \"missing-header\":\n return \"no fingerprint header — recipe was hand-stripped\";\n case \"header-tampered\":\n return `header sha ${issue.recorded} but body hashes to ${issue.actual}`;\n case \"legacy-fingerprint\":\n return `sealed with an older fingerprint format (${issue.recorded}) — run \\`shortwind reseal\\` to upgrade it (the recipe body is unchanged)`;\n case \"lockfile-mismatch\":\n return `lockfile expects ${issue.locked} but body hashes to ${issue.actual}`;\n case \"missing-lock-entry\":\n return \"installed but not recorded in lockfile\";\n case \"missing-file\":\n return \"in lockfile but file is missing\";\n }\n}\n\nasync function promptForPreset(): Promise<string> {\n const choice = await p.select({\n message: \"Pick a preset\",\n options: KNOWN_PRESETS.map((name) => ({ value: name, label: name })),\n });\n if (p.isCancel(choice)) {\n p.cancel(\"Cancelled.\");\n process.exit(0);\n }\n return choice;\n}\n\nfunction installCmd(pm: Awaited<ReturnType<typeof init>>[\"packageManager\"]): string {\n switch (pm) {\n case \"bun\":\n return \"bun add -d\";\n case \"npm\":\n return \"npm install -D\";\n default:\n return `${pm} add -D`;\n }\n}\n\nfunction printInitSummary(result: Awaited<ReturnType<typeof init>>): void {\n p.note(\n [\n `preset: ${result.preset}`,\n `registry: ${result.registry}`,\n `package manager: ${result.packageManager}`,\n `families copied: ${result.installedFamilies.length}`,\n `families skipped: ${result.skippedFamilies.length}`,\n `adapters: ${result.installOk ? result.installedPackages.join(\", \") || \"none\" : \"install failed — see below\"}`,\n ``,\n `config: ${result.configPath}`,\n `vscode settings: ${result.vscodePath}`,\n `pre-commit: ${result.huskyPath ?? \"skipped (not a git repository)\"}`,\n `SKILL.md: ${result.skillPath}`,\n `theme: ${describeTheme(result)}`,\n `bundler config: ${describeBundlerConfig(result)}`,\n `agent guide: ${describeAgentsFile(result)}`,\n ].join(\"\\n\"),\n \"shortwind init\",\n );\n if (!result.installOk) {\n const v = cliVersion();\n const specs = result.installedPackages.map((p) => (v ? `${p}@${v}` : p)).join(\" \");\n p.log.warn(\n `Couldn't auto-install adapters (your recipes and config were still scaffolded).\\n` +\n `Finish by installing them yourself:\\n\\n` +\n ` ${installCmd(result.packageManager)} ${specs}\\n\\n` +\n `(${result.installError ?? \"unknown error\"})`,\n );\n }\n if (result.bundlerConfigAction === \"manual\" && result.bundlerConfigSnippet) {\n p.log.warn(`Add the plugin to your bundler config:\\n\\n${result.bundlerConfigSnippet}`);\n }\n if (result.missingThemeTokens.length > 0) {\n p.log.warn(\n `Your existing theme (${result.themePath}) does not define ${result.missingThemeTokens.length} design token${result.missingThemeTokens.length === 1 ? \"\" : \"s\"} the installed recipes use:\\n\\n` +\n ` ${result.missingThemeTokens.join(\", \")}\\n\\n` +\n `Recipes referencing them will render colorless until you add the tokens to your @theme.\\n` +\n `The default token block is documented at https://shortwind.dev/docs/install#theme-tokens`,\n );\n }\n p.outro(`Next: run \\`${result.packageManager} dev\\` to start watching.`);\n}\n\nfunction describeAgentsFile(result: Awaited<ReturnType<typeof init>>): string {\n switch (result.agentsFileAction) {\n case \"created\":\n return `wrote ${result.agentsFilePath}`;\n case \"appended\":\n return `added recipe pointer to ${result.agentsFilePath}`;\n case \"skipped\":\n return `pointer already in ${result.agentsFilePath}`;\n }\n}\n\nfunction describeBundlerConfig(result: Awaited<ReturnType<typeof init>>): string {\n switch (result.bundlerConfigAction) {\n case \"patched\":\n return `plugin added to ${result.bundlerConfigPath}`;\n case \"manual\":\n return \"needs a manual edit (see below)\";\n case \"skipped\":\n return result.bundlerConfigPath\n ? `already wired in ${result.bundlerConfigPath}`\n : \"skipped (no supported bundler)\";\n }\n}\n\nfunction describeTheme(result: Awaited<ReturnType<typeof init>>): string {\n switch (result.themeAction) {\n case \"injected\":\n return `tokens added to ${result.themePath}`;\n case \"created\":\n return `wrote ${result.themePath}`;\n case \"skipped\":\n return result.themePath\n ? `left existing theme in ${result.themePath} untouched`\n : \"skipped (no Tailwind v4 CSS entry — define color tokens yourself)\";\n }\n}\n","#!/usr/bin/env node\nimport { run } from \"./cli.js\";\n\nrun().catch((err) => {\n console.error(err instanceof Error ? err.stack ?? err.message : err);\n process.exit(1);\n});\n"],"mappings":";;;;;;AAsBA,MAAM,gBAAgB;CAAC;CAAW;CAAO;CAAW;CAAO;CAAO;AAClE,MAAa,iBAAiB;AAK9B,eAAsB,kBACpB,MACA,QACiB;CACjB,IAAI,KAAK,WAAW,KAAA,GAAW,OAAO,KAAK;CAC3C,IAAI,KAAK,KAAK,OAAO;CACrB,OAAO,QAAQ;;AAGjB,eAAsB,IAAI,OAAiB,QAAQ,MAAqB;CACtE,MAAM,MAAM,IAAI,YAAY;CAE5B,IACG,QAAQ,QAAQ,sCAAsC,CACtD,OAAO,mBAAmB,mDAAmD,CAC7E,OAAO,aAAa,4CAA4C,eAAe,GAAG,CAClF,OAAO,oBAAoB,mBAAmB,EAAE,SAAS,kBAAkB,CAAC,CAC5E,OAAO,eAAe,qBAAqB,EAAE,SAAS,QAAQ,KAAK,EAAE,CAAC,CACtE,OAAO,OAAO,SAA8E;EAC3F,MAAM,SAAS,MAAM,kBAAkB,MAAM,gBAAgB;EAC7D,MAAM,UAAuB;GAC3B,KAAK,KAAK,OAAO,QAAQ,KAAK;GAC9B;GACD;EACD,IAAI,KAAK,aAAa,KAAA,GAAW,QAAQ,WAAW,KAAK;EAEzD,iBAAiB,MADI,KAAK,QAAQ,CACV;GACxB;CAEJ,IACG,QAAQ,qBAAqB,+BAA+B,CAC5D,OAAO,eAAe,0DAA0D,CAChF,OAAO,SAAS,uCAAuC,CACvD,OAAO,WAAW,2BAA2B,CAC7C,OAAO,oBAAoB,kBAAkB,CAC7C,OAAO,eAAe,oBAAoB,CAC1C,OACC,OACE,U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AAO,wBAAwB,YAAY,OAAO,sBACpD,EAAE,IAAI,KAAK,6CAA6C,OAAO,uBAAuB;CAExF,IAAI,OAAO,mBAAmB,SAAS,GACrC,EAAE,IAAI,KACJ,wBAAwB,OAAO,UAAU,oBAAoB,OAAO,mBAAmB,OAAO,eAAe,OAAO,mBAAmB,WAAW,IAAI,KAAK,IAAI,mCACxJ,OAAO,mBAAmB,KAAK,KAAK,CAAC,uLAG7C;CAEH,EAAE,MAAM,eAAe,OAAO,eAAe,2BAA2B;;AAG1E,SAAS,mBAAmB,QAAkD;CAC5E,QAAQ,OAAO,kBAAf;EACE,KAAK,WACH,OAAO,SAAS,OAAO;EACzB,KAAK,YACH,OAAO,2BAA2B,OAAO;EAC3C,KAAK,WACH,OAAO,sBAAsB,OAAO;;;AAI1C,SAAS,sBAAsB,QAAkD;CAC/E,QAAQ,OAAO,qBAAf;EACE,KAAK,WACH,OAAO,mBAAmB,OAAO;EACnC,KAAK,UACH,OAAO;EACT,KAAK,WACH,OAAO,OAAO,oBACV,oBAAoB,OAAO,sBAC3B;;;AAIV,SAAS,cAAc,QAAkD;CACvE,QAAQ,OAAO,aAAf;EACE,KAAK,YACH,OAAO,mBAAmB,OAAO;EACnC,KAAK,WACH,OAAO,SAAS,OAAO;EACzB,KAAK,WACH,OAAO,OAAO,YACV,0BAA0B,OAAO,UAAU,cAC3C;;;;;AC/fV,KAAK,CAAC,OAAO,QAAQ;CACnB,QAAQ,MAAM,eAAe,QAAQ,IAAI,SAAS,IAAI,UAAU,IAAI;CACpE,QAAQ,KAAK,EAAE;EACf"}
@@ -64,7 +64,7 @@ const CATALOG_RECIPES = {
64
64
  "dialog": "/* shortwind: dialog@0.0.1 sha:b4dbf853e99fce75 */\n\n/* @guide\n A modal is three layers: @dialog-overlay (dimmed backdrop), @dialog (the\n centering wrapper), and @dialog-content (the panel). Structure the panel with\n @dialog-header and @dialog-footer. Don't put content styling on @dialog\n itself — it's only the positioner.\n*/\n\n/* Modal dialog wrapper — covers the viewport, centers content. */\n@recipe dialog {\n fixed inset-0 z-50 flex items-center justify-center p-4\n}\n\n/* Dimmed overlay behind the dialog. */\n@recipe dialog-overlay {\n fixed inset-0 z-40 bg-black/50\n}\n\n/* Dialog content panel. */\n@recipe dialog-content {\n relative z-50 w-full max-w-md rounded-lg border border-border bg-popover text-popover-foreground p-6 shadow-xl\n}\n\n/* Dialog header region with title. */\n@recipe dialog-header {\n mb-4 flex flex-col gap-1\n}\n\n/* Dialog footer with right-aligned actions. */\n@recipe dialog-footer {\n mt-6 flex items-center justify-end gap-2\n}\n",
65
65
  "empty": "/* shortwind: empty@0.0.1 sha:003168e1b4a395c5 */\n\n/* @guide\n @empty is the container for a no-data state; fill it with @empty-icon,\n @empty-title, and @empty-description. These are slots for that pattern — use\n @heading-* / @body from the text family for ordinary copy.\n*/\n\n/* Empty-state container. */\n@recipe empty {\n flex flex-col items-center justify-center gap-3 rounded-md border border-dashed border-border p-8 text-center\n}\n\n/* Empty-state icon slot. */\n@recipe empty-icon {\n flex h-12 w-12 items-center justify-center rounded-full bg-muted text-muted-foreground\n}\n\n/* Empty-state title text. */\n@recipe empty-title {\n text-base font-semibold text-foreground\n}\n\n/* Empty-state supporting description. */\n@recipe empty-description {\n max-w-sm text-sm text-muted-foreground\n}\n",
66
66
  "feedback": "/* shortwind: feedback@0.0.1 sha:818868f6af179bcf */\n\n/* @guide\n Inline messages use @alert (neutral) or a tone variant @alert-success/\n warning/danger/info — one tone each. @callout is a left-accent inline note,\n @toast is a floating notification, @banner spans the full viewport width.\n*/\n\n/* Default informational alert. */\n@recipe alert {\n flex items-start gap-3 rounded-md border border-border bg-card p-4 text-sm text-card-foreground\n}\n\n/* Success alert. */\n@recipe alert-success {\n flex items-start gap-3 rounded-md border border-green-200 bg-green-50 p-4 text-sm text-green-900 dark:border-green-900 dark:bg-green-950 dark:text-green-100\n}\n\n/* Warning alert. */\n@recipe alert-warning {\n flex items-start gap-3 rounded-md border border-amber-200 bg-amber-50 p-4 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-100\n}\n\n/* Danger alert. */\n@recipe alert-danger {\n flex items-start gap-3 rounded-md border border-destructive/30 bg-destructive/10 p-4 text-sm text-destructive\n}\n\n/* Informational alert. */\n@recipe alert-info {\n flex items-start gap-3 rounded-md border border-primary/30 bg-primary/10 p-4 text-sm text-primary\n}\n\n/* Inline callout — flush left edge accent. */\n@recipe callout {\n border-l-4 border-primary bg-primary/10 p-4 text-sm text-foreground\n}\n\n/* Floating toast notification. */\n@recipe toast {\n pointer-events-auto flex items-start gap-3 rounded-md border border-border bg-popover p-4 text-sm text-popover-foreground shadow-lg\n}\n\n/* Full-width banner spanning the viewport. */\n@recipe banner {\n w-full bg-primary px-4 py-2 text-center text-sm font-medium text-primary-foreground\n}\n",
67
- "form": "/* shortwind: form@0.0.1 sha:bc12a9cc520a2d85 */\n\n/* @guide\n Wrap each label+control+message in @field (use @field-error for the invalid\n state); group related fields with @fieldset. Controls are bare: @input,\n @textarea, @select, @checkbox, @radio, plus @input-error for invalid text\n and @input-shell for the transparent shadcn-style shell. Helper text is\n @help. There is no @form-group (use @field), @form-input (use @input),\n @form-helper (use @help) or @form-checkbox (use @checkbox); the field label\n recipe is @label, in the text family.\n*/\n\n/* Text input field. */\n@recipe input {\n block w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:border-ring focus:outline-2 focus:outline-offset-2 focus:outline-ring disabled:cursor-not-allowed disabled:opacity-50\n}\n\n/* shadcn/dinachi-style input shell — transparent background, h-9, file/\n placeholder/selection/aria-invalid/focus-visible states baked in. */\n@recipe input-shell {\n flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-destructive/20 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40\n}\n\n/* Input in error state. */\n@recipe input-error {\n @input border-destructive focus:border-destructive focus:outline-destructive\n}\n\n/* Multi-line textarea. */\n@recipe textarea {\n block w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:border-ring focus:outline-2 focus:outline-offset-2 focus:outline-ring disabled:cursor-not-allowed disabled:opacity-50\n}\n\n/* Native select control. */\n@recipe select {\n block w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground focus:border-ring focus:outline-2 focus:outline-offset-2 focus:outline-ring disabled:cursor-not-allowed disabled:opacity-50\n}\n\n/* Checkbox input. */\n@recipe checkbox {\n h-4 w-4 rounded border-input text-primary focus:outline-2 focus:outline-offset-2 focus:outline-ring\n}\n\n/* Radio input. */\n@recipe radio {\n h-4 w-4 border-input text-primary focus:outline-2 focus:outline-offset-2 focus:outline-ring\n}\n\n/* Form field wrapper — label + input + help/error. */\n@recipe field {\n flex flex-col gap-1.5\n}\n\n/* Form field in error state. */\n@recipe field-error {\n flex flex-col gap-1.5\n}\n\n/* Grouped form section with optional legend. */\n@recipe fieldset {\n flex flex-col gap-4 rounded-md border border-border p-4\n}\n\n/* Field-level helper text. */\n@recipe help {\n text-xs text-muted-foreground\n}\n",
67
+ "form": "/* shortwind: form@0.0.2 sha:e78b50acd247f5af */\n\n/* @guide\n Wrap each label+control+message in @field (use @field-error for the invalid\n state); group related fields with @fieldset. Controls are bare: @input,\n @textarea, @select, @checkbox, @radio, plus @input-error for invalid text\n and @input-shell for the transparent input shell. Helper text is\n @help. There is no @form-group (use @field), @form-input (use @input),\n @form-helper (use @help) or @form-checkbox (use @checkbox); the field label\n recipe is @label, in the text family.\n*/\n\n/* Text input field. */\n@recipe input {\n block w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:border-ring focus:outline-2 focus:outline-offset-2 focus:outline-ring disabled:cursor-not-allowed disabled:opacity-50\n}\n\n/* Dinachi-style input shell — transparent background, h-9, file/\n placeholder/selection/aria-invalid/focus-visible states baked in. */\n@recipe input-shell {\n flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-destructive/20 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40\n}\n\n/* Input in error state. */\n@recipe input-error {\n @input border-destructive focus:border-destructive focus:outline-destructive\n}\n\n/* Multi-line textarea. */\n@recipe textarea {\n block w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:border-ring focus:outline-2 focus:outline-offset-2 focus:outline-ring disabled:cursor-not-allowed disabled:opacity-50\n}\n\n/* Native select control. */\n@recipe select {\n block w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground focus:border-ring focus:outline-2 focus:outline-offset-2 focus:outline-ring disabled:cursor-not-allowed disabled:opacity-50\n}\n\n/* Checkbox input. */\n@recipe checkbox {\n h-4 w-4 rounded border-input text-primary focus:outline-2 focus:outline-offset-2 focus:outline-ring\n}\n\n/* Radio input. */\n@recipe radio {\n h-4 w-4 border-input text-primary focus:outline-2 focus:outline-offset-2 focus:outline-ring\n}\n\n/* Form field wrapper — label + input + help/error. */\n@recipe field {\n flex flex-col gap-1.5\n}\n\n/* Form field in error state. */\n@recipe field-error {\n flex flex-col gap-1.5\n}\n\n/* Grouped form section with optional legend. */\n@recipe fieldset {\n flex flex-col gap-4 rounded-md border border-border p-4\n}\n\n/* Field-level helper text. */\n@recipe help {\n text-xs text-muted-foreground\n}\n",
68
68
  "icon": "/* shortwind: icon@0.0.1 sha:fab3b2d3a0c089fb */\n\n/* @guide\n Size an icon with @icon-sm/md/lg (16/20/24px) — these set width and height\n only; add @icon-muted for secondary color. They're for SVG/icon elements, not\n to be confused with @btn-icon (the icon button in the button family).\n*/\n\n/* Small icon — 16px. */\n@recipe icon-sm {\n h-4 w-4 shrink-0\n}\n\n/* Default icon size — 20px. */\n@recipe icon-md {\n h-5 w-5 shrink-0\n}\n\n/* Large icon — 24px. */\n@recipe icon-lg {\n h-6 w-6 shrink-0\n}\n\n/* Icon with muted color. */\n@recipe icon-muted {\n text-muted-foreground\n}\n",
69
69
  "layout": "/* shortwind: layout@0.0.1 sha:48a2a7b6e1a5d7ad */\n\n/* @guide\n Composition primitives. @stack-* stacks children vertically (flex-col);\n @row* lays them out horizontally (flex-row). Choose the gap with the size\n suffix (xs/sm/md/lg on stacks). Use @grid-2/3/4 only for true multi-column\n grids, @center to center on both axes, @full to fill the parent. Common\n slips: there is no @flex-row (use @row) or @flex-col (use a @stack-*), and\n the grids are @grid-3, not @grid-cols-3.\n*/\n\n/* Vertical stack with extra-small gap. */\n@recipe stack-xs {\n flex flex-col gap-1\n}\n\n/* Vertical stack with small gap. */\n@recipe stack-sm {\n flex flex-col gap-2\n}\n\n/* Vertical stack with medium gap. */\n@recipe stack-md {\n flex flex-col gap-4\n}\n\n/* Vertical stack with large gap. */\n@recipe stack-lg {\n flex flex-col gap-8\n}\n\n/* Horizontal row with default gap and centered items. */\n@recipe row {\n flex flex-row items-center gap-2\n}\n\n/* Horizontal row with space between children. */\n@recipe row-between {\n flex flex-row items-center justify-between gap-2\n}\n\n/* Horizontal row aligned to the end. */\n@recipe row-end {\n flex flex-row items-center justify-end gap-2\n}\n\n/* Two-column responsive grid. */\n@recipe grid-2 {\n grid grid-cols-1 gap-4 sm:grid-cols-2\n}\n\n/* Three-column responsive grid. */\n@recipe grid-3 {\n grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3\n}\n\n/* Four-column responsive grid. */\n@recipe grid-4 {\n grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4\n}\n\n/* Center content horizontally and vertically. */\n@recipe center {\n flex items-center justify-center\n}\n\n/* Fill the available width and height. */\n@recipe full {\n h-full w-full\n}\n",
70
70
  "list": "/* shortwind: list@0.0.1 sha:f662887791fabb8d */\n\n/* @guide\n @list wraps a stack of @list-item rows; use @list-bordered for divided rows.\n Definition lists are separate: @dl with @dt (term) and @dd (description).\n For site navigation reach for the navigation family (@nav), not @list.\n*/\n\n/* Vertical list with default gap. */\n@recipe list {\n flex flex-col gap-1\n}\n\n/* Single list item. */\n@recipe list-item {\n flex items-center gap-2 rounded-md px-3 py-2 text-sm text-foreground\n}\n\n/* List with dividing borders between items. */\n@recipe list-bordered {\n divide-y divide-border rounded-md border border-border\n}\n\n/* Definition list container. */\n@recipe dl {\n grid grid-cols-1 gap-2 sm:grid-cols-3 sm:gap-4\n}\n\n/* Definition term. */\n@recipe dt {\n text-sm font-medium text-muted-foreground\n}\n\n/* Definition description. */\n@recipe dd {\n text-sm text-foreground sm:col-span-2\n}\n",
@@ -80,4 +80,4 @@ const CATALOG_RECIPES = {
80
80
  //#endregion
81
81
  export { CATALOG_FAMILIES, CATALOG_PRESETS, CATALOG_RECIPES };
82
82
 
83
- //# sourceMappingURL=catalog.generated-DRttebfK.js.map
83
+ //# sourceMappingURL=catalog.generated-BdZstlkf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.generated-BdZstlkf.js","names":[],"sources":["../src/catalog.generated.ts"],"sourcesContent":["// Generated by scripts/generate-catalog.ts — do not edit by hand.\n// A snapshot of the @shortwind/catalog build, embedded so the CLI can resolve\n// the default catalog with no network. Re-run `pnpm --filter @shortwind/cli gen:catalog`\n// after the catalog changes.\nimport type { Presets } from \"./registry-source.js\";\n\nexport const CATALOG_PRESETS: Presets = {\n \"starter\": [\"card\", \"button\", \"layout\", \"text\", \"form\"],\n \"app\": [\"card\", \"button\", \"layout\", \"text\", \"form\", \"badge\", \"table\", \"dialog\", \"list\", \"navigation\", \"feedback\", \"tooltip\"],\n \"content\": [\"card\", \"button\", \"layout\", \"text\", \"form\", \"badge\", \"code\", \"list\", \"media\", \"empty\"],\n \"all\": \"*\"\n};\n\nexport const CATALOG_FAMILIES: string[] = [\"badge\",\"button\",\"card\",\"code\",\"dialog\",\"empty\",\"feedback\",\"form\",\"icon\",\"layout\",\"list\",\"media\",\"navigation\",\"progress\",\"skeleton\",\"surface\",\"table\",\"text\",\"tooltip\"];\n\nexport const CATALOG_RECIPES: Record<string, string> = {\n \"badge\": \"/* shortwind: badge@0.0.1 sha:8548b9a7305a0a59 */\\n\\n/* @guide\\n @badge is the neutral default; tone variants @badge-success/warning/danger/\\n info carry their own color; @badge-outline is unfilled. One tone per badge.\\n @badge-base is a color-less shell for building custom tones — not for direct\\n use.\\n*/\\n\\n/* Badge shell — shape, sizing, focus ring. No bg/text/border color so\\n variants can supply their own tone without conflicts. */\\n@recipe badge-base {\\n inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\\n}\\n\\n/* Default neutral badge. */\\n@recipe badge {\\n inline-flex items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground\\n}\\n\\n/* Success tone badge. */\\n@recipe badge-success {\\n inline-flex items-center gap-1 rounded-full bg-green-100 px-2 py-0.5 text-xs font-medium text-green-800 dark:bg-green-900 dark:text-green-200\\n}\\n\\n/* Warning tone badge. */\\n@recipe badge-warning {\\n inline-flex items-center gap-1 rounded-full bg-amber-100 px-2 py-0.5 text-xs font-medium text-amber-800 dark:bg-amber-900 dark:text-amber-200\\n}\\n\\n/* Danger tone badge. */\\n@recipe badge-danger {\\n inline-flex items-center gap-1 rounded-full bg-destructive/15 px-2 py-0.5 text-xs font-medium text-destructive\\n}\\n\\n/* Info tone badge. */\\n@recipe badge-info {\\n inline-flex items-center gap-1 rounded-full bg-primary/15 px-2 py-0.5 text-xs font-medium text-primary\\n}\\n\\n/* Outline badge — no fill. */\\n@recipe badge-outline {\\n inline-flex items-center gap-1 rounded-full border border-border px-2 py-0.5 text-xs font-medium text-foreground\\n}\\n\",\n \"button\": \"/* shortwind: button@0.0.1 sha:777fa510c4ab4aeb */\\n\\n/* @guide\\n Name order is @btn-<intent>[-<size>]: intent first (primary/secondary/ghost/\\n danger/outline), size second (sm/lg; omit for default). One intent per\\n button — never combine @btn-primary with @btn-danger. @btn-ghost is text-only,\\n @btn-outline is bordered with no fill, @btn-icon is a square icon button.\\n @btn-base is the shared shell; don't use it on its own.\\n*/\\n\\n/* Shared button base — sizing, focus ring, disabled state. */\\n@recipe btn-base {\\n inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-not-allowed disabled:opacity-50\\n}\\n\\n/* Primary call-to-action button. */\\n@recipe btn-primary {\\n @btn-base bg-primary text-primary-foreground hover:bg-primary/90\\n}\\n\\n/* Small primary button. */\\n@recipe btn-primary-sm {\\n @btn-primary px-3 py-1.5 text-xs\\n}\\n\\n/* Large primary button. */\\n@recipe btn-primary-lg {\\n @btn-primary px-6 py-3 text-base\\n}\\n\\n/* Secondary button — bordered surface tone. */\\n@recipe btn-secondary {\\n @btn-base border border-border bg-secondary text-secondary-foreground hover:bg-secondary/80\\n}\\n\\n/* Small secondary button. */\\n@recipe btn-secondary-sm {\\n @btn-secondary px-3 py-1.5 text-xs\\n}\\n\\n/* Large secondary button. */\\n@recipe btn-secondary-lg {\\n @btn-secondary px-6 py-3 text-base\\n}\\n\\n/* Ghost button — text only, no background. */\\n@recipe btn-ghost {\\n @btn-base text-foreground hover:bg-muted\\n}\\n\\n/* Small ghost button. */\\n@recipe btn-ghost-sm {\\n @btn-ghost px-3 py-1.5 text-xs\\n}\\n\\n/* Large ghost button. */\\n@recipe btn-ghost-lg {\\n @btn-ghost px-6 py-3 text-base\\n}\\n\\n/* Destructive button. */\\n@recipe btn-danger {\\n @btn-base bg-destructive text-destructive-foreground hover:bg-destructive/90\\n}\\n\\n/* Outline button — bordered without fill. */\\n@recipe btn-outline {\\n @btn-base border border-primary text-primary hover:bg-primary/10\\n}\\n\\n/* Square icon-only button. */\\n@recipe btn-icon {\\n inline-flex h-9 w-9 items-center justify-center rounded-md text-foreground transition-colors hover:bg-muted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-not-allowed disabled:opacity-50\\n}\\n\",\n \"card\": \"/* shortwind: card@0.0.1 sha:4813cef10cd21824 */\\n\\n/* @guide\\n Pick exactly one container: @card (default), @card-elevated (raised shadow),\\n @card-flat (no border), or @card-interactive (clickable hover/focus) — don't\\n stack two container variants on one element. Lay out the inside with\\n @card-header / @card-body / @card-footer.\\n*/\\n\\n/* Default content card with border, padding, and surface color. */\\n@recipe card {\\n rounded-lg border border-border bg-card text-card-foreground p-4\\n}\\n\\n/* Card with raised shadow for emphasis. */\\n@recipe card-elevated {\\n @card shadow-md\\n}\\n\\n/* Card without border, on a muted surface. */\\n@recipe card-flat {\\n rounded-lg bg-muted text-foreground p-4\\n}\\n\\n/* Clickable card with hover and focus-visible states. */\\n@recipe card-interactive {\\n @card cursor-pointer transition-shadow hover:shadow-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\\n}\\n\\n/* Card header region with bottom divider. */\\n@recipe card-header {\\n mb-3 border-b border-border pb-3\\n}\\n\\n/* Card body region. */\\n@recipe card-body {\\n py-1\\n}\\n\\n/* Card footer with top divider and right-aligned actions. */\\n@recipe card-footer {\\n mt-3 flex items-center justify-end gap-2 border-t border-border pt-3\\n}\\n\",\n \"code\": \"/* shortwind: code@0.0.1 sha:cc8d2b0bedb5b453 */\\n\\n/* @guide\\n @code-inline for a code span inside prose, @code-block for a multi-line\\n preformatted block, @kbd for a keyboard-shortcut hint. Pick by context, not\\n by size.\\n*/\\n\\n/* Inline code span. */\\n@recipe code-inline {\\n rounded bg-muted px-1.5 py-0.5 font-mono text-[0.875em] text-foreground\\n}\\n\\n/* Block of preformatted code. */\\n@recipe code-block {\\n overflow-x-auto rounded-md border border-border bg-muted p-4 font-mono text-sm leading-6 text-foreground\\n}\\n\\n/* Keyboard shortcut hint. */\\n@recipe kbd {\\n inline-flex items-center rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-xs text-foreground shadow-sm\\n}\\n\",\n \"dialog\": \"/* shortwind: dialog@0.0.1 sha:b4dbf853e99fce75 */\\n\\n/* @guide\\n A modal is three layers: @dialog-overlay (dimmed backdrop), @dialog (the\\n centering wrapper), and @dialog-content (the panel). Structure the panel with\\n @dialog-header and @dialog-footer. Don't put content styling on @dialog\\n itself — it's only the positioner.\\n*/\\n\\n/* Modal dialog wrapper — covers the viewport, centers content. */\\n@recipe dialog {\\n fixed inset-0 z-50 flex items-center justify-center p-4\\n}\\n\\n/* Dimmed overlay behind the dialog. */\\n@recipe dialog-overlay {\\n fixed inset-0 z-40 bg-black/50\\n}\\n\\n/* Dialog content panel. */\\n@recipe dialog-content {\\n relative z-50 w-full max-w-md rounded-lg border border-border bg-popover text-popover-foreground p-6 shadow-xl\\n}\\n\\n/* Dialog header region with title. */\\n@recipe dialog-header {\\n mb-4 flex flex-col gap-1\\n}\\n\\n/* Dialog footer with right-aligned actions. */\\n@recipe dialog-footer {\\n mt-6 flex items-center justify-end gap-2\\n}\\n\",\n \"empty\": \"/* shortwind: empty@0.0.1 sha:003168e1b4a395c5 */\\n\\n/* @guide\\n @empty is the container for a no-data state; fill it with @empty-icon,\\n @empty-title, and @empty-description. These are slots for that pattern — use\\n @heading-* / @body from the text family for ordinary copy.\\n*/\\n\\n/* Empty-state container. */\\n@recipe empty {\\n flex flex-col items-center justify-center gap-3 rounded-md border border-dashed border-border p-8 text-center\\n}\\n\\n/* Empty-state icon slot. */\\n@recipe empty-icon {\\n flex h-12 w-12 items-center justify-center rounded-full bg-muted text-muted-foreground\\n}\\n\\n/* Empty-state title text. */\\n@recipe empty-title {\\n text-base font-semibold text-foreground\\n}\\n\\n/* Empty-state supporting description. */\\n@recipe empty-description {\\n max-w-sm text-sm text-muted-foreground\\n}\\n\",\n \"feedback\": \"/* shortwind: feedback@0.0.1 sha:818868f6af179bcf */\\n\\n/* @guide\\n Inline messages use @alert (neutral) or a tone variant @alert-success/\\n warning/danger/info — one tone each. @callout is a left-accent inline note,\\n @toast is a floating notification, @banner spans the full viewport width.\\n*/\\n\\n/* Default informational alert. */\\n@recipe alert {\\n flex items-start gap-3 rounded-md border border-border bg-card p-4 text-sm text-card-foreground\\n}\\n\\n/* Success alert. */\\n@recipe alert-success {\\n flex items-start gap-3 rounded-md border border-green-200 bg-green-50 p-4 text-sm text-green-900 dark:border-green-900 dark:bg-green-950 dark:text-green-100\\n}\\n\\n/* Warning alert. */\\n@recipe alert-warning {\\n flex items-start gap-3 rounded-md border border-amber-200 bg-amber-50 p-4 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-100\\n}\\n\\n/* Danger alert. */\\n@recipe alert-danger {\\n flex items-start gap-3 rounded-md border border-destructive/30 bg-destructive/10 p-4 text-sm text-destructive\\n}\\n\\n/* Informational alert. */\\n@recipe alert-info {\\n flex items-start gap-3 rounded-md border border-primary/30 bg-primary/10 p-4 text-sm text-primary\\n}\\n\\n/* Inline callout — flush left edge accent. */\\n@recipe callout {\\n border-l-4 border-primary bg-primary/10 p-4 text-sm text-foreground\\n}\\n\\n/* Floating toast notification. */\\n@recipe toast {\\n pointer-events-auto flex items-start gap-3 rounded-md border border-border bg-popover p-4 text-sm text-popover-foreground shadow-lg\\n}\\n\\n/* Full-width banner spanning the viewport. */\\n@recipe banner {\\n w-full bg-primary px-4 py-2 text-center text-sm font-medium text-primary-foreground\\n}\\n\",\n \"form\": \"/* shortwind: form@0.0.2 sha:e78b50acd247f5af */\\n\\n/* @guide\\n Wrap each label+control+message in @field (use @field-error for the invalid\\n state); group related fields with @fieldset. Controls are bare: @input,\\n @textarea, @select, @checkbox, @radio, plus @input-error for invalid text\\n and @input-shell for the transparent input shell. Helper text is\\n @help. There is no @form-group (use @field), @form-input (use @input),\\n @form-helper (use @help) or @form-checkbox (use @checkbox); the field label\\n recipe is @label, in the text family.\\n*/\\n\\n/* Text input field. */\\n@recipe input {\\n block w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:border-ring focus:outline-2 focus:outline-offset-2 focus:outline-ring disabled:cursor-not-allowed disabled:opacity-50\\n}\\n\\n/* Dinachi-style input shell — transparent background, h-9, file/\\n placeholder/selection/aria-invalid/focus-visible states baked in. */\\n@recipe input-shell {\\n flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-destructive/20 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40\\n}\\n\\n/* Input in error state. */\\n@recipe input-error {\\n @input border-destructive focus:border-destructive focus:outline-destructive\\n}\\n\\n/* Multi-line textarea. */\\n@recipe textarea {\\n block w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:border-ring focus:outline-2 focus:outline-offset-2 focus:outline-ring disabled:cursor-not-allowed disabled:opacity-50\\n}\\n\\n/* Native select control. */\\n@recipe select {\\n block w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground focus:border-ring focus:outline-2 focus:outline-offset-2 focus:outline-ring disabled:cursor-not-allowed disabled:opacity-50\\n}\\n\\n/* Checkbox input. */\\n@recipe checkbox {\\n h-4 w-4 rounded border-input text-primary focus:outline-2 focus:outline-offset-2 focus:outline-ring\\n}\\n\\n/* Radio input. */\\n@recipe radio {\\n h-4 w-4 border-input text-primary focus:outline-2 focus:outline-offset-2 focus:outline-ring\\n}\\n\\n/* Form field wrapper — label + input + help/error. */\\n@recipe field {\\n flex flex-col gap-1.5\\n}\\n\\n/* Form field in error state. */\\n@recipe field-error {\\n flex flex-col gap-1.5\\n}\\n\\n/* Grouped form section with optional legend. */\\n@recipe fieldset {\\n flex flex-col gap-4 rounded-md border border-border p-4\\n}\\n\\n/* Field-level helper text. */\\n@recipe help {\\n text-xs text-muted-foreground\\n}\\n\",\n \"icon\": \"/* shortwind: icon@0.0.1 sha:fab3b2d3a0c089fb */\\n\\n/* @guide\\n Size an icon with @icon-sm/md/lg (16/20/24px) — these set width and height\\n only; add @icon-muted for secondary color. They're for SVG/icon elements, not\\n to be confused with @btn-icon (the icon button in the button family).\\n*/\\n\\n/* Small icon — 16px. */\\n@recipe icon-sm {\\n h-4 w-4 shrink-0\\n}\\n\\n/* Default icon size — 20px. */\\n@recipe icon-md {\\n h-5 w-5 shrink-0\\n}\\n\\n/* Large icon — 24px. */\\n@recipe icon-lg {\\n h-6 w-6 shrink-0\\n}\\n\\n/* Icon with muted color. */\\n@recipe icon-muted {\\n text-muted-foreground\\n}\\n\",\n \"layout\": \"/* shortwind: layout@0.0.1 sha:48a2a7b6e1a5d7ad */\\n\\n/* @guide\\n Composition primitives. @stack-* stacks children vertically (flex-col);\\n @row* lays them out horizontally (flex-row). Choose the gap with the size\\n suffix (xs/sm/md/lg on stacks). Use @grid-2/3/4 only for true multi-column\\n grids, @center to center on both axes, @full to fill the parent. Common\\n slips: there is no @flex-row (use @row) or @flex-col (use a @stack-*), and\\n the grids are @grid-3, not @grid-cols-3.\\n*/\\n\\n/* Vertical stack with extra-small gap. */\\n@recipe stack-xs {\\n flex flex-col gap-1\\n}\\n\\n/* Vertical stack with small gap. */\\n@recipe stack-sm {\\n flex flex-col gap-2\\n}\\n\\n/* Vertical stack with medium gap. */\\n@recipe stack-md {\\n flex flex-col gap-4\\n}\\n\\n/* Vertical stack with large gap. */\\n@recipe stack-lg {\\n flex flex-col gap-8\\n}\\n\\n/* Horizontal row with default gap and centered items. */\\n@recipe row {\\n flex flex-row items-center gap-2\\n}\\n\\n/* Horizontal row with space between children. */\\n@recipe row-between {\\n flex flex-row items-center justify-between gap-2\\n}\\n\\n/* Horizontal row aligned to the end. */\\n@recipe row-end {\\n flex flex-row items-center justify-end gap-2\\n}\\n\\n/* Two-column responsive grid. */\\n@recipe grid-2 {\\n grid grid-cols-1 gap-4 sm:grid-cols-2\\n}\\n\\n/* Three-column responsive grid. */\\n@recipe grid-3 {\\n grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3\\n}\\n\\n/* Four-column responsive grid. */\\n@recipe grid-4 {\\n grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4\\n}\\n\\n/* Center content horizontally and vertically. */\\n@recipe center {\\n flex items-center justify-center\\n}\\n\\n/* Fill the available width and height. */\\n@recipe full {\\n h-full w-full\\n}\\n\",\n \"list\": \"/* shortwind: list@0.0.1 sha:f662887791fabb8d */\\n\\n/* @guide\\n @list wraps a stack of @list-item rows; use @list-bordered for divided rows.\\n Definition lists are separate: @dl with @dt (term) and @dd (description).\\n For site navigation reach for the navigation family (@nav), not @list.\\n*/\\n\\n/* Vertical list with default gap. */\\n@recipe list {\\n flex flex-col gap-1\\n}\\n\\n/* Single list item. */\\n@recipe list-item {\\n flex items-center gap-2 rounded-md px-3 py-2 text-sm text-foreground\\n}\\n\\n/* List with dividing borders between items. */\\n@recipe list-bordered {\\n divide-y divide-border rounded-md border border-border\\n}\\n\\n/* Definition list container. */\\n@recipe dl {\\n grid grid-cols-1 gap-2 sm:grid-cols-3 sm:gap-4\\n}\\n\\n/* Definition term. */\\n@recipe dt {\\n text-sm font-medium text-muted-foreground\\n}\\n\\n/* Definition description. */\\n@recipe dd {\\n text-sm text-foreground sm:col-span-2\\n}\\n\",\n \"media\": \"/* shortwind: media@0.0.1 sha:dfc85633101b0637 */\\n\\n/* @guide\\n @avatar (with @avatar-sm/lg) is a round user image; @thumb is a small square\\n thumbnail. For responsive embeds use @aspect-square or @aspect-video. Avatars\\n are circular by default — don't restyle the radius.\\n*/\\n\\n/* User/profile avatar. */\\n@recipe avatar {\\n inline-flex h-10 w-10 items-center justify-center overflow-hidden rounded-full bg-muted text-sm font-medium text-muted-foreground\\n}\\n\\n/* Small avatar. */\\n@recipe avatar-sm {\\n @avatar h-6 w-6 text-xs\\n}\\n\\n/* Large avatar. */\\n@recipe avatar-lg {\\n @avatar h-14 w-14 text-base\\n}\\n\\n/* Small image thumbnail. */\\n@recipe thumb {\\n h-16 w-16 rounded-md object-cover\\n}\\n\\n/* 1:1 aspect-ratio wrapper. */\\n@recipe aspect-square {\\n aspect-square w-full overflow-hidden rounded-md\\n}\\n\\n/* 16:9 aspect-ratio wrapper. */\\n@recipe aspect-video {\\n aspect-video w-full overflow-hidden rounded-md\\n}\\n\",\n \"navigation\": \"/* shortwind: navigation@0.0.1 sha:73150057219b648a */\\n\\n/* @guide\\n @nav is the container; links are @nav-link with @nav-link-active for the\\n current page. Tabs mirror that pair: @tab and @tab-active. Use @breadcrumb\\n for trail navigation. Active and inactive are separate recipes — swap the\\n whole class rather than combining them.\\n*/\\n\\n/* Top-level nav container. */\\n@recipe nav {\\n flex items-center gap-1\\n}\\n\\n/* Inactive nav link with hover/focus states. */\\n@recipe nav-link {\\n inline-flex items-center gap-2 rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\\n}\\n\\n/* Active nav link. */\\n@recipe nav-link-active {\\n inline-flex items-center gap-2 rounded-md bg-muted px-3 py-1.5 text-sm font-medium text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\\n}\\n\\n/* Breadcrumb trail container. */\\n@recipe breadcrumb {\\n flex items-center gap-1.5 text-sm text-muted-foreground\\n}\\n\\n/* Inactive tab control. */\\n@recipe tab {\\n inline-flex items-center gap-2 border-b-2 border-transparent px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:border-border hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\\n}\\n\\n/* Active tab control. */\\n@recipe tab-active {\\n inline-flex items-center gap-2 border-b-2 border-primary px-3 py-2 text-sm font-medium text-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\\n}\\n\",\n \"progress\": \"/* shortwind: progress@0.0.1 sha:37210e32d2cd555f */\\n\\n/* @guide\\n A bar is two pieces: @progress-track (the background) wrapping @progress-bar\\n (the fill). For an indeterminate state use @spinner instead — it's a\\n standalone loader, not a bar.\\n*/\\n\\n/* Progress bar track (background). */\\n@recipe progress-track {\\n h-2 w-full overflow-hidden rounded-full bg-muted\\n}\\n\\n/* Progress bar fill. */\\n@recipe progress-bar {\\n h-full rounded-full bg-primary transition-all\\n}\\n\\n/* Indeterminate loading spinner. */\\n@recipe spinner {\\n inline-block h-4 w-4 animate-spin rounded-full border-2 border-border border-t-primary\\n}\\n\",\n \"skeleton\": \"/* shortwind: skeleton@0.0.1 sha:cd2db5c1c48b16d3 */\\n\\n/* @guide\\n Match the skeleton to the shape it stands in for: @skeleton (block),\\n @skeleton-text (a text line), @skeleton-circle (avatar/icon). Size block and\\n text skeletons with raw width/height utilities.\\n*/\\n\\n/* Default rectangular skeleton placeholder. */\\n@recipe skeleton {\\n animate-pulse rounded-md bg-muted\\n}\\n\\n/* Single-line text skeleton. */\\n@recipe skeleton-text {\\n h-4 w-full animate-pulse rounded bg-muted\\n}\\n\\n/* Circular skeleton (avatar/icon). */\\n@recipe skeleton-circle {\\n h-10 w-10 animate-pulse rounded-full bg-muted\\n}\\n\",\n \"surface\": \"/* shortwind: surface@0.0.2 sha:31716e4cbe81f93f */\\n\\n/* @guide\\n @surface / @surface-muted / @surface-accent set a background+foreground pair\\n for a region — one per section. @wrapper (or @wrapper-tight for prose)\\n centers and width-caps content; there is no @wrapper-lg, set a different cap\\n with max-w-* yourself. (Note: @container is reserved for Tailwind's\\n container-query utility, so the content wrapper is @wrapper.) @divider-h and\\n @divider-v are hairline rules.\\n*/\\n\\n/* Default page/section surface. */\\n@recipe surface {\\n bg-background text-foreground\\n}\\n\\n/* Muted surface — secondary background. */\\n@recipe surface-muted {\\n bg-muted text-foreground\\n}\\n\\n/* Accent surface — soft brand background. */\\n@recipe surface-accent {\\n bg-accent text-accent-foreground\\n}\\n\\n/* Centered content wrapper with a max width. */\\n@recipe wrapper {\\n mx-auto w-full max-w-6xl px-4 sm:px-6 lg:px-8\\n}\\n\\n/* Narrow content wrapper for prose. */\\n@recipe wrapper-tight {\\n mx-auto w-full max-w-3xl px-4 sm:px-6\\n}\\n\\n/* Horizontal divider line. */\\n@recipe divider-h {\\n shrink-0 h-px w-full bg-border\\n}\\n\\n/* Vertical divider line. */\\n@recipe divider-v {\\n shrink-0 h-full w-px bg-border\\n}\\n\",\n \"table\": \"/* shortwind: table@0.0.1 sha:4f3295935b2a647c */\\n\\n/* @guide\\n Wrap the table in @table-container for horizontal overflow, then put @table\\n (or @table-zebra for striped rows) on the <table>. Cells are @th (header) and\\n @td (body); add @tr-hover to a <tr> for row highlighting.\\n*/\\n\\n/* Scroll container for a wide table — keeps overflow horizontal. */\\n@recipe table-container {\\n w-full overflow-x-auto rounded-md border border-border\\n}\\n\\n/* Data table base. */\\n@recipe table {\\n w-full border-collapse text-left text-sm text-foreground\\n}\\n\\n/* Table header cell. */\\n@recipe th {\\n border-b border-border px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground\\n}\\n\\n/* Table body cell. */\\n@recipe td {\\n border-b border-border px-3 py-2\\n}\\n\\n/* Row hover state. */\\n@recipe tr-hover {\\n transition-colors hover:bg-muted\\n}\\n\\n/* Table with zebra striping on alternating rows. */\\n@recipe table-zebra {\\n w-full border-collapse text-left text-sm text-foreground [&_tbody_tr:nth-child(odd)]:bg-muted\\n}\\n\",\n \"text\": \"/* shortwind: text@0.0.2 sha:f39dc7b88afefc8f */\\n\\n/* @guide\\n Headings are sized by weight, not HTML level: @heading-xl/lg/md/sm — there\\n is no @h1..@h6. Body copy: @body (default), @lead (intro paragraphs), @muted\\n (secondary), @caption (fine print), @eyebrow (uppercase kicker above a\\n heading). Use @label for form labels and @link for inline links. Don't\\n append a -text suffix: it's @body not @body-text, @muted not @muted-text,\\n @link not @link-text.\\n*/\\n\\n/* Top-level page heading. */\\n@recipe heading-xl {\\n text-4xl font-bold tracking-tight text-foreground\\n}\\n\\n/* Large section heading. */\\n@recipe heading-lg {\\n text-2xl font-semibold tracking-tight text-foreground\\n}\\n\\n/* Medium heading. */\\n@recipe heading-md {\\n text-xl font-semibold text-foreground\\n}\\n\\n/* Small heading. */\\n@recipe heading-sm {\\n text-base font-semibold text-foreground\\n}\\n\\n/* Default body text. */\\n@recipe body {\\n text-sm leading-6 text-foreground\\n}\\n\\n/* Lead paragraph — larger body copy for hero/intro sections. */\\n@recipe lead {\\n text-lg leading-relaxed text-muted-foreground\\n}\\n\\n/* Muted secondary text. */\\n@recipe muted {\\n text-sm text-muted-foreground\\n}\\n\\n/* Form label text. */\\n@recipe label {\\n text-sm font-medium text-foreground\\n}\\n\\n/* Caption — small supporting text. */\\n@recipe caption {\\n text-xs text-muted-foreground\\n}\\n\\n/* Eyebrow — uppercase kicker above a heading. */\\n@recipe eyebrow {\\n font-mono text-xs font-medium uppercase tracking-[0.2em] text-muted-foreground\\n}\\n\\n/* Inline link with hover/focus states. */\\n@recipe link {\\n text-primary underline-offset-2 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\\n}\\n\",\n \"tooltip\": \"/* shortwind: tooltip@0.0.1 sha:1be3af4165357dcd */\\n\\n/* @guide\\n @tooltip is the floating label bubble — it styles appearance only, so pair it\\n with your own positioning.\\n*/\\n\\n/* Floating tooltip bubble. */\\n@recipe tooltip {\\n pointer-events-none z-50 rounded-md bg-foreground px-2 py-1 text-xs font-medium text-background shadow-md\\n}\\n\",\n};\n"],"mappings":";AAMA,MAAa,kBAA2B;CACtC,WAAW;EAAC;EAAQ;EAAU;EAAU;EAAQ;EAAO;CACvD,OAAO;EAAC;EAAQ;EAAU;EAAU;EAAQ;EAAQ;EAAS;EAAS;EAAU;EAAQ;EAAc;EAAY;EAAU;CAC5H,WAAW;EAAC;EAAQ;EAAU;EAAU;EAAQ;EAAQ;EAAS;EAAQ;EAAQ;EAAS;EAAQ;CAClG,OAAO;CACR;AAED,MAAa,mBAA6B;CAAC;CAAQ;CAAS;CAAO;CAAO;CAAS;CAAQ;CAAW;CAAO;CAAO;CAAS;CAAO;CAAQ;CAAa;CAAW;CAAW;CAAU;CAAQ;CAAO;CAAU;AAElN,MAAa,kBAA0C;CACrD,SAAS;CACT,UAAU;CACV,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,SAAS;CACT,YAAY;CACZ,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,SAAS;CACT,cAAc;CACd,YAAY;CACZ,YAAY;CACZ,WAAW;CACX,SAAS;CACT,QAAQ;CACR,WAAW;CACZ"}
package/dist/index.d.ts CHANGED
@@ -42,10 +42,11 @@ type InitResult = {
42
42
  skippedFamilies: string[];
43
43
  configPath: string;
44
44
  vscodePath: string;
45
- huskyPath: string;
45
+ huskyPath: string | null;
46
46
  skillPath: string;
47
47
  themePath: string | null;
48
48
  themeAction: ThemeAction;
49
+ safelistCssPaths: string[];
49
50
  missingThemeTokens: string[];
50
51
  bundlerConfigPath: string | null;
51
52
  bundlerConfigAction: BundlerWireAction;
@@ -184,6 +185,7 @@ type BuildResult = {
184
185
  changed: boolean;
185
186
  families: string[];
186
187
  skillPath: string;
188
+ safelistCssPaths: string[];
187
189
  };
188
190
  declare class BuildError extends Error {
189
191
  readonly diagnostics: Diagnostic[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/detect.ts","../src/theme.ts","../src/bundler-config.ts","../src/agents-file.ts","../src/init.ts","../src/registry-source.ts","../src/lockfile.ts","../src/commands/add.ts","../src/commands/remove.ts","../src/commands/new.ts","../src/commands/reseal.ts","../src/commands/preset.ts","../src/commands/ls.ts","../src/commands/build.ts","../src/commands/dev.ts","../src/commands/upgrade.ts","../src/commands/verify.ts","../src/commands/bench.ts","../src/commands/lint.ts","../src/fingerprint.ts","../src/project.ts"],"mappings":";;;KAGY,cAAA;AAAA,KACA,OAAA;AAAA,KACA,SAAA;AAAA,KAEA,YAAA;EACV,cAAA,EAAgB,cAAA;EAChB,eAAA;EACA,aAAA;EACA,OAAA,EAAS,OAAA;EACT,SAAA,EAAW,SAAA;EACX,cAAA;AAAA;AAAA,iBAyBc,aAAA,CAAc,GAAA,WAAc,YAAA;;;KC4DhC,WAAA;;;KCxFA,iBAAA;;;KCUA,gBAAA;;;cCOC,gBAAA;AAAA,KAED,WAAA;EACV,GAAA;EACA,MAAA;EACA,QAAA;EACA,eAAA,GAAkB,eAAA;AAAA;AAAA,KAGR,eAAA,IACV,EAAA,EAAI,cAAA,EACJ,QAAA,YACA,GAAA,aACG,OAAA;AAAA,KAEO,UAAA;EACV,cAAA,EAAgB,cAAA;EAChB,MAAA;EACA,QAAA;EACA,QAAA;EACA,iBAAA;EACA,iBAAA;EACA,eAAA;EACA,UAAA;EACA,UAAA;EACA,SAAA;EACA,SAAA;EACA,SAAA;EACA,WAAA,EAAa,WAAA;EAGb,kBAAA;EACA,iBAAA;EACA,mBAAA,EAAqB,iBAAA;EACrB,oBAAA;EACA,cAAA;EACA,gBAAA,EAAkB,gBAAA;EAClB,SAAA;EACA,YAAA;AAAA;AAAA,iBAGoB,IAAA,CAAK,OAAA,EAAS,WAAA,GAAc,OAAA,CAAQ,UAAA;;;KChE9C,OAAA,GAAU,MAAA;AAAA,KAEV,cAAA;EACV,MAAA;EACA,WAAA,QAAmB,OAAA,CAAQ,OAAA;EAC3B,UAAA,GAAa,MAAA,a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AAe,IAAA;IAAc,MAAA;EAAA;EAIpD,OAAA;AAAA;AAAA,iBAWc,kBAAA,CAAmB,MAAA,WAAiB,UAAA;AAAA,iBAyPpC,kBAAA,CAAmB,QAAA,EAAU,OAAA;;;KCpsBjC,YAAA;EACV,MAAA;EACA,OAAA;EACA,GAAA;AAAA;AAAA,iBAGc,aAAA,CAAc,MAAA,WAAiB,YAAA;AAAA,iBAgB/B,cAAA,CAAe,MAAA;AAAA,iBA2Bf,mBAAA,CAAoB,MAAA,UAAgB,MAAA;AAAA,iBAmBpC,eAAA,CAAgB,MAAA,UAAgB,OAAA,UAAiB,GAAA;AAAA,iBAIjD,gBAAA,CAAiB,MAAA,UAAgB,GAAA;AAAA,iBASjC,cAAA,CAAe,MAAA,UAAgB,MAAA,UAAgB,OAAA;;;AnBvF/D;;;;;;;;AAAA,iBoByIgB,oBAAA,CAAqB,MAAA,UAAgB,IAAA,UAAc,EAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/detect.ts","../src/theme.ts","../src/bundler-config.ts","../src/agents-file.ts","../src/init.ts","../src/registry-source.ts","../src/lockfile.ts","../src/commands/add.ts","../src/commands/remove.ts","../src/commands/new.ts","../src/commands/reseal.ts","../src/commands/preset.ts","../src/commands/ls.ts","../src/commands/build.ts","../src/commands/dev.ts","../src/commands/upgrade.ts","../src/commands/verify.ts","../src/commands/bench.ts","../src/commands/lint.ts","../src/fingerprint.ts","../src/project.ts"],"mappings":";;;KAKY,cAAA;AAAA,KACA,OAAA;AAAA,KAOA,SAAA;AAAA,KAEA,YAAA;EACV,cAAA,EAAgB,cAAA;EAChB,eAAA;EACA,aAAA;EACA,OAAA,EAAS,OAAA;EACT,SAAA,EAAW,SAAA;EACX,cAAA;AAAA;AAAA,iBAyBc,aAAA,CAAc,GAAA,WAAc,YAAA;;;KCoDhC,WAAA;;;KCxFA,iBAAA;;;KCyBA,gBAAA;;;cCJC,gBAAA;AAAA,KAED,WAAA;EACV,GAAA;EACA,MAAA;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/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as buildHeaderLine, D as createRegistrySource, E as writeLockfile, F as verifyFetchedFamily, M as extractHeader, N as rewriteHeaderSha, O as resolvePresetFamilies, P as sealRecipeFile, S as DEFAULT_REGISTRY, T as readLockfile, _ as NewFamilyError, a as formatFindingsText, b as add, c as UpgradeError, d as BuildError, f as build, g as reseal, h as preset, i as extractClassUsages, j as computeBodySha, k as detectProject, l as upgrade, m as ls, n as formatBenchTable, o as lint, p as formatLsText, r as ALL_RULES, s as verify, t as bench, u as dev, v as newFamily, w as init, x as renameFamilyInSource, y as remove } from "./bench-oy9aPOvX.js";
1
+ import { A as buildHeaderLine, D as createRegistrySource, E as writeLockfile, F as verifyFetchedFamily, M as extractHeader, N as rewriteHeaderSha, O as resolvePresetFamilies, P as sealRecipeFile, S as DEFAULT_REGISTRY, T as readLockfile, _ as NewFamilyError, a as formatFindingsText, b as add, c as UpgradeError, d as BuildError, f as build, g as reseal, h as preset, i as extractClassUsages, j as computeBodySha, k as detectProject, l as upgrade, m as ls, n as formatBenchTable, o as lint, p as formatLsText, r as ALL_RULES, s as verify, t as bench, u as dev, v as newFamily, w as init, x as renameFamilyInSource, y as remove } from "./bench-BGO3pupw.js";
2
2
  export { ALL_RULES, BuildError, DEFAULT_REGISTRY, NewFamilyError, UpgradeError, add, bench, build, buildHeaderLine, computeBodySha, createRegistrySource, detectProject, dev, extractClassUsages, extractHeader, formatBenchTable, formatFindingsText, formatLsText, init, lint, ls, newFamily, preset, readLockfile, remove, renameFamilyInSource, reseal, resolvePresetFamilies, rewriteHeaderSha, sealRecipeFile, upgrade, verify, verifyFetchedFamily, writeLockfile };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shortwind/cli",
3
- "version": "0.1.0-beta.11",
3
+ "version": "0.1.0-beta.12",
4
4
  "description": "Shortwind CLI — init, add, remove, upgrade, dev, build, lint, ls, preset. Provides the `shortwind` command.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -19,8 +19,8 @@
19
19
  "jsonc-parser": "^3.3.1",
20
20
  "picocolors": "^1.1.1",
21
21
  "tinyglobby": "^0.2.16",
22
- "@shortwind/core": "0.1.0-beta.11",
23
- "@shortwind/tailwind": "0.1.0-beta.11"
22
+ "@shortwind/core": "0.1.0-beta.12",
23
+ "@shortwind/tailwind": "0.1.0-beta.12"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "^25.7.0",