Compare commits

...
Author SHA1 Message Date
Val Alexander ff68b2e036 fix: satisfy skill install typecheck 2026-04-23 15:35:08 -05:00
+5 -2
View File
@@ -5,6 +5,10 @@ import { getClawHubSiteUrl } from "../lib/site";
export type SkillPromptMode = "install-only" | "install-and-setup";
export type SkillPackageManager = "npm" | "pnpm" | "bun";
function assertNever(value: never): never {
throw new Error(`Unsupported package manager: ${String(value)}`);
}
type SkillOwnerId = Id<"users"> | Id<"publishers">;
type SkillPromptContext = {
@@ -208,8 +212,7 @@ export function formatClawHubInstallCommand(slug: string, pm: SkillPackageManage
return `bunx clawhub@latest install ${slug}`;
}
const _exhaustiveCheck: never = pm;
throw new Error("Unsupported package manager");
return assertNever(pm);
}
export function formatOpenClawPrompt({