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

stacklok / toolhive / 22634198114
64%

Build:
DEFAULT BRANCH: main
Ran 03 Mar 2026 05:18PM UTC
Jobs 1
Files 529
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

03 Mar 2026 05:09PM UTC coverage: 63.882% (+0.06%) from 63.818%
22634198114

push

github

web-flow
Add Skills HTTP client implementing SkillService interface (#3977)

* Add Skills HTTP client implementing SkillService interface (#3652)

Implement an HTTP client in pkg/skills/client/ that calls the Skills
REST API (/api/v1beta/skills). The Client struct satisfies the
skills.SkillService interface so CLI commands can depend on the
interface and be tested with the existing MockSkillService mock.

This is a new pattern for ToolHive — skills CLI commands go through
the REST API (requires `thv serve` running) rather than calling pkg/
directly like other commands.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Use httperr.CodedError from toolhive-core instead of custom APIError

Remove pkg/skills/client/errors.go entirely. The client now returns
httperr.CodedError (from toolhive-core/httperr) for API errors, which
is the same type the server-side ErrorHandler already uses. Callers
inspect error codes via httperr.Code(err) directly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

135 of 148 new or added lines in 1 file covered. (91.22%)

6 existing lines in 2 files now uncovered.

46500 of 72791 relevant lines covered (63.88%)

75.38 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
13
91.28
91.28% pkg/skills/client/client.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
4
84.01
-1.08% pkg/audit/auditor.go
Jobs
ID Job ID Ran Files Coverage
1 22634198114.1 03 Mar 2026 05:18PM UTC 529
63.88
GitHub Action Run
Source Files on build 22634198114
  • Tree
  • List 529
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22634198114
  • c46ae477 on github
  • Prev Build on main (#22631489771)
  • Next Build on main (#22663233116)
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