()
| 17 | } |
| 18 | |
| 19 | export function listMcpCommandMetadata(): AnyCommandMetadata[] { |
| 20 | return listMcpExposedCommandNames().map((name) => { |
| 21 | const metadata = findCommandMetadata(name); |
| 22 | if (!metadata) { |
| 23 | throw new Error(`Missing command metadata for MCP-exposed command: ${name}`); |
| 24 | } |
| 25 | return metadata; |
| 26 | }); |
| 27 | } |
| 28 | |
| 29 | export function listCommandMetadataNames(): CommandName[] { |
| 30 | return [...commandMetadataMap.keys()].sort(); |
no test coverage detected