claudepluginhub 0.3.0 → 0.3.2

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.
Files changed (2) hide show
  1. package/dist/fetch.js +4 -4
  2. 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
- // Preserve full path under skills/ prefix, e.g. "skills/review/SKILL.md" -> "review"
100
- // But "skills/nested/deep/SKILL.md" -> "nested/deep"
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 relPath = withoutSkillMd.startsWith('skills/') ? withoutSkillMd.slice('skills/'.length) : withoutSkillMd;
102
+ const skillName = withoutSkillMd.split('/').pop() ?? withoutSkillMd;
103
103
  components.push({
104
104
  source: repo,
105
105
  type: 'skill',
106
- componentName: relPath,
106
+ componentName: skillName,
107
107
  sourcePath: path,
108
108
  inlineConfig: null,
109
109
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudepluginhub",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Install Claude Code components from ClaudePluginHub",
5
5
  "bin": {
6
6
  "claudepluginhub": "dist/index.js"