Skip to content

Commit fffdf82

Browse files
daveonkelsclaude
andauthored
fix: use path instead of url for skill metadata API call (#22)
The `cmdUpdate` function was passing a relative path to `apiRequest` using the `url` property, but `url` expects a full URL. When `url` is provided, it's used as-is without combining with the registry base URL. This caused "Failed to parse URL from /api/v1/skills/<slug>" errors when updating skills that don't have a local fingerprint match. Changed to use `path` property which correctly combines with the registry base URL via `new URL(args.path, registry)`. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a16e624 commit fffdf82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/clawdhub/src/cli/commands/skills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export async function cmdUpdate(
153153
} else {
154154
const meta = await apiRequest(
155155
registry,
156-
{ method: 'GET', url: `${ApiRoutes.skills}/${encodeURIComponent(entry)}` },
156+
{ method: 'GET', path: `${ApiRoutes.skills}/${encodeURIComponent(entry)}` },
157157
ApiV1SkillResponseSchema,
158158
)
159159
resolveResult = { match: null, latestVersion: meta.latestVersion ?? null }

0 commit comments

Comments
 (0)