(setting: PromptFeatureProfile['tweaks'])
| 361 | } |
| 362 | |
| 363 | function explicitDisabled(setting: PromptFeatureProfile['tweaks']): boolean { |
| 364 | return ( |
| 365 | typeof setting !== 'string' && |
| 366 | setting.mode === 'disabled' && |
| 367 | setting.provenance === 'explicit' && |
| 368 | setting.confidence === 'high' |
| 369 | ); |
| 370 | } |
| 371 | |
| 372 | function featureModeValue(setting: PromptFeatureProfile['tweaks']): PromptFeatureMode { |
| 373 | return typeof setting === 'string' ? setting : setting.mode; |
no outgoing calls
no test coverage detected