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

andreasjansson / greger.el / 129
94%

Build:
DEFAULT BRANCH: main
Ran 26 Jun 2025 09:21PM UTC
Jobs 1
Files 7
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

26 Jun 2025 09:13PM UTC coverage: 87.916% (+0.3%) from 87.581%
129

push

github

web-flow
Syntax highlighting for tools (#68)

* Add diff and diff-mode requirements for str-replace overlay diffing

* Implement cached overlay-based str-replace diff transformation

Add comprehensive str-replace diff functionality:
- greger-ui--str-replace-diff-transform-fn: Font-lock function for tool_use blocks
- greger-ui--is-str-replace-tool-use-p: Detect str-replace tools
- greger-ui--apply-str-replace-diff-overlay: Create overlays with diff display
- greger-ui--extract-str-replace-param: Extract parameters from tool_use nodes
- greger-ui--generate-diff-content: Generate diffs using system diff command
- greger-ui--process-diff-output: Clean up diff headers and apply diff-mode syntax
- Caching mechanism to avoid re-computation on file reopen
- Overlay management and cleanup functions

This transforms str-replace original-content/new-content into visual diffs
while preserving the original data in the file for persistence.

* Add str-replace diff transformation to treesit font-lock rules

Add tool_use nodes to the folding feature so that str-replace blocks
get processed for diff overlay transformation.

* Add cleanup hook for str-replace overlays on buffer kill

* Create test file for str-replace diff functionality

* Improve diff generation to handle identical content gracefully

* Fix diff processing to use temporary buffer for diff-mode

Process diff content in a dedicated temporary buffer with diff-mode
to avoid interfering with the current buffer's mode.

* Add debug function for testing str-replace detection

* Add test function to generate and display str-replace diffs

* Refactor greger-parser--extract-tool-use to use separate params extraction function

- Extract parameter parsing logic into greger-parser--extract-tool-use-params
- Update both greger-parser--extract-tool-use and greger-parser--extract-server-tool-use to use the new function
- Simplifies code and improves reusability

* Refactor greger-parser--extract-tool-use-params to use helper ... (continued)

340 of 377 new or added lines in 4 files covered. (90.19%)

1768 of 2011 relevant lines covered (87.92%)

19.8 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
95.73
-0.15% greger-client.el
12
86.98
-0.46% greger-parser.el
24
88.37
5.18% greger-ui.el
Jobs
ID Job ID Ran Files Coverage
1 129.1 26 Jun 2025 09:21PM UTC 7
87.92
Source Files on build 129
  • Tree
  • List 7
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • bb400d51 on github
  • Prev Build on main (#124)
  • Next Build on main (#134)
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