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

stacklok / toolhive / 23187776639

17 Mar 2026 09:37AM UTC coverage: 64.771% (+0.06%) from 64.714%
23187776639

push

github

web-flow
Add Skills API client for registry extension (#4173)

The toolhive-registry-server exposes a Skills API as a ToolHive-specific
extension under /v0.1/x/dev.toolhive/skills. This adds an HTTP client
to query that API, following the same patterns as the existing server
client.

- Extract shared HTTP client builder and error types into shared.go
  so both the server client and new skills client reuse the same
  security controls (private IP policy, auth token injection, error
  handling with LimitReader)
- Add SkillsClient interface with GetSkill, GetSkillVersion,
  ListSkills, SearchSkills, and ListSkillVersions methods
- Add RegistryHTTPError with Unwrap() for structured 401/403 handling
- Migrate existing server client to use the shared error type
- Add comprehensive table-driven tests with httptest

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

138 of 174 new or added lines in 3 files covered. (79.31%)

62 existing lines in 4 files now uncovered.

49249 of 76036 relevant lines covered (64.77%)

217.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.79
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

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