Add thv skill builds command to list and remove locally-built OCI skill artifacts#4674
Merged
Add thv skill builds command to list and remove locally-built OCI skill artifacts#4674
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4674 +/- ##
==========================================
+ Coverage 68.84% 68.92% +0.07%
==========================================
Files 509 509
Lines 52668 52684 +16
==========================================
+ Hits 36259 36310 +51
+ Misses 13606 13570 -36
- Partials 2803 2804 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f333f40 to
6cc3288
Compare
JAORMX
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
thv skill buildpackages a skill directory into a local OCI artifact, but there was no way to see or manage what had been built. This adds:thv skill builds— lists all locally-built OCI skill artifacts with tag, digest, name, and versionthv skill builds remove <tag>— removes a locally-built artifact and garbage-collects its blobs when no other tag shares the same digestKey design decisions
ListBuildsfilters byArtifactType == "dev.toolhive.skills.v1"so that remotely-pulled skills sharing the local OCI store are not surfacedname,description,version) is best-effort: artifacts without parseable OCI config labels still appear with those fields emptyDeleteBuilddelegates toStore.DeleteBuild(toolhive-core v0.0.14) which handles orphaned-blob cleanup atomically — blobs are retained when another tag shares the same digestType of change
Changes
Does this introduce a user-facing change?
Yes. Users can now run:
thv skill buildsto list locally-built artifactsthv skill builds remove <tag>to remove an artifact and its blobsThe same operations are available via the API at
GET /api/v1beta/skills/buildsandDELETE /api/v1beta/skills/builds/{tag}.Special notes for reviewers
DELETE /builds/{tag}is registered as a more-specific route than the existingDELETE /{name}wildcard in the chi router, so there is no routing conflict. The 404 on a missing tag is propagated directly fromStore.DeleteBuildin toolhive-core.