329 Commits

Author SHA1 Message Date
祁连海 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
祁连海 a4c7849a0f Merge branch 'dev' of https://github.com/QLHazyCoder/codex-oauth-automation-extension into dev 2026-04-17 23:29:18 +08:00
祁连海 73f9deb53e feat: 修复停止逻辑 2026-04-17 23:29:10 +08:00
祁连海 adf0cccd77 feat: 更新注册流程,替换确保注册入口页面就绪的逻辑为打开注册标签页,并调整文档描述以反映新逻辑 2026-04-17 23:03:21 +08:00
祁连海 00b66d2157 feat: 更新账户运行记录逻辑,支持流程停止状态,优化样式以反映新状态 2026-04-17 22:34:30 +08:00
祁连海 f5b622d272 feat: 增强注册和登录验证码流程,添加步骤标识和日志标签,优化 OAuth 刷新逻辑 2026-04-17 22:30:12 +08:00
tomaioo 32880a1717 fix(security): plaintext passwords are persisted in extension sta
Step 3 appends `{ email, password, createdAt }` directly into `state.accounts` and writes it via `setState`. This stores raw credentials in extension-managed state, increasing impact if extension storage is exposed (local compromise, backup/sync leakage, debug export, or other extension bugs).

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
2026-04-17 05:16:45 -07: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 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 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 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