MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / getPayload

Function getPayload

packages/core/src/debug/debugController.ts:472–486  ·  view source on GitHub ↗
(recordId: bigint)

Source from the content-addressed store, hash-verified

470 }
471
472 async function getPayload<T extends DebugPayload>(recordId: bigint): Promise<T | null> {
473 const bytes = await backend.debugGetPayload(recordId);
474 if (!bytes) {
475 return null;
476 }
477
478 // We don't know the category here, so try to parse based on size
479 // This is a best-effort attempt
480 const result = parseFrameRecord(bytes);
481 if (result.ok) {
482 return result.value as T;
483 }
484
485 return null;
486 }
487
488 async function getStats(): Promise<DebugStats> {
489 return backend.debugGetStats();

Callers

nothing calls this directly

Calls 2

parseFrameRecordFunction · 0.85
debugGetPayloadMethod · 0.80

Tested by

no test coverage detected