MCPcopy Create free account
hub / github.com/apache/maka / missingDocument

Function missingDocument

packages/storage/src/memory-bundle-model.ts:206–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204}
205
206export function missingDocument(): Extract<MemoryDocumentSnapshot, { kind: 'missing' }> {
207 return { kind: 'missing', revision: null, byteLength: 0 };
208}
209
210export function revision(bytes: Uint8Array): MemoryRevision {
211 return `sha256:${createHash('sha256').update(bytes).digest('hex')}`;

Callers 4

bundleTargetFunction · 0.85
readMemoryBundleFunction · 0.85
snapshotFromDecisionFunction · 0.85
readDocumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected