@reqvire-org/ads 0.3.29 → 0.3.32
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/dist/config.mjs +7 -2
- package/dist/mcp/apps.mjs +3 -1
- package/dist/mcp/build-status.mjs +1 -1
- package/dist/mcp/mutations.mjs +49 -8
- package/dist/mcp/server.mjs +14 -10
- package/dist/preview-files.mjs +19 -12
- package/dist/preview-inputs.mjs +6 -17
- package/dist/preview-resources.mjs +25 -3
- package/dist/project-documents.mjs +4 -0
- package/dist/scenario-trace.mjs +2 -1
- package/dist/showcase/client.bundle.js +23 -23
- package/dist/showcase/index.html +2 -2
- package/dist/showcase/style.css +7 -0
- package/dist/skills/ads-break-ui/references/behaviors.md +2 -0
- package/dist/skills/ads-break-ui/references/layers.md +6 -0
- package/dist/skills/ads-break-ui/references/validation.md +16 -0
- package/dist/skills/ads-designer/references/behaviors.md +2 -0
- package/dist/skills/ads-designer/references/layers.md +6 -0
- package/dist/skills/ads-designer/references/validation.md +16 -0
- package/dist/skills/ads-import/references/behaviors.md +2 -0
- package/dist/skills/ads-import/references/layers.md +6 -0
- package/dist/skills/ads-import/references/validation.md +16 -0
- package/dist/skills/ads-motion/references/behaviors.md +2 -0
- package/dist/skills/ads-motion/references/layers.md +6 -0
- package/dist/skills/ads-motion/references/validation.md +16 -0
- package/dist/skills/ads-port/references/behaviors.md +2 -0
- package/dist/skills/ads-port/references/layers.md +6 -0
- package/dist/skills/ads-port/references/validation.md +16 -0
- package/dist/test-boundaries.mjs +3 -2
- package/dist/units.mjs +8 -2
- package/dist/validation-inputs.mjs +142 -0
- package/dist/validation.mjs +3 -17
- package/docs/ARCHITECTURE.md +26 -5
- package/docs/BEHAVIORS.md +2 -0
- package/docs/CHANGELOG.md +49 -0
- package/docs/GUIDE.md +2 -0
- package/docs/MCP.md +38 -4
- package/package.json +1 -1
package/docs/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.32
|
|
4
|
+
|
|
5
|
+
- Add a phone-width showcase toggle for components, patterns and compositions.
|
|
6
|
+
Preserve mounted example state and shareable viewport links; collapse the
|
|
7
|
+
catalogue automatically on narrow browsers without changing the app host.
|
|
8
|
+
- Allow self-contained data/blob widget frames inside sandboxed Apps while
|
|
9
|
+
retaining external frame restrictions and parent-document isolation.
|
|
10
|
+
- Copy JavaScript runtimes alongside resolved declarations and include newly
|
|
11
|
+
selected package-command entrypoints and dependencies in mutation candidates.
|
|
12
|
+
- Ignore local Claude Code configuration and installed skill copies; the
|
|
13
|
+
canonical distributed skills remain in `skills/`.
|
|
14
|
+
|
|
15
|
+
## 0.3.31
|
|
16
|
+
|
|
17
|
+
- Allow the Bun-only package smoke case one minute for cold candidate/browser
|
|
18
|
+
startup, two minutes for its runner, and six minutes for the complete smoke
|
|
19
|
+
process. Preserve all checks and assertions. Version 0.3.30 was not published
|
|
20
|
+
after CI caught its previous twenty-second startup budget.
|
|
21
|
+
|
|
22
|
+
- Prepare path exclusions once per source scan instead of resolving the same
|
|
23
|
+
generated directories for every visited file. Preserve source-root precedence,
|
|
24
|
+
complete test discovery and current-byte freshness checks.
|
|
25
|
+
|
|
26
|
+
- Reuse digest verification metadata for unchanged preview assets during status
|
|
27
|
+
polling. Invalidate on file identity, size or timestamp changes and keep actual
|
|
28
|
+
resource delivery checked against its expected bytes.
|
|
29
|
+
|
|
30
|
+
- Accept conditional data-only scenario prop spreads without treating their
|
|
31
|
+
absent className alternatives as custom styling. Keep styled branches subject
|
|
32
|
+
to the existing class provenance checks.
|
|
33
|
+
|
|
34
|
+
- Fence mutations, validation baselines and preview freshness against ADS/UI and
|
|
35
|
+
actual local dependencies instead of unrelated project source. Keep test-boundary
|
|
36
|
+
coverage, candidate source-write detection and all patched paths protected. Add
|
|
37
|
+
additive `validation.inputs` for data read by opaque project commands.
|
|
38
|
+
Copy only those inputs and patched files into mutation candidates; leave native
|
|
39
|
+
caches out and allow up to 100,000 files / 2 GiB of relevant source.
|
|
40
|
+
Keep HTTP resource reads on the immutable byte path with the shared observer,
|
|
41
|
+
avoiding repeated source/build observation initialization for each request.
|
|
42
|
+
|
|
43
|
+
- Allow explicit behavior-profile budgets up to fifteen minutes so larger
|
|
44
|
+
catalogues can complete verification. Keep the one-minute default, whole-run
|
|
45
|
+
cancellation and separate project-command/capture limits.
|
|
46
|
+
|
|
47
|
+
- Restore the preview pane's spinner when navigating to a different entry, until
|
|
48
|
+
that scenario mounts. Keep editing and validation on the quiet header ring.
|
|
49
|
+
Ignore messages from the previous selection, expose pending navigation through
|
|
50
|
+
`aria-busy` and respect reduced motion.
|
|
51
|
+
|
|
3
52
|
## 0.3.29
|
|
4
53
|
|
|
5
54
|
- Prepare managed previews after accepted MCP edits, including unopened viewers.
|
package/docs/GUIDE.md
CHANGED
|
@@ -577,6 +577,8 @@ classes or native widget replicas. Reusable review layouts are public project
|
|
|
577
577
|
patterns; the outer browser shell is tooling UI. Full-app integration harnesses
|
|
578
578
|
belong in application tests. See the [contract](ADS.md#showcase-contract).
|
|
579
579
|
|
|
580
|
+
The showcase header's **Phone viewport** toggle constrains the real preview iframe to 390 CSS pixels (or the available width on a narrower screen). It is available for patterns and compositions as well as components, keeps the mounted example and its state, and does not change the selected application host. Use it to review a responsive web shell at phone width independently of a native mobile app shell. `?viewport=phone` preserves this preview choice in a link; toggle it off to follow the available browser width. On phone browsers the catalogue starts collapsed, leaving the available width to the preview; the navigation button can reopen it. Automated captures retain their exact requested viewport.
|
|
581
|
+
|
|
580
582
|
For this checkout, `npm run dev:showcase` builds the tool and launches its client;
|
|
581
583
|
`npm run build:showcase` compiles scenario artifacts for verification. Use `bun
|
|
582
584
|
run` with the same script names. These commands do not install a UI catalogue.
|
package/docs/MCP.md
CHANGED
|
@@ -66,7 +66,11 @@ managed project compiler on demand and after relevant source changes.
|
|
|
66
66
|
Switching entries updates the scenario inside the existing App. A quiet monochrome
|
|
67
67
|
indicator in the upper-right header reports compilation, checking, readiness or
|
|
68
68
|
failure; hover or click reveals details. The preview remains interactive during
|
|
69
|
-
background checks.
|
|
69
|
+
background checks. Switching to another entry shows a loading spinner in the
|
|
70
|
+
preview pane until that selection mounts. Editing the current entry uses only
|
|
71
|
+
the header ring, without covering the preview. Messages from the previous
|
|
72
|
+
selection cannot clear navigation's loading state.
|
|
73
|
+
Token presentation comes from project-owned scenarios, fixtures and
|
|
70
74
|
development-only review helpers, using the project's real foundation CSS and extracted
|
|
71
75
|
styles. The App runtime contains no token sample templates or named token ordering.
|
|
72
76
|
The generic definition inspector remains available without a scenario build.
|
|
@@ -319,7 +323,10 @@ Results and subscribed resource notifications are available through
|
|
|
319
323
|
During a run, `ads_status.behaviors.progress` exposes completed/active/pending
|
|
320
324
|
checks, timings and the profile's whole-run timeout. Candidate mutation checks use
|
|
321
325
|
`ads_status.mutations.progress`. Requested MCP progress notifications also report
|
|
322
|
-
runner activity.
|
|
326
|
+
runner activity. Profiles accept an explicit `timeoutMs` from 100 to 900000 ms
|
|
327
|
+
(up to fifteen minutes), with a 60000 ms default. This covers the complete
|
|
328
|
+
selected suite; each runner's individual test/hook timeouts are separate.
|
|
329
|
+
Playwright uses the project's workers and filters selected case
|
|
323
330
|
tags; ADS does not silently change timeout or parallelism policy. Timeout results
|
|
324
331
|
retain partial outcomes and reports under `.ds/verification/`, but incomplete
|
|
325
332
|
runs still block application and cannot establish passing guarantees. See the
|
|
@@ -603,8 +610,8 @@ project settings. The project continues to own its architecture and extensions.
|
|
|
603
610
|
|
|
604
611
|
One unit patch is limited to 32 entries and 256 KiB inline, or 16 MiB through
|
|
605
612
|
`patchFile`. Each original/resulting file is limited to 16 MiB. Validation snapshots
|
|
606
|
-
are bounded to
|
|
607
|
-
tracking checks. Malformed or mismatched patches, changed project inputs and
|
|
613
|
+
copy relevant inputs only, are bounded to 100,000 files and 2 GiB, and retain the
|
|
614
|
+
original project's Git tracking checks. Malformed or mismatched patches, changed project inputs and
|
|
608
615
|
cancelled checks leave source unchanged. Write failures roll back applied entries.
|
|
609
616
|
|
|
610
617
|
Acceptance refreshes discovery, generated branding and previews. Configuration
|
|
@@ -1299,3 +1306,30 @@ boundaries, script selection and limits. Full audits include configured scripts
|
|
|
1299
1306
|
and registered guarantees; changed mode narrows behavior owners while core and
|
|
1300
1307
|
opaque project scripts remain complete. Neither mode rewrites npm test commands
|
|
1301
1308
|
or treats compiled live previews as verification evidence.
|
|
1309
|
+
|
|
1310
|
+
Source freshness covers the configured ADS and UI roots, public assets, local
|
|
1311
|
+
imports/workers/assets, registered configuration and command entrypoints, package
|
|
1312
|
+
manifests/locks/patches, and supported project tests with their dependencies.
|
|
1313
|
+
Unrelated native/backend/documentation changes do not reject an ADS mutation or
|
|
1314
|
+
stale its preview. Every patched file remains protected, including documentation.
|
|
1315
|
+
Changes to either the original or proposed configuration's inputs reject a stale
|
|
1316
|
+
candidate; validation commands that write candidate source still fail.
|
|
1317
|
+
Unrelated source symlinks are omitted from the temporary copy; tracked source
|
|
1318
|
+
paths retain their symlink checks.
|
|
1319
|
+
The HTTP host uses its shared observer for change detection. Serving immutable
|
|
1320
|
+
resource bytes does not initialize a second source/build scan per request, and
|
|
1321
|
+
still verifies the resource digest. Explicit status and validation retain their
|
|
1322
|
+
freshness checks.
|
|
1323
|
+
|
|
1324
|
+
For opaque command inputs that static imports cannot reveal, add project-relative
|
|
1325
|
+
files or directories to `validation.inputs`, for example:
|
|
1326
|
+
|
|
1327
|
+
```json
|
|
1328
|
+
{ "validation": { "inputs": ["schemas/ui.json", "tools/check-data"] } }
|
|
1329
|
+
```
|
|
1330
|
+
|
|
1331
|
+
These are additive source paths, not globs or exclusions. Missing paths are tracked
|
|
1332
|
+
so later creation invalidates evidence. Dependencies, metadata and generated output
|
|
1333
|
+
are not source inputs. The setting defaults to an empty list and accepts up to 200
|
|
1334
|
+
unique canonical paths below the project root. Declare data read dynamically by
|
|
1335
|
+
selected commands; ADS cannot infer arbitrary filesystem access inside a command.
|