(skillType: SkillType)
| 66 | } |
| 67 | |
| 68 | function readSkillContent(skillType: SkillType): string { |
| 69 | const sourcePath = getSkillSourcePath(skillType); |
| 70 | if (!fs.existsSync(sourcePath)) { |
| 71 | throw new Error(`Skill source not found: ${sourcePath}`); |
| 72 | } |
| 73 | return fs.readFileSync(sourcePath, 'utf8'); |
| 74 | } |
| 75 | |
| 76 | async function promptConfirm(question: string): Promise<boolean> { |
| 77 | if (!isInteractiveTTY()) { |
no test coverage detected