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

Function clampPercent

packages/core/src/progress/store.ts:208–211  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

206}
207
208function clampPercent(n: number): number {
209 if (Number.isNaN(n)) return 0;
210 return Math.max(0, Math.min(100, Math.round(n)));
211}
212
213export async function listRuns(
214 owner: string,

Callers 1

updateRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected