(options: {
configured: boolean
elapsedMs: number
})
| 8 | } from './auth.js' |
| 9 | |
| 10 | export function getApiKeyHelperSlowNoticeDuration(options: { |
| 11 | configured: boolean |
| 12 | elapsedMs: number |
| 13 | }): string | null { |
| 14 | if (!options.configured || options.elapsedMs < 10_000) { |
| 15 | return null |
| 16 | } |
| 17 | |
| 18 | return formatDuration(options.elapsedMs) |
| 19 | } |
| 20 | |
| 21 | export function hasConfiguredApiKeyHelper(): boolean { |
| 22 | return Boolean(getConfiguredApiKeyHelper()) |
no test coverage detected