Commit Graph
100 Commits
Author SHA1 Message Date
mygo-kyx eb129a4f85 feat(s2a): Improve group name caching and display with api_base isolation
- Refactor groupNameCache structure to isolate caches by api_base: { [apiBase]: { [groupId]: groupName } }
- Add normalizeBase() utility to remove trailing slashes and prevent cache key mismatches
- Update group fetching logic to deduplicate requests by api_base and admin_key combination
- Auto-fetch available groups when entering edit mode for a profile with valid credentials
- Enhance group label display to show "name #id" format instead of just name or #id
- Sort profiles in list view to display active profile first
- Update ProfileCard to use normalized api_base for groupNameCache lookup
- Simplify group label rendering by removing conditional groupsFetched check
2026-02-07 19:12:48 +08:00
mygo-kyx 6eb156c555 feat(s2a): Add dynamic group fetching with credentials validation
- Add backend endpoint `/api/s2a/fetch-groups` to fetch S2A groups using arbitrary credentials without depending on global config
- Implement `handleFetchGroups` handler with proper error handling and multiple auth header support (Bearer token, X-API-Key, X-Admin-Key)
- Add frontend API function `fetchGroupsWithCredentials` to call the new endpoint and parse S2A standard response format
- Add group fetching UI in S2AConfig edit mode with refresh button and loading state
- Implement batch group name caching in list view to display human-readable group names instead of IDs
- Deduplicate API requests by grouping profiles with identical credentials to avoid redundant calls
- Add fallback to display group ID when name is unavailable
2026-02-07 18:36:09 +08:00
mygo-kyx 0ad5881259 feat(header): Display active S2A profile information in header
- Add Server icon import from lucide-react for profile display
- Import useConfig hook and S2AProfile type for configuration access
- Implement activeProfile state to track currently selected S2A profile
- Add useEffect hook to fetch and match S2A profiles against current API base configuration
- Replace spacer div with active profile information display component
- Show profile name and API base URL when profile is matched
- Display API base URL directly when configured but profile not found
- Add responsive styling with dark mode support for profile info badge
- Use truncation and flex-shrink to prevent layout overflow on smaller screens
- Provides users with clear visibility of which S2A profile is currently active
2026-02-07 14:29:55 +08:00
mygo-kyx 060d21eb4f feat(s2a): Refactor S2A configuration UI with profile management and edit mode
- Restructure component to support list and edit view modes for better UX
- Replace single global config state with profile-based management system
- Add ability to create, edit, and delete S2A configuration profiles
- Implement profile activation to set active configuration
- Refactor form state management with dedicated form variables (formName, formApiBase, etc.)
- Add profile name field to distinguish between multiple configurations
- Improve icon usage by removing unused Bookmark and Download icons
- Consolidate message handling with auto-dismiss after 4 seconds
- Add resetForm utility function to clear form state between operations
- Separate fetchActiveConfig from fetchProfiles for cleaner data flow
- Enhance error handling with graceful fallbacks for API failures
- Improve code organization by grouping related state and functions
2026-02-07 13:46:48 +08:00
mygo-kyx 3af01abc76 feat(s2a): Add S2A configuration profiles management system
- Add new `/api/s2a/profiles` endpoint supporting GET, POST, DELETE operations
- Create `s2a_profiles` database table with fields for API configuration, concurrency, priority, group IDs, and proxy settings
- Implement database methods: `GetS2AProfiles()`, `AddS2AProfile()`, `DeleteS2AProfile()`
- Add S2AProfile struct to database models with JSON serialization support
- Implement profile management UI in S2AConfig page with save, load, and delete functionality
- Add profile list display with ability to apply saved configurations
- Add S2AProfile type definition to frontend types
- Enable users to save and reuse S2A configurations as presets for faster setup
2026-02-07 13:31:51 +08:00
mygo-kyx 02ddb48f21 fix(database): Recalculate batch run metrics from team results on cleanup
- Aggregate total_registered and total_added_to_s2a from batch_team_results table
- Calculate success_rate based on actual S2A additions vs total owners
- Compute duration_seconds from started_at and finished_at timestamps
- Improve stuck batch run recovery by restoring accurate metrics instead of zeroing them out
2026-02-07 02:52:06 +08:00
mygo-kyx 40a9da0809 fix(team_process): Clean up stuck processing owners on startup and batch completion
- Add CleanupStuckProcessingOwners database method to reset owners stuck in processing status back to valid state
- Call cleanup routine on application startup to recover from previous abnormal exits
- Call cleanup routine after batch processing completes to ensure no orphaned processing states remain
- Add markOwnerResult calls in processSingleTeam when team invitations are full to properly track owner status
- Prevents owners from being permanently stuck in processing state due to unexpected shutdowns or errors
2026-02-07 02:20:50 +08:00
mygo-kyx 60f57ab6a6 feat(upload): Persist team process configuration to localStorage
- Add localStorage persistence for team process configuration settings
- Initialize state values from saved configuration on component mount
- Implement useEffect hook to automatically save configuration changes to localStorage
- Preserve user preferences for membersPerTeam, concurrentTeams, concurrentS2A, useProxy, includeOwner, and processCount across sessions
- Improve user experience by restoring previous settings when returning to Upload page
2026-02-07 02:09:56 +08:00
mygo-kyx fee422b408 feat(team_process): Add pause mechanism for consecutive zero S2A entries
- Implement pause/resume mechanism using sync.Cond to halt worker goroutines
- Add consecutive zero S2A counter to detect when no accounts are added for 2+ teams
- Trigger automatic 1-minute pause when consecutive zero entries detected
- Log warning messages with team details when pause is triggered
- Reset counter on successful S2A entries or when pause completes
- Allow stop signal to interrupt pause period for graceful shutdown
- Broadcast resume signal to all waiting workers after pause completes
- Prevents resource exhaustion and provides recovery time during low-activity periods
2026-02-07 01:53:20 +08:00
mygo-kyx a74d3ac121 feat: Implement a new Upload page for batch processing team owners, featuring a file dropzone and a new layout. 2026-02-07 01:43:38 +08:00
mygo-kyx 2fc0dcaba4 feat: Introduce a new design system with dark mode and animations, add a reusable Tabs component, implement an Upload page, and create a backend API for team processes. 2026-02-07 00:10:29 +08:00
mygo-kyx 070ba6a31e feat: add new API endpoints for team processes 2026-02-06 22:04:48 +08:00
mygo-kyx f97a9beb4b feat: Implement account pool monitoring and management dashboard with S2A integration and add a new upload page. 2026-02-06 21:54:37 +08:00
mygo-kyx 1458b8b3e2 feat: add team process API. 2026-02-06 21:18:53 +08:00
mygo-kyx 6c8a036018 feat: Establish core backend services including SQLite database, structured logging, and initial owner management capabilities. 2026-02-06 20:53:05 +08:00
mygo-kyx 98ac10987c feat: Introduce advanced TLS client with browser fingerprinting and new backend modules for API processing, authentication, mail, and ChatGPT registration. 2026-02-06 18:49:55 +08:00
mygo-kyx 4ac7290e1f feat: add a new TLS client with browser fingerprinting and implement Codex API authentication. 2026-02-06 17:44:29 +08:00
mygo-kyx 1c1bdc3152 1 2026-02-05 22:03:04 +08:00
mygo-kyx dd24c813ab feat: Implement Dashboard page displaying pool status, statistics, and recent batch runs. 2026-02-05 09:05:36 +08:00
mygo-kyx 6e6dfded7b feat: add batch processing history and real-time status monitoring for team uploads 2026-02-05 08:51:53 +08:00
mygo-kyx 1718920250 feat: Add team process API. 2026-02-05 07:58:21 +08:00
mygo-kyx db00d44a71 feat: Implement initial backend API server with various endpoints and background services, including an error account cleaner. 2026-02-05 07:51:03 +08:00
mygo-kyx ad1270b88d feat: implement ChatGPT owner demotion service with a FastAPI backend and a basic frontend, alongside updated project metadata. 2026-02-05 07:18:22 +08:00
mygo-kyx 8895d508c0 feat: Implement Max RPM tracking API, Codex API authentication, and a new dashboard pool status component. 2026-02-05 06:30:47 +08:00
mygo-kyx 2bccb06359 feat: Implement the ChatGPT Owner Demotion Console with new frontend and backend components. 2026-02-05 03:13:30 +08:00
mygo-kyx 61712cf4fb feat: Implement browserless Codex API authentication with PoW solving and a new mail service, and update gitignore to exclude get_code.go. 2026-02-04 09:43:22 +08:00
mygo-kyx 381cbd41fa feat: add backend team registration module 2026-02-04 04:27:44 +08:00
mygo-kyx 1bd3d120c1 feat: implement mail service client for email generation, mailbox creation, and verification code retrieval. 2026-02-03 08:59:49 +08:00
mygo-kyx d92c64f2c2 feat: add mail service for managing email configurations, generating accounts, and fetching emails with verification code support. 2026-02-03 08:49:40 +08:00
mygo-kyx f8c3cd9a5b build: update GOPROXY to proxy.golang.org in Dockerfile and docker-compose build arguments. 2026-02-03 08:15:41 +08:00
mygo-kyx fcbdd8de39 feat: implement team process API endpoints 2026-02-03 08:00:18 +08:00
mygo-kyx 33289b633d feat: add Codex API authentication module with TLS fingerprinting and PoW solving, and introduce team processing API. 2026-02-03 07:48:06 +08:00
mygo-kyx a4aed8890f feat: add API for team processes 2026-02-03 07:40:30 +08:00
mygo-kyx 0813737f1b fix(auth): remove username from password verification payload and fix proxy refresh handler
- Remove redundant username field from password verification payload in CodexAPIAuth
- Update proxy refresh button to use arrow function for proper event handling
- Simplify authentication flow by eliminating unnecessary email parameter in password verification request
2026-02-03 07:32:52 +08:00
mygo-kyx 87b9b72a0e feat: add Codex API headless authentication and proxy configuration UI. 2026-02-03 07:01:22 +08:00
mygo-kyx f2757cf313 feat: Implement SQLite database for team owner management, configuration, batch processing, and proxies, introducing new auto-add API and Accounts UI. 2026-02-03 06:54:40 +08:00
mygo-kyx b20399a00a feat: Introduce core application structure, configuration, monitoring, and team management features. 2026-02-03 06:45:54 +08:00
mygo-kyx 637753ddaa feat: Implement Codex proxy configuration page with CRUD and testing capabilities, supported by new backend API and services for error handling, team processing, mail, and ChatGPT registration. 2026-02-03 04:33:37 +08:00
mygo-kyx f867e20c0e feat: Implement CodexAuth proxy pool backend and a new sidebar component with navigation. 2026-02-03 03:35:43 +08:00
mygo-kyx 9b4838b604 feat: add Codex proxy configuration page with full CRUD, toggle, and testing functionalities. 2026-02-03 03:30:01 +08:00
mygo-kyx cf25845a0b feat: Implement ChatGPT account registration flow and establish core backend API infrastructure with logging utilities. 2026-02-03 03:22:43 +08:00
mygo-kyx b014226074 feat: Implement CodexAuth proxy pool management with a new frontend configuration page and a dedicated backend service for API, database, and proxy testing. 2026-02-03 03:00:25 +08:00
mygo-kyx 51ba54856d feat: Add automated ChatGPT account registration with backend API, TLS client, and fingerprinting, alongside new frontend pages for configuration, monitoring, and upload. 2026-02-03 02:39:08 +08:00
mygo-kyx 389b8eca28 4 2026-02-02 11:14:20 +08:00
mygo-kyx 11bc01e8ed 3 2026-02-02 11:10:31 +08:00
mygo-kyx 6ef0dd448a 2 2026-02-02 11:07:11 +08:00
mygo-kyx f12d4d9a31 1 2026-02-02 11:03:36 +08:00
mygo-kyx c66109c829 feat: add team process API endpoint. 2026-02-02 10:51:27 +08:00
mygo-kyx 71eec01739 feat: Implement API-based Codex authentication and add team process API, while removing get_code.go from .gitignore. 2026-02-02 10:28:30 +08:00
mygo-kyx e8323671b1 feat: Initialize Go module and add core dependencies for the backend. 2026-02-02 09:59:53 +08:00
mygo-kyx 54ccd4a100 feat: Add a new Go backend module for API-based authentication, featuring TLS fingerprinting and Proof-of-Work solving. 2026-02-02 09:58:29 +08:00
mygo-kyx 8fbafee79a feat: implement browserless Codex API authentication flow including PKCE and Sentinel PoW. 2026-02-02 09:45:36 +08:00
mygo-kyx a5407cdb25 2 2026-02-02 09:39:18 +08:00
mygo-kyx bc95bed6b7 1 2026-02-02 09:34:29 +08:00
mygo-kyx 3d026b2010 feat: Introduce a new monitoring and configuration dashboard with backend API for autopool management and S2A integration. 2026-02-02 07:55:22 +08:00
mygo-kyx 5a3b3aa8ef feat: Implement S2A OAuth authorization using chromedp and introduce new files for browser automation and team processing. 2026-02-02 05:54:55 +08:00
mygo-kyx 74796a16dd feat: Implement S2A OAuth authorization using chromedp and rod browser automation, and integrate it into team processing. 2026-02-02 05:32:40 +08:00
mygo-kyx 4cd9f2b2b7 feat: Implement browser-based OAuth authentication using chromedp and rod, and add a team processing API. 2026-02-02 05:05:07 +08:00
mygo-kyx ee5b69af13 feat: Add LogStream component for real-time log display with Server-Sent Events, historical log loading, and interactive controls. 2026-02-02 04:27:47 +08:00
mygo-kyx 8fa529e59d feat: add Team Registration page for managing batch ChatGPT Team account creation and payment. 2026-02-02 04:24:33 +08:00
mygo-kyx c9e7a9adbf feat: Implement browser-based OAuth authentication using Chromedp and Rod, add an upload page, and introduce team processing API. 2026-02-02 04:19:53 +08:00
mygo-kyx 3f1edc0b8f feat: Introduce TLS client with browser fingerprinting and browser automation tools for authentication. 2026-02-02 03:56:14 +08:00
mygo-kyx daf4c68e4f feat: Add a new cleaner page for managing and automatically cleaning error S2A accounts, supported by new backend services for logging, authentication, and client operations. 2026-02-02 03:27:33 +08:00
mygo-kyx d05c19a8d5 feat: Add chromedp and rod-based OAuth authorization methods. 2026-02-01 09:19:53 +08:00
mygo-kyx 76ff32e83c feat: add Team Auto Registration page with status monitoring, configuration, and control for batch account creation. 2026-02-01 08:45:57 +08:00
mygo-kyx b0d36ac610 feat: Add new page for ChatGPT Team auto-registration and payment automation. 2026-02-01 08:39:12 +08:00
mygo-kyx 96d4ed0761 feat: add Team Auto Registration page with status display, configuration options, and real-time logging. 2026-02-01 08:32:42 +08:00
mygo-kyx 4fd6c47264 feat: add Team Auto Registration page with status monitoring, configuration, and controls. 2026-02-01 08:27:16 +08:00
mygo-kyx 0808da128d feat: add Team Auto Registration page for batch creation and management of ChatGPT Team accounts. 2026-02-01 08:16:30 +08:00
mygo-kyx 6254e3781b feat: add Monitor page for S2A dashboard statistics, pool management, and health checks. 2026-02-01 07:55:10 +08:00
mygo-kyx 995af8e19a feat: Implement system configuration page for site settings and proxy management, and add team registration functionality. 2026-02-01 07:50:28 +08:00
mygo-kyx 247bfb336e feat: Implement database-backed configuration management and the main backend application entry point. 2026-02-01 07:37:49 +08:00
mygo-kyx 28bdc9d509 feat: introduce a new Config page for managing site settings and proxy configurations, and add a Team Registration page with backend API support. 2026-02-01 07:33:35 +08:00
mygo-kyx 0c5beddebe feat: Add API endpoint for team registration execution. 2026-02-01 07:18:38 +08:00
mygo-kyx c8aa925205 feat: Add backend API for team registration execution. 2026-02-01 07:13:34 +08:00
mygo-kyx d4fb35b143 feat: Add team registration executable and API for auto-registration. 2026-02-01 07:06:51 +08:00
mygo-kyx d7cfa00349 feat: add team registration execution API endpoint. 2026-02-01 07:00:22 +08:00
mygo-kyx eb74a1cbab feat: Add team registration execution API handler. 2026-02-01 06:55:50 +08:00
mygo-kyx 64d2be116c feat: add team registration execution API endpoint 2026-02-01 06:53:54 +08:00
mygo-kyx e19df67829 feat: implement team registration management feature with backend API and frontend UI. 2026-02-01 06:49:28 +08:00
mygo-kyx 14a07e741e feat: add a service for periodic cleanup of error accounts based on configuration. 2026-02-01 06:02:39 +08:00
mygo-kyx e867bc5cbd feat: Implement S2A, Rod, and Chromedp based authentication for external services, and introduce new frontend pages and backend APIs for monitoring, configuration, upload, and team processes. 2026-02-01 04:58:12 +08:00
mygo-kyx 842a4ab4b2 feat: Implement initial backend API server with configuration, S2A proxy, and data management, and add frontend Toast component and Config page. 2026-02-01 03:57:51 +08:00
mygo-kyx e27e36b0e0 feat: Implement initial Codex Pool backend server with comprehensive APIs for configuration, S2A integration, owner management, batch processing, monitoring, and corresponding frontend pages. 2026-02-01 03:45:53 +08:00
mygo-kyx 8560a33f36 feat: add new Upload page for batch processing and S2A integration with file validation, owner management, and process monitoring. 2026-02-01 03:03:54 +08:00
mygo-kyx a605e46f2a feat: Add batch processing and upload functionality, including new backend APIs, logging system, SQLite database, and dedicated frontend pages. 2026-02-01 02:53:37 +08:00
mygo-kyx 94ba61528a feat: Add LiveLogViewer component for real-time log display with SSE streaming, pause/resume, auto-scroll, and log level styling. 2026-01-31 04:01:05 +08:00
mygo-kyx 0f319312a0 feat: Implement global design system with dark mode, animations, and add a new LiveLogViewer component. 2026-01-31 03:58:37 +08:00
mygo-kyx 2f01842376 feat: Introduce API for owner account import, validation, account ID management, and ban checks. 2026-01-31 03:50:55 +08:00
mygo-kyx 05580bd025 feat: Add real-time log streaming with a new backend SSE endpoint and a corresponding frontend component. 2026-01-31 03:34:55 +08:00
mygo-kyx a3491ab279 feat: Add TeamInviter for managing team invitations, including account status checks, sending, and accepting invites. 2026-01-31 03:24:23 +08:00
mygo-kyx f590fe0c7a feat: Implement core backend infrastructure including configuration management, SQLite database with team owners and app settings, and initial owner-related APIs and frontend components. 2026-01-31 03:16:24 +08:00
mygo-kyx 634b493524 feat: Implement S2A account cleaner management and a global application configuration context, with supporting backend API. 2026-01-31 02:24:08 +08:00
mygo-kyx 92383f2f20 feat: Initialize core application structure with backend configuration, database, API, and a comprehensive frontend UI for account pooling and management. 2026-01-31 01:48:07 +08:00
mygo-kyx 74bdcae836 feat: Add automated OpenAI account registration and Codex refresh token acquisition, and introduce a new S2A configuration page. 2026-01-31 01:02:45 +08:00
mygo-kyx e666d97eb8 feat: Implement a new monitoring system with auto-add capabilities and a dedicated management UI. 2026-01-30 22:26:11 +08:00
mygo-kyx 10cda012af feat: implement core backend for team owner management with SQLite, auto-add APIs, and a frontend owner list component. 2026-01-30 20:20:35 +08:00
mygo-kyx 3c5bb04d82 feat: Introduce owner management functionality with a new frontend list component and supporting backend API. 2026-01-30 19:55:21 +08:00
mygo-kyx 119b24efb2 feat: Add Rod-based browser automation for OAuth authorization. 2026-01-30 19:42:55 +08:00
mygo-kyx 65341fa300 feat: implement auto add API endpoint 2026-01-30 19:33:30 +08:00