Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
208
function
clampPercent(n: number): number {
209
if
(Number.isNaN(n))
return
0;
210
return
Math.max(0, Math.min(100, Math.round(n)));
211
}
212
213
export
async
function
listRuns(
214
owner: string,
Callers
1
updateRun
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected