MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / normalizeAutoRunFallbackThreadIntervalMinutes

Function normalizeAutoRunFallbackThreadIntervalMinutes

background.js:319–334  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

317}
318
319function normalizeAutoRunFallbackThreadIntervalMinutes(value) {
320 const rawValue = String(value ?? '').trim();
321 if (!rawValue) {
322 return 0;
323 }
324
325 const numeric = Number(rawValue);
326 if (!Number.isFinite(numeric)) {
327 return 0;
328 }
329
330 return Math.min(
331 AUTO_RUN_DELAY_MAX_MINUTES,
332 Math.max(0, Math.floor(numeric))
333 );
334}
335
336function normalizeAutoStepDelaySeconds(value, fallback = null) {
337 const rawValue = String(value ?? '').trim();

Callers 3

waitBetweenAutoRunRoundsFunction · 0.85
waitBeforeAutoRunRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected