(lines: readonly string[])
| 20 | } |
| 21 | |
| 22 | export function buildSkillMenuText(lines: readonly string[]): string | null { |
| 23 | const visibleLines = normalizeSkillMenuLines(lines) |
| 24 | if (visibleLines.length === 0) return null |
| 25 | |
| 26 | return `${SKILL_MENU_HEADER} |
| 27 | |
| 28 | ${visibleLines.join('\n')} |
| 29 | |
| 30 | ${SKILL_MENU_CLOSING}` |
| 31 | } |
| 32 | |
| 33 | export function appendSkillMenuLines(baseMenu: string | null | undefined, lines: readonly string[]): string | null { |
| 34 | const visibleLines = normalizeSkillMenuLines(lines) |
no test coverage detected