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

Function setStepStatus

background.js:3537–3549  ·  view source on GitHub ↗
(step, status)

Source from the content-addressed store, hash-verified

3535// ============================================================
3536
3537async function setStepStatus(step, status) {
3538 if (typeof loggingStatus !== 'undefined' && loggingStatus?.setStepStatus) {
3539 return loggingStatus.setStepStatus(step, status);
3540 }
3541 const state = await getState();
3542 const statuses = { ...state.stepStatuses };
3543 statuses[step] = status;
3544 await setState({ stepStatuses: statuses, currentStep: step });
3545 chrome.runtime.sendMessage({
3546 type: 'STEP_STATUS_CHANGED',
3547 payload: { step, status },
3548 }).catch(() => { });
3549}
3550
3551function isStopError(error) {
3552 const message = typeof error === 'string' ? error : error?.message;

Callers 7

skipStepFunction · 0.70
handleStepDataFunction · 0.70
markRunningStepsStoppedFunction · 0.70
executeStepFunction · 0.70

Calls 2

getStateFunction · 0.85
setStateFunction · 0.85

Tested by

no test coverage detected