feat: add uv skill installers

This commit is contained in:
Peter Steinberger
2025-12-20 17:50:29 +01:00
parent b9eabe532e
commit 4c054917ef
6 changed files with 49 additions and 30 deletions

View File

@@ -13,13 +13,12 @@ import { CONFIG_DIR, resolveUserPath } from "../utils.js";
export type SkillInstallSpec = {
id?: string;
kind: "brew" | "node" | "go" | "shell";
kind: "brew" | "node" | "go" | "uv";
label?: string;
bins?: string[];
formula?: string;
package?: string;
module?: string;
command?: string;
};
export type ClawdisSkillMetadata = {
@@ -143,7 +142,7 @@ function parseInstallSpec(input: unknown): SkillInstallSpec | undefined {
kind !== "brew" &&
kind !== "node" &&
kind !== "go" &&
kind !== "shell"
kind !== "uv"
) {
return undefined;
}
@@ -159,7 +158,6 @@ function parseInstallSpec(input: unknown): SkillInstallSpec | undefined {
if (typeof raw.formula === "string") spec.formula = raw.formula;
if (typeof raw.package === "string") spec.package = raw.package;
if (typeof raw.module === "string") spec.module = raw.module;
if (typeof raw.command === "string") spec.command = raw.command;
return spec;
}