mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-19 02:17:46 +00:00
Synced all changes from router-for-me/CLIProxyAPIPlus including: Executor updates: - claude_executor: response decompression, beta extraction, model resolution - gemini_executor/codex_executor: usage reporting - antigravity_executor: fallback URLs, thinking metadata, token refresh - kiro_executor: token refresh, profile ARN handling, quota fallback Translator updates: - Updated all translators for improved request/response handling - Enhanced tool result formatting and streaming support Configuration: - Added IncognitoBrowser option for OAuth - Updated KiroKey configuration - Enhanced PayloadConfig options SDK updates: - Auth refresh registry improvements - Cliproxy service enhancements - Added ErrNotImplemented for executor interface Excluded features (not synced): - Amp CLI Integration module - GitHub Copilot executor 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
817 B
Go
26 lines
817 B
Go
package cmd
|
|
|
|
import (
|
|
sdkAuth "github.com/router-for-me/CLIProxyAPI/v6/sdk/auth"
|
|
)
|
|
|
|
// newAuthManager creates a new authentication manager instance with all supported
|
|
// authenticators and a file-based token store. It initializes authenticators for
|
|
// Gemini, Codex, Claude, Qwen, IFlow, Antigravity, and Kiro providers.
|
|
//
|
|
// Returns:
|
|
// - *sdkAuth.Manager: A configured authentication manager instance
|
|
func newAuthManager() *sdkAuth.Manager {
|
|
store := sdkAuth.GetTokenStore()
|
|
manager := sdkAuth.NewManager(store,
|
|
sdkAuth.NewGeminiAuthenticator(),
|
|
sdkAuth.NewCodexAuthenticator(),
|
|
sdkAuth.NewClaudeAuthenticator(),
|
|
sdkAuth.NewQwenAuthenticator(),
|
|
sdkAuth.NewIFlowAuthenticator(),
|
|
sdkAuth.NewAntigravityAuthenticator(),
|
|
sdkAuth.NewKiroAuthenticator(),
|
|
)
|
|
return manager
|
|
}
|