(value: null | string | undefined)
| 39 | } from './types.js' |
| 40 | |
| 41 | function normalizeCredential(value: null | string | undefined): null | string { |
| 42 | if (typeof value !== 'string') { |
| 43 | return null |
| 44 | } |
| 45 | const trimmed = value.trim() |
| 46 | return trimmed.length > 0 ? trimmed : null |
| 47 | } |
| 48 | |
| 49 | function hasManagedInferenceScope(scopes: string[] | undefined): boolean { |
| 50 | return Boolean(scopes?.includes('user:inference')) |
no outgoing calls
no test coverage detected