MCPcopy Index your code
hub / github.com/simstudioai/sim / clampInlineBytes

Function clampInlineBytes

apps/sim/app/api/function/execute/route.ts:768–771  ·  view source on GitHub ↗
(value: unknown, limit = MAX_FUNCTION_INLINE_BYTES)

Source from the content-addressed store, hash-verified

766}
767
768function clampInlineBytes(value: unknown, limit = MAX_FUNCTION_INLINE_BYTES): number {
769 const requested = getPositiveNumber(value)
770 return Math.min(requested ?? limit, limit)
771}
772
773function getBrokerFileArgs(args: unknown): {
774 file: unknown

Callers 2

getBrokerFileArgsFunction · 0.85

Calls 1

getPositiveNumberFunction · 0.85

Tested by

no test coverage detected