(cmd: Command)
| 50 | } |
| 51 | |
| 52 | function formatCommandDescription(cmd: Command): string { |
| 53 | // Debug: log if userFacingName differs from cmd.name for plugin skills |
| 54 | const displayName = getCommandName(cmd) |
| 55 | if ( |
| 56 | cmd.name !== displayName && |
| 57 | cmd.type === 'prompt' && |
| 58 | cmd.source === 'plugin' |
| 59 | ) { |
| 60 | logForDebugging( |
| 61 | `Skill prompt: showing "${cmd.name}" (userFacingName="${displayName}")`, |
| 62 | ) |
| 63 | } |
| 64 | |
| 65 | return `- ${cmd.name}: ${getCommandDescription(cmd)}` |
| 66 | } |
| 67 | |
| 68 | const MIN_DESC_LENGTH = 20 |
| 69 |
no test coverage detected