Files
universal-registrar/CHANGELOG.md
T
reform 8044e88be4
CI / offline-tests (push) Has been cancelled
CI / web-unit-tests (push) Has been cancelled
CI / package-console10 (push) Has been cancelled
recovered from aaronjaworski710
2026-10-23 20:02:14 +03:00

339 lines
16 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Changelog
All notable changes to this project are documented in this file.
Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
project versioning follows [Semantic Versioning](https://semver.org/).
## [Unreleased]
### Added
- **typesafe.ai / jev console provider** (in-process): Stytch magic-link →
`/api/auth/callback` → `/api/api-keys`. Hub `./register.sh typesafe [count]`,
aliases `jev` / `typesafe-ai`. Default mailbox is tinyhost (full body).
Success = this-run `secret_kind=api_key`. Does **not** copy the original
512/256 farm defaults. No CPA inject. pxed smoke 2026-09-22: `./register.sh
typesafe 1` → `CONTRACT_EXIT:0` this-run `api_key` (rsync to `/data/grok-register`;
not GitHub CI — §7 only deploys SPA).
- **typesafe probe-before-allocate**: GET+parse `console.typesafe.ai/login`
before tinyhost allocate (Clash preflight is skipped for `egress=clash`).
Hub `./register.sh smoke typesafe` is probe-only; `TYPESAFE_SMOKE_LIVE=1`
for n=1. Control-plane `StartRunRequest.product` accepts `typesafe`.
### Changed
- typesafe no longer appends full `api_key` to `accounts.jsonl`. Deliverable is
this-run `0600` `typesafe-*.json` under a `0700` output dir. Session parse
failures attach a short `$ACTION` HTML snippet.
- typesafe console probe now classifies 5xx as `network` / 4xx as `session`
(same as login GET) and forwards the parsed `$ACTION` into `register_one`,
so allocate is not followed by a second login GET unless magic-link POST
needs a refresh. Mailbox timeout stays `mail_miss`. Verifier `live=True`
is still shape-only (no spend). Magic-link extract parses query order.
- typesafe batch (`./register.sh typesafe N` with N>1): continue on
`mail_miss`/`network` (hard kinds still stop), in-process workers default 8
capped at 32, unique `typesafe-*.json` names. Pipeline fan-out is only for
typesafe/chatgpt — grok `--threads` still belongs to the child runner.
pxed this-run 2026-09-22: `./register.sh typesafe 100` → `CONTRACT_EXIT:0`
ok=97 fail=3 (`mail_miss`×3) `stopped_reason=""`; 97 new `0600`
`typesafe-*.json`; no `accounts.jsonl` append; no CPA inject.
- typesafe mail poll with `sender_hint=typesafe` returns the Stytch URL
before any OTP-shaped token in the same body. Mail-miss diagnostics come
from this attempt's `MailMissError`, not the shared EmailSource slot
(n=100 workers were overwriting each other's wait stats). Deployment drift
is logged once per process.
- pxed this-run 2026-09-22 (after the mail-parse fix): `./register.sh typesafe
100` → `CONTRACT_EXIT:0` ok=98 fail=2 (`session` / send_magic_link HTTP 500).
Then `./register.sh typesafe 1000` (8 workers, `--no-fail-fast`,
`rotate=off`) → `CONTRACT_EXIT:0` ok=976 fail=24
(`mail_miss`×17, `session`×5, `oauth_callback`×2); 976 new `0600`
`typesafe-*.json`; no `accounts.jsonl` append; no CPA inject.
- README acknowledges the [LINUX DO](https://linux.do/) community.
## [1.6.4] - 2026-07-16
### Added
- **Register ↔ nodes adaptation**: preflight probe gate before batch registration
- `NodeManager.preflight` / `mark_result` / quarantine after `REGISTER_NODES_MAX_FAIL`
- `preflight_nodes_for_register` seeds healthy-only `proxy_list` for list/auto
- `report_attempt_proxy_result` feeds register outcomes back into catalog + live rotator
- Pipeline runs preflight once, then marks/drops dead proxies per attempt
- Heuristic `is_proxy_network_failure` — never quarantines mail_miss / captcha / registration_disallowed
- Fail-fast when `egress=list` has zero healthy nodes after probe
- Tests: preflight, quarantine, pipeline skip-dead, pool drop
### Changed
- `enabled_nodes(healthy_only=True)` now means `last_ok is True` only (register path)
- Hard-failed nodes excluded from rotation until they pass probe again
## [1.6.3] - 2026-07-16
### Changed
- **Purity pass for egress UX**
- `nodes import` **merges by URL** into `nodes.json` (add/update/keep); `--replace` for full overwrite
- Clash Verge profile scan is **opt-in** (`--from-clash-verge`), not default
- `nodes list` prints a **sample summary** by default (`--all` for full dump)
- `nodes clear --yes` empties HTTP catalog without touching protocol runtime
- `auto` egress only uses **known-healthy** (`last_ok=true`) catalog entries; unprobed bulk no longer blocks core
- Docs/CLI primary backends: `list|core|direct` (auto/clash advanced)
- Canonical script: `scripts/import_nodes.py`; `import_clash_to_nodes.py` deprecated alias
### Added
- Merge plan in import/dry-run JSON (`added`/`updated`/`kept`/`dropped`)
- Tests for merge/replace and auto healthy-list behavior
## [1.6.2] - 2026-07-16
### Added
- **Light node convert pipeline** (`register_core/nodes/convert/`): parse → validate → split → pack
- Inputs: Clash/mihomo YAML, V2Ray/Xray JSON outbounds, share URI lines (ss/vmess/vless/trojan/http/socks)
- CLI: `python -m register_core nodes import|validate` (dry-run, format force, no register-path weight)
- Legality report rejects missing type/server/port/uuid/…; dialable → `nodes.json`, protocol → `runtime.yaml`
- Compat: `scripts/import_clash_to_nodes.py` is a thin wrapper over the same pipeline
- Tests: `test_nodes_convert.py`
### Notes
- mihomo remains optional runtime for protocol nodes only; HTTP/SOCKS path needs no core
- Conversion is opt-in CLI — register pipeline only consumes artifacts
## [1.6.1] - 2026-07-16
### Added
- **Egress backend switch**: `core` | `clash` | `list` | `direct` | `auto`
- CLI: `python -m register_core nodes egress show|set|which`
- CLI/env: `--egress` / `REGISTER_EGRESS` / `CHATGPT_EGRESS`
- Persist preference: `.nodes/config/egress.mode`
- Tests cover clash vs core isolation and direct no-proxy
## [1.6.0] - 2026-07-16
### Added
- **Embedded mihomo mini-core** under `.nodes/bin/mihomo` + `.nodes/config/runtime.yaml`
- `register_core/nodes/core_runtime.py` + CLI: `nodes core start|stop|status|select|proxies|url`
- `scripts/import_clash_to_nodes.py` — copy Clash Verge YAMLs into project path and pack runtime
- `scripts/bootstrap_nodes_core.sh` — download official MetaCubeX mihomo for the host arch
- `util/proxy.py` can auto-start core and use `http://127.0.0.1:17897` when HTTP catalog empty
### Notes
- Protocol nodes (vless/ss/vmess/trojan/…) live in project runtime YAML; dialable HTTP/SOCKS still in `nodes.json`
- No dependency on Clash Verge UI / system TUN / `:7897` for ChatGPT path
- `.nodes/` is gitignored (binary + credentials)
## [1.5.0] - 2026-07-16
### Added
- **Project-owned node runtime** (`register_core/nodes/`): catalog (`nodes.json` / `nodes.txt`), health probe (`curl_cffi` → ipify), `NodeManager` rotation, CLI `python -m register_core nodes list|check|add|urls`
- `register_core/util/proxy.py` seeds list-mode pool from nodes catalog when `PROXY_LIST` empty
- Examples: `nodes.example.json`, `nodes.example.txt`; gitignore for credential catalogs
- Tests: `test_register_core_nodes.py` (catalog, manager, proxy util, pipeline wiring)
### Changed
- ChatGPT runner / adapter: **no default Clash `127.0.0.1:7897`** — egress from `nodes.json` / `PROXY_LIST` / explicit `CHATGPT_PROXY`
- Docs: ARCHITECTURE egress section; ChatGPT README + hub help describe nodes-first path
### Notes
- Operators supply HTTP/SOCKS proxy endpoints they control; Clash mode remains optional legacy for Grok browser only
## [1.4.1] - 2026-07-15
### Added
- **Self-controlled egress for layered providers**: `register_core/util/proxy.py` wires existing `proxy_rotate` **list** mode into `Pipeline` + `register_core` CLI + ChatGPT runner
- CLI: `--proxy`, `--proxy-list`, `--proxy-rotate {off,list,clash}`, `--proxy-rotate-every`, `--proxy-rotate-required`
- Env: `CHATGPT_PROXY_LIST` / `PROXY_LIST` auto-enables list mode (no Clash node selection)
### Notes
- Preferred path is **list** of explicit upstream URLs — register machine owns the node pool; Clash may only be a local forwarder, not a selector dependency
- Clash domain-group mode remains available for Grok browser paths; ChatGPT docs steer operators to list mode
## [1.4.0] - 2026-07-15
### Added
- **ChatGPT / OpenAI platform provider** (`providers/chatgpt/`): in-process protocol register via `curl_cffi` + Sentinel PoW + `EmailSource` (default `gmail_imap`); hub `./register.sh chatgpt`
- `register_core/providers/chatgpt_adapter.py` + `verify/chatgpt_token.py` (offline token shape gate)
- Unit tests: `test_chatgpt_provider.py` (attribution, redact, verifier, registry)
- Gmail OTP extractor: HTML strip + OpenAI “temporary verification code” patterns (was poisoned by CSS hex numbers)
### Notes
- ChatGPT path does **not** auto-inject tebi/CPA; secrets land in `providers/chatgpt/output/` (0600, gitignored)
- Live path verified through authorize → OTP validate; final `create_account` may still return `registration_disallowed` (IP/domain risk) — Manual-required
## [1.3.0] - 2026-07-15
### Added
- **Desktop GUI deep polish**: thread-safe `ui_queue` pump, form lock while running, validation focus/tab jump, log cap, copy log / open results, persist `register_count`
- **Desktop GUI redesign** (`grok_register_ttk.py`): Notebook tabs (基础 / 邮箱 / 进阶)、邮箱服务商字段动态显隐、右侧进度条与彩色日志
- **Multi-provider hub**: `./register.sh` (`grok` / `mimo` / `core` / `smoke`)
- **`register_core/`** layered framework: contracts, email sources, provider adapters, verify, sink, pipeline, CLI
- **`providers/mimo/`**: Xiaomi MiMo API Key registration (Node/Playwright `register-one.js`, Geetest slide, tinyhost OTP)
- MiMo → CPA OpenAI-compat helper (optional, local): `providers/mimo/inject_cpa_openai.py` (does **not** touch production by default)
- Unit tests: `test_register_core_layers.py`, `test_mimo_cpa_openai_inject.py`
- Grok Gmail IMAP: HTTP CONNECT via configured proxy (container/no-public egress)
- Positioning docs vs [ThinkerWen/ai-register](https://github.com/ThinkerWen/ai-register): higher production usability, richer pipeline, **TTK UI** (form input + live log/status)
- **Monorepo skeleton** (inspired by ai-register product dirs + LiteLLM-style ARCHITECTURE/Makefile):
- `ARCHITECTURE.md`, `docs/LAYOUT.md`, `docs/ADDING_PROVIDER.md`
- `providers/_template/`, `providers/grok/README.md`, `providers/README.md`
- `apps/{cli,gui}/`, `examples/minimal_pipeline.py`, `tests/unit/`, `Makefile`
### Changed
- Project rename path: **`grok-register` → `register-machine` → `ai-register-machine`** (GitHub + package metadata)
- README highlights desktop UI (`grok_register_ttk.py`): count/threads/mail/proxy form, start/stop, status, scrolling logs, tutorial
- Fail-fast + this-run result attribution (no historical tail as success); public redact password/secret
- pytest `pythonpath` + `tests/` tree; gitignore all `providers/*/output|node_modules`
### Fixed
- Align `sk-` patterns across adapter / verifier / inject / redaction (hyphen & underscore vendor keys)
- Grok adapter no longer reports `ok=True` with empty SSO (`pending`); default Grok verifier requires SSO
- `inject_cpa_openai.py` no longer defaults to production CPA path; requires `--config`/`CPA_CONFIG` and `--i-understand-production` for prod
- `register.sh` / MiMo clash starter resolve monorepo root via `GROK_CODE_ROOT` and multi-name candidates (not hard-only `/personal/grok-register`)
- README no longer links a non-existent `v1.3.0` GitHub Release tag
### Security
- Jsonl sink `O_CREAT|0600`; black-box providers reject fake external `--email-source`
- Ignore MiMo runtime output / node_modules; never commit keys or mail ledgers
- Production CPA inject is opt-in with explicit ack (no silent default path)
## [1.2.3] - 2026-07-13
### Added
- `scripts/doctor_secrets.sh` — local secret hygiene (tracked paths, modes, cloud-sync path warn; never prints contents)
- CI: `bash -n` on setup/doctor scripts; py_compile quality scripts; run doctor_secrets in guard step
- README education banner + local secret hygiene; CONTRIBUTING ttk refactor caution + chat-gate rule
### Changed
- Package description emphasizes OIDC + chat gate (not Hotmail-only / not a quota farm)
## [1.2.2] - 2026-07-13
### Fixed
- Simple default email channel is **duckmail** (not hotmail four-segment) for lower onboarding friction
- `setup_simple.sh` doctor: Python/Chrome/proxy port, duckmail key / hotmail placeholder warnings; `uv sync` failure no longer aborts bootstrap
- README honest **最短路径** timing, 常见卡点 table, production inject key checklist
- Packaging tests: `bash -n`, setup smoke in temp dir (no overwrite)
## [1.2.1] - 2026-07-13
### Added
- Outsider-friendly packaging: `config.simple.example.json` + `scripts/setup_simple.sh`
- README quickstart (simple local path; tebi inject off by default)
- Product success table: chat probe required; `entitlement_denied` ≠ remint
## [1.2.0] - 2026-07-13
### Added
- One-click CPA chain: `cpa_auth_priority` end-to-end, multi remote auth-dirs (live + inventory)
- `cpa_remote_live_dir` / `cpa_remote_live_required` — **live inject is the product success gate**
- Free Build **chat entitlement gate**: default-on `/v1/responses` probe; 403 → `entitlement_denied`, skip live inject, remint ledger skip
- Transient chat probe retries + `chat_retryable` auth stamps; `entitlement_denied.jsonl`
- Auth proxy bridge for Chromium `user:pass` proxies; browser recycle modes; account slot retry
- `scripts/remint_expired_and_sync_authdir.py` for inventory remint without starting registration
- Offline tests for one-click dirs/priority, live-gate, and chat entitlement
### Fixed
- `account_slot_retry=0` no longer coerced to 3; no outer worker × slot multiplicative alias burn
- Mint browser no longer double-applies `--proxy-server`
- Proxy bridge failure hard-fails (no silent direct)
- Inventory-only remote inject no longer counts as one-click success when live was targeted
- Models-only 200 no longer counts as usable free Build when chat probe is on
- CI `py_compile` covers `proxy_bridge.py` and remint script
### Security
- Runtime mail/auth assets remain gitignored (`mail_credentials.txt`, `mail_assets/`)
## [1.1.3] - 2026-07-12
### Fixed
- Hard resource/config failures (Hotmail alias exhaustion, missing mail credentials, unconfigured providers) now **stop the whole batch immediately** instead of empty-loop retries
- `FatalRegisterError` + `_fatal_stop` event: workers exit without further account retries; process exit code `2`
### Added
- `classify_email_stage_failure` returns `fatal` for unrecoverable markers
- Offline tests for fatal classification and stop wiring
## [1.1.2] - 2026-07-12
### Added
- Startup cleanup of orphan Drission Chromes reparented to init/launchd (PPID=1)
- `tab_pool.cleanup_orphan_drission_chromes` / `TabPool.cleanup_orphans` with protect list
- Offline tests for Drission Chrome cmdline matching and dry-run cleanup
### Notes
- Success path still **reuses** the register browser (`clear_session`); cleanup only targets crashed leftovers, not the live worker Chrome.
## [1.1.1] - 2026-07-12
### Fixed
- SSO leading-dash normalize now applies at mint core, protocol extract/set, GUI ledger write, and shared `format_account_line`
- `existing_cpa_emails` / skip-existing match Hotmail plus-aliases against sanitized CPA filenames
- Official backfill script routes through `cpa_export` (remote inject + hooks); `--local-only` / `--no-remote` opt out
- Config booleans in `cpa_export` use `_config_bool` so string `"false"` is not truthy
- CI syntax-checks `grok_register_ttk.py`
### Added
- `format_account_line`, `email_match_keys`, `email_in_existing` helpers
- Offline tests for cookie extract normalize, plus-alias skip keys, `_config_bool`
## [1.1.0] - 2026-07-12
### Added
- Public project packaging for open-source release
- `LICENSE` (MIT), `DISCLAIMER.md`, `SECURITY.md`, `CONTRIBUTING.md`
- GitHub Actions CI (syntax + offline tests)
- Local account backup helpers (`account_backup.py`, `scripts/backup_registered_accounts.py`)
- Optional remote CPA auth inject after successful OIDC mint
- Hotmail/Outlook Office REST code fetch with IMAP fallback
- Protocol-first CPA OIDC mint (`cpa_xai/protocol_mint.py`) with browser fallback
### Changed
- README rebranded as **Grok 注册机** with full setup / ops docs
- Live Hotmail REST test gated behind `GROK_REGISTER_LIVE=1`
- Project package name aligned to `grok-register`
### Security
- Runtime secrets remain gitignored (`config.json`, accounts, CPA auths, backups, logs)
## [1.0.0] - 2026-07-11
### Added
- Chromium + DrissionPage registration core
- Hotmail four-field credential pool and plus-alias registration
- CPA export hook and `cpa_xai` OIDC tooling
- CLI (`register_cli.py`) and GUI (`grok_register_ttk.py`) entrypoints