MCPcopy
hub / github.com/rpamis/comet / hasOpenCodeCometCommands

Function hasOpenCodeCometCommands

src/core/detect.ts:101–108  ·  view source on GitHub ↗
(baseDir: string, skillsDir: string, entries: string[])

Source from the content-addressed store, hash-verified

99}
100
101async 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
110async function detectPlatforms(projectPath: string): Promise<Set<string>> {
111 const detected = new Set<string>();

Callers 1

hasSkillsFunction · 0.85

Calls 1

readDirFunction · 0.85

Tested by

no test coverage detected