openxiangda 1.0.32 → 1.0.33

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/lib/skills.js +7 -2
  2. package/package.json +1 -1
package/lib/skills.js CHANGED
@@ -302,7 +302,12 @@ function installOneSkill(spec, skillsDir) {
302
302
  }
303
303
 
304
304
  function copyRootSkill(stagingDir) {
305
- fs.cpSync(SOURCE_SKILLS_DIR, stagingDir, {
305
+ fs.mkdirSync(stagingDir, { recursive: true });
306
+ const skillMarkdown = fs
307
+ .readFileSync(path.join(SOURCE_SKILLS_DIR, 'SKILL.md'), 'utf8')
308
+ .replace(/`skills\/(openxiangda-[^`]+)\/SKILL\.md`/g, '`../$1/SKILL.md`');
309
+ fs.writeFileSync(path.join(stagingDir, 'SKILL.md'), skillMarkdown);
310
+ fs.cpSync(SOURCE_REFERENCES_DIR, path.join(stagingDir, 'references'), {
306
311
  recursive: true,
307
312
  dereference: false,
308
313
  });
@@ -368,4 +373,4 @@ module.exports = {
368
373
  getSkillStatusReport,
369
374
  installSkills,
370
375
  resolveSkillsDir,
371
- };
376
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openxiangda",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "OpenXiangda CLI, workspace build tools, runtime SDK, and form components.",
5
5
  "private": false,
6
6
  "bin": {