()
| 43 | } |
| 44 | |
| 45 | function detectClients(): ClientInfo[] { |
| 46 | const home = os.homedir(); |
| 47 | const detected: ClientInfo[] = []; |
| 48 | |
| 49 | for (const def of CLIENT_DEFINITIONS) { |
| 50 | const clientDir = path.join(home, def.skillsSubdir.split('/')[0]); |
| 51 | if (fs.existsSync(clientDir)) { |
| 52 | detected.push({ |
| 53 | name: def.name, |
| 54 | id: def.id, |
| 55 | skillsDir: path.join(home, def.skillsSubdir), |
| 56 | }); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | return detected; |
| 61 | } |
| 62 | |
| 63 | function getSkillSourcePath(skillType: SkillType): string { |
| 64 | const resourceRoot = getResourceRoot(); |
no test coverage detected