Commit Graph

30 Commits

Author SHA1 Message Date
QLHazyCoder efad1f94d7 新增手机号绑定邮箱后邮箱模式重登流程 2026-05-16 03:23:28 +08:00
QLHazyCoder 3f3f9275cc 拆分 OAuth 后置验证流程 2026-05-15 23:03:02 +08:00
QLHazyCoder 81fc40706a Refactor workflow auto-run to node graph 2026-05-15 17:41:35 +08:00
InkCrow 67c111ed43 fix(auth): preserve phone identity across add-email retries 2026-05-12 20:39:20 +08:00
InkCrow 1ed128e118 fix(auth): preserve phone login identity across step8 retries 2026-05-12 16:41:09 +08:00
QLHazyCoder 6b87d68630 Merge origin/dev into PR 225 review fix 2026-05-10 06:02:53 +08:00
QLHazyCoder 15af098327 修复手机号登录回退与重发 500 处理 2026-05-10 05:02:10 +08:00
root 6f67a00980 fix: improve iCloud polling and add-phone handoff 2026-05-08 23:19:18 -04:00
QLHazyCoder 83c5a6237c fix: enhance step 7 login identifier resolution and add tests for phone/email handling 2026-05-08 10:31:20 +08:00
QLHazyCoder 16baad20a3 feat: 更新手机号输入框逻辑,确保手动输入值在执行步骤前被保存,避免被旧状态覆盖 2026-05-05 01:48:18 +08:00
QLHazyCoder c04b64c966 手机号注册模式 2026-05-04 12:56:35 +08:00
QLHazyCoder 4603f512fb chore: preserve step-aware logging after upstream sync
- 吸收 master 的核心改动:按可见步骤归类日志显示,覆盖 OAuth、手机号验证、平台验证和内容脚本日志链路。

- 本地补充修复:保留平台验证成功后的手机号接码确认收尾,避免 #193/#194 恢复的手机号复用链路被合并覆盖。

- 影响范围:background routing、phone verification、platform verify、content scripts、sidepanel 与相关测试/文档。
2026-05-04 04:41:49 +08:00
朴圣佑 8efdc811db fix(auth): OAuth 登录使用全新标签页
(cherry picked from commit b3790c1c4de466e619ea6acfd571531a4ba2ef3c)
2026-05-04 03:30:42 +08:00
QLHazyCoder 691ac39514 优化步骤在日志中的显示 2026-05-03 19:25:55 +08:00
cnxwzy 59ee5586fe fix: preserve oauth login completion step metadata 2026-04-28 07:49:54 +08:00
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 88ceb79af6 修改登陆及后续逻辑,统一使用一个逻辑 2026-04-26 05:22:36 +08:00
QLHazyCoder 6ad866b962 Plua模式开发 2026-04-26 01:41:40 +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
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
dada2321 5318a0975b Merge branch 'master' into codex/upstream-pr 2026-04-20 16:04:13 +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
祁连海 e22c36328b feat: 添加手机号认证失败处理逻辑,确保在遇到手机号页面时自动停止授权流程 2026-04-18 12:20:11 +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
QLHazyCoder 4add7477d1 feat: 增加 OAuth 流程6分钟超时处理,优化验证码请求时间窗口逻辑 2026-04-17 19:12:06 +08:00
QLHazyCoder cbe9b1fabf 抽取cookie清理逻辑为新的第六步 2026-04-17 15:56:19 +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 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