joyskills-cli 0.2.3 → 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 +1 -1
- package/src/commands/install.js +1 -4
package/package.json
CHANGED
package/src/commands/install.js
CHANGED
|
@@ -72,7 +72,6 @@ function detectSkillType(skillName) {
|
|
|
72
72
|
async function installPublicSkill(skillName, options, localManager, lockfileManager) {
|
|
73
73
|
console.log(`📦 Installing public skill: ${skillName}`);
|
|
74
74
|
|
|
75
|
-
const registryManager = require('../registry');
|
|
76
75
|
const tmpDir = `/tmp/joyskills-${Date.now()}`;
|
|
77
76
|
|
|
78
77
|
try {
|
|
@@ -111,9 +110,7 @@ async function installPublicSkill(skillName, options, localManager, lockfileMana
|
|
|
111
110
|
|
|
112
111
|
// 4. 确定安装目标目录(只用最后一级目录名)
|
|
113
112
|
const skillDirName = parts[parts.length - 1]; // anthropics/skills/pdf -> pdf
|
|
114
|
-
const targetDir =
|
|
115
|
-
? localManager.getGlobalSkillPath(skillDirName)
|
|
116
|
-
: localManager.getProjectSkillPath(skillDirName);
|
|
113
|
+
const targetDir = path.join(localManager.getSkillsDir(), skillDirName);
|
|
117
114
|
|
|
118
115
|
const location = options.global ? 'global (~/.claude/skills)' : 'project (./.claude/skills)';
|
|
119
116
|
console.log(`📍 Location: ${location}`);
|