MCPcopy Create free account
hub / github.com/cortexkit/magic-context / decodeCachedM0

Function decodeCachedM0

packages/pi-plugin/src/inject-compartments-pi.ts:669–674  ·  view source on GitHub ↗
(value: Buffer | Uint8Array | null)

Source from the content-addressed store, hash-verified

667}
668
669function decodeCachedM0(value: Buffer | Uint8Array | null): string | null {
670 if (!value) return null;
671 return Buffer.from(value.buffer, value.byteOffset, value.byteLength).toString(
672 "utf8",
673 );
674}
675
676// v2: session_facts is retired as a render source (facts = promoted memories).
677// The m[0] snapshot still carries a sessionFactsVersion field for shape

Callers 5

mustMaterializePiFunction · 0.85
decodeCachedM1Function · 0.85
applyCachedPiRowFunction · 0.85
softRefreshCachedM1PiFunction · 0.85
injectM0M1PiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected