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

stacklok / toolhive / 25042064826
66%

Build:
DEFAULT BRANCH: main
Ran 28 Apr 2026 08:27AM UTC
Jobs 1
Files 673
Run time 2min
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

28 Apr 2026 08:21AM UTC coverage: 66.275% (+0.06%) from 66.216%
25042064826

push

github

web-flow
Add tool adapter registry and per-tool LLM gateway implementations (#5065)

* Add tool adapter registry and per-tool LLM gateway implementations

Introduces pkg/llm/tools with a Detect/Apply/Revert
adapter interface and auto-discovery registry. Adding a new tool requires
only implementing the interface and calling Register() from init() — no
changes to orchestration are needed.

Token-helper adapters (claude-code, gemini-cli) patch their config files
to invoke "thv llm token" on demand and point at the upstream gateway URL.
Proxy-mode adapters (cursor, vscode, xcode) patch their config files to
point at the localhost reverse proxy with a placeholder API key.

Replaces the "not implemented" stubs in thv llm setup/teardown with the
real orchestration logic: setup detects installed tools and applies all
adapters, teardown reverts them and (optionally) purges cached tokens.

All config file writes are atomic (temp-file + rename). VS Code and Cursor
settings use literal dotted key names rather than nested maps; a separate
revertFlatJSONFile helper handles that distinction.

Closes: #5030

* changes from review

* fixes from review

---------

Co-authored-by: taskbot <taskbot@users.noreply.github.com>

269 of 372 new or added lines in 5 files covered. (72.31%)

20 existing lines in 4 files now uncovered.

59673 of 90039 relevant lines covered (66.27%)

60.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
53
28.34
28.34% cmd/thv/app/llm.go
47
74.03
pkg/client/llm_gateway.go
2
79.42
4.98% pkg/client/config.go
1
82.28
13.05% pkg/client/discovery.go

Coverage Regressions

Lines Coverage ∆ File
9
22.99
-0.57% pkg/client/manager.go
6
72.35
-1.29% pkg/runner/config.go
3
70.0
-3.33% pkg/state/local.go
2
94.77
-1.31% pkg/vmcp/composer/dag_executor.go
Jobs
ID Job ID Ran Files Coverage
1 25042064826.1 28 Apr 2026 08:27AM UTC 673
66.27
GitHub Action Run
Source Files on build 25042064826
  • Tree
  • List 673
  • Changed 12
  • Source Changed 4
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25042064826
  • 60ccd8f0 on github
  • Prev Build on main (#25040852647)
  • Next Build on main (#25043810657)
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