mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-10-13 11:08:03 +08:00
Bring in native Meta (Muse Code) provider support while keeping the existing Devin integration and original Meta commit history.
26 lines
786 B
Go
26 lines
786 B
Go
package cmd
|
|
|
|
import (
|
|
sdkAuth "github.com/router-for-me/CLIProxyAPI/v7/sdk/auth"
|
|
)
|
|
|
|
// newAuthManager creates a new authentication manager instance with all supported
|
|
// authenticators and a file-based token store. It initializes authenticators for
|
|
// Codex, Claude, Antigravity, Kimi, xAI, Devin, and Meta providers.
|
|
//
|
|
// Returns:
|
|
// - *sdkAuth.Manager: A configured authentication manager instance
|
|
func newAuthManager() *sdkAuth.Manager {
|
|
store := sdkAuth.GetTokenStore()
|
|
manager := sdkAuth.NewManager(store,
|
|
sdkAuth.NewCodexAuthenticator(),
|
|
sdkAuth.NewClaudeAuthenticator(),
|
|
sdkAuth.NewAntigravityAuthenticator(),
|
|
sdkAuth.NewKimiAuthenticator(),
|
|
sdkAuth.NewXAIAuthenticator(),
|
|
sdkAuth.NewDevinAuthenticator(),
|
|
sdkAuth.NewMetaAuthenticator(),
|
|
)
|
|
return manager
|
|
}
|