itismyskillmarket 1.2.1 → 1.2.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.
package/dist/index.js CHANGED
@@ -334,7 +334,9 @@ async function syncPlatformLinks(targetPlatform) {
334
334
  var execAsync = promisify(exec);
335
335
  async function installSkill(skillId, version, targetPlatform) {
336
336
  await ensureMarketDirs();
337
- const packageName = skillId.startsWith("@") ? skillId : `@skillmarket/${skillId}`;
337
+ const isScoped = skillId.startsWith("@");
338
+ const packageName = isScoped ? skillId : `@skillmarket/${skillId}`;
339
+ const shortName = skillId;
338
340
  console.log(`Installing ${packageName}${version ? `@${version}` : ""}...`);
339
341
  const pkgInfo = await fetchNpmPackage(packageName);
340
342
  if (!pkgInfo) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itismyskillmarket",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Cross-platform skill manager for AI coding tools",
5
5
  "type": "module",
6
6
  "files": [
@@ -81,13 +81,16 @@ export async function installSkill(
81
81
  // 步骤 0: 准备
82
82
  // ==========================================================================
83
83
 
84
- // 确保所有必要的目录都已创建
84
+ // 确保所有必要的目录都已创建
85
85
  await ensureMarketDirs();
86
-
86
+
87
87
  // 转换包名格式
88
- const packageName = skillId.startsWith('@')
89
- ? skillId
90
- : `@skillmarket/${skillId}`;
88
+ // 用户可以直接指定 @scope/package 或不带前缀的 short name
89
+ // short name 会被添加 @skillmarket/ 前缀尝试
90
+ // 如果是 scoped 包 (@scope/name),直接使用
91
+ const isScoped = skillId.startsWith('@');
92
+ const packageName = isScoped ? skillId : `@skillmarket/${skillId}`;
93
+ const shortName = skillId; // 用于本地目录名
91
94
 
92
95
  console.log(`Installing ${packageName}${version ? `@${version}` : ''}...`);
93
96