(targetDir: string, baseDir: string)
| 521 | } |
| 522 | |
| 523 | function 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 | |
| 536 | function getSkillCommandName(filePath: string, baseDir: string): string { |
| 537 | const skillDirectory = dirname(filePath) |
no outgoing calls
no test coverage detected