@kg-ai/kugou-skill 0.1.13 → 0.1.14
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.
|
Binary file
|
package/bin/darwin-x64/kugou-cli
CHANGED
|
Binary file
|
|
Binary file
|
package/bin/linux-x64/kugou-cli
CHANGED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -49,12 +49,27 @@ const skillDirs = [
|
|
|
49
49
|
if (fs.existsSync(skillSrc)) {
|
|
50
50
|
const referencesSrc = path.join(pkgRoot, 'references');
|
|
51
51
|
|
|
52
|
+
// workbuddy 平台:kugou-skill 与 kugou-skill__skillhub 二选一
|
|
53
|
+
// 若 ~/.workbuddy/skills/kugou-skill__skillhub 已存在,只装到那里,跳过 kugou-skill
|
|
54
|
+
// 反之只装到 kugou-skill,__skillhub 是 opt-in 不自动创建
|
|
55
|
+
const workbuddyAltDir = path.join(os.homedir(), '.workbuddy', 'skills', 'kugou-skill__skillhub');
|
|
56
|
+
const workbuddyUseAlt = fs.existsSync(workbuddyAltDir);
|
|
57
|
+
|
|
52
58
|
for (const skillDir of skillDirs) {
|
|
53
59
|
// 只在 skills 目录存在时才复制,不创建目录
|
|
54
60
|
const parentDir = path.dirname(skillDir);
|
|
55
61
|
if (fs.existsSync(parentDir)) {
|
|
62
|
+
const baseName = path.basename(skillDir);
|
|
63
|
+
|
|
64
|
+
// workbuddy 互斥:__skillhub 存在时跳过 kugou-skill,只装 __skillhub
|
|
65
|
+
const isWorkbuddyPrimary = baseName === 'kugou-skill' && skillDir === path.join(os.homedir(), '.workbuddy', 'skills', 'kugou-skill');
|
|
66
|
+
if (isWorkbuddyPrimary && workbuddyUseAlt) {
|
|
67
|
+
console.log(`Skipping ${skillDir}: ${workbuddyAltDir} exists, installing only to ${workbuddyAltDir}`);
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
|
|
56
71
|
// __skillhub 子目录是 opt-in:仅在已存在时同步,绝不自动创建
|
|
57
|
-
if (
|
|
72
|
+
if (baseName === 'kugou-skill__skillhub' && !fs.existsSync(skillDir)) {
|
|
58
73
|
continue;
|
|
59
74
|
}
|
|
60
75
|
try {
|