coding-tool-x 3.6.8 → 3.6.9

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.
@@ -2041,7 +2041,8 @@ ${content}
2041
2041
  async getSkillDetail(directory, repoHint = null, fullDirectoryHint = '') {
2042
2042
  const safeDirectory = this.normalizeSkillDirectory(directory);
2043
2043
  // 先检查本地是否安装
2044
- const localPath = path.join(this.resolveInstallPath(safeDirectory).path, 'SKILL.md');
2044
+ const localSkillDir = this.resolveInstallPath(safeDirectory).path;
2045
+ const localPath = path.join(localSkillDir, 'SKILL.md');
2045
2046
 
2046
2047
  if (fs.existsSync(localPath)) {
2047
2048
  const content = fs.readFileSync(localPath, 'utf-8');
@@ -2058,6 +2059,9 @@ ${content}
2058
2059
  content: body,
2059
2060
  fullContent: content,
2060
2061
  installed: true,
2062
+ path: localSkillDir,
2063
+ fullPath: localPath,
2064
+ installPath: localSkillDir,
2061
2065
  source: this.isProtectedSkillDirectory(safeDirectory) ? 'system-installed' : 'local',
2062
2066
  protected: this.isProtectedSkillDirectory(safeDirectory)
2063
2067
  };
@@ -2086,7 +2090,8 @@ ${content}
2086
2090
  repoProjectPath: repo.projectPath || null,
2087
2091
  repoLocalPath: repo.localPath || null,
2088
2092
  repoId: repo.id,
2089
- repoUrl: repo.repoUrl || buildRepoUrl(repo)
2093
+ repoUrl: repo.repoUrl || buildRepoUrl(repo),
2094
+ path: fullDirectory
2090
2095
  };
2091
2096
  };
2092
2097
 
@@ -2106,7 +2111,11 @@ ${content}
2106
2111
  : path.join(repo.localPath, 'SKILL.md');
2107
2112
  if (!fs.existsSync(skillMdPath)) continue;
2108
2113
  const content = fs.readFileSync(skillMdPath, 'utf-8');
2109
- return parseRemoteSkillContent(content, repo, candidateDir);
2114
+ return {
2115
+ ...parseRemoteSkillContent(content, repo, candidateDir),
2116
+ path: path.dirname(skillMdPath),
2117
+ fullPath: skillMdPath
2118
+ };
2110
2119
  }
2111
2120
  return null;
2112
2121
  }