(input: unknown)
| 12 | } |
| 13 | |
| 14 | export function normalizeAgentList(input: unknown): Agent[] { |
| 15 | if (Array.isArray(input)) return input.filter(isAgent) |
| 16 | if (isAgent(input)) return [input] |
| 17 | if (!input || typeof input !== "object") return [] |
| 18 | return Object.values(input).filter(isAgent) |
| 19 | } |
| 20 | |
| 21 | export function normalizeProviderList(input: ProviderListResponse): NormalizedProviderListResponse { |
| 22 | return { |
no test coverage detected