@riddledc/riddle-proof 0.7.89 → 0.7.91
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 +23 -0
- package/dist/{chunk-CEBHV23V.js → chunk-2SGLFPFX.js} +517 -6
- package/dist/cli.cjs +548 -6
- package/dist/cli.js +32 -1
- package/dist/index.cjs +517 -6
- package/dist/index.js +1 -1
- package/dist/profile.cjs +517 -6
- package/dist/profile.d.cts +9 -1
- package/dist/profile.d.ts +9 -1
- package/dist/profile.js +1 -1
- package/dist/proof-run-core.d.cts +1 -1
- package/dist/proof-run-core.d.ts +1 -1
- package/dist/proof-run-engine.d.cts +3 -3
- package/dist/proof-run-engine.d.ts +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -450,6 +450,29 @@ scroll width, client width, measured horizontal overflow, and top visible
|
|
|
450
450
|
overflow offenders. This keeps embedded-player audits in profile mode instead
|
|
451
451
|
of requiring bespoke iframe inspection scripts.
|
|
452
452
|
|
|
453
|
+
Use `link_status` for public link or asset audits where selected `href` / `src`
|
|
454
|
+
URLs must still resolve. This is useful for Good Catch pages, documentation
|
|
455
|
+
indexes, saved-game galleries, and other public proof surfaces where stale
|
|
456
|
+
artifact links should fail the profile:
|
|
457
|
+
|
|
458
|
+
```json
|
|
459
|
+
{
|
|
460
|
+
"type": "link_status",
|
|
461
|
+
"selector": "a[href*='/artifacts/'], img[src*='/artifacts/']",
|
|
462
|
+
"expected_count": 88,
|
|
463
|
+
"same_origin_only": true,
|
|
464
|
+
"require_nonzero_bytes": true,
|
|
465
|
+
"max_links": 150
|
|
466
|
+
}
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
The check defaults to `a[href]`, deduplicates URLs, probes up to 100 selected
|
|
470
|
+
URLs, and treats HTTP `2xx` / `3xx` responses as healthy. Use
|
|
471
|
+
`allowed_statuses` or `expected_status` when a narrower status contract is
|
|
472
|
+
intentional, `min_count` for lower-bound audits, and `max_links` when the
|
|
473
|
+
selected set is intentionally larger than 100. `artifact_link_status` is an
|
|
474
|
+
alias with the same behavior for profiles that want artifact-specific wording.
|
|
475
|
+
|
|
453
476
|
Use the `route_inventory` check for source-page route coverage audits where a
|
|
454
477
|
navigation surface must expose a known set of routes and each route must load
|
|
455
478
|
both directly and through real link clicks:
|