MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / sanitizeWeight

Function sanitizeWeight

src/orchestration/partition.ts:65–67  ·  view source on GitHub ↗
(w: number | undefined)

Source from the content-addressed store, hash-verified

63}
64
65function sanitizeWeight(w: number | undefined): number {
66 return typeof w === 'number' && Number.isFinite(w) && w > 0 ? w : 1;
67}
68
69/** Coalesce coupled items into units, preserving first-appearance order. */
70function buildUnits<T>(items: WorkItem<T>[]): Unit<T>[] {

Callers 1

buildUnitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected