Spaces:
Paused
Paused
Commit History
-
Harden AutoTeam runtime and free registration
90694b4
-
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 infra): docker-guard + playwright-hardening + 调研/PRD/SPEC 文档基线
实施依据(prompts/0426/): - 6 份 research 报告(2170 行)— issue#1 cloudmail / #2 seat / #3 import / #4 oauth+phone / #5 playwright / #6 invite/kick - 4 份 PRD(1856 行)+ synthesis 综合分析 - 8 份 SPEC(4742 行,含 4 份 shared 共享契约) Wave 1 — SPEC-3 Docker 守卫(@prd-docker): - Dockerfile: ARG GIT_SHA + LABEL + ENV(WORKDIR 后定位,不击穿 uv sync 缓存) - docker-compose.yml: build.args ${GIT_SHA:-unknown} 降级 - docker-entrypoint.sh: uv run python heredoc 启动期 import 自检 11 符号 + crash-loop - pyproject.toml: [tool.ruff.lint] F401/F811/F821 + per-file-ignores - .pre-commit-config.yaml: 收紧 ruff args 到 SPEC 三规则 - src/autoteam/api.py: VersionResponse + GET /api/version + _AUTH_SKIP_PATHS 加白 - docs/{api,docker}.md: SOP 4 步 rebuild + 验证 + 故障排查 - tests/integration/test_docker_guard.py: 10 个测试覆盖 AC1/3/4/5/7/9 + 4 静态契约 Wave 2 — SPEC-4 Playwright 一致性硬化(@prd-playwright): - src/autoteam/_playwright_guard.py(新):9 符号 import 白名单 + assert_sync_context() - src/autoteam/api.py: _PlaywrightExecutor 双入口 guard(run_with_timeout + _worker) - src/aut…d9d9e44