@reqvire-org/ads 0.4.4 → 0.4.6
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/README.md +11 -8
- package/dist/capture.mjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/input-scope.mjs +57 -0
- package/dist/mcp/apps.mjs +7 -1
- package/dist/mcp/build-status.mjs +12 -3
- package/dist/mcp/drafts.mjs +7 -0
- package/dist/mcp/mutations.mjs +1 -1
- package/dist/mcp/preview-http.bundle.js +7 -0
- package/dist/mcp/preview-http.mjs +148 -0
- package/dist/mcp/preview-watch.mjs +14 -3
- package/dist/mcp/preview-widget.bundle.js +20 -20
- package/dist/mcp/resource-loader.js +1 -1
- package/dist/mcp/sandbox-host.mjs +6 -1
- package/dist/mcp/server.mjs +49 -9
- package/dist/mcp/showcase-host.mjs +56 -5
- package/dist/mcp/showcase-http.mjs +66 -0
- package/dist/preview-inputs.mjs +7 -2
- package/dist/scenario-registry.mjs +2 -2
- package/dist/scenarios-compiler.mjs +19 -1
- package/dist/showcase/client.bundle.js +54 -54
- package/dist/showcase/comparison.js +15 -12
- package/dist/showcase/connection.js +10 -0
- package/dist/showcase/http-client.bundle.js +9 -0
- package/dist/showcase/http-connection.js +86 -0
- package/dist/showcase/http-preview.js +81 -0
- package/dist/showcase-http-routes.mjs +31 -0
- package/dist/skills/README.md +2 -2
- package/dist/skills/ads-designer/references/captures.md +1 -1
- package/dist/skills/ads-designer/references/runtimes.md +18 -2
- package/dist/skills/ads-designer/references/workflows.md +16 -0
- package/dist/skills/ads-import/references/captures.md +1 -1
- package/dist/skills/ads-import/references/runtimes.md +18 -2
- package/dist/skills/ads-import/references/workflows.md +16 -0
- package/dist/skills/ads-migrate/SKILL.md +1 -0
- package/dist/skills/ads-migrate/references/0.4.3-to-0.4.4.md +9 -0
- package/dist/skills/ads-migrate/references/0.4.4-to-0.4.5.md +72 -0
- package/dist/skills/ads-port/references/captures.md +1 -1
- package/dist/skills/ads-port/references/runtimes.md +18 -2
- package/dist/skills/ads-port/references/workflows.md +16 -0
- package/dist/stage-timing.cjs +3 -2
- package/dist/validation-inputs.mjs +21 -3
- package/dist/verification/browser.mjs +2 -2
- package/docs/ADS.md +9 -7
- package/docs/ARCHITECTURE.md +56 -42
- package/docs/CHANGELOG.md +45 -25
- package/docs/GUIDE.md +15 -8
- package/docs/HTTP-SHOWCASE-POC.md +397 -0
- package/docs/MCP.md +63 -9
- package/docs/benchmarks/http-showcase-optimized.json +1879 -0
- package/docs/benchmarks/http-showcase-profile.json +308 -0
- package/docs/benchmarks/http-showcase.json +3069 -0
- package/package.json +1 -1
package/docs/MCP.md
CHANGED
|
@@ -31,9 +31,41 @@ read by the sandboxed MCP App. Existing style and geometry boundaries still appl
|
|
|
31
31
|
Websites and product MCP Apps reuse the project's public design-system UI. The
|
|
32
32
|
consuming application owns data, actions, mounting, MCP communication and serving.
|
|
33
33
|
The ADS MCP server supports development, inspection and review of that UI. Its
|
|
34
|
-
showcase renders real implementations
|
|
34
|
+
showcase renders real implementations in isolated HTTP previews, providing evidence for the
|
|
35
35
|
exercised conditions alongside normal application integration checks.
|
|
36
36
|
|
|
37
|
+
### Product widgets and payload scope
|
|
38
|
+
|
|
39
|
+
The local HTTP showcase does not replace product MCP Apps. Build a product widget
|
|
40
|
+
from named imports of the generated public design-system entry, using the
|
|
41
|
+
application's normal framework and Linaria integration. Give the bundler the
|
|
42
|
+
widget entry as its root; do not embed a complete design-system library or an ADS
|
|
43
|
+
preview graph. Preserve intentional CSS and JavaScript side effects in package
|
|
44
|
+
metadata. The application owns its MCP tool, HTML resource and actions; serving
|
|
45
|
+
the resulting widget requires neither an ADS server nor authoring source.
|
|
46
|
+
|
|
47
|
+
The [independent product MCP proof](../tests/browser/product-mcp.test.mjs) builds
|
|
48
|
+
React and native Preact widgets from ADS-generated entries, then deletes the
|
|
49
|
+
authored design system before starting a separate
|
|
50
|
+
[product MCP server](../tests/fixtures/product-mcp/server.mjs). A real stdio MCP
|
|
51
|
+
client reads its HTML resource; the official Apps bridge mounts it in Chromium
|
|
52
|
+
and forwards a button action back to that server. The check covers generated
|
|
53
|
+
themes, extracted styles, an inline font and artwork, and no network dependency
|
|
54
|
+
on ADS. It rejects unrelated exported component code, CSS and artwork in the
|
|
55
|
+
served payload, as well as review/scenario and ADS preview runtime modules.
|
|
56
|
+
|
|
57
|
+
Shared foundation token/theme CSS and the selected framework, Apps SDK, font and
|
|
58
|
+
assets remain part of the widget. This is a check of the widget's dependency
|
|
59
|
+
closure, not a claim that every unused token declaration or SDK function has
|
|
60
|
+
been removed. Applications using a different bundler or prebuilt library must
|
|
61
|
+
check their actual emitted CSS and assets too; JavaScript tree shaking alone
|
|
62
|
+
does not establish payload scope.
|
|
63
|
+
|
|
64
|
+
After `bun run build`, run `bun test --parallel=1 tests/browser/product-mcp.test.mjs`.
|
|
65
|
+
The proof prints the complete HTML, JavaScript and CSS byte counts. MCP Explorer
|
|
66
|
+
tests separately cover ADS's development preview tools and resources; they do
|
|
67
|
+
not substitute for this product-server check.
|
|
68
|
+
|
|
37
69
|
## Editing access and compiler ownership
|
|
38
70
|
|
|
39
71
|
Use [the direct editing and MCP-only workflows](../skills/ads-designer/references/workflows.md),
|
|
@@ -71,6 +103,20 @@ result is implied by a timeout, killed worker or disconnected MCP transport.
|
|
|
71
103
|
|
|
72
104
|
## Built-in showcase client
|
|
73
105
|
|
|
106
|
+
From 0.4.5, the local showcase uses HTTP JSON endpoints and immutable checked
|
|
107
|
+
asset URLs by default; the browser does not run an MCP client. Agents and
|
|
108
|
+
external MCP Apps retain the existing tools, resources and protocol transports.
|
|
109
|
+
Both use the same compiler, scoped draft services and verification gates.
|
|
110
|
+
No project configuration or experimental flag is needed.
|
|
111
|
+
|
|
112
|
+
Build reports arrive through server-sent events (SSE), with no periodic browser
|
|
113
|
+
status polling. On interruption the retained preview is marked potentially stale;
|
|
114
|
+
EventSource reconnects and ADS rereads current discovery/build state. Returning
|
|
115
|
+
to a visible tab also reconciles current state. A disconnected preview is not
|
|
116
|
+
current evidence. Captures and registered browser verification use this same
|
|
117
|
+
local HTTP showcase and still wait for verified revisions.
|
|
118
|
+
|
|
119
|
+
|
|
74
120
|
### Auto-mode tracked drafts
|
|
75
121
|
|
|
76
122
|
Use the [draft workflow](../skills/ads-designer/references/drafts.md) for MCP-only
|
|
@@ -115,7 +161,7 @@ Install the exported `developmentImportGuard()` in application Vite/Rollup build
|
|
|
115
161
|
Explorer keeps pending proposals in the ordinary catalogue, with Draft badges
|
|
116
162
|
on their owners, including new owners without an accepted version. Selecting an
|
|
117
163
|
entry with accepted and draft versions shows Split view in the preview toolbar to compare Accepted
|
|
118
|
-
and Draft in the right pane using separate opaque
|
|
164
|
+
and Draft in the right pane using separate opaque preview iframes, the same scenario/theme
|
|
119
165
|
and matched available/phone viewport widths. New-only entries show their draft
|
|
120
166
|
without a comparison toggle. Entries without a draft also hide the toggle, and
|
|
121
167
|
the toolbar disappears when empty. Unchanged scenarios available as explicit overlay review
|
|
@@ -180,7 +226,7 @@ port fails startup; ADS does not silently switch ports or terminate another live
|
|
|
180
226
|
client. Reuse the connected server's showcase instead of launching another one.
|
|
181
227
|
`ads mcp --no-showcase` disables the website for headless clients.
|
|
182
228
|
The website binds to 127.0.0.1 and accepts its own origin only. It serves packaged
|
|
183
|
-
client assets and MCP, with no arbitrary file reader or command launcher.
|
|
229
|
+
client assets, scoped HTTP preview services and MCP, with no arbitrary file reader or command launcher.
|
|
184
230
|
Shutdown closes both transports, subscriptions and the managed compiler.
|
|
185
231
|
|
|
186
232
|
The shell is minimal: header, section tabs, collapsible left menu, a theme button that
|
|
@@ -188,12 +234,11 @@ steps through the project's declared themes (`ads_status.themes`), a brand selec
|
|
|
188
234
|
it when the project declares brands (`ads_status.brands`),
|
|
189
235
|
status/diagnostics when needed, and the App slot. The Icons tab (shown when the project has
|
|
190
236
|
a glyph set) renders `ads://project/icons` natively: the glyph set, each glyph on its grid
|
|
191
|
-
at every icon size with aliases and glyph errors, and the logos in `assets/logos/`. Its
|
|
192
|
-
|
|
237
|
+
at every icon size with aliases and glyph errors, and the logos in `assets/logos/`. Its HTTP client handles discovery,
|
|
238
|
+
scoped preview actions and SSE build events. Token categories come
|
|
193
239
|
from `ads_tokens.categories` (the catalogue's groups); every scenario section also
|
|
194
240
|
comes from the same `ads_scenarios` registry.
|
|
195
|
-
It
|
|
196
|
-
HTML in an opaque sandbox. Project UI is never imported into the shell.
|
|
241
|
+
It opens the selected scenario in a persistent opaque preview iframe. Project UI is never imported into the shell.
|
|
197
242
|
|
|
198
243
|
The built-in client refreshes menus after catalogue changes and automatically
|
|
199
244
|
refreshes the active scenario inside the same reusable App after a current
|
|
@@ -201,8 +246,9 @@ successful build. Failed builds show a compact status strip below the toolbar,
|
|
|
201
246
|
outside the App canvas. Details opens full file/line diagnostics; Retry requests
|
|
202
247
|
the selected preview again. The retained view is identified as stale. Themes and
|
|
203
248
|
available space flow through host context. Other coding-agent hosts retain their own reload
|
|
204
|
-
policy.
|
|
205
|
-
|
|
249
|
+
policy. An interrupted SSE connection marks retained output potentially stale; reconnection
|
|
250
|
+
and visibility resume reconcile current state. Reopen the URL after restarting ADS
|
|
251
|
+
if the runtime selects a different port. Compilation remains necessary for project TSX/Linaria, performed by the
|
|
206
252
|
managed Bun compiler on demand and after relevant source changes.
|
|
207
253
|
|
|
208
254
|
Switching entries updates the scenario inside the existing App. A quiet monochrome
|
|
@@ -1374,3 +1420,11 @@ reported). Abandoned known mutation workspaces are removed during recovery;
|
|
|
1374
1420
|
unreferenced old verification folders are removed after the configured age.
|
|
1375
1421
|
No cleanup is triggered solely by a client disconnect. Independent ADS processes
|
|
1376
1422
|
on the same project are outside this process-local coordination guarantee.
|
|
1423
|
+
|
|
1424
|
+
## Experimental browser transport
|
|
1425
|
+
|
|
1426
|
+
The isolated HTTP experiment replaces MCP in the showcase browser, including
|
|
1427
|
+
discovery, status, events and preview actions. Agents retain MCP against the
|
|
1428
|
+
same engine. Preview isolation still uses a persistent iframe. See the
|
|
1429
|
+
[scope, endpoint boundary and proof checklist](HTTP-SHOWCASE-POC.md). This is not
|
|
1430
|
+
part of the 0.4.4 release.
|