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

Function resumeAutoRunIfWaitingForEmail

background.js:4896–4913  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

4894});
4895
4896async function resumeAutoRunIfWaitingForEmail(options = {}) {
4897 const { silent = false } = options;
4898 const state = await getState();
4899 if (!state.email || !isAutoRunPausedState(state)) {
4900 return false;
4901 }
4902
4903 if (resumeWaiter) {
4904 if (!silent) {
4905 await addLog('邮箱已就绪,自动继续后续步骤...', 'info');
4906 }
4907 resumeWaiter.resolve();
4908 resumeWaiter = null;
4909 return true;
4910 }
4911
4912 return false;
4913}
4914
4915async function ensureAutoEmailReady(targetRun, totalRuns, attemptRuns) {
4916 const currentState = await getState();

Callers 2

setEmailStateFunction · 0.85
resumeAutoRunFunction · 0.85

Calls 3

getStateFunction · 0.85
isAutoRunPausedStateFunction · 0.85
addLogFunction · 0.70

Tested by

no test coverage detected