22 Commits

Author SHA1 Message Date
6b41c9bccd feat: Initialize CodexAuth project, including virtual environment, dependencies, and initial authentication scripts. 2026-02-07 02:22:01 +08:00
71efc3b04c feat: Install Python dependencies into virtual environment and add get_code.py script. 2026-02-07 02:03:16 +08:00
a7867ae406 feat(s2a_service): Add pure API authorization mode without browser
- Add S2A_API_MODE configuration option to enable browser-less authorization
- Implement S2AApiAuthorizer class using curl_cffi for browser fingerprint simulation
- Add Sentinel PoW (Proof of Work) solver with FNV-1a hashing algorithm
- Implement OAuth flow via direct API calls instead of browser automation
- Add s2a_api_authorize() function to handle email/password authentication
- Support proxy configuration for API requests
- Add requirements token generation for API authentication
- Update browser_automation.py to check S2A_API_MODE and route to API or browser flow
- Update config.py to load S2A_API_MODE from configuration
- Add api_mode option to config.toml.example with documentation
- Improves performance and stability by eliminating browser overhead while maintaining compatibility with existing browser-based flow
2026-02-02 09:26:57 +08:00
79c3eb733c feat(registration): Add email retry mechanism for API registration failures
- Add `allow_fallback` parameter to `register_openai_account_auto()` to control fallback behavior
- Return `"retry_new_email"` status when API registration fails without fallback enabled
- Return `"domain_blacklisted"` status when domain is blacklisted during registration
- Update `register_only()` to handle and propagate `"retry_new_email"` status
- Update `register_and_authorize()` to handle and propagate `"retry_new_email"` status
- Add retry logic in `process_accounts()` to regenerate email and reinvite on API failures
- Add retry logic in `_process_single_account_worker()` to regenerate email and reinvite on API failures
- Improve error handling to distinguish between domain blacklist and API failures requiring email regeneration
2026-01-30 12:24:40 +08:00
75a0dccebe feat(registration): Add email retry mechanism with team invitation support
- Add automatic email retry logic when verification code times out (5-second timeout)
- Implement new email creation and team invitation for failed verification attempts
- Add max_email_retries parameter to control retry attempts (default: 3)
- Add team_name parameter to enable automatic team invitations for new emails
- Return special "new_email:xxx@xxx.com:password" format when new email is used
- Update register_openai_account_auto() to support team_name parameter
- Update register_and_authorize() to support team_name parameter and return new email info
- Improve verification code timeout handling with configurable retry intervals
- Add nonlocal verification_timeout flag to track timeout state across retries
- Update docstrings to document new parameters and return value changes
2026-01-30 08:46:03 +08:00
8d5f8fe3bb 9 2026-01-27 10:34:25 +08:00
52b875a7f9 8 2026-01-27 10:26:21 +08:00
a4f542ace2 7 2026-01-27 10:21:02 +08:00
ad10d1f2b7 6 2026-01-27 10:08:10 +08:00
06eaff03b9 5 2026-01-27 09:59:16 +08:00
a973343b48 4 2026-01-27 09:47:12 +08:00
c937bc7356 3 2026-01-27 09:30:57 +08:00
e14aabd0e2 2 2026-01-27 09:25:04 +08:00
32e926c4af 协议 2026-01-25 05:40:08 +08:00
6559e4b84a update 2026-01-20 21:09:54 +08:00
83a9e38aa7 Update core logic, Telegram bot, browser automation, and email services. 2026-01-18 05:57:52 +08:00
7e92e12c79 update 2026-01-18 05:38:14 +08:00
a4ca3ec093 update 2026-01-18 03:45:02 +08:00
64707768f8 5 2026-01-16 00:32:23 +08:00
7e8c3784c1 feat(bot_notifier, browser_automation): Add debug screenshot capability and improve browser automation
- Add `_send_photo_to_all()` async method to send photos to all admin chat IDs
- Add `send_screenshot()` async method for sending debug screenshots via Telegram
- Add `send_screenshot_sync()` synchronous wrapper for non-async code integration
- Add `save_debug_screenshot()` function to capture and send screenshots when DEBUG_SCREENSHOT=true
- Add debug screenshot directory creation and timestamp-based file naming
- Improve browser initialization with automation detection bypass and realistic User-Agent
- Add `--disable-blink-features=AutomationControlled` flag to hide automation characteristics
- Set Mozilla/5.0 User-Agent string to mimic real Chrome browser
- Enhance OpenAI account registration flow with better error handling and debugging
- Add screenshot capture on page load failures and popup abnormalities
- Improve popup detection with additional CSS and text selectors for better reliability
- Increase timeout values for popup loading and form detection (1-3s to 2-5s)
- Add multiple fallback selectors for login form detection (email input fields, welcome text)
- Improve signup button retry logic with longer wait times and additional selector options
- Add screenshot capture on critical failures (popup retry failed, signup button not found)
2026-01-16 00:07:40 +08:00
51d03038e0 33 2026-01-15 23:53:33 +08:00
06f906abc7 first 2026-01-15 23:02:16 +08:00