eskill 1.0.14 → 1.0.16

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 (3) hide show
  1. package/cli.js +2 -2
  2. package/lib/search.js +11 -8
  3. package/package.json +1 -1
package/cli.js CHANGED
@@ -53,8 +53,8 @@ program
53
53
 
54
54
  console.log(`\n已安装的技能:\n`);
55
55
  skills.forEach(skill => {
56
- const authorInfo = skill.author ? ` (@${skill.author})` : '';
57
- console.log(` • ${skill.name}${authorInfo}`);
56
+ const displayName = skill.author ? `${skill.name}@${skill.author}` : skill.name;
57
+ console.log(` • ${displayName}`);
58
58
  });
59
59
  console.log(`\n总计: ${skills.length} 个技能\n`);
60
60
  } catch (error) {
package/lib/search.js CHANGED
@@ -77,26 +77,29 @@ export function formatSkillList(skills, showIndex = true) {
77
77
 
78
78
  let output = '\n';
79
79
  skills.forEach((skill, index) => {
80
+ // 格式: name@author
81
+ const skillName = skill.name || skill.title || 'unknown';
82
+ const author = skill.author || skill.owner || '';
83
+ const displayName = author ? `${skillName}@${author}` : skillName;
84
+
80
85
  if (showIndex) {
81
- output += ` ${index + 1}. ${skill.name || skill.title}\n`;
86
+ output += ` ${index + 1}. ${displayName}\n`;
82
87
  } else {
83
- output += ` • ${skill.name || skill.title}\n`;
88
+ output += ` • ${displayName}\n`;
84
89
  }
85
90
 
86
91
  if (skill.description) {
87
92
  output += ` ${skill.description.substring(0, 80)}${skill.description.length > 80 ? '...' : ''}\n`;
88
93
  }
89
94
 
90
- if (skill.author || skill.owner) {
91
- output += ` 作者: ${skill.author || skill.owner}\n`;
92
- }
93
-
94
95
  if (skill.stars !== undefined) {
95
96
  output += ` Stars: ⭐ ${skill.stars}\n`;
96
97
  }
97
98
 
98
- if (skill.url || skill.github_url) {
99
- output += ` ${skill.url || skill.github_url}\n`;
99
+ // 显示 GitHub URL(支持多种字段名)
100
+ const githubUrl = skill.githubUrl || skill.github_url || skill.url;
101
+ if (githubUrl) {
102
+ output += ` ${githubUrl}\n`;
100
103
  }
101
104
 
102
105
  output += '\n';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eskill",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Unified AI Agent Skills Management - Install skills from Git URLs",
5
5
  "main": "index.js",
6
6
  "type": "module",