(skillName: string)
| 142 | } |
| 143 | |
| 144 | syncIfInstalled(skillName: string): void { |
| 145 | const skill = this.store.getSkillByName(skillName); |
| 146 | if (!skill || !skill.installed) return; |
| 147 | |
| 148 | const dstDir = path.join(this.workspaceSkillsDir, skill.name); |
| 149 | if (fs.existsSync(skill.dirPath)) { |
| 150 | this.cleanSync(skill.dirPath, dstDir); |
| 151 | this.ctx.log.info(`Skill synced: "${skill.name}" v${skill.version} → workspace`); |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | private cleanSync(srcDir: string, dstDir: string): void { |
| 156 | if (fs.existsSync(dstDir)) { |
no test coverage detected