Commit Graph

64 Commits

Author SHA1 Message Date
cnxwzy f9f8df19d3 fix: harden CPA auth flow with API callback/state checks
Move CPA oauth url/callback handling to management API first, persist state/origin runtime keys, and fail fast on invalid callback or missing management auth to reduce flaky panel-driven auth failures.
2026-04-27 19:13:22 +08:00
QLHazyCoder b919cdc23c fix: 修正 Plus Return 等待时间至 20 秒并更新相关日志信息 2026-04-26 17:19:36 +08:00
QLHazyCoder e9c3a61e55 feat: 更新 Plus Return 确认逻辑,增加等待时间至 40 秒并添加测试用例 2026-04-26 17:19:29 +08:00
QLHazyCoder f577487670 refactor: 移除未使用的函数和变量,简化 Plus Checkout 创建逻辑 2026-04-26 17:15:15 +08:00
QLHazyCoder 344158e465 feat: 增强 Plus Checkout 账单地址处理,支持多国地址配置及本地化国家路径 2026-04-26 15:59:51 +08:00
QLHazyCoder 5271ec5b59 feat: 增强地址处理逻辑,支持日本地区并优化相关测试用例 2026-04-26 15:59:14 +08:00
QLHazyCoder 6c2bec6520 feat: 增强 Plus Checkout 创建逻辑,支持重用 ChatGPT 标签页并优化测试用例 2026-04-26 15:50:37 +08:00
QLHazyCoder 336fdb0c3a feat: 增强内容脚本加载逻辑,优化错误处理和测试用例 2026-04-26 15:29:26 +08:00
QLHazyCoder 227ebedda4 feat: 添加 Plus 模式和贡献模式支持,增强步骤执行延迟和提示逻辑 2026-04-26 08:51:20 +08:00
QLHazyCoder 9a63cba994 feat: 增强 PayPal 标签页检测逻辑,支持自动接管已打开的 PayPal 页面,并优化登录流程的元素查找 2026-04-26 06:03:53 +08:00
QLHazyCoder 3271dc2f83 feat: 增强 PayPal 登录流程,支持自动检测邮箱和密码输入,增加超时处理和相应测试用例 2026-04-26 05:47:44 +08:00
QLHazyCoder b86114fa3a feat: 添加 Plus Checkout 创建后等待 20 秒的逻辑,并增加相应的测试用例 2026-04-26 05:25:17 +08:00
QLHazyCoder 88ceb79af6 修改登陆及后续逻辑,统一使用一个逻辑 2026-04-26 05:22:36 +08:00
QLHazyCoder ef52ff806b feat: 添加 meiguodizhi 地址接口支持,优化账单地址获取逻辑,跳过 Google 地址推荐 2026-04-26 04:31:51 +08:00
QLHazyCoder f454105ff5 feat: 更新 Plus Checkout 逻辑,优化子框架的就绪状态处理,增加地址输入和 PayPal 付款方法的检测功能 2026-04-26 03:08:12 +08:00
QLHazyCoder 72697ffc83 步骤七修复 2026-04-26 01:42:09 +08:00
QLHazyCoder 6ad866b962 Plua模式开发 2026-04-26 01:41:40 +08:00
QLHazyCoder 08c361711c fix: 修复注册流程中对已登录状态的处理,确保在 ChatGPT 首页时抛出明确错误 2026-04-25 19:33:36 +08:00
QLHazyCoder 0125839d2b fix: stop silent skipping of steps 3/4/5 on ChatGPT home, throw explicit error instead 2026-04-25 19:33:21 +08:00
QLHazyCoder 171b375a0b feat: enhance signup flow to skip profile step for logged-in users 2026-04-25 17:35:22 +08:00
QLHazyCoder e37a0269f2 fix: handle signup phone entry mode before email submission
- 同步最新 dev 到 PR #113,并保留 dev 上更完整的 163 邮箱实现\n- 补充 Step 2 的手机号入口切邮箱逻辑与本地化邮箱输入识别\n- 避免把 Step 2 的 phone entry 提示误判成 auth add-phone 致命错误
2026-04-25 14:53:13 +08:00
QLHazyCoder 6bb183902d feat: continue OAuth flow through HeroSMS phone verification
- 合并 dev 最新主线改动:同步当前认证页恢复、来源配置和侧栏能力的现有基线

- 本地补充修复:补齐 HeroSMS 手机验证与 sidepanel 初始化冲突,修正 Step 9 等待逻辑里的未声明变量,并同步结构/链路文档与回归测试

- 影响范围:OAuth 步骤 8/9、HeroSMS 配置、认证页内容脚本、侧栏初始化、项目文档与测试
2026-04-25 14:04:11 +08:00
Q3CC f3e8d051ea 修复步骤1打开官网前清理OpenAI Cookie 2026-04-24 23:30:36 +08:00
daniellee2015 de70266f8c fix(pro7.5): stabilize icloud/session flow and logged-in step skipping 2026-04-24 19:43:48 +08:00
QLHazyCoder 2796be587c Merge branch 'dev' of https://github.com/QLHazyCoder/codex-oauth-automation-extension into dev 2026-04-23 01:00:44 +08:00
QLHazyCoder 9dbc7bbf21 feat: 添加对手动执行步骤 4 的前置条件检查,确保认证页标签存在 2026-04-23 01:00:39 +08:00
QLHazyCoder c906e4434d feat: 添加2925邮箱会话确保逻辑,优化邮箱轮询验证码流程 2026-04-23 00:33:16 +08:00
Q3CC 1a993e9d6a Merge origin/dev into codex2api source
- resolve the sidepanel contribution-mode test conflict while keeping the new Codex2API assertions\n- update the mail2925 payload test harness for newly added Codex2API and random-subdomain inputs\n- renumber the README quick-start plan headings and strip trailing whitespace from the new tutorial doc
2026-04-22 22:18:09 +08:00
QLHazyCoder 8eec4409fc feat: 增强2925邮箱登录态处理,添加邮箱一致性校验与错误处理 2026-04-22 21:46:27 +08:00
QLHazyCoder d50d8b5305 fix: 优化步骤 9 错误处理,直接报错不再重试认证页 2026-04-22 20:56:49 +08:00
QLHazyCoder e799a79645 feat: 增强 OAuth 认证流程,优化回调状态处理与错误解释 2026-04-22 17:20:17 +08:00
initiatione f8b919e883 Add codex2api as a protocol-first OAuth source
This keeps the existing CPA, SUB2API, and contribution flows intact
while introducing codex2api as a separate source that plugs into
Step 7 and Step 10 through backend APIs instead of page DOM.

The sidepanel now exposes codex2api settings, preserves the built-in
local default through placeholder-only UI, and accepts user-provided
public admin URLs. Step 7 now treats missing or invalid management
secrets as terminal config errors so the flow stops instead of retrying
needlessly.

Constraint: New source must be additive and must not break existing CPA/SUB2API/contribution paths
Rejected: Drive codex2api through admin page button clicks | too brittle against frontend DOM changes
Rejected: Reuse contribution mode as a source surface | violates existing panelMode/runtime-mode boundary
Confidence: high
Scope-risk: moderate
Reversibility: clean
Directive: Keep codex2api on the protocol path unless its API becomes insufficient; do not add a panel content script without proving the protocol path cannot work
Tested: npm test; targeted codex2api/auth retry loops repeated 40 times; full suite repeated 5 times
Not-tested: Real browser run against a live codex2api instance with a real Admin Secret and OpenAI authorization
2026-04-22 13:57:21 +08:00
sh2001sh e7af5c5c4a Merge remote-tracking branch 'origin/master'
# Conflicts:
#	content/signup-page.js
#	tests/step6-login-state.test.js
2026-04-22 10:06:10 +08:00
QLHazyCoder d3a943c408 fix: stabilize signup verification recovery
- merge the latest dev branch into PR #130 before applying local fixes
- detect visible split OTP inputs even when the page exposes numeric single-character fields
- stop assuming verification success after repeated auth retry-page recovery failures
2026-04-21 21:48:25 +08:00
dyhhhhhqwer da0ca04153 Fix Cloudflare signup verification recovery 2026-04-21 19:46:28 +08:00
QLHazyCoder 7c20405685 fix(mail2925): 修复验证码轮询与登录态复用逻辑并清理中文文案,重构 sidepanel:统一 Hotmail 和 2925 号池表单交互
- 抽出共享 account-pool-ui helper
- 统一添加账号、取消添加、批量导入交互
- 调整号池列表收起高度与按钮布局
- 补充测试并同步更新项目文档
2026-04-21 18:02:59 +08:00
sh2001sh 451cedf104 Merge origin/master into master 2026-04-21 16:19:42 +08:00
QLHazyCoder 3718575bff 修复2925号池不能自动登陆问题 2026-04-21 13:31:50 +08:00
sh2001sh b098726a6f feat: add phone verification flow support 2026-04-21 13:17:17 +08:00
QLHazyCoder 6783cf02b4 2925邮箱增加账号池功能 2026-04-20 18:56:08 +08:00
dada2321 5318a0975b Merge branch 'master' into codex/upstream-pr 2026-04-20 16:04:13 +08:00
QLHazyCoder ffecba6ab3 feat: 更新2925邮箱处理逻辑,增强验证码重发机制,调整测试用例 2026-04-20 13:15:39 +08:00
QLHazyCoder 7cb1bda672 feat: 更新 OAuth 流程,调整步骤 6 和步骤 7 的逻辑,添加相关测试 2026-04-19 18:59:32 +08:00
dada2321 01477d6bd0 fix: improve step 2 email switch handling 2026-04-19 12:05:24 +08:00
QLHazyCoder 8e3e085f3d 重构修改2925获取邮箱 2026-04-18 17:28:43 +08:00
祁连海 e22c36328b feat: 添加手机号认证失败处理逻辑,确保在遇到手机号页面时自动停止授权流程 2026-04-18 12:20:11 +08:00
lizhelang 81613b865a Make SUB2API proxy defaults available across panel flows
Expose a configurable default proxy for SUB2API, resolve the proxy once,
persist the proxy_id in state, and reuse it across auth URL generation,
code exchange, and account creation so one OAuth flow stays on one proxy.

Constraint: Upstream GitHub permission is READ, so publication must use a fork PR
Rejected: Push to origin | current GitHub viewer permission does not allow upstream branch publication
Rejected: Resolve proxy independently in later steps | could drift from the proxy chosen at auth URL generation
Confidence: high
Scope-risk: moderate
Reversibility: clean
Tested: npm test passed 183/183
Not-tested: Manual browser extension flow against a live SUB2API deployment
2026-04-18 06:47:24 +08:00
QLHazyCoder 79a54c78f0 feat: 更新步骤7和步骤8的错误处理逻辑,确保在登录超时报错时不再点击重试,直接回到步骤7重跑 2026-04-18 01:23:47 +08:00
祁连海 14a3e9d6b2 feat: 添加手机号页面错误处理逻辑,更新步骤7重试机制及文档说明 2026-04-17 23:46:56 +08:00
祁连海 61a3bb3461 feat: 移除CPA回调相关逻辑,固定为步骤9,更新文档以反映新流程 2026-04-17 23:38:47 +08:00