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

Function ensureCachedMCState

src/services/compact/microCompact.ts:72–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72function ensureCachedMCState(): import('./cachedMicrocompact.js').CachedMCState {
73 if (!cachedMCState && cachedMCModule) {
74 cachedMCState = cachedMCModule.createCachedMCState()
75 }
76 if (!cachedMCState) {
77 throw new Error(
78 'cachedMCState not initialized — getCachedMCModule() must be called first',
79 )
80 }
81 return cachedMCState
82}
83
84/**
85 * Get new pending cache edits to be included in the next API request.

Callers 1

cachedMicrocompactPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected