Commit Graph

8 Commits

  • feat(translator): add built-in translator registry and helpers
    - Introduced `builtin` package exposing a default registry and pipeline for built-in translators.
    - Added format constants for common schemas (e.g., OpenAI, Gemini, Codex).
    - Implemented helper functions for schema translation using format name strings.
    - Provided example usage for integration with translator helpers.
  • Add support for dynamic model providers
    Implements functionality to parse model names with provider information in the format "provider://model" This allows dynamic provider selection rather than relying only on predefined mappings.
    
    The change affects all execution methods to properly handle these dynamic model specifications while maintaining compatibility with the existing approach for standard model names.
  • refactor(auth): replace TokenRecord with coreauth.Auth and migrate TokenStore to coreauth.Store
    - Replaced `TokenRecord` with `coreauth.Auth` for centralized and consistent authentication data structures.
    - Migrated `TokenStore` interface to `coreauth.Store` for alignment with core CLIProxy authentication.
    - Updated related login methods, token persistence logic, and file storage handling to use the new `coreauth.Auth` model.
  • refactor(auth): replace FileStore with FileTokenStore for unified token persistence
    - Removed `FileStore` in favor of the new `FileTokenStore`.
    - Centralized auth JSON handling and token operations through `FileTokenStore`.
    - Updated all components to utilize `FileTokenStore` for consistent storage operations.
    - Introduced `SetBaseDir` and directory locking mechanisms for flexible configurations.
    - Enhanced metadata management, including path resolution and deep JSON comparisons.
  • chore(docs): add and refine package-level comments across modules
    - Added detailed package-level comments to improve documentation coverage.
    - Clarified parameter descriptions, return types, and functionality of exported methods across packages.
    - Enhanced overall code readability and API documentation consistency.
  • feat: introduce custom provider example and remove redundant debug logs
    - Added `examples/custom-provider/main.go` showcasing custom executor and translator integration using the SDK.
    - Removed redundant debug logs from translator modules to enhance code cleanliness.
    - Updated SDK documentation with new usage and advanced examples.
    - Expanded the management API with new endpoints, including request logging and GPT-5 Codex features.