basalt-ui 1.0.0 → 1.0.1

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/cli/index.js CHANGED
@@ -12,10 +12,11 @@ import { dirname, isAbsolute, relative, resolve } from "node:path";
12
12
  import { fileURLToPath } from "node:url";
13
13
  import { checkSource, DEFAULT_GUARD_CONFIG, GUARD_RULES } from "../guard/index.js";
14
14
  import { evaluateGuardHook } from "../guard/guard-hook.js";
15
- import { RULE_NAMES, SURFACES } from "../surfaces.js";
16
- const DEFAULT_ROOTS = ["apps/dashboard/src", "packages/charts/src"];
15
+ import { RULE_NAMES, SKILL_NAMES, SURFACES } from "../surfaces.js";
16
+ const DEFAULT_ROOTS = ["src"];
17
+ const DEFAULT_SERIES_MODULE_PATH = "src/lib/series.ts";
17
18
  function defaultExempt(cfg) {
18
- return [cfg.seriesModulePath ?? "src/theme/series.ts"];
19
+ return [cfg.seriesModulePath ?? DEFAULT_SERIES_MODULE_PATH];
19
20
  }
20
21
  const SKIP = /\.gen\.ts$|\.test\.[tj]sx?$|\.d\.ts$/;
21
22
  const SERIES_MODULE_HINT_RE = /(series|palette)\.tsx?$/i;
@@ -102,11 +103,11 @@ function checkTheme(cwd = process.cwd()) {
102
103
  if (scannedCount === 0) {
103
104
  if (cfg.roots === void 0) {
104
105
  console.error(
105
- `\u2716 basalt check-theme: 0 files scanned \u2014 no "basalt.roots" configured in package.json, and the built-in default roots (${DEFAULT_ROOTS.join(", ")}) matched zero files. Set "basalt": { "roots": [...] } in package.json to point at your source directories.`
106
+ `\u2716 basalt-ui check-theme: 0 files scanned \u2014 no "basalt.roots" configured in package.json, and the built-in default roots (${DEFAULT_ROOTS.join(", ")}) matched zero files. Set "basalt": { "roots": [...] } in package.json to point at your source directories.`
106
107
  );
107
108
  } else {
108
109
  console.error(
109
- `\u2716 basalt check-theme: 0 files scanned \u2014 the configured "basalt.roots" (${roots.join(", ")}) matched zero files. Check the paths in "basalt.roots" in package.json.`
110
+ `\u2716 basalt-ui check-theme: 0 files scanned \u2014 the configured "basalt.roots" (${roots.join(", ")}) matched zero files. Check the paths in "basalt.roots" in package.json.`
110
111
  );
111
112
  }
112
113
  return 1;
@@ -179,9 +180,7 @@ function buildTemplateVars(pkgRoot, cwd, cfg) {
179
180
  APP_NAME: readPackageName(cwd),
180
181
  BASALT_VERSION: readFrameworkVersion(pkgRoot),
181
182
  ACCENT_HUE: cfg.accentHue ?? "blue",
182
- SERIES_MODULE_PATH: cfg.seriesModulePath ?? "src/theme/series.ts",
183
- MARKETPLACE_OWNER: cfg.marketplace?.owner ?? "jkrumm",
184
- MARKETPLACE_REPO: cfg.marketplace?.repo ?? "basalt-ui"
183
+ SERIES_MODULE_PATH: cfg.seriesModulePath ?? DEFAULT_SERIES_MODULE_PATH
185
184
  };
186
185
  }
187
186
  function fillTemplate(tpl, vars) {
@@ -193,6 +192,12 @@ function fillTemplate(tpl, vars) {
193
192
  function findBlockRegion(host) {
194
193
  const start = host.indexOf(BLOCK_BEGIN_PREFIX);
195
194
  if (start === -1) return null;
195
+ const duplicate = host.indexOf(BLOCK_BEGIN_PREFIX, start + BLOCK_BEGIN_PREFIX.length);
196
+ if (duplicate !== -1) {
197
+ throw new Error(
198
+ `duplicate \`${BLOCK_BEGIN_PREFIX}\` markers found in the host file \u2014 remove the stale basalt block by hand, then re-run.`
199
+ );
200
+ }
196
201
  const endMarker = host.indexOf(BLOCK_END, start);
197
202
  if (endMarker === -1) return null;
198
203
  return { start, end: endMarker + BLOCK_END.length };
@@ -228,16 +233,23 @@ function resolvePeerFlags(cwd, flags) {
228
233
  function managedFiles(peers) {
229
234
  const rules = RULE_NAMES.map((name) => ({
230
235
  dest: `.claude/rules/basalt-${name}.md`,
231
- strategy: "copy",
236
+ mode: "managed",
232
237
  source: `agent/rules/basalt-${name}.md`,
233
238
  render: (ctx) => readSource(ctx.pkgRoot, `agent/rules/basalt-${name}.md`)
234
239
  }));
240
+ const skills = SKILL_NAMES.map((name) => ({
241
+ dest: `.claude/skills/${name}/SKILL.md`,
242
+ mode: "managed",
243
+ source: `agent/skills/${name}/SKILL.md`,
244
+ render: (ctx) => readSource(ctx.pkgRoot, `agent/skills/${name}/SKILL.md`)
245
+ }));
235
246
  const claudeBlock = {
236
247
  dest: "CLAUDE.md",
237
- strategy: "block",
248
+ mode: "managed",
249
+ markers: true,
238
250
  source: "agent/templates/CLAUDE-block.md.tpl",
239
- // For block, render() returns the fully-rendered block INCLUDING its begin/end markers — the
240
- // managed region. The writer splices it into the consumer's host CLAUDE.md at apply time.
251
+ // With markers, render() returns the fully-rendered region INCLUDING its begin/end markers.
252
+ // The writer splices it into the consumer's host CLAUDE.md at apply time.
241
253
  render: (ctx) => {
242
254
  const tpl = readSource(ctx.pkgRoot, "agent/templates/CLAUDE-block.md.tpl");
243
255
  if (tpl === null) return null;
@@ -246,7 +258,7 @@ function managedFiles(peers) {
246
258
  };
247
259
  const design = {
248
260
  dest: "DESIGN.md",
249
- strategy: "seed",
261
+ mode: "seed",
250
262
  source: "agent/templates/DESIGN.md.tpl",
251
263
  render: (ctx) => {
252
264
  const tpl = readSource(ctx.pkgRoot, "agent/templates/DESIGN.md.tpl");
@@ -256,31 +268,31 @@ function managedFiles(peers) {
256
268
  };
257
269
  const oxfmt = {
258
270
  dest: ".oxfmtrc.json",
259
- strategy: "copy",
271
+ mode: "seed",
260
272
  source: "configs/oxfmt.json",
261
273
  render: (ctx) => readSource(ctx.pkgRoot, "configs/oxfmt.json")
262
274
  };
263
275
  const lefthook = {
264
276
  dest: "lefthook.yml",
265
- strategy: "copy",
277
+ mode: "seed",
266
278
  source: "configs/lefthook.yml",
267
- render: (ctx) => readSource(ctx.pkgRoot, "configs/lefthook.yml")
279
+ render: () => "# Seeded by basalt-ui init \u2014 you own this file; sync never touches it again.\n# The extends target supplies oxlint + oxfmt + check-theme pre-commit jobs and\n# auto-updates with the basalt-ui package. Add your own commands alongside.\nextends:\n - node_modules/basalt-ui/configs/lefthook.yml\n"
268
280
  };
269
281
  const ci = {
270
282
  dest: ".github/workflows/check.yml",
271
- strategy: "copy",
283
+ mode: "seed",
272
284
  source: "configs/check.yml",
273
285
  render: (ctx) => readSource(ctx.pkgRoot, "configs/check.yml")
274
286
  };
275
287
  const oxlintrc = {
276
288
  dest: ".oxlintrc.json",
277
- strategy: "seed",
289
+ mode: "seed",
278
290
  source: "configs/oxlint.json",
279
291
  render: () => '{\n "extends": ["./node_modules/basalt-ui/configs/oxlint.json"]\n}\n'
280
292
  };
281
293
  const queryClient = {
282
294
  dest: "src/query-client.ts",
283
- strategy: "seed",
295
+ mode: "seed",
284
296
  source: "agent/templates/query-client.ts.tpl",
285
297
  render: (ctx) => {
286
298
  const tpl = readSource(ctx.pkgRoot, "agent/templates/query-client.ts.tpl");
@@ -290,7 +302,7 @@ function managedFiles(peers) {
290
302
  };
291
303
  const rootRoute = {
292
304
  dest: "src/routes/__root.tsx",
293
- strategy: "seed",
305
+ mode: "seed",
294
306
  source: "agent/templates/__root.tpl",
295
307
  render: (ctx) => {
296
308
  const tpl = readSource(ctx.pkgRoot, "agent/templates/__root.tpl");
@@ -301,14 +313,16 @@ function managedFiles(peers) {
301
313
  const scaffolds = [];
302
314
  if (peers.hasQuery) scaffolds.push(queryClient);
303
315
  if (peers.hasRouter && peers.hasQuery) scaffolds.push(rootRoute);
304
- return [...rules, claudeBlock, design, oxfmt, lefthook, ci, oxlintrc, ...scaffolds];
316
+ return [...rules, ...skills, claudeBlock, design, oxfmt, lefthook, ci, oxlintrc, ...scaffolds];
305
317
  }
306
318
  function readManifest(cwd) {
307
319
  const raw = readIfExists(resolve(cwd, MANIFEST_PATH));
308
320
  if (raw === null) return { version: 1, files: {} };
309
321
  try {
310
322
  const parsed = JSON.parse(raw);
311
- return { version: 1, files: parsed.files ?? {} };
323
+ const manifest = { version: 1, files: parsed.files ?? {} };
324
+ if (typeof parsed.basaltVersion === "string") manifest.basaltVersion = parsed.basaltVersion;
325
+ return manifest;
312
326
  } catch {
313
327
  return { version: 1, files: {} };
314
328
  }
@@ -340,14 +354,14 @@ function unitState(file, cwd, ctx) {
340
354
  const desired = file.render(ctx);
341
355
  const destAbs = resolve(cwd, file.dest);
342
356
  const onDisk = readIfExists(destAbs);
343
- if (file.strategy === "block") {
357
+ if (file.markers) {
344
358
  return { current: extractBlockRegion(onDisk), desired };
345
359
  }
346
360
  return { current: onDisk, desired };
347
361
  }
348
362
  function writeUnit(file, cwd, desired) {
349
363
  const destAbs = resolve(cwd, file.dest);
350
- if (file.strategy === "block") {
364
+ if (file.markers) {
351
365
  const host = readIfExists(destAbs) ?? "";
352
366
  writeFileEnsuringDir(destAbs, applyBlock(host, desired));
353
367
  return sha256(desired);
@@ -389,7 +403,7 @@ function init(cwd = process.cwd(), scaffoldFlags = {}) {
389
403
  continue;
390
404
  }
391
405
  const destExists = existsSync(resolve(cwd, file.dest));
392
- if ((file.strategy === "copy" || file.strategy === "seed") && destExists) {
406
+ if (!file.markers && destExists) {
393
407
  manifest.files[file.dest] = sha256(state.desired);
394
408
  skipped++;
395
409
  continue;
@@ -398,31 +412,25 @@ function init(cwd = process.cwd(), scaffoldFlags = {}) {
398
412
  manifest.files[file.dest] = hash;
399
413
  written++;
400
414
  }
415
+ manifest.basaltVersion = ctx.vars.BASALT_VERSION;
401
416
  writeFileEnsuringDir(resolve(cwd, MANIFEST_PATH), `${JSON.stringify(manifest, null, 2)}
402
417
  `);
403
- console.log(`basalt init: ${written} written, ${skipped} kept, manifest at ${MANIFEST_PATH}`);
418
+ console.log(`basalt-ui init: ${written} written, ${skipped} kept, manifest at ${MANIFEST_PATH}`);
404
419
  if (missingSources.length > 0) {
405
420
  console.log(
406
- `basalt init: ${missingSources.length} shipped asset(s) not present, skipped: ${missingSources.join(", ")}`
421
+ `basalt-ui init: ${missingSources.length} shipped asset(s) not present, skipped: ${missingSources.join(", ")}`
407
422
  );
408
423
  }
409
424
  if (!peers.hasQuery) {
410
425
  console.log(
411
- "basalt init: skipped src/query-client.ts (no @tanstack/react-query dependency detected) \u2014 install it, or re-run with --with-query, to scaffold it."
426
+ "basalt-ui init: skipped src/query-client.ts (no @tanstack/react-query dependency detected) \u2014 install it, or re-run with --with-query, to scaffold it."
412
427
  );
413
428
  }
414
429
  if (!peers.hasRouter || !peers.hasQuery) {
415
430
  console.log(
416
- "basalt init: skipped src/routes/__root.tsx (needs both @tanstack/react-router and @tanstack/react-query) \u2014 install both, or re-run with --with-router --with-query, to scaffold it."
431
+ "basalt-ui init: skipped src/routes/__root.tsx (needs both @tanstack/react-router and @tanstack/react-query) \u2014 install both, or re-run with --with-router --with-query, to scaffold it."
417
432
  );
418
433
  }
419
- const mp = `${ctx.vars.MARKETPLACE_OWNER}/${ctx.vars.MARKETPLACE_REPO}`;
420
- console.log(
421
- `
422
- Skills: install the basalt plugin once (user scope \u2192 all projects, then auto-updates):
423
- claude plugin marketplace add ${mp}
424
- claude plugin install basalt@${ctx.vars.MARKETPLACE_REPO} (enable auto-update when prompted)`
425
- );
426
434
  console.log(
427
435
  `
428
436
  Theme guard hook: add to .claude/settings.json \u2192 hooks.PreToolUse to catch violations before they land:
@@ -430,13 +438,13 @@ Theme guard hook: add to .claude/settings.json \u2192 hooks.PreToolUse to catch
430
438
  "PreToolUse": [
431
439
  {
432
440
  "matcher": "Write|Edit|MultiEdit",
433
- "hooks": [{ "type": "command", "command": "bunx basalt guard-hook" }]
441
+ "hooks": [{ "type": "command", "command": "bunx basalt-ui guard-hook" }]
434
442
  }
435
443
  ]
436
444
  }`
437
445
  );
438
446
  console.log(
439
- "\nFirst run: run `basalt check-theme` next, then tune the per-rule `basalt.*` config keys in package.json for anything that fires \u2014 do not mass-`theme-allow` findings."
447
+ "\nFirst run: run `basalt-ui check-theme` next, then tune the per-rule `basalt.*` config keys in package.json for anything that fires \u2014 do not mass-`theme-allow` findings."
440
448
  );
441
449
  return 0;
442
450
  }
@@ -458,7 +466,7 @@ function sync(opts = {}, cwd = process.cwd()) {
458
466
  missingSources.push(file.source);
459
467
  continue;
460
468
  }
461
- if (file.strategy === "seed") {
469
+ if (file.mode === "seed") {
462
470
  if (state.current === null && !opts.check) {
463
471
  manifest.files[file.dest] = writeUnit(file, cwd, state.desired);
464
472
  recreated++;
@@ -484,20 +492,21 @@ function sync(opts = {}, cwd = process.cwd()) {
484
492
  }
485
493
  if (opts.check) {
486
494
  if (driftLines.length > 0) {
487
- console.error("basalt sync --check: locally-drifted managed files:");
495
+ console.error("basalt-ui sync --check: locally-drifted managed files:");
488
496
  for (const l of driftLines) console.error(l);
489
497
  }
490
498
  if (staleForCheck > 0) {
491
- console.error(`basalt sync --check: ${staleForCheck} managed file(s) out of date.`);
499
+ console.error(`basalt-ui sync --check: ${staleForCheck} managed file(s) out of date.`);
492
500
  return 1;
493
501
  }
494
- console.log("\u2713 basalt sync --check: all managed files current.");
502
+ console.log("\u2713 basalt-ui sync --check: all managed files current.");
495
503
  return 0;
496
504
  }
505
+ manifest.basaltVersion = ctx.vars.BASALT_VERSION;
497
506
  writeFileEnsuringDir(resolve(cwd, MANIFEST_PATH), `${JSON.stringify(manifest, null, 2)}
498
507
  `);
499
508
  console.log(
500
- `basalt sync: ${updated} updated, ${recreated} recreated, ${skippedDrift} skipped (drift).`
509
+ `basalt-ui sync: ${updated} updated, ${recreated} recreated, ${skippedDrift} skipped (drift).`
501
510
  );
502
511
  if (driftLines.length > 0) {
503
512
  console.log("Locally-edited files were skipped (run with --force to overwrite):");
@@ -505,12 +514,12 @@ function sync(opts = {}, cwd = process.cwd()) {
505
514
  }
506
515
  if (missingSources.length > 0) {
507
516
  console.log(
508
- `basalt sync: ${missingSources.length} shipped asset(s) not present, skipped: ${missingSources.join(", ")}`
517
+ `basalt-ui sync: ${missingSources.length} shipped asset(s) not present, skipped: ${missingSources.join(", ")}`
509
518
  );
510
519
  }
511
520
  return 0;
512
521
  }
513
- function checkCoverage(cwd = process.cwd()) {
522
+ function checkCoverage() {
514
523
  const pkgRoot = packageRoot();
515
524
  const failures = [];
516
525
  const allSpecs = Object.entries(SURFACES);
@@ -536,26 +545,12 @@ function checkCoverage(cwd = process.cwd()) {
536
545
  );
537
546
  }
538
547
  }
539
- const pluginJsonPath = resolve(cwd, "plugins/basalt/.claude-plugin/plugin.json");
540
- if (!existsSync(pluginJsonPath)) {
541
- console.log(
542
- ` (assertion 3 skipped: plugin.json not found \u2014 not in the basalt-ui framework repo, skipping the plugin-skills check)`
543
- );
544
- } else {
545
- let pluginSkillNames = /* @__PURE__ */ new Set();
546
- try {
547
- const pluginJson = JSON.parse(readFileSync(pluginJsonPath, "utf8"));
548
- pluginSkillNames = new Set((pluginJson.skills ?? []).map((s) => s.split("/").pop() ?? s));
549
- } catch {
550
- failures.push(`Cannot read plugin.json at ${pluginJsonPath}`);
551
- }
552
- const doctrineSkillUnion = new Set(doctrineSpecs.flatMap((s) => [...s.skill]));
553
- for (const skill of doctrineSkillUnion) {
554
- if (!pluginSkillNames.has(skill)) {
555
- failures.push(
556
- `SURFACES doctrine skill '${skill}' is not listed in plugins/basalt/.claude-plugin/plugin.json skills`
557
- );
558
- }
548
+ for (const skill of SKILL_NAMES) {
549
+ const skillPath = resolve(pkgRoot, `agent/skills/${skill}/SKILL.md`);
550
+ if (!existsSync(skillPath)) {
551
+ failures.push(
552
+ `Missing skill file: agent/skills/${skill}/SKILL.md (derived from SURFACES doctrine skills)`
553
+ );
559
554
  }
560
555
  }
561
556
  let pkgExports = /* @__PURE__ */ new Set();
@@ -637,7 +632,7 @@ function checkCoverage(cwd = process.cwd()) {
637
632
  function doctor(cwd = process.cwd()) {
638
633
  const result = { hardFailures: 0, warnings: 0 };
639
634
  const lines = [`
640
- basalt doctor \u2014 ${cwd}
635
+ basalt-ui doctor \u2014 ${cwd}
641
636
  `];
642
637
  function pass(msg) {
643
638
  lines.push(` \u2713 ${msg}`);
@@ -651,61 +646,44 @@ basalt doctor \u2014 ${cwd}
651
646
  result.hardFailures++;
652
647
  }
653
648
  const manifestAbs = resolve(cwd, MANIFEST_PATH);
654
- if (existsSync(manifestAbs)) {
649
+ const manifestExists = existsSync(manifestAbs);
650
+ if (manifestExists) {
655
651
  pass(`${MANIFEST_PATH} exists`);
656
652
  } else {
657
- fail(`${MANIFEST_PATH} missing \u2014 run \`basalt init\` to scaffold the consumer repo`);
658
- }
659
- const claudeMdAbs = resolve(cwd, "CLAUDE.md");
660
- const claudeMdContent = readIfExists(claudeMdAbs);
661
- if (claudeMdContent !== null && claudeMdContent.includes(BLOCK_BEGIN_PREFIX)) {
662
- pass("CLAUDE.md contains the basalt managed block");
663
- } else if (claudeMdContent === null) {
664
- warn("CLAUDE.md not found \u2014 run `basalt init` to scaffold the basalt block");
665
- } else {
666
- warn(
667
- `CLAUDE.md does not contain the basalt managed block (expected marker: ${BLOCK_BEGIN_PREFIX}) \u2014 run \`basalt sync\``
668
- );
669
- }
670
- const missingRules = [];
671
- for (const name of RULE_NAMES) {
672
- const ruleAbs = resolve(cwd, `.claude/rules/basalt-${name}.md`);
673
- if (!existsSync(ruleAbs)) missingRules.push(`basalt-${name}.md`);
653
+ fail(`${MANIFEST_PATH} missing \u2014 run \`basalt-ui init\` to scaffold the consumer repo`);
674
654
  }
675
- if (missingRules.length === 0) {
676
- pass(`all ${RULE_NAMES.length} basalt-*.md rule files present under .claude/rules/`);
677
- } else {
678
- warn(
679
- `missing rule files under .claude/rules/: ${missingRules.join(", ")} \u2014 run \`basalt sync\` to restore`
680
- );
655
+ const consumerPkgRaw = readIfExists(resolve(cwd, "node_modules", "basalt-ui", "package.json"));
656
+ let installedVersion = null;
657
+ if (consumerPkgRaw !== null) {
658
+ try {
659
+ const consumerPkg = JSON.parse(consumerPkgRaw);
660
+ installedVersion = consumerPkg.version ?? null;
661
+ } catch {
662
+ warn("could not parse node_modules/basalt-ui/package.json \u2014 version checks skipped");
663
+ }
681
664
  }
682
- const settingsPath = resolve(process.env["HOME"] ?? "~", ".claude", "settings.json");
683
- try {
684
- const settingsContent = readIfExists(settingsPath);
685
- if (settingsContent !== null && settingsContent.includes("basalt")) {
686
- pass("basalt plugin appears installed in ~/.claude/settings.json");
687
- } else {
665
+ if (manifestExists && installedVersion !== null) {
666
+ const manifestVersion = readManifest(cwd).basaltVersion;
667
+ if (manifestVersion === void 0) {
688
668
  warn(
689
- "basalt plugin not detected in ~/.claude/settings.json \u2014 install once at user scope:\n claude plugin marketplace add jkrumm/basalt-ui\n claude plugin install basalt@basalt-ui"
669
+ `${MANIFEST_PATH} records no basaltVersion (written by an older basalt-ui) \u2014 run \`basalt-ui sync\` to refresh the doctrine and stamp the manifest.`
690
670
  );
671
+ } else if (manifestVersion !== installedVersion) {
672
+ warn(
673
+ `installed basalt-ui (${installedVersion}) differs from the version that last synced (${manifestVersion}) \u2014 the placed doctrine is stale; run \`basalt-ui sync\`.`
674
+ );
675
+ } else {
676
+ pass(`installed basalt-ui (${installedVersion}) matches the manifest's basaltVersion`);
691
677
  }
692
- } catch {
693
- warn("could not read ~/.claude/settings.json \u2014 plugin install status unknown");
694
678
  }
695
679
  const cliVersion = readFrameworkVersion(packageRoot());
696
- const consumerPkgRaw = readIfExists(resolve(cwd, "node_modules", "basalt-ui", "package.json"));
697
- if (consumerPkgRaw !== null) {
698
- try {
699
- const consumerPkg = JSON.parse(consumerPkgRaw);
700
- if (consumerPkg.version !== void 0 && consumerPkg.version !== cliVersion) {
701
- warn(
702
- `running CLI version (${cliVersion}) differs from the installed basalt-ui version in node_modules (${consumerPkg.version}) \u2014 likely a stale \`bunx basalt\` fetch from npm; add basalt-ui as a root devDependency so the bin hoists from your workspace.`
703
- );
704
- } else {
705
- pass(`CLI version (${cliVersion}) matches the installed basalt-ui in node_modules`);
706
- }
707
- } catch {
708
- warn("could not parse node_modules/basalt-ui/package.json \u2014 CLI version check skipped");
680
+ if (installedVersion !== null) {
681
+ if (installedVersion !== cliVersion) {
682
+ warn(
683
+ `running CLI version (${cliVersion}) differs from the installed basalt-ui version in node_modules (${installedVersion}) \u2014 likely a stale \`bunx basalt-ui\` fetch from npm; add basalt-ui as a root devDependency so the bin hoists from your workspace.`
684
+ );
685
+ } else {
686
+ pass(`CLI version (${cliVersion}) matches the installed basalt-ui in node_modules`);
709
687
  }
710
688
  }
711
689
  lines.push("");
@@ -865,8 +843,13 @@ async function guardHook(cwd = process.cwd()) {
865
843
  }
866
844
  return 0;
867
845
  }
846
+ const USAGE = "Usage: basalt-ui <init [--with-router] [--with-query] | sync [--force] [--check] | check-theme | check-coverage | info [--json] | doctor | guard-hook | help>\n\nEvery subcommand accepts --help / -h to print this message and exit without running.";
868
847
  function run(argv, cwd = process.cwd()) {
869
848
  const [cmd, ...flags] = argv;
849
+ if (cmd === "help" || cmd === "--help" || cmd === "-h" || flags.includes("--help") || flags.includes("-h")) {
850
+ console.log(USAGE);
851
+ return 0;
852
+ }
870
853
  switch (cmd) {
871
854
  case "init":
872
855
  return init(cwd, {
@@ -878,7 +861,7 @@ function run(argv, cwd = process.cwd()) {
878
861
  case "check-theme":
879
862
  return checkTheme(cwd);
880
863
  case "check-coverage":
881
- return checkCoverage(cwd);
864
+ return checkCoverage();
882
865
  case "info":
883
866
  return info(flags);
884
867
  case "doctor":
@@ -886,15 +869,14 @@ function run(argv, cwd = process.cwd()) {
886
869
  case "guard-hook":
887
870
  return guardHook(cwd);
888
871
  default:
889
- console.error(
890
- "Usage: basalt <init [--with-router] [--with-query] | sync [--force] [--check] | check-theme | check-coverage | info [--json] | doctor | guard-hook>"
891
- );
872
+ console.error(USAGE);
892
873
  return 1;
893
874
  }
894
875
  }
895
876
  export {
896
877
  MANIFEST_PATH,
897
878
  RULE_NAMES,
879
+ SKILL_NAMES,
898
880
  checkCoverage,
899
881
  checkTheme,
900
882
  doctor,
@@ -13,7 +13,8 @@ import type { GuardKind } from './guard/types.js';
13
13
  * // const bad: RuleName = 'overlays' // tsc error — not in the union
14
14
  */
15
15
  export type RuleName = 'tokens' | 'charts' | 'mantine' | 'router' | 'query' | 'state' | 'forms' | 'notifications' | 'commands' | 'data' | 'agent' | 'content';
16
- /** The 3 plugin skill names (plugins/basalt/skills/basalt-{name}/).
16
+ /** The 3 shipped skill names (agent/skills/basalt-{name}/SKILL.md, placed into a consumer's
17
+ * .claude/skills/ by `basalt-ui init`/`sync` — the same managed path the rules take).
17
18
  *
18
19
  * @example
19
20
  * const s: SkillName = 'basalt-app'
@@ -372,5 +373,14 @@ export declare const SURFACES: {
372
373
  * RULE_NAMES.includes('tokens') // true
373
374
  */
374
375
  export declare const RULE_NAMES: readonly RuleName[];
376
+ /**
377
+ * Derived, deduped set of doctrine skill names. Same projection shape as RULE_NAMES — the CLI's
378
+ * managed-file manifest and check-coverage both consume it, so a skill referenced by any doctrine
379
+ * surface is guaranteed a `agent/skills/{name}/SKILL.md` placement path.
380
+ *
381
+ * @example
382
+ * SKILL_NAMES.includes('basalt-design') // true
383
+ */
384
+ export declare const SKILL_NAMES: readonly SkillName[];
375
385
  export {};
376
386
  //# sourceMappingURL=surfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"surfaces.d.ts","sourceRoot":"","sources":["../src/surfaces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAI9C;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAChB,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,OAAO,GACP,OAAO,GACP,OAAO,GACP,eAAe,GACf,UAAU,GACV,MAAM,GACN,OAAO,GACP,SAAS,CAAA;AAEb;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,eAAe,GAAG,eAAe,CAAA;AAExE;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG,iBAAiB,GAAG,UAAU,GAAG,YAAY,GAAG,cAAc,CAAA;AAElF;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,mEAAmE;IACnE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,wFAAwF;IACxF,QAAQ,CAAC,KAAK,EAAE,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map((s) => s.rule)
301
301
  )
302
302
  ];
303
+ const SKILL_NAMES = [
304
+ ...new Set(
305
+ Object.values(SURFACES).filter((s) => s.kind === "doctrine").flatMap((s) => [...s.skill])
306
+ )
307
+ ];
303
308
  export {
304
309
  RULE_NAMES,
310
+ SKILL_NAMES,
305
311
  SURFACES
306
312
  };
@@ -8,6 +8,7 @@
8
8
  *
9
9
  * Grounded in argo `packages/charts/src/{tokens,palette,theme-vars,utils/color}.ts`.
10
10
  */
11
+ export { BP, p } from './palette.js';
11
12
  /** A per-theme color pair: a hue keeps its identity but shifts shade across schemes. */
12
13
  export type ColorPair = {
13
14
  light: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tokens/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,wFAAwF;AACxF,MAAM,MAAM,SAAS,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAEvD,8FAA8F;AAC9F,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;AAEjD;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,EAAE,GAAG,MAAM,KAAG,MACoB,CAAA;AAsCrE,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHL,CAAA;AAuGV;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,CAAC,CAAC,SAAS,SAAS,EACpD,GAAG,EAAE,CAAC,EACN,MAAM,SAAK,GACV;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM;CAAE,CAI5B;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,CAAC,CAAC,SAAS,SAAS,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAEjE;AAED;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;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,CAAC,CAAC,SAAS,SAAS,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAEjE;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,CAAC,CAAC,SAAS,SAAS,EACnD,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,CAAC,GACL;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM;CAAE,CAE5B;AAED,2CAA2C;AAC3C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,+GAA+G;IAC/G,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IAClC,kGAAkG;IAClG,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB,CAAA;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,IAAI,GAAE,gBAAqB,GAAG,MAAM,CAqBnE"}
@@ -1,4 +1,5 @@
1
1
  import { ACCENT, FILL, INK, NEUTRAL, SEMANTIC, SHADOW, STATUS, SURFACE } from "./palette.js";
2
+ import { BP, p } from "./palette.js";
2
3
  const alpha = (token, a) => `color-mix(in srgb, ${token} ${Math.round(a * 100)}%, transparent)`;
3
4
  const TEXT = {
4
5
  micro: 11,
@@ -237,10 +238,12 @@ ${side("light")}
237
238
  }`;
238
239
  }
239
240
  export {
241
+ BP,
240
242
  VX,
241
243
  alpha,
242
244
  buildPaletteCss,
243
245
  defineSeries,
244
246
  groupTokens,
247
+ p,
245
248
  seriesTokens
246
249
  };
package/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # basalt-ui v1.0.0
1
+ # basalt-ui v1.0.1
2
2
  # Opinionated framework for Mantine-based React apps — theme, app shell, visx charts, toolchain presets
3
3
  #
4
4
  # basalt-ui is an opinionated framework for Mantine-based React apps.
@@ -15,7 +15,7 @@
15
15
  # Optional peers are listed per subpath; install only what you use.
16
16
 
17
17
  Package: basalt-ui
18
- Version: 1.0.0
18
+ Version: 1.0.1
19
19
 
20
20
  ## basalt-ui
21
21
  Import: import { ... } from 'basalt-ui'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "basalt-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Opinionated framework for Mantine-based React apps — theme, app shell, visx charts, toolchain presets",
5
5
  "keywords": [
6
6
  "charts",
@@ -26,7 +26,7 @@
26
26
  "directory": "packages/basalt-ui"
27
27
  },
28
28
  "bin": {
29
- "basalt": "./bin/basalt.mjs"
29
+ "basalt-ui": "./bin/basalt-ui.mjs"
30
30
  },
31
31
  "files": [
32
32
  "dist/",
@@ -601,8 +601,8 @@ describe('check-theme sub-16-input-font', () => {
601
601
 
602
602
  describe('check-theme roots fail-loud', () => {
603
603
  it('exits non-zero when the built-in default roots match zero files', () => {
604
- // No "basalt.roots" in package.json — falls back to the built-in defaults
605
- // (apps/dashboard/src, packages/charts/src), which don't exist under this fixture at all.
604
+ // No "basalt.roots" in package.json — falls back to the built-in default (`src`), which
605
+ // doesn't exist under this fixture at all (the fixture dir has no src/ of its own here).
606
606
  writeFileSync(resolve(dir, 'package.json'), JSON.stringify({ name: 'fixture' }))
607
607
  const { code, err } = run()
608
608
  expect(code).toBe(1)
@@ -624,6 +624,16 @@ describe('check-theme roots fail-loud', () => {
624
624
  const { code } = run()
625
625
  expect(code).toBe(0)
626
626
  })
627
+
628
+ it('scans a plain src/ layout by default with no "basalt.roots" configured', () => {
629
+ // The built-in default root is `src` (a generic single-app layout), not an argo-shaped path
630
+ // like `apps/dashboard/src` — a bare consumer with a normal src/ tree scans out of the box.
631
+ writeFileSync(resolve(dir, 'package.json'), JSON.stringify({ name: 'fixture' }))
632
+ mkdirSync(resolve(dir, 'src'), { recursive: true })
633
+ writeFileSync(resolve(dir, 'src', 'Card.tsx'), `export const C = () => <Box p="md" />\n`)
634
+ const { code } = run()
635
+ expect(code).toBe(0)
636
+ })
627
637
  })
628
638
 
629
639
  describe('check-theme comment skipping', () => {