(filePath: string, baseDir: string)
| 534 | } |
| 535 | |
| 536 | function getSkillCommandName(filePath: string, baseDir: string): string { |
| 537 | const skillDirectory = dirname(filePath) |
| 538 | const parentOfSkillDir = dirname(skillDirectory) |
| 539 | const commandBaseName = basename(skillDirectory) |
| 540 | |
| 541 | const namespace = buildNamespace(parentOfSkillDir, baseDir) |
| 542 | return namespace ? `${namespace}:${commandBaseName}` : commandBaseName |
| 543 | } |
| 544 | |
| 545 | function getRegularCommandName(filePath: string, baseDir: string): string { |
| 546 | const fileName = basename(filePath) |
no test coverage detected