MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / EffortLevelIndicator

Function EffortLevelIndicator

source code/components/ModelPicker.tsx:407–432  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

effortLevelToSymbolFunction · 0.85

Tested by

no test coverage detected