MCPcopy Create free account
hub / github.com/Noumena-Network/code / getCommandName

Function getCommandName

src/skills/loadSkillsDir.ts:560–565  ·  view source on GitHub ↗
(file: MarkdownFile)

Source from the content-addressed store, hash-verified

558}
559
560function getCommandName(file: MarkdownFile): string {
561 const isSkill = isSkillFile(file.filePath)
562 return isSkill
563 ? getSkillCommandName(file.filePath, file.baseDir)
564 : getRegularCommandName(file.filePath, file.baseDir)
565}
566
567/**
568 * Loads skills from legacy /commands/ directories.

Callers 3

Calls 3

getSkillCommandNameFunction · 0.85
getRegularCommandNameFunction · 0.85
isSkillFileFunction · 0.70

Tested by

no test coverage detected