basalt-ui 2.28.0 → 2.29.0

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.
Files changed (229) hide show
  1. package/CHANGELOG.md +461 -401
  2. package/MIGRATING.md +202 -12
  3. package/agent/skills/basalt-app/SKILL.md +3 -3
  4. package/agent/skills/basalt-charts/SKILL.md +1 -1
  5. package/agent/skills/basalt-design/SKILL.md +11 -5
  6. package/agent/skills/basalt-design/references/catalogue.md +3 -1
  7. package/agent/skills/basalt-design/references/recipes.md +1 -1
  8. package/agent/skills/basalt-design/references/states.md +1 -1
  9. package/configs/oxlint-plugin.js +2 -1
  10. package/configs/oxlint.json +1 -0
  11. package/dist/charts/ChartCard.d.ts +9 -5
  12. package/dist/charts/ChartCard.d.ts.map +1 -1
  13. package/dist/charts/ChartCard.js +68 -12
  14. package/dist/charts/Sparkline.d.ts +5 -0
  15. package/dist/charts/Sparkline.d.ts.map +1 -1
  16. package/dist/charts/Sparkline.js +53 -5
  17. package/dist/charts/chart-box.module.css +9 -2
  18. package/dist/charts/chart-card.module.css +16 -13
  19. package/dist/charts/chart-card.module.css.d.ts +2 -0
  20. package/dist/charts/compile.d.ts +1 -1
  21. package/dist/charts/compile.d.ts.map +1 -1
  22. package/dist/charts/compile.js +18 -9
  23. package/dist/charts/ref-label.d.ts +6 -0
  24. package/dist/charts/ref-label.d.ts.map +1 -1
  25. package/dist/charts/ref-label.js +19 -5
  26. package/dist/charts/sparkline.module.css +44 -0
  27. package/dist/charts/sparkline.module.css.d.ts +3 -0
  28. package/dist/charts/state.d.ts +1 -1
  29. package/dist/charts/state.d.ts.map +1 -1
  30. package/dist/charts/state.js +3 -3
  31. package/dist/cli/doctor-upgrade.d.ts +11 -0
  32. package/dist/cli/doctor-upgrade.d.ts.map +1 -1
  33. package/dist/cli/doctor-upgrade.js +54 -0
  34. package/dist/cli/doctor.d.ts.map +1 -1
  35. package/dist/cli/doctor.js +32 -0
  36. package/dist/cli/help.d.ts.map +1 -1
  37. package/dist/cli/help.js +8 -3
  38. package/dist/cli/index.d.ts +13 -13
  39. package/dist/cli/index.d.ts.map +1 -1
  40. package/dist/cli/index.js +36 -2
  41. package/dist/cli/init.d.ts +6 -0
  42. package/dist/cli/init.d.ts.map +1 -1
  43. package/dist/cli/init.js +118 -27
  44. package/dist/cli/router-wiring.d.ts +3 -0
  45. package/dist/cli/router-wiring.d.ts.map +1 -1
  46. package/dist/cli/router-wiring.js +2 -0
  47. package/dist/cli/shot/capture.d.ts +28 -1
  48. package/dist/cli/shot/capture.d.ts.map +1 -1
  49. package/dist/cli/shot/capture.js +77 -7
  50. package/dist/cli/shot/detect.d.ts +4 -1
  51. package/dist/cli/shot/detect.d.ts.map +1 -1
  52. package/dist/cli/shot/detect.js +38 -16
  53. package/dist/cli/shot/index.d.ts.map +1 -1
  54. package/dist/cli/shot/index.js +9 -2
  55. package/dist/cli/shot/measure.d.ts.map +1 -1
  56. package/dist/cli/shot/measure.js +11 -2
  57. package/dist/cli/shot/types.d.ts +4 -1
  58. package/dist/cli/shot/types.d.ts.map +1 -1
  59. package/dist/cli/sync.d.ts.map +1 -1
  60. package/dist/cli/sync.js +10 -2
  61. package/dist/common/could-not-load.d.ts +13 -0
  62. package/dist/common/could-not-load.d.ts.map +1 -0
  63. package/dist/common/could-not-load.js +14 -0
  64. package/dist/common/index.d.ts +1 -0
  65. package/dist/common/index.d.ts.map +1 -1
  66. package/dist/common/index.js +3 -0
  67. package/dist/common/props.d.ts +20 -0
  68. package/dist/common/props.d.ts.map +1 -1
  69. package/dist/common/props.js +13 -1
  70. package/dist/common/retry-button.module.css +7 -3
  71. package/dist/dashboard/bar-list.d.ts +4 -4
  72. package/dist/dashboard/bar-list.d.ts.map +1 -1
  73. package/dist/dashboard/bar-list.js +10 -7
  74. package/dist/dashboard/bar-list.module.css +21 -3
  75. package/dist/dashboard/board.d.ts +2 -2
  76. package/dist/dashboard/board.d.ts.map +1 -1
  77. package/dist/dashboard/board.js +31 -12
  78. package/dist/dashboard/board.module.css +19 -0
  79. package/dist/dashboard/board.module.css.d.ts +2 -0
  80. package/dist/dashboard/empty-state.d.ts +3 -3
  81. package/dist/dashboard/empty-state.d.ts.map +1 -1
  82. package/dist/dashboard/empty-state.js +4 -2
  83. package/dist/dashboard/event-list-model.d.ts +3 -0
  84. package/dist/dashboard/event-list-model.d.ts.map +1 -1
  85. package/dist/dashboard/event-list-model.js +5 -1
  86. package/dist/dashboard/event-list-rows.d.ts.map +1 -1
  87. package/dist/dashboard/event-list-rows.js +2 -6
  88. package/dist/dashboard/event-list-scroll.d.ts +32 -4
  89. package/dist/dashboard/event-list-scroll.d.ts.map +1 -1
  90. package/dist/dashboard/event-list-scroll.js +117 -4
  91. package/dist/dashboard/event-list-skeleton.d.ts.map +1 -1
  92. package/dist/dashboard/event-list-skeleton.js +2 -4
  93. package/dist/dashboard/event-list.d.ts +4 -4
  94. package/dist/dashboard/event-list.d.ts.map +1 -1
  95. package/dist/dashboard/event-list.js +53 -23
  96. package/dist/dashboard/event-list.module.css +90 -37
  97. package/dist/dashboard/event-list.module.css.d.ts +1 -0
  98. package/dist/dashboard/meter-model.d.ts +6 -3
  99. package/dist/dashboard/meter-model.d.ts.map +1 -1
  100. package/dist/dashboard/meter-model.js +9 -4
  101. package/dist/dashboard/meter-parts.d.ts +3 -0
  102. package/dist/dashboard/meter-parts.d.ts.map +1 -1
  103. package/dist/dashboard/meter-parts.js +32 -4
  104. package/dist/dashboard/meter.d.ts +3 -3
  105. package/dist/dashboard/meter.d.ts.map +1 -1
  106. package/dist/dashboard/meter.js +10 -2
  107. package/dist/dashboard/meter.module.css +18 -11
  108. package/dist/dashboard/meter.module.css.d.ts +0 -1
  109. package/dist/dashboard/page-summary.d.ts +3 -3
  110. package/dist/dashboard/page-summary.d.ts.map +1 -1
  111. package/dist/dashboard/page-summary.js +7 -2
  112. package/dist/dashboard/page-summary.module.css +5 -2
  113. package/dist/dashboard/query-state.d.ts +9 -8
  114. package/dist/dashboard/query-state.d.ts.map +1 -1
  115. package/dist/dashboard/query-state.js +28 -10
  116. package/dist/dashboard/section.d.ts +11 -3
  117. package/dist/dashboard/section.d.ts.map +1 -1
  118. package/dist/dashboard/section.js +34 -7
  119. package/dist/dashboard/settings-section.d.ts +4 -4
  120. package/dist/dashboard/settings-section.d.ts.map +1 -1
  121. package/dist/dashboard/settings-section.js +11 -7
  122. package/dist/dashboard/settings-section.module.css +6 -0
  123. package/dist/dashboard/settings-section.module.css.d.ts +1 -0
  124. package/dist/dashboard/stat-card.d.ts +3 -3
  125. package/dist/dashboard/stat-card.d.ts.map +1 -1
  126. package/dist/dashboard/stat-card.js +24 -8
  127. package/dist/dashboard/stat-card.module.css +11 -0
  128. package/dist/dashboard/stat-group.d.ts +2 -2
  129. package/dist/dashboard/stat-group.d.ts.map +1 -1
  130. package/dist/dashboard/stat-group.js +10 -3
  131. package/dist/dashboard/stat-strip.d.ts +5 -4
  132. package/dist/dashboard/stat-strip.d.ts.map +1 -1
  133. package/dist/dashboard/stat-strip.js +41 -31
  134. package/dist/dashboard/stat-strip.module.css +4 -5
  135. package/dist/dashboard/visual-slot.d.ts +4 -0
  136. package/dist/dashboard/visual-slot.d.ts.map +1 -1
  137. package/dist/dashboard/visual-slot.js +2 -0
  138. package/dist/dashboard/widget-header.d.ts +6 -6
  139. package/dist/dashboard/widget-header.d.ts.map +1 -1
  140. package/dist/dashboard/widget-header.js +4 -2
  141. package/dist/dashboard/widget-header.module.css +6 -25
  142. package/dist/format/shared.d.ts.map +1 -1
  143. package/dist/format/shared.js +24 -1
  144. package/dist/guard/index.d.ts +1 -1
  145. package/dist/guard/index.d.ts.map +1 -1
  146. package/dist/guard/index.js +2 -1
  147. package/dist/styles.css +23 -0
  148. package/dist/table/cell-kinds.d.ts +10 -7
  149. package/dist/table/cell-kinds.d.ts.map +1 -1
  150. package/dist/table/cell-kinds.js +18 -7
  151. package/dist/table/data-table-fold.d.ts +13 -5
  152. package/dist/table/data-table-fold.d.ts.map +1 -1
  153. package/dist/table/data-table-fold.js +48 -16
  154. package/dist/table/data-table.d.ts +2 -2
  155. package/dist/table/data-table.d.ts.map +1 -1
  156. package/dist/table/data-table.js +16 -9
  157. package/dist/table/data-table.module.css +74 -2
  158. package/dist/table/data-table.module.css.d.ts +4 -0
  159. package/dist/theme/controls.module.css +23 -2
  160. package/llms.txt +263 -2
  161. package/package.json +1 -1
  162. package/src/charts/ChartCard.tsx +98 -16
  163. package/src/charts/Sparkline.tsx +84 -5
  164. package/src/charts/chart-box.module.css +9 -2
  165. package/src/charts/chart-card.module.css +16 -13
  166. package/src/charts/chart-card.module.css.d.ts +2 -0
  167. package/src/charts/compile.ts +37 -15
  168. package/src/charts/ref-label.ts +36 -9
  169. package/src/charts/sparkline.module.css +44 -0
  170. package/src/charts/sparkline.module.css.d.ts +3 -0
  171. package/src/charts/state.tsx +4 -3
  172. package/src/cli/doctor-upgrade.ts +75 -0
  173. package/src/cli/doctor.ts +36 -0
  174. package/src/cli/help.ts +16 -6
  175. package/src/cli/index.ts +73 -67
  176. package/src/cli/init.ts +157 -36
  177. package/src/cli/router-wiring.ts +2 -2
  178. package/src/cli/shot/capture.ts +109 -10
  179. package/src/cli/shot/detect.ts +46 -22
  180. package/src/cli/shot/index.ts +8 -2
  181. package/src/cli/shot/measure.ts +11 -2
  182. package/src/cli/shot/types.ts +4 -1
  183. package/src/cli/sync.ts +12 -2
  184. package/src/common/could-not-load.ts +22 -0
  185. package/src/common/index.ts +1 -0
  186. package/src/common/props.ts +30 -0
  187. package/src/common/retry-button.module.css +7 -3
  188. package/src/dashboard/bar-list.module.css +21 -3
  189. package/src/dashboard/bar-list.tsx +46 -41
  190. package/src/dashboard/board.module.css +19 -0
  191. package/src/dashboard/board.module.css.d.ts +2 -0
  192. package/src/dashboard/board.tsx +69 -48
  193. package/src/dashboard/empty-state.tsx +5 -2
  194. package/src/dashboard/event-list-model.ts +13 -1
  195. package/src/dashboard/event-list-rows.tsx +3 -6
  196. package/src/dashboard/event-list-scroll.ts +154 -8
  197. package/src/dashboard/event-list-skeleton.tsx +5 -1
  198. package/src/dashboard/event-list.module.css +90 -37
  199. package/src/dashboard/event-list.module.css.d.ts +1 -0
  200. package/src/dashboard/event-list.tsx +92 -65
  201. package/src/dashboard/meter-model.ts +16 -7
  202. package/src/dashboard/meter-parts.tsx +45 -13
  203. package/src/dashboard/meter.module.css +18 -11
  204. package/src/dashboard/meter.module.css.d.ts +0 -1
  205. package/src/dashboard/meter.tsx +36 -18
  206. package/src/dashboard/page-summary.module.css +5 -2
  207. package/src/dashboard/page-summary.tsx +13 -6
  208. package/src/dashboard/query-state.tsx +54 -29
  209. package/src/dashboard/section.tsx +83 -41
  210. package/src/dashboard/settings-section.module.css +6 -0
  211. package/src/dashboard/settings-section.module.css.d.ts +1 -0
  212. package/src/dashboard/settings-section.tsx +11 -6
  213. package/src/dashboard/stat-card.module.css +11 -0
  214. package/src/dashboard/stat-card.tsx +31 -8
  215. package/src/dashboard/stat-group.tsx +22 -14
  216. package/src/dashboard/stat-strip.module.css +4 -5
  217. package/src/dashboard/stat-strip.tsx +29 -20
  218. package/src/dashboard/visual-slot.ts +5 -0
  219. package/src/dashboard/widget-header.module.css +6 -25
  220. package/src/dashboard/widget-header.tsx +8 -5
  221. package/src/format/shared.ts +30 -1
  222. package/src/guard/index.ts +5 -1
  223. package/src/styles.css +23 -0
  224. package/src/table/cell-kinds.tsx +42 -13
  225. package/src/table/data-table-fold.tsx +65 -12
  226. package/src/table/data-table.module.css +74 -2
  227. package/src/table/data-table.module.css.d.ts +4 -0
  228. package/src/table/data-table.tsx +34 -13
  229. package/src/theme/controls.module.css +23 -2
@@ -1 +1 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/charts/state.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAiB,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO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AAS,GAAG,kBAAkB,CAMnF;AAsBD;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;AA4E9D;8EAC8E;AAC9E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE;IACtC,KAAK,EAAE,UAAU,GAAG,SAAS,CAAA;IAC7B;0GACsG;IACtG,MAAM,CAAC,EAAE,cAAc,GAAG,SAAS,CAAA;IACnC,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;2DACuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oGAAoG;IACpG,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,KAAK,CAAC,EAAE,cAAc,CAAA;CACvB,GAAG,YAAY,GAAG,IAAI,CAiFtB"}
@@ -1,5 +1,6 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { splitEmptyCopy } from "../common/empty-copy.js";
3
+ import { couldNotLoad } from "../common/could-not-load.js";
3
4
  import { toErrorMessage } from "../common/errors.js";
4
5
  import { RetryButton } from "../common/retry-button.js";
5
6
  import { VX } from "../tokens/index.js";
@@ -74,7 +75,7 @@ const errorHeadStyle = {
74
75
  fontWeight: 500
75
76
  };
76
77
  const errorMessageStyle = { color: VX.muted };
77
- const emptyLabel = (state) => typeof state?.empty === "string" ? state.empty : "Nothing recorded in this range.";
78
+ const emptyLabel = (state) => typeof state?.empty === "string" ? state.empty : "Nothing plotted in this range.";
78
79
  function ChartPlaceholder(props) {
79
80
  const kind = resolveChartState(props.state);
80
81
  if (kind === null) return null;
@@ -96,8 +97,7 @@ function ChartPlaceholder(props) {
96
97
  const body = props.compact ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "\u2014" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
97
98
  kind === "error" && /* @__PURE__ */ jsxs("span", { style: errorHeadStyle, children: [
98
99
  /* @__PURE__ */ jsx("span", { "aria-hidden": "true", "data-basalt-status-dot": "", style: dotStyle }),
99
- "Could not load",
100
- props.noun === void 0 ? "" : ` ${props.noun}`
100
+ couldNotLoad(props.noun)
101
101
  ] }),
102
102
  /* @__PURE__ */ jsx("span", { style: errorMessageStyle, children: label }),
103
103
  kind === "error" && props.onRetry !== void 0 && /* @__PURE__ */ jsx(RetryButton, { onClick: props.onRetry, retrying: props.retrying ?? false }),
@@ -72,4 +72,15 @@ export declare const SUBPATH_REQUIRED_PEERS: Readonly<Record<string, readonly st
72
72
  * missing one still builds, then throws "Could not resolve" when the chunk loads.
73
73
  */
74
74
  export declare function subpathPeersCheck(cwd: string, scanned: string[], install: BasaltInstall): Check;
75
+ /** Emitted `tokens:css` / `fonts:css` sheets from another version; the header names the re-emit command. */
76
+ export declare function staleEmittedSheets(cwd: string, files: readonly string[], installedVersion: string | null): string[];
77
+ /** `a` versus `b` as dotted numbers: negative when `a` is older. */
78
+ export declare function compareVersions(a: string, b: string): number;
79
+ /**
80
+ * The consumer-visible lines of every MIGRATING.md section with `from < version <= to` (`to`
81
+ * null: no upper bound), newest first as the file is ordered: lines naming a `basalt/*` rule id, a
82
+ * `--vx-*` token, `error` or `promoted`, plus the whole `Visible without code change` subsection.
83
+ * Fenced code and table separators are skipped; only long table rows are cut, never a bullet.
84
+ */
85
+ export declare function migratingSince(markdown: string, from: string, to: string | null): string[];
75
86
  //# sourceMappingURL=doctor-upgrade.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"doctor-upgrade.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-upgrade.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAkBrD,MAAM,M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PeersCheck(cwd, scanned, install) {
437
437
  };
438
438
  });
439
439
  }
440
+ function staleEmittedSheets(cwd, files, installedVersion2) {
441
+ if (installedVersion2 === null) return [];
442
+ const out = [];
443
+ for (const rel of files) {
444
+ if (!rel.endsWith(".css")) continue;
445
+ const provenance = (readIfExists(resolve(cwd, rel)) ?? "").split("\n")[1]?.trim() ?? "";
446
+ const m = /^\/\* basalt-ui (\S+) — `(basalt-ui (?:tokens|fonts):css[^`]*)` \*\/$/.exec(
447
+ provenance
448
+ );
449
+ if (m === null || m[1] === installedVersion2) continue;
450
+ out.push(
451
+ `emitted-sheets: ${rel} was emitted by ${m[1]}, installed is ${installedVersion2} \u2014 \`--check\` fails until it is re-emitted. Fix: \`${m[2]}\``
452
+ );
453
+ }
454
+ return out;
455
+ }
456
+ function compareVersions(a, b) {
457
+ const y = b.split(".").map(Number);
458
+ return a.split(".").map((n, i) => Number(n) - (y[i] ?? 0)).find((d) => d !== 0) ?? 0;
459
+ }
460
+ const VISIBLE_HEADING = /^#{2,4}\s+Visible without code change/i;
461
+ const CONSUMER_VISIBLE = /basalt\/[a-z][\w-]*|--vx-[\w-]+|\berror\b|\bpromoted?\b/i;
462
+ function migratingSince(markdown, from, to) {
463
+ const out = [];
464
+ let version = null;
465
+ let visible = false;
466
+ let fenced = false;
467
+ for (const line of markdown.split("\n")) {
468
+ const h2 = /^## (\d+\.\d+\.\d+)\b(.*)$/.exec(line);
469
+ if (h2 !== null || line.startsWith("## ")) {
470
+ const v = h2?.[1] ?? null;
471
+ version = v !== null && compareVersions(v, from) > 0 && (to === null || compareVersions(v, to) <= 0) ? v : null;
472
+ visible = false;
473
+ fenced = false;
474
+ if (version !== null) out.push(`
475
+ ## ${version}${h2?.[2] ?? ""}`);
476
+ continue;
477
+ }
478
+ if (version === null) continue;
479
+ if (line.startsWith("```")) fenced = !fenced;
480
+ if (fenced || line.startsWith("```")) continue;
481
+ if (/^#{3,4}\s/.test(line)) visible = VISIBLE_HEADING.test(line);
482
+ const trimmed = line.trim();
483
+ if (trimmed === "" || /^\|[-\s|:]+\|$/.test(trimmed)) continue;
484
+ if (!visible && !CONSUMER_VISIBLE.test(line)) continue;
485
+ out.push(
486
+ trimmed.startsWith("|") && trimmed.length > 240 ? `${trimmed.slice(0, 240)}\u2026` : trimmed
487
+ );
488
+ }
489
+ return out;
490
+ }
440
491
  export {
441
492
  ROUTER_PLUGIN_FIX,
442
493
  SUBPATH_REQUIRED_PEERS,
443
494
  appWiringCheck,
495
+ compareVersions,
444
496
  droppedSubpathsCheck,
445
497
  exactPeersCheck,
498
+ migratingSince,
446
499
  oxlintFloorCheck,
447
500
  retiredLintRulesCheck,
448
501
  seedTsconfigExtends,
449
502
  shellDeclarationFindings,
503
+ staleEmittedSheets,
450
504
  startWiringWarnings,
451
505
  subpathPeersCheck,
452
506
  tsconfigBaseCheck,
@@ -1 +1 @@
1
- {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AA4BzD,MAAM,MAAM,YAAY,GAAG;IACzB,+CAA+C;IAC/C,YAAY,EAAE,MAAM,CAAA;IACpB,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AA2BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,MAAM,CACpB,aAAa,GAAE,MAAsB,EACrC,KAAK,GAAE,MAAM,EAAO,EACpB,UAAU,GAAE,gBAAqB,GAChC,MAAM,CAkUR"}
1
+ {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AA+BzD,MAAM,MAAM,YAAY,GAAG;IACzB,+CAA+C;IAC/C,YAAY,EAAE,MAAM,CAAA;IACpB,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAqDD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,MAAM,CACpB,aAAa,GAAE,MAAsB,EACrC,KAAK,GAAE,MAAM,EAAO,EACpB,UAAU,GAAE,gBAAqB,GAChC,MAAM,CAyUR"}
@@ -34,8 +34,11 @@ import {
34
34
  appWiringCheck,
35
35
  shellDeclarationFindings,
36
36
  startWiringWarnings,
37
+ compareVersions,
37
38
  droppedSubpathsCheck,
38
39
  exactPeersCheck,
40
+ migratingSince,
41
+ staleEmittedSheets,
39
42
  oxlintFloorCheck,
40
43
  retiredLintRulesCheck,
41
44
  subpathPeersCheck,
@@ -66,8 +69,36 @@ function aiMajorsAt(dir) {
66
69
  }
67
70
  return out;
68
71
  }
72
+ function doctorFrom(invocationCwd, from) {
73
+ if (from === void 0 || !/^\d+\.\d+\.\d+$/.test(from)) {
74
+ console.error("basalt-ui doctor --from <x.y.z>: the version you are upgrading from.");
75
+ return 1;
76
+ }
77
+ const install = findBasaltInstall(resolveProjectDir(invocationCwd).dir);
78
+ const markdown = install.dir === null ? null : readIfExists(resolve(install.dir, "MIGRATING.md"));
79
+ if (markdown === null) {
80
+ console.error("basalt-ui doctor --from: no installed basalt-ui. Fix: `bun add basalt-ui`.");
81
+ return 1;
82
+ }
83
+ if (install.version !== null && compareVersions(from, install.version) > 0) {
84
+ console.error(`basalt-ui doctor --from ${from}: newer than the installed ${install.version}.`);
85
+ return 1;
86
+ }
87
+ const lines = migratingSince(markdown, from, install.version);
88
+ const span = `after ${from} up to ${install.version ?? "the install"}`;
89
+ console.log(
90
+ lines.length === 0 ? `No consumer-visible changes recorded ${span}.` : `Consumer-visible changes ${span} (full text: MIGRATING.md):
91
+ ${lines.join("\n")}`
92
+ );
93
+ return 0;
94
+ }
69
95
  function doctor(invocationCwd = process.cwd(), flags = [], designLoop = {}) {
70
96
  if (conflictingProfileFlags("doctor", flags)) return 1;
97
+ const fromAt = flags.findIndex((f) => f === "--from" || f.startsWith("--from="));
98
+ if (fromAt !== -1) {
99
+ const flag = flags[fromAt];
100
+ return doctorFrom(invocationCwd, flag.startsWith("--from=") ? flag.slice(7) : flags[fromAt + 1]);
101
+ }
71
102
  const project = resolveProjectDir(invocationCwd);
72
103
  const aboveRoot = project.relocatedFrom === null ? installRootAbove(project.dir) : null;
73
104
  const insideApp = aboveRoot !== null;
@@ -295,6 +326,7 @@ basalt-ui doctor \u2014 ${cwd}
295
326
  if (shell.fail !== null) fail(shell.fail);
296
327
  for (const line of shell.warnings) warn(line);
297
328
  }
329
+ for (const line of staleEmittedSheets(cwd, scannableFiles(cwd, cfg), install.version)) warn(line);
298
330
  if (profile !== "tokens-only") lines.push(...designLoopLines(cwd, resolveRoots(cfg), designLoop));
299
331
  lines.push("");
300
332
  if (result.hardFailures === 0 && result.warnings === 0 && result.skipped === 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/cli/help.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,eAAe,EAAE,MAAM,CAClC,MAAM,EACN,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CA6CnE,CAAA;AAED;yCACyC;AACzC,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAWhF;AAED,0GAA0G;AAC1G,eAAO,MAAM,KAAK,QAmE0E,CAAA"}
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/cli/help.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,eAAe,EAAE,MAAM,CAClC,MAAM,EACN,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAkDnE,CAAA;AAED;yCACyC;AACzC,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAWhF;AAED,0GAA0G;AAC1G,eAAO,MAAM,KAAK,QAwE0E,CAAA"}
package/dist/cli/help.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { parseArgs } from "node:util";
2
2
  const COMMAND_OPTIONS = {
3
3
  init: {
4
- "no-merge-lint": { type: "boolean" }
4
+ "no-merge-lint": { type: "boolean" },
5
+ "no-install": { type: "boolean" }
5
6
  },
6
7
  sync: {
7
8
  force: { type: "boolean" },
@@ -15,7 +16,11 @@ const COMMAND_OPTIONS = {
15
16
  "tokens-only": { type: "boolean" },
16
17
  framework: { type: "boolean" }
17
18
  },
18
- doctor: { "tokens-only": { type: "boolean" }, framework: { type: "boolean" } },
19
+ doctor: {
20
+ "tokens-only": { type: "boolean" },
21
+ framework: { type: "boolean" },
22
+ from: { type: "string" }
23
+ },
19
24
  "guard-hook": {},
20
25
  "tokens:css": {
21
26
  out: { type: "string" },
@@ -56,7 +61,7 @@ function unknownFlag(cmd, flags) {
56
61
  return match?.[1] ?? flags.find((f) => f.startsWith("-")) ?? flags[0] ?? null;
57
62
  }
58
63
  }
59
- const USAGE = 'Usage: basalt-ui <--version | init [--no-merge-lint] |\n sync [--force] [--check] [--verbose] [--tokens-only|--framework] |\n check-theme [--audit-allows] |\n doctor [--tokens-only|--framework] | guard-hook | tokens:css | fonts:css |\n shot <route\u2026> | shot detect | help>\n\ncheck-theme [--tokens-only|--framework] [--audit-allows]\n --audit-allows reports instead of scanning: every `theme-allow` annotation and every\n `basalt.exemptRules` entry, with what each one still suppresses \u2014 proved by re-running the\n guard with that one waiver neutralized, not by reading its text. Exits 1 on a waiver that\n suppresses nothing (dead), which is what makes it usable as a CI gate.\n\ntokens:css [--out <path>] [--check] [--selector-attribute <attr> | --selector-class <class>]\n [--light-class <class>] [--dark-value <v>] [--light-value <v>]\n [--default-scheme <dark|light|none>] [--media-fallback] [--only <core|all>]\n Emit the --vx-* stylesheet (stdout unless --out). Defaults emit the stock identity; commit the output as your tokens file.\n --selector-class emits `:root.dark` instead of an attribute selector (the Tailwind convention).\n --check writes nothing and exits 1 when --out differs from what would be emitted (a CI gate).\n\nfonts:css [--out <path>] [--check]\n Emit the shipped --basalt-font-* stacks as plain CSS \u2014 the typeface half of the token layer,\n otherwise reachable only by importing styles.css.\n\nshot <route\u2026> (--base <url> | --dist <dir>) [--out <dir>] [--states <list>]\n Render routes in Chromium (Playwright from YOUR project: bun add -d playwright) and write\n board.html, metrics.json and png/* \u2014 every data-shot anchor \xD7 light/dark \xD7 desktop/mobile \xD7\n rest, hover, focus, tooltip, empty, loading, error. --dist serves a built SPA dir itself.\n Default --out .basalt/shots (emptied each run); .basalt/shots/last.json names the last out dir.\n A real, signed-in app: [--local-storage <key>=<@env:NAME|@file:path>]\u2026 seeds localStorage (app origin\n only) before any page script; [--api <prefix>=<origin>]\u2026 (with --dist) proxies GET/HEAD under that\n prefix to the origin (other methods get 405 unless --api-allow-writes); [--header <name>=@env:NAME]\u2026 is\n added to every proxied request, to EVERY --api origin (never on a navigation; https required);\n [--wait <ms|networkidle>] adds ms of settle AFTER networkidle (default none); [--auto-anchors] crops\n each Card, Paper and table over 120\xD760 px on a page with no data-shot. Values are never printed or\n written; a redirect, 401/403/404, 5xx or dead API fails every shot of that page. Shots of real data go to the\n reviewer subagent and so to its model provider: point --api at staging or synthetic data when the\n app holds other people\'s data. Example:\n basalt-ui shot /overview --dist dist --api /api=https://app.example.com \\\n --local-storage auth-token=@env:APP_TOKEN --header authorization=@env:APP_BEARER --auto-anchors\n\nshot detect [--out <dir>] [--lint <oxlint-json-file>]\n The deterministic second review pass, no browser and no model: reads <out>/metrics.json (default: the\n out dir in .basalt/shots/last.json) and, with --lint, the basalt/* diagnostics of `oxlint --format json`\n output saved to a file. Writes <out>/detect.json and a findings table, content, then layout, then style:\n off-scale inset/gap/radius, nested radius step under 3 px, more than 3 font sizes, an empty region of\n 40 % or more, contrast failures, error shots, a missing scale or no anchors.\n Exit codes: 0 clean (P2/P3 findings are listed, not failing), 2 a P0 or P1 finding, 1 scan failure (missing\n or unreadable metrics.json or lint file, or detect.json/history.json cannot be written).\n P0 fails: broken, unreadable or a contrast failure; an error shot; no anchors\n P1 fails: a rubric item fails (off-scale value, font sizes, empty region, nested radius, lint error)\n P2 noted, not failing: degraded: a lint warning, a contrast measured on an assumed white backdrop\n P3 noted, not failing: polish: an off-scale value within 1 px of a step\n score = 100 - (25 per P0 + 10 per P1 + 3 per P2 + 1 per P3), floored at 0. Each run appends\n {at, out, commit, counts, score} to .basalt/shots/history.json and prints the last 5 scores as a trend.\n A component can declare a rest anchor absent in a URL state with data-shot-absent="empty error": that\n cell is recorded `absent`, not `error`.\n\ndoctor [--tokens-only|--framework]\n Checks THIS project only: the manifest exists, the oxlint preset is wired, the pre-commit\n hook runs check-theme (via `lefthook dump`), and the ai package major is consistent within\n this package.json. Profile is DECLARED, same as check-theme \u2014 never inferred.\n\nsync [--force] [--check] [--verbose] [--tokens-only|--framework]\n Refreshes an EXISTING install; it never creates one (that is init). A tokens-only consumer\n has no scaffold to reconcile, so sync reports n/a and exits 0 there \u2014 as doctor does.\n --check prints the permanent placement skips as a COUNT; --verbose spells them out again.\n\ncheck-theme / doctor / sync all resolve their project the same way: BASALT_CWD, else the\ninvocation cwd \u2014 nothing inferred, nothing ascended or descended into.\n--tokens-only and --framework are alternatives; passing both is an error.\n\nEvery subcommand accepts --help / -h to print this message and exit without running.\n--version / -v prints the resolved package version and exits 0 \u2014 the one command that proves\nWHICH basalt-ui ran, which a `bunx` cache can otherwise make a lie. An unknown command or an\nunrecognized flag exits 1 and names what it did not understand; neither is ever ignored.';
64
+ const USAGE = 'Usage: basalt-ui <--version | init [--no-merge-lint] [--no-install] |\n sync [--force] [--check] [--verbose] [--tokens-only|--framework] |\n check-theme [--audit-allows] |\n doctor [--tokens-only|--framework|--from <x.y.z>] | guard-hook | tokens:css | fonts:css |\n shot <route\u2026> | shot detect | help>\n\ncheck-theme [--tokens-only|--framework] [--audit-allows]\n --audit-allows reports instead of scanning: every `theme-allow` annotation and every\n `basalt.exemptRules` entry, with what each one still suppresses \u2014 proved by re-running the\n guard with that one waiver neutralized, not by reading its text. Exits 1 on a waiver that\n suppresses nothing (dead), which is what makes it usable as a CI gate.\n\ntokens:css [--out <path>] [--check] [--selector-attribute <attr> | --selector-class <class>]\n [--light-class <class>] [--dark-value <v>] [--light-value <v>]\n [--default-scheme <dark|light|none>] [--media-fallback] [--only <core|all>]\n Emit the --vx-* stylesheet (stdout unless --out). Defaults emit the stock identity; commit the output as your tokens file.\n --selector-class emits `:root.dark` instead of an attribute selector (the Tailwind convention).\n --check writes nothing and exits 1 when --out differs from what would be emitted (a CI gate).\n\nfonts:css [--out <path>] [--check]\n Emit the shipped --basalt-font-* stacks as plain CSS \u2014 the typeface half of the token layer,\n otherwise reachable only by importing styles.css.\n\nshot <route\u2026> (--base <url> | --dist <dir>) [--out <dir>] [--states <list>]\n Render routes in Chromium (Playwright from YOUR project: bun add -d playwright) and write\n board.html, metrics.json and png/* \u2014 every data-shot anchor \xD7 light/dark \xD7 desktop/mobile \xD7\n rest, hover, focus, tooltip, empty, loading, error. --dist serves a built SPA dir itself.\n --out must resolve inside the project (the app dir in a monorepo, not the repo root); routes are\n separate arguments (zsh does not word-split $ROUTES).\n Default --out .basalt/shots (emptied each run); .basalt/shots/last.json names the last out dir.\n A real, signed-in app: [--local-storage <key>=<@env:NAME|@file:path>]\u2026 seeds localStorage (app origin\n only) before any page script; [--api <prefix>=<origin>]\u2026 (with --dist) proxies GET/HEAD under that\n prefix to the origin (other methods get 405 unless --api-allow-writes); [--header <name>=@env:NAME]\u2026 is\n added to every proxied request, to EVERY --api origin (never on a navigation; https required);\n [--wait <ms|networkidle>] adds ms of settle AFTER networkidle (default none); [--auto-anchors] crops\n each Card, Paper and table over 120\xD760 px (else main, section, header, form) on a page with no data-shot. Values are never printed or\n written; a redirect, 401/403/404, 5xx or dead API fails every shot of that page. Shots of real data go to the\n reviewer subagent and so to its model provider: point --api at staging or synthetic data when the\n app holds other people\'s data. Example:\n basalt-ui shot /overview --dist dist --api /api=https://app.example.com \\\n --local-storage auth-token=@env:APP_TOKEN --header authorization=@env:APP_BEARER --auto-anchors\n\nshot detect [--out <dir>] [--lint <oxlint-json-file>]\n The deterministic second review pass, no browser and no model: reads <out>/metrics.json (default: the\n out dir in .basalt/shots/last.json) and, with --lint, the basalt/* diagnostics of `oxlint --format json`\n output saved to a file. Writes <out>/detect.json and a findings table, content, then layout, then style:\n off-scale inset/gap/radius, nested radius step under 3 px, more than 3 font sizes, an empty region of\n 40 % or more, contrast failures, error shots, a missing scale or no anchors.\n Exit codes: 0 clean (P2/P3 findings are listed, not failing), 2 a P0 or P1 finding, 1 scan failure (missing\n or unreadable metrics.json or lint file, or detect.json/history.json cannot be written).\n P0 fails: broken, unreadable or a contrast failure; an error shot; no anchors\n P1 fails: a rubric item fails (off-scale value, font sizes, empty region, nested radius, lint error)\n P2 noted, not failing: degraded: a lint warning, a contrast measured on an assumed white backdrop\n P3 noted, not failing: polish: an off-scale value within 1 px of a step\n score = 100 - (25 per P0 + 10 per P1 + 3 per P2 + 1 per P3), floored at 0. Each run appends\n {at, out, commit, counts, score} to .basalt/shots/history.json and prints the last 5 scores of THAT --out dir as a trend\n with the finding count beside each (the score floors at 0). No anchor measured: "nothing measured", no score.\n detect takes --out <dir>, never a positional.\n A component can declare a rest anchor absent in a URL state with data-shot-absent="empty error": that\n cell is recorded `absent`, not `error`.\n\ndoctor [--tokens-only|--framework] [--from <x.y.z>]\n doctor --from <x.y.z> print the consumer-visible MIGRATING changes since that version\n Checks THIS project only: the manifest exists, the oxlint preset is wired, the pre-commit\n hook runs check-theme (via `lefthook dump`), and the ai package major is consistent within\n this package.json. Profile is DECLARED, same as check-theme \u2014 never inferred.\n\nsync [--force] [--check] [--verbose] [--tokens-only|--framework]\n Refreshes an EXISTING install; it never creates one (that is init). A tokens-only consumer\n has no scaffold to reconcile, so sync reports n/a and exits 0 there \u2014 as doctor does.\n --check prints the permanent placement skips as a COUNT; --verbose spells them out again.\n\ncheck-theme / doctor / sync all resolve their project the same way: BASALT_CWD, else the\ninvocation cwd \u2014 nothing inferred, nothing ascended or descended into.\n--tokens-only and --framework are alternatives; passing both is an error.\n\nEvery subcommand accepts --help / -h to print this message and exit without running.\n--version / -v prints the resolved package version and exits 0 \u2014 the one command that proves\nWHICH basalt-ui ran, which a `bunx` cache can otherwise make a lie. An unknown command or an\nunrecognized flag exits 1 and names what it did not understand; neither is ever ignored.';
60
65
  export {
61
66
  COMMAND_OPTIONS,
62
67
  USAGE,
@@ -163,6 +163,8 @@ export declare function readFrameworkVersion(pkgRoot: string): string;
163
163
  * cached package, so it lets a consumer pin one version and be gated by another).
164
164
  */
165
165
  export declare function basaltBinCommand(install: BasaltInstall, cwd: string): string;
166
+ /** Every basalt-written `oxlint .` carries it: config ignores don't stop oxlint loading a worktree's nested config (1.87). */
167
+ export declare const OXLINT_IGNORE_FLAG = "--ignore-pattern '.claude/worktrees/**'";
166
168
  /**
167
169
  * The consumer owns the CI gate when its Makefile has a `check:` target: `doctor` and `sync --check`
168
170
  * stay as steps of their own (drift is never skippable), then `make check` replaces the built-in
@@ -200,6 +202,8 @@ export type ScaffoldFlags = {
200
202
  noMergeLint?: boolean;
201
203
  /** Shipped-source root; defaults to this package. Tests point it at a scratch package. */
202
204
  pkgRoot?: string;
205
+ /** Runs a command in the app dir for `init` (install, first vite build); true on exit 0. Absent: `init` runs nothing and prints the command. */
206
+ run?: (argv: string[], cwd: string) => boolean;
203
207
  };
204
208
  export { ROUTER_SEED_DESTS, START_PROVIDER_HINT, routerSeedDest, routerSeedDests };
205
209
  export declare const START_APP_NOTE = "TanStack Start app \u2014 no main.tsx/nav.tsx/__root.tsx seeded (Start owns the router); render <BasaltProvider><Outlet /></BasaltProvider> in the root route component or a pathless layout.";
@@ -265,14 +269,13 @@ export declare function resolvePlacement(cwd: string): PlacementFlags;
265
269
  /** The full managed-file manifest. Stable, declarative — the single source of truth for init/sync. */
266
270
  export declare function managedFiles(placement?: PlacementFlags, pkgRoot?: string): ManagedFile[];
267
271
  /**
268
- * The PERMANENT placement skips as sentences — one text for `init` and `sync`, which carried two
269
- * near-copies that had already drifted apart. Correct and unchanging, which is why `sync --check`
270
- * hides them behind `--verbose`. `extends` alone is NOT the recipe for the hook, and saying only
271
- * that shipped a broken one: lefthook merges the preset's commands but runs every one at the REPO
272
- * ROOT, with no oxlint config, no local binary and no basalt config. `root:` moves the invocation
273
- * cwd per command and merges (the preset does not define it) — see the preset's MONOREPO RECIPE.
272
+ * The placement skips as sentences — one text for `init` and `sync`. `extends` alone is NOT the
273
+ * recipe for the hook: lefthook runs every merged command at the REPO ROOT, where there is no oxlint
274
+ * config, binary or basalt config. `root:` moves the cwd per command (the preset's MONOREPO RECIPE).
274
275
  */
275
276
  export declare function placementNotices(cwd: string, placement: PlacementFlags): string[];
277
+ /** The two repo-root templates vs the repo root's own files, read-only: 'in sync' | 'drifted' | 'absent'. */
278
+ export declare function rootToolingStates(cwd: string, p: PlacementFlags, ctx: RenderContext): string[];
276
279
  export type Manifest = {
277
280
  version: 1;
278
281
  /** The basalt-ui version that last wrote this manifest — `doctor`'s one reconciliation axis. */
@@ -442,13 +445,10 @@ export declare function inspectLefthookGate(repoRoot: string): LefthookGate;
442
445
  */
443
446
  export declare function mergeOxlintExtends(cwd: string, presetPath: string): MergeLintResult;
444
447
  /**
445
- * Which shape of consumer a project-scoped command is looking at.
446
- *
447
- * `framework` — the Mantine app the scaffold is for. `tokens-only` — a consumer that took the
448
- * `--vx-*` layer and nothing else (rollhook: no Mantine, no manifest, `tokens:css` output). Telling
449
- * the second to "run `basalt-ui init`" is the wrong instruction: init scaffolds Mantine rules,
450
- * skills and a DESIGN.md it will never read. DECLARED only (`--framework` / `--tokens-only`, or
451
- * `"basalt": { "profile": "tokens-only" }`) — never inferred; see {@link declaredProfile}.
448
+ * Which shape of consumer a command is looking at: `framework` (the Mantine app the scaffold is
449
+ * for) or `tokens-only` (took the `--vx-*` layer and nothing else, so `init` is the wrong advice).
450
+ * DECLARED only (`--framework` / `--tokens-only` / `basalt.profile`), never inferred; see
451
+ * {@link declaredProfile}.
452
452
  */
453
453
  export type DoctorProfile = 'framework' | 'tokens-only';
454
454
  /** Narrows to a string array — shared by `collectWorkspacePackages`'s two `workspaces` shapes. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,WAAW,EAA4B,MAAM,UAAU,CAAA;AACrE,OAAO,EAAe,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAEL,iBAAiB,EAEjB,mBAAmB,EACnB,cAAc,EACd,eAAe,EAEhB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,YAAY,EAAE,aAAa,EAAE,CAAA;AAE7B,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AA+B5C,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,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,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,uBAAuB,EAAE,SAAS,EAAE,CAAA;AAClG,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACzC,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA"}
package/dist/cli/index.js CHANGED
@@ -250,11 +250,12 @@ function basaltBinCommand(install, cwd) {
250
250
  const binDir = resolve(install.dir, "..", ".bin");
251
251
  return `${relativePosix(cwd, binDir).replace(/^\.\//, "")}/basalt-ui`;
252
252
  }
253
+ const OXLINT_IGNORE_FLAG = "--ignore-pattern '.claude/worktrees/**'";
253
254
  function ciGateSteps(cwd) {
254
255
  const owned = /^check\s*:/m.test(readIfExists(resolve(cwd, "Makefile")) ?? "");
255
256
  const drift = ["- run: '{{BASALT_BIN}} doctor'", "- run: '{{BASALT_BIN}} sync --check'"];
256
257
  const steps = owned ? [...drift, "- run: make check"] : [
257
- "- run: bunx oxlint .",
258
+ `- run: bunx oxlint ${OXLINT_IGNORE_FLAG} .`,
258
259
  drift[0],
259
260
  "- run: '{{BASALT_BIN}} check-theme'",
260
261
  drift[1],
@@ -362,6 +363,7 @@ function isAgentsImportLine(line) {
362
363
  function importsAgentsMd(text) {
363
364
  return text.split(/\r?\n/).some(isAgentsImportLine);
364
365
  }
366
+ const RUN_TIMEOUT_MS = 5 * 6e4;
365
367
  const START_APP_NOTE = `TanStack Start app \u2014 no main.tsx/nav.tsx/__root.tsx seeded (Start owns the router); ${START_PROVIDER_HINT}.`;
366
368
  function routerSeedPlan(cwd, appRel, tokensOnly = false) {
367
369
  const detected = tokensOnly ? null : routerSeedSkip(cwd, appRel);
@@ -591,6 +593,24 @@ function placementNotices(cwd, placement) {
591
593
  }
592
594
  return out;
593
595
  }
596
+ function rootToolingStates(cwd, p, ctx) {
597
+ if (p.isPackageRepoRoot) return [];
598
+ const pkg = relativePosix(p.repoRoot, cwd).replace(/^\.\//, "");
599
+ const preset = shippedAssetPath(findBasaltInstall(cwd), p.repoRoot, "configs/lefthook.yml");
600
+ const ci = fillTemplate(readSource(ctx.pkgRoot, "configs/check.yml") ?? "", ctx.vars);
601
+ const steps = ci.split("\n").map((l) => l.trim()).filter((l) => l.startsWith("- run:"));
602
+ const state = (file, ok) => {
603
+ const text = readIfExists(resolve(p.repoRoot, file));
604
+ return text === null ? "absent" : ok(text) ? "in sync" : "drifted";
605
+ };
606
+ return [
607
+ state(
608
+ "lefthook.yml",
609
+ (t) => t.includes(preset.replace(/^\.\//, "")) && t.split(`root: '${pkg}/'`).length > 3
610
+ ),
611
+ state(".github/workflows/check.yml", (t) => steps.every((l) => t.includes(l)))
612
+ ];
613
+ }
594
614
  function readManifest(cwd) {
595
615
  const raw = readIfExists(resolve(cwd, MANIFEST_PATH));
596
616
  if (raw === null) return { version: 1, files: {} };
@@ -961,7 +981,19 @@ function run(argv, cwd = process.cwd()) {
961
981
  switch (cmd) {
962
982
  case "init":
963
983
  return init(cwd, {
964
- noMergeLint: flags.includes("--no-merge-lint")
984
+ noMergeLint: flags.includes("--no-merge-lint"),
985
+ // `--no-install` leaves `run` out: init writes the files and prints the commands (CI, offline).
986
+ ...flags.includes("--no-install") ? {} : {
987
+ run: (argv2, dir) => (
988
+ // A timeout kills the child and leaves `status` null, which reads as failure; `shell` resolves `bun.cmd`/`npx.cmd` on Windows.
989
+ spawnSync(argv2[0] ?? "", argv2.slice(1), {
990
+ cwd: dir,
991
+ stdio: "inherit",
992
+ timeout: RUN_TIMEOUT_MS,
993
+ shell: process.platform === "win32"
994
+ }).status === 0
995
+ )
996
+ }
965
997
  });
966
998
  case "sync":
967
999
  return sync(
@@ -996,6 +1028,7 @@ export {
996
1028
  LEGACY_BLOCK_HOST,
997
1029
  MANIFEST_PATH,
998
1030
  OXLINT_FILES,
1031
+ OXLINT_IGNORE_FLAG,
999
1032
  OXLINT_NO_BIN,
1000
1033
  ROOT_PLACEMENT,
1001
1034
  ROUTER_SEED_DESTS,
@@ -1054,6 +1087,7 @@ export {
1054
1087
  resolvePlacement,
1055
1088
  resolveProjectDir,
1056
1089
  retiredManagedDests,
1090
+ rootToolingStates,
1057
1091
  rootsNotices,
1058
1092
  routerSeedDest,
1059
1093
  routerSeedDests,
@@ -1,6 +1,12 @@
1
1
  import type { ScaffoldFlags } from './index.js';
2
2
  /** Whether `text` is create-vite's react-ts `main.tsx`, untouched (formatting aside): never an edited file. */
3
3
  export declare const isStockViteMain: (text: string) => boolean;
4
+ /**
5
+ * `@tanstack/router-plugin` is not released in lockstep with `@tanstack/react-router` (npm, 2026-10-23:
6
+ * plugin 1.168.48 latest against router 1.170.46), so no peer range fits; 1.168.40 is the version the
7
+ * playground runs and it exists on the registry.
8
+ */
9
+ export declare const ROUTER_PLUGIN_RANGE = "^1.168.40";
4
10
  /** Scaffold all managed files into the consumer repo, then write the manifest. Idempotent. Returns 0. */
5
11
  export declare function init(cwd?: string, scaffoldFlags?: ScaffoldFlags): number;
6
12
  //# sourceMappingURL=init.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAmB,aAAa,EAAE,MAAM,SAAS,CAAA;AA8E7D,+GAA+G;AAC/G,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,OAAgD,CAAA;AAgD/F,yGAAyG;AACzG,wBAAgB,IAAI,CAAC,GAAG,GAAE,MAAsB,EAAE,aAAa,GAAE,aAAkB,GAAG,MAAM,CA2O3F"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAmB,aAAa,EAAE,MAAM,SAAS,CAAA;AAsF7D,+GAA+G;AAC/G,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,OAAgD,CAAA;AAwC/F;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,cAAc,CAAA;AA6F9C,yGAAyG;AACzG,wBAAgB,IAAI,CAAC,GAAG,GAAE,MAAsB,EAAE,aAAa,GAAE,aAAkB,GAAG,MAAM,CAkQ3F"}