gitea-cli-skill 0.1.9 → 0.2.0
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/src/index.js +8 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -170,13 +170,20 @@ async function install(args) {
|
|
|
170
170
|
|
|
171
171
|
console.log(`Installing gitea-cli skill (${osArch.os}-${osArch.arch}) to ${skillDir}...`);
|
|
172
172
|
|
|
173
|
-
// 1. Copy SKILL.md
|
|
173
|
+
// 1. Copy SKILL.md and REFERENCE.md
|
|
174
174
|
fs.mkdirSync(skillDir, { recursive: true });
|
|
175
175
|
const srcSkill = path.resolve(__dirname, '..', 'assets', 'SKILL.md');
|
|
176
176
|
const destSkill = path.join(skillDir, 'SKILL.md');
|
|
177
177
|
fs.copyFileSync(srcSkill, destSkill);
|
|
178
178
|
console.log(` SKILL.md -> ${destSkill}`);
|
|
179
179
|
|
|
180
|
+
const srcRef = path.resolve(__dirname, '..', 'assets', 'REFERENCE.md');
|
|
181
|
+
const destRef = path.join(skillDir, 'REFERENCE.md');
|
|
182
|
+
if (fs.existsSync(srcRef)) {
|
|
183
|
+
fs.copyFileSync(srcRef, destRef);
|
|
184
|
+
console.log(` REFERENCE.md -> ${destRef}`);
|
|
185
|
+
}
|
|
186
|
+
|
|
180
187
|
// 2. Check existing binary
|
|
181
188
|
const binaryName = osArch.os === 'windows' ? 'gitea-cli.exe' : 'gitea-cli';
|
|
182
189
|
const destBinary = path.join(scriptsDir, binaryName);
|