@reqvire-org/ads 0.3.26 → 0.3.28
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 +21 -10
- package/dist/bootstrap-ds/README.md +7 -5
- package/dist/bootstrap-ds/ds.config.json +1 -1
- package/dist/bootstrap-ds/scripts/build-mcp-previews.mjs +7 -8
- package/dist/capture.mjs +1 -1
- package/dist/development-runtime.mjs +17 -0
- package/dist/index.mjs +1 -1
- package/dist/init.mjs +14 -12
- package/dist/mcp/apps.mjs +1 -1
- package/dist/mcp/context.mjs +5 -4
- package/dist/mcp/mutations.mjs +3 -2
- package/dist/mcp/preview-watch.mjs +2 -1
- package/dist/mcp/preview-widget.bundle.js +6 -6
- package/dist/mcp/project-widget.bundle.js +13 -13
- package/dist/mcp/resource-loader.js +10 -1
- package/dist/mcp/server.mjs +11 -4
- package/dist/mcp/widget.bundle.js +1 -1
- package/dist/preview-builder.mjs +108 -0
- package/dist/preview-files.mjs +33 -0
- package/dist/preview-inputs.mjs +14 -6
- package/dist/scenario-groups.mjs +47 -0
- package/dist/scenarios-compiler.mjs +10 -9
- package/dist/scenarios-vite.mjs +13 -5
- package/dist/scenarios.mjs +4 -1
- package/dist/showcase/client.bundle.js +21 -21
- package/dist/showcase/navigation.js +13 -0
- package/dist/showcase/sandbox.bundle.js +1 -1
- package/dist/showcase/style.css +1 -0
- package/dist/skills/README.md +7 -1
- package/dist/skills/ads-break-ui/SKILL.md +7 -3
- package/dist/skills/ads-break-ui/references/behaviors.md +6 -3
- package/dist/skills/ads-break-ui/references/layers.md +16 -0
- package/dist/skills/ads-break-ui/references/runtimes.md +127 -0
- package/dist/skills/ads-break-ui/references/scenarios.md +19 -0
- package/dist/skills/ads-designer/README.md +6 -0
- package/dist/skills/ads-designer/SKILL.md +11 -6
- package/dist/skills/ads-designer/assets/bootstrap-ds/README.md +7 -5
- package/dist/skills/ads-designer/assets/bootstrap-ds/ds.config.json +1 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/scripts/build-mcp-previews.mjs +7 -8
- package/dist/skills/ads-designer/references/behaviors.md +6 -3
- package/dist/skills/ads-designer/references/cli.md +10 -7
- package/dist/skills/ads-designer/references/design-craft.md +31 -0
- package/dist/skills/ads-designer/references/layers.md +16 -0
- package/dist/skills/ads-designer/references/runtimes.md +127 -0
- package/dist/skills/ads-designer/references/scenarios.md +19 -0
- package/dist/skills/ads-import/SKILL.md +24 -4
- package/dist/skills/ads-import/agents/openai.yaml +2 -2
- package/dist/skills/ads-import/references/behaviors.md +6 -3
- package/dist/skills/ads-import/references/cli.md +10 -7
- package/dist/skills/ads-import/references/compatibility.md +113 -0
- package/dist/skills/ads-import/references/implementation.md +6 -0
- package/dist/skills/ads-import/references/layers.md +16 -0
- package/dist/skills/ads-import/references/runtimes.md +127 -0
- package/dist/skills/ads-import/references/scenarios.md +19 -0
- package/dist/skills/ads-motion/SKILL.md +7 -3
- package/dist/skills/ads-motion/references/behaviors.md +6 -3
- package/dist/skills/ads-motion/references/layers.md +16 -0
- package/dist/skills/ads-motion/references/runtimes.md +127 -0
- package/dist/skills/ads-motion/references/scenarios.md +19 -0
- package/dist/skills/ads-port/SKILL.md +7 -3
- package/dist/skills/ads-port/references/behaviors.md +6 -3
- package/dist/skills/ads-port/references/cli.md +10 -7
- package/dist/skills/ads-port/references/layers.md +16 -0
- package/dist/skills/ads-port/references/runtimes.md +127 -0
- package/dist/skills/ads-port/references/scenarios.md +19 -0
- package/dist/verification.mjs +4 -3
- package/docs/ADS.md +29 -2
- package/docs/ARCHITECTURE.md +85 -3
- package/docs/BEHAVIORS.md +13 -3
- package/docs/CHANGELOG.md +38 -1
- package/docs/COMPARISON.md +63 -0
- package/docs/GUIDE.md +51 -10
- package/docs/MCP.md +104 -14
- package/package.json +5 -4
|
@@ -30,6 +30,22 @@ Do not classify by import count, JSX element count, names or file length. Review
|
|
|
30
30
|
the capability and its consumer contract. Preserve valid APIs when tracing is
|
|
31
31
|
inconclusive; do not make an export private or add a product prop just to pass.
|
|
32
32
|
|
|
33
|
+
## Share UI across websites and MCP Apps
|
|
34
|
+
|
|
35
|
+
Build and adapt UI through the project's public design-system APIs. Websites
|
|
36
|
+
and MCP Apps use the same components, patterns, controllers, tokens and styles.
|
|
37
|
+
Application adapters supply data and actions and own mounting, routing, stores,
|
|
38
|
+
MCP communication, tool-result mapping and serving. Keep those integrations out
|
|
39
|
+
of reusable UI implementations. ADS's own MCP server supports design-system
|
|
40
|
+
development, inspection and rendered review.
|
|
41
|
+
|
|
42
|
+
The ADS showcase renders the real public implementation inside an MCP App.
|
|
43
|
+
Its previews and registered checks provide evidence for the exercised states,
|
|
44
|
+
themes, sizes and environment. Relevant application checks verify website
|
|
45
|
+
integration. Reuse existing verification; add targeted checks when a change
|
|
46
|
+
exposes an uncovered requirement. Record what was actually verified, including
|
|
47
|
+
any remaining host or integration assumptions.
|
|
48
|
+
|
|
33
49
|
## Demonstrate the production implementation
|
|
34
50
|
|
|
35
51
|
Product patterns are reusable application UI, not showcase replicas. A scenario
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Node and Bun development runtimes
|
|
2
|
+
|
|
3
|
+
ADS supports Node 22.12+ and Bun 1.3.13+. A Bun project does not need Node or npm.
|
|
4
|
+
The launcher selects the interpreter; package manager and UI framework are
|
|
5
|
+
separate concerns. Preserve the target project's choices.
|
|
6
|
+
|
|
7
|
+
For a Node/npm project, run inside its package root:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npx @reqvire-org/ads init --framework react
|
|
11
|
+
npm install
|
|
12
|
+
npm run build
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
For Bun:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
bunx --bun @reqvire-org/ads init --framework react
|
|
19
|
+
bun install
|
|
20
|
+
bun --bun run build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Use `--framework preact` for native Preact. Init detects an existing package
|
|
24
|
+
manager or infers Bun from its launcher when no project choice exists. Use
|
|
25
|
+
`--package-manager bun` only for an explicit override; existing project metadata
|
|
26
|
+
and lockfiles take precedence over the launcher.
|
|
27
|
+
Use the installed/pinned ADS version. Never substitute an unrelated bare package.
|
|
28
|
+
|
|
29
|
+
`--bun` is essential to an explicit Bun runtime choice: many JavaScript tools
|
|
30
|
+
have a `#!/usr/bin/env node` shebang. Bun can otherwise launch Node when it is
|
|
31
|
+
available. Generated ADS scripts force Bun, including Oxlint and its JavaScript
|
|
32
|
+
plugins. Existing application scripts and lockfiles are preserved; translate
|
|
33
|
+
nested `npm` commands when intentionally converting an application to Bun.
|
|
34
|
+
Dependency packages and custom build commands must support the chosen runtime.
|
|
35
|
+
|
|
36
|
+
For ordinary `bun run build` commands to always select Bun, the project may
|
|
37
|
+
set its own `bunfig.toml`:
|
|
38
|
+
|
|
39
|
+
```toml
|
|
40
|
+
[run]
|
|
41
|
+
bun = true
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
This is equivalent to passing `--bun` for script execution. ADS does not replace
|
|
45
|
+
an existing Bun configuration. Keep the explicit flag in MCP launch settings.
|
|
46
|
+
|
|
47
|
+
## MCP connection
|
|
48
|
+
|
|
49
|
+
For Bun, use these values in Claude's `.mcp.json` or Codex's MCP configuration:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"command": "bunx",
|
|
54
|
+
"args": ["--bun", "@reqvire-org/ads", "mcp"]
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Add `--mutations` to enable guarded source changes and `--port 4191` when the
|
|
59
|
+
project pins its showcase port. Append a project directory when the client
|
|
60
|
+
does not launch in the package root. For a local installed tool, use the
|
|
61
|
+
generated `ads-mcp` or `ads-read-mcp` package script. Keep stdout for JSON-RPC.
|
|
62
|
+
|
|
63
|
+
## Compiler and browser workers
|
|
64
|
+
|
|
65
|
+
Use the portable command in `ds.config.json`:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"mcp": {
|
|
70
|
+
"previewWatch": {
|
|
71
|
+
"command": "runtime",
|
|
72
|
+
"args": ["scripts/build-mcp-previews.mjs", "--watch"]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`runtime` means the interpreter that launched ADS, including its absolute
|
|
79
|
+
executable when available through an environment manager. It also works in
|
|
80
|
+
registered behavior profiles, with the project's installed runner entry file in
|
|
81
|
+
`args`. Explicit `node`, `bun` and custom executable commands retain their meaning;
|
|
82
|
+
ADS never silently substitutes another interpreter for them. Node-specific
|
|
83
|
+
commands still need Node, even in a Bun-managed package.
|
|
84
|
+
|
|
85
|
+
Mandatory architecture/Oxlint validation, ownership guards and screenshot workers
|
|
86
|
+
inherit ADS's interpreter. Browser tests remain project-owned Playwright specs;
|
|
87
|
+
Chromium/WebKit is a separate browser dependency, not a Node requirement. Runtime
|
|
88
|
+
identity participates in behavior evidence freshness.
|
|
89
|
+
|
|
90
|
+
For diagnosis, inspect `ads_status.project.runtime`: `name`, `version`,
|
|
91
|
+
`executable` and `binDir`. `project.commands` contains the discovered package
|
|
92
|
+
commands with the appropriate Bun flags. The MCP process and agent shell may
|
|
93
|
+
have different PATHs; use these reported values instead of scanning the machine
|
|
94
|
+
or installing another runtime without evidence.
|
|
95
|
+
|
|
96
|
+
For incremental preview compilation, the project adapter passes
|
|
97
|
+
`createVitePreviewBuilder({ build, configure })` from
|
|
98
|
+
`@reqvire-org/ads/scenarios/vite` as `runScenarioCompiler`'s `buildGraph`.
|
|
99
|
+
`configure(entries, options)` returns the existing Vite configuration, including
|
|
100
|
+
framework/Linaria plugins, aliases and entries. The helper retains a watched
|
|
101
|
+
Rollup graph, captures private output, tracks dependencies and closes with the
|
|
102
|
+
compiler. Existing custom adapters still work; they must adopt the helper to gain
|
|
103
|
+
incremental transforms. Upgrade the project dependency and restart the builder.
|
|
104
|
+
Keep the full validation callback and production build behavior.
|
|
105
|
+
|
|
106
|
+
The App preserves selected form/scroll state across accepted unrelated graph
|
|
107
|
+
updates, reruns audits and remounts when its own module/style/asset closure changes.
|
|
108
|
+
Do not promise component-level HMR. Guarded edits select affected behavior owners
|
|
109
|
+
from their input dependencies and run their registered checks; project scripts
|
|
110
|
+
remain as configured and releases run the complete suite. Incremental compilation
|
|
111
|
+
alone does not make arbitrary lint/typecheck/test scripts incremental.
|
|
112
|
+
|
|
113
|
+
Preview watching excludes standard output trees by default, including nested
|
|
114
|
+
Cargo `target/` directories, without allocating watches inside them. Explicit
|
|
115
|
+
`sourceDir` and `dsDir` take priority over those default output names. Register
|
|
116
|
+
custom outputs in `assets.generatedPaths`; do not copy the default list into a
|
|
117
|
+
new project's config. `ENOSPC` from `fs.watch` can mean the OS watch limit rather
|
|
118
|
+
than disk space: inspect the failing path and generated-tree traversal before
|
|
119
|
+
raising system limits or deleting files. Generated churn must not mark previews
|
|
120
|
+
stale; actual source changes must still rebuild.
|
|
121
|
+
|
|
122
|
+
Bundled binary renderers may load their forwarded `blob:` resources. ADS's
|
|
123
|
+
showcase/explorer permits WebAssembly compilation while keeping JavaScript eval
|
|
124
|
+
and undeclared network requests blocked. External MCP hosts control their CSP.
|
|
125
|
+
Test the actual renderer inside the App; a successful website build does not
|
|
126
|
+
establish binary-resource or WebAssembly support. Keep transport and resource
|
|
127
|
+
loading in explicit injected adapters or declared renderer dependencies.
|
|
@@ -23,6 +23,25 @@ on-demand element screenshots. It grants no render/behavior coverage and no extr
|
|
|
23
23
|
styling permission. Use [captures.md](captures.md) for current/candidate review,
|
|
24
24
|
target selection, resource reads and storage lifecycle.
|
|
25
25
|
|
|
26
|
+
## Folder-derived showcase groups
|
|
27
|
+
|
|
28
|
+
Components, patterns and compositions use container folders to organize
|
|
29
|
+
navigation: `components/Forms/Input/Input.ads.scenario.tsx` appears under
|
|
30
|
+
**Forms** when `Forms/` contains only real directories. Hidden entries are ignored;
|
|
31
|
+
a regular file such as `index.ts` or `README.md`, or a symlink, prevents that
|
|
32
|
+
container from becoming a group. An owner's own directory and layer root never
|
|
33
|
+
form a group. Nested containers produce one path label: **Forms / Selection**.
|
|
34
|
+
Folder spelling and case are preserved: `form-controls/` displays `form-controls`.
|
|
35
|
+
|
|
36
|
+
Folders are the only grouping source. Do not add `group` metadata to a scenario
|
|
37
|
+
or owner contract. MCP's optional `group` field is computed discovery output;
|
|
38
|
+
`ads_scenarios(query: "Forms")` searches it along with existing scenario fields.
|
|
39
|
+
Use returned IDs with `ads_show_scenario`; `ads_catalog` previews, `ads_units` and
|
|
40
|
+
source resources retain the actual nested owner paths. Ungrouped entries remain
|
|
41
|
+
visible with no Default heading. Flat layouts keep working; tokens retain their
|
|
42
|
+
categories. When moving an owner, update its imports/public exports and any
|
|
43
|
+
references to changed path-derived scenario, behavior or capture IDs.
|
|
44
|
+
|
|
26
45
|
## Fragment links inside Apps
|
|
27
46
|
|
|
28
47
|
Keep intended `href="#"` and named fragments in the project API and fixtures.
|
|
@@ -3,6 +3,9 @@ name: ads-port
|
|
|
3
3
|
description: "Port existing library components into a coherent project-owned ADS, reusing shared tokens and primitives while preserving required behavior. Use for native adaptation from a library URL, with reference comparison and provenance; not dependency installation or wrapping."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
For Node/Bun setup, MCP launch and compiler workers, read
|
|
7
|
+
[runtimes.md](references/runtimes.md).
|
|
8
|
+
|
|
6
9
|
# ADS Port
|
|
7
10
|
|
|
8
11
|
The result should be one coherent project design system. Reuse its shared tokens,
|
|
@@ -71,12 +74,13 @@ renderers, build aliases or `review-import` / `review-contract` diagnostics, rea
|
|
|
71
74
|
|
|
72
75
|
A component provides one cohesive UI capability; a pattern arranges capabilities
|
|
73
76
|
into reusable structures or workflows. Components may compose components/controllers;
|
|
74
|
-
layout patterns may arrange slots. Do not classify by component count. For
|
|
75
|
-
|
|
77
|
+
layout patterns may arrange slots. Do not classify by component count. For shared
|
|
78
|
+
website/MCP App use, owner selection, or `component-dependency`,
|
|
79
|
+
`component-contract` or `component-style` diagnostics, read
|
|
76
80
|
[layer responsibilities and contracts](references/layers.md), also served as
|
|
77
81
|
`ads://guides/layers`. Preserve public APIs and documented non-state styling hooks.
|
|
78
82
|
|
|
79
|
-
For parent/child `covers`, conditional-control review, reference comparisons,
|
|
83
|
+
For folder-group navigation, parent/child `covers`, conditional-control review, reference comparisons,
|
|
80
84
|
public style-helper use, native slot/selector composition, fragment navigation,
|
|
81
85
|
or `scenario-render` / `showcase-control` / `showcase-class` findings, read [scenario contracts](references/scenarios.md). Its verification
|
|
82
86
|
examples explain API visibility, reference baselines and state-transition checks.
|
|
@@ -142,8 +142,8 @@ command. For a project with an installed Playwright test runner:
|
|
|
142
142
|
"behaviorProfiles": {
|
|
143
143
|
"widget": {
|
|
144
144
|
"runner": "playwright",
|
|
145
|
-
"command": "
|
|
146
|
-
"args": ["
|
|
145
|
+
"command": "runtime",
|
|
146
|
+
"args": ["node_modules/@playwright/test/cli.js", "test"],
|
|
147
147
|
"mode": "browser",
|
|
148
148
|
"timeoutMs": 60000
|
|
149
149
|
}
|
|
@@ -152,7 +152,10 @@ command. For a project with an installed Playwright test runner:
|
|
|
152
152
|
}
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
Here `
|
|
155
|
+
Here `runtime` uses the Node or Bun interpreter that launched ADS, and the
|
|
156
|
+
project supplies the installed Playwright entry. Explicit executable commands
|
|
157
|
+
retain their meaning. A Bun package-script profile can use `command: "bun"`
|
|
158
|
+
with `args: ["--bun", "run", "test:behavior", "--"]`. The Playwright
|
|
156
159
|
configuration must discover colocated spec files. Configure browser installation
|
|
157
160
|
and any required test setup in that project. The ADS tooling host gains no
|
|
158
161
|
framework or browser dependency from a profile.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Run ADS tooling
|
|
1
|
+
# Run ADS tooling with Node or Bun
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use the project's runtime for setup or ad hoc checks alongside this skill's research,
|
|
4
4
|
implementation, documentation, and verification workflow. ADS must be a project
|
|
5
5
|
development dependency, and its checks must run before the project's build.
|
|
6
6
|
Routine builds use the local CLI.
|
|
@@ -27,11 +27,14 @@ Use `--framework preact` for native Preact. A saved `framework` in
|
|
|
27
27
|
required, including for an older config. Init preserves existing framework
|
|
28
28
|
tooling and rejects conflicting saved/JSX settings instead of converting it.
|
|
29
29
|
|
|
30
|
-
Use the confirmed package name/version if different. For
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
Use the confirmed package name/version if different. For a Bun project, use
|
|
31
|
+
`bunx --bun @reqvire-org/ads init --framework react`, `bun install` and
|
|
32
|
+
`bun --bun run build`. Bun 1.3.13+ suffices; Node is unnecessary. Init detects
|
|
33
|
+
`packageManager` or `bun.lock`/`bun.lockb`, then defaults to Bun when launched
|
|
34
|
+
with Bun. See [runtimes.md](runtimes.md)
|
|
35
|
+
for MCP configuration and portable compiler/behavior commands.
|
|
36
|
+
Use `--package-manager bun` only for an explicit override. Preserve the project's
|
|
37
|
+
existing package-manager policy and lockfile.
|
|
35
38
|
|
|
36
39
|
`init` accepts no directory argument and requires an existing `package.json`.
|
|
37
40
|
For starting from zero, copy the bundled `ads-designer` application scaffold
|
|
@@ -30,6 +30,22 @@ Do not classify by import count, JSX element count, names or file length. Review
|
|
|
30
30
|
the capability and its consumer contract. Preserve valid APIs when tracing is
|
|
31
31
|
inconclusive; do not make an export private or add a product prop just to pass.
|
|
32
32
|
|
|
33
|
+
## Share UI across websites and MCP Apps
|
|
34
|
+
|
|
35
|
+
Build and adapt UI through the project's public design-system APIs. Websites
|
|
36
|
+
and MCP Apps use the same components, patterns, controllers, tokens and styles.
|
|
37
|
+
Application adapters supply data and actions and own mounting, routing, stores,
|
|
38
|
+
MCP communication, tool-result mapping and serving. Keep those integrations out
|
|
39
|
+
of reusable UI implementations. ADS's own MCP server supports design-system
|
|
40
|
+
development, inspection and rendered review.
|
|
41
|
+
|
|
42
|
+
The ADS showcase renders the real public implementation inside an MCP App.
|
|
43
|
+
Its previews and registered checks provide evidence for the exercised states,
|
|
44
|
+
themes, sizes and environment. Relevant application checks verify website
|
|
45
|
+
integration. Reuse existing verification; add targeted checks when a change
|
|
46
|
+
exposes an uncovered requirement. Record what was actually verified, including
|
|
47
|
+
any remaining host or integration assumptions.
|
|
48
|
+
|
|
33
49
|
## Demonstrate the production implementation
|
|
34
50
|
|
|
35
51
|
Product patterns are reusable application UI, not showcase replicas. A scenario
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Node and Bun development runtimes
|
|
2
|
+
|
|
3
|
+
ADS supports Node 22.12+ and Bun 1.3.13+. A Bun project does not need Node or npm.
|
|
4
|
+
The launcher selects the interpreter; package manager and UI framework are
|
|
5
|
+
separate concerns. Preserve the target project's choices.
|
|
6
|
+
|
|
7
|
+
For a Node/npm project, run inside its package root:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npx @reqvire-org/ads init --framework react
|
|
11
|
+
npm install
|
|
12
|
+
npm run build
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
For Bun:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
bunx --bun @reqvire-org/ads init --framework react
|
|
19
|
+
bun install
|
|
20
|
+
bun --bun run build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Use `--framework preact` for native Preact. Init detects an existing package
|
|
24
|
+
manager or infers Bun from its launcher when no project choice exists. Use
|
|
25
|
+
`--package-manager bun` only for an explicit override; existing project metadata
|
|
26
|
+
and lockfiles take precedence over the launcher.
|
|
27
|
+
Use the installed/pinned ADS version. Never substitute an unrelated bare package.
|
|
28
|
+
|
|
29
|
+
`--bun` is essential to an explicit Bun runtime choice: many JavaScript tools
|
|
30
|
+
have a `#!/usr/bin/env node` shebang. Bun can otherwise launch Node when it is
|
|
31
|
+
available. Generated ADS scripts force Bun, including Oxlint and its JavaScript
|
|
32
|
+
plugins. Existing application scripts and lockfiles are preserved; translate
|
|
33
|
+
nested `npm` commands when intentionally converting an application to Bun.
|
|
34
|
+
Dependency packages and custom build commands must support the chosen runtime.
|
|
35
|
+
|
|
36
|
+
For ordinary `bun run build` commands to always select Bun, the project may
|
|
37
|
+
set its own `bunfig.toml`:
|
|
38
|
+
|
|
39
|
+
```toml
|
|
40
|
+
[run]
|
|
41
|
+
bun = true
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
This is equivalent to passing `--bun` for script execution. ADS does not replace
|
|
45
|
+
an existing Bun configuration. Keep the explicit flag in MCP launch settings.
|
|
46
|
+
|
|
47
|
+
## MCP connection
|
|
48
|
+
|
|
49
|
+
For Bun, use these values in Claude's `.mcp.json` or Codex's MCP configuration:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"command": "bunx",
|
|
54
|
+
"args": ["--bun", "@reqvire-org/ads", "mcp"]
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Add `--mutations` to enable guarded source changes and `--port 4191` when the
|
|
59
|
+
project pins its showcase port. Append a project directory when the client
|
|
60
|
+
does not launch in the package root. For a local installed tool, use the
|
|
61
|
+
generated `ads-mcp` or `ads-read-mcp` package script. Keep stdout for JSON-RPC.
|
|
62
|
+
|
|
63
|
+
## Compiler and browser workers
|
|
64
|
+
|
|
65
|
+
Use the portable command in `ds.config.json`:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"mcp": {
|
|
70
|
+
"previewWatch": {
|
|
71
|
+
"command": "runtime",
|
|
72
|
+
"args": ["scripts/build-mcp-previews.mjs", "--watch"]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`runtime` means the interpreter that launched ADS, including its absolute
|
|
79
|
+
executable when available through an environment manager. It also works in
|
|
80
|
+
registered behavior profiles, with the project's installed runner entry file in
|
|
81
|
+
`args`. Explicit `node`, `bun` and custom executable commands retain their meaning;
|
|
82
|
+
ADS never silently substitutes another interpreter for them. Node-specific
|
|
83
|
+
commands still need Node, even in a Bun-managed package.
|
|
84
|
+
|
|
85
|
+
Mandatory architecture/Oxlint validation, ownership guards and screenshot workers
|
|
86
|
+
inherit ADS's interpreter. Browser tests remain project-owned Playwright specs;
|
|
87
|
+
Chromium/WebKit is a separate browser dependency, not a Node requirement. Runtime
|
|
88
|
+
identity participates in behavior evidence freshness.
|
|
89
|
+
|
|
90
|
+
For diagnosis, inspect `ads_status.project.runtime`: `name`, `version`,
|
|
91
|
+
`executable` and `binDir`. `project.commands` contains the discovered package
|
|
92
|
+
commands with the appropriate Bun flags. The MCP process and agent shell may
|
|
93
|
+
have different PATHs; use these reported values instead of scanning the machine
|
|
94
|
+
or installing another runtime without evidence.
|
|
95
|
+
|
|
96
|
+
For incremental preview compilation, the project adapter passes
|
|
97
|
+
`createVitePreviewBuilder({ build, configure })` from
|
|
98
|
+
`@reqvire-org/ads/scenarios/vite` as `runScenarioCompiler`'s `buildGraph`.
|
|
99
|
+
`configure(entries, options)` returns the existing Vite configuration, including
|
|
100
|
+
framework/Linaria plugins, aliases and entries. The helper retains a watched
|
|
101
|
+
Rollup graph, captures private output, tracks dependencies and closes with the
|
|
102
|
+
compiler. Existing custom adapters still work; they must adopt the helper to gain
|
|
103
|
+
incremental transforms. Upgrade the project dependency and restart the builder.
|
|
104
|
+
Keep the full validation callback and production build behavior.
|
|
105
|
+
|
|
106
|
+
The App preserves selected form/scroll state across accepted unrelated graph
|
|
107
|
+
updates, reruns audits and remounts when its own module/style/asset closure changes.
|
|
108
|
+
Do not promise component-level HMR. Guarded edits select affected behavior owners
|
|
109
|
+
from their input dependencies and run their registered checks; project scripts
|
|
110
|
+
remain as configured and releases run the complete suite. Incremental compilation
|
|
111
|
+
alone does not make arbitrary lint/typecheck/test scripts incremental.
|
|
112
|
+
|
|
113
|
+
Preview watching excludes standard output trees by default, including nested
|
|
114
|
+
Cargo `target/` directories, without allocating watches inside them. Explicit
|
|
115
|
+
`sourceDir` and `dsDir` take priority over those default output names. Register
|
|
116
|
+
custom outputs in `assets.generatedPaths`; do not copy the default list into a
|
|
117
|
+
new project's config. `ENOSPC` from `fs.watch` can mean the OS watch limit rather
|
|
118
|
+
than disk space: inspect the failing path and generated-tree traversal before
|
|
119
|
+
raising system limits or deleting files. Generated churn must not mark previews
|
|
120
|
+
stale; actual source changes must still rebuild.
|
|
121
|
+
|
|
122
|
+
Bundled binary renderers may load their forwarded `blob:` resources. ADS's
|
|
123
|
+
showcase/explorer permits WebAssembly compilation while keeping JavaScript eval
|
|
124
|
+
and undeclared network requests blocked. External MCP hosts control their CSP.
|
|
125
|
+
Test the actual renderer inside the App; a successful website build does not
|
|
126
|
+
establish binary-resource or WebAssembly support. Keep transport and resource
|
|
127
|
+
loading in explicit injected adapters or declared renderer dependencies.
|
|
@@ -23,6 +23,25 @@ on-demand element screenshots. It grants no render/behavior coverage and no extr
|
|
|
23
23
|
styling permission. Use [captures.md](captures.md) for current/candidate review,
|
|
24
24
|
target selection, resource reads and storage lifecycle.
|
|
25
25
|
|
|
26
|
+
## Folder-derived showcase groups
|
|
27
|
+
|
|
28
|
+
Components, patterns and compositions use container folders to organize
|
|
29
|
+
navigation: `components/Forms/Input/Input.ads.scenario.tsx` appears under
|
|
30
|
+
**Forms** when `Forms/` contains only real directories. Hidden entries are ignored;
|
|
31
|
+
a regular file such as `index.ts` or `README.md`, or a symlink, prevents that
|
|
32
|
+
container from becoming a group. An owner's own directory and layer root never
|
|
33
|
+
form a group. Nested containers produce one path label: **Forms / Selection**.
|
|
34
|
+
Folder spelling and case are preserved: `form-controls/` displays `form-controls`.
|
|
35
|
+
|
|
36
|
+
Folders are the only grouping source. Do not add `group` metadata to a scenario
|
|
37
|
+
or owner contract. MCP's optional `group` field is computed discovery output;
|
|
38
|
+
`ads_scenarios(query: "Forms")` searches it along with existing scenario fields.
|
|
39
|
+
Use returned IDs with `ads_show_scenario`; `ads_catalog` previews, `ads_units` and
|
|
40
|
+
source resources retain the actual nested owner paths. Ungrouped entries remain
|
|
41
|
+
visible with no Default heading. Flat layouts keep working; tokens retain their
|
|
42
|
+
categories. When moving an owner, update its imports/public exports and any
|
|
43
|
+
references to changed path-derived scenario, behavior or capture IDs.
|
|
44
|
+
|
|
26
45
|
## Fragment links inside Apps
|
|
27
46
|
|
|
28
47
|
Keep intended `href="#"` and named fragments in the project API and fixtures.
|
package/dist/verification.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import { inspectScenarios } from "./scenarios.mjs";
|
|
|
14
14
|
import { readPreviewManifest } from "./preview-resources.mjs";
|
|
15
15
|
import { acceptance, failure, failureCategories } from "./evidence.mjs";
|
|
16
16
|
import { investigationArtifacts, investigationUri, saveInvestigations } from "./investigations.mjs";
|
|
17
|
+
import { developmentExecutable, developmentRuntime } from "./development-runtime.mjs";
|
|
17
18
|
|
|
18
19
|
export const BEHAVIOR_URI = "ads://project/behaviors";
|
|
19
20
|
const hash = bytes => createHash("sha256").update(bytes).digest("hex");
|
|
@@ -124,8 +125,8 @@ export function behaviorInputs(options, contract, check, context = inputContext(
|
|
|
124
125
|
if (scenario) visit(path.join(options.root, scenario.file));
|
|
125
126
|
const rows = [...files].sort().map(file => [slash(path.relative(options.root, file)), context.digest(file)]);
|
|
126
127
|
for (const file of ["package-lock.json", "bun.lock", "bun.lockb", "pnpm-lock.yaml", "yarn.lock", "node_modules/.package-lock.json"]) rows.push([file, existsSync(path.join(options.root, file)) ? context.digest(path.join(options.root, file)) : null]);
|
|
127
|
-
rows.push(["profile", JSON.stringify(options.config.mcp.behaviorProfiles[check.profile])], ["
|
|
128
|
-
for (const file of ["./verification.mjs", "./verification/browser.mjs", "./verification/playwright-reporter.cjs", "./evidence.mjs", "./investigations.mjs"]) rows.push([`tool:${file}`, hash(readFileSync(new URL(file, import.meta.url)))]);
|
|
128
|
+
rows.push(["profile", JSON.stringify(options.config.mcp.behaviorProfiles[check.profile])], ["runtime", JSON.stringify(developmentRuntime())]);
|
|
129
|
+
for (const file of ["./verification.mjs", "./development-runtime.mjs", "./verification/browser.mjs", "./verification/playwright-reporter.cjs", "./evidence.mjs", "./investigations.mjs"]) rows.push([`tool:${file}`, hash(readFileSync(new URL(file, import.meta.url)))]);
|
|
129
130
|
return { revision: hash(JSON.stringify(rows)), files: rows.map(([file]) => file) };
|
|
130
131
|
}
|
|
131
132
|
|
|
@@ -181,7 +182,7 @@ export function executeDevelopmentCommand(profile, args, root, env, signal) {
|
|
|
181
182
|
if (process.platform === "win32") { const stop = spawn("taskkill", ["/pid", String(child.pid), "/T", "/F"], { stdio: "ignore" }); stop.on("error", () => child.kill("SIGKILL")); }
|
|
182
183
|
else try { process.kill(-child.pid, "SIGKILL"); } catch (error) { if (error.code !== "ESRCH") failure ??= error; }
|
|
183
184
|
};
|
|
184
|
-
child = spawn(profile.command
|
|
185
|
+
child = spawn(developmentExecutable(profile.command), args, { cwd: root, detached: process.platform !== "win32", shell: false, stdio: ["ignore", "pipe", "pipe"], windowsHide: true,
|
|
185
186
|
env: { ...process.env, ...env, PATH: [path.join(root, "node_modules/.bin"), path.dirname(process.execPath), process.env.PATH ?? ""].join(path.delimiter) } });
|
|
186
187
|
if (child.pid) {
|
|
187
188
|
guard = spawn(process.execPath, [fileURLToPath(new URL("./mcp/preview-owner-guard.mjs", import.meta.url)), String(child.pid)], { detached: process.platform !== "win32", stdio: ["pipe", "ignore", "ignore"], windowsHide: true });
|
package/docs/ADS.md
CHANGED
|
@@ -29,6 +29,12 @@ Application code imports its local public barrel, normally through `@ds`.
|
|
|
29
29
|
The default layout keeps application code in `src/` and project ADS source in
|
|
30
30
|
root `design-system/`. Configure existing alternate layouts explicitly.
|
|
31
31
|
|
|
32
|
+
Websites and MCP Apps consume the same public components, patterns, controllers,
|
|
33
|
+
tokens and styles. Application adapters own routing, stores, MCP communication,
|
|
34
|
+
tool-result mapping, mounting and serving. ADS's own MCP server supplies
|
|
35
|
+
design-system development, inspection and review. Its showcase exercises the
|
|
36
|
+
real UI inside an MCP App; normal application checks verify website integration.
|
|
37
|
+
Verification claims remain scoped to the states and environments actually tested.
|
|
32
38
|
|
|
33
39
|
Framework choice belongs to the receiving project. Linaria is required for the
|
|
34
40
|
component and pattern styling pipeline. Source checks support React and native Preact, including JSX, UI factories and
|
|
@@ -61,8 +67,10 @@ the built-in client. Its tooling CSS is separate from the project style contract
|
|
|
61
67
|
The shared resource compiler builds one graph for all discovered scenarios on
|
|
62
68
|
first demand. Selections reuse the App and load their dependency closure. The
|
|
63
69
|
project's `mountScenario(Scenario, container)` adapter returns an unmount callback
|
|
64
|
-
that releases owned roots, listeners, timers, portals and workers. Switching
|
|
65
|
-
|
|
70
|
+
that releases owned roots, listeners, timers, portals and workers. Switching a
|
|
71
|
+
scenario or changing its compiled dependency closure resets its state. Successful
|
|
72
|
+
unrelated graph updates
|
|
73
|
+
preserve its mounted state while retaining unchanged shared modules.
|
|
66
74
|
Host context selects the project theme; it does not replace the project's skin.
|
|
67
75
|
|
|
68
76
|
|
|
@@ -89,6 +97,14 @@ design-system/
|
|
|
89
97
|
main.tsx
|
|
90
98
|
```
|
|
91
99
|
|
|
100
|
+
Container folders above owners organize component/pattern/composition navigation.
|
|
101
|
+
A group folder has only real-directory children (hidden entries ignored); its exact
|
|
102
|
+
folder name supplies the label. Owner folders and layer roots never become groups.
|
|
103
|
+
Direct regular files or symlinks disqualify a container. Nested groups use one path
|
|
104
|
+
label; ungrouped entries have no Default heading. `group` is derived MCP output,
|
|
105
|
+
not scenario/owner metadata. Move complete owners to change groups and update
|
|
106
|
+
path-based references. Grouping does not alter architecture or coverage rules.
|
|
107
|
+
|
|
92
108
|
Private controllers remain in that component/pattern owner. Shared controllers use
|
|
93
109
|
`controllers/<Name>/` with an index or same-name runtime entry and independently
|
|
94
110
|
guarded public re-exports. They may use the configured framework and declared
|
|
@@ -291,6 +307,17 @@ Store original branding and its usage, credits, and licenses in
|
|
|
291
307
|
`assets/brand/`, and fonts in `assets/fonts/`. Configure generated icons and
|
|
292
308
|
asset mounts as described in the [branding guide](GUIDE.md#branding).
|
|
293
309
|
|
|
310
|
+
Before importing, compare the selected source and its dependencies with the
|
|
311
|
+
destination's framework, public APIs, shared tokens, styling ownership and
|
|
312
|
+
runtime assumptions. Resolve material incompatibilities before applying the
|
|
313
|
+
affected changes; verify the integrated candidate with destination checks and
|
|
314
|
+
rendered evidence. The `ads-import` skill contains the compatibility workflow.
|
|
315
|
+
That workflow resolves source differences within the selected scope, including
|
|
316
|
+
reimplementation where needed. Source/destination version numbers do not grant
|
|
317
|
+
compatibility or restrict imports to patch releases. Required package installation
|
|
318
|
+
uses the project package manager before validating dependent runtime changes;
|
|
319
|
+
ADS candidate checks use installed dependencies and do not install them.
|
|
320
|
+
|
|
294
321
|
- Component, pattern, and style imports reuse destination values and add
|
|
295
322
|
missing shared definitions with initial values.
|
|
296
323
|
- An explicit token-values import adopts all source-provided compatible values
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -5,6 +5,13 @@ the project. Coding agents can build and evolve that source directly; the tools
|
|
|
5
5
|
keep changes within a defined architecture. The project owns its components,
|
|
6
6
|
patterns, token values, and branding.
|
|
7
7
|
|
|
8
|
+
ADS manages project-owned UI for websites and MCP Apps. Both use the same public
|
|
9
|
+
components, patterns, controllers, tokens and styles. The consuming application
|
|
10
|
+
supplies data, actions, mounting and integration, including serving its MCP Apps.
|
|
11
|
+
The ADS showcase renders those real implementations inside MCP Apps; its previews
|
|
12
|
+
and registered checks provide evidence for the exercised states and conditions.
|
|
13
|
+
Normal application checks verify website integration.
|
|
14
|
+
|
|
8
15
|
This document explains the what, why, and high-level how. [ADS.md](ADS.md) defines
|
|
9
16
|
the enforceable contract, [GUIDE.md](GUIDE.md) covers tool integration, and the
|
|
10
17
|
[working example guide](../design-system/README.md) covers implementation details.
|
|
@@ -23,6 +30,11 @@ their own reviewed lifecycle.
|
|
|
23
30
|
|
|
24
31
|
ADS is opinionated about tooling and ownership. Linaria is required for the
|
|
25
32
|
component and pattern styling pipeline. Visual choices belong to the project.
|
|
33
|
+
Development tooling runs on Node or Bun, selected by its launcher. Managed
|
|
34
|
+
workers inherit that interpreter; `command: "runtime"` gives project compilers
|
|
35
|
+
and behavior profiles the same portable choice. Explicit interpreter commands
|
|
36
|
+
retain their meaning. Runtime choice is separate from the UI framework and adds
|
|
37
|
+
no Node/Bun dependency to deployed components.
|
|
26
38
|
The project declares React or native Preact in `ds.config.json` and uses the
|
|
27
39
|
matching compiler and mount adapter. Both integrate with the required styling
|
|
28
40
|
and validation pipeline; additional frameworks need explicit tooling support.
|
|
@@ -391,15 +403,78 @@ appearance, keyboard behavior or visual parity; browser checks remain necessary.
|
|
|
391
403
|
The skill-local [scenario guide](../skills/ads-designer/references/scenarios.md)
|
|
392
404
|
explains evidence, limits and diagnostics.
|
|
393
405
|
|
|
406
|
+
### Folder-derived navigation
|
|
407
|
+
|
|
408
|
+
The filesystem is the only grouping source. A nonempty container above an owner,
|
|
409
|
+
whose non-hidden children are all real directories, supplies its exact folder
|
|
410
|
+
name. An owner directory and layer root never become groups; a direct file or
|
|
411
|
+
symlink disqualifies a container. Nested qualifying containers form a path label
|
|
412
|
+
such as `Forms / Selection`. Flat owners stay ungrouped with no Default heading.
|
|
413
|
+
This applies to components, patterns and compositions; token categories remain
|
|
414
|
+
unchanged. Move owners to reorganize groups, updating imports and path-derived
|
|
415
|
+
identities where needed. No scenario/owner metadata can override the folder rule.
|
|
416
|
+
|
|
417
|
+
Discovery adds an optional derived `group` to scenario results. One registry feeds
|
|
418
|
+
`ads_scenarios`, its searchable group labels, `ads://project/scenarios` and the
|
|
419
|
+
showcase. The browser only groups those results; it does not scan folders or own a
|
|
420
|
+
second taxonomy. Directory entries participate in discovery and build freshness,
|
|
421
|
+
so adding/removing a non-source file also updates grouping without a TSX edit.
|
|
422
|
+
Public catalogue preview IDs, edit-unit ownership and compiled
|
|
423
|
+
resource selection continue to use the real owner/scenario paths. Grouping grants
|
|
424
|
+
no API visibility, render coverage, styling permission or runtime behavior.
|
|
425
|
+
|
|
426
|
+
### Incremental compilation and refresh
|
|
427
|
+
|
|
428
|
+
`runScenarioCompiler` owns scheduling, validation, freshness and publication.
|
|
429
|
+
The project's `createVitePreviewBuilder({ build, configure })` adapter owns its
|
|
430
|
+
framework and Linaria configuration. During a watched session it retains one
|
|
431
|
+
Vite/Rollup graph, reusing unchanged module transforms and rebuilding dependencies
|
|
432
|
+
that changed. An entry-list or project-configuration change creates a fresh graph.
|
|
433
|
+
Existing custom adapters retain their behavior until they adopt this helper;
|
|
434
|
+
one-shot production/library builds keep their own compiler and optimization.
|
|
435
|
+
|
|
436
|
+
```mermaid
|
|
437
|
+
flowchart LR
|
|
438
|
+
Edit[Source edit] --> Registry[Refresh scenario registry]
|
|
439
|
+
Registry --> Validate[Validate project]
|
|
440
|
+
Registry --> Compile[Update persistent Vite graph]
|
|
441
|
+
Validate --> Publish[Check source revision and publish atomically]
|
|
442
|
+
Compile --> Publish
|
|
443
|
+
Publish --> App[Compare selected dependency closure]
|
|
444
|
+
App --> Keep[Unchanged: keep mounted view]
|
|
445
|
+
App --> Mount[Changed: remount selected view]
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
Watch output is private scratch data under `.ds/incremental/`, not a successful
|
|
449
|
+
published build. Both validation and compilation must succeed against unchanged
|
|
450
|
+
source before the scheduler publishes immutable resources. Failed/superseded work
|
|
451
|
+
retains the previous preview with stale diagnostics. Files outside Rollup's module
|
|
452
|
+
graph still cause validation and build reconciliation. Normal compiler shutdown
|
|
453
|
+
closes its Vite watcher and removes its scratch directory.
|
|
454
|
+
|
|
455
|
+
A successful global revision does not require remounting an unchanged selected
|
|
456
|
+
view. The App compares its static module/style/asset closure, retains DOM/form/
|
|
457
|
+
scroll state when that closure matches, and reruns token/paint audits against the
|
|
458
|
+
accepted manifest. A changed selected closure remounts through the project's
|
|
459
|
+
adapter. Native ESM resources still obey digest checks and the existing bounded
|
|
460
|
+
revision lifecycle; this is state-preserving refresh, not component-level HMR.
|
|
461
|
+
|
|
462
|
+
Incremental compilation is separate from test selection. Preview refresh runs the
|
|
463
|
+
adapter's validation callback. Guarded mutations select affected behavior owners
|
|
464
|
+
by registered input dependencies, then execute their registered checks. A shared
|
|
465
|
+
foundation change can select every owner. Configured project checks still run as
|
|
466
|
+
authored; releases run the full test suite. ADS does not claim per-test-case
|
|
467
|
+
selection or skip validation because a module transform was cached.
|
|
468
|
+
|
|
394
469
|
After source changes, validation and compilation must both succeed before a new
|
|
395
470
|
graph becomes current. MCP announces build/resource updates.
|
|
396
471
|
Build success records the project input digest captured before compilation;
|
|
397
472
|
status reads independently verify that digest and the output bytes. Guarded
|
|
398
473
|
publication invalidates the compiler explicitly. Content reconciliation recovers
|
|
399
474
|
missed atomic file replacements, so OS watch delivery cannot establish freshness.
|
|
400
|
-
The built-in client refreshes discovery and sends the current selection to the
|
|
401
|
-
|
|
402
|
-
visible stale diagnostics. Invalid scenario metadata at startup and later source
|
|
475
|
+
The built-in client refreshes discovery and sends the current selection to the
|
|
476
|
+
existing App. Its loader retains or remounts that view according to its dependency
|
|
477
|
+
closure. Failed builds retain the previous view with visible stale diagnostics. Invalid scenario metadata at startup and later source
|
|
403
478
|
failures stay in the watcher's recoverable diagnostic path. Fixing source triggers validation again.
|
|
404
479
|
If the compiler process exits, the next preview request starts one fresh child;
|
|
405
480
|
MCP inspection remains available. Each child generation has its own status report,
|
|
@@ -654,3 +729,10 @@ may use `inspectTokenOrigins` to audit more specific shared alias relationships;
|
|
|
654
729
|
core Data/UX/Skin separation does not depend on opting into such a check. ADS does
|
|
655
730
|
not hardcode a spacing scale or palette. Contract/file-role migration still uses
|
|
656
731
|
ordinary owner drafts, candidate gates and rollback.
|
|
732
|
+
|
|
733
|
+
Preview scheduling prunes standard generated output trees before allocating OS
|
|
734
|
+
watches and computing source freshness. Explicit source roots retain priority;
|
|
735
|
+
custom outputs use `assets.generatedPaths`. Bundled binary assets are forwarded
|
|
736
|
+
as resources: the built-in Apps sandbox permits blob reads and WebAssembly
|
|
737
|
+
compilation without granting external network access, JavaScript eval or host
|
|
738
|
+
DOM access. External MCP hosts retain their own CSP policy.
|