fix: satisfy skill install typecheck

This commit is contained in:
Val Alexander
2026-04-23 15:31:41 -05:00
parent 96139c9085
commit db87f5c6ac
+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({