( model: string, appStateEffort: EffortValue | undefined, )
| 172 | * Single source of truth for the status bar and /effort output (CC-1088). |
| 173 | */ |
| 174 | export function getDisplayedEffortLevel( |
| 175 | model: string, |
| 176 | appStateEffort: EffortValue | undefined, |
| 177 | ): EffortLevel { |
| 178 | const resolved = resolveAppliedEffort(model, appStateEffort) ?? 'high' |
| 179 | return convertEffortValueToLevel(resolved) |
| 180 | } |
| 181 | |
| 182 | /** |
| 183 | * Build the ` with {level} effort` suffix shown in Logo/Spinner. |
no test coverage detected