@seed-ship/mcp-ui-solid 8.0.0-solid2.0 → 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.
@@ -155,7 +155,7 @@ var _tmpl$20 = [
155
155
  ];
156
156
  var _tmpl$21 = [
157
157
  "<div",
158
- " class=\"relative mb-3\"><span class=\"absolute left-3 top-1/2 -translate-y-1/2 text-[color:var(--mcp-ui-fg-subtle,var(--color-gray-400,#9ca3af))] pointer-events-none text-sm\">🔍</span><input type=\"text\"",
158
+ " class=\"relative mb-3\"><span class=\"absolute left-3 top-1/2 -translate-y-1/2 text-[color:var(--mcp-ui-fg-subtle,var(--color-gray-400,#9ca3af))] pointer-events-none text-sm\">&#128269;</span><input type=\"text\"",
159
159
  "",
160
160
  " class=\"w-full max-w-xs min-w-[200px] pl-8 pr-8 py-1.5 text-sm border border-[color:var(--mcp-ui-border,var(--color-gray-200,#e5e7eb))] dark:border-[color:var(--mcp-ui-border,var(--color-gray-600,#4b5563))] rounded-md bg-[color:var(--mcp-ui-surface,var(--color-white,#fff))] dark:bg-[color:var(--mcp-ui-surface-muted,var(--color-gray-700,#374151))] text-[color:var(--mcp-ui-fg,var(--color-gray-900,#111827))] dark:text-[color:var(--mcp-ui-fg,var(--color-white,#fff))] placeholder-[color:var(--mcp-ui-fg-subtle,var(--color-gray-400,#9ca3af))] focus:border-[color:var(--mcp-ui-focus,var(--color-blue-400))] focus:ring-1 focus:ring-[color:var(--mcp-ui-focus,var(--color-blue-400))] outline-none\"><!--$-->",
161
161
  "<!--/--></div>"
@@ -155,7 +155,7 @@ var _tmpl$20 = [
155
155
  ];
156
156
  var _tmpl$21 = [
157
157
  "<div",
158
- " class=\"relative mb-3\"><span class=\"absolute left-3 top-1/2 -translate-y-1/2 text-[color:var(--mcp-ui-fg-subtle,var(--color-gray-400,#9ca3af))] pointer-events-none text-sm\">🔍</span><input type=\"text\"",
158
+ " class=\"relative mb-3\"><span class=\"absolute left-3 top-1/2 -translate-y-1/2 text-[color:var(--mcp-ui-fg-subtle,var(--color-gray-400,#9ca3af))] pointer-events-none text-sm\">&#128269;</span><input type=\"text\"",
159
159
  "",
160
160
  " class=\"w-full max-w-xs min-w-[200px] pl-8 pr-8 py-1.5 text-sm border border-[color:var(--mcp-ui-border,var(--color-gray-200,#e5e7eb))] dark:border-[color:var(--mcp-ui-border,var(--color-gray-600,#4b5563))] rounded-md bg-[color:var(--mcp-ui-surface,var(--color-white,#fff))] dark:bg-[color:var(--mcp-ui-surface-muted,var(--color-gray-700,#374151))] text-[color:var(--mcp-ui-fg,var(--color-gray-900,#111827))] dark:text-[color:var(--mcp-ui-fg,var(--color-white,#fff))] placeholder-[color:var(--mcp-ui-fg-subtle,var(--color-gray-400,#9ca3af))] focus:border-[color:var(--mcp-ui-focus,var(--color-blue-400))] focus:ring-1 focus:ring-[color:var(--mcp-ui-focus,var(--color-blue-400))] outline-none\"><!--$-->",
161
161
  "<!--/--></div>"
@@ -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.
@@ -1,5 +1,9 @@
1
1
  # MCP UI → Deposium Solid 2 : handoff de préparation, 2026-10-27
2
2
 
3
+ > Archive du portage RC.19 / preview `.0`. La préparation courante est RC.20 /
4
+ > `8.0.0-solid2.1` : lire le [handoff Scratchpad du 2026-11-03](./SOLID2-SCRATCHPAD-LAZY-PROPS-2026-11-03.md).
5
+ > Les résultats et commandes ci-dessous restent attachés à l'ancien candidat.
6
+
3
7
  ## Décision et périmètre
4
8
 
5
9
  Le mainteneur a explicitement repris la préparation du portage MCP UI pour
@@ -1,7 +1,8 @@
1
1
  # Solid 2 preview qualification
2
2
 
3
- > Source preparation explicitly resumed on 2026-10-27 for the `8.0.0-solid2.0`
4
- > candidate: RC.19, stable security carry-over and fresh package qualification
3
+ > Current candidate: `8.0.0-solid2.1`, prepared on 2026-11-03 for RC.20 and
4
+ > the Scratchpad lazy-prop fix. See the [current handoff](./SOLID2-SCRATCHPAD-LAZY-PROPS-2026-11-03.md).
5
+ > The original preparation resumed on 2026-10-27 for stable security carry-over and fresh package qualification
5
6
  > only. The pause and qualification results below describe the earlier
6
7
  > `7.0.0-solid2.0` candidate (including historical RC.18 / RC.19 records).
7
8
  > See the
@@ -12,18 +13,20 @@
12
13
 
13
14
  ## Current source candidate and release boundary
14
15
 
15
- The candidate manifest is now `8.0.0-solid2.0`, targeting the exact RC.19
16
+ The candidate manifest is now `8.0.0-solid2.1`, targeting the exact RC.20
16
17
  runtime/toolchain and the stable Spec 6 / CLI 5.0.2 line. Stable `7.x`, including
17
18
  future `7.1.x`, remains Solid 1 on npm `latest`; Solid 2 is the opt-in `8.x` line
18
19
  on `solid2`. Qualification must bind to this exact source HEAD and its archive;
19
20
  the historical `7.0.0-solid2.0` SHA, archive and checksum do not qualify it.
20
21
 
21
- The separate RC.19 / Spec 6 / CLI 5.0.2 infrastructure PR #42 is merged into
22
+ The original RC.19 / Spec 6 / CLI 5.0.2 infrastructure PR #42 is merged into
22
23
  stable main at `54c49dca5a049eeddb70aae7e9df1055ec3d50e3`, and is synchronized
23
24
  into this branch. PR #34 is review-only; it is not merged by that operation.
24
25
  Dispatch, upload, tag, runtime merge and app
25
26
  installation remain unauthorized. The Deposium host migration is in progress;
26
- installation requires the application team's approval.
27
+ installation requires the application team's approval. A separate RC.20 / `.1`
28
+ policy update must be merged before any future promotion of this new candidate;
29
+ the original `.0` policy cannot upload `.1`.
27
30
 
28
31
  ## Historical source, workbench and qualification (through 2026-10-24)
29
32
 
@@ -253,8 +256,9 @@ Do not use the legacy stable publication workflow: it matches prerelease tags
253
256
  but stages with `--tag latest`, and the GitHub release workflow marks releases
254
257
  as stable.
255
258
 
256
- The manual preview channel on main now uses the RC.19 / Spec 6 / CLI 5.0.2
257
- policy for `8.0.0-solid2.0`, after infrastructure PR #42. That merge does not
259
+ The original manual preview policy from #42 targets RC.19 / Spec 6 / CLI 5.0.2
260
+ and `8.0.0-solid2.0`. The RC.20 / `8.0.0-solid2.1` update needs its own reviewed
261
+ infrastructure change before promotion. Neither infrastructure merge merges
258
262
  merge the runtime PR. Later review-only and staging operations still require
259
263
  their own exact source/CI/artifact binding and explicit approvals; the source
260
264
  PR must remain open. Follow the current
@@ -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.
@@ -0,0 +1,60 @@
1
+ # MCP-UI Solid 2 — Scratchpad lazy props, 2026-11-03
2
+
3
+ ## Candidate and boundary
4
+
5
+ Source branch: `feat/solid2-preview`, open PR #34, still review-only. Candidate
6
+ `@seed-ship/mcp-ui-solid@8.0.0-solid2.1` targets the exact Solid 2 RC.20 cohort.
7
+ The published `.0` targets RC.19; stable `7.x` / `latest` remains Solid 1.
8
+ Spec 6.0.0 and CLI 5.0.2 are unchanged. No application edit, runtime-PR merge,
9
+ npm upload or deployment is authorized by this source fix.
10
+
11
+ ## Root cause, not an app-only workaround
12
+
13
+ The host supplied an ordinary JSX conditional for Scratchpad `pinned`. Solid's
14
+ compiler creates a memo when that getter is read. Scratchpad's creation log
15
+ read it inside owner-backed `onSettled`, whose internal tracked-effect scope
16
+ forbids creating reactive primitives. This raised
17
+ `PRIMITIVE_IN_FORBIDDEN_SCOPE` and halted later reactive updates.
18
+
19
+ A second regression was reproduced for `debug`: the state effect's apply
20
+ callback called a logger that read props, so a lazy getter created a memo with
21
+ no ambient owner (`PRIMITIVE_IN_EFFECT_CALLBACK`). Both failed on RC.19 before
22
+ the patch; the issue was not uniquely caused by the host's RC.20 upgrade.
23
+
24
+ The fix snapshots the mount-only creation-log fields in component setup under
25
+ `untrack`. The debug effect captures flag/id/data in compute and its apply
26
+ logger takes only those values. Auto-close continues to use its existing
27
+ compute/apply snapshot. No diagnostic is suppressed, no `runWithOwner` escape
28
+ is added, and callers need not hoist each conditional into an app-owned memo.
29
+
30
+ ## Qualification
31
+
32
+ The focused regressions exercise real compiler-generated conditional props,
33
+ initial mount, live pin/debug changes, once-only creation logging, complete-state
34
+ auto-close and timer cleanup. Their original RC.19 failures were observed red;
35
+ the focused patch passed before changing the runtime cohort.
36
+
37
+ The RC.20 producer and clean consumer pin core, web, signals, compiler and Babel
38
+ to `2.0.0-rc.20`, plus Vite plugin `3.0.0-next.51`. The frozen-lock cohort guard
39
+ rejects RC.19/RC.20 mixing and preserves renderer-owned Seroval and virtual-core.
40
+ The lockfile update is confined to the Solid toolchain family and its peer edges.
41
+
42
+ The real `.1` tarball CI includes a public Scratchpad probe in both full and
43
+ optional-absent consumers, tested through dev/production SSR and hydration.
44
+ Read the exact current PR head and its successful first-attempt CI, then the
45
+ artifact reports/checksum. Do not reuse `.0`'s already-published tarball or an
46
+ older green head as evidence for `.1`. Synthetic library qualification does not
47
+ prove the full Deposium chat or its other lifecycle paths.
48
+
49
+ ## Release and consumer handoff
50
+
51
+ Before upload, update the trusted main preview policy from `.0` / RC.19 to
52
+ `.1` / RC.20 in a separate infrastructure PR; its merge changes no stable
53
+ package versions and does not publish anything. Use the protected manual
54
+ preview workflow on main to promote only the qualified Solid tarball under
55
+ `solid2`, then maintainer npm 2FA approval. Keep `latest` on Solid 1.
56
+
57
+ After publication, the application team can pin `8.0.0-solid2.1`, commit its
58
+ own lockfile and rerun the real search-expansion/scratchpad repro on its coherent
59
+ RC.20 tree. A temporary app-side memo workaround can then be evaluated for
60
+ removal by that team; no such application change is part of this patch.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-ship/mcp-ui-solid",
3
- "version": "8.0.0-solid2.0",
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": [
@@ -16,6 +16,9 @@
16
16
  "docs/SOLID2-PREVIEW.md",
17
17
  "docs/SOLID2-PREVIEW-HANDOFF-2026-10-23.md",
18
18
  "docs/SOLID2-DEPOSIUM-HANDOFF-2026-10-27.md",
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",
19
22
  "docs/ZOD4-STABLE-MIGRATION-2026-10-26.md",
20
23
  "LICENSE"
21
24
  ],
@@ -233,15 +236,15 @@
233
236
  "@antv/g6": "^5.0.0",
234
237
  "@duckdb/duckdb-wasm": "^1.28.0",
235
238
  "@tanstack/virtual-core": "3.13.18",
236
- "@solidjs/web": "2.0.0-rc.19",
239
+ "@solidjs/web": "2.0.0-rc.21",
237
240
  "chart.js": "^4.0.0",
238
241
  "chartjs-plugin-zoom": "^2.0.0",
239
242
  "highlight.js": "^11.9.0",
240
- "katex": "0.18.4",
243
+ "katex": "0.18.4 || 0.18.5",
241
244
  "leaflet": "^1.9.4",
242
245
  "leaflet.markercluster": "^1.5.0",
243
246
  "protomaps-leaflet": "^4.0.0",
244
- "solid-js": "2.0.0-rc.19"
247
+ "solid-js": "2.0.0-rc.21"
245
248
  },
246
249
  "peerDependenciesMeta": {
247
250
  "@antv/g6": {
@@ -287,11 +290,11 @@
287
290
  "@size-limit/esbuild-why": "^12.0.0",
288
291
  "@size-limit/preset-small-lib": "^12.0.0",
289
292
  "@solidjs/testing-library": "1.0.0-rc.2",
290
- "@solidjs/web": "2.0.0-rc.19",
291
- "@solidjs/signals": "2.0.0-rc.19",
292
- "@solidjs/compiler": "2.0.0-rc.19",
293
- "@solidjs/babel-plugin": "2.0.0-rc.19",
294
- "@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",
295
298
  "@tanstack/virtual-core": "3.13.18",
296
299
  "@types/leaflet": "^1.9.8",
297
300
  "@types/leaflet.markercluster": "^1.5.6",
@@ -305,7 +308,7 @@
305
308
  "katex": "0.18.4",
306
309
  "leaflet.markercluster": "^1.5.3",
307
310
  "size-limit": "^12.0.0",
308
- "solid-js": "2.0.0-rc.19",
311
+ "solid-js": "2.0.0-rc.21",
309
312
  "typescript": "^5.3.3",
310
313
  "vite": "8.3.5",
311
314
  "vitest": "4.1.12"
@@ -86,11 +86,13 @@ export const ScratchpadPanel: Component<ScratchpadPanelProps> = (props) => {
86
86
  const [eventCount, setEventCount] = createSignal(0)
87
87
  const [lastEvent, setLastEvent] = createSignal('')
88
88
 
89
- const debugLog = (event: string, data?: any) => {
90
- if (!props.debug) return
89
+ // Apply callbacks must not resolve host prop getters: a JSX conditional can
90
+ // create a memo when read. Pass an already-computed context instead.
91
+ const debugLog = (event: string, data: unknown, enabled: boolean | undefined, id: string) => {
92
+ if (!enabled) return
91
93
  setEventCount(c => c + 1)
92
94
  setLastEvent(event)
93
- console.log(`[ScratchpadPanel:${props.state.id}] ${event}`, data || '')
95
+ console.log(`[ScratchpadPanel:${id}] ${event}`, data || '')
94
96
  }
95
97
 
96
98
  // ─── DX1: Proactive console messages (always, not just debug) ───
@@ -105,9 +107,18 @@ export const ScratchpadPanel: Component<ScratchpadPanelProps> = (props) => {
105
107
  }
106
108
  let prevStatus = untrack(() => props.state.status)
107
109
 
110
+ // This is deliberately a mount-only snapshot. Owner-backed onSettled is a
111
+ // children-forbidden scope, so resolve lazy host getters during setup.
112
+ const created = untrack(() => ({
113
+ id: props.state.id,
114
+ sections: props.state.sections?.length || 0,
115
+ status: props.state.status,
116
+ pinned: props.pinned,
117
+ }))
118
+
108
119
  // Etape 1: create log
109
120
  onSettled(() => console.info(
110
- `%c[MCP-UI] Scratchpad created%c id=${props.state.id} sections=${props.state.sections?.length || 0} status=${props.state.status}${props.pinned ? ' pinned=true' : ''}`,
121
+ `%c[MCP-UI] Scratchpad created%c id=${created.id} sections=${created.sections} status=${created.status}${created.pinned ? ' pinned=true' : ''}`,
111
122
  'color: #10b981; font-weight: bold', 'color: inherit'
112
123
  ))
113
124
 
@@ -136,7 +147,7 @@ export const ScratchpadPanel: Component<ScratchpadPanelProps> = (props) => {
136
147
  if (!props.asyncAction && /^(try_alt:|retry|fetch|load)/.test(action)) {
137
148
  console.warn(`[MCP-UI] ScratchpadPanel: action '${action}' looks async but asyncAction prop is not set. The button will NOT show a loading state.`)
138
149
  }
139
- debugLog('onAction', { action, asyncAction: props.asyncAction, data })
150
+ debugLog('onAction', { action, asyncAction: props.asyncAction, data }, props.debug, props.state.id)
140
151
  if (props.asyncAction && !CLOSE_ALIASES.has(action)) {
141
152
  setLoadingAction(action)
142
153
  }
@@ -147,9 +158,10 @@ export const ScratchpadPanel: Component<ScratchpadPanelProps> = (props) => {
147
158
  }
148
159
 
149
160
  // Debug: log state changes
150
- createEffect(() => ({ status: props.state.status, sections: props.state.sections?.length,
151
- filters: Object.keys(props.state.filters || {}), turn: props.state.turn }),
152
- state => debugLog('state', state))
161
+ createEffect(() => ({ enabled: props.debug, id: props.state.id,
162
+ state: { status: props.state.status, sections: props.state.sections?.length,
163
+ filters: Object.keys(props.state.filters || {}), turn: props.state.turn } }),
164
+ ({ enabled, id, state }) => debugLog('state', state, enabled, id))
153
165
 
154
166
  // Auto-close on complete (unless pinned)
155
167
  createEffect(() => ({ status: props.state.status, delay: props.autoCloseDelay,