MCPcopy Index your code
hub / github.com/codeaashu/claude-code / ensureCachedMCState

Function ensureCachedMCState

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

Source from the content-addressed store, hash-verified

69}
70
71function ensureCachedMCState(): import('./cachedMicrocompact.js').CachedMCState {
72 if (!cachedMCState && cachedMCModule) {
73 cachedMCState = cachedMCModule.createCachedMCState()
74 }
75 if (!cachedMCState) {
76 throw new Error(
77 'cachedMCState not initialized — getCachedMCModule() must be called first',
78 )
79 }
80 return cachedMCState
81}
82
83/**
84 * 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