MCPcopy Create free account
hub / github.com/QLHazyCoder/FlowPilot / serializeAutoRunRoundSummaries

Function serializeAutoRunRoundSummaries

background/auto-run-controller.js:68–73  ·  view source on GitHub ↗
(totalRuns, roundSummaries = [])

Source from the content-addressed store, hash-verified

66 }
67
68 function serializeAutoRunRoundSummaries(totalRuns, roundSummaries = []) {
69 return buildAutoRunRoundSummaries(totalRuns, roundSummaries).map((summary) => ({
70 ...summary,
71 failureReasons: [...summary.failureReasons],
72 }));
73 }
74
75 function getAutoRunRoundRetryCount(summary) {
76 return Math.max(0, Number(summary?.attempts || 0) - 1);

Callers 3

waitBetweenAutoRunRoundsFunction · 0.70
waitBeforeAutoRunRetryFunction · 0.70
autoRunLoopFunction · 0.70

Calls 1

Tested by

no test coverage detected