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

Function getApplicablePrefetchIds

src/utils/startupPrefetchPolicy.ts:28–34  ·  view source on GitHub ↗
(
  lifecycle: SessionLifecycle,
)

Source from the content-addressed store, hash-verified

26]
27
28export function getApplicablePrefetchIds(
29 lifecycle: SessionLifecycle,
30): readonly string[] {
31 return STARTUP_PREFETCHES
32 .filter(item => item.applicableTo.includes(lifecycle))
33 .map(item => item.id)
34}
35
36export function shouldRunStartupPrefetch(
37 lifecycle: SessionLifecycle,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected