10 Commits
Author SHA1 Message Date
chaos c87b01967f Refactor registration flow, update config, replace Turnstile patch
- Major refactor of grok_register_ttk.py: improved flow, error handling, logging
- Update config.example.json and config.json with new fields
- Replace turnstilePatch/content.js with new script.js approach
- Update start.sh for better Chromium/Turnstile handling
- Remove deprecated turnstilePatch/content.js
2026-07-12 14:44:02 +08:00
chaos 7a02453601 Fix Xvfb headed Turnstile path for headless servers
- start.sh: never inject empty DISPLAY= into xvfb-run children
  (was forcing Python headless and killing Turnstile)
- headed Chromium uses base flags only; headless-only flags
  (disable-software-rasterizer/gpu) no longer applied under Xvfb
- Align closer to Git-creat7/grokRegister-cpa headed+extension path
2026-07-12 01:14:18 +08:00
chaos c56d0d240a Add one-click start scripts for Linux and Windows
- start.sh: Linux/Mac one-click launcher
- start.bat: Windows one-click launcher
- Both scripts auto-detect/install:
  - Python 3.13+
  - uv package manager
  - Chrome/Chromium browser
  - Sync Python dependencies
  - Create .env/config.json from templates if missing
- Default to unlimited accounts (--count 0)
- Pass through CLI args for custom runs
2026-07-12 00:04:36 +08:00
chaos 55f56d27c9 Add Gmail+Email Worker hybrid mail path and private runtime config
Prefer Cloudflare Worker KV for verification codes with optional short IMAP
fallback disabled for private deploy; track config.json/.env for private repo.
Also add worker project, protocol mint backoff, and fail-fast Turnstile/mail
timeouts from batch runs.
2026-07-11 23:21:23 +08:00
chaos 187792d6be Delete verification emails after code extraction
IMAP-delete Gmail/Hotmail verification messages once the code is parsed, with config toggles and non-blocking failure handling.
2026-07-11 18:32:17 +08:00
chaos 06044551c7 Allow CPA_AUTO_IMPORT_REMOTE from .env
Enable remote CPA import via env flag with priority over config.json, and load project .env when resolving remote settings.
2026-07-11 18:06:17 +08:00
chaos 0d8265de03 Add automatic CPA Management API import after mint
Upload xai-*.json to POST /v0/management/auth-files when cpa_auto_import_remote is enabled. Failures are logged only and never block registration.
2026-07-11 17:47:34 +08:00
chaos d8e65ae4ef Rewrite README for Gmail catch-all and current workflow
Document Gmail IMAP as the recommended path, keep Hotmail/CloudMail options, and refresh CLI/env/setup sections.
2026-07-11 17:39:27 +08:00
chaos c5aeac6873 Update .env.example for Gmail IMAP setup
Reflect current GMAIL_USER/GMAIL_PASSWORD usage and keep optional CloudMail/grok2api vars.
2026-07-11 17:34:54 +08:00
chaos 6f7c949681 Replace repository with grok-reg-protocol-cpa project
Overwrite previous grok-keygen contents with the local registration/CPA protocol codebase (secrets and runtime data excluded).
2026-07-11 17:25:37 +08:00