refactor shared flow settings and runtime cleanup

This commit is contained in:
QLHazyCoder
2026-05-24 19:36:08 +08:00
parent c649d43ee6
commit 3a60560e27
40 changed files with 487 additions and 861 deletions
+48 -2
View File
@@ -46,13 +46,20 @@
"baseGroups": [
"openai-plus",
"openai-phone",
"shared-auto-run",
"openai-oauth",
"openai-step6"
"openai-step6",
"shared-settings-actions"
],
"targets": {
"cpa": {
"id": "cpa",
"label": "CPA 面板",
"defaultState": {
"vpsUrl": "",
"vpsPassword": "",
"localCpaStep9Mode": "submit"
},
"groups": [
"openai-target-cpa"
]
@@ -60,6 +67,18 @@
"sub2api": {
"id": "sub2api",
"label": "SUB2API",
"defaultState": {
"sub2apiUrl": "",
"sub2apiEmail": "",
"sub2apiPassword": "",
"sub2apiGroupName": "codex",
"sub2apiGroupNames": [
"codex",
"openai-plus"
],
"sub2apiAccountPriority": 1,
"sub2apiDefaultProxyName": ""
},
"groups": [
"openai-target-sub2api"
]
@@ -67,11 +86,37 @@
"codex2api": {
"id": "codex2api",
"label": "Codex2API",
"defaultState": {
"codex2apiUrl": "",
"codex2apiAdminKey": ""
},
"groups": [
"openai-target-codex2api"
]
}
},
"settingsDefaults": {
"signup": {
"signupMethod": "email",
"phoneVerificationEnabled": false,
"phoneSignupReloginAfterBindEmailEnabled": false
},
"plus": {
"plusModeEnabled": false,
"plusPaymentMethod": "paypal-hosted",
"plusAccountAccessStrategy": "oauth",
"hostedCheckoutVerificationUrl": "",
"hostedCheckoutPhoneNumber": "",
"plusHostedCheckoutOauthDelaySeconds": 3
},
"autoRun": {
"stepExecutionRange": {
"enabled": false,
"fromStep": 1,
"toStep": 11
}
}
},
"runtimeSources": {
"openai-auth": {
"flowId": "openai",
@@ -383,7 +428,8 @@
"label": "OAuth",
"rowIds": [
"row-oauth-flow-timeout",
"row-oauth-display"
"row-oauth-display",
"row-oauth-callback"
]
},
"openai-step6": {