Commit History
-
feat(codex): add Redis-backed prompt cache fallback
shinmentakezo07 +1: Claude Opus 4.6Add optional Redis-backed storage for Codex prompt cache IDs so cache keys stay stable across replicas while preserving the existing in-memory path when Redis is unset or unavailable. Wire codex prompt-cache config through YAML and environment overrides, apply the shared cache helper in both HTTP and WebSocket executors, and add tests for config defaults/sanitization, Redis TTL behavior, retention semantics, and explicit prompt_cache_key precedence. - honors explicit prompt_cache_key before retention-based disable logic - preserves short configured/request TTL values (for example 7s) instead of forcing a 1m minimum - uses GET/SETNX/GET winner flow for distributed cache ID creation with local fallback on Redis errors Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>0e6d51f
-
Add additive Codex device-code login flow
test93b3780
-
feat(tui): add standalone mode and API-based log polling
Unverified signature- Implemented `--standalone` mode to launch an embedded server for TUI. - Enhanced TUI client to support API-based log polling when log hooks are unavailable. - Added authentication gate for password input and connection handling. - Improved localization and UX for logs, authentication, and status bar rendering.530eae2
-
fix(tui): update with review
a7b6ecc -
feat(tui): add manager tui
359a752
-
refactor(sdk): simplify provider lifecycle and registration logic
Unverified signature0761215
-
Add Kimi (Moonshot AI) provider support
test +1: Claude Opus 4.6- OAuth2 device authorization grant flow (RFC 8628) for authentication - Streaming and non-streaming chat completions via OpenAI-compatible API - Models: kimi-k2, kimi-k2-thinking, kimi-k2.5 - CLI `--kimi-login` command for device flow auth - Token management with automatic refresh - Thinking/reasoning effort support for thinking-enabled models Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>61bff8c
-
Fixed: #499 #985
Unverified signaturefeat(oauth): add support for customizable OAuth callback ports - Introduced `oauth-callback-port` flag to override default callback ports. - Updated SDK and login flows for `iflow`, `gemini`, `antigravity`, `codex`, `claude`, and `openai` to respect configurable callback ports. - Refactored internal OAuth servers to dynamically assign ports based on the provided options. - Revised tests and documentation to reflect the new flag and behavior.c588380
-
fix(logging): refactor `ConfigureLogOutput` to accept config object and adjust log directory handling
Unverified signatureb438ff9
-
feat(config): add log file size limit configuration #535
Unverified signatureThis commit introduces a new configuration option `logs-max-total-size-mb` that allows users to set a maximum total size (in MB) for log files in the logs directory. When this limit is exceeded, the oldest log files will be automatically deleted to stay within the specified size. Setting this value to 0 (the default) disables this feature. This change enhances log management by preventing excessive disk space usage.ec7a2e0
-
refactor(logging): replace log.Fatalf with log.Errorf and add error handling paths
Unverified signature23e15a3
-
**feat(auth, executor, cmd): add Antigravity provider integration**
Unverified signature- Implemented OAuth login flow for the Antigravity provider in `auth/antigravity.go`. - Added `AntigravityExecutor` for handling requests and streaming via Antigravity APIs. - Created `antigravity_login.go` command for triggering Antigravity authentication. - Introduced OpenAI-to-Antigravity translation logic in `translator/antigravity/openai/chat-completions`. **refactor(translator, executor): update Gemini CLI response translation and add Antigravity payload customization** - Renamed Gemini CLI translation methods to align with response handling (`ConvertGeminiCliResponseToGemini` and `ConvertGeminiCliResponseToGeminiNonStream`). - Updated `init.go` to reflect these method changes. - Introduced `geminiToAntigravity` function to embed metadata (`model`, `userAgent`, `project`, etc.) into Antigravity payloads. - Added random project, request, and session ID generators for enhanced tracking. - Streamlined `buildRequest` to use `geminiToAntigravity` transformation before request execut…a51a8e6
-
feat(auth): add iFlow cookie-based authentication support
hkfires95bc2af
-
feat(buildinfo): add build metadata and expose via HTTP headers
Unverified signatureIntroduce a new `buildinfo` package to store version, commit, and build date metadata. Update HTTP handlers to include build metadata in response headers and modify initialization to set `buildinfo` values during runtime.5bd99f5
-
feat(vertex): add support for Vertex AI Gemini authentication and execution
Unverified signatureIntroduce Vertex AI Gemini integration with support for service account-based authentication, credential storage, and import functionality. Added new executor for Vertex AI requests, including execution and streaming paths, and integrated it into the core manager. Enhanced CLI with `--vertex-import` flag for importing service account keys.584926e
-
feat: add DisableCooling configuration to manage quota cooldown behavior
Unverified signature46adbea -
feat: implement management asset configuration and auto-updater
Unverified signature08ea23c
-
feat: prefer util.WritablePath() for logs and local storage
hkfirese3b6991
-
Add Object Storage
hkfires605f9a9
-
feat(store)!: Lock AuthDir when use gitstore/pgstore
hkfires53e8620
-
docs: document PostgreSQL-backed config/token store
hkfires2675519 -
feat(store): add PostgreSQL-backed config store with env selection
hkfires4d5d687
-
feat(store): introduce `GitTokenStore` for token persistence via Git backend
Unverified signature- Added `GitTokenStore` to handle token storage and metadata using Git as a backing storage. - Implemented methods for initialization, save, retrieval, listing, and deletion of auth files. - Updated `go.mod` and `go.sum` to include new dependencies for Git integration. - Integrated support for Git-backed configuration via `GitTokenStore`. - Updated server logic to clone, initialize, and manage configurations from Git repositories. - Added helper functions for verifying and synchronizing configuration files. - Improved error handling and contextual logging for Git operations. - Modified Dockerfile to include `config.example.yaml` for initial setup. - Added `gitCommitter` interface to handle Git-based commit and push operations. - Configured `Watcher` to detect and leverage Git-backed token stores. - Implemented `commitConfigAsync` and `commitAuthAsync` methods for asynchronous change synchronization. - Enhanced `GitTokenStore` with `CommitPaths` method to support selective file commits.f6e2efe -
fix(server): Handle empty/invalid config in cloud deploy mode
hkfires3751688 -
refactor(provider): remove Gemini Web cookie-based support
hkfires62a9086
-
fix(config): treat directory as absent for optional config in cloud deploy mode
hkfires398b1b4 -
feat(server): Add cloud deploy mode
hkfires57cac82
-
feat(server): introduce DefaultConfigPath for streamlined configuration
Unverified signature- Added `DefaultConfigPath` variable to manage default configuration file paths. - Updated `config` flag to use `DefaultConfigPath` for better path handling.7195c7d
-
feat: Add support for iFlow provider
hkfires1089302
-
refactor(server): remove unused `context` and `managementasset` references
Unverified signature- Dropped unused `context` and `managementasset` imports from `main.go`. - Removed logic for management control panel asset synchronization, including `EnsureLatestManagementHTML`. - Simplified server initialization by eliminating related control panel functionality.1c601a4 -
feat(management): add support for control panel asset synchronization
Unverified signature- Introduced `EnsureLatestManagementHTML` to sync `management.html` asset from the latest GitHub release. - Added config option `DisableControlPanel` to toggle control panel functionality. - Serve management control panel via `/management.html` endpoint, with automatic download and update mechanism. - Updated `.gitignore` to include `static/*` directory for control panel assets.d4525f6
-
refactor(access): centralize `configaccess.Register` and remove redundant calls
Unverified signature- Added centralized `configaccess.Register` invocation in `server` initialization. - Removed duplicate `Register` calls from `reconcile.go` and `builder.go`. - Simplified logic by removing unnecessary `nil` checks in provider entry collection.8d9d391 -
refactor(util): Centralize auth directory path resolution
hkfiresIntroduces a new utility function, `util.ResolveAuthDir`, to handle the normalization and resolution of the authentication directory path. Previously, the logic for expanding the tilde (~) to the user's home directory was implemented inline in `main.go`. This refactoring extracts that logic into a reusable function within the `util` package. The new `ResolveAuthDir` function is now used consistently across the application: - During initial server startup in `main.go`. - When counting authentication files in `util.CountAuthFiles`. - When the configuration is reloaded by the watcher. This change eliminates code duplication, improves consistency, and makes the path resolution logic more robust and maintainable.a438bc2
-
feat(config, usage): add `usage-statistics-enabled` option and dynamic toggling
Unverified signature- Introduced `usage-statistics-enabled` configuration to control in-memory usage aggregation. - Updated API to include handlers for managing `usage-statistics-enabled` and `logging-to-file` options. - Enhanced `watcher` to log changes to both configurations dynamically. - Updated documentation and examples to reflect new configuration options.c916b70 -
feat(logging): introduce centralized logging with custom format and Gin integration
Unverified signature- Implemented a global logger with structured formatting for consistent log output. - Added support for rotating log files using Lumberjack. - Integrated new logging functionality with Gin HTTP server for unified log handling. - Replaced direct `log.Info` calls with `fmt.Printf` in non-critical paths to simplify core functionality.c7f4f52 -
feat(auth, docs): add SDK guides and local password support for management
Unverified signature- Added extensive SDK usage guides for `cliproxy`, `sdk/access`, and watcher integration. - Introduced `--password` flag for specifying local management access passwords. - Enhanced management API with local password checks to secure localhost requests. - Updated documentation to reflect the new password functionality.d5ac4f1 -
rebuild branch
Unverified signaturee83d8c5 -
remove all
Unverified signaturecf2b83d
-
feat(auth): centralize token store management and enhance persistence
Unverified signature- Introduced `RegisterTokenStore` and `GetTokenStore` to centralize token store access. - Replaced direct file operations with a unified token persistence API. - Updated all components to use the shared token store for consistent behavior. - Improved logging for token save operations to include file paths.c449503
-
feat(gemini-web): Inject fallback text for image-only flash model responses
hkfiresc43354f -
fix(log): Trim trailing newlines to prevent blank log lines
hkfires55e071d
-
feat(logging): integrate logrus with custom Gin middleware for enhanced request logging and recovery
Unverified signature- Added `GinLogrusLogger` for structured request logging using Logrus. - Implemented `GinLogrusRecovery` to handle panics and log stack traces. - Configured log rotation using Lumberjack for efficient log management. - Replaced Gin's default logger and recovery middleware with the custom implementations.7cb1dca
-
v6 version first commit
Unverified signatured70f595
-
feat(gemini-web): squash all features and fixes for gemini-web
hkfiresb803616
-
fix(windows): Improve path handling and file read reliability
hkfires3d05726
-
Update internal module imports to use `v5` package path
Unverified signature- Updated all `github.com/luispater/CLIProxyAPI/internal/...` imports to point to `github.com/luispater/CLIProxyAPI/v5/internal/...`. - Adjusted `go.mod` to specify `module github.com/luispater/CLIProxyAPI/v5`.d68931b
-
Add dynamic log level adjustment and "type" field to auth files response
Unverified signature- Introduced `SetLogLevel` utility function for unified log level management. - Updated dynamic log level handling across server and watcher components. - Extended auth files response by extracting and including the `type` field from file content. - Updated management API documentation with the new `type` field in auth files response.1296309
-
feat(server): inject build metadata into application logs and container image
hkfiresc7b4ba3
-
Add versioning support to build artifacts and log outputs
Unverified signature- Introduced `Version` variable, set during build via `-ldflags`, to embed application version. - Updated Dockerfile to accept `APP_VERSION` argument for version injection during build. - Modified `.goreleaser.yml` to pass GitHub release tag as version via `ldflags`. - Added version logging in the application startup.3f3b661
-
Replace `path` with `filepath` for cross-platform compatibility
Unverified signature- Updated imports and function calls to use `filepath` across all token storage implementations and server entry point. - Ensured consistent handling of directory and file paths for improved portability.789a6ba