From c8e58e04766de49f28f875f8703c6034c3606624 Mon Sep 17 00:00:00 2001 From: chenbaowang <49091147+Rsweater@users.noreply.github.com> Date: Tue, 14 Apr 2026 10:32:49 +0800 Subject: [PATCH] fix(resolve): strip 'v' prefix from version for API compatibility --- skillhub-cli/src/commands/resolve.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skillhub-cli/src/commands/resolve.ts b/skillhub-cli/src/commands/resolve.ts index 412ed63c..348f564b 100644 --- a/skillhub-cli/src/commands/resolve.ts +++ b/skillhub-cli/src/commands/resolve.ts @@ -57,7 +57,8 @@ export function registerResolve(program: Command) { let targetNamespace = namespace; let targetSlug = skillSlug; - const specifiedVersion = opts.skillVersion; + // Strip 'v' prefix if present (both 1.0.0 and v1.0.0 should work) + const specifiedVersion = opts.skillVersion?.replace(/^v/, ""); // Case 1: User specified a version if (specifiedVersion) {