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.
- package/dist/web/assets/{Analytics-C57ZRDq5.js → Analytics-BuBlsbcI.js} +1 -1
- package/dist/web/assets/{ConfigTemplates-B3qqqL05.js → ConfigTemplates-DQczxuOX.js} +1 -1
- package/dist/web/assets/{Home-CG5XrTNc.js → Home-BvAzzWnB.js} +1 -1
- package/dist/web/assets/{PluginManager-BhX0LUzr.js → PluginManager-C8gAlaps.js} +1 -1
- package/dist/web/assets/{ProjectList-BQ01OZn9.js → ProjectList-nqgi6_cR.js} +1 -1
- package/dist/web/assets/{SessionList-DPv2IOXG.js → SessionList-D8AxMYy6.js} +1 -1
- package/dist/web/assets/{SkillManager-D5CfQm2O.js → SkillManager-BDbNbNkK.js} +1 -1
- package/dist/web/assets/{WorkspaceManager-Ce8ggteK.js → WorkspaceManager-DGGaGW2c.js} +1 -1
- package/dist/web/assets/{index-DJ9VFidd.css → index-Dsh4Q5Cg.css} +1 -1
- package/dist/web/assets/{index-CpnFNWqC.js → index-y-eEayxR.js} +2 -2
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/src/server/api/plugins.js +6 -4
- package/src/server/services/plugins-service.js +374 -31
- package/src/server/services/skill-service.js +12 -3
|
@@ -2041,7 +2041,8 @@ ${content}
|
|
|
2041
2041
|
async getSkillDetail(directory, repoHint = null, fullDirectoryHint = '') {
|
|
2042
2042
|
const safeDirectory = this.normalizeSkillDirectory(directory);
|
|
2043
2043
|
// 先检查本地是否安装
|
|
2044
|
-
const
|
|
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
|
|
2114
|
+
return {
|
|
2115
|
+
...parseRemoteSkillContent(content, repo, candidateDir),
|
|
2116
|
+
path: path.dirname(skillMdPath),
|
|
2117
|
+
fullPath: skillMdPath
|
|
2118
|
+
};
|
|
2110
2119
|
}
|
|
2111
2120
|
return null;
|
|
2112
2121
|
}
|