basalt-ui 2.0.4 → 2.1.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.
- package/CHANGELOG.md +19 -0
- package/MIGRATING.md +31 -16
- package/dist/agent/error.d.ts +16 -1
- package/dist/agent/error.d.ts.map +1 -1
- package/dist/agent/index.d.ts +1 -0
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +2 -0
- package/dist/cli/doctor-upgrade.d.ts +11 -0
- package/dist/cli/doctor-upgrade.d.ts.map +1 -1
- package/dist/cli/doctor-upgrade.js +59 -32
- package/dist/cli/doctor.d.ts +2 -2
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +19 -36
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +27 -55
- package/dist/content/highlighter.d.ts.map +1 -1
- package/dist/content/highlighter.js +14 -2
- package/dist/shell/app-main.module.css +5 -3
- package/dist/shell/app-sidebar.d.ts.map +1 -1
- package/dist/shell/app-sidebar.js +1 -1
- package/dist/table/data-table.module.css +4 -10
- package/llms.txt +2 -2
- package/package.json +1 -1
- package/src/agent/error.ts +16 -1
- package/src/agent/index.ts +1 -0
- package/src/cli/doctor-upgrade.ts +88 -37
- package/src/cli/doctor.ts +23 -45
- package/src/cli/index.ts +35 -66
- package/src/content/highlighter.ts +18 -2
- package/src/shell/app-main.module.css +5 -3
- package/src/shell/app-sidebar.tsx +3 -1
- package/src/table/data-table.module.css +4 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
# [2.1.0](https://github.com/jkrumm/basalt-ui/compare/v2.0.5...v2.1.0) (2026-10-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* reach folded nav groups from the collapsed rail ([9dc75b7](https://github.com/jkrumm/basalt-ui/commit/9dc75b70350aab4c58ebb2264710d8b71a03e707))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* export toAgentError from basalt-ui/agent ([8f23111](https://github.com/jkrumm/basalt-ui/commit/8f23111b7f4f9eb13c44df135138ff879da89f93))
|
|
12
|
+
|
|
13
|
+
## [2.0.5](https://github.com/jkrumm/basalt-ui/compare/v2.0.4...v2.0.5) (2026-10-14)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* fail loudly on a missing subpath peer ([74593b1](https://github.com/jkrumm/basalt-ui/commit/74593b10672e9f294032126598765029600ad937))
|
|
19
|
+
|
|
1
20
|
## [2.0.4](https://github.com/jkrumm/basalt-ui/compare/v2.0.3...v2.0.4) (2026-10-14)
|
|
2
21
|
|
|
3
22
|
|
package/MIGRATING.md
CHANGED
|
@@ -66,18 +66,18 @@ There is one row per SURFACE, not per export, and a surface earns a row once any
|
|
|
66
66
|
shipped lefthook preset both changed in 1.30.0 with no row that owned them — which is how a
|
|
67
67
|
consumer read this index, found nothing, and diffed a KPI row that had silently gone 4-up → 2-up.
|
|
68
68
|
|
|
69
|
-
| Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | Unreleased |
|
|
70
|
-
| ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- |
|
|
71
|
-
| **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
72
|
-
| **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
73
|
-
| **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
74
|
-
| **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
75
|
-
| **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
76
|
-
| **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
77
|
-
| **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
78
|
-
| **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
79
|
-
| **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — |
|
|
80
|
-
| **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
69
|
+
| Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.1.0 | Unreleased |
|
|
70
|
+
| ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
71
|
+
| **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
72
|
+
| **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
73
|
+
| **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
74
|
+
| **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
75
|
+
| **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
76
|
+
| **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
77
|
+
| **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
78
|
+
| **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
79
|
+
| **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — | — | — |
|
|
80
|
+
| **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
81
81
|
|
|
82
82
|
---
|
|
83
83
|
|
|
@@ -992,6 +992,25 @@ optional, subpath-required peers.
|
|
|
992
992
|
_Nothing yet. Author the next section under this heading as `## Unreleased — <title>`; the
|
|
993
993
|
release renames it and opens a new one here._
|
|
994
994
|
|
|
995
|
+
## 2.1.0 — the rail reaches folded groups, `toAgentError`
|
|
996
|
+
|
|
997
|
+
- `basalt-ui/agent` exports `toAgentError(error: unknown): AgentError`, the classifier
|
|
998
|
+
`useAgentThreadRuns` uses for `ThreadRunState.error`. A custom transport calls it instead of a
|
|
999
|
+
hand-rolled mapping; for a `Response`, pass `{ statusCode: response.status }`.
|
|
1000
|
+
- The collapsed rail now shows every row of a `collapsible` section, including one folded by
|
|
1001
|
+
`defaultCollapsed` or by the user. Its header is hidden in the rail, so a folded group (argo's
|
|
1002
|
+
"Other") used to strand its destinations and their count dots. Expanding the sidebar restores the
|
|
1003
|
+
stored fold. No API change.
|
|
1004
|
+
- `AppShell.Main`'s block padding is published as `--basalt-main-pad-block`; the data table's
|
|
1005
|
+
page-sticky offset reads it, replacing a duplicated `sm` media query. No consumer action.
|
|
1006
|
+
|
|
1007
|
+
## 2.0.5 — subpath peers
|
|
1008
|
+
|
|
1009
|
+
- `doctor` gains `subpath-peers`: when your source imports a basalt-ui subpath whose required peers
|
|
1010
|
+
are not installed (e.g. `shiki`, `@shikijs/langs`, `@shikijs/themes` for `basalt-ui/content`) it
|
|
1011
|
+
fails with the `bun add` line to run. Without them the build succeeded and the chunk threw
|
|
1012
|
+
"Could not resolve" at load. `CodeBlock` also warns once in dev when the highlighter cannot load.
|
|
1013
|
+
|
|
995
1014
|
## 2.0.4 — argo table and peer friction
|
|
996
1015
|
|
|
997
1016
|
- `BasaltDataTable` `stickyHeader` inside `BasaltShell` now pins flush under the app chrome. The
|
|
@@ -1003,10 +1022,6 @@ release renames it and opens a new one here._
|
|
|
1003
1022
|
smaller than its label — that is a column width, not a table default.
|
|
1004
1023
|
- The column-fold toggle column's header cell carries a visually hidden `Details` label instead of
|
|
1005
1024
|
an empty `aria-hidden` cell.
|
|
1006
|
-
- `doctor` gains `subpath-peers`: when your source imports a basalt-ui subpath whose required peers
|
|
1007
|
-
are not installed (e.g. `shiki`, `@shikijs/langs`, `@shikijs/themes` for `basalt-ui/content`) it
|
|
1008
|
-
fails with the `bun add` line to run. Without them the build succeeded and the chunk threw
|
|
1009
|
-
"Could not resolve" at load. `CodeBlock` also warns once in dev when the highlighter cannot load.
|
|
1010
1025
|
|
|
1011
1026
|
## 2.0.3 — argo shell and CI friction
|
|
1012
1027
|
|
package/dist/agent/error.d.ts
CHANGED
|
@@ -26,6 +26,21 @@ export type AgentError = {
|
|
|
26
26
|
} | {
|
|
27
27
|
readonly kind: 'aborted';
|
|
28
28
|
};
|
|
29
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Classifies whatever a chat transport threw or received into the closed `AgentError` union — the
|
|
31
|
+
* same mapping `useAgentThreadRuns` applies to `ThreadRunState.error`, so a custom transport can
|
|
32
|
+
* report failures identically.
|
|
33
|
+
*
|
|
34
|
+
* Input is any thrown value, matched by shape (never `instanceof`, so the optional `ai` peer is not
|
|
35
|
+
* loaded). First match wins:
|
|
36
|
+
* - `name === 'AbortError'` (an `Error` or a `DOMException`) → `{ kind: 'aborted' }`
|
|
37
|
+
* - numeric `statusCode` (AI SDK `APICallError`) → `{ kind: 'http', status }`
|
|
38
|
+
* - string `chunkType` and `chunkId` (AI SDK `UIMessageStreamError`) → `{ kind: 'stream', ... }`
|
|
39
|
+
* - anything else, including an `error` chunk's text, a plain object or a primitive →
|
|
40
|
+
* `{ kind: 'server', message }` with the value's `message` string, else `String(value)`.
|
|
41
|
+
*
|
|
42
|
+
* A `Response` is not classified: read its `status` and pass `{ statusCode: response.status }`.
|
|
43
|
+
* Never throws.
|
|
44
|
+
*/
|
|
30
45
|
export declare function toAgentError(error: unknown): AgentError;
|
|
31
46
|
//# sourceMappingURL=error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/agent/error.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAClB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACjF;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACrD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,CAAA;AAQhC
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/agent/error.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAClB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACjF;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACrD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,CAAA;AAQhC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAavD"}
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { aiSdkTransport } from './ai-sdk-transport.js';
|
|
|
14
14
|
export { useAgentThreadRuns } from './use-agent-thread-runs.js';
|
|
15
15
|
export type { ThreadRunState } from './use-agent-thread-runs.js';
|
|
16
16
|
export type { AgentError } from './error.js';
|
|
17
|
+
export { toAgentError } from './error.js';
|
|
17
18
|
export type { ChatMessage } from './history.js';
|
|
18
19
|
export type { AgentThread, ThreadStatus, ThreadsStore } from './thread.js';
|
|
19
20
|
export type { AgentOutcome, OutcomeResolver } from './outcome.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAGzF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC7D,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAGzF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC7D,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAGtC,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC9D,YAAY,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAG1E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACtD,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA"}
|
package/dist/agent/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { parseAgentPart } from "./parts.js";
|
|
2
2
|
import { aiSdkTransport } from "./ai-sdk-transport.js";
|
|
3
3
|
import { useAgentThreadRuns } from "./use-agent-thread-runs.js";
|
|
4
|
+
import { toAgentError } from "./error.js";
|
|
4
5
|
import { ThreadFeed } from "./chat/thread-feed.js";
|
|
5
6
|
import { ThreadFeedRow } from "./chat/thread-feed-row.js";
|
|
6
7
|
import { Composer } from "./chat/composer.js";
|
|
@@ -12,5 +13,6 @@ export {
|
|
|
12
13
|
ToolChip,
|
|
13
14
|
aiSdkTransport,
|
|
14
15
|
parseAgentPart,
|
|
16
|
+
toAgentError,
|
|
15
17
|
useAgentThreadRuns
|
|
16
18
|
};
|
|
@@ -40,4 +40,15 @@ export declare function unknownConfigKeysCheck(cwd: string): Check;
|
|
|
40
40
|
* that is not installed is not this check's business (optional peers are legitimately absent).
|
|
41
41
|
*/
|
|
42
42
|
export declare function exactPeersCheck(cwd: string, install: BasaltInstall): Check;
|
|
43
|
+
/**
|
|
44
|
+
* The peers a subpath needs installed: V2-SPEC § 1's subpath-required class plus `./content`'s
|
|
45
|
+
* shiki trio, which a bundler cannot resolve without them (argo friction row 15). The test pins it
|
|
46
|
+
* to `package.json` and `surfaces.ts`.
|
|
47
|
+
*/
|
|
48
|
+
export declare const SUBPATH_REQUIRED_PEERS: Readonly<Record<string, readonly string[]>>;
|
|
49
|
+
/**
|
|
50
|
+
* `subpath-peers`: every `basalt-ui/<subpath>` the app imports has its required peers installed. A
|
|
51
|
+
* missing one still builds, then throws "Could not resolve" when the chunk loads.
|
|
52
|
+
*/
|
|
53
|
+
export declare function subpathPeersCheck(cwd: string, cfg: BasaltConfig, install: BasaltInstall): Check;
|
|
43
54
|
//# 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":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM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ED;;;;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,8 @@
|
|
|
1
|
-
import { existsSync,
|
|
1
|
+
import { existsSync, 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, readIfExists, scannableFiles } from "./index.js";
|
|
5
|
+
import { parseJsonc, readIfExists, readPackageJson, scannableFiles } from "./index.js";
|
|
6
6
|
const guarded = (id, run) => {
|
|
7
7
|
try {
|
|
8
8
|
return run();
|
|
@@ -10,6 +10,10 @@ const guarded = (id, run) => {
|
|
|
10
10
|
return { skip: `${id}: cannot run (${error.message}).` };
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
+
const withInstall = (id, install, reads, run) => {
|
|
14
|
+
const { dir } = install;
|
|
15
|
+
return dir === null ? { skip: `${id}: basalt-ui does not resolve, so its ${reads} cannot be read.` } : guarded(id, () => run(dir));
|
|
16
|
+
};
|
|
13
17
|
const TSCONFIG_PRESET = /(?:^|\/)basalt-ui\/configs\/tsconfig\.(?:base|react-app)\.json$/;
|
|
14
18
|
const TSCONFIG_PRESET_ID = "basalt-ui/configs/tsconfig.react-app.json";
|
|
15
19
|
const TSCONFIG_FIX = `"extends": "${TSCONFIG_PRESET_ID}" (tsconfig.base.json for a package without a DOM)`;
|
|
@@ -104,10 +108,7 @@ function basaltRuleIds(file, seen = /* @__PURE__ */ new Set()) {
|
|
|
104
108
|
}
|
|
105
109
|
function retiredLintRulesCheck(cwd, install) {
|
|
106
110
|
const id = "retired-lint-rules";
|
|
107
|
-
|
|
108
|
-
if (dir === null)
|
|
109
|
-
return { skip: `${id}: basalt-ui does not resolve, so its plugin cannot be read.` };
|
|
110
|
-
return guarded(id, () => {
|
|
111
|
+
return withInstall(id, install, "plugin", (dir) => {
|
|
111
112
|
const ids = [...new Set(basaltRuleIds(resolve(cwd, ".oxlintrc.json")))];
|
|
112
113
|
if (ids.length === 0) return null;
|
|
113
114
|
const pluginPath = resolve(dir, "configs/oxlint-plugin.js");
|
|
@@ -146,26 +147,23 @@ function basaltImports(src) {
|
|
|
146
147
|
const { code, inLiteral } = tokenize(src);
|
|
147
148
|
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]);
|
|
148
149
|
}
|
|
150
|
+
const appImports = (cwd, cfg) => scannableFiles(cwd, cfg).filter((f) => /\.(?:[cm]?[jt]sx?|vue|astro)$/.test(f)).flatMap(
|
|
151
|
+
(rel) => basaltImports(readIfExists(resolve(cwd, rel)) ?? "").map(
|
|
152
|
+
([sub, line]) => [sub, rel, line]
|
|
153
|
+
)
|
|
154
|
+
);
|
|
149
155
|
function droppedSubpathsCheck(cwd, cfg, install) {
|
|
150
156
|
const id = "dropped-subpaths";
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
const keys = Object.keys(pkg.exports);
|
|
157
|
+
return withInstall(id, install, "exports", (dir) => {
|
|
158
|
+
const pkg = readPackageJson(dir);
|
|
159
|
+
if (pkg === null) throw new Error(`${dir}/package.json is unreadable`);
|
|
160
|
+
const exportsMap = pkg.exports;
|
|
161
|
+
if (exportsMap === void 0) return null;
|
|
162
|
+
const keys = Object.keys(exportsMap);
|
|
158
163
|
const has = (sub) => keys.some(
|
|
159
164
|
(k) => k === `./${sub}` || k.endsWith("*") && `./${sub}`.startsWith(k.slice(0, -1))
|
|
160
165
|
);
|
|
161
|
-
const hits = [];
|
|
162
|
-
for (const rel of scannableFiles(cwd, cfg).filter(
|
|
163
|
-
(f) => /\.(?:[cm]?[jt]sx?|vue|astro)$/.test(f)
|
|
164
|
-
)) {
|
|
165
|
-
for (const [sub, line] of basaltImports(readIfExists(resolve(cwd, rel)) ?? "")) {
|
|
166
|
-
if (!has(sub)) hits.push(`${rel}:${line} imports basalt-ui/${sub}`);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
166
|
+
const hits = appImports(cwd, cfg).filter(([sub]) => !has(sub)).map(([sub, rel, line]) => `${rel}:${line} imports basalt-ui/${sub}`);
|
|
169
167
|
if (hits.length === 0) return null;
|
|
170
168
|
const more = hits.length > 10 ? ` (+${hits.length - 10} more)` : "";
|
|
171
169
|
return {
|
|
@@ -297,8 +295,7 @@ function appWiringCheck(cwd) {
|
|
|
297
295
|
}
|
|
298
296
|
function unknownConfigKeysCheck(cwd) {
|
|
299
297
|
return guarded("config-keys", () => {
|
|
300
|
-
const
|
|
301
|
-
const block = raw === null ? null : JSON.parse(raw).basalt;
|
|
298
|
+
const block = readPackageJson(cwd)?.basalt;
|
|
302
299
|
if (typeof block !== "object" || block === null || Array.isArray(block)) return null;
|
|
303
300
|
const known = new Set(BASALT_CONFIG_KEYS);
|
|
304
301
|
const unknown = Object.keys(block).filter((k) => !known.has(k));
|
|
@@ -311,23 +308,21 @@ function unknownConfigKeysCheck(cwd) {
|
|
|
311
308
|
};
|
|
312
309
|
});
|
|
313
310
|
}
|
|
311
|
+
function peerRanges(dir) {
|
|
312
|
+
return readPackageJson(dir)?.peerDependencies ?? {};
|
|
313
|
+
}
|
|
314
314
|
const EXACT_VERSION = /^\d+\.\d+\.\d+$/;
|
|
315
315
|
function installedVersion(cwd, pkg) {
|
|
316
316
|
for (let dir = cwd; ; dir = dirname(dir)) {
|
|
317
|
-
const
|
|
318
|
-
if (
|
|
317
|
+
const manifest = readPackageJson(resolve(dir, "node_modules", pkg));
|
|
318
|
+
if (manifest !== null) return manifest.version ?? null;
|
|
319
319
|
if (dirname(dir) === dir) return null;
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
function exactPeersCheck(cwd, install) {
|
|
323
323
|
const id = "exact-peers";
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
const dir = install.dir;
|
|
327
|
-
return guarded(id, () => {
|
|
328
|
-
const raw = readIfExists(resolve(dir, "package.json"));
|
|
329
|
-
const peers = (raw === null ? {} : JSON.parse(raw).peerDependencies) ?? {};
|
|
330
|
-
const off = Object.entries(peers).filter(([, range]) => EXACT_VERSION.test(range)).flatMap(([pkg, pin]) => {
|
|
324
|
+
return withInstall(id, install, "peers", (dir) => {
|
|
325
|
+
const off = Object.entries(peerRanges(dir)).filter(([, range]) => EXACT_VERSION.test(range)).flatMap(([pkg, pin]) => {
|
|
331
326
|
const have = installedVersion(cwd, pkg);
|
|
332
327
|
return have === null || have === pin ? [] : [`${pkg}@${have} (basalt-ui pins ${pin}): \`bun add ${pkg}@${pin}\``];
|
|
333
328
|
});
|
|
@@ -337,12 +332,44 @@ function exactPeersCheck(cwd, install) {
|
|
|
337
332
|
};
|
|
338
333
|
});
|
|
339
334
|
}
|
|
335
|
+
const SUBPATH_REQUIRED_PEERS = {
|
|
336
|
+
agent: ["ai", "@ai-sdk/provider", "motion"],
|
|
337
|
+
charts: ["@tanstack/charts", "d3-scale"],
|
|
338
|
+
commands: ["@tanstack/react-hotkeys"],
|
|
339
|
+
content: ["react-markdown", "shiki", "@shikijs/langs", "@shikijs/themes"],
|
|
340
|
+
"controls-dates": ["@mantine/dates", "dayjs"],
|
|
341
|
+
forms: ["@mantine/form"],
|
|
342
|
+
table: ["@tanstack/react-table"]
|
|
343
|
+
};
|
|
344
|
+
function subpathPeersCheck(cwd, cfg, install) {
|
|
345
|
+
const id = "subpath-peers";
|
|
346
|
+
return withInstall(id, install, "peers", (dir) => {
|
|
347
|
+
const missing = /* @__PURE__ */ new Map();
|
|
348
|
+
for (const [sub, file] of new Map(
|
|
349
|
+
appImports(cwd, cfg).toReversed().map(([s, f]) => [s, f])
|
|
350
|
+
)) {
|
|
351
|
+
for (const peer of SUBPATH_REQUIRED_PEERS[sub] ?? []) {
|
|
352
|
+
if (installedVersion(cwd, peer) !== null) continue;
|
|
353
|
+
missing.set(peer, [...missing.get(peer) ?? [], `basalt-ui/${sub} (${file})`]);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
if (missing.size === 0) return null;
|
|
357
|
+
const ranges = peerRanges(dir);
|
|
358
|
+
const named = [...missing].map(([peer, by]) => `${peer} for ${by.join(", ")}`);
|
|
359
|
+
const add = [...missing.keys()].map((peer) => ranges[peer] ? `${peer}@${ranges[peer]}` : peer);
|
|
360
|
+
return {
|
|
361
|
+
fail: `${id}: peers a used basalt-ui subpath requires are not installed: ${named.join("; ")}. Fix: \`bun add ${add.join(" ")}\`.`
|
|
362
|
+
};
|
|
363
|
+
});
|
|
364
|
+
}
|
|
340
365
|
export {
|
|
366
|
+
SUBPATH_REQUIRED_PEERS,
|
|
341
367
|
appWiringCheck,
|
|
342
368
|
droppedSubpathsCheck,
|
|
343
369
|
exactPeersCheck,
|
|
344
370
|
retiredLintRulesCheck,
|
|
345
371
|
seedTsconfigExtends,
|
|
372
|
+
subpathPeersCheck,
|
|
346
373
|
tsconfigBaseCheck,
|
|
347
374
|
tsconfigFile,
|
|
348
375
|
unknownConfigKeysCheck
|
package/dist/cli/doctor.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export type DoctorResult = {
|
|
|
22
22
|
* 4. `oxlint-preset`: `.oxlintrc.json` extends the shipped preset AND that path resolves.
|
|
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
|
-
* 8-
|
|
26
|
-
* `config-keys` (./doctor-upgrade);
|
|
25
|
+
* 8-14. `tsconfig-base`, `retired-lint-rules`, `dropped-subpaths`, `app-wiring`, `exact-peers`,
|
|
26
|
+
* `subpath-peers`, `config-keys` (./doctor-upgrade);
|
|
27
27
|
* a check that cannot run is SKIPPED and exits non-zero.
|
|
28
28
|
*
|
|
29
29
|
* 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":"AA0DA,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;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,aAAa,GAAE,MAAsB,EAAE,KAAK,GAAE,MAAM,EAAO,GAAG,MAAM,CAkU1F"}
|
package/dist/cli/doctor.js
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
readBasaltConfig,
|
|
20
20
|
readIfExists,
|
|
21
21
|
readManifest,
|
|
22
|
+
readPackageJson,
|
|
22
23
|
resolveAppDir,
|
|
23
24
|
resolveProjectDir,
|
|
24
25
|
ROUTER_SEED_DESTS,
|
|
@@ -33,6 +34,7 @@ import {
|
|
|
33
34
|
droppedSubpathsCheck,
|
|
34
35
|
exactPeersCheck,
|
|
35
36
|
retiredLintRulesCheck,
|
|
37
|
+
subpathPeersCheck,
|
|
36
38
|
tsconfigBaseCheck,
|
|
37
39
|
unknownConfigKeysCheck
|
|
38
40
|
} from "./doctor-upgrade.js";
|
|
@@ -51,27 +53,13 @@ function majorOf(range) {
|
|
|
51
53
|
}
|
|
52
54
|
const AI_MAJOR_FIELDS = ["dependencies", "devDependencies", "peerDependencies"];
|
|
53
55
|
function aiMajorsAt(dir) {
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
for (const field of AI_MAJOR_FIELDS) {
|
|
60
|
-
const major = majorOf(pkg[field]?.["ai"]);
|
|
61
|
-
if (major !== null) out[field] = major;
|
|
62
|
-
}
|
|
63
|
-
return out;
|
|
64
|
-
} catch {
|
|
65
|
-
return {};
|
|
56
|
+
const pkg = readPackageJson(dir) ?? {};
|
|
57
|
+
const out = {};
|
|
58
|
+
for (const field of AI_MAJOR_FIELDS) {
|
|
59
|
+
const major = majorOf(pkg[field]?.["ai"]);
|
|
60
|
+
if (major !== null) out[field] = major;
|
|
66
61
|
}
|
|
67
|
-
|
|
68
|
-
function resolveAiMajorSkewReason(cfg) {
|
|
69
|
-
const raw = cfg.aiMajorSkewReason;
|
|
70
|
-
if (raw === void 0) return { reason: null, presentButInvalid: false };
|
|
71
|
-
if (typeof raw === "string" && raw.trim().length > 0) {
|
|
72
|
-
return { reason: raw, presentButInvalid: false };
|
|
73
|
-
}
|
|
74
|
-
return { reason: null, presentButInvalid: true };
|
|
62
|
+
return out;
|
|
75
63
|
}
|
|
76
64
|
function doctor(invocationCwd = process.cwd(), flags = []) {
|
|
77
65
|
if (conflictingProfileFlags("doctor", flags)) return 1;
|
|
@@ -87,21 +75,10 @@ function doctor(invocationCwd = process.cwd(), flags = []) {
|
|
|
87
75
|
const lines = [`
|
|
88
76
|
basalt-ui doctor \u2014 ${cwd}
|
|
89
77
|
`];
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
lines.push(` \u26A0 ${msg}`);
|
|
95
|
-
result.warnings++;
|
|
96
|
-
}
|
|
97
|
-
function fail(msg) {
|
|
98
|
-
lines.push(` \u2716 ${msg}`);
|
|
99
|
-
result.hardFailures++;
|
|
100
|
-
}
|
|
101
|
-
function skip(msg) {
|
|
102
|
-
lines.push(` ? SKIPPED ${msg}`);
|
|
103
|
-
result.skipped++;
|
|
104
|
-
}
|
|
78
|
+
const pass = (msg) => lines.push(` \u2713 ${msg}`);
|
|
79
|
+
const warn = (msg) => lines.push(` \u26A0 ${msg}`) && result.warnings++;
|
|
80
|
+
const fail = (msg) => lines.push(` \u2716 ${msg}`) && result.hardFailures++;
|
|
81
|
+
const skip = (msg) => lines.push(` ? SKIPPED ${msg}`) && result.skipped++;
|
|
105
82
|
if (project.relocatedFrom !== null) {
|
|
106
83
|
lines.push(` \u2192 BASALT_CWD relocated from ${project.relocatedFrom} to ${cwd}.
|
|
107
84
|
`);
|
|
@@ -243,7 +220,9 @@ basalt-ui doctor \u2014 ${cwd}
|
|
|
243
220
|
const aiEntries = AI_MAJOR_FIELDS.filter((field) => aiMajors[field] !== void 0).map(
|
|
244
221
|
(field) => ({ field, major: aiMajors[field] })
|
|
245
222
|
);
|
|
246
|
-
const
|
|
223
|
+
const rawSkewReason = cfg.aiMajorSkewReason;
|
|
224
|
+
const aiMajorSkewReason = typeof rawSkewReason === "string" && rawSkewReason.trim().length > 0 ? rawSkewReason : null;
|
|
225
|
+
const aiMajorSkewReasonInvalid = aiMajorSkewReason === null && rawSkewReason !== void 0;
|
|
247
226
|
if (aiEntries.length > 0) {
|
|
248
227
|
const distinctMajors = new Set(aiEntries.map((entry) => entry.major));
|
|
249
228
|
if (distinctMajors.size > 1) {
|
|
@@ -294,6 +273,10 @@ basalt-ui doctor \u2014 ${cwd}
|
|
|
294
273
|
appWiringCheck(appDir)
|
|
295
274
|
],
|
|
296
275
|
["exact-peers: installed exact-pinned peers match basalt-ui", exactPeersCheck(cwd, install)],
|
|
276
|
+
[
|
|
277
|
+
"subpath-peers: every imported basalt-ui subpath has its required peers installed",
|
|
278
|
+
subpathPeersCheck(cwd, cfg, install)
|
|
279
|
+
],
|
|
297
280
|
[
|
|
298
281
|
"config-keys: the basalt config block sets only keys basalt-ui reads",
|
|
299
282
|
unknownConfigKeysCheck(cwd)
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -162,6 +162,8 @@ export declare const AGENTS_MD = "AGENTS.md";
|
|
|
162
162
|
export declare const LEGACY_BLOCK_HOST = "CLAUDE.md";
|
|
163
163
|
export declare function sha256(text: string): string;
|
|
164
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;
|
|
165
167
|
/** Read a shipped source asset from the package root; null if the sibling hasn't authored it yet. */
|
|
166
168
|
export declare function readSource(pkgRoot: string, source: string): string | null;
|
|
167
169
|
/** The framework's own published version, read from the package root package.json. */
|
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":"AAwBA,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;AAC7B,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;AA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