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