32 lines
845 B
TypeScript
32 lines
845 B
TypeScript
export type SkillConfig = {
|
|
enabled?: boolean;
|
|
apiKey?: string;
|
|
env?: Record<string, string>;
|
|
[key: string]: unknown;
|
|
};
|
|
|
|
export type SkillsLoadConfig = {
|
|
/**
|
|
* Additional skill folders to scan (lowest precedence).
|
|
* Each directory should contain skill subfolders with `SKILL.md`.
|
|
*/
|
|
extraDirs?: string[];
|
|
/** Watch skill folders for changes and refresh the skills snapshot. */
|
|
watch?: boolean;
|
|
/** Debounce for the skills watcher (ms). */
|
|
watchDebounceMs?: number;
|
|
};
|
|
|
|
export type SkillsInstallConfig = {
|
|
preferBrew?: boolean;
|
|
nodeManager?: "npm" | "pnpm" | "yarn" | "bun";
|
|
};
|
|
|
|
export type SkillsConfig = {
|
|
/** Optional bundled-skill allowlist (only affects bundled skills). */
|
|
allowBundled?: string[];
|
|
load?: SkillsLoadConfig;
|
|
install?: SkillsInstallConfig;
|
|
entries?: Record<string, SkillConfig>;
|
|
};
|