• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 24172313850
67%

Build:
DEFAULT BRANCH: main
Ran 09 Apr 2026 04:41AM UTC
Jobs 1
Files 257
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Apr 2026 04:25AM UTC coverage: 64.459% (+0.06%) from 64.403%
24172313850

push

github

web-flow
chore(tools): Extract anchor-targeted section when fetching URLs (#526)

When a URL contains a fragment (e.g. `https://example.com/docs#setup`),
the `web_fetch` tool previously fetched and converted the entire page to
markdown. For large documentation pages, this wastes context window by
including irrelevant sections.

The fragment is now used to locate the anchor element in the HTML before
conversion. If the anchor points to a heading, the heading and all
following siblings up to the next heading of equal or higher level are
extracted as the section. For non-heading elements (e.g. a `<section>`),
the element's own HTML is used directly. The original `<head>` is
preserved so the converter retains metadata. If the anchor isn't found,
the full page falls back as before.

The `scraper` crate is added as a new workspace dependency to handle
HTML parsing and CSS selector-based element lookup.

---------

Signed-off-by: Jean Mertz <git@jeanmertz.com>

55 of 58 new or added lines in 1 file covered. (94.83%)

20260 of 31431 relevant lines covered (64.46%)

234.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
54.86
19.81% .config/jp/tools/src/web/fetch.rs
Jobs
ID Job ID Ran Files Coverage
1 24172313850.1 09 Apr 2026 04:41AM UTC 257
64.46
GitHub Action Run
Source Files on build 24172313850
  • Tree
  • List 257
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24172313850
  • 7a6c5979 on github
  • Prev Build on main (#24172309547)
  • Next Build on main (#24186717595)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc