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

Function decodeCachedM1

packages/pi-plugin/src/inject-compartments-pi.ts:1892–1899  ·  view source on GitHub ↗
(row: CachedPiM0M1Row, sessionId: string)

Source from the content-addressed store, hash-verified

1890}
1891
1892function decodeCachedM1(row: CachedPiM0M1Row, sessionId: string): string {
1893 if (!row.cached_m1_bytes) {
1894 throw new PiMaterializeContentionError(
1895 `missing cached m[1] for ${sessionId}`,
1896 );
1897 }
1898 return decodeCachedM0(row.cached_m1_bytes) ?? PI_M1_PLACEHOLDER;
1899}
1900
1901function applyCachedPiRow(args: {
1902 row: CachedPiM0M1Row;

Callers 1

applyCachedPiRowFunction · 0.85

Calls 1

decodeCachedM0Function · 0.85

Tested by

no test coverage detected