joyskills-cli 0.2.0 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joyskills-cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Team-level skill governance compatible with open skill / Claude Skills",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -83,7 +83,11 @@ async function installPublicSkill(skillName, options, localManager, lockfileMana
83
83
 
84
84
  // 调用 openskills install
85
85
  const cmd = `npx openskills install ${skillName}`;
86
- execSync(cmd, { stdio: 'inherit' });
86
+ try {
87
+ execSync(cmd, { stdio: 'inherit' });
88
+ } catch (error) {
89
+ throw new Error(`openskills install failed: Command failed: ${cmd}`);
90
+ }
87
91
 
88
92
  // 更新 lockfile
89
93
  lockfileManager.updateSkill(skillName, {