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

Function handleCommand

content/signup-page.js:56–87  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

54}
55
56async function handleCommand(message) {
57 switch (message.type) {
58 case 'EXECUTE_STEP':
59 switch (message.step) {
60 case 2: return await step2_clickRegister(message.payload);
61 case 3: return await step3_fillEmailPassword(message.payload);
62 case 5: return await step5_fillNameBirthday(message.payload);
63 case 6: return await step6_login(message.payload);
64 case 8: return await step8_findAndClick();
65 default: throw new Error(`signup-page.js 不处理步骤 ${message.step}`);
66 }
67 case 'FILL_CODE':
68 // Step 4 = signup code, Step 7 = login code (same handler)
69 return await fillVerificationCode(message.step, message.payload);
70 case 'GET_LOGIN_AUTH_STATE':
71 return serializeLoginAuthState(inspectLoginAuthState());
72 case 'PREPARE_SIGNUP_VERIFICATION':
73 return await prepareSignupVerificationFlow(message.payload);
74 case 'RESEND_VERIFICATION_CODE':
75 return await resendVerificationCode(message.step);
76 case 'ENSURE_SIGNUP_ENTRY_READY':
77 return await ensureSignupEntryReady();
78 case 'ENSURE_SIGNUP_PASSWORD_PAGE_READY':
79 return await ensureSignupPasswordPageReady();
80 case 'STEP8_FIND_AND_CLICK':
81 return await step8_findAndClick();
82 case 'STEP8_GET_STATE':
83 return getStep8State();
84 case 'STEP8_TRIGGER_CONTINUE':
85 return await step8_triggerContinue(message.payload);
86 }
87}
88
89const VERIFICATION_CODE_INPUT_SELECTOR = [
90 'input[name="code"]',

Callers 1

signup-page.jsFile · 0.85

Calls 14

step2_clickRegisterFunction · 0.85
step3_fillEmailPasswordFunction · 0.85
step5_fillNameBirthdayFunction · 0.85
step6_loginFunction · 0.85
step8_findAndClickFunction · 0.85
fillVerificationCodeFunction · 0.85
serializeLoginAuthStateFunction · 0.85
inspectLoginAuthStateFunction · 0.85
resendVerificationCodeFunction · 0.85
ensureSignupEntryReadyFunction · 0.85

Tested by

no test coverage detected