(t0)
| 403 | return value === NO_PREFERENCE ? getDefaultMainLoopModel() : parseUserSpecifiedModel(value); |
| 404 | } |
| 405 | function EffortLevelIndicator(t0) { |
| 406 | const $ = _c(5); |
| 407 | const { |
| 408 | effort |
| 409 | } = t0; |
| 410 | const t1 = effort ? "claude" : "subtle"; |
| 411 | const t2 = effort ?? "low"; |
| 412 | let t3; |
| 413 | if ($[0] !== t2) { |
| 414 | t3 = effortLevelToSymbol(t2); |
| 415 | $[0] = t2; |
| 416 | $[1] = t3; |
| 417 | } else { |
| 418 | t3 = $[1]; |
| 419 | } |
| 420 | let t4; |
| 421 | if ($[2] !== t1 || $[3] !== t3) { |
| 422 | t4 = <Text color={t1}>{t3}</Text>; |
| 423 | $[2] = t1; |
| 424 | $[3] = t3; |
| 425 | $[4] = t4; |
| 426 | } else { |
| 427 | t4 = $[4]; |
| 428 | } |
| 429 | return t4; |
| 430 | } |
| 431 | function cycleEffortLevel(current: EffortLevel, direction: 'left' | 'right', includeMax: boolean): EffortLevel { |
| 432 | const levels: EffortLevel[] = includeMax ? ['low', 'medium', 'high', 'max'] : ['low', 'medium', 'high']; |
| 433 | // If the current level isn't in the cycle (e.g. 'max' after switching to a |
nothing calls this directly
no test coverage detected