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

Function getDownstreamStateResets

background.js:3662–3714  ·  view source on GitHub ↗
(step)

Source from the content-addressed store, hash-verified

3660}
3661
3662function getDownstreamStateResets(step) {
3663 if (step <= 1) {
3664 return {
3665 oauthUrl: null,
3666 sub2apiSessionId: null,
3667 sub2apiOAuthState: null,
3668 sub2apiGroupId: null,
3669 sub2apiDraftName: null,
3670 flowStartTime: null,
3671 password: null,
3672 lastEmailTimestamp: null,
3673 signupVerificationRequestedAt: null,
3674 loginVerificationRequestedAt: null,
3675 lastSignupCode: null,
3676 lastLoginCode: null,
3677 localhostUrl: null,
3678 };
3679 }
3680 if (step === 2) {
3681 return {
3682 password: null,
3683 lastEmailTimestamp: null,
3684 signupVerificationRequestedAt: null,
3685 loginVerificationRequestedAt: null,
3686 lastSignupCode: null,
3687 lastLoginCode: null,
3688 localhostUrl: null,
3689 };
3690 }
3691 if (step === 3 || step === 4) {
3692 return {
3693 lastEmailTimestamp: null,
3694 signupVerificationRequestedAt: null,
3695 loginVerificationRequestedAt: null,
3696 lastSignupCode: null,
3697 lastLoginCode: null,
3698 localhostUrl: null,
3699 };
3700 }
3701 if (step === 5 || step === 6 || step === 7) {
3702 return {
3703 lastLoginCode: null,
3704 loginVerificationRequestedAt: null,
3705 localhostUrl: null,
3706 };
3707 }
3708 if (step === 8) {
3709 return {
3710 localhostUrl: null,
3711 };
3712 }
3713 return {};
3714}
3715
3716async function invalidateDownstreamAfterStepRestart(step, options = {}) {
3717 const { logLabel = `步骤 ${step} 重新执行` } = options;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected