Commit Graph

40 Commits

Author SHA1 Message Date
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
Hero 34ee5a3263 feat: 接入hotmail api对接与跨域规则 2026-04-14 19:52:10 +08:00
Twelveeee 136b65728a test: include rebased helpers in extracted bundles 2026-04-14 19:14:59 +08:00
Twelveeee 0614917ad4 feat:新增CloudflareTempEmail 2026-04-14 19:14:21 +08:00
QLHazyCoder 56527273d2 Merge branch 'hotmail邮箱支持' into master 2026-04-14 00:40:44 +08:00
QLHazyCoder a6e2972499 feat: 添加自动运行新尝试的状态重置逻辑,确保清除过期的运行状态 2026-04-14 00:23:32 +08:00
QLHazyCoder 9ba958b1a2 添加交流群,修改界面样式,增加步间间隔功能 2026-04-13 20:25:53 +08:00
leon e6211921e6 feat(sidepanel): support configurable auto step delay
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-04-13 15:17:51 +08:00
QLHazyCoder 36aeecf214 第三方支持 2026-04-13 13:21:35 +08:00
QLHazyCoder 347c5fe2e7 test: add verification stop propagation tests for error handling 2026-04-13 10:55:20 +08:00
QLHazyCoder 6a90b52f6d fix: restore step9 localhost cleanup and hotmail validation handling
- 合并 PR #31 的核心改动:恢复 Step 9 标签页清理函数、补齐 Step 8/9 测试 mock,并优化 Hotmail AADSTS90023 报错提示\n- 本地补充修复:按真实 localhost callback 首段路径生成清理前缀,兼容 /auth/callback 与 /codex/callback\n- 影响范围:background Step 9 cleanup、Hotmail 账号校验、Step 8/9 回归测试
2026-04-13 10:39:15 +08:00
copilot-swe-agent[bot] 0a3a75a809 fix: restore buildLocalhostCleanupPrefix/closeTabsByUrlPrefix, fix test mocks, improve Hotmail AADSTS90023 error
Agent-Logs-Url: https://github.com/QLHazyCoder/codex-oauth-automation-extension/sessions/2111e544-f823-4faa-b8b6-57f506fe45ac

Co-authored-by: QLHazyCoder <109800873+QLHazyCoder@users.noreply.github.com>
2026-04-12 19:35:52 +00:00
QLHazyCoder c9736f6c5d feat: 添加本地 CPA 第 9 步策略切换功能 2026-04-12 23:31:07 +08:00
QLHazyCoder 25cf718c3e merge: integrate hotmail邮箱支持 into dev 2026-04-12 20:10:17 +08:00
QLHazyCoder 3e2457f7c7 fix(oauth): 整合 Step 8/9 回调修复并补充回归测试
- 支持 localhost 和 127.0.0.1 的本地回调识别,同时兼容 /auth/callback 与 /codex/callback
- 修复 Step 8 停止时的监听清理问题,并补充 onCommitted 和 onUpdated 的回调捕获路径
- 修复 Step 9 在本地 CPA 场景下的自动跳过与精确清理逻辑,避免误关正常本地页面
- 补充 Step 8 与 Step 9 的回归测试
2026-04-12 01:54:11 +08:00
QLHazyCoder 1198f704d7 Merge PR #10: add Hotmail Graph account pool flow 2026-04-11 13:50:30 +08:00
baiyuechu 8a9d69d325 feat: add hotmail mail api account pool flow 2026-04-11 10:37:43 +08:00