(raw: string | undefined)
| 99 | // (date-suffix + provider/region prefix stripped, lowercased) so a prefixed |
| 100 | // entry such as `anthropic.claude-opus-4` matches the already-stripped id. |
| 101 | function parseEnvList(raw: string | undefined): string[] { |
| 102 | if (!raw) return []; |
| 103 | return raw |
| 104 | .split(",") |
| 105 | .map((s) => stripProviderPrefix(normalizeModelName(s.trim())?.toLowerCase() ?? "")) |
| 106 | .filter((s) => s.length > 0); |
| 107 | } |
| 108 | |
| 109 | function matchesAny(id: string, families: readonly string[]): boolean { |
| 110 | return families.some((fam) => id.startsWith(fam)); |
no test coverage detected
searching dependent graphs…