(appStateEffort: EffortValue | undefined, model: string)
| 60 | }; |
| 61 | } |
| 62 | export function showCurrentEffort(appStateEffort: EffortValue | undefined, model: string): EffortCommandResult { |
| 63 | const envOverride = getEffortEnvOverride(); |
| 64 | const effectiveValue = envOverride === null ? undefined : envOverride ?? appStateEffort; |
| 65 | if (effectiveValue === undefined) { |
| 66 | const level = getDisplayedEffortLevel(model, appStateEffort); |
| 67 | return { |
| 68 | message: `Effort level: auto (currently ${level})` |
| 69 | }; |
| 70 | } |
| 71 | const description = getEffortValueDescription(effectiveValue); |
| 72 | return { |
| 73 | message: `Current effort level: ${effectiveValue} (${description})` |
| 74 | }; |
| 75 | } |
| 76 | function unsetEffortLevel(): EffortCommandResult { |
| 77 | const result = updateSettingsForSource('userSettings', { |
| 78 | effortLevel: undefined |
no test coverage detected