MCPcopy Create free account
hub / github.com/Noumena-Network/code / getApiKeyHelperSlowNoticeDuration

Function getApiKeyHelperSlowNoticeDuration

src/utils/apiKeyHelperSession.ts:10–19  ·  view source on GitHub ↗
(options: {
  configured: boolean
  elapsedMs: number
})

Source from the content-addressed store, hash-verified

8} from './auth.js'
9
10export 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
21export function hasConfiguredApiKeyHelper(): boolean {
22 return Boolean(getConfiguredApiKeyHelper())

Calls 1

formatDurationFunction · 0.70

Tested by

no test coverage detected