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

Function shouldRunStartupPrefetch

src/utils/startupPrefetchPolicy.ts:36–43  ·  view source on GitHub ↗
(
  lifecycle: SessionLifecycle,
  prefetchId: string,
)

Source from the content-addressed store, hash-verified

34}
35
36export function shouldRunStartupPrefetch(
37 lifecycle: SessionLifecycle,
38 prefetchId: string,
39): boolean {
40 return STARTUP_PREFETCHES.some(
41 item => item.id === prefetchId && item.applicableTo.includes(lifecycle),
42 )
43}

Callers 2

runStartupPrefetchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected