(modelInput: string)
| 310 | } |
| 311 | |
| 312 | function normalizeModelForCommand(modelInput: string): string | null { |
| 313 | // Share the single model-input parser (alias resolution + gateway preservation + |
| 314 | // format validation) used by the UI and the task tool instead of duplicating it. |
| 315 | return normalizeModelInput(modelInput).model; |
| 316 | } |
| 317 | |
| 318 | function parseMultilineCommand(rawInput: string): ParsedMultilineCommand { |
| 319 | const hasMultiline = rawInput.includes("\n"); |
no test coverage detected