Commit Graph

39 Commits

Author SHA1 Message Date
cheng zhen
6403682094 chore: update activation and verification URLs in LicenseManager to new domain 2025-01-02 08:12:16 +08:00
chengchongzhen
c404d0de31 refactor: replace fixed sleep duration with dynamic wait time in sign_up_account function for improved user experience 2024-12-31 17:03:53 +08:00
chengchongzhen
e21c4249bd refactor: implement retry mechanism for session token retrieval and improve error handling in get_cursor_session_token function 2024-12-31 16:41:59 +08:00
chengchongzhen
04563462e4 refactor: streamline cookie retrieval and enhance error handling in account management scripts 2024-12-31 16:26:09 +08:00
chengchongzhen
50e69cd51c refactor: remove deprecated config files and update logging in account management scripts 2024-12-31 13:21:07 +08:00
chengchongzhen
de33ff1e2e chore: update requirements.txt to include pycryptodome for enhanced encryption support 2024-12-31 13:00:12 +08:00
chengchongzhen
e8bc3e08f8 feat: 增加加密 2024-12-31 12:56:59 +08:00
chengchongzhen
331ebe035a fix: enable headless mode in BrowserManager for production environment 2024-12-31 09:55:18 +08:00
chengchongzhen
e5539045b8 feat: 添加 moment-timezone 依赖,更新许可证过期时间逻辑为中国时区,优化日期处理 2024-12-31 09:27:15 +08:00
cheng zhen
9bf7217fa2 fix: update MongoDB URI in .env file and add date utility file 2024-12-31 08:02:07 +08:00
cheng zhen
ae4ade33e2 feat: 优化代码 2024-12-31 07:42:13 +08:00
cheng zhen
59426bc415 依赖文件 2024-12-30 23:35:46 +08:00
cheng zhen
b7cd4bd55b feat: 直接注册 2024-12-30 23:16:45 +08:00
cheng zhen
407d397fda feat: 许可证 2024-12-30 22:42:20 +08:00
cheng zhen
72a37b9c2b feat: 添加许可证密钥管理功能,更新许可证激活逻辑,支持环境变量配置,增加Docker支持 2024-12-30 21:45:46 +08:00
chengchongzhen
7525b07d5b feat: 更新许可证管理功能,使用AES-256-CBC加密和解密,增加生成许可证密钥的API 2024-12-30 13:42:18 +08:00
chengchongzhen
dbf8690753 feat: 实现许可证激活和验证功能,增加许可证管理服务器 2024-12-30 13:39:24 +08:00
chengchongzhen
8728e0bff3 feat: 增加使用限制 2024-12-30 12:55:28 +08:00
cheng zhen
861f8d51f2 doc 2024-12-29 18:46:14 +08:00
cheng zhen
fc0392e14e doc 2024-12-29 18:24:35 +08:00
cheng zhen
d5ec6d7fe1 doc: 文档 2024-12-29 18:22:23 +08:00
cheng zhen
1c7e9ac79a feat: 启用无头浏览器 2024-12-29 18:19:18 +08:00
cheng zhen
615f406b8e feat: 生产环境用无头浏览器 2024-12-29 12:54:11 +08:00
cheng zhen
b604d0cd07 feat: 增加了判断邮箱是否错误 2024-12-29 12:49:39 +08:00
cheng zhen
d5944cd70e docs: update README to include Chrome browser requirement 2024-12-29 11:19:04 +08:00
cheng zhen
076c9c8f19 feat:增加工作流 2024-12-29 10:42:30 +08:00
cheng zhen
9838873ddf feat:增加工作流 2024-12-29 10:40:33 +08:00
cheng zhen
abc60df75c feat:增加工作流 2024-12-29 10:39:45 +08:00
cheng zhen
b72085e5dd refactor: remove redundant print statements in cursor_auth_manager.py and cursor_pro_keep_alive.py 2024-12-29 10:09:05 +08:00
cheng zhen
2c02a38699 feat: 删除无用的东西 2024-12-29 10:01:02 +08:00
cheng zhen
8c9c0a4dff doc: readme 2024-12-29 09:02:21 +08:00
cheng zhen
7dc3af0798 feat: 优化打包 2024-12-29 08:59:43 +08:00
cheng zhen
bd45b1f1a6 feat: 设置无头浏览器 2024-12-28 22:05:09 +08:00
cheng zhen
1757e5ed2f Add browser management and email verification functionality
- Introduced `BrowserManager` class in `browser_utils.py` for streamlined browser initialization and configuration.
- Added `EmailVerificationHandler` class in `get_veri_code.py` to handle email verification code retrieval.
- Updated `cursor_pro_keep_alive.py` to utilize the new browser and email handling classes, improving code organization and readability.
- Modified `config.ini` to update the email address for account configuration.
- Removed obsolete `log.txt` file to clean up the project structure.
- Added unit tests for email verification functionality in `test/get_veri_code_test.py`.
2024-12-28 21:56:48 +08:00
cheng zhen
b3c9efc901 Refactor cursor_pro_keep_alive.py and remove obsolete files
- Updated environment variable assignments to use double quotes for consistency.
- Enhanced logging configuration format for clarity.
- Improved configuration loading logic to correctly determine the executable's directory.
- Cleaned up temporary file handling in cleanup_temp_files function.
- Removed obsolete config.ini and related files from the dist directory.
- Deleted unnecessary macOS application files from the dist folder.
2024-12-28 20:34:34 +08:00
cheng zhen
85c83a9d62 Implement build system for Cursor Pro with platform-specific packaging
- Added build.py script to automate the packaging process for macOS and Windows.
- Created CursorKeepAlive.mac.spec and CursorKeepAlive.win.spec for application specifications.
- Updated .gitignore to exclude build artifacts and IDE files.
- Enhanced directory structure for output files and included configuration file handling in the build process.
2024-12-28 20:08:49 +08:00
cheng zhen
a1002131a8 Enhance cursor_pro_keep_alive.py and update packaging
- Added logging functionality to cursor_pro_keep_alive.py for better error tracking.
- Improved configuration loading to handle frozen executables and updated success message.
- Introduced cleanup_temp_files function to remove temporary directories.
- Refactored browser options setup into a separate function for clarity.
- Updated .gitignore to include virtual environment directory.
- Enhanced CursorKeepAlive.spec to check for config.ini existence and updated app bundle details.
- Added new files for macOS app packaging, including Info.plist and application icon.
2024-12-28 20:05:29 +08:00
chengchongzhen
61e93e08c9 Refactor cursor_pro_keep_alive.py and update packaging
- Simplified configuration loading message in cursor_pro_keep_alive.py.
- Improved error message for missing config file.
- Renamed executable from 'cursor_pro_keep_alive' to 'cursorPro' in CursorKeepAlive.spec.
- Removed obsolete config file from dist directory.
- Added new executable 'cursorPro.exe' to dist folder.
- Updated README.md to reflect changes in file structure and installation instructions.
2024-12-28 16:31:30 +08:00
chengchongzhen
d48b1a9d6d Add initial implementation of Cursor Pro Keep Alive tool
- Created .gitignore to exclude unnecessary files.
- Added config.ini for account configuration.
- Implemented cursor_auth_manager.py for managing authentication.
- Developed cursor_pro_keep_alive.py for automated account management.
- Included CursorKeepAlive.spec for packaging.
- Added gpt-accesstoken.py for obtaining ChatGPT access tokens.
- Created README.md with usage instructions.
- Updated requirements.txt with necessary dependencies.
- Added run_cursor.bat for script execution.
- Implemented update_cursor_auth.py for updating authentication details.
- Included turnstilePatch for handling CAPTCHA challenges.
- Added logging functionality in log.txt for tracking script execution.
- Created dist folder with packaged executable and necessary files.
2024-12-28 15:14:40 +08:00