()
| 3 | import type { CommandAvailabilitySession } from '../utils/commandAvailability.js' |
| 4 | |
| 5 | function makeOauthSession(): NonNullable<CommandAvailabilitySession> { |
| 6 | return { |
| 7 | headersKind: 'bearer', |
| 8 | providerPlan: { |
| 9 | mode: 'noumena_managed', |
| 10 | source: 'managed_principal', |
| 11 | staticKeyEnvVarName: null, |
| 12 | }, |
| 13 | scopes: ['user:inference'], |
| 14 | subscription: { |
| 15 | subscriptionName: 'Max', |
| 16 | subscriptionType: 'max', |
| 17 | rateLimitTier: 'default', |
| 18 | }, |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | describe('shouldRequireChromeManagedAccountNotice', () => { |
| 23 | test('requires managed account notice for external sessions without oauth access', () => { |
no outgoing calls
no test coverage detected