MCPcopy Index your code
hub / github.com/codeaashu/claude-code / buildNamespace

Function buildNamespace

src/skills/loadSkillsDir.ts:523–534  ·  view source on GitHub ↗
(targetDir: string, baseDir: string)

Source from the content-addressed store, hash-verified

521}
522
523function buildNamespace(targetDir: string, baseDir: string): string {
524 const normalizedBaseDir = baseDir.endsWith(pathSep)
525 ? baseDir.slice(0, -1)
526 : baseDir
527
528 if (targetDir === normalizedBaseDir) {
529 return ''
530 }
531
532 const relativePath = targetDir.slice(normalizedBaseDir.length + 1)
533 return relativePath ? relativePath.split(pathSep).join(':') : ''
534}
535
536function getSkillCommandName(filePath: string, baseDir: string): string {
537 const skillDirectory = dirname(filePath)

Callers 2

getSkillCommandNameFunction · 0.85
getRegularCommandNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected