@seed-ship/mcp-ui-solid 8.0.0-solid2.1 → 8.0.0-solid2.3

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 CHANGED
@@ -5,7 +5,41 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [8.0.0-solid2.1] - Unreleased Solid 2 RC.20 preview
8
+ ## [8.0.0-solid2.3] - Unreleased Solid 2 RC.21 qualification candidate
9
+
10
+ ### Changed
11
+
12
+ - Align core/web/signals/compiler/Babel to exact `2.0.0-rc.21` and the scoped
13
+ Vite plugin to `3.0.0-next.57`. Keep Vite 8.3.5, renderer-owned Seroval 1.7.0,
14
+ virtual-core 3.13.18, Spec 6 and CLI 5.0.2 unchanged.
15
+ - Preserve the exact optional KaTeX peer `0.18.4 || 0.18.5` and requalify both
16
+ versions plus the absent peer against real RC.21 tarballs.
17
+ - Reject RC.20/RC.21 mixing and the RC.21 `CAUGHT_REACTIVE_READ` diagnostic in
18
+ consumer SSR gates. Full source CI now also runs on PRs into the preview
19
+ branch; no push or release trigger is added.
20
+ - Update test hosts to the plugin's `start.nodeServer` option, wait for complete
21
+ server-log writes before inspection, and bind the KaTeX matrix to the same
22
+ CI artifact and tarball as the main runtime qualification.
23
+ - `.2` remains the RC.20 qualification identity; `.3` needs separate review,
24
+ exact-head CI evidence and publication authorization. No tag/channel or
25
+ stable main/runtime change is made by qualification.
26
+
27
+ ## [8.0.0-solid2.2] - Unreleased KaTeX compatibility candidate
28
+
29
+ ### Changed
30
+
31
+ - Accept only the explicitly qualified optional KaTeX versions `0.18.4 || 0.18.5`.
32
+ Keep the adapter, public exports, Solid RC.20 cohort, development KaTeX 0.18.4
33
+ baseline and other components unchanged. Add a genuine packed-consumer matrix
34
+ for both versions and for KaTeX absent, including SSR/hydration and Chromium.
35
+ - Candidate channel is `solid2`; this source PR neither publishes nor moves any
36
+ dist-tag. The existing promotion policy still binds the published `.1` and
37
+ requires separate review before a future `.2` release.
38
+ - This is compatibility qualification, not remediation of GHSA-238p-pmpm-9mq7
39
+ in direct 0.18.4 (already patched). Mermaid's older transitive KaTeX remains
40
+ an application-owned follow-up. See the dated KaTeX qualification handoff.
41
+
42
+ ## [8.0.0-solid2.1] - Published Solid 2 RC.20 preview
9
43
 
10
44
  ### Fixed
11
45
 
package/README.md CHANGED
@@ -2,21 +2,24 @@
2
2
 
3
3
  ## Solid 2 preview (unpublished)
4
4
 
5
- **Preview fix prepared on 2026-11-03:** RC.20 and Scratchpad lazy-prop regressions.
6
- Keep PR #34 separate and review-only; no release dispatch,
7
- staging, publication, merge or application installation is authorized.
8
- See the [current Scratchpad/Deposium handoff](./docs/SOLID2-SCRATCHPAD-LAZY-PROPS-2026-11-03.md).
5
+ **RC.21 candidate prepared on 2026-11-10:** based on the `.2` KaTeX
6
+ qualification, carrying the Scratchpad fix and coherent RC.21 toolchain.
7
+ This qualification PR does not authorize
8
+ staging, publication, a dist-tag change or application installation.
9
+ See the [current RC.21/Deposium handoff](./docs/SOLID2-RC21-QUALIFICATION-2026-11-10.md).
10
+ The [KaTeX handoff](./docs/KATEX-COMPATIBILITY-2026-11-09.md) records `.2` / RC.20 qualification.
11
+ The [Scratchpad handoff](./docs/SOLID2-SCRATCHPAD-LAZY-PROPS-2026-11-03.md) records the prior fix.
9
12
  The [pause/resumption handoff](./docs/SOLID2-PREVIEW-HANDOFF-2026-10-23.md)
10
13
  records the preserved source, checksums, known gaps and restart checklist.
11
14
 
12
- This branch prepares `8.0.0-solid2.1` as an **opt-in preview for a separate
15
+ This branch prepares `8.0.0-solid2.3` as an **opt-in preview for a separate
13
16
  Solid 2 host**. The stable `7.x` line, including future `7.1.x` releases, remains
14
17
  Solid 1 on npm `latest`; Solid 2 belongs to `8.x` and the separate `solid2` tag.
15
- The `8.0.0-solid2.1` source version alone proves neither qualification nor
18
+ The `8.0.0-solid2.3` source version alone proves neither qualification nor
16
19
  release approval: bind later proof to the exact source HEAD and archive. Zod is
17
20
  4.6.6 and Spec is 6.x. This is not a
18
- dual-runtime package: required peers are exactly `solid-js@2.0.0-rc.20` and
19
- `@solidjs/web@2.0.0-rc.20` (Node >=22.12.0). DOM types/imports move to
21
+ dual-runtime package: required peers are exactly `solid-js@2.0.0-rc.21` and
22
+ `@solidjs/web@2.0.0-rc.21` (Node >=22.12.0). DOM types/imports move to
20
23
  `@solidjs/web`; core and draft-store APIs come from `solid-js`.
21
24
 
22
25
  For any later host qualification, use an identified archive qualified from the
@@ -30,8 +33,8 @@ boundaries. Large-table virtualization uses optional
30
33
  Scratchpad `pinned` and `debug` may be ordinary reactive JSX conditionals.
31
34
  Lifecycle logging snapshots the initial props during setup; debug effects read
32
35
  props in compute and consume that snapshot in apply. Host-side memo hoisting is
33
- not required for this regression. The published `.0` targeted RC.19; `.1` targets
34
- RC.20 and needs its own successful CI/archive and release approval.
36
+ not required for this regression. The published `.0` targeted RC.19; `.1` and
37
+ the `.2` candidate target RC.20; `.3` targets RC.21. Each release needs its own CI/archive approval.
35
38
 
36
39
  Public component names, MCP wire payloads, HTML trust policy, callbacks and CSS
37
40
  tokens are retained. Imperative store/controller methods commit before returning;
@@ -115,7 +118,7 @@ currency guards and sanitized MathML output. No change without a provider;
115
118
  Install the optional peer only if the host wants the supplied KaTeX adapter:
116
119
 
117
120
  ```bash
118
- pnpm add --save-exact katex@0.18.4
121
+ pnpm add --save-exact katex@0.18.5
119
122
  ```
120
123
 
121
124
  ```tsx
@@ -127,9 +130,12 @@ import { renderKatexMath } from '@seed-ship/mcp-ui-solid/plugins/katex'
127
130
  </MCPUIMathProvider>
128
131
  ```
129
132
 
130
- The adapter's optional peer is pinned to 0.18.4 to retain Node 20 installation
131
- compatibility. KaTeX 0.18.5–0.18.7 pull in Commander 15 (Node >=22.12);
132
- do not replace the pin with a caret range on Node 20.
133
+ The candidate's optional peer explicitly accepts `0.18.4 || 0.18.5`, not a
134
+ caret or an untested future range. Its development baseline remains 0.18.4.
135
+ KaTeX 0.18.5 pulls in Commander 15 (Node >=22.12); use the host's supported
136
+ Node version before upgrading. The KaTeX adapter does not choose the Solid
137
+ runtime; this `.3` preview requires the coherent RC.21 cohort.
138
+ See the [version-specific qualification and Deposium handoff](./docs/KATEX-COMPATIBILITY-2026-11-09.md).
133
139
 
134
140
  The provider applies to `text` with `markdown: true` and string-valued table
135
141
  cells, including virtualized rows. It recognizes `$...$` inline and `$$...$$`
@@ -0,0 +1,84 @@
1
+ # KaTeX compatibility candidate — 2026-11-09
2
+
3
+ > Historical `.2` / RC.20 qualification. For the `.3` / RC.21 candidate and
4
+ > the subsequently merged Deposium Mermaid fix, use the
5
+ > [current handoff](./SOLID2-RC21-QUALIFICATION-2026-11-10.md).
6
+
7
+ ## Source, candidate and release boundary
8
+
9
+ Start: published `@seed-ship/mcp-ui-solid@8.0.0-solid2.1`, source
10
+ `f2efd502b89a97ab66cc17e96c7c00bcaff0d182` on `feat/solid2-preview`, not the
11
+ older canonical Solid 1 checkout. The focused PR targets that Solid 2 branch.
12
+ Candidate: `8.0.0-solid2.2`; intended opt-in npm channel: `solid2`.
13
+
14
+ The optional peer explicitly accepts only `0.18.4 || 0.18.5`; no caret or
15
+ future version is promised. Development KaTeX remains pinned to 0.18.4. The
16
+ adapter, public exports, Solid/core/web/signals/compiler/Babel RC.20 cohort,
17
+ Vite plugin next.51, lockfile, Spec 6.0.0 and CLI 5.0.2 remain unchanged.
18
+
19
+ This PR does not publish/stage anything or move `latest`. The trusted preview
20
+ release policy still binds `.1`; a future `.2` promotion needs a separately
21
+ reviewed policy/qualification update, after this candidate is validated. The
22
+ generic source CI/harness identity follows `.2`, so merging the focused PR into
23
+ the Solid 2 branch does not leave a stale tarball filename/version check.
24
+ Do not merge the full Solid 2 port into main or
25
+ push a preview Git tag to obtain a build.
26
+
27
+ ## Qualification contract
28
+
29
+ The focused matrix must build and pack the actual candidate and install it in
30
+ clean consumers with strict peer checking, no workspace alias and no KaTeX
31
+ override: exact 0.18.4, exact 0.18.5, and KaTeX absent. Check both compiled
32
+ ESM/CJS imports, the peer metadata, original exports and tarball SHA-256.
33
+ Installed math consumers must exercise inline/display MathML, fractions,
34
+ indices, matrices, invalid TeX, macro isolation, untrusted commands and limits.
35
+ The absent consumer must import and render the main entry without KaTeX.
36
+
37
+ Chromium must exercise development and production builds. MCPUI's existing SSR
38
+ contract is intentional: the server emits escaped Markdown source without
39
+ calling the math renderer; the client upgrades it to sanitized MathML after
40
+ hydration. Verify SSR sentinel identity, live updates/unmount and zero browser
41
+ or hydration errors. This does not promise server-rendered MathML or identical
42
+ layout to Deposium chat's HTML+MathML renderer.
43
+
44
+ Actual executed counts and the exact candidate tarball checksum are retained
45
+ in the PR and uploaded qualification reports, not inferred from this checklist.
46
+ The focused workflow reproduces the build, source tests and clean-host matrix;
47
+ source preparation alone is not a passing test or publication claim.
48
+
49
+ ## Unchanged security boundary
50
+
51
+ `renderKatexMath` keeps `output: 'mathml'`, `throwOnError: true`, `trust: false`,
52
+ `maxExpand: 1000`, `maxSize: 20` and fresh per-call macros. Invalid TeX returns
53
+ null so the caller preserves the complete original token. The two-stage MathML
54
+ and final-sink sanitization still removes scripts, links/styles and annotation
55
+ subtrees. Source/expression/count bounds remain 100,000 / 4,096 / 128.
56
+
57
+ [GHSA-238p-pmpm-9mq7](https://github.com/advisories/GHSA-238p-pmpm-9mq7) affects
58
+ KaTeX >=0.11.0 and <0.18.2: direct 0.18.4 is already patched. This candidate is
59
+ compatibility qualification, not a claim to repair that advisory in direct
60
+ 0.18.4. [KaTeX 0.18.5](https://github.com/KaTeX/KaTeX/releases/tag/v0.18.5)
61
+ also depends on Commander 15, which requires Node >=22.12.0.
62
+
63
+ ## Deposium handoff
64
+
65
+ Only **after** review and separately authorized publication:
66
+
67
+ ```sh
68
+ pnpm add --save-exact @seed-ship/mcp-ui-solid@8.0.0-solid2.2 katex@0.18.5
69
+ ```
70
+
71
+ This exact-version command chooses the `solid2` candidate without relying on or
72
+ changing `latest`; it cannot work from the public registry before publication.
73
+ For pre-publication qualification, install the reviewed `.tgz` instead and
74
+ retain its checksum. Keep the host's coherent Solid RC.20 cohort, use Node
75
+ >=22.12, and commit its own lockfile. The main library import remains usable
76
+ without KaTeX; only the explicit `plugins/katex` import requires the optional
77
+ peer. Continue wrapping text/table renderers in `MCPUIMathProvider`.
78
+
79
+ Deposium still owns the reported KaTeX 0.16.47 through Mermaid 12.0.0. Changing
80
+ this direct peer does not remediate Mermaid's transitive graph. Inspect that
81
+ graph and qualify any Mermaid update/override separately; do not infer that
82
+ the whole host audit is clean. Also rerun the real chat, table, currency,
83
+ streaming and hydration flows after integrating the candidate. No application
84
+ files or transitive Mermaid dependencies are changed by this PR.
@@ -0,0 +1,90 @@
1
+ # Solid 2 RC.21 qualification — 2026-11-10
2
+
3
+ ## Candidate and scope
4
+
5
+ Candidate `@seed-ship/mcp-ui-solid@8.0.0-solid2.3`, intended opt-in npm channel
6
+ `solid2`, starts from synchronized preview head `f37ce251c041159c625764c42fb39677eaf9c73a`.
7
+ That head has the same file tree as the `.2` / RC.20 KaTeX qualification after
8
+ PR #44. Synchronization integrated main ancestry into the preview, not the
9
+ runtime port into stable main. The old canonical checkout was not edited.
10
+
11
+ Core, web, signals, compiler and Babel are exactly `2.0.0-rc.21`; the Vite plugin
12
+ is exactly `3.0.0-next.57`. Vite stays 8.3.5, virtual-core stays 3.13.18 and the
13
+ Seroval pair remains renderer-owned at 1.7.0. Spec 6.0.0 and CLI 5.0.2 are
14
+ unchanged. KaTeX remains optional and accepts only `0.18.4 || 0.18.5`.
15
+ Do not install this candidate over an RC.19/RC.20 or Solid 1 reactive tree.
16
+
17
+ The producer lock changes only this Solid/tooling cohort, its peer contexts
18
+ and obsolete Babel type packages no longer used by the new plugin. The
19
+ existing vitefu/Vite peer metadata warning is not hidden or treated as a
20
+ runtime success; actual build and consumer checks are separate evidence.
21
+
22
+ ## Required proof
23
+
24
+ Run build before typechecking/testing a clean worktree: the Spec workspace's
25
+ real declarations and built subpath contracts must exist. A failure caused by
26
+ missing build fixtures is not evidence for or against RC.21 compatibility.
27
+
28
+ Qualification includes source tests/type contracts, offline cohort/release
29
+ safeguards, and the actual built and packed candidate in clean RC.21 hosts:
30
+
31
+ - Full and optional-absent consumers, compiled browser entry points, native
32
+ engines, streaming/cleanup, text/table/source and dev/production SSR/hydration.
33
+ - Exact KaTeX 0.18.4, exact 0.18.5 and absent peer, including plugin-relative
34
+ resolution, ESM/CJS, MathML, invalid TeX, sanitization and resource limits.
35
+ - Independent Solid 1 baseline using its own runtime and lockfile.
36
+
37
+ Existing diagnostic gates remain strict; the new RC.21
38
+ `CAUGHT_REACTIVE_READ` is explicitly fatal in both SSR harnesses, with a named
39
+ regression. Browser math qualification rejects all console warnings/errors.
40
+ The next.57 consumer fixtures use `start.nodeServer`, replacing the removed
41
+ `start.node` option; the middleware contract remains `(event, next)`.
42
+ The full consumer explicitly sets `build.manifest: true` to retain the client
43
+ manifest inspected by qualification; next.57 otherwise removes this internal
44
+ metadata after embedding it in the server. The manifest assertion is retained.
45
+ Both runners await log finalization before checking SSR diagnostics, with
46
+ delayed-write regressions, so late diagnostics cannot escape the gate.
47
+ Do not mask diagnostics or widen peers to an untested RC range to get a pass.
48
+ Record actual test counts, exact head/run/artifact and the `.tgz` SHA-256 in
49
+ the PR and raw CI reports. A source version or old green run is not proof.
50
+
51
+ The primary CI artifact includes all three KaTeX consumers alongside the full,
52
+ optional-absent and compiled-browser reports. Every consumer uses the same
53
+ already packed Solid tarball and Spec fixture, rather than an independently
54
+ repacked archive from a different workflow. The separate KaTeX workflow is an
55
+ additional targeted check, not the promotion evidence source.
56
+
57
+ ## Deposium / Mermaid checkpoint
58
+
59
+ The inspected local application had direct KaTeX 0.18.4 and Mermaid 12.0.0
60
+ resolving its own 0.16.47. This differs from current remote main: application
61
+ [PR #1105](https://github.com/theseedship/deposium_solid/pull/1105) already merged
62
+ Mermaid 12.3.0 with a narrow `mermaid@12.3.0>katex` override to 0.18.4. Do not
63
+ duplicate that fix or replace it with a global override. Outdated local
64
+ worktrees and installed dependencies require application-owned synchronization
65
+ that preserves their WIP; no local pull/install/deployment is implied here.
66
+
67
+ The separate direct-KaTeX 0.18.5 application PR is not the Mermaid fix. It needs
68
+ an MCPUI version whose peer permits 0.18.5, plus the host's own lockfile and
69
+ tests. Library tests do not prove the real application has integrated RC.21.
70
+
71
+ ## Integration and release boundary
72
+
73
+ Only after host cohort alignment, review and separately authorized publication:
74
+
75
+ ```sh
76
+ pnpm add --save-exact @seed-ship/mcp-ui-solid@8.0.0-solid2.3 katex@0.18.5
77
+ ```
78
+
79
+ Before publication use an identified tested `.tgz`, not npm `latest` or an
80
+ unpinned Git branch. Match core/web/signals/compiler/Babel RC.21 and the
81
+ reviewed Vite plugin, use Node >=22.12.0, and commit the host lockfile. Recheck
82
+ actual chat streaming, sources, forms, virtualization, native renderers,
83
+ focus, theme, hydration and disposal in the application.
84
+
85
+ This work does not merge PR #34 into main, alter stable Solid 1 / `latest`,
86
+ publish or stage npm, dispatch release workflows or deploy the application.
87
+ The trusted promotion workflow still binds `.1` / RC.20; a future `.3` upload
88
+ requires a separate policy update and exact successful archive validation,
89
+ followed by protected GitHub approval and maintainer npm 2FA. `.2` RC.20 and
90
+ its prior evidence remain historical fallbacks, not RC.21 release evidence.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-ship/mcp-ui-solid",
3
- "version": "8.0.0-solid2.1",
3
+ "version": "8.0.0-solid2.3",
4
4
  "description": "SolidJS components for rendering MCP-generated UI resources",
5
5
  "type": "module",
6
6
  "files": [
@@ -17,6 +17,8 @@
17
17
  "docs/SOLID2-PREVIEW-HANDOFF-2026-10-23.md",
18
18
  "docs/SOLID2-DEPOSIUM-HANDOFF-2026-10-27.md",
19
19
  "docs/SOLID2-SCRATCHPAD-LAZY-PROPS-2026-11-03.md",
20
+ "docs/KATEX-COMPATIBILITY-2026-11-09.md",
21
+ "docs/SOLID2-RC21-QUALIFICATION-2026-11-10.md",
20
22
  "docs/ZOD4-STABLE-MIGRATION-2026-10-26.md",
21
23
  "LICENSE"
22
24
  ],
@@ -234,15 +236,15 @@
234
236
  "@antv/g6": "^5.0.0",
235
237
  "@duckdb/duckdb-wasm": "^1.28.0",
236
238
  "@tanstack/virtual-core": "3.13.18",
237
- "@solidjs/web": "2.0.0-rc.20",
239
+ "@solidjs/web": "2.0.0-rc.21",
238
240
  "chart.js": "^4.0.0",
239
241
  "chartjs-plugin-zoom": "^2.0.0",
240
242
  "highlight.js": "^11.9.0",
241
- "katex": "0.18.4",
243
+ "katex": "0.18.4 || 0.18.5",
242
244
  "leaflet": "^1.9.4",
243
245
  "leaflet.markercluster": "^1.5.0",
244
246
  "protomaps-leaflet": "^4.0.0",
245
- "solid-js": "2.0.0-rc.20"
247
+ "solid-js": "2.0.0-rc.21"
246
248
  },
247
249
  "peerDependenciesMeta": {
248
250
  "@antv/g6": {
@@ -288,11 +290,11 @@
288
290
  "@size-limit/esbuild-why": "^12.0.0",
289
291
  "@size-limit/preset-small-lib": "^12.0.0",
290
292
  "@solidjs/testing-library": "1.0.0-rc.2",
291
- "@solidjs/web": "2.0.0-rc.20",
292
- "@solidjs/signals": "2.0.0-rc.20",
293
- "@solidjs/compiler": "2.0.0-rc.20",
294
- "@solidjs/babel-plugin": "2.0.0-rc.20",
295
- "@solidjs/vite-plugin": "3.0.0-next.51",
293
+ "@solidjs/web": "2.0.0-rc.21",
294
+ "@solidjs/signals": "2.0.0-rc.21",
295
+ "@solidjs/compiler": "2.0.0-rc.21",
296
+ "@solidjs/babel-plugin": "2.0.0-rc.21",
297
+ "@solidjs/vite-plugin": "3.0.0-next.57",
296
298
  "@tanstack/virtual-core": "3.13.18",
297
299
  "@types/leaflet": "^1.9.8",
298
300
  "@types/leaflet.markercluster": "^1.5.6",
@@ -306,7 +308,7 @@
306
308
  "katex": "0.18.4",
307
309
  "leaflet.markercluster": "^1.5.3",
308
310
  "size-limit": "^12.0.0",
309
- "solid-js": "2.0.0-rc.20",
311
+ "solid-js": "2.0.0-rc.21",
310
312
  "typescript": "^5.3.3",
311
313
  "vite": "8.3.5",
312
314
  "vitest": "4.1.12"