(schema: ToolSchemaShape)
| 267 | * These need to be passed via --json. |
| 268 | */ |
| 269 | export function getUnsupportedSchemaKeys(schema: ToolSchemaShape): string[] { |
| 270 | const unsupported: string[] = []; |
| 271 | |
| 272 | for (const [key, zodType] of Object.entries(schema)) { |
| 273 | const opt = zodToYargsOption(zodType); |
| 274 | if (!opt) { |
| 275 | unsupported.push(key); |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | return unsupported; |
| 280 | } |
no test coverage detected