@kg-ai/kugou-skill 0.1.10 → 0.1.11
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/package.json +1 -1
- package/scripts/install.js +5 -0
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -43,6 +43,7 @@ const skillDirs = [
|
|
|
43
43
|
path.join(os.homedir(), '.openclaw', 'skills', 'kugou-skill'),
|
|
44
44
|
path.join(os.homedir(), '.codex', 'skills', 'kugou-skill'),
|
|
45
45
|
path.join(os.homedir(), '.workbuddy', 'skills', 'kugou-skill'),
|
|
46
|
+
path.join(os.homedir(), '.workbuddy', 'skills', 'kugou-skill__skillhub'),
|
|
46
47
|
];
|
|
47
48
|
|
|
48
49
|
if (fs.existsSync(skillSrc)) {
|
|
@@ -52,6 +53,10 @@ if (fs.existsSync(skillSrc)) {
|
|
|
52
53
|
// 只在 skills 目录存在时才复制,不创建目录
|
|
53
54
|
const parentDir = path.dirname(skillDir);
|
|
54
55
|
if (fs.existsSync(parentDir)) {
|
|
56
|
+
// __skillhub 子目录是 opt-in:仅在已存在时同步,绝不自动创建
|
|
57
|
+
if (path.basename(skillDir) === 'kugou-skill__skillhub' && !fs.existsSync(skillDir)) {
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
55
60
|
try {
|
|
56
61
|
if (!fs.existsSync(skillDir)) {
|
|
57
62
|
fs.mkdirSync(skillDir, { recursive: true });
|