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

Function getFirstUnfinishedStep

background.js:3645–3653  ·  view source on GitHub ↗
(statuses = {})

Source from the content-addressed store, hash-verified

3643}
3644
3645function getFirstUnfinishedStep(statuses = {}) {
3646 if (typeof loggingStatus !== 'undefined' && loggingStatus?.getFirstUnfinishedStep) {
3647 return loggingStatus.getFirstUnfinishedStep(statuses);
3648 }
3649 for (let step = 1; step <= 9; step++) {
3650 if (!isStepDoneStatus(statuses[step] || 'pending')) return step;
3651 }
3652 return null;
3653}
3654
3655function hasSavedProgress(statuses = {}) {
3656 if (typeof loggingStatus !== 'undefined' && loggingStatus?.hasSavedProgress) {

Callers

nothing calls this directly

Calls 1

isStepDoneStatusFunction · 0.70

Tested by

no test coverage detected