@seed-ship/mcp-ui-solid 8.0.0-solid2.0 → 8.0.0-solid2.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 +24 -2
- package/README.md +13 -7
- package/dist/components/ScratchpadPanel.cjs +20 -10
- package/dist/components/ScratchpadPanel.cjs.map +1 -1
- package/dist/components/ScratchpadPanel.d.ts.map +1 -1
- package/dist/components/ScratchpadPanel.js +20 -10
- package/dist/components/ScratchpadPanel.js.map +1 -1
- package/dist/server/components/ArtifactRenderer.cjs +1 -1
- package/dist/server/components/ArtifactRenderer.js +1 -1
- package/dist/server/components/AutocompleteDropdown.cjs +2 -2
- package/dist/server/components/AutocompleteDropdown.js +2 -2
- package/dist/server/components/ChartJSRenderer.cjs +1 -1
- package/dist/server/components/ChartJSRenderer.js +1 -1
- package/dist/server/components/ScratchpadPanel.cjs +28 -18
- package/dist/server/components/ScratchpadPanel.cjs.map +1 -1
- package/dist/server/components/ScratchpadPanel.js +28 -18
- package/dist/server/components/ScratchpadPanel.js.map +1 -1
- package/dist/server/components/UIResourceRenderer.cjs +1 -1
- package/dist/server/components/UIResourceRenderer.js +1 -1
- package/docs/SOLID2-DEPOSIUM-HANDOFF-2026-10-27.md +4 -0
- package/docs/SOLID2-PREVIEW.md +11 -7
- package/docs/SOLID2-SCRATCHPAD-LAZY-PROPS-2026-11-03.md +60 -0
- package/package.json +9 -8
- package/src/components/ScratchpadPanel.tsx +20 -8
|
@@ -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\"
|
|
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\"",
|
|
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\"
|
|
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\"",
|
|
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>"
|
|
@@ -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
|
package/docs/SOLID2-PREVIEW.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Solid 2 preview qualification
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
>
|
|
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.
|
|
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
|
|
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
|
|
257
|
-
|
|
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,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.
|
|
3
|
+
"version": "8.0.0-solid2.1",
|
|
4
4
|
"description": "SolidJS components for rendering MCP-generated UI resources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -16,6 +16,7 @@
|
|
|
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",
|
|
19
20
|
"docs/ZOD4-STABLE-MIGRATION-2026-10-26.md",
|
|
20
21
|
"LICENSE"
|
|
21
22
|
],
|
|
@@ -233,7 +234,7 @@
|
|
|
233
234
|
"@antv/g6": "^5.0.0",
|
|
234
235
|
"@duckdb/duckdb-wasm": "^1.28.0",
|
|
235
236
|
"@tanstack/virtual-core": "3.13.18",
|
|
236
|
-
"@solidjs/web": "2.0.0-rc.
|
|
237
|
+
"@solidjs/web": "2.0.0-rc.20",
|
|
237
238
|
"chart.js": "^4.0.0",
|
|
238
239
|
"chartjs-plugin-zoom": "^2.0.0",
|
|
239
240
|
"highlight.js": "^11.9.0",
|
|
@@ -241,7 +242,7 @@
|
|
|
241
242
|
"leaflet": "^1.9.4",
|
|
242
243
|
"leaflet.markercluster": "^1.5.0",
|
|
243
244
|
"protomaps-leaflet": "^4.0.0",
|
|
244
|
-
"solid-js": "2.0.0-rc.
|
|
245
|
+
"solid-js": "2.0.0-rc.20"
|
|
245
246
|
},
|
|
246
247
|
"peerDependenciesMeta": {
|
|
247
248
|
"@antv/g6": {
|
|
@@ -287,10 +288,10 @@
|
|
|
287
288
|
"@size-limit/esbuild-why": "^12.0.0",
|
|
288
289
|
"@size-limit/preset-small-lib": "^12.0.0",
|
|
289
290
|
"@solidjs/testing-library": "1.0.0-rc.2",
|
|
290
|
-
"@solidjs/web": "2.0.0-rc.
|
|
291
|
-
"@solidjs/signals": "2.0.0-rc.
|
|
292
|
-
"@solidjs/compiler": "2.0.0-rc.
|
|
293
|
-
"@solidjs/babel-plugin": "2.0.0-rc.
|
|
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",
|
|
294
295
|
"@solidjs/vite-plugin": "3.0.0-next.51",
|
|
295
296
|
"@tanstack/virtual-core": "3.13.18",
|
|
296
297
|
"@types/leaflet": "^1.9.8",
|
|
@@ -305,7 +306,7 @@
|
|
|
305
306
|
"katex": "0.18.4",
|
|
306
307
|
"leaflet.markercluster": "^1.5.3",
|
|
307
308
|
"size-limit": "^12.0.0",
|
|
308
|
-
"solid-js": "2.0.0-rc.
|
|
309
|
+
"solid-js": "2.0.0-rc.20",
|
|
309
310
|
"typescript": "^5.3.3",
|
|
310
311
|
"vite": "8.3.5",
|
|
311
312
|
"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
|
-
|
|
90
|
-
|
|
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:${
|
|
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=${
|
|
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(() => ({
|
|
151
|
-
|
|
152
|
-
|
|
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,
|