@petersobhy/ai-toolkit 1.8.4 → 1.8.5
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/index.js +2 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -79,9 +79,8 @@ async function installSkill(name) {
|
|
|
79
79
|
const skillContent = await get(`${RAW_BASE}/${SKILLS_PATH}/${name}/SKILL.md`);
|
|
80
80
|
fs.mkdirSync(INSTALL_DIR, { recursive: true });
|
|
81
81
|
fs.writeFileSync(path.join(INSTALL_DIR, `${name}.md`), skillContent);
|
|
82
|
-
console.log(` ✓ ${name}.md → ${INSTALL_DIR}`);
|
|
83
82
|
|
|
84
|
-
// Install companion scripts → ~/.
|
|
83
|
+
// Install companion scripts → ~/.ai-toolkit/scripts/<name>/
|
|
85
84
|
const scripts = entries.filter(e =>
|
|
86
85
|
e.type === 'file' &&
|
|
87
86
|
e.name !== 'SKILL.md' &&
|
|
@@ -94,10 +93,10 @@ async function installSkill(name) {
|
|
|
94
93
|
for (const script of scripts) {
|
|
95
94
|
const content = await get(`${RAW_BASE}/${SKILLS_PATH}/${name}/${script.name}`);
|
|
96
95
|
fs.writeFileSync(path.join(scriptDir, script.name), content);
|
|
97
|
-
console.log(` ✓ ${script.name} → ${scriptDir}`);
|
|
98
96
|
}
|
|
99
97
|
}
|
|
100
98
|
|
|
99
|
+
console.log(` ✓ ${name}`);
|
|
101
100
|
return true;
|
|
102
101
|
}
|
|
103
102
|
|