| 99 | } |
| 100 | |
| 101 | async function hasOpenCodeCometCommands(baseDir: string, skillsDir: string, entries: string[]) { |
| 102 | const cometEntries = entries.filter((entry) => entry.startsWith('comet')); |
| 103 | if (cometEntries.length === 0) return false; |
| 104 | |
| 105 | const commandsDir = path.join(baseDir, skillsDir, 'commands'); |
| 106 | const commandEntries = await readDir(commandsDir); |
| 107 | return cometEntries.every((entry) => commandEntries.includes(`${entry}.md`)); |
| 108 | } |
| 109 | |
| 110 | async function detectPlatforms(projectPath: string): Promise<Set<string>> { |
| 111 | const detected = new Set<string>(); |