Spaces:
Paused
Paused
Commit History
-
fix: 对齐注册轮转链路和 CloudMail 配置提示
5aff1af
-
feat: AutoTeam 大版本升级:安全轮换、并行、IPv6、指纹加固与前端重构
- 安全轮换逻辑:先踢人再换人,降低轮转冲突和失败回弹 - 并行能力:同步、注册与目标分发链路并发化,整体吞吐更高 - IPv6 支持:接入 IPv6 代理池与状态面,扩展可用出口 - 更安全的指纹:统一浏览器上下文与启动/会话参数,减少特征暴露 - 轮转增强:速度与安全性双提升,轮转后凭证即时同步到配置目标 - 更好的前端:Dashboard / Settings / Sync / Task 视图全面重构,实时性、信息密度和可读性提升 - 同步与诊断:统一 sync_targets 分发层,增强主号、注册和轮转后的诊断与目标同步1f4cfcb -
feat: add ipv6 proxy pool and status surface
8543971
-
feat(round-12 F2+F3): rotate progress SSE + refresh polish + settings cleanup
后端: - /api/rotate/stream FastAPI StreamingResponse SSE 端点,订阅 S1 default_machine.subscribe 事件总线,把 transition 序列化为 data: {email, from, to, reason, ts, extra}\n\n - _build_sse_event_stream(machine, heartbeat_seconds=15) 抽出可单测的 sync generator;queue.SimpleQueue 中转 callback → generator,线程安全; try/finally 确保 generator 关闭时 unsubscribe (无订阅泄漏) - 心跳:queue.get(timeout=15) 触发 ': heartbeat\n\n' 注释行 - response headers: Cache-Control: no-cache + X-Accel-Buffering: no - 5 个单测覆盖:retry/connected 头、data event payload、heartbeat、 generator close → unsubscribe、extra 字段透传 前端: - web/src/composables/useRotateStream.js 新建,EventSource 包装, 暴露 events (max 50, 倒序) + isConnected + connect/disconnect + onTransition(cb);连续 5 次重连失败后 stop - useStatus.js 新增 useStatusQuery (vue-query 30s polling + refetchOnWindowFocus + keepPreviousData) + useStatusInvalidator (SSE event → invalidateQueries(['status']));原 21 套 utility 函数全保留,21 个组件 import 不破 - TaskPanel.vue 集成实时进度折叠面板:Activity/Check/AlertTriangle Luci…5db48a2 -
feat(round-12 F1): bright theme + lucide + vue-query
- tailwind.config.js 重写为 AutoTeam Bright v1: ink palette → 中性灰阶, 新增 canvas/surface/hairline 语义 token,boxShadow glow-* → 轻盈 elevation - style.css 翻转: body bg → #fafafa,.glass/.glass-soft → 白卡 1px hairline, .shimmer-bg/.row-hoverable/scrollbar/focus-ring 全部明亮化 - 加 §Compat 兼容层 (style.css @layer utilities) 一次性翻转旧深色 utility (text-white/text-gray-X/bg-white|black/[X]/bg-gray-700~900/border-white/[X]/ text-{tone}-200~300),避免逐文件改 21 套类名 - main.js 接入 @tanstack/vue-query: refetchOnWindowFocus + staleTime 30s - App.vue 主区域包 <Transition mode="out-in" name="page"> 120-180ms ease-out - emoji → lucide-vue-next: Sidebar (8 nav + RefreshCw + LogOut) / TaskPanel (9 actions: RotateCw/ChartPie/Plus/Coins/UserPlus/Brush/ RefreshCw/Download/Users) / UsabilityCell (CircleCheck/TriangleAlert/ Hourglass/CircleX) - AtButton primary/danger 渐变改用 .text-on-accent 绕过 §Compat 翻转, 保留白前景;secondary/ghost 改用 ink-* 灰阶 - TaskPanel actionColorClass 改 Bright v1 浅 tone (bg-{tone}-50) - HealthDonut 背景圈 stroke 改…2204456
-
feat(round-11): master grace healthy + 子号实时探活 + smoke model + ⚠️ 免费号注册路径被 OpenAI 阻断
后端核心: - master_health._classify_l1 加 id_token 参数,从 codex-main-*.json 读 admin id_token, eligible_for_auto_reactivation=true 时分 grace_until 两支:grace 期内 → (True, "subscription_grace"), 否则 → (False, "subscription_cancelled"). M-I3 守卫扩 healthy_reasons=("active","subscription_grace"), 撤回路径触发条件同步扩展. - cheap_codex_smoke 加 model + max_output_tokens 参数,读完整 SSE 流到 response.completed, 返回 dict 含 response_text + raw_event + tokens 替代旧 str. - api.py 新增 POST /api/accounts/{email}/probe(并行 quota+smoke 不动 status, RT-I1) + GET /api/accounts/{email}/models. - chatgpt_api._api_fetch header sanitize: ISO-8859-1 round-trip + None skip + bytes decode + warning 诊断 (实测过程中发现的 admin 重登路径 P0 阻塞修复). 前端: useStatus.masterHealthSeverity grace→warning;MasterHealthBanner/PoolHealthCard grace 黄色 + 倒计时;Dashboard 每行"立即探活"按钮 + toast 三态. 测试: Round 11 新增 26 cases(8 grace + 6 smoke + 8 probe + 4 header sanitize), pytest tests/unit -q → 256 passed,ruff check → All checks passed. Spec: master-subscription-health v…090976a
-
feat(round-9): GRACE 状态机 + retroactive helper 5 触发点 + 前端 UI/UX 美化整套
修复 Round 8 留下的 retroactive 触发点空洞 + grace period 配额损失问题: 研究证实母号 b328bd37 处于 cancel_at_period_end 状态(grace 期至 2026-05-25T12:06:23Z), 4 个 xsuuhfn wham=200 plan=team 仍可用,Round 8 spec "立刻标 standby" 会损失配额。 状态错误根因:_reconcile_master_degraded_subaccounts 只挂 cmd_reconcile,server 重启 / sync / 巡检都不触发 retroactive 重分类。 Approach B — STATUS_DEGRADED_GRACE 状态机 + 5 触发点 helper + 前端 UI/UX 重做: 后端(B1~B5) - accounts.py 新增 STATUS_DEGRADED_GRACE 状态 + grace_until 字段持久化 - master_health.py 新增 extract_grace_until_from_jwt() 解析 subscription_active_until - master_health.py 新增 _apply_master_degraded_classification helper(永不抛、永不被 KICK) - 5 retroactive 触发点接入(RT-1 lifespan / RT-2 _auto_check_loop / RT-3 reconcile_team / RT-4 sync_account_states / RT-5 cmd_rotate)+ 现有 cmd_reconcile RT-6 - api.py /api/admin/master-health 三层 try/except 兜底,任何场景永不 5xx(M-I1 守恒) - api.py:fill_*_task Team 分支补 master probe 503 fail-fast(对称 personal,Round 8 P1-1) 前端(F1~F6)— 9 新组件 + 11 重写 - F1 实际可用列(UsabilityCell.vue):基于 status + last_quota + …395e9dc -
feat(round-8): master 订阅探针 + OAuth Personal Workspace 显式选 + 5 次重试
修复两层耦合根因(母号 ChatGPT Team 订阅过期 + OAuth sticky default_workspace_id): 研究证实根因不是 OpenAI sticky-rejoin,而是 auth.openai.com 的 default_workspace_id 不随 ChatGPT DELETE user 联动,导致 personal OAuth 默认仍颁 plan_type=team token。 sleep(8) 等再久也无意义。28 条 register_failures plan_drift 来源于此。 Approach A 全栈三层 + 边缘清理: L1 — master subscription 探针(src/autoteam/master_health.py 新模块) - is_master_subscription_healthy() 三层探针:eligible_for_auto_reactivation(主) + plan_type 反推(corroborating) + /settings.plan(safety net) - 5min cache schema_version=1,落 accounts/.master_health_cache.json - 7 类返回(healthy / degraded / cancelled / network_error / ...) - /api/admin/diagnose 嵌入 master_subscription_state + 新增 /api/admin/master-health L2 — OAuth Personal Workspace 显式选号(src/autoteam/oauth_workspace.py 新模块) - decode/select/UI fallback/ensure 四件套:HTTP POST workspace/select 主路径 + Playwright UI fallback(401 自动降级),覆盖 oai-oauth-session 解码场景 - codex_auth.py login_codex_via_browser(use_personal=True) consent loop 后调 ensure_personal…e6cc775
-
fix(round-7): P2 收尾 + Round 6 deferred — 命名/抽组件/lifespan/24h去重/409/state-machine
P2 收尾 (来自 wave1-4 integration-verifier 5 项): - preferred_seat_type 命名归一化:chatgpt 别名 → default,setter/getter 双向兼容(runtime_config.py) - MailProviderCard.vue 抽出共享组件:Settings.vue / SetupPage.vue 各减约 200 行,统一邮箱归属验证 UI - test_plan_type_whitelist.py 拆分:从 test_spec2_lifecycle.py 移出 plan_type 白名单测试到独立文件 - FastAPI lifespan 迁移:on_event("startup"/"shutdown") → @asynccontextmanager(api.py),消除 DeprecationWarning - raw_rate_limit 注入 register_failures:codex_auth.py / manager.py 3 处 record_failure 调用点添加原始 wham/usage payload Round 6 deferred (来自 round6-review 推迟项): - manager 24h 去重 cheap_codex_smoke:last_codex_smoke_at / last_smoke_result 缓存,避免重复探测 - 前端 parseTaskError:web/src/api.js 导出辅助函数,解析 phone_required / register_blocked 409 响应 - shared/account-state-machine.md v1.0 → v1.1:补转移矩阵小注 文档同步: - spec/shared/account-state-machine.md v1.0 → v1.1 - spec/shared/quota-classification.md v1.3 → v1.4 - spec/spec-1-mail-provider.md v1.0 → v1.1 - spec/spec-2-account-lifecycle.md v1.3 → v1.4 - prompts/0426/prd/prd…a4ea50b -
feat(round-4 lifecycle): SPEC-2 账号生命周期/配额/席位/被踢识别全套落地
Wave 4 of 4 — 完成 issue #2 + #4 + #6 共因合并修复 (5 共因 A-E + 3 独属 F-H)。 ## 共因点修复 (Issue #2 + #4 + #6 三联) A. plan_type 白名单 (accounts.py) - SUPPORTED_PLAN_TYPES = {team, free, plus, pro} - normalize_plan_type / is_supported_plan - bundle 落盘前先验,plan_supported=False 直拒入池 B. wham/usage no_quota 分类 (codex_auth.py) - 5 分类: ok / exhausted / no_quota / auth_error / network_error - no_quota 优先级高于 exhausted - primary_total==0 / rate_limit 缺失 / remaining==0+total==0 三路触发 C. add-phone 探针接通 (codex_auth.py) - login_codex_via_browser 加 3 处 assert_not_blocked: about-you / consent loop / callback wait - invite.py 探针 4 处 (email/password/code/profile) 已存在 D. _run_post_register_oauth quota probe (manager.py) - team + personal 双分支对称设计 - bundle 拿到后立即 probe,no_quota 标 AUTH_INVALID - 5 分类对应 STATUS_ACTIVE/EXHAUSTED/AUTH_INVALID 转换 E. sync_account_states 区分被踢 vs 待机 (manager.py) - _probe_kicked_account: wham/usage 401/403 → AUTH_INVALID, 其他 → STANDBY - ThreadPoolExecutor 并发上限…478c16c -
feat(round-4 mail): SPEC-1 Mail Provider 全量化 + 邮箱归属验证 UI + 文档同步
Wave 3 — SPEC-1 实施(@prd-mail): 后端: - mail/probe.py(新):probe_fingerprint / probe_credentials / probe_domain_ownership 三段式 helper,共享给 /api/config/register-domain - mail/cf_temp_email.py: login() / create_temp_email() 嗅探收紧到正向白名单,响应缺关键字段立即抛错(防 200 假成功) - mail/maillab.py: _with_login_retry 装饰器 + threading.local 双 guard(in_login + retried),防 401 自愈递归 - setup_wizard.py: _sniff_provider_mismatch 改强阻断(协议错配立即 return False),AUTOTEAM_SKIP_PROVIDER_SNIFF=1 逃生口 - api.py: SetupConfig 扩 5 字段(MAIL_PROVIDER+MAILLAB_*4)+ post_setup_save 互斥写盘 + ProbeErrorCode 9 枚举 + MailProviderProbeRequest/Response + POST /api/mail-provider/probe(setup 阶段免鉴权 + 60req/min IP 限速 + 已配置后手工二次 Bearer 校验) 前端: - web/src/api.js: probeMailProvider 客户端方法 - SetupPage.vue: 4 步状态机 PROVIDER → CONNECTION → DOMAIN → SAVE,切换 provider 重置下游,前端零 token 缓存 - Settings.vue: 新增「邮箱后端」区块复用 SetupPage 状态机,保存后 toast 提示重启服务 测试(28 新): - tests/unit/test_mail_cf_temp_email_sniff.py(11): login + create_temp_email 嗅探规则 parametrized - tests/unit/test_mail_…f82773a
-
fix(invite-hardening): round-2 实际修复落地 — invite/reconcile/standby/UI
# 团队协作产出(5 fix task,4 个并行 fixer agent + 1 docs) ## fix(standby): check_codex_quota 加 network_error 分类(最优先,事故根因) - check_codex_quota 4 类返回(ok/exhausted/auth_error/network_error); auth_error 仅 401/403,5xx/429/Connection/Timeout/SSL/JSON 解析失败 → network_error - _probe_standby_quota 的 network_error 分支:不写 last_quota_check_at + 不改 status - 同步审计 cmd_check active 主循环 / personal 分支 / 假恢复验证 / 替换池复用 / 自动复用 5 处 status_str 分支适配新枚举 - 新增 3 个回归测试,覆盖 11 case(含 5xx/429/Connection/Timeout/SSL/JSON/ok) - 真机回滚:18 个被误标 AUTH_INVALID 的号已批量删除(本地+邮箱+CPA) ## fix(invite): 5xx 重试 / domain 关键词收窄 / invite_to_team 死代码下沉 - _classify_invite_error 新增 server_error 分类(500/502/503/504),与 network/ rate_limited 一并触发退避 retry - _DOMAIN_BLOCKED_KEYWORDS 收窄到 5 个明确短语,移除裸 domain/forbidden/blocked - errored_emails[].error/code/message 内层字段进入扫描;停止 fallthrough resp_body - POST 重试加 30% jitter,批量号不再同步反弹 - 把 invite_to_team 的 default→usage_based fallback + errored_emails + _seat_type 全下沉到 invite_member 内部(_invite_member_with_fal…9e11583
-
feat: AutoTeam-F — fork of cnitlrt/AutoTeam with fixes and free-account pipeline
New features: - Personal account batch production (fill-personal) with baseline protection — preserves existing Team seats, caps total Team members at 4 - Soft task cancellation via cancel_signal module (cooperative, safe boundaries) - Register failure classification + persistence (register_failures.json) - Admin diagnose + fix-account-id endpoints for session/workspace debugging - Batch account deletion in Web UI (shared chatgpt_api + mail_client) - Runtime domain config switching (runtime_config.py) Fixes: - Correct account_id resolution on session_token import /backend-api/accounts is now the authoritative source; /settings double-checks - Skip step-0 ChatGPT pre-login in personal OAuth mode (fixes "Operation timed out") - Password generator produces 15-17 chars (OpenAI requires 12+) - cancel_signal reset ordering in _run_task prevents swallowed cancellations - Batch operations use dynamic timeout via run_with_timeout(timeout, func) - fill-personal fail-fast on 3 consecutive 40…3df0958
-
fix: stabilize main account status and reuse flow
- normalize main account dashboard status from saved auth/quota and hide pool-only actions\n- exclude main account from auto-check exhaustion while keeping main auth export available\n- stop standby reinvite on Google redirects and respect weekly reset before reuse97b647d
-
feat: add admin session token import
b6bcc3c -
feat: 账号列表新增「导出」按钮,生成 Codex CLI 格式 auth.json
- 新增 GET /api/accounts/{email}/codex-auth 端点 - 前端弹窗展示 JSON 内容 + 复制按钮 + 下载按钮 - 提示保存路径:~/.codex/auth.json 或 %APPDATA%\codex\auth.json Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>ad9c2d9 -
refactor: 拆分操作页面并修复轮转补位逻辑
Co-authored-by: Claude <noreply@anthropic.com>a6cca4c -
fix: 修复 CPA 反向同步与成员页操作
Co-authored-by: Claude <noreply@anthropic.com>876283e -
feat: 支持从 CPA 反向同步认证文件到本地
Co-authored-by: Claude <noreply@anthropic.com>2ddc3ee -
feat: 支持 OAuth 自动回调与手动回调导入账号
a08d7b4
-
fix: 刷新/登出移到侧边栏底部 + 仪表盘加「同步账号」按钮
- 刷新和登出从每页顶部移到侧边栏底部,不再重复显示 - 仪表盘账号列表表头加「同步账号」按钮 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>d971f9f -
feat: 新增「同步账号」按钮,从 auths 目录和 Team 成员同步到 accounts.json
- 新增 POST /api/sync/accounts 端点 - 操作面板新增「同步账号」按钮 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>8e8726e -
fix: 未登录提示改为明确指向「设置」页
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>0c70a3a -
feat: Docker 部署 + 免责声明 + LICENSE + Web 初始配置页
- MIT LICENSE - Dockerfile + docker-compose.yml + entrypoint - README 添加免责声明、Docker 部署说明、已知限制 - 缺配置时不退出,启动最小 API 让用户在浏览器填写 - 新增 GET /api/setup/status、POST /api/setup/save 端点 - 前端 SetupPage 组件:初始配置表单 + 连通性验证 - setup_wizard 自动检测终端交互能力,Docker 里不 input() Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>462f5f6 -
feat: 适配手机端,侧边栏改为底部 tab 栏
- 桌面端保持侧边栏不变 - 手机端(<768px)侧边栏隐藏,底部显示 5 个 tab 图标 - 主内容区底部留出 tab 栏空间 - 日志查看器高度自适应屏幕 - tab 栏标签简化(如"Team 成员"→"成员") Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>f9ce30c
-
fix: Team 成员页加 localStorage 缓存,10 分钟有效,手动刷新才在线获取
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1992c93 -
feat: 前端分页布局 + Team 成员页 + 日志查看器
- 侧边栏导航:仪表盘、Team 成员、操作&任务、日志、设置 - 新增 Team 成员页:显示全部 Team 成员(含外部成员),区分角色和来源 - 新增日志查看器:3 秒轮询实时日志,自动滚动,支持清空 - 新增 GET /api/team/members 端点(含 pending invites) - 新增 GET /api/logs 端点(内存 buffer 500 条) - 操作和任务历史合并到「操作 & 任务」页 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>a0dfc48 -
feat: 账号列表新增「移出」按钮,将 active 账号移出 Team
- 新增 POST /api/accounts/{email}/kick 端点 - 前端 active 账号显示「移出」按钮,移出后变为 standby - 移出前需确认 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>7c59963 -
feat: 账号列表新增「登录」按钮,可单独触发 Codex 登录
- 新增 POST /api/accounts/login 端点,后台执行单账号 Codex 登录 - 前端账号表格操作列新增「登录」按钮 - 登录任务显示在任务历史中 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>4af1754 -
feat: 支持管理员交互式登录与主号 Codex 同步
BestLemoon40b21ae
-
feat: 前端可配置巡检参数(间隔/阈值/触发数),运行时生效
- 新增 GET/PUT /api/config/auto-check 端点 - 前端 Settings 组件:巡检间隔、额度阈值、触发账号数 - 修改后立即生效,无需重启 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>95df048 -
feat: 添加 Vue 3 Web 管理面板,内嵌到 FastAPI
- Dashboard: 账号统计卡片 + 状态表格(实时额度、颜色标签) - 操作面板: 轮转/检查/补满/添加/清理/同步,后台任务提交 - 任务历史: 任务列表、状态跟踪、耗时统计 - 技术栈: Vue 3 + Vite + Tailwind CSS - 构建产物内嵌 FastAPI,autoteam api 一个命令同时启动前后端 - 深色主题,响应式布局 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>4283ada