MCPcopy Create free account
hub / github.com/ByBrawe/opencode-loop / durationToText

Function durationToText

src/index.js:85–93  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

83 while (true) {
84 const [value, next] = takeFlagValue(current, flag);
85 if (value === undefined)
86 return [values, current];
87 values.push(value);
88 current = next;
89 }
90}
91function parsePositiveInt(value, fallback = 0) {
92 const parsed = Number.parseInt(String(value || ""), 10);
93 return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback;
94}
95function parseNonNegativeInt(value, fallback = 0) {
96 const parsed = Number.parseInt(String(value || ""), 10);

Callers 2

jobLabelFunction · 0.85
statusLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected