claudepluginhub 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fetch.js +4 -4
- package/package.json +1 -1
package/dist/fetch.js
CHANGED
|
@@ -96,14 +96,14 @@ export function flattenComponents(manifest) {
|
|
|
96
96
|
}
|
|
97
97
|
if (plugin.skills) {
|
|
98
98
|
for (const path of plugin.skills) {
|
|
99
|
-
//
|
|
100
|
-
//
|
|
99
|
+
// Skill name is the directory containing SKILL.md
|
|
100
|
+
// e.g. "plugins/foo/skills/review/SKILL.md" -> "review"
|
|
101
101
|
const withoutSkillMd = path.replace(/\/SKILL\.md$/, '');
|
|
102
|
-
const
|
|
102
|
+
const skillName = withoutSkillMd.split('/').pop() ?? withoutSkillMd;
|
|
103
103
|
components.push({
|
|
104
104
|
source: repo,
|
|
105
105
|
type: 'skill',
|
|
106
|
-
componentName:
|
|
106
|
+
componentName: skillName,
|
|
107
107
|
sourcePath: path,
|
|
108
108
|
inlineConfig: null,
|
|
109
109
|
});
|