33
34
/** Human-facing container name for each {@link SkillScope}. */
36
>
switch (scope) {
37
>
case 'repo': return 'Repository';
38
>
case 'user': return 'User';
39
>
case 'system': return 'Built-in';
40
>
case 'admin': return 'Admin';
41
>
default: return scope;
42
>
}
43
>
}
44
45
/** Stable ordering of scopes so the container list is deterministic. */
46
const SKILL_SCOPE_ORDER: readonly SkillScope[] = ['repo', 'user', 'system', 'admin'];
47
49
>
const uri = URI.file(skill.path).toString();
50
>
return {
51
>
type: CustomizationType.Skill,
52
>
id: customizationId(uri),
53
>
uri,
54
>
name: skill.name,
55
>
description: skill.description,
56
>
enabled: skill.enabled,
57
>
};
58
>
}
59
60
/**