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

Function controlSequence

packages/runtime-host/src/protocol/runtime-resource.ts:637–643  ·  view source on GitHub ↗
(value: unknown, label: string)

Source from the content-addressed store, hash-verified

635}
636
637function controlSequence(value: unknown, label: string): number {
638 const sequence = positiveCount(value, label);
639 if (sequence > RUNTIME_RESOURCE_MAX_CONTROL_SEQUENCE) {
640 throw invalidProtocolFrame(`Invalid ${label}`);
641 }
642 return sequence;
643}

Calls 2

invalidProtocolFrameFunction · 0.85
positiveCountFunction · 0.70

Tested by

no test coverage detected