@reqvire-org/ads 0.3.12 → 0.3.14
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 +20 -1
- package/dist/bootstrap-ds/ADS.md +4 -1
- package/dist/capture/worker.mjs +38 -0
- package/dist/capture-store.mjs +123 -0
- package/dist/capture.mjs +117 -0
- package/dist/check.mjs +8 -2
- package/dist/config.mjs +6 -1
- package/dist/mcp/context.mjs +1 -1
- package/dist/mcp/mutations.mjs +25 -5
- package/dist/mcp/server.mjs +62 -15
- package/dist/scenario-slots.mjs +124 -0
- package/dist/scenarios.mjs +9 -3
- package/dist/showcase/client.bundle.js +18 -18
- package/dist/showcase/style.css +2 -0
- package/dist/skills/ads-break-ui/SKILL.md +6 -1
- package/dist/skills/ads-break-ui/references/captures.md +147 -0
- package/dist/skills/ads-break-ui/references/guarded-editing.md +72 -3
- package/dist/skills/ads-break-ui/references/scenarios.md +40 -1
- package/dist/skills/ads-designer/SKILL.md +6 -1
- package/dist/skills/ads-designer/assets/bootstrap-ds/ADS.md +4 -1
- package/dist/skills/ads-designer/references/captures.md +147 -0
- package/dist/skills/ads-designer/references/guarded-editing.md +72 -3
- package/dist/skills/ads-designer/references/scenarios.md +40 -1
- package/dist/skills/ads-import/SKILL.md +6 -1
- package/dist/skills/ads-import/references/captures.md +147 -0
- package/dist/skills/ads-import/references/guarded-editing.md +72 -3
- package/dist/skills/ads-import/references/scenarios.md +40 -1
- package/dist/skills/ads-migrate/SKILL.md +6 -1
- package/dist/skills/ads-migrate/references/captures.md +147 -0
- package/dist/skills/ads-migrate/references/guarded-editing.md +72 -3
- package/dist/skills/ads-migrate/references/scenarios.md +40 -1
- package/dist/skills/ads-motion/SKILL.md +6 -1
- package/dist/skills/ads-motion/references/captures.md +147 -0
- package/dist/skills/ads-motion/references/guarded-editing.md +72 -3
- package/dist/skills/ads-motion/references/scenarios.md +40 -1
- package/dist/source-values.mjs +2 -1
- package/dist/verification/browser.mjs +8 -3
- package/dist/verification/playwright-reporter.cjs +23 -8
- package/dist/verification.mjs +142 -33
- package/docs/ADS.md +10 -2
- package/docs/ARCHITECTURE.md +43 -2
- package/docs/BEHAVIORS.md +66 -7
- package/docs/CHANGELOG.md +27 -0
- package/docs/GUIDE.md +48 -1
- package/docs/MCP.md +54 -1
- package/package.json +1 -1
package/docs/MCP.md
CHANGED
|
@@ -177,6 +177,8 @@ The server supplies agent guidance through its instructions, tool descriptions,
|
|
|
177
177
|
| `ads_show_scenario` | Render an exact discovered scenario with its own fixtures |
|
|
178
178
|
| `ads_behaviors` | Bounded guarantee/evidence discovery; pass an exact unit for contract details |
|
|
179
179
|
| `ads_verify` | Execute an owner's registered checks and record revision-bound evidence |
|
|
180
|
+
| `ads_capture` | On-demand PNG of a discovered scenario or named element; replace current and clear candidate |
|
|
181
|
+
| `ads_capture_clear` | Remove generated captures or discard only the candidate |
|
|
180
182
|
| `ads_show_<id>` | Optional explicitly configured grouped App |
|
|
181
183
|
| `ads_units` | Discover edit owners and the files belonging to one unit |
|
|
182
184
|
| `ads_prepare_patch` | Prepare a local draft of one owner, then generate its Git patch |
|
|
@@ -212,6 +214,36 @@ informational limit nor a traced target proves a rendered failure or success.
|
|
|
212
214
|
Bounded check results put warnings before informational limits; the checks
|
|
213
215
|
resource retains complete results.
|
|
214
216
|
|
|
217
|
+
### Screenshots and candidate comparison
|
|
218
|
+
|
|
219
|
+
`ads_capture({scenario:"<discovered ID>",target?,theme?,viewport?})` renders current
|
|
220
|
+
source in the real sandboxed App using project-local Playwright/browser. It returns
|
|
221
|
+
PNG resource URIs and revision/settings metadata. The default is the full widget
|
|
222
|
+
viewport; optional `captureTargets` metadata names an element within the scenario.
|
|
223
|
+
Token/component/pattern/composition scenarios share this path. The tool adds no
|
|
224
|
+
project-specific renderer or fixture assumptions.
|
|
225
|
+
|
|
226
|
+
Patch and transaction dry runs accept `screenshot:true` plus an explicit 1–8-entry
|
|
227
|
+
`captures:[{scenario,target?,theme?,viewport?}]` selection. Existing gates run first;
|
|
228
|
+
current and candidate use matching capture settings. Source/conflict checks remain
|
|
229
|
+
mandatory. No screenshots are created by ordinary patches/dry runs. A newly added
|
|
230
|
+
scenario has a candidate with an explicit absent current baseline.
|
|
231
|
+
|
|
232
|
+
`ads://project/captures` lists current/candidate slots, metadata and freshness.
|
|
233
|
+
Read returned `ads://captures/{key}/{slot}` resources as `image/png` binary content;
|
|
234
|
+
the resource template is advertised without per-revision catalogue growth.
|
|
235
|
+
Subscriptions receive `resources/updated` for replacement/removal. Successful
|
|
236
|
+
standalone capture replaces current and clears any prior candidate. Applying
|
|
237
|
+
matching proposed source promotes candidate; explicit `ads_capture_clear` can
|
|
238
|
+
discard the candidate or both slots. There is no previous/history/TTL. Source
|
|
239
|
+
changes mark stale images; deleted targets are collected. Capture data is bounded
|
|
240
|
+
generated output under `.ds/captures/`, not a source mutation or behavior pass.
|
|
241
|
+
|
|
242
|
+
Optional `mcp.capture` selects browser, Chromium channel and runner timeout.
|
|
243
|
+
ADS installs no browser dependencies. See `ads://guides/captures` or the portable
|
|
244
|
+
[capture reference](../skills/ads-designer/references/captures.md) for setup, precise
|
|
245
|
+
limits, target declarations and the guarded review workflow.
|
|
246
|
+
|
|
215
247
|
### Behavioral verification
|
|
216
248
|
|
|
217
249
|
Read `ads://guides/behaviors` or the [behavior guide](BEHAVIORS.md) for the contract
|
|
@@ -229,6 +261,20 @@ Missing/skipped cases, unavailable runners and changed inputs cannot pass.
|
|
|
229
261
|
Results and subscribed resource notifications are available through
|
|
230
262
|
`ads://project/behaviors`; explicitly re-read evidence when notifications are absent.
|
|
231
263
|
|
|
264
|
+
During a run, `ads_status.behaviors.progress` exposes completed/active/pending
|
|
265
|
+
checks, timings and the profile's whole-run timeout. Candidate mutation checks use
|
|
266
|
+
`ads_status.mutations.progress`. Requested MCP progress notifications also report
|
|
267
|
+
runner activity. Playwright uses the project's workers and filters selected case
|
|
268
|
+
tags; ADS does not silently change timeout or parallelism policy. Timeout results
|
|
269
|
+
retain partial outcomes and reports under `.ds/verification/`, but incomplete
|
|
270
|
+
runs still block application and cannot establish passing guarantees. See the
|
|
271
|
+
[runner and evidence details](BEHAVIORS.md#register-execution-profiles).
|
|
272
|
+
|
|
273
|
+
A complete ordinary failed run preserves the actual mixed case outcomes; a
|
|
274
|
+
single failed assertion does not turn the other checks into failures. Overall
|
|
275
|
+
verification and guarded application still fail. Suite errors, unexplained exits,
|
|
276
|
+
missing results and interrupted reports cannot certify passing checks.
|
|
277
|
+
|
|
232
278
|
Browser profiles start an isolated showcase and verify its sandboxed App using
|
|
233
279
|
the selected candidate's sources. StrictMode profiles need a project React
|
|
234
280
|
development harness. Profiles describe the execution environment, not a proof
|
|
@@ -361,7 +407,14 @@ directory containing only the owner and declared companions. Edit that directory
|
|
|
361
407
|
using the client's local file tools, then call
|
|
362
408
|
`ads_prepare_patch({unit, action:"diff", draft})`. It checks source/baseline
|
|
363
409
|
freshness and owner paths and returns a `patchFile`; it changes no live source.
|
|
364
|
-
|
|
410
|
+
Pass that `patchFile` to `ads_apply_patch` with `dryRun:true` to validate before
|
|
411
|
+
applying. This runs the normal candidate gates, including affected registered
|
|
412
|
+
behavior checks against an isolated candidate and its configured browser preview.
|
|
413
|
+
It writes no live source and does not persist passing evidence for live inputs.
|
|
414
|
+
Read returned `behavior` failures or behavior-check results in `checks`; update the
|
|
415
|
+
draft, diff again and repeat as needed. Apply with `dryRun:false` after validation;
|
|
416
|
+
the gates run again. `ads_verify({unit,checks?})` checks current source and accepts
|
|
417
|
+
no draft argument; a selected-check draft runner is not currently exposed.
|
|
365
418
|
Use `action:"discard"` to remove the draft. Remote clients can continue sending
|
|
366
419
|
inline Git diffs. Drafts are local conveniences, not an alternative mutation API.
|
|
367
420
|
|