murmur8 4.7.4 → 4.7.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/.blueprint/features/BACKLOG.md +4 -0
- package/package.json +1 -1
- package/src/init.js +16 -1
- package/src/update.js +25 -0
package/package.json
CHANGED
package/src/init.js
CHANGED
|
@@ -132,10 +132,25 @@ async function init() {
|
|
|
132
132
|
createCopilotSymlink();
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
// Copy refine-feature skill to .claude/commands/
|
|
135
|
+
// Copy refine-feature skill to .claude/commands/ and create Copilot symlink
|
|
136
136
|
if (fs.existsSync(refineSkillSrc)) {
|
|
137
137
|
fs.copyFileSync(refineSkillSrc, refineSkillCommandDest);
|
|
138
138
|
console.log('Copied skill to .claude/commands/refine-feature.md');
|
|
139
|
+
|
|
140
|
+
const copilotRefineDir = path.join(TARGET_DIR, '.github', 'skills', 'refine-feature');
|
|
141
|
+
const copilotRefinePath = path.join(copilotRefineDir, 'SKILL.md');
|
|
142
|
+
const relativeRefinePath = path.relative(copilotRefineDir, refineSkillCommandDest);
|
|
143
|
+
fs.mkdirSync(copilotRefineDir, { recursive: true });
|
|
144
|
+
if (fs.existsSync(copilotRefinePath)) {
|
|
145
|
+
fs.unlinkSync(copilotRefinePath);
|
|
146
|
+
}
|
|
147
|
+
try {
|
|
148
|
+
fs.symlinkSync(relativeRefinePath, copilotRefinePath);
|
|
149
|
+
console.log('Created Copilot CLI symlink at .github/skills/refine-feature/SKILL.md');
|
|
150
|
+
} catch (err) {
|
|
151
|
+
fs.copyFileSync(refineSkillCommandDest, copilotRefinePath);
|
|
152
|
+
console.log('Copied skill to .github/skills/refine-feature/SKILL.md (symlink failed)');
|
|
153
|
+
}
|
|
139
154
|
}
|
|
140
155
|
|
|
141
156
|
// Copy framework directories only (not user content directories)
|
package/src/update.js
CHANGED
|
@@ -6,6 +6,29 @@ const { prompt } = require('./utils');
|
|
|
6
6
|
const PACKAGE_ROOT = path.resolve(__dirname, '..');
|
|
7
7
|
const TARGET_DIR = process.cwd();
|
|
8
8
|
|
|
9
|
+
function updateCopilotSymlink(skillName, claudeCommandsDir) {
|
|
10
|
+
const copilotSkillDir = path.join(TARGET_DIR, '.github', 'skills', skillName);
|
|
11
|
+
const copilotSkillPath = path.join(copilotSkillDir, 'SKILL.md');
|
|
12
|
+
const claudeSkillPath = path.join(claudeCommandsDir, `${skillName}.md`);
|
|
13
|
+
|
|
14
|
+
if (!fs.existsSync(claudeSkillPath)) return;
|
|
15
|
+
|
|
16
|
+
const relativePath = path.relative(copilotSkillDir, claudeSkillPath);
|
|
17
|
+
fs.mkdirSync(copilotSkillDir, { recursive: true });
|
|
18
|
+
|
|
19
|
+
if (fs.existsSync(copilotSkillPath)) {
|
|
20
|
+
fs.unlinkSync(copilotSkillPath);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
try {
|
|
24
|
+
fs.symlinkSync(relativePath, copilotSkillPath);
|
|
25
|
+
console.log(`Updated Copilot CLI symlink at .github/skills/${skillName}/SKILL.md`);
|
|
26
|
+
} catch (err) {
|
|
27
|
+
fs.copyFileSync(claudeSkillPath, copilotSkillPath);
|
|
28
|
+
console.log(`Copied skill to .github/skills/${skillName}/SKILL.md (symlink failed)`);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
9
32
|
// Directories that contain user content and should NOT be overwritten
|
|
10
33
|
const USER_CONTENT_DIRS = [
|
|
11
34
|
'features',
|
|
@@ -90,10 +113,12 @@ async function update() {
|
|
|
90
113
|
if (fs.existsSync(claudeCommandsDir)) {
|
|
91
114
|
fs.copyFileSync(skillSrc, path.join(claudeCommandsDir, 'implement-feature.md'));
|
|
92
115
|
console.log('Updated .claude/commands/implement-feature.md');
|
|
116
|
+
updateCopilotSymlink('implement-feature', claudeCommandsDir);
|
|
93
117
|
|
|
94
118
|
if (fs.existsSync(refineSkillSrc)) {
|
|
95
119
|
fs.copyFileSync(refineSkillSrc, path.join(claudeCommandsDir, 'refine-feature.md'));
|
|
96
120
|
console.log('Updated .claude/commands/refine-feature.md');
|
|
121
|
+
updateCopilotSymlink('refine-feature', claudeCommandsDir);
|
|
97
122
|
}
|
|
98
123
|
}
|
|
99
124
|
}
|