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

Function decodeCommitted

packages/runtime-host/src/protocol/connection-effects.ts:418–425  ·  view source on GitHub ↗
(value: Record<string, unknown>, label: string)

Source from the content-addressed store, hash-verified

416}
417
418function decodeCommitted(value: Record<string, unknown>, label: string): ConnectionEffectCommitted {
419 if (value.kind !== 'committed') throw invalidProtocolFrame(`Invalid ${label}`);
420 return {
421 kind: 'committed',
422 catalogRevision: requireCount(value.catalogRevision, 'connection catalog revision'),
423 connection: decodeDomain(() => decodeConnectionVersionBasis(value.connection)),
424 };
425}
426
427function decodeNonEffectResult(
428 value: Record<string, unknown>,

Callers 2

Calls 4

invalidProtocolFrameFunction · 0.85
requireCountFunction · 0.85
decodeDomainFunction · 0.70

Tested by

no test coverage detected