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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitea-cli-skill",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "Install gitea-cli as a Claude Code skill",
5
5
  "bin": {
6
6
  "gitea-cli-skill": "src/index.js"
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);