(targetDir: string, baseDir: string)
| 527 | } |
| 528 | |
| 529 | function buildNamespace(targetDir: string, baseDir: string): string { |
| 530 | const normalizedBaseDir = baseDir.endsWith(pathSep) |
| 531 | ? baseDir.slice(0, -1) |
| 532 | : baseDir |
| 533 | |
| 534 | if (targetDir === normalizedBaseDir) { |
| 535 | return '' |
| 536 | } |
| 537 | |
| 538 | const relativePath = targetDir.slice(normalizedBaseDir.length + 1) |
| 539 | return relativePath ? relativePath.split(pathSep).join(':') : '' |
| 540 | } |
| 541 | |
| 542 | function getSkillCommandName(filePath: string, baseDir: string): string { |
| 543 | const skillDirectory = dirname(filePath) |
no outgoing calls
no test coverage detected