(cli: string | null | undefined)
| 36 | }; |
| 37 | |
| 38 | export function getDefaultModelForCli(cli: string | null | undefined): string { |
| 39 | if (!cli) { |
| 40 | return CLAUDE_DEFAULT_MODEL; |
| 41 | } |
| 42 | const normalized = cli.toLowerCase() as CLIKey; |
| 43 | return DEFAULT_MODELS[normalized] ?? CLAUDE_DEFAULT_MODEL; |
| 44 | } |
| 45 | |
| 46 | export function normalizeModelId(cli: string | null | undefined, model?: string | null): string { |
| 47 | if (!cli) { |
no outgoing calls
no test coverage detected