basalt-ui 2.7.3 → 2.8.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/CHANGELOG.md +194 -172
- package/MIGRATING.md +137 -16
- package/agent/rules/basalt-batteries.md +1 -1
- package/agent/rules/basalt-controls.md +1 -1
- package/agent/rules/basalt-mantine.md +1 -1
- package/agent/skills/basalt-app/SKILL.md +7 -7
- package/agent/templates/AGENTS-block.md.tpl +1 -1
- package/dist/charts/BandStrip.d.ts +13 -0
- package/dist/charts/BandStrip.d.ts.map +1 -1
- package/dist/charts/BandStrip.js +142 -44
- package/dist/cli/doctor-upgrade.d.ts +16 -4
- package/dist/cli/doctor-upgrade.d.ts.map +1 -1
- package/dist/cli/doctor-upgrade.js +132 -96
- package/dist/cli/doctor.d.ts +2 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +21 -13
- package/dist/cli/help.js +1 -1
- package/dist/cli/index.d.ts +18 -4
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +25 -24
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +10 -4
- package/dist/cli/router-wiring.d.ts +37 -0
- package/dist/cli/router-wiring.d.ts.map +1 -0
- package/dist/cli/router-wiring.js +116 -0
- package/dist/cli/source-text.d.ts +12 -0
- package/dist/cli/source-text.d.ts.map +1 -0
- package/dist/cli/source-text.js +46 -0
- package/dist/cli/sync.d.ts.map +1 -1
- package/dist/cli/sync.js +32 -2
- package/dist/content/code-block.d.ts.map +1 -1
- package/dist/content/code-block.js +36 -27
- package/dist/content/code-block.module.css +19 -1
- package/dist/content/mermaid-sanitize.d.ts +15 -0
- package/dist/content/mermaid-sanitize.d.ts.map +1 -0
- package/dist/content/mermaid-sanitize.js +28 -0
- package/dist/content/mermaid.d.ts +6 -0
- package/dist/content/mermaid.d.ts.map +1 -1
- package/dist/content/mermaid.js +3 -1
- package/dist/provider/index.d.ts +22 -4
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.js +24 -8
- package/dist/provider/test-router.d.ts +2 -1
- package/dist/provider/test-router.d.ts.map +1 -1
- package/dist/provider/test-router.js +6 -7
- package/dist/vite-boot.d.ts +25 -0
- package/dist/vite-boot.d.ts.map +1 -0
- package/dist/vite-boot.js +36 -0
- package/dist/vite.d.ts +24 -3
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +7 -16
- package/llms.txt +37 -4
- package/package.json +1 -1
- package/src/charts/BandStrip.tsx +223 -48
- package/src/cli/doctor-upgrade.ts +181 -141
- package/src/cli/doctor.ts +23 -14
- package/src/cli/help.ts +1 -1
- package/src/cli/index.ts +37 -36
- package/src/cli/init.ts +10 -6
- package/src/cli/router-wiring.ts +185 -0
- package/src/cli/source-text.ts +62 -0
- package/src/cli/sync.ts +36 -2
- package/src/content/code-block.module.css +19 -1
- package/src/content/code-block.tsx +7 -2
- package/src/content/mermaid-sanitize.ts +49 -0
- package/src/content/mermaid.tsx +3 -2
- package/src/provider/index.tsx +71 -18
- package/src/provider/test-router.tsx +9 -9
- package/src/vite-boot.ts +109 -0
- package/src/vite.ts +32 -61
|
@@ -13,6 +13,11 @@ export declare function tsconfigBaseCheck(cwd: string): Check;
|
|
|
13
13
|
export declare function retiredLintRulesCheck(cwd: string, install: BasaltInstall): Check;
|
|
14
14
|
/** `dropped-subpaths`: `basalt-ui/<subpath>` imports the installed `exports` map does not have. */
|
|
15
15
|
export declare function droppedSubpathsCheck(cwd: string, cfg: BasaltConfig, install: BasaltInstall): Check;
|
|
16
|
+
/**
|
|
17
|
+
* `oxlint-floor`: fails when the nearest installed oxlint is older than {@link OXLINT_FLOOR}, which
|
|
18
|
+
* cannot parse the preset. Reads `cwd`, as `oxlint-preset` does; a missing oxlint is that check's job.
|
|
19
|
+
*/
|
|
20
|
+
export declare function oxlintFloorCheck(cwd: string): Check;
|
|
16
21
|
/**
|
|
17
22
|
* `init`'s tsconfig step: make the tsconfig that covers `src` (`tsconfig.json`, or the reference that
|
|
18
23
|
* includes `src` in a stock Vite app) extend the preset, by inserting the key textually (the file is
|
|
@@ -20,12 +25,19 @@ export declare function droppedSubpathsCheck(cwd: string, cfg: BasaltConfig, ins
|
|
|
20
25
|
* needs saying.
|
|
21
26
|
*/
|
|
22
27
|
export declare function seedTsconfigExtends(cwd: string): string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Warnings for a Start app's embedded provider; heuristics, not proofs. A `{...spread}` on the tag
|
|
30
|
+
* could carry a `router`; `src/router.tsx` never mentioning `queryClient` means the embedded
|
|
31
|
+
* provider will find no `context.queryClient`. Empty when there is nothing to judge.
|
|
32
|
+
*/
|
|
33
|
+
export declare function startWiringWarnings(cwd: string): string[];
|
|
23
34
|
/**
|
|
24
35
|
* `app-wiring`: the entry module `index.html` loads (default src/main.tsx) mounts `BasaltProvider`
|
|
25
|
-
* on a `createBasaltRouter` router (called in the entry or a module it imports), and the router tree
|
|
26
|
-
* binding imported from `@tanstack/router-plugin`
|
|
27
|
-
* beside the entry (or in src/)
|
|
28
|
-
*
|
|
36
|
+
* on a `createBasaltRouter` router (called in the entry or a module it imports), and the router tree
|
|
37
|
+
* exists: the vite config calls a binding imported from `@tanstack/router-plugin` (after its
|
|
38
|
+
* `plugins` key), a `routeTree.gen.*` sits beside the entry (or in src/), or the app is code-routed
|
|
39
|
+
* (`isCodeRoutedApp`, the same predicate `init` and `sync` use). `basaltViteConfig` does not
|
|
40
|
+
* register the plugin, so naming it proves nothing.
|
|
29
41
|
*/
|
|
30
42
|
export declare function appWiringCheck(cwd: string): Check;
|
|
31
43
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor-upgrade.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-upgrade.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":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gB1E;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAQ9E,CAAA;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,GAAG,KAAK,CAsB/F"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { writeFileSync } from "node:fs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { dirname, relative, resolve } from "node:path";
|
|
4
4
|
import { BASALT_CONFIG_KEYS, RETIRED_CONFIG_KEYS } from "./config.js";
|
|
5
|
-
import { parseJsonc,
|
|
5
|
+
import { parseJsonc, routerSeedDest, scannableFiles } from "./index.js";
|
|
6
|
+
import {
|
|
7
|
+
appEntry,
|
|
8
|
+
hasRouteTree,
|
|
9
|
+
hasRouter,
|
|
10
|
+
isCodeRoutedApp,
|
|
11
|
+
isStartApp,
|
|
12
|
+
routeTreeDirs
|
|
13
|
+
} from "./router-wiring.js";
|
|
14
|
+
import { readIfExists, readPackageJson, tokenize } from "./source-text.js";
|
|
6
15
|
const guarded = (id, run) => {
|
|
7
16
|
try {
|
|
8
17
|
return run();
|
|
@@ -126,32 +135,41 @@ function retiredLintRulesCheck(cwd, install) {
|
|
|
126
135
|
};
|
|
127
136
|
});
|
|
128
137
|
}
|
|
129
|
-
const TOKEN = /("(?:\\.|[^"\\\n])*"|'(?:\\.|[^'\\\n])*'|`(?:\\.|[^`\\])*`)|\/\/[^\n]*|\/\*[\s\S]*?\*\//g;
|
|
130
138
|
const SUBPATH_IMPORT = /(?:(?:^|;)[ \t]*(?:(?:import|export)\b[^'"`;]*?\bfrom|import)\s*|(?<![.\w$])(?:import|require)\s*\(\s*)(['"])basalt-ui\/([^'"]+)\1/gm;
|
|
131
|
-
function tokenize(src) {
|
|
132
|
-
const literals = [];
|
|
133
|
-
const code = src.replace(TOKEN, (m, literal, at) => {
|
|
134
|
-
if (literal === void 0) return m.replace(/[^\n]/g, " ");
|
|
135
|
-
if (!literal.startsWith("`")) {
|
|
136
|
-
literals.push([at, at + m.length]);
|
|
137
|
-
return m;
|
|
138
|
-
}
|
|
139
|
-
return m.replace(
|
|
140
|
-
/(\$\{[^}]*\})|[^\n`]/g,
|
|
141
|
-
(c, interpolation) => interpolation ?? " "
|
|
142
|
-
);
|
|
143
|
-
});
|
|
144
|
-
return { code, inLiteral: (at) => literals.some(([from, to]) => at >= from && at < to) };
|
|
145
|
-
}
|
|
146
139
|
function basaltImports(src) {
|
|
147
140
|
const { code, inLiteral } = tokenize(src);
|
|
148
141
|
return [...code.matchAll(SUBPATH_IMPORT)].filter((m) => !inLiteral(m.index)).map((m) => [m[2], code.slice(0, m.index + m[0].length).split("\n").length]);
|
|
149
142
|
}
|
|
150
|
-
const
|
|
151
|
-
|
|
143
|
+
const CSS_SUBPATH_IMPORT = /(?:^|[;{}])\s*@import\s+(?:url\(\s*)?(['"]?)basalt-ui\/([^'")\s;]+)\1/g;
|
|
144
|
+
function cssImports(src) {
|
|
145
|
+
const blank = (m) => m.replace(/[^\n]/g, " ");
|
|
146
|
+
const code = src.replace(/\/\*[\s\S]*?\*\//g, blank).replace(
|
|
147
|
+
/(@import\s+|url\(\s*)?(["'])(?:\\.|(?!\2)[^\\\n])*\2/g,
|
|
148
|
+
(m, target) => target === void 0 ? blank(m) : m
|
|
149
|
+
);
|
|
150
|
+
return [...code.matchAll(CSS_SUBPATH_IMPORT)].map((m) => [
|
|
151
|
+
m[2],
|
|
152
|
+
code.slice(0, m.index + m[0].length).split("\n").length
|
|
153
|
+
]);
|
|
154
|
+
}
|
|
155
|
+
const appImports = (cwd, cfg) => scannableFiles(cwd, cfg).flatMap((rel) => {
|
|
156
|
+
const isCode = /\.(?:[cm]?[jt]sx?|vue|astro)$/.test(rel);
|
|
157
|
+
if (!isCode && !rel.endsWith(".css")) return [];
|
|
158
|
+
const src = readIfExists(resolve(cwd, rel)) ?? "";
|
|
159
|
+
return (isCode ? basaltImports(src) : cssImports(src)).map(
|
|
152
160
|
([sub, line]) => [sub, rel, line]
|
|
153
|
-
)
|
|
154
|
-
);
|
|
161
|
+
);
|
|
162
|
+
});
|
|
163
|
+
const DROPPED_FIXES = /* @__PURE__ */ new Map([
|
|
164
|
+
[
|
|
165
|
+
"tokens.css",
|
|
166
|
+
"commit the emit instead: `basalt-ui tokens:css --out src/tokens.css` and import that file"
|
|
167
|
+
],
|
|
168
|
+
[
|
|
169
|
+
"router-tanstack",
|
|
170
|
+
"nav symbols (`defineNav`, `navTarget`, \u2026) now import from `basalt-ui`, stores (`createSearchStore`, `field`, \u2026) from `basalt-ui/state`"
|
|
171
|
+
]
|
|
172
|
+
]);
|
|
155
173
|
function droppedSubpathsCheck(cwd, cfg, install) {
|
|
156
174
|
const id = "dropped-subpaths";
|
|
157
175
|
return withInstall(id, install, "exports", (dir) => {
|
|
@@ -160,14 +178,40 @@ function droppedSubpathsCheck(cwd, cfg, install) {
|
|
|
160
178
|
const exportsMap = pkg.exports;
|
|
161
179
|
if (exportsMap === void 0) return null;
|
|
162
180
|
const keys = Object.keys(exportsMap);
|
|
163
|
-
const
|
|
181
|
+
const hasExport = (sub) => keys.some(
|
|
164
182
|
(k) => k === `./${sub}` || k.endsWith("*") && `./${sub}`.startsWith(k.slice(0, -1))
|
|
165
183
|
);
|
|
166
|
-
const
|
|
167
|
-
|
|
184
|
+
const isDropped = (sub) => DROPPED_FIXES.has(sub) || !hasExport(sub);
|
|
185
|
+
const found = appImports(cwd, cfg).filter(([sub]) => isDropped(sub));
|
|
186
|
+
if (found.length === 0) return null;
|
|
187
|
+
const hits = found.map(([sub, rel, line]) => `${rel}:${line} imports basalt-ui/${sub}`);
|
|
168
188
|
const more = hits.length > 10 ? ` (+${hits.length - 10} more)` : "";
|
|
189
|
+
const fixes = [...new Set(found.map(([sub]) => sub))].flatMap((sub) => {
|
|
190
|
+
const fix = DROPPED_FIXES.get(sub);
|
|
191
|
+
return fix === void 0 ? [] : [`basalt-ui/${sub}: ${fix}`];
|
|
192
|
+
});
|
|
193
|
+
fixes.push("see MIGRATING.md \xA7 2.0 for each subpath's replacement");
|
|
194
|
+
return { fail: `${id}: ${hits.slice(0, 10).join("; ")}${more}. Fix: ${fixes.join("; ")}.` };
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
const OXLINT_FLOOR = "1.79.0";
|
|
198
|
+
const SEMVER = /^(\d+)\.(\d+)\.(\d+)(-[^+]+)?(?:\+.*)?$/;
|
|
199
|
+
function isBelowFloor(version, floor) {
|
|
200
|
+
const [v, f] = [SEMVER.exec(version), SEMVER.exec(floor)];
|
|
201
|
+
if (v === null || f === null) return false;
|
|
202
|
+
for (const i of [1, 2, 3]) {
|
|
203
|
+
if (Number(v[i]) !== Number(f[i])) return Number(v[i]) < Number(f[i]);
|
|
204
|
+
}
|
|
205
|
+
return v[4] !== void 0;
|
|
206
|
+
}
|
|
207
|
+
function oxlintFloorCheck(cwd) {
|
|
208
|
+
const id = "oxlint-floor";
|
|
209
|
+
return guarded(id, () => {
|
|
210
|
+
if (readIfExists(resolve(cwd, ".oxlintrc.json")) === null) return null;
|
|
211
|
+
const version = installedVersion(cwd, "oxlint");
|
|
212
|
+
if (version === null || !isBelowFloor(version, OXLINT_FLOOR)) return null;
|
|
169
213
|
return {
|
|
170
|
-
fail: `${id}: ${
|
|
214
|
+
fail: `${id}: oxlint ${version} is installed, but the shipped preset needs >= ${OXLINT_FLOOR} (older versions reject its react/* rules). Fix: \`bun add -D oxlint@^${OXLINT_FLOOR}\`.`
|
|
171
215
|
};
|
|
172
216
|
});
|
|
173
217
|
}
|
|
@@ -201,95 +245,85 @@ function seedTsconfigExtends(cwd) {
|
|
|
201
245
|
writeFileSync(target, `${text.slice(0, at)}${key}${text.slice(at)}`);
|
|
202
246
|
return `added "extends": "${TSCONFIG_PRESET_ID}" to ${name}.`;
|
|
203
247
|
}
|
|
204
|
-
const VITE_CONFIGS = ["ts", "mts", "cts", "js", "mjs", "cjs"].map((e) => `vite.config.${e}`);
|
|
205
248
|
const SEED_HINT = "node_modules/basalt-ui/agent/templates/main.tpl";
|
|
206
|
-
const ROUTER_PLUGIN_FIX = "Fix: `bun add -D @tanstack/router-plugin`, add `tanstackRouter({ target: 'react', autoCodeSplitting: true })` from '@tanstack/router-plugin/vite' to `plugins` in vite.config.ts (before react()), then run vite once to generate src/routeTree.gen.ts.";
|
|
207
|
-
function
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
return src;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return void 0;
|
|
249
|
+
const ROUTER_PLUGIN_FIX = "Fix: `bun add -D @tanstack/router-plugin`, add `tanstackRouter({ target: 'react', autoCodeSplitting: true })` from '@tanstack/router-plugin/vite' to `plugins` in vite.config.ts (before react()), then run vite once to generate src/routeTree.gen.ts \u2014 or define the tree in code (`createRootRoute` + `createRoute`), drop the routeTree.gen import and pass the tree to createBasaltRouter.";
|
|
250
|
+
function isSpreadAt(code, i) {
|
|
251
|
+
const spread = /\{\s*\.\.\./y;
|
|
252
|
+
spread.lastIndex = i;
|
|
253
|
+
return spread.test(code);
|
|
215
254
|
}
|
|
216
|
-
function
|
|
255
|
+
function providerTags(src) {
|
|
217
256
|
const { code, inLiteral } = tokenize(src);
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
(
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
].some((call) => call.index > pluginsAt && !inLiteral(call.index))
|
|
232
|
-
);
|
|
257
|
+
return [...code.matchAll(/<BasaltProvider\b/g)].filter((m) => !inLiteral(m.index)).map((m) => {
|
|
258
|
+
const tag = { attrs: "", spread: false };
|
|
259
|
+
let depth = 0;
|
|
260
|
+
for (let i = m.index + m[0].length; i < code.length; i++) {
|
|
261
|
+
const ch = code[i];
|
|
262
|
+
if (inLiteral(i)) continue;
|
|
263
|
+
if (ch === "{") {
|
|
264
|
+
if (depth++ === 0 && isSpreadAt(code, i)) tag.spread = true;
|
|
265
|
+
} else if (ch === "}") depth--;
|
|
266
|
+
else if (ch === ">" && depth === 0) break;
|
|
267
|
+
else if (depth === 0) tag.attrs += ch;
|
|
268
|
+
}
|
|
269
|
+
return tag;
|
|
233
270
|
});
|
|
234
271
|
}
|
|
235
|
-
const
|
|
236
|
-
function
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
272
|
+
const carriesRouter = (tag) => /(^|\s)router\s*=/.test(tag.attrs);
|
|
273
|
+
function startWiring(cwd) {
|
|
274
|
+
const root = routerSeedDest("", "root");
|
|
275
|
+
const text = readIfExists(resolve(cwd, root));
|
|
276
|
+
const tags = providerTags(text ?? "");
|
|
277
|
+
const mounting = tags.some(carriesRouter);
|
|
278
|
+
if (!mounting && tags.length > 0) return null;
|
|
279
|
+
const problem = text === null ? "does not exist" : mounting ? "passes router= to BasaltProvider, which mounts a second router inside Start" : "does not render <BasaltProvider>";
|
|
280
|
+
return {
|
|
281
|
+
fail: `app-wiring: ${root} ${problem} (TanStack Start app). Fix: render <BasaltProvider><Outlet /></BasaltProvider> in the root route component.`
|
|
282
|
+
};
|
|
245
283
|
}
|
|
246
|
-
function
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
if (called) return true;
|
|
261
|
-
next.push(dep);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
frontier = next;
|
|
284
|
+
function startWiringWarnings(cwd) {
|
|
285
|
+
if (!isStartApp(cwd, "")) return [];
|
|
286
|
+
const out = [];
|
|
287
|
+
const root = readIfExists(resolve(cwd, routerSeedDest("", "root")));
|
|
288
|
+
if (root !== null && providerTags(root).some((t) => t.spread)) {
|
|
289
|
+
out.push(
|
|
290
|
+
"app-wiring: <BasaltProvider {...spread}> in the root route could pass router=, which mounts a second router inside Start (heuristic: the spread is not followed)."
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
const router = readIfExists(resolve(cwd, "src/router.tsx"));
|
|
294
|
+
if (router !== null && !/queryClient/.test(router)) {
|
|
295
|
+
out.push(
|
|
296
|
+
"app-wiring: src/router.tsx never mentions queryClient \u2014 embedded BasaltProvider needs context.queryClient on the Start router (heuristic text check; ignore if you build it elsewhere)."
|
|
297
|
+
);
|
|
265
298
|
}
|
|
266
|
-
return
|
|
299
|
+
return out;
|
|
267
300
|
}
|
|
268
301
|
function appWiringCheck(cwd) {
|
|
269
302
|
return guarded("app-wiring", () => {
|
|
270
|
-
|
|
303
|
+
if (isStartApp(cwd, "")) return startWiring(cwd);
|
|
304
|
+
const entry = appEntry(cwd);
|
|
271
305
|
const text = readIfExists(resolve(cwd, entry));
|
|
272
306
|
if (text === null) {
|
|
273
307
|
return { fail: `app-wiring: ${entry} does not exist. Fix: make it match ${SEED_HINT}.` };
|
|
274
308
|
}
|
|
275
|
-
const
|
|
276
|
-
const
|
|
277
|
-
const
|
|
278
|
-
|
|
279
|
-
|
|
309
|
+
const tokens = tokenize(text);
|
|
310
|
+
const { code, inLiteral } = tokens;
|
|
311
|
+
const wired = [
|
|
312
|
+
[
|
|
313
|
+
"BasaltProvider",
|
|
314
|
+
[...code.matchAll(/\bBasaltProvider\b/g)].some((m) => !inLiteral(m.index))
|
|
315
|
+
],
|
|
316
|
+
["createBasaltRouter", hasRouter(cwd, entry, tokens)]
|
|
317
|
+
];
|
|
318
|
+
const missing = wired.filter(([, present]) => !present).map(([name]) => name);
|
|
280
319
|
if (missing.length > 0) {
|
|
281
320
|
return {
|
|
282
321
|
fail: `app-wiring: ${entry} does not use ${missing.join(" or ")}. Fix: make it match ${SEED_HINT} (\`init\` seeds it only when the file is absent).`
|
|
283
322
|
};
|
|
284
323
|
}
|
|
285
|
-
|
|
286
|
-
const dirs = [.../* @__PURE__ */ new Set([dirname(entry), "src"])];
|
|
287
|
-
const generated = dirs.some(
|
|
288
|
-
(d) => ["ts", "tsx", "js"].some((e) => existsSync(resolve(cwd, d, `routeTree.gen.${e}`)))
|
|
289
|
-
);
|
|
290
|
-
if (generated || registersRouterPlugin(vite)) return null;
|
|
324
|
+
if (hasRouteTree(cwd, entry) || isCodeRoutedApp(cwd, "")) return null;
|
|
291
325
|
return {
|
|
292
|
-
fail: `app-wiring: no vite.config calls the TanStack router plugin and ${
|
|
326
|
+
fail: `app-wiring: the entry imports a generated route tree but no vite.config calls the TanStack router plugin and ${routeTreeDirs(entry).join(" or ")}/routeTree.gen.ts does not exist. ${ROUTER_PLUGIN_FIX}`
|
|
293
327
|
};
|
|
294
328
|
});
|
|
295
329
|
}
|
|
@@ -315,7 +349,7 @@ const EXACT_VERSION = /^\d+\.\d+\.\d+$/;
|
|
|
315
349
|
function installedVersion(cwd, pkg) {
|
|
316
350
|
for (let dir = cwd; ; dir = dirname(dir)) {
|
|
317
351
|
const manifest = readPackageJson(resolve(dir, "node_modules", pkg));
|
|
318
|
-
if (manifest !== null) return manifest.version
|
|
352
|
+
if (manifest !== null) return typeof manifest.version === "string" ? manifest.version : null;
|
|
319
353
|
if (dirname(dir) === dir) return null;
|
|
320
354
|
}
|
|
321
355
|
}
|
|
@@ -367,8 +401,10 @@ export {
|
|
|
367
401
|
appWiringCheck,
|
|
368
402
|
droppedSubpathsCheck,
|
|
369
403
|
exactPeersCheck,
|
|
404
|
+
oxlintFloorCheck,
|
|
370
405
|
retiredLintRulesCheck,
|
|
371
406
|
seedTsconfigExtends,
|
|
407
|
+
startWiringWarnings,
|
|
372
408
|
subpathPeersCheck,
|
|
373
409
|
tsconfigBaseCheck,
|
|
374
410
|
tsconfigFile,
|
package/dist/cli/doctor.d.ts
CHANGED
|
@@ -23,7 +23,8 @@ export type DoctorResult = {
|
|
|
23
23
|
* 7. `ai-major-parity`: the `ai` major agrees across this package.json's dependency fields
|
|
24
24
|
* (exempt via `basalt.aiMajorSkewReason`; a stale reason warns).
|
|
25
25
|
* 8-14. `tsconfig-base`, `retired-lint-rules`, `dropped-subpaths`, `app-wiring`, `exact-peers`,
|
|
26
|
-
* `subpath-peers`, `config-keys` (./doctor-upgrade
|
|
26
|
+
* `subpath-peers`, `config-keys` (./doctor-upgrade; a tokens-only consumer runs only
|
|
27
|
+
* `dropped-subpaths` of these — it imports CSS subpaths, where `tokens.css` was);
|
|
27
28
|
* a check that cannot run is SKIPPED and exits non-zero.
|
|
28
29
|
*
|
|
29
30
|
* Warning (non-fatal):
|
package/dist/cli/doctor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AA4DA,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,CAAC,aAAa,GAAE,MAAsB,EAAE,KAAK,GAAE,MAAM,EAAO,GAAG,MAAM,CAwU1F"}
|
package/dist/cli/doctor.js
CHANGED
|
@@ -31,8 +31,10 @@ import {
|
|
|
31
31
|
import { resolveRoots } from "./config.js";
|
|
32
32
|
import {
|
|
33
33
|
appWiringCheck,
|
|
34
|
+
startWiringWarnings,
|
|
34
35
|
droppedSubpathsCheck,
|
|
35
36
|
exactPeersCheck,
|
|
37
|
+
oxlintFloorCheck,
|
|
36
38
|
retiredLintRulesCheck,
|
|
37
39
|
subpathPeersCheck,
|
|
38
40
|
tsconfigBaseCheck,
|
|
@@ -253,23 +255,33 @@ basalt-ui doctor \u2014 ${cwd}
|
|
|
253
255
|
} else {
|
|
254
256
|
pass("ai-major-parity: this package.json declares no ai dependency \u2014 nothing to compare");
|
|
255
257
|
}
|
|
258
|
+
const droppedCheck = [
|
|
259
|
+
"dropped-subpaths: no import of a basalt-ui subpath the install lacks",
|
|
260
|
+
droppedSubpathsCheck(appDir, cfg, install)
|
|
261
|
+
];
|
|
262
|
+
const runChecks = (checks) => {
|
|
263
|
+
for (const [ok, check] of checks) {
|
|
264
|
+
if (check === null) pass(ok);
|
|
265
|
+
else if ("fail" in check) fail(check.fail);
|
|
266
|
+
else skip(check.skip);
|
|
267
|
+
}
|
|
268
|
+
};
|
|
256
269
|
if (profile === "tokens-only") {
|
|
257
270
|
pass(
|
|
258
|
-
"tsconfig-base / retired-lint-rules /
|
|
271
|
+
"tsconfig-base / retired-lint-rules / oxlint-floor / app-wiring / exact-peers / subpath-peers / config-keys: n/a \u2014 a tokens-only consumer"
|
|
259
272
|
);
|
|
273
|
+
runChecks([droppedCheck]);
|
|
260
274
|
} else {
|
|
261
|
-
|
|
275
|
+
runChecks([
|
|
262
276
|
["tsconfig-base: tsconfig.json extends the shipped preset", tsconfigBaseCheck(appDir)],
|
|
263
277
|
[
|
|
264
278
|
"retired-lint-rules: .oxlintrc.json sets no retired basalt/* rule",
|
|
265
279
|
retiredLintRulesCheck(cwd, install)
|
|
266
280
|
],
|
|
281
|
+
droppedCheck,
|
|
282
|
+
["oxlint-floor: the installed oxlint parses the shipped preset", oxlintFloorCheck(cwd)],
|
|
267
283
|
[
|
|
268
|
-
"
|
|
269
|
-
droppedSubpathsCheck(appDir, cfg, install)
|
|
270
|
-
],
|
|
271
|
-
[
|
|
272
|
-
"app-wiring: the entry mounts BasaltProvider and the router tree is generated",
|
|
284
|
+
"app-wiring: the entry mounts BasaltProvider and the router tree exists",
|
|
273
285
|
appWiringCheck(appDir)
|
|
274
286
|
],
|
|
275
287
|
["exact-peers: installed exact-pinned peers match basalt-ui", exactPeersCheck(cwd, install)],
|
|
@@ -281,12 +293,8 @@ basalt-ui doctor \u2014 ${cwd}
|
|
|
281
293
|
"config-keys: the basalt config block sets only keys basalt-ui reads",
|
|
282
294
|
unknownConfigKeysCheck(cwd)
|
|
283
295
|
]
|
|
284
|
-
];
|
|
285
|
-
for (const
|
|
286
|
-
if (check === null) pass(ok);
|
|
287
|
-
else if ("fail" in check) fail(check.fail);
|
|
288
|
-
else skip(check.skip);
|
|
289
|
-
}
|
|
296
|
+
]);
|
|
297
|
+
for (const line of startWiringWarnings(appDir)) warn(line);
|
|
290
298
|
}
|
|
291
299
|
lines.push("");
|
|
292
300
|
if (result.hardFailures === 0 && result.warnings === 0 && result.skipped === 0) {
|
package/dist/cli/help.js
CHANGED
|
@@ -44,7 +44,7 @@ function unknownFlag(cmd, flags) {
|
|
|
44
44
|
return match?.[1] ?? flags.find((f) => f.startsWith("-")) ?? flags[0] ?? null;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
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 | 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 [--no-legacy-aliases]\n Emit the --vx-* stylesheet (stdout unless --out). Defaults
|
|
47
|
+
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 | 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 [--no-legacy-aliases]\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 --no-legacy-aliases drops the deprecated camelCase spellings (--vx-accentFill and friends),\n which are emitted by default as aliases of the canonical kebab-case names.\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\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.";
|
|
48
48
|
export {
|
|
49
49
|
COMMAND_OPTIONS,
|
|
50
50
|
USAGE,
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { doctor } from './doctor.js';
|
|
|
5
5
|
import { guardHook } from './guard-hook.js';
|
|
6
6
|
import { init } from './init.js';
|
|
7
7
|
import { sync } from './sync.js';
|
|
8
|
+
import type { RouterSeedSkip } from './router-wiring.js';
|
|
8
9
|
import { fontsCss, normalizeColorFunctions, tokensCss } from './tokens-css.js';
|
|
9
10
|
import type { BasaltConfig } from './config.js';
|
|
10
11
|
export declare function resolveGuardConfig(cfg: BasaltConfig, profile: DoctorProfile): GuardConfig;
|
|
@@ -161,9 +162,6 @@ export declare const AGENTS_MD = "AGENTS.md";
|
|
|
161
162
|
/** A `CLAUDE.md` shadows {@link AGENTS_MD} unless it imports it — `doctor` warns on one. */
|
|
162
163
|
export declare const LEGACY_BLOCK_HOST = "CLAUDE.md";
|
|
163
164
|
export declare function sha256(text: string): string;
|
|
164
|
-
export declare function readIfExists(abs: string): string | null;
|
|
165
|
-
/** `<dir>/package.json` parsed as `T`; null when absent or not JSON. */
|
|
166
|
-
export declare function readPackageJson<T>(dir: string): T | null;
|
|
167
165
|
/** Read a shipped source asset from the package root; null if the sibling hasn't authored it yet. */
|
|
168
166
|
export declare function readSource(pkgRoot: string, source: string): string | null;
|
|
169
167
|
/** The framework's own published version, read from the package root package.json. */
|
|
@@ -211,6 +209,19 @@ export declare const ROUTER_SEED_DESTS: {
|
|
|
211
209
|
};
|
|
212
210
|
/** A router seed's dest, relative to the install root: under the app dir when it is not the root. */
|
|
213
211
|
export declare function routerSeedDest(appRel: string, seed: keyof typeof ROUTER_SEED_DESTS): string;
|
|
212
|
+
/** The router seeds' dests for an app dir (`main.tsx`, `nav.tsx`, `__root.tsx`). */
|
|
213
|
+
export declare function routerSeedDests(appRel: string): string[];
|
|
214
|
+
export declare const START_APP_NOTE: string;
|
|
215
|
+
/**
|
|
216
|
+
* The router seeds an app does not get, for `init` and `sync`: why (`start` | `code-routed` | null)
|
|
217
|
+
* and which dests. A tokens-only consumer gets none of them either.
|
|
218
|
+
*/
|
|
219
|
+
export declare function routerSeedPlan(cwd: string, appRel: string, tokensOnly?: boolean): {
|
|
220
|
+
skip: RouterSeedSkip;
|
|
221
|
+
skipped: Set<string>;
|
|
222
|
+
};
|
|
223
|
+
/** The note `init` prints for a router-seed skip, or null when nothing was skipped. */
|
|
224
|
+
export declare function seedSkipNote(skip: RouterSeedSkip): string | null;
|
|
214
225
|
/** The app directory a command's app-scoped half targets: `rel` is '' when it is the install root. */
|
|
215
226
|
export type AppResolution = {
|
|
216
227
|
dir: string;
|
|
@@ -343,7 +354,8 @@ export declare function writeUnit(file: ManagedFile, cwd: string, desired: strin
|
|
|
343
354
|
* - missing : absent on disk → recreate.
|
|
344
355
|
* - current : on disk == desired → nothing to do.
|
|
345
356
|
* - unchanged: on disk matches a KNOWN-SHIPPED rendering (raw manifest hash, normalized manifest
|
|
346
|
-
* hash, or
|
|
357
|
+
* hash, or — with or without a manifest entry — normalized == normalized desired,
|
|
358
|
+
* the format-only difference a formatter pass leaves) → safe overwrite.
|
|
347
359
|
* - drifted : matches none of them (a real local edit) → skip unless --force.
|
|
348
360
|
*/
|
|
349
361
|
export declare function classify(state: UnitState, manifestHash: string | undefined): Classification;
|
|
@@ -458,6 +470,8 @@ export declare function isStringArray(value: unknown): value is string[];
|
|
|
458
470
|
* The `guard-hook` subcommand is async (reads stdin); all others are synchronous.
|
|
459
471
|
*/
|
|
460
472
|
export declare function run(argv: string[], cwd?: string): number | Promise<number>;
|
|
473
|
+
export { isStartApp } from './router-wiring.js';
|
|
474
|
+
export { readIfExists, readPackageJson } from './source-text.js';
|
|
461
475
|
export { RULE_NAMES, SKILL_NAMES };
|
|
462
476
|
export type { ManagedFile };
|
|
463
477
|
export { checkTheme, doctor, guardHook, init, sync, fontsCss, normalizeColorFunctions, tokensCss };
|
package/dist/cli/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"
|
|
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;AACrD,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;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,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,YAAY,EAAE,OAAO,EAAE,aAAa,GAAG,WAAW,CAiBzF;AAwBD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,EAAE,CAEzD;AAED,eAAO,MAAM,IAAI,QAAyC,CAAA;AAC1D,mGAAmG;AACnG,eAAO,MAAM,qBAAqB,QAA6B,CAAA;AA8B/D;qGACqG;AACrG,wBAAgB,YAAY,CAAC,GAAG,EAA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