feat(cli): check and snapshot --local-only load nothing but the project and template CDNs

This commit is contained in:
Miguel Angel Simon Sierra
2026-10-14 12:49:03 -07:00
parent c0636d017f
commit 7a00aacaad
8 changed files with 156 additions and 4 deletions
+2 -1
View File
@@ -756,6 +756,7 @@ cover every finding from the full check.
| `--layout` | Layout knobs, currently `proseCoverageFloor=0.05` (0–1, default 0.15) |
| `--browser-gpu` / `--no-browser-gpu` | Hardware GPU capture, or deterministic SwiftShader (default: auto-detect) |
| `--proxy` / `--no-proxy` | Auto-transcode browser-hostile codecs before checking (default: on) |
| `--local-only` | Load only the project's own files, `data:`/`blob:` URLs and the template CDNs (GSAP on jsDelivr, Google Fonts). A request to any other host fails and is reported as a failed load. |
`--caption-zone` and `--frame-check` refuse a ranged check when none of their
configured seek samples falls inside `--range`; a requested gate never silently
@@ -876,7 +877,7 @@ npx hyperframes snapshot my-project --at 1.5,4.3 --against ref.mp4
| `--angle` | Orthogonal 3D camera for depth and occlusion checks: `front`, `iso`, `top`, `side`, or `yaw,pitch` in degrees. Tilts the whole stage, so you get real pixels. |
| `--describe` | Gemini vision analysis of each frame. Runs by default when `GEMINI_API_KEY` is set. Pass a question to override the prompt, or `--describe false` to opt out. |
| `--timeout` | Ms to wait for the runtime (default 5000) |
| `--browser-gpu`, `--proxy` | Same meaning as on [`check`](#check) |
| `--browser-gpu`, `--proxy`, `--local-only` | Same meaning as on [`check`](#check) |
Each snapshot is a 1920×1080 PNG taken by bundling the project, serving it,
launching headless Chrome, and seeking. Useful for visual verification during