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

dcdpr / jp / 25508761275
66%

Build:
DEFAULT BRANCH: main
Ran 07 May 2026 04:33PM UTC
Jobs 1
Files 301
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

07 May 2026 04:30PM UTC coverage: 66.25% (+0.07%) from 66.18%
25508761275

push

github

web-flow
chore(tools): Add `start_line`/`end_line` paging to diff tools (#622)

Both `git_diff_file` and `git_diff_commit` previously had only one
escape hatch when a diff exceeded the 500-line truncation cap: the
`pattern` grep parameter. That left no way to inspect a specific region
of a large diff without already knowing what to search for.

This change adds `start_line` and `end_line` parameters to both tools,
mirroring the interface of `fs_read_file`. When either bound is
supplied, the diff is sliced to that 1-based output-line window before
any further processing, and the truncation cap is bypassed entirely —
the caller owns their window size. Slice markers are injected last (`...
(starting from line #N) ...` / `... (truncated after line #M) ...`) so
they survive an intermediate `pattern` grep.

The two features compose: when both a range and a `pattern` are given,
the diff is sliced first and `pattern` greps within that slice. This
lets the model page to a known region and then narrow further.

Three new helpers in `diff_filter.rs` carry the implementation:
`validate_line_range` (static cross-cut checks), `slice_diff` (extracts
the line window), and `add_slice_markers` (appends the context markers).
The truncation note now surfaces both escape hatches so the model knows
to use `start_line`/`end_line` when it hits the cap.

Tool schemas and the `git-reading` skill description are updated to
document the new parameters and include paging/compose examples.

---------

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

100 of 107 new or added lines in 4 files covered. (93.46%)

25760 of 38883 relevant lines covered (66.25%)

211.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
83.13
-1.87% .config/jp/tools/src/git/diff_file.rs
1
98.65
-1.35% .config/jp/tools/src/git/diff_commit.rs
1
98.36
0.53% .config/jp/tools/src/git/diff_filter.rs
Jobs
ID Job ID Ran Files Coverage
1 25508761275.1 07 May 2026 04:33PM UTC 301
66.25
GitHub Action Run
Source Files on build 25508761275
  • Tree
  • List 301
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25508761275
  • a14205de on github
  • Prev Build on main (#25501572885)
  • Next Build on main (#25557841148)
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