Spaces:
Paused
Paused
Commit History
-
refactor(mail): 拆分 cloudmail.py 为 mail provider 抽象层 + 双后端实现
历史上 `cloudmail.py` 把 dreamhunter2333/cloudflare_temp_email 后端硬编码进了 `CloudMailClient`,导致命名误导(社区把 cloudmail 等同于 maillab/cloud-mail), 也无法切换后端。本次拆分: - 新增 `autoteam.mail` 包:`base.py` 抽象基类 + 共享文本工具(MIME 解析、OTP/ 邀请链接抽取、wait_for_email 轮询);`cf_temp_email.py` 搬运现有逻辑(行为 保持原样,不重写);`maillab.py` 基于 maillab/cloud-mail 仓库现场验证后新写。 - `cloudmail.py` 缩为 1 行 re-export,所有 47 处历史调用零改动。 - `__init__.py` 提供 `get_mail_client()` 工厂 + `CloudMailClient` 别名,按 `MAIL_PROVIDER` 环境变量(cf_temp_email 默认 / maillab) dispatch。 - `.env.example` / `docs/configuration.md` / `setup_wizard.py` 加 `MAIL_PROVIDER` 选项,setup 验证按 provider 走分支;不再强制 `CLOUDMAIL_EMAIL`(已废弃)。 - 重写 `test_cloudmail.py`(原版 patch 的是历史 cloud-mail API 的方法,在切到 /admin/* 路由时已失效),新增 `test_maillab.py` 覆盖字段映射 / createTime 解析 / auth header 形态。 maillab 实现已通过现场源码验证 5 项关键事实:Authorization 用裸 JWT(无 Bearer)、 HTML 在 content 字段、createTime 为 ISO string 需转 epoch、创建账户用完整 email、 delete 用 accountId query 参数。Turnstile / addVerify 等可选路径在代码里留了 TODO(maillab-verify) 标记,需 e2e…860a4f0
-
style: apply ruff format
Pre-commit CI ran ruff format --check on the initial AutoTeam-F commit and flagged 9 files. No logic changes — only whitespace normalization (line continuations, merged strings). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1f6d7ba -
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: improve CloudMail OTP parsing
fc02c40
-
fix: support cloudmail latest email fallback
28dc42c
-
fix: prefer mailbox-scoped otp lookup
31468cd
-
fix: 获取验证码前先清空旧邮件,确保拿到最新验证码
- CloudMail 新增 delete_emails_for 方法,删除指定收件人的所有邮件 - Codex OAuth 三处验证码获取前都先清空旧邮件 - 解决 OpenAI 重发相同验证码导致无限循环的问题 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>deddc75
-
chore: 加入 pre-commit + ruff lint/format
- 新增 .pre-commit-config.yaml(ruff check + ruff format) - 新增 ruff.toml 配置(E/W/F/I/UP/B 规则) - 修复全部 lint 问题,格式化全部 Python 文件 - dev 依赖新增 ruff、pre-commit Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>dafca1d
-
refactor: 全局 print 替换为 logging + rich 美化输出
- 所有模块 print() 替换为 logging.info/warning/error - 引入 rich 依赖,日志使用 RichHandler 带颜色和时间戳 - 状态表格使用 rich.Table 渲染,带边框、颜色、状态图标 - 百分比按阈值着色(>30% 绿、>0% 黄、0% 红) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>ac7dc69
-
feat: ChatGPT Team 账号自动轮转管理工具
- 自动注册 ChatGPT 账号(临时邮箱 + 验证码 + 个人信息) - Codex OAuth 登录,保存 CPA 兼容认证文件 - 智能轮转:检查额度 → 移出用完的 → 复用旧号 → 万不得已才创建新号 - CPA 同步:只上传 active 账号认证文件 - Team 管理:自动补满/清理成员,同步实际状态 - 使用 uv 管理依赖,标准 src layout 包结构 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>a887578