Commit Graph

19 Commits

Author SHA1 Message Date
QLHazyCoder 81fc40706a Refactor workflow auto-run to node graph 2026-05-15 17:41:35 +08:00
QLHazyCoder a41997325d Use direct SUB2API admin API flow 2026-05-14 08:03:55 +08:00
QLHazyCoder 6f9a9913b5 fix: update API URLs and improve error handling for SUB2API configuration 2026-05-08 09:11:19 +08:00
initiatione 5014cb4de3 Add configurable SUB2API account priority 2026-05-06 18:19:43 +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
朴圣佑 29093e08db fix(flow): harden proxy phone and checkout recovery paths 2026-05-04 03:30:43 +08:00
朴圣佑 63c53accfe feat(sub2api): 支持多分组创建账号
(cherry picked from commit cc7671e6d2863b68527134008301e14fb86a8666)
2026-05-04 03:30:42 +08:00
QLHazyCoder 691ac39514 优化步骤在日志中的显示 2026-05-03 19:25:55 +08:00
daniellee2015 2437e6e67d feat(flow): unify sms multi-provider fallback and stabilize proxy/auth retries 2026-05-03 01:20:10 +08:00
cnxwzy 936aec398e fix: restore dev flow compatibility in CPA auth hardening 2026-04-27 22:54:15 +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
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 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
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 cbe9b1fabf 抽取cookie清理逻辑为新的第六步 2026-04-17 15:56:19 +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