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

Function getRegularCommandName

src/skills/loadSkillsDir.ts:551–558  ·  view source on GitHub ↗
(filePath: string, baseDir: string)

Source from the content-addressed store, hash-verified

549}
550
551function getRegularCommandName(filePath: string, baseDir: string): string {
552 const fileName = basename(filePath)
553 const fileDirectory = dirname(filePath)
554 const commandBaseName = fileName.replace(/\.md$/, '')
555
556 const namespace = buildNamespace(fileDirectory, baseDir)
557 return namespace ? `${namespace}:${commandBaseName}` : commandBaseName
558}
559
560function getCommandName(file: MarkdownFile): string {
561 const isSkill = isSkillFile(file.filePath)

Callers 1

getCommandNameFunction · 0.85

Calls 1

buildNamespaceFunction · 0.70

Tested by

no test coverage detected