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

Function decodeRelayProfile

packages/runtime-host/src/protocol/runtime-policy.ts:513–519  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

511// rather than re-running the strict table decoder — which would demand an
512// enabledModelIds argument the item does not carry.
513function decodeRelayProfile(value: unknown): RelayModelProfile {
514 const sanitized = normalizeRelayModelProfiles({ m: value })?.m;
515 if (sanitized === undefined) {
516 throw invalidProtocolFrame('Invalid enabled model id relay profile');
517 }
518 return sanitized;
519}
520
521function catalogPageItem(value: unknown): ConnectionCatalogPageItem {
522 const item = requireRecord(value, 'connection catalog page item');

Callers 1

catalogPageItemFunction · 0.85

Calls 2

invalidProtocolFrameFunction · 0.85

Tested by

no test coverage detected