MCPcopy
hub / github.com/codeaashu/claude-code / toPersistableEffort

Function toPersistableEffort

src/utils/effort.ts:95–105  ·  view source on GitHub ↗
(
  value: EffortValue | undefined,
)

Source from the content-addressed store, hash-verified

93 * (which only accepts string levels) never rejects a write.
94 */
95export function toPersistableEffort(
96 value: EffortValue | undefined,
97): EffortLevel | undefined {
98 if (value === 'low' || value === 'medium' || value === 'high') {
99 return value
100 }
101 if (value === 'max' && process.env.USER_TYPE === 'ant') {
102 return value
103 }
104 return undefined
105}
106
107export function getInitialEffortSetting(): EffortLevel | undefined {
108 // toPersistableEffort filters 'max' for non-ants on read, so a manually

Callers 4

EffortCalloutFunction · 0.85
ModelPickerFunction · 0.85
getInitialEffortSettingFunction · 0.85
setEffortValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected