joyskills-cli 0.2.4 → 0.2.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joyskills-cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Team-level skill governance compatible with open skill / Claude Skills",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -110,9 +110,7 @@ async function installPublicSkill(skillName, options, localManager, lockfileMana
110
110
 
111
111
  // 4. 确定安装目标目录(只用最后一级目录名)
112
112
  const skillDirName = parts[parts.length - 1]; // anthropics/skills/pdf -> pdf
113
- const targetDir = options.global
114
- ? localManager.getGlobalSkillPath(skillDirName)
115
- : localManager.getProjectSkillPath(skillDirName);
113
+ const targetDir = path.join(localManager.getSkillsDir(), skillDirName);
116
114
 
117
115
  const location = options.global ? 'global (~/.claude/skills)' : 'project (./.claude/skills)';
118
116
  console.log(`📍 Location: ${location}`);