MCPcopy
hub / github.com/BuilderIO/agent-native / normalizeLimit

Function normalizeLimit

packages/core/src/progress/store.ts:24–27  ·  view source on GitHub ↗
(value: number | undefined, fallback = 50)

Source from the content-addressed store, hash-verified

22let _initPromise: Promise<void> | undefined;
23
24function normalizeLimit(value: number | undefined, fallback = 50): number {
25 if (!Number.isFinite(value) || value == null || value <= 0) return fallback;
26 return Math.min(Math.floor(value), 200);
27}
28
29async function ensureTable(): Promise<void> {
30 if (!_initPromise) {

Callers 1

listRunsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected