( a: ModelSetting, b: ModelSetting, )
| 84 | } |
| 85 | |
| 86 | export function modelOptionsReferToSameModel( |
| 87 | a: ModelSetting, |
| 88 | b: ModelSetting, |
| 89 | ): boolean { |
| 90 | if (a === b) return true |
| 91 | if (typeof a !== 'string' || typeof b !== 'string') return false |
| 92 | const aProfile = resolveNCodeManagedModel(a) |
| 93 | const bProfile = resolveNCodeManagedModel(b) |
| 94 | return Boolean(aProfile && bProfile && aProfile.model === bProfile.model) |
| 95 | } |
| 96 | |
| 97 | export function getDefaultOptionForUser(fastMode = false): ModelOption { |
| 98 | const session = getCurrentSubscriptionSessionState() |
no test coverage detected