Commit Graph

66 Commits

Author SHA1 Message Date
Q3CC b5f2ecb99c fix: skip SUB2API proxy when default proxy is empty 2026-04-18 18:41:59 +08:00
QLHazyCoder 5e1d89b3c5 feat: 添加版本比较和排序功能,优化获取更新快照的逻辑 2026-04-18 17:40:05 +08:00
QLHazyCoder 8e3e085f3d 重构修改2925获取邮箱 2026-04-18 17:28:43 +08:00
QLHazyCoder 9cd932d7d6 Merge branch 'dev' into master 2026-04-18 12:25:05 +08:00
祁连海 e22c36328b feat: 添加手机号认证失败处理逻辑,确保在遇到手机号页面时自动停止授权流程 2026-04-18 12:20:11 +08:00
QLHazyCoder 7290649930 feat: 添加邮件刷新和收件箱链接查找功能,并增加相关测试用例 2026-04-18 12:17:23 +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
QLHazyCoder 466011d4e5 feat: 更新验证页面逻辑,确保密码重试页面不被视为验证页面,并添加相关测试 2026-04-18 00:29:20 +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
祁连海 73f9deb53e feat: 修复停止逻辑 2026-04-17 23:29:10 +08:00
祁连海 a41fde45c8 feat: 更新邮箱记录模块,支持“停止”状态并优化统计摘要,调整测试用例以反映新逻辑 2026-04-17 22:53:54 +08:00
祁连海 f5b622d272 feat: 增强注册和登录验证码流程,添加步骤标识和日志标签,优化 OAuth 刷新逻辑 2026-04-17 22:30:12 +08:00
QLHazyCoder e643573946 feat: 实现步骤跳过逻辑,支持手动跳过步骤 1 时级联跳过步骤 2~5 2026-04-17 19:24:26 +08:00
QLHazyCoder 4add7477d1 feat: 增加 OAuth 流程6分钟超时处理,优化验证码请求时间窗口逻辑 2026-04-17 19:12:06 +08:00
QLHazyCoder ccea024f9a 重构更新账号日志功能,添加开发者模式 2026-04-17 18:29:53 +08:00
QLHazyCoder 3b28845d86 feat: 统一验证码重发次数配置,优化相关逻辑和界面 2026-04-17 17:31:11 +08:00
QLHazyCoder f2a1a4d7bf feat: 增加邮箱重试逻辑,优化步骤4失败后的处理方式 2026-04-17 16:24:25 +08:00
QLHazyCoder 78d6e94213 feat: 增加重试页面恢复逻辑,优化点击后等待时间 2026-04-17 16:09:56 +08:00
QLHazyCoder cbe9b1fabf 抽取cookie清理逻辑为新的第六步 2026-04-17 15:56:19 +08:00
QLHazyCoder b387ebfa91 feat:重试页面检测和重试点击的逻辑抽取为公共逻辑 2026-04-17 15:16:52 +08:00
QLHazyCoder 511cfcfcc7 feat: 重构优化2925邮箱和gmail邮箱逻辑 2026-04-17 11:33:02 +08:00
QLHazyCoder 6bd00e9129 feat: 增强注册入口诊断功能,添加对可见操作的识别和筛选 2026-04-17 10:36:58 +08:00
QLHazyCoder 32e3973340 feat: 增加手动停止错误处理,优化自动重启逻辑 2026-04-17 10:14:54 +08:00
QLHazyCoder 1a7ae1dc27 Refactor code structure for improved readability and maintainability 2026-04-17 10:07:53 +08:00
QLHazyCoder be3172df63 Implement structure for code changes tracking 2026-04-17 09:43:39 +08:00
QLHazyCoder c745405f90 feat: Enhance Step 9 diagnostics and error handling
- Refactor getStatusBadgeEntries to use createStep9Entry for better encapsulation.
- Introduce error visual signals detection in createStep9Entry.
- Add functions to identify OAuth callback timeout failures and step 9 failure texts.
- Update buildStep9StatusDiagnostics to include error visual summaries and handle conflicts between success and failure states.
- Implement new tests for step 9 diagnostics, ensuring correct behavior with success badges and error banners.
- Remove outdated tests related to step 5 onboarding and redirect race conditions.
- Add new tests for auto-run behavior in step 6 restart scenarios.
2026-04-17 04:33:14 +08:00
QLHazyCoder 1a5f569d16 feat: 添加邮箱验证页面处理逻辑,优化步骤 2 跳过密码步骤的逻辑,更新相关测试用例 2026-04-17 03:54:30 +08:00
QLHazyCoder ce0fe101a3 feat: 优化步骤 5 提交逻辑,点击后立即上报完成状态,避免等待页面结果 2026-04-17 03:39:22 +08:00
QLHazyCoder 17bbfc6394 feat: 添加账号运行历史功能,支持独立配置与文本留档 2026-04-17 03:20:57 +08:00
QLHazyCoder 4a04a09eba feat: 添加账号运行历史功能,包括状态分类和摘要展示 2026-04-17 03:00:22 +08:00
QLHazyCoder 6652899758 feat: add account run history module and logging functionality
- Implemented `background/account-run-history.js` to persist account run results (success, failure, stop) in `chrome.storage.local` and log to a text file when the local Hotmail helper is enabled.
- Enhanced `background/auto-run-controller.js` and `background/message-router.js` to utilize the new account run record functionality.
- Updated steps in `background/steps/fetch-login-code.js`, `background/steps/fetch-signup-code.js`, and `background/steps/oauth-login.js` to handle retries and logging appropriately.
- Introduced tests for account run history and step retry limits to ensure functionality and reliability.
- Modified documentation to reflect new features and changes in behavior for specific providers (e.g., 2925).
2026-04-17 02:52:26 +08:00
QLHazyCoder 3071f94f7c feat: add step definitions module and integrate with sidepanel
- Introduced a new module for step definitions in `data/step-definitions.js` to manage shared step metadata.
- Updated `sidepanel.html` to dynamically render steps based on the new step definitions module.
- Refactored `sidepanel.js` to utilize the step definitions for rendering and managing step statuses.
- Enhanced tests to validate the step definitions module and its integration with the sidepanel.
- Cleaned up existing tests to ensure they align with the new structure and functionality.
2026-04-17 01:39:46 +08:00
QLHazyCoder a0d6d1f050 feat: add verification flow helpers and integrate into background script
- Introduced a new module `verification-flow.js` containing verification flow helpers.
- Updated `background.js` to import and utilize the new verification flow helpers.
- Refactored existing verification-related functions to leverage the new helpers for improved code organization and maintainability.
- Added tests for the verification flow module to ensure proper integration and functionality.
2026-04-17 00:16:40 +08:00
QLHazyCoder 33c5f759d9 feat: refactor user registration steps into modular functions and implement step registry
- Replaced individual step imports with a centralized step registry in background.js
- Created separate modules for each registration step: open-chatgpt, submit-signup-email, fill-password, fetch-signup-code, fill-profile, oauth-login, fetch-login-code, confirm-oauth, platform-verify
- Updated tests to reflect changes in step imports and added new tests for step registry functionality
2026-04-16 23:56:57 +08:00
QLHazyCoder 4f12d67d9f feat: implement multi-step background process for user registration
- Add step 1: Open ChatGPT homepage and prepare for signup.
- Add step 2: Handle email submission and ensure the signup entry page is ready.
- Add step 3: Fill in the password using either a custom or generated password.
- Add step 4: Confirm the registration verification page and handle email verification.
- Add step 5: Generate random user details and handle onboarding redirection.
- Add step 6: Manage OAuth login process and handle login verification.
- Add step 7: Retrieve verification code from email and manage retries.
- Add step 8: Handle consent page interactions and manage callback URLs.
- Add step 9: Submit callback information to CPA or SUB2API based on user settings.
- Implement tests to ensure all steps are correctly imported and functional.
2026-04-16 23:38:43 +08:00
QLHazyCoder f0c3dcda62 没有直接撬 Step 1~9 的核心状态机,而是先把最适合独立的管理器和桥接层拆出来 2026-04-16 23:18:27 +08:00
QLHazyCoder 7828c196af fix: 规范化 OAuth 授权页面状态处理,更新相关测试用例 2026-04-16 22:18:56 +08:00
QLHazyCoder 8f5d2bc363 Merge branch 'dev' of https://github.com/QLHazyCoder/codex-oauth-automation-extension into dev 2026-04-16 21:11:43 +08:00
Q3CC af9860d17b fix: harden ChatGPT post-signup recovery 2026-04-16 20:56:06 +08:00
QLHazyCoder 439268b4b7 feat: 新增 isSignupEntryHost 函数以支持 chatgpt.com 和 chat.openai.com 的注册页面识别,更新相关测试用例 2026-04-16 20:21:03 +08:00
QLHazyCoder 544ecb33c2 feat: 新增邮件接收功能,支持配置 Cloudflare Temp Email 收件邮箱 2026-04-15 20:29:35 +08:00
honue 1947f8b561 feat: 新增 iCloud 邮箱 provider 2026-04-15 16:44:16 +08:00
QLHazyCoder fd531165a1 fix: align Hotmail API integration with current dev
- merge the latest dev changes into PR #69 before continuing the review flow
- keep Microsoft API mode while preserving mailbox-by-mailbox polling and verification filters
- update the Hotmail side panel copy and helper coverage for the repaired API path
2026-04-15 01:36:40 +08:00
笨笨 1731d770af merge: 合并最新 dev(2925 模式选择)并修复测试 mock
- 解决 background.js 3 处冲突:保留 LuckMail 逻辑 + 采用 dev 的 isGeneratedAliasProvider(state) 新 API
- 解决 sidepanel.js 3 处冲突:保留 LuckMail UI + 采用 dev 的 mail2925Mode 参数
- step9 测试补充 normalizeMail2925Mode/getMail2925Mode 提取和 MAIL_2925_MODE 常量
- 全部 76 个测试通过
2026-04-15 00:09:11 +08:00
笨笨 8571f59e99 merge: 合并最新 dev 分支(cloudflare-temp-email + iCloud)
- 解决 background.js / sidepanel.html / sidepanel.js / 测试文件共 24 处冲突
- LuckMail、Cloudflare Temp Email、iCloud 三种邮箱提供商正确共存
- step9 清理范围测试对齐 dev 分支行为(closeTabsByUrlPrefix 排除 OAuth callback URL)
- LuckMail 测试补充 dev 分支新增依赖的 mock
- 全部 76 个测试通过
2026-04-14 23:54:35 +08:00
Q3CC 14e3d6271d feat: integrate iCloud hide my email generation into OAuth flow
- 合并 PR #72 的核心改动:新增 iCloud Hide My Email 生成、alias 管理与成功后自动标记/删除流程
- 本地补充修复:解决与 Cloudflare Temp Email 分支差异的冲突,并补齐合并后的测试常量
- 影响范围:background 邮箱生成与 Step 9 收尾、sidepanel alias 管理 UI、manifest/rules 与新增 iCloud 测试
2026-04-14 23:17:21 +08:00
Q3CC a070615af4 test: update luckmail regression coverage 2026-04-14 22:21:08 +08:00
Q3CC 84412c7ea4 Add LuckMail openai mailbox management 2026-04-14 22:07:16 +08:00