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

Function ensureManualInteractionAllowed

background.js:4131–4145  ·  view source on GitHub ↗
(actionLabel)

Source from the content-addressed store, hash-verified

4129}
4130
4131async function ensureManualInteractionAllowed(actionLabel) {
4132 const state = await getState();
4133
4134 if (isAutoRunLockedState(state)) {
4135 throw new Error(`自动流程运行中,请先停止后再${actionLabel}。`);
4136 }
4137 if (isAutoRunPausedState(state)) {
4138 throw new Error(`自动流程当前已暂停。请点击“继续”,或先确认接管自动流程后再${actionLabel}。`);
4139 }
4140 if (isAutoRunScheduledState(state)) {
4141 throw new Error(`自动流程已计划启动。请先取消计划,或立即开始后再${actionLabel}。`);
4142 }
4143
4144 return state;
4145}
4146
4147async function skipStep(step) {
4148 const state = await ensureManualInteractionAllowed('跳过步骤');

Callers 8

importSettingsBundleFunction · 0.85
selectLuckmailPurchaseFunction · 0.85
skipStepFunction · 0.85
handleMessageFunction · 0.85

Calls 4

getStateFunction · 0.85
isAutoRunLockedStateFunction · 0.85
isAutoRunPausedStateFunction · 0.85
isAutoRunScheduledStateFunction · 0.85

Tested by

no test coverage detected