Commit Graph

5 Commits

  • feat(auth, docs): add SDK guides and local password support for management
    - 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.
  • feat(auth): enhance watcher with asynchronous dispatch and buffering
    - Added async dispatch loop to `Watcher` for handling incremental `AuthUpdate` with in-memory buffering.
    - Improved resilience against high-frequency auth changes by coalescing updates and reducing redundant processing.
    - Updated `cliproxy` service to increase auth update queue capacity and optimize backlog consumption.
    - Added detailed SDK integration documentation in English and Chinese (`sdk-watcher.md`, `sdk-watcher_CN.md`).
  • docs(sdk-access): add SDK usage guides in English and Chinese
    - Added `sdk-access.md` and `sdk-access_CN.md` documentation files.
    - Included detailed guidelines for authentication manager lifecycle, configuration, built-in and custom providers.
    - Documented integration steps with `cliproxy` and instructions for hot reloading.
  • 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.