@seed-ship/mcp-ui-solid 6.25.1 → 7.0.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 +22 -0
- package/README.md +14 -0
- package/dist/adapters/connector.cjs +3 -3
- package/dist/adapters/connector.cjs.map +1 -1
- package/dist/adapters/connector.d.cts +108 -0
- package/dist/adapters/connector.d.ts +1 -2
- package/dist/adapters/connector.js +3 -3
- package/dist/adapters/connector.js.map +1 -1
- package/dist/adapters/index.d.cts +21 -0
- package/dist/adapters/index.d.ts +6 -7
- package/dist/adapters/macro-run.d.cts +99 -0
- package/dist/adapters/macro-run.d.ts +1 -2
- package/dist/adapters/presentation.d.cts +1 -2
- package/dist/adapters/presentation.d.ts +1 -2
- package/dist/adapters.d.cts +1 -1
- package/dist/adapters.d.ts +1 -1
- package/dist/components/ActionGroupRenderer.d.cts +38 -0
- package/dist/components/ActionGroupRenderer.d.ts +1 -2
- package/dist/components/ActionRenderer.d.cts +9 -0
- package/dist/components/ActionRenderer.d.ts +0 -1
- package/dist/components/AgentCard.d.cts +19 -0
- package/dist/components/AgentCard.d.ts +1 -2
- package/dist/components/AgentHandoff.d.cts +11 -0
- package/dist/components/AgentHandoff.d.ts +1 -2
- package/dist/components/ArtifactRenderer.d.cts +11 -0
- package/dist/components/ArtifactRenderer.d.ts +0 -1
- package/dist/components/AutocompleteDropdown.d.cts +70 -0
- package/dist/components/AutocompleteDropdown.d.ts +1 -2
- package/dist/components/AutocompleteFormField.d.cts +51 -0
- package/dist/components/AutocompleteFormField.d.ts +1 -2
- package/dist/components/BriefingDiff.d.cts +11 -0
- package/dist/components/BriefingDiff.d.ts +1 -2
- package/dist/components/CarouselRenderer.d.cts +12 -0
- package/dist/components/CarouselRenderer.d.ts +1 -2
- package/dist/components/ChartJSRenderer.d.cts +62 -0
- package/dist/components/ChartJSRenderer.d.ts +1 -2
- package/dist/components/ChatPrompt.d.cts +69 -0
- package/dist/components/ChatPrompt.d.ts +1 -2
- package/dist/components/CodeBlockRenderer.d.cts +23 -0
- package/dist/components/CodeBlockRenderer.d.ts +1 -2
- package/dist/components/ComponentToolbar.d.cts +46 -0
- package/dist/components/ComponentToolbar.d.ts +0 -1
- package/dist/components/DataPreviewSection.d.cts +11 -0
- package/dist/components/DataPreviewSection.d.ts +1 -2
- package/dist/components/DegradedFallback.d.cts +43 -0
- package/dist/components/DegradedFallback.d.ts +0 -1
- package/dist/components/DraggableGridItem.d.cts +94 -0
- package/dist/components/DraggableGridItem.d.ts +1 -2
- package/dist/components/EditableLayoutContext.d.cts +4 -0
- package/dist/components/EditableLayoutContext.d.ts +0 -1
- package/dist/components/EditableUIResourceRenderer.d.cts +42 -0
- package/dist/components/EditableUIResourceRenderer.d.ts +1 -2
- package/dist/components/ElicitationForm.d.cts +67 -0
- package/dist/components/ElicitationForm.d.ts +1 -2
- package/dist/components/ExpandableWrapper.d.cts +49 -0
- package/dist/components/ExpandableWrapper.d.ts +0 -1
- package/dist/components/FeedbackInline.d.cts +70 -0
- package/dist/components/FeedbackInline.d.ts +0 -1
- package/dist/components/FooterRenderer.d.cts +15 -0
- package/dist/components/FooterRenderer.d.ts +0 -1
- package/dist/components/FormFieldRenderer.d.cts +19 -0
- package/dist/components/FormFieldRenderer.d.ts +1 -2
- package/dist/components/FormRenderer.d.cts +14 -0
- package/dist/components/FormRenderer.d.ts +1 -2
- package/dist/components/GenerativeUIErrorBoundary.d.cts +58 -0
- package/dist/components/GenerativeUIErrorBoundary.d.ts +1 -2
- package/dist/components/GenerativeUIErrorBoundary.default.d.cts +1 -0
- package/dist/components/GenerativeUIErrorBoundary.default.d.ts +1 -2
- package/dist/components/GhostText.d.cts +112 -0
- package/dist/components/GhostText.d.ts +0 -1
- package/dist/components/GraphRenderer.d.cts +66 -0
- package/dist/components/GraphRenderer.d.ts +1 -2
- package/dist/components/GridRenderer.d.cts +49 -0
- package/dist/components/GridRenderer.d.ts +1 -2
- package/dist/components/IframeFallbackLink.d.cts +22 -0
- package/dist/components/IframeFallbackLink.d.ts +0 -1
- package/dist/components/ImageGalleryRenderer.d.cts +22 -0
- package/dist/components/ImageGalleryRenderer.d.ts +1 -2
- package/dist/components/LightboxOverlay.d.cts +31 -0
- package/dist/components/LightboxOverlay.d.ts +1 -2
- package/dist/components/MapRenderer.d.cts +77 -0
- package/dist/components/MapRenderer.d.ts +1 -2
- package/dist/components/MissingValue.d.cts +26 -0
- package/dist/components/MissingValue.d.ts +0 -1
- package/dist/components/ModalRenderer.d.cts +66 -0
- package/dist/components/ModalRenderer.d.ts +1 -2
- package/dist/components/PortalDropdownMenu.d.cts +55 -0
- package/dist/components/PortalDropdownMenu.d.ts +0 -1
- package/dist/components/PresentationFeedback.d.cts +112 -0
- package/dist/components/PresentationFeedback.d.ts +0 -1
- package/dist/components/RenderContext.d.cts +41 -0
- package/dist/components/RenderContext.d.ts +1 -2
- package/dist/components/ResizeHandle.d.cts +49 -0
- package/dist/components/ResizeHandle.d.ts +0 -1
- package/dist/components/SafeHtml.d.cts +45 -0
- package/dist/components/SafeHtml.d.ts +0 -1
- package/dist/components/ScratchpadPanel.d.cts +34 -0
- package/dist/components/ScratchpadPanel.d.ts +1 -2
- package/dist/components/SplitStepper.d.cts +11 -0
- package/dist/components/SplitStepper.d.ts +1 -2
- package/dist/components/StreamingUIRenderer.d.cts +58 -0
- package/dist/components/StreamingUIRenderer.d.ts +3 -4
- package/dist/components/UIResourceRenderer.d.cts +181 -0
- package/dist/components/UIResourceRenderer.d.ts +3 -4
- package/dist/components/UIResourceRenderer.default.d.cts +1 -0
- package/dist/components/UIResourceRenderer.default.d.ts +1 -2
- package/dist/components/VerifiedText.d.cts +22 -0
- package/dist/components/VerifiedText.d.ts +1 -2
- package/dist/components/VideoRenderer.d.cts +41 -0
- package/dist/components/VideoRenderer.d.ts +1 -2
- package/dist/components/chart-data-table.d.cts +68 -0
- package/dist/components/chart-data-table.d.ts +0 -1
- package/dist/components/chart-missing-plugin.d.cts +128 -0
- package/dist/components/chart-missing-plugin.d.ts +1 -2
- package/dist/components/index.d.cts +62 -0
- package/dist/components/index.d.ts +57 -58
- package/dist/components.d.cts +2 -2
- package/dist/components.d.ts +2 -2
- package/dist/context/AutocompleteContext.d.cts +76 -0
- package/dist/context/AutocompleteContext.d.ts +1 -2
- package/dist/context/MCPActionContext.d.cts +169 -0
- package/dist/context/MCPActionContext.d.ts +0 -1
- package/dist/context/MCPUIConfigContext.d.cts +201 -0
- package/dist/context/MCPUIConfigContext.d.ts +1 -2
- package/dist/context/MCPUIMathContext.d.cts +17 -0
- package/dist/context/MCPUIMathContext.d.ts +0 -1
- package/dist/context/MCPUIStringsContext.d.cts +802 -0
- package/dist/context/MCPUIStringsContext.d.ts +1 -2
- package/dist/context/MCPUITelemetryContext.d.cts +35 -0
- package/dist/context/MCPUITelemetryContext.d.ts +1 -2
- package/dist/context/index.d.cts +7 -0
- package/dist/context/index.d.ts +2 -3
- package/dist/hooks/createResponsiveGrid.d.cts +5 -0
- package/dist/hooks/createResponsiveGrid.d.ts +0 -1
- package/dist/hooks/index.d.cts +25 -0
- package/dist/hooks/index.d.ts +20 -21
- package/dist/hooks/useAction.d.cts +164 -0
- package/dist/hooks/useAction.d.ts +2 -3
- package/dist/hooks/useAutocomplete.d.cts +118 -0
- package/dist/hooks/useAutocomplete.d.ts +1 -2
- package/dist/hooks/useChatBus.d.cts +55 -0
- package/dist/hooks/useChatBus.d.ts +1 -2
- package/dist/hooks/useConditionalField.d.cts +34 -0
- package/dist/hooks/useConditionalField.d.ts +1 -2
- package/dist/hooks/useDataValidator.d.cts +41 -0
- package/dist/hooks/useDataValidator.d.ts +1 -2
- package/dist/hooks/useDragDrop.d.cts +99 -0
- package/dist/hooks/useDragDrop.d.ts +1 -2
- package/dist/hooks/useFormPersistence.d.cts +80 -0
- package/dist/hooks/useFormPersistence.d.ts +0 -1
- package/dist/hooks/useModal.d.cts +106 -0
- package/dist/hooks/useModal.d.ts +0 -1
- package/dist/hooks/useResize.d.cts +86 -0
- package/dist/hooks/useResize.d.ts +1 -2
- package/dist/hooks/useStreamingUI.d.cts +117 -0
- package/dist/hooks/useStreamingUI.d.ts +1 -2
- package/dist/hooks.d.cts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/index.d.cts +91 -92
- package/dist/index.d.ts +91 -92
- package/dist/plugins/duckdb.d.cts +1 -2
- package/dist/plugins/duckdb.d.ts +1 -2
- package/dist/plugins/groq.d.cts +12 -0
- package/dist/plugins/groq.d.ts +1 -2
- package/dist/plugins/index.d.cts +9 -0
- package/dist/plugins/index.d.ts +3 -4
- package/dist/plugins/katex.d.cts +1 -2
- package/dist/plugins/katex.d.ts +1 -2
- package/dist/plugins/rest.d.cts +12 -0
- package/dist/plugins/rest.d.ts +1 -2
- package/dist/plugins/supabase.d.cts +12 -0
- package/dist/plugins/supabase.d.ts +1 -2
- package/dist/services/chat-bus.d.cts +100 -0
- package/dist/services/chat-bus.d.ts +1 -2
- package/dist/services/chat-prompt-controller.d.cts +92 -0
- package/dist/services/chat-prompt-controller.d.ts +1 -2
- package/dist/services/component-registry.d.cts +119 -0
- package/dist/services/component-registry.d.ts +1 -2
- package/dist/services/data-validator.d.cts +27 -0
- package/dist/services/data-validator.d.ts +1 -2
- package/dist/services/index.d.cts +9 -0
- package/dist/services/index.d.ts +4 -5
- package/dist/services/telemetry.d.cts +86 -0
- package/dist/services/telemetry.d.ts +1 -2
- package/dist/services/validation.d.cts +169 -0
- package/dist/services/validation.d.ts +1 -2
- package/dist/stores/scratchpad-store.d.cts +109 -0
- package/dist/stores/scratchpad-store.d.ts +1 -2
- package/dist/stores/server-capabilities-store.d.cts +171 -0
- package/dist/stores/server-capabilities-store.d.ts +0 -1
- package/dist/test-setup.d.cts +5 -0
- package/dist/test-setup.d.ts +0 -1
- package/dist/testing/index.d.cts +34 -0
- package/dist/testing/index.d.ts +1 -2
- package/dist/types/chat-bus.d.cts +783 -0
- package/dist/types/chat-bus.d.ts +4 -5
- package/dist/types/index.d.cts +1616 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types-export.d.cts +1 -2
- package/dist/types-export.d.ts +1 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/degraded-projections.d.cts +119 -0
- package/dist/utils/degraded-projections.d.ts +0 -1
- package/dist/utils/duplicate-mount-registry.d.cts +83 -0
- package/dist/utils/duplicate-mount-registry.d.ts +0 -1
- package/dist/utils/escape-html.d.cts +12 -0
- package/dist/utils/escape-html.d.ts +0 -1
- package/dist/utils/format-string.d.cts +25 -0
- package/dist/utils/format-string.d.ts +0 -1
- package/dist/utils/iframe-coep.d.cts +53 -0
- package/dist/utils/iframe-coep.d.ts +1 -2
- package/dist/utils/logger.d.cts +57 -0
- package/dist/utils/logger.d.ts +0 -1
- package/dist/utils/math-markdown.d.cts +15 -0
- package/dist/utils/math-markdown.d.ts +1 -2
- package/dist/utils/missing-value.d.cts +78 -0
- package/dist/utils/missing-value.d.ts +0 -1
- package/dist/utils/pan-zoom.d.cts +234 -0
- package/dist/utils/pan-zoom.d.ts +0 -1
- package/dist/utils/perf.d.cts +18 -0
- package/dist/utils/perf.d.ts +0 -1
- package/dist/utils/safe-url.d.cts +33 -0
- package/dist/utils/safe-url.d.ts +0 -1
- package/dist/utils/sanitize-html.d.cts +142 -0
- package/dist/utils/sanitize-html.d.ts +0 -1
- package/dist/utils/stable-key.d.cts +32 -0
- package/dist/utils/stable-key.d.ts +0 -1
- package/dist/utils/theme.d.cts +10 -0
- package/dist/utils/theme.d.ts +0 -1
- package/dist/validation.d.cts +3 -4
- package/dist/validation.d.ts +3 -4
- package/docs/SECURITY-DEPENDENCIES.md +129 -1
- package/docs/ZOD4-STABLE-MIGRATION-2026-10-26.md +181 -0
- package/package.json +8 -7
- package/src/adapters/connector.ts +3 -3
|
@@ -1,7 +1,135 @@
|
|
|
1
|
-
# Security dependency notes
|
|
1
|
+
# Security dependency notes
|
|
2
|
+
|
|
3
|
+
## 2026-10-26 — stable fast-uri follow-up after PR #40
|
|
4
|
+
|
|
5
|
+
The workspace override floor moves from `^3.1.6` to `^3.1.9`; the pnpm 8.15.0
|
|
6
|
+
lockfile resolves **3.1.9**, without a major-4 upgrade or unrelated updates.
|
|
7
|
+
The upstream [3.1.9 release](https://github.com/fastify/fast-uri/releases/tag/v3.1.9)
|
|
8
|
+
fixes these four advisory entries:
|
|
9
|
+
|
|
10
|
+
- Moderate: [percent-decoded scheme spoofing](https://github.com/advisories/GHSA-w74x-v6f9-j3xg)
|
|
11
|
+
and [authority host confusion](https://github.com/advisories/GHSA-wjr9-j795-jxcr).
|
|
12
|
+
- Low: [relative-reference path equivalence](https://github.com/advisories/GHSA-xhq7-xmqj-769h)
|
|
13
|
+
and [suffix-reference scheme injection](https://github.com/advisories/GHSA-333x-w4r6-6crp).
|
|
14
|
+
|
|
15
|
+
The CLI publishes a direct `fast-uri: ^3.1.9` dependency and injects its default
|
|
16
|
+
import into **both** Ajv instances with the documented
|
|
17
|
+
[`uriResolver` option](https://ajv.js.org/options.html#uriresolver).
|
|
18
|
+
Ajv 8.18.0 itself requests `^3.0.1`: a workspace override or a direct dependency
|
|
19
|
+
without explicit injection cannot guarantee which copy Ajv uses in a consumer.
|
|
20
|
+
Vite leaves the dependency external in ESM and CJS, as it does for Ajv.
|
|
21
|
+
|
|
22
|
+
This protects the CLI's schema-ID and `$ref` resolution, not every URI policy
|
|
23
|
+
in a host. `validate` compiles the fixed Spec JSON Schema; `test-examples`
|
|
24
|
+
compiles registry-supplied component schemas. Format checks are a separate Ajv
|
|
25
|
+
formats path. The suffix advisory requires a non-default option not used by
|
|
26
|
+
these commands; this is not a claim that all four exploits were CLI-reachable.
|
|
27
|
+
|
|
28
|
+
Fresh full and production workspace `pnpm audit --json` runs move from four
|
|
29
|
+
entries (two moderate, two low) to **zero**, both exiting 0 after the update.
|
|
30
|
+
GitHub alerts require a separate merge/rescan; none is dismissed or suppressed.
|
|
31
|
+
An independent packed-consumer gate intentionally retains `fast-uri` 3.1.8
|
|
32
|
+
under Ajv and checks that both public CLI module formats use the direct 3.1.9
|
|
33
|
+
resolver instead. That control consumer is deliberately not audit-clean;
|
|
34
|
+
applications must update and audit their own complete dependency trees.
|
|
35
|
+
|
|
36
|
+
No renderer, Solid peer, Zod schema, package version or release workflow changes.
|
|
37
|
+
The prepared Spec 6.0.0 / Solid 7.0.0 (Solid 1) / CLI 5.0.2 versions are retained.
|
|
38
|
+
This PR neither stages nor publishes them and does not resume Solid 2 PR #34.
|
|
39
|
+
|
|
40
|
+
## 2026-10-26 — prepared stable-line Zod 4 migration
|
|
41
|
+
|
|
42
|
+
Spec 6.0.0, MCPUI Solid 7.0.0 (still Solid 1) and CLI 5.0.2 prepare real Zod
|
|
43
|
+
4.6.6 with preserved JSON omission/error-code contracts and qualified emitted
|
|
44
|
+
package declarations. This is not a Solid 2 migration or publication approval.
|
|
45
|
+
See the [decision and qualification record](./ZOD4-STABLE-MIGRATION-2026-10-26.md).
|
|
46
|
+
|
|
47
|
+
Fresh baseline full audit: one HIGH Zod plus four fast-uri entries. After the
|
|
48
|
+
upgrade, Zod is absent but the two moderate/two low fast-uri advisories remain
|
|
49
|
+
in full and production audits. Both still exit nonzero. Reconcile GitHub alerts
|
|
50
|
+
after a merge/rescan separately; no advisory is dismissed by this change.
|
|
51
|
+
|
|
52
|
+
The records below describe their dated pre-migration state; they do not override
|
|
53
|
+
the newer evidence or establish a current clean security audit.
|
|
54
|
+
|
|
55
|
+
## 2026-10-24 — compatible tooling fixes, runtime Zod still unresolved
|
|
56
|
+
|
|
57
|
+
This follow-up updates development tooling on the stable Solid 1 line. It does
|
|
58
|
+
not migrate Zod, change public schemas, dismiss advisories, or publish a package.
|
|
59
|
+
|
|
60
|
+
| Dependency | Previous lock | Updated lock | Scope |
|
|
61
|
+
| --- | --- | --- | --- |
|
|
62
|
+
| Vite | 6.4.3 | 6.4.5 | CLI, Spec and Solid development/build/test tooling; stays on major 6, compatible with the existing Solid 1 plugin. |
|
|
63
|
+
| Vitest / `@vitest/ui` / `@vitest/mocker` | 4.1.11 | 4.1.12 | Test tooling; UI is declared only by Solid. |
|
|
64
|
+
|
|
65
|
+
The exact development pins and pnpm 8.15.0 lockfile update target the five Vite
|
|
66
|
+
advisories ([Windows existence check](https://github.com/advisories/GHSA-587h-7wmj-h5pm),
|
|
67
|
+
[argument escaping](https://github.com/advisories/GHSA-698v-4r3x-3vcv),
|
|
68
|
+
[editor flags](https://github.com/advisories/GHSA-r825-w8mm-5pxw),
|
|
69
|
+
[cross-origin middleware](https://github.com/advisories/GHSA-9jrq-w75r-8gcw),
|
|
70
|
+
[filesystem allowlist](https://github.com/advisories/GHSA-rq7h-c2jc-7f22)) and
|
|
71
|
+
two mocker advisories ([manual registration](https://github.com/advisories/GHSA-qxg6-89mg-rqv8),
|
|
72
|
+
[Windows traversal](https://github.com/advisories/GHSA-xp26-3454-mjgp)).
|
|
73
|
+
|
|
74
|
+
Fresh full-workspace `pnpm audit --json` comparison on this date:
|
|
75
|
+
|
|
76
|
+
- Baseline lock: 8 distinct advisories (2 high, 5 moderate, 1 low).
|
|
77
|
+
- Updated lock: **1 high**, runtime Zod
|
|
78
|
+
[`GHSA-mrhx-c7xc-m3w5`](https://github.com/advisories/GHSA-mrhx-c7xc-m3w5).
|
|
79
|
+
- Audit exit status remains nonzero. This is not a clean security audit.
|
|
80
|
+
- GitHub's 11 open Dependabot alerts include four occurrences of the same Zod
|
|
81
|
+
advisory across manifests/lockfile. Removing seven tooling advisory entries
|
|
82
|
+
from this lock does not by itself close GitHub alerts: merge and rescan are
|
|
83
|
+
separate evidence, and package publication is separate again.
|
|
84
|
+
|
|
85
|
+
No runtime dependency, `solid-js` peer, Solid/plugin resolution, package version
|
|
86
|
+
or wire schema changes. In particular Zod remains `3.25.76`; no override forces
|
|
87
|
+
an incompatible Zod 4 resolution under the published `^3.22.4` dependency ranges.
|
|
88
|
+
The only related non-tooling lock change is Picomatch deduplication to an already
|
|
89
|
+
present `4.0.7` through the updated Vite peer graph.
|
|
90
|
+
|
|
91
|
+
### Why this does not silently switch to `zod/v3` in a Zod 4 package
|
|
92
|
+
|
|
93
|
+
The advisory lists a fix in 4.6.6. The
|
|
94
|
+
[upstream fix](https://github.com/colinhacks/zod/commit/a0ebf970f2d752e5f58527cd2942ff48be4f46bd)
|
|
95
|
+
changes the v4 collection parsers, not v3. The array, set and map parser classes
|
|
96
|
+
in the published `4.6.7/v3` API are identical to the corresponding `3.25.76`
|
|
97
|
+
classes. Using the newer package with the old subpath is not a remediation.
|
|
98
|
+
|
|
99
|
+
A bounded local probe used 32 elements, never an OOM test. For array `.max(2)`,
|
|
100
|
+
array `.length(2)` and set `.size(2)`, both old root and new `/v3` performed 32
|
|
101
|
+
element callbacks and produced 33 issues for invalid values. The real v4 API
|
|
102
|
+
stopped before element parsing and produced one issue. Synchronous and async
|
|
103
|
+
results agreed. An unbounded array still visits all elements in every version:
|
|
104
|
+
input and collection limits remain necessary even after migrating.
|
|
105
|
+
|
|
106
|
+
Spec exports its schema objects and inferred types. A real v4 migration must
|
|
107
|
+
qualify those public APIs, records, optional/default output behavior and errors
|
|
108
|
+
against the [migration guide](https://zod.dev/v4/changelog). It is a separate
|
|
109
|
+
versioning decision, not a safe lockfile-only patch. A workspace-only fork or
|
|
110
|
+
patch would not automatically protect consumers either.
|
|
111
|
+
|
|
112
|
+
The current Solid entry-point size check also continues into schema validation
|
|
113
|
+
after collecting its size error. Changing that path can reduce local exposure,
|
|
114
|
+
but cannot fix exported Zod 3 schemas called directly by consumers; it must not
|
|
115
|
+
be presented as closing the entire advisory. Runtime Zod remediation remains
|
|
116
|
+
an explicit follow-up before claiming the release is security-ready.
|
|
117
|
+
|
|
118
|
+
### Relation to Dependabot PR #37
|
|
119
|
+
|
|
120
|
+
That PR's inspected head `27ed1dc168c8efd8acc523fd3fbd1b87c046b558`
|
|
121
|
+
changes only the lockfile, resolving Zod 4.6.7 against `^3.22.4` manifest
|
|
122
|
+
specifiers. Its CI fails building Spec with 20 `z.record` signature errors.
|
|
123
|
+
This compatible tooling follow-up does not adopt that resolution or claim to
|
|
124
|
+
supersede the remaining Zod work. Reassess any later revision of #37 separately.
|
|
125
|
+
|
|
126
|
+
## Historical record: 6.25.1, verified 2026-10-18
|
|
2
127
|
|
|
3
128
|
Verified on 2026-10-18. This is a dependency-remediation record, not a claim
|
|
4
129
|
that every renderer or consuming application has been security-audited.
|
|
130
|
+
The sections below preserve that historical snapshot. Their former single
|
|
131
|
+
`braces` advisory count is not the current audit result above; its absence from
|
|
132
|
+
the current feed is not a claim that this PR patched it.
|
|
5
133
|
|
|
6
134
|
## Updates
|
|
7
135
|
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# Zod 4 on the stable Solid 1 line — 2026-10-26
|
|
2
|
+
|
|
3
|
+
## Authority and boundaries
|
|
4
|
+
|
|
5
|
+
Implements the [Deposium brief at c4835ec5d](https://github.com/theseedship/deposium_solid/blob/c4835ec5d/docs/handoffs/BRIEF-MCPUI-ZOD4-STABLE-2026-10-26.md)
|
|
6
|
+
from stable main `725f862ac76170c40ab796a1d4773b0dbb90be27`, in isolated branch
|
|
7
|
+
`fix/zod4-stable-security`. The dirty shared checkout is untouched. This is
|
|
8
|
+
preparation of installable stable packages, not publication authorization.
|
|
9
|
+
|
|
10
|
+
Solid remains 1.9.17 in the producer lock with the unchanged `^1.9.0` peer.
|
|
11
|
+
No Solid 2 runtime, visual redesign, MCP protocol change, toolchain upgrade,
|
|
12
|
+
Deposium change, SQL access or deployment is included. PR #34 and its preserved
|
|
13
|
+
branch remain paused; no preview workflow or archive is consumed here.
|
|
14
|
+
|
|
15
|
+
## Versions and SemVer decision
|
|
16
|
+
|
|
17
|
+
| Candidate | Version | Reason |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| Spec | 6.0.0 | Its public schema objects and inferred Zod types move from Zod 3 to 4. |
|
|
20
|
+
| MCPUI Solid | 7.0.0 | Conservative compatibility boundary for the Spec 6 minimum and public Spec-derived types. It still uses Solid 1 and does not directly export Zod schema classes. |
|
|
21
|
+
| CLI | 5.0.2 | The public file/options command functions remain unchanged; Zod is an internal dependency and the additional changes fix packaging/validation defects. |
|
|
22
|
+
|
|
23
|
+
All three declare exact Zod `4.6.6`, the corrected version requested by the
|
|
24
|
+
brief. Solid and CLI declare `workspace:^6.0.0` for Spec; pnpm pack converts
|
|
25
|
+
this to public `^6.0.0`. A consumer-only override to the exact local Spec tarball
|
|
26
|
+
allows testing these unpublished candidates; it is not a source alias or a
|
|
27
|
+
replacement for publishing Spec first. No workspace override pretends to fix
|
|
28
|
+
old installed application copies.
|
|
29
|
+
|
|
30
|
+
The old unpublished `7.0.0-solid2.0` experiment is historical, not an alternative
|
|
31
|
+
package for this stable Solid 1 candidate. If Solid 2 is resumed later, reassess
|
|
32
|
+
its package version and reviewed channel policy. Do not publish that old archive
|
|
33
|
+
or widen its peers to reconcile the numbers.
|
|
34
|
+
|
|
35
|
+
## Compatibility decisions
|
|
36
|
+
|
|
37
|
+
- Convert the 20 Spec and three connector single-argument records to explicit
|
|
38
|
+
string keys. The existing two-argument `citationMap` contract is untouched.
|
|
39
|
+
- Remove six inert inner defaults whose Zod 3 outer `.optional()` prevented
|
|
40
|
+
materialization. Preserve both absent keys and own keys with `undefined` in
|
|
41
|
+
grid, security, performance and component metadata; tests compare complete
|
|
42
|
+
parsed objects with `toStrictEqual` and ownership checks.
|
|
43
|
+
- Make raw macro outcome `content` explicitly optional, preserving the old
|
|
44
|
+
acceptance of missing/undefined content. Other stored macro shapes stay valid.
|
|
45
|
+
- Give gallery transforms truthful string-input/numeric-literal-output types
|
|
46
|
+
and recursive macro schemas explicit input/output types, without `as any`.
|
|
47
|
+
- Preserve Solid's application `ValidationResult.errors[].code` and `params.*`
|
|
48
|
+
paths. Human-readable native Zod diagnostics may differ, for example missing
|
|
49
|
+
text changes from `Required` to `Invalid input: expected string, received
|
|
50
|
+
undefined`. The invalid payload is rejected in both versions and the renderer
|
|
51
|
+
still shows the same validation-notice structure; no renderer code is changed.
|
|
52
|
+
- CLI uses `ZodError.issues`, not its removed `errors` alias. Ajv's separate
|
|
53
|
+
`validate.errors` is retained. Existing JSON Schema hostname/URI constraints
|
|
54
|
+
are registered with the official formats plugin, not disabled. Zod and JSON
|
|
55
|
+
Schema are not identical: a hostname can pass the former and fail Ajv, as an
|
|
56
|
+
explicit regression test demonstrates.
|
|
57
|
+
|
|
58
|
+
## Pre-existing packaging gates repaired
|
|
59
|
+
|
|
60
|
+
The baseline build passed while emitted-package contracts were broken:
|
|
61
|
+
|
|
62
|
+
- Spec `/schemas` pointed to nonexistent JS/CJS files and its build deleted a
|
|
63
|
+
declaration folder still referenced by `types.d.ts`.
|
|
64
|
+
- CLI's advertised declarations were not produced by its canonical build, its
|
|
65
|
+
JSON Schema lookup relied on repository layout, and CommonJS default interop
|
|
66
|
+
made Ora non-callable.
|
|
67
|
+
- Strict NodeNext consumers encountered extensionless declaration references
|
|
68
|
+
in Spec and Solid, including copied CJS wrappers targeting the ESM graph.
|
|
69
|
+
|
|
70
|
+
The build retains the complete Spec declaration graph, exposes the actual
|
|
71
|
+
runtime subpaths and JSON Schema, emits CLI types, and normalizes real emitted
|
|
72
|
+
declarations using TypeScript AST nodes. ESM references use explicit `.js` and
|
|
73
|
+
the complete CJS declaration graph uses `.cjs`/`.d.cts`; unresolved relative
|
|
74
|
+
references fail the build. Bare imports and comments are not rewritten. These
|
|
75
|
+
are qualified against installed tarballs, not only source aliases.
|
|
76
|
+
|
|
77
|
+
## Measured baseline and regressions
|
|
78
|
+
|
|
79
|
+
Producer toolchain: Node 24.19.0, pnpm 8.15.0, TypeScript 5.9.3, Vitest 4.1.12.
|
|
80
|
+
Hosted CI uses Node 22 and is an independent gate; no Deposium tool installation
|
|
81
|
+
or pnpm 10 conversion substitutes for this repository's frozen lock.
|
|
82
|
+
|
|
83
|
+
- Baseline main build/types/lint pass: 128 files, 2,355 tests passed plus one
|
|
84
|
+
existing skip; zero lint errors and 425 existing warnings.
|
|
85
|
+
- New compatibility tests pass on Zod 3. Under Zod 4 before source adaptation,
|
|
86
|
+
omitted-default and missing-macro-content cases fail, then pass after the fix.
|
|
87
|
+
- On real Zod 3, three visit-counter tests fail because bounded collections are
|
|
88
|
+
walked before rejection. Real Zod 4.6.6 rejects leading oversized bounds with
|
|
89
|
+
zero visits, including synchronous/asynchronous and compiled paths. Controls
|
|
90
|
+
show that allowed values are transformed, overwrite order matters, and
|
|
91
|
+
unbounded collections still visit every element. No OOM or timing claim.
|
|
92
|
+
- CLI's removed error alias and missing format registration reproduce real
|
|
93
|
+
failures before the corresponding fixes, then pass with the real parsers.
|
|
94
|
+
- Existing baseline emitted-package failures and candidate failure logs are
|
|
95
|
+
retained separately; they are not described as regressions caused by Zod.
|
|
96
|
+
|
|
97
|
+
Exact final counts, tarball SHA-256 values, actual installed resolutions and
|
|
98
|
+
consumer/browser reports are generated by the verification scripts and recorded
|
|
99
|
+
with the PR/CI artifacts. Intermediate archives are not release candidates.
|
|
100
|
+
|
|
101
|
+
Final local source gates: 133 Vitest files, 2,379 passing tests and the same one
|
|
102
|
+
existing GraphRenderer skip; build and all source/contracts/examples typechecks
|
|
103
|
+
pass, lint has zero errors and 425 existing warnings. The declaration-finalizer
|
|
104
|
+
tests and offline release safeguards contribute 50 separate Node tests.
|
|
105
|
+
|
|
106
|
+
The independent packed consumer passes strict NodeNext ESM/CJS and Bundler
|
|
107
|
+
typechecks across root/component/hook/validation/adapter public declarations,
|
|
108
|
+
with non-`any` renderer signatures. All three packages resolve Zod 4.6.6 and
|
|
109
|
+
Solid/CLI resolve the exact same packed Spec. Actual CLI ESM/CJS calls qualify
|
|
110
|
+
both successful registry validation and Ajv-only hostname rejection.
|
|
111
|
+
|
|
112
|
+
Chromium qualifies the full and optional-absent profiles under pinned Solid
|
|
113
|
+
1.9.17, Vite 6.4.5 and plugin 2.11.10. Table/citation/fullscreen/copy, Leaflet
|
|
114
|
+
marker and escaped tooltip, G6 canvas, optional KaTeX MathML, fallback states
|
|
115
|
+
and cleanup are exercised with no page/console errors. Two full-profile Leaflet
|
|
116
|
+
icon attempts are served locally; no external network reaches a remote host.
|
|
117
|
+
The host uses normal nested CommonJS prebundling for installed engines, not a
|
|
118
|
+
runtime alias. Missing-peer warnings are recorded in the absent profile.
|
|
119
|
+
|
|
120
|
+
### Preserved baseline SSR boundary
|
|
121
|
+
|
|
122
|
+
Plain Node loading of compiled Solid root/components still throws the existing
|
|
123
|
+
client-only error under server conditions, reproduced with baseline tarballs.
|
|
124
|
+
This lot does not add a new server distribution graph. Runtime-free validation
|
|
125
|
+
and the other supported Node entries are checked independently; optional KaTeX
|
|
126
|
+
is not loadable without its peer. These exceptions are reported, not called
|
|
127
|
+
successful plain-Node SSR imports.
|
|
128
|
+
|
|
129
|
+
The real Solid 1 SSR probe instead compiles the **installed tarball's public
|
|
130
|
+
`solid` source condition**, as intended by the existing host contract. Its
|
|
131
|
+
client independently uses installed emitted `dist`, not repository aliases;
|
|
132
|
+
table SSR/hydration and cleanup pass. The source/dist distinction is recorded
|
|
133
|
+
in resolution evidence. The baseline passes the same optional-absent fixture.
|
|
134
|
+
This does not establish compatibility with the real Deposium application.
|
|
135
|
+
|
|
136
|
+
## Security and resource limits
|
|
137
|
+
|
|
138
|
+
Fresh full audits on matching baseline/current locks: five distinct advisories
|
|
139
|
+
before (one HIGH Zod, two moderate/two low fast-uri), four after (the same
|
|
140
|
+
fast-uri entries). Production audit after migration still has those four
|
|
141
|
+
entries. Audit exit status remains nonzero; there is no clean-audit claim.
|
|
142
|
+
|
|
143
|
+
The [upstream fix](https://github.com/colinhacks/zod/commit/a0ebf970f2d752e5f58527cd2942ff48be4f46bd)
|
|
144
|
+
handles leading upper bounds before element parsing; it does not protect
|
|
145
|
+
unbounded schemas or unlimited request bodies. Zod 4's distribution also
|
|
146
|
+
contains a legacy `/v3` subpath: testing the installed active v4 parser and
|
|
147
|
+
scanning MCPUI source/output for legacy imports is the gate, not claiming the
|
|
148
|
+
upstream tarball contains no legacy files.
|
|
149
|
+
|
|
150
|
+
The existing `validateComponent` size check still accumulates
|
|
151
|
+
`PAYLOAD_TOO_LARGE` then calls the actual schema parser. Its size measure is
|
|
152
|
+
`JSON.stringify(component).length`, not UTF-8 bytes. A small real-parser spy
|
|
153
|
+
regression records this unchanged behavior; no arbitrary new map/table caps or
|
|
154
|
+
claim of universal payload hardening is included. A fail-fast change would be
|
|
155
|
+
a separate reviewed hardening commit, with its own public-error contracts.
|
|
156
|
+
|
|
157
|
+
## Reproduction and release gates
|
|
158
|
+
|
|
159
|
+
```sh
|
|
160
|
+
pnpm install --frozen-lockfile --ignore-scripts
|
|
161
|
+
pnpm build
|
|
162
|
+
pnpm typecheck
|
|
163
|
+
pnpm lint
|
|
164
|
+
pnpm -r exec vitest run --maxWorkers=4
|
|
165
|
+
node --test scripts/finalize-declarations.test.mjs scripts/solid2-preview/verify.test.mjs
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
The Spec typecheck compiles existing type assertions and new contracts, not
|
|
169
|
+
just Vitest. The independent consumer runner in `scripts/zod4-stable/` accepts
|
|
170
|
+
actual packed Spec/Solid/CLI paths and expected versions. It checks installed
|
|
171
|
+
resolutions, public entries and strict NodeNext/Bundler declarations without
|
|
172
|
+
`skipLibCheck`; real Chromium/SSR probes report their graph/conditions and any
|
|
173
|
+
baseline limitations explicitly. JSDOM tests are never called browser proof.
|
|
174
|
+
|
|
175
|
+
Before publication: require green CI/review and separate explicit approval.
|
|
176
|
+
Stage/publish Spec first, verify it is public, then stage Solid with the
|
|
177
|
+
qualified Spec minimum (and CLI when requested). Keep the pnpm-pack → npm-stage
|
|
178
|
+
flow. An upload is not a public release: maintainer npm 2FA remains separate.
|
|
179
|
+
Check public/staged state before retrying; no blind version bump, duplicate
|
|
180
|
+
stage, Git tag, workflow dispatch, preview or `latest` mutation is authorized
|
|
181
|
+
by this record. Deposium consumption requires its own worktree/tests/build/PR.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seed-ship/mcp-ui-solid",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "SolidJS components for rendering MCP-generated UI resources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"CHANGELOG.md",
|
|
14
14
|
"docs/THEMING.md",
|
|
15
15
|
"docs/SECURITY-DEPENDENCIES.md",
|
|
16
|
+
"docs/ZOD4-STABLE-MIGRATION-2026-10-26.md",
|
|
16
17
|
"LICENSE"
|
|
17
18
|
],
|
|
18
19
|
"sideEffects": [
|
|
@@ -231,11 +232,11 @@
|
|
|
231
232
|
}
|
|
232
233
|
},
|
|
233
234
|
"dependencies": {
|
|
234
|
-
"@seed-ship/mcp-ui-spec": "^
|
|
235
|
+
"@seed-ship/mcp-ui-spec": "^6.0.0",
|
|
235
236
|
"@types/dompurify": "^3.0.5",
|
|
236
237
|
"dompurify": "^3.4.17",
|
|
237
238
|
"marked": "^16.3.0",
|
|
238
|
-
"zod": "
|
|
239
|
+
"zod": "4.6.6"
|
|
239
240
|
},
|
|
240
241
|
"devDependencies": {
|
|
241
242
|
"@size-limit/esbuild": "^12.0.0",
|
|
@@ -248,7 +249,7 @@
|
|
|
248
249
|
"@types/node": "^22.0.0",
|
|
249
250
|
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
|
250
251
|
"@typescript-eslint/parser": "^6.15.0",
|
|
251
|
-
"@vitest/ui": "
|
|
252
|
+
"@vitest/ui": "4.1.12",
|
|
252
253
|
"chart.js": "^4.5.1",
|
|
253
254
|
"eslint": "^8.56.0",
|
|
254
255
|
"jsdom": "^27.2.0",
|
|
@@ -257,9 +258,9 @@
|
|
|
257
258
|
"size-limit": "^12.0.0",
|
|
258
259
|
"solid-js": "^1.9.17",
|
|
259
260
|
"typescript": "^5.3.3",
|
|
260
|
-
"vite": "
|
|
261
|
+
"vite": "6.4.5",
|
|
261
262
|
"vite-plugin-solid": "^2.11.8",
|
|
262
|
-
"vitest": "
|
|
263
|
+
"vitest": "4.1.12"
|
|
263
264
|
},
|
|
264
265
|
"keywords": [
|
|
265
266
|
"mcp",
|
|
@@ -283,7 +284,7 @@
|
|
|
283
284
|
},
|
|
284
285
|
"scripts": {
|
|
285
286
|
"build": "vite build && pnpm build:types",
|
|
286
|
-
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist --composite false && pnpm build:types:copy && cp dist/plugins/katex.d.ts dist/plugins/katex.d.cts",
|
|
287
|
+
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist --composite false && pnpm build:types:copy && cp dist/plugins/katex.d.ts dist/plugins/katex.d.cts && node ../scripts/finalize-declarations.mjs dist",
|
|
287
288
|
"build:types:copy": "printf \"export * from './components/index';\\nexport { default } from './components/index';\\n\" > dist/components.d.ts && printf \"export * from './hooks/index';\\n\" > dist/hooks.d.ts && printf \"export * from './types/index';\\n\" > dist/types.d.ts && printf \"export * from './adapters/index';\\n\" > dist/adapters.d.ts && pnpm build:types:cts",
|
|
288
289
|
"build:types:cts": "cp dist/index.d.ts dist/index.d.cts && cp dist/components.d.ts dist/components.d.cts 2>/dev/null || true && cp dist/hooks.d.ts dist/hooks.d.cts 2>/dev/null || true && cp dist/types.d.ts dist/types.d.cts 2>/dev/null || true && cp dist/validation.d.ts dist/validation.d.cts 2>/dev/null || true && cp dist/types-export.d.ts dist/types-export.d.cts 2>/dev/null || true && cp dist/adapters.d.ts dist/adapters.d.cts 2>/dev/null || true && cp dist/adapters/presentation.d.ts dist/adapters/presentation.d.cts 2>/dev/null || true && cp dist/plugins/duckdb.d.ts dist/plugins/duckdb.d.cts 2>/dev/null || true",
|
|
289
290
|
"dev": "vite build --watch",
|
|
@@ -141,9 +141,9 @@ const LenientResultSchema = z.object({
|
|
|
141
141
|
query: z.string(),
|
|
142
142
|
queryHash: z.string().optional(),
|
|
143
143
|
intent: z.string().optional(),
|
|
144
|
-
primary: z.record(z.unknown()),
|
|
145
|
-
supplemental: z.array(z.record(z.unknown())).optional(),
|
|
146
|
-
actions: z.array(z.record(z.unknown())).optional(),
|
|
144
|
+
primary: z.record(z.string(), z.unknown()),
|
|
145
|
+
supplemental: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
146
|
+
actions: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
147
147
|
})
|
|
148
148
|
|
|
149
149
|
const DEFAULT_GRID = { columns: 12, gap: '1rem' } as const
|