From ee676f6106a807f12e753eb49126b53a485ef2d8 Mon Sep 17 00:00:00 2001 From: Avi Fenesh Date: Wed, 25 Feb 2026 00:59:32 +0200 Subject: [PATCH 1/3] fix: include complementary ARIA landmarks in auto-scoped snapshots (#26) detectMainContent now captures adjacent aside and [role="complementary"] siblings when a main landmark is found, returning a virtual locator that concatenates all region snapshots. This surfaces sidebar content like repository stats without requiring manual scoping. Complementary regions are capped at 3 and failures are silently skipped. --- CHANGELOG.md | 1 + scripts/web-ctl.js | 35 +++- skills/web-browse/SKILL.md | 2 +- tests/get-snapshot.test.js | 357 +++++++++++++++++++++++++++++++++- tests/web-ctl-actions.test.js | 4 + 5 files changed, 391 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02ac84d..b72732c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ - `--max-field-length ` flag for `extract` macro to configure maximum characters per extracted field (default: 500, max: 2000) ### Fixed +- Smart default snapshot scoping now includes complementary ARIA landmarks (`